Machine learning models for tax compliance in South Africa
  • SARS Tax Compliance
  • Machine Learning South Africa
  • Supervised & Unsupervised Models
  • Third-Party Data Integration
  • Automated Case Selection
  • Predictive Risk Profiling

South Africa provides a useful example of how a modern revenue authority can combine large volumes of taxpayer information with data science to identify compliance risks. The South African Revenue Service, or SARS, has publicly described its use of machine learning, artificial intelligence, third party information, risk profiling and automated case selection. This makes machine learning tax compliance South Africa an important case study, and machine learning tax compliance South Africa also offers a practical view for understanding how predictive systems can support tax administration without replacing human judgement.

This country level analysis should be read alongside the wider framework in the mother article AI in tax administration: a global overview, which explains the broader global adoption of AI, the major revenue authority use cases, the maturity journey, and the governance principles that frame this South African example. For readers coming from the broader pillar page, AI in tax administration, machine learning tax compliance South Africa provides a focused country example, the South African experience shows how the general ideas of risk detection, compliance management and taxpayer service can become operational. The focus here is narrower: how models can turn filing and third party information into risk signals, how supervised and unsupervised approaches work, and what SARS has publicly disclosed about its data driven approach.

01

How SARS uses machine learning for compliance

SARS has stated that it integrates advanced data analytics, machine learning and artificial intelligence into risk detection. Its 2024 to 2025 annual report explains that data from domestic and international sources is used to identify submissions that may be incomplete, nonexistent, misrepresented or fraudulent. The report also says that standard audit cases can be created automatically when sufficient third party information is available.

Earlier SARS reporting provides a particularly useful illustration. In a 2021 statement, SARS said that data from sources including banks, retirement funds, medical insurers, property records, company records, motor vehicle records and population information was being used as input for machine learning models, risk profiling and case selection. SARS reported that about 33 percent of R115 billion collected from compliance activities at that point resulted from automatic risk profiling using data and machine learning.

02

Supervised and unsupervised learning

Two broad categories help explain ML models for tax non-compliance. Together, these approaches form the practical foundation for ML models for tax non-compliance in a revenue authority.

Supervised learning tax compliance uses historical examples where the outcome is already known. For example, a training dataset might contain previous cases that were ultimately confirmed as compliant or non compliant. The model learns relationships between taxpayer characteristics and the observed outcome. It can then score new cases according to their estimated probability of non compliance.

This approach is useful when an agency has reliable historical labels. Possible applications include predicting whether a return may require verification, prioritizing audit cases, identifying potentially improper refund claims, or estimating the likelihood that a debt will remain unpaid. These are practical settings in which supervised learning tax compliance can support consistent case prioritization.

Supervised models score probability based on known historical outcomes; unsupervised models discover hidden patterns and unusual behaviors without predefined labels.

Unsupervised learning does not require a predefined outcome label. Instead, the system searches for structures, clusters or unusual observations within the data. In tax administration, this can help analysts find taxpayers whose behaviour differs substantially from comparable groups. It can also highlight new patterns that may not resemble previously detected cases.

SARS publicly describes machine learning models, risk profiling and detection capabilities, which is useful when considering ML models for tax non-compliance, but its public material does not provide a complete technical inventory of the individual algorithms used in production. Therefore, it would be inaccurate to claim that SARS specifically uses a particular classifier, clustering method or neural network unless SARS publishes that detail.

03

Common model types used by revenue agencies

Across government analytics, several model families are suitable for tax compliance prediction model development. Choosing the right tax compliance prediction model depends on the target outcome, data quality, legal context and need for explanation. Logistic regression is often useful when analysts need an interpretable probability of a defined outcome. Decision trees and ensemble methods can capture nonlinear relationships between variables and may perform well when many risk factors interact. In practice, a tax compliance prediction model should be assessed on both predictive performance and administrative usefulness.

Random forest and gradient boosting approaches are examples of ensemble methods that combine multiple decision structures. They can be useful for ranking cases by estimated risk. Neural networks can model complex relationships in large datasets, although their complexity can make explanation and governance more difficult.

Anomaly detection methods are especially relevant to unsupervised analysis. They can strengthen ML models for tax non-compliance when historical labels are limited. They can flag records that differ strongly from expected behaviour without requiring a historical label for every case.

04

Feature engineering from filing and third party data

A predictive system does not normally work directly from raw tax returns. Data scientists transform raw records into variables that a model can interpret. This process is called feature engineering.

For tax administration, useful features can be created from filing history, declared income, deductions, tax payments, refund activity, changes between filing periods and relationships between information reported by different sources. Third party information can provide additional context. For example, differences between reported income and information received from financial institutions or employers may become risk indicators.

Industry and peer comparisons can add another layer. A business can be compared with similar businesses using variables such as turnover, expense ratios, filing frequency or refund patterns. These comparisons should be designed carefully because legitimate businesses can have very different circumstances.

SARS has emphasized the value of third party information and data integration. During Filing Season 2024, it said nearly 150 million third party data records had been harvested and used with artificial intelligence and enhanced machine learning algorithms to support automatic assessments, improve return integrity and simplify the taxpayer experience.

05

From prediction to compliance action

Predicting tax evasion machine learning is only one part of the process. In practice, predicting tax evasion machine learning should be treated as a risk signal rather than a finding of wrongdoing. A risk score becomes useful when it supports appropriate administrative action.

A revenue authority can use model outputs to prioritize cases, request additional information, conduct verification, select audits, manage debt or identify potential refund risks. The objective should be targeted intervention rather than treating a model score as proof of wrongdoing.

SARS has described this approach through data driven risk detection and automated case creation. Its recent reporting also describes debt propensity models, AI driven risk profiling and refund fraud risk management as components of compliance activity. In 2025 to 2026, SARS reported R103 billion from tax verifications where risks were flagged through AI driven risk profiling and related analytical systems, alongside R94 billion from resolving outstanding debt cases supported by debt propensity models.

06

Data Tables & Compliance Indicators

The following figures are drawn from official SARS and OECD reporting and illustrate reported compliance outcomes and automation trends.

Figure 01 Revenue linked to SARS compliance activity & risk profiling outcomes (R billion)
Historical Compliance Collections
R115bn
AI Flagged Tax Verifications
R103bn
Debt Propensity Model Resolution
R94bn
Automatic Risk Profiling Share
33.0%
Sources: South African Revenue Service public statements and SARS 2024 to 2025 Annual Report.
Figure 02 SARS complex cases automated selection trend (2021/22 to 2024/25)
2021/22
Baseline
66.94%
Complex Automation
2022/23
Plateau (+0.01%)
66.95%
Complex Automation
2023/24
+15.85% Expansion
82.80%
Complex Automation
2024/25
Current Peak
88.41%
Complex Automation
Standard Risk Cases: 100.00% Automated Standard audit cases reached full 100.00% automated case selection and processing when sufficient third-party data is available.
Source: South African Revenue Service, Strategic Plan End Term Report 2020 to 2025.
07

What this means for South African tax administration

The South African case shows that machine learning is most valuable when it is connected to a wider data ecosystem. Filing information alone may reveal inconsistencies, but third party information can provide additional evidence for comparison. Historical compliance outcomes can support supervised models, while unsupervised methods can help identify unfamiliar patterns.

For taxpayers, better risk targeting can also reduce unnecessary intervention. This is another reason predicting tax evasion machine learning should be paired with review and evidence. SARS has repeatedly stated that its technology investments are intended not only to detect non compliance but also to make compliance easier for taxpayers who are meeting their obligations. Its Auto Assessment programme is an example of how data integration and automation can reduce the work required from individuals.

08

Governance, fairness and human oversight

Data should have a clear administrative purpose and should be protected against unauthorized use. Models should be monitored for performance and unintended bias. Officials need procedures for reviewing questionable predictions and correcting inaccurate information.

Supervised learning should be treated as decision support rather than an automatic substitute for professional judgement.

This is why supervised learning tax compliance should be treated as decision support rather than an automatic substitute for professional judgement. A fourth use of supervised learning tax compliance is therefore not another model, but a disciplined process for reviewing model outputs. Human officials should be able to examine relevant evidence, challenge model outputs and apply the applicable law.

09

The future of predictive compliance in South Africa

SARS is continuing toward a more integrated digital administration. Its Modernization 3.0 material describes an ambition to use data science, artificial intelligence and advanced analytics to improve voluntary compliance, efficiency and transparency. Its 2026 VAT modernization initiative also describes AI enabled risk detection and analytics as part of a future digital VAT ecosystem.

For organizations studying machine learning tax compliance South Africa, the key takeaway is that successful implementation depends on more than model accuracy. In a wider global context, machine learning tax compliance South Africa also illustrates how local data and institutional design shape implementation. It requires high quality data, appropriate features, strong validation, clear governance, skilled officials and a careful connection between predictions and lawful administrative action.

10

Conclusion

SARS demonstrates how a revenue authority can use machine learning as part of a wider data driven compliance strategy. Its public reporting shows the importance of third party data, automated risk profiling, case selection, debt analytics and refund risk management. This also shows why a tax compliance prediction model should support a controlled compliance workflow rather than operate as an isolated scoring tool.

The most useful way to understand this transformation is not as a contest between humans and algorithms. Predicting tax evasion machine learning can improve prioritization, while professional judgement remains essential. Machine learning can process large datasets and identify patterns at a scale that manual analysis cannot easily match, while tax professionals provide legal interpretation, context and accountability.

For the broader global picture, readers can continue to the main article, AI in tax administration: a global overview, which places the South African experience alongside developments across other revenue authorities and explains the wider adoption of artificial intelligence in tax administration.

Machine learning improves prioritization while professional human judgement provides context and legal accountability.

Data-Driven Compliance

Combine filing history with harvested third-party records to power automated risk profiling and case selection.

Supervised & Unsupervised Models

Deploy supervised models for probability scoring alongside unsupervised clustering for novel risk detection.

Decision Support Workflow

Treat model predictions as risk signals that trigger targeted administrative action under human review.

Legal & Institutional Governance

Ensure models operate within strong legal, privacy, and explainability frameworks to build public trust.

Collaboration

Collaborate with Maitras.ai

Revenue authorities, fiscal agencies, and development institutions are building data-driven approaches to modern tax administration, compliance risk analytics, and fiscal transparency. Let's work together to design accountable revenue intelligence systems.

Start a conversation