October 26, 2026
Registration data and machine learning for preventive screening of noteworthy companies in Goiás
Ricardo Martins de Lucena; Jacques Henrique Dias
DOI: 10.22167/2675-6528-202603421
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
Shell companies represented a significant risk to the tax administration, by enabling the fraudulent issuance of tax documents and generating revenue losses, demanding the prioritization of on-site verifications. This work developed and evaluated supervised machine learning models, based exclusively on registration data, to estimate the probability of ACTIVE taxpayers exhibiting characteristics associated with registration irregularities. Registration records from the period 2020 to 2025 were used, with taxpayers classified as SUSPENDED, ANNULLED, or REVOKED as a proxy for the positive class. The evaluation occurred through temporal validation, with testing in the second half of 2025. The Logistic Regression and Random Forest models were compared, treating the imbalance by class weighting, in scenarios with and without the Electronic Tax Domicile (DTE) accreditation variable. In the main scenario, the Random Forest model with DTE achieved a PR-AUC of 0.710322 and ROC-AUC of 0.977932, outperforming Logistic Regression (PR-AUC of 0.548556 and ROC-AUC of 0.966591). The exclusion of the DTE variable reduced the PR-AUC and increased the volume of flagged ACTIVE taxpayers, demonstrating the sensitivity of this attribute in predictive performance. The results indicated the feasibility of using registration data for preventive screening, with a trade-off between model sensitivity and the operational volume of due diligence. The Random Forest with DTE stood out for its better discriminative performance and operational adherence.
Keywords: Risk analysis; Taxpayer registration; Supervised classification; Tax inspection; Temporal validation.
1. Introduction
Shell companies, also referred to as “ghost companies” or “noteiras”, represent a relevant risk for tax administration. These entities can enable the fraudulent issuance of tax documents without compatible operational backing, with the potential to generate undue ICMS credits, hinder the traceability of circulation chains, and compromise state revenue collection. In addition to the direct tax impact, such structures are used to give an appearance of regularity to operations with unproven origin, favoring illicit practices and creating conditions of unfair competition, which unbalances the competitive environment to the detriment of taxpayers who operate regularly.
In this context, enforcement faces a classic resource allocation problem. In scenarios of limited operational capacity, it is not feasible to physically inspect all taxpayers. Thus, it becomes necessary to adopt risk-based prioritization mechanisms to optimize the performance of enforcement agencies.
Risk management constitutes a relevant instrument for directing oversight efforts and increasing the efficiency of state action, as evidenced by studies that point to the influence of audit and oversight actions on compliance behavior (Melo, 2023). Convergently, the literature highlights the importance of selective strategies oriented by objective criteria (Nunes, 2020; OECD, 2004).
Model-based predictive approaches are widely used in financial institutions for fraud screening, risk management, and decision support. In these contexts, it is recommended that models be employed with adequate documentation, performance evaluation, and continuous monitoring (Board of Governors of the Federal Reserve System; Office of the Comptroller of the Currency, 2011). The expansion of the use of artificial intelligence and machine learning in internal control processes has been highlighted in industry reports, emphasizing governance and supervision at all stages of model development and use (Financial Stability Board, 2017). The application of artificial intelligence in tax enforcement and the challenges related to its governance and responsible use are receiving increasing attention (Jarude, 2020).
In the specific field of identifying irregular taxpayers, some approaches combine cadastral information with signals of fiscal activity (Pinto and Fávero, 2022). However, this strategy tends to be more reactive, as, when fiscal activity is already underway, part of the potential damage associated with the irregular issuance of tax documents and revenue losses may have already occurred. Therefore, it is relevant to investigate the possibility of earlier detection of these occurrences.
The research is justified by the need to develop a preventive screening tool that exclusively uses registration information available at the time of registration or in the initial phase of the taxpayer’s operation. Such a tool can guide on-site diligence and verification before significant volumes of documentary issuance are consolidated, optimizing the operational capacity of the tax administration. This work aims to develop and evaluate supervised machine learning methods, built exclusively from registration data, to estimate and rank the risk of taxpayers with an ACTIVE registration status exhibiting indications compatible with registration irregularities, adopting the set of records classified as SUSPENDED, ANNULLED, and REVOKED as a proxy for the positive class.
2. Material and Methods
This work was characterized as a research of an applied nature, with a quantitative methodological approach, focused on the development and evaluation of predictive models. The study aimed to develop and evaluate supervised machine learning methods to estimate and rank the risk of taxpayers with an ACTIVE registration status presenting indications compatible with registration irregularities. For this purpose, the set of records classified as SUSPENDED, CANCELLED, and REVOKED was adopted as a proxy for the positive class.
The unit of analysis consisted of a dataset of taxpayer registrations, covering records from January 1, 2020, to December 31, 2025. The data is owned by the Secretariat of State for Economy of Goiás (SEE/GO) and was obtained through SAP BusinessObjects, the Secretariat’s corporate Business Intelligence platform. The extraction focused on the Taxpayer – Registration universe, selecting exclusively registration-related variables. The collection was carried out on February 19, 2026, reflecting a snapshot of the database on that date.
The query assembly for data extraction was performed in a Web Intelligence environment, whose interface allowed for the visual composition of queries through direct selection of result objects and filtering criteria. The base definition included cadastral attributes pertinent to the problem investigated, as well as filters for delimiting the analytical universe. The use of this tool enabled the transparent and reproducible construction of the analytical base, preserving the link with the institutional source of the data and restricting the modeling to the information effectively available in the state fiscal registry.
The data processing and the disclosure of results observed the General Law on the Protection of Personal Data (LGPD) and the Normative Instruction nº 1.455/20-GSE of SEE/GO. To preserve fiscal secrecy, the data were processed without the exposure of individualized identifiers, and the results were presented in an aggregated and generic manner. The extraction and use of registration data for academic purposes were formally authorized within the scope of SEE/GO, according to Opinion ECONOMIA/GIAD-15961 nº 536/2025.
The target variable (positive class) was operationalized through a proxy based on cadastral risk situations, considering taxpayers with SUSPENDED, ANNULLED, and REVOKED situations as positive. Taxpayers with ACTIVE status were treated as the negative class for training and testing purposes, with the aim of ranking the risk across the universe of ACTIVE taxpayers. Records with a HALTED status were excluded as they did not adequately represent the target event at this stage. In the analyzed subset, there were no records with a REVOKED status, which is why this class did not constitute the proxy during the period.
The variable Company Incorporation Date was used exclusively for the temporal scope and for the definition of the training and test sets, not being employed as a predictor. Temporal validation was adopted with evaluation in a later period, so that the test set corresponded to contributors with an incorporation date between July 1, 2025, and December 31, 2025. The training used previous records, approximating the prospective use scenario.
It was considered that certain variables could be associated with events after the moment of preventive screening, which could introduce the risk of information leakage (“data leakage”). In this context, the DTE variable was treated with caution, as it could potentially reflect characteristics observed in a later stage of cadastral monitoring. To assess the sensitivity of the results to this possible source of bias, a robustness test by ablation was performed, with re-execution of the models after excluding this variable.
The explanatory variables were organized into two categories: original cadastral variables and derived variables. In the cadastral set, the main native quantitative variables were social capital and the number of partners. The other fields were predominantly categorical, covering information such as legal nature, municipality, area ranges, economic activity classifications, as well as contact and location fields, such as email, phone, and ZIP code, and formal registration indicators, such as CRC and NIRE. Preprocessing focused on making these attributes informative for the model, preserving operational interpretability and keeping dimensionality under control.
Social capital was transformed by the logarithm of 1 plus the value (“log1p”), with the aim of reducing asymmetry and mitigating the impact of extreme values. To reflect cadastral completeness, binary presence flags were constructed, such as HAS_EMAIL, HAS_TEL, HAS_CEP, HAS_CRC, and HAS_NIRE, allowing for the capture of filling patterns in a simple and directly interpretable way. Identifiers such as CEP, telephone, and CRC were represented by frequency measures and combinations, including the frequencies of CEP, telephone, and CRC, as well as the joint frequency CEP × CRC. These statistics were estimated exclusively on the training set and subsequently applied to the test set, in order to avoid information leakage.
Two supervised models were implemented: Logistic Regression, adopted as an interpretable and fast-executing baseline, and Random Forest, employed as a tree-based ensemble method (Breiman, 2001). The implementation used the scikit-learn library, with a pipeline to standardize the preprocessing and training steps. Categorical variables were encoded using one-hot encoding, with handling of unobserved categories in training by ignoring new levels in the test set. To deal with class imbalance, class weighting mechanisms (“class_weight”) were used, increasing the relative weight of errors in the positive class to reduce sensitivity losses.
The models’ hyperparameters were configured according to the original TCC specifications, including parameters such as penalty, C, solver, class_weight, and max_iter for Logistic Regression, and n_estimators, max_depth, min_samples_split, min_samples_leaf, max_features, bootstrap, class_weight, random_state, and n_jobs for Random Forest. This strategy proved compatible with good practices in model governance and validation, which recommend sensitivity tests and documentation of variable choices and modeling hypotheses (Board of Governors of the Federal Reserve System; Office of the Comptroller of the Currency, 2011).
The models’ performance was evaluated through global metrics, such as ROC-AUC and PR-AUC, and by reading hits and errors from the confusion matrix. An initial threshold of 0.50 was adopted for converting probability into predicted class. ROC-AUC summarized the model’s ability to rank positive examples above negative ones as the threshold varied, while PR-AUC proved particularly informative in unbalanced scenarios, by emphasizing the trade-off between precision and sensitivity (“recall”) when the positive class is less frequent (Saito and Rehmsmeier, 2015). Emphasis was placed on the number of false positives among ACTIVE contributors, as this is the most relevant operational metric for a cadastral screening.
For the purposes of this study, the model’s ability to produce an operationally useful risk ranking was considered more relevant than binary classification at a fixed threshold. In a resource-constrained scenario, this ranking allows for prioritizing due diligence on taxpayers positioned in the highest estimated risk bands. Two prioritization strategies were simulated on the temporal test set of 2025H2, both based on the ranking produced by Random Forest with DTE: selection of the top 300 scores per quarter and a hybrid rule, with a minimum probability threshold of 0.93 and a ceiling of 300 cases per quarter. The value of 300 cases per quarter was used as an analytical reference to compare prioritization strategies in a limited resource scenario.
3. Results and Discussion
The performance evaluation of the developed models was carried out on the test set corresponding to the second semester of 2025 (2025H2), employing global metrics such as ROC-AUC and PR-AUC, in addition to the analysis of the confusion matrix with a fixed threshold of 0.50. The main focus was on the identification of false positives, which represent ACTIVE contributors erroneously flagged as high-risk, and false negatives, which are undetected irregularity cases. This approach allowed for an integrated analysis of the models’ detection capability and the operational implications arising from each evaluated scenario, aligning with the objective of preventive screening.
The results were organized into two distinct analytical arrangements. The first focused on the main model, which included the accreditation variable in the Electronic Tax Domicile (DTE), aiming to maximize predictive performance and operational viability. The second arrangement consisted of a comparative model without the DTE variable, with the purpose of quantifying the impact of this attribute on performance and supporting future decisions regarding its inclusion in the tool’s operationalization. This comparison is crucial for understanding the model’s sensitivity to information that may reflect more advanced stages of cadastral monitoring.
The 2025H2 test set was composed of 23,586 contributors, of which 808 were classified as belonging to the positive class, i.e., records with SUSPENDED, CANCELLED, or REVOKED status. This proportion corresponded to approximately 3.43% of the total sample, while the remaining 22,778 contributors had an ACTIVE registration status, configuring the negative class. This distribution highlights the imbalanced nature of the classification problem, which gives special relevance to the joint interpretation of global metrics and the elements of the confusion matrix for a robust model evaluation.
The comparative evaluation of the models revealed that Random Forest with the DTE variable presented the best overall performance. This model achieved a PR-AUC of 0.710322 and a ROC-AUC of 0.977932. In terms of classification at the threshold of 0.50, it identified 743 true positives, with 65 false negatives and 2,094 ACTIVE contributors flagged as at risk. Logistic Regression with DTE, in turn, also demonstrated consistent results, although slightly lower, with a PR-AUC of 0.548556 and ROC-AUC of 0.966591, registering 727 true positives, 81 false negatives, and 2,182 ACTIVE contributors classified as at risk. These findings suggest that the inclusion of DTE enhances discriminative capacity and operational adherence.
The analysis of the models’ discriminative capacity, illustrated by the ROC curves, indicated that Random Forest with DTE exhibited the best performance, with its curve positioned closest to the upper-left corner and presenting the largest area under the curve. In descending order of performance, followed Logistic Regression with DTE, Random Forest without DTE, and Logistic Regression without DTE. This performance hierarchy corroborates the summarized metrics and reinforces the importance of the DTE variable for enhancing the ability to distinguish between the positive and negative classes in both investigated algorithms. The presence of DTE, therefore, contributes significantly to predictive robustness.
The exclusion of the DTE variable resulted in a reduction in the predictive performance of the models. Random Forest without DTE achieved a PR-AUC of 0.412300 and a ROC-AUC of 0.954758, with 769 true positives, 39 false negatives, and 3,380 ACTIVE contributors flagged as risk. Logistic Regression without DTE presented a PR-AUC of 0.336923 and a ROC-AUC of 0.938680, with 749 true positives, 59 false negatives, and 3,427 ACTIVE contributors classified as risk. This comparison highlights that, although the exclusion of DTE may increase sensitivity (recall), it does so at the cost of a significantly larger volume of false positives, which directly impacts the operational capacity of tax administration for conducting audits.
The interpretation of the results must consider the class imbalance and the operational utility of the models for preventive screening. The confusion matrix metrics are essential to evaluate the balance between the recovery of cases of interest (true positives) and the volume of generated alerts for verification (false positives). The models that included the DTE variable demonstrated a better balance in this aspect, managing to recover a significant proportion of the positive class while keeping the volume of flagged ACTIVE contributors at a more manageable level for the enforcement teams.
The Random Forest with DTE stood out for presenting, simultaneously, the highest number of true positives (743), the lowest quantity of false negatives (65), and a volume of false positives (2,094) that proved more adequate to the operational conditions. In contrast, models without DTE, although they increased sensitivity (recall), resulted in a significant increase in alerts on ACTIVE taxpayers. For example, the Random Forest without DTE achieved the highest recall (0.9517) with 769 true positives and 39 false negatives, but it flagged 3,380 ACTIVE taxpayers as risks, representing a considerably larger operational volume. This analysis reinforces the existence of a trade-off between sensitivity and selectivity, as discussed by Saito and Rehmsmeier (2015).
The DTE variable, therefore, not only improved global performance metrics but also contributed to defining an operating point more aligned with the Tax Administration’s analytical and diligence capacity. Random Forest with DTE emerged as the alternative offering the best balance between predictive performance and operational viability, by allowing for more selective and efficient screening. This characteristic is fundamental to optimizing resource allocation in a context of constraints, directing enforcement efforts towards cases with a higher probability of irregularity.
Beyond evaluation by global metrics and the confusion matrix, the analysis of the model from the perspective of risk ranking was crucial, as it directly aligns with the operational objective of the study. The ability to order contributors so that cases of greatest interest to inspection are concentrated in the first positions of the ranking is more relevant than a binary classification at a fixed cutoff point. This approach allows tax administration to adapt its prioritization strategies according to available operational capacity and the urgency of cases.
For this purpose, two prioritization strategies were simulated on the temporal test set of 2025H2, both based on the ranking produced by Random Forest with DTE. The first strategy consisted of selecting the 300 highest scores per quarter (Top-300), representing a fixed selection logic. The second, a hybrid rule, used a minimum probability threshold of 0.93 and a ceiling of 300 cases per quarter, seeking greater selectivity by focusing on contributors with higher scores. The value of 300 cases per quarter was adopted as an analytical reference to compare the strategies in a scenario of limited resources, without the intention of defining an ideal number of audits.
In the aggregate for the second semester of 2025, the Top-300 strategy per quarter demonstrated greater coverage of the positive “proxy” class, with a recall of 0.4245. In contrast, the hybrid rule, by selecting a smaller number of cases (299 in the semester), achieved substantially higher precision, at 0.8595. These results indicate that the ranking generated by the model can be used in distinct ways, depending on the operational objective: the Top-K strategy is more suitable for expanding the coverage of potentially relevant cases, while the hybrid rule is more selective, concentrating action on cases of higher risk intensity. The flexibility in applying the ranking is an operational advantage.
The quarterly analysis revealed a significant variation in the operational performance of the ranking. In the third quarter of 2025 (2025Q3), both strategies showed high precision, above 0.94 (Top-300: 0.9467; Hybrid: 0.9590), indicating a strong concentration of positive cases in the top positions of the ranking. In the fourth quarter (2025Q4), however, a reduction in precision was observed, especially in the Top-300 strategy (0.1967), although with maintained high recall. This contrast suggests that the operational utility of the ranking remains relevant, but its calibration may require adjustments according to the temporal distribution of cases and the observed base rate in each application window, demanding continuous monitoring.
From the perspective of preventive screening, taxpayers with an ACTIVE registration status flagged as high-risk constitute the primary universe of interest for on-site due diligence. These records, although formally ACTIVE at the time of extraction, exhibit registration patterns similar to those observed in cases historically associated with irregularities. The practical value of the model lies not only in identifying records classified as positive proxy but also in its ability to prioritize, among still ACTIVE taxpayers, those that require more detailed verification, thereby optimizing tax administration resources.
As a limitation of the study, the evaluation focused on discriminative capacity and ranking performance, without specifically analyzing whether the scores produced by the model were adequately adjusted to the effectively observed risk. In a practical application, conducting on-site due diligence and systematically recording its results will allow for a more direct examination of this adherence, including in successive and shorter time windows. This approach could also contribute to mitigating the effect of different exposure times to the outcome between older and newer contributors, improving the model’s robustness over time.
Additionally, the preprocessing carried out in this work did not include a specific step for correlation or association analysis between the explanatory variables. Considering that the database is predominantly composed of categorical variables, future works may explore association measures suitable for the nature of these attributes, as well as evaluate possible redundancy relationships between the variables used. This analysis can contribute to broadening the understanding of the factors associated with the predictions and to improving the interpretability of the models, making the tool more transparent and explainable for users.
Another opportunity for future work consists of incorporating external sources of information, such as Google Street View images, which can provide additional elements about the existence and physical structure of establishments. The choice not to use this type of data in this work stemmed from the proposal to develop a simpler model, based exclusively on cadastral information and more direct operational implementation. Although location images can be useful, their application presents limitations, such as possible temporal lag and the demand for additional technological and financial resources, which exceeded the scope of this study.
In summary, the results confirmed the viability of exclusively using registration data, complemented by variables derived from repetition and concentration, to train machine learning models capable of estimating and ranking the risk of ACTIVE taxpayers presenting indications of irregularities. The Random Forest model, with the inclusion of the DTE variable, stood out for its better overall discriminative performance and for a behavior more aligned with the operational needs of preventive screening, offering an effective balance between detection capacity and the volume of due diligence to be carried out by the tax administration.
4. Conclusion
The present study aimed to develop and evaluate supervised machine learning methods, using exclusively registration data, to estimate and rank the risk of taxpayers with an ACTIVE status presenting indications compatible with registration irregularities. The feasibility of employing registration data, complemented by variables derived from repetition and concentration, to train models capable of performing this estimation was verified. Among the evaluated models, Random Forest with the inclusion of the Electronic Tax Domicile (DTE) accreditation variable stood out for its best overall discriminative performance, with PR-AUC of 0.710322 and ROC-AUC of 0.977932. It was observed that the exclusion of the DTE variable reduced predictive performance and increased the volume of flagged ACTIVE taxpayers, evidencing the sensitivity of this attribute and the trade-off between model sensitivity and the operational volume of due diligence. The ability to generate an operationally useful risk ranking for prioritizing on-site verifications constitutes a central finding.
The main contribution of this work lies in offering a preventive screening tool that allows the tax administration to optimize resource allocation, directing enforcement efforts towards ACTIVE taxpayers with a higher probability of irregularity, before significant volumes of document issuance are consolidated. However, the study presented limitations, such as the evaluation focused on discriminative capacity and ranking performance, without a direct analysis of the adherence of the scores to the effectively observed risk, and the absence of a specific correlation analysis step between the explanatory variables. For future studies, it is suggested to incorporate the results of on-site diligence to validate the adherence of the scores, explore association measures for categorical variables, and evaluate the inclusion of external information sources, such as location images, considering operational feasibility and predictive gain.
Bibliographic References
Board of Governors of the Federal Reserve System; Office of the Comptroller of the Currency. 2011. Supervisory Guidance on Model Risk Management (SR 11-7 / OCC 2011-12). Washington, DC. Disponível em: <https://www.federalreserve.gov/supervisionreg/srletters/sr1107.htm>. Acesso em: 13 dez. 2025.
Breiman, L. 2001. Random forests. Machine Learning, v. 45, n. 1, p. 5-32. Disponível em: <https://doi.org/10.1023/A:1010933404324>. Acesso em: 01 nov. 2025.
Financial Stability Board. 2017. Artificial intelligence and machine learning in financial services. Basel: FSB. Disponível em: <https://www.fsb.org/2017/11/artificial-intelligence-and-machine-learning-in-financial-service/>. Acesso em: 01 fev. 2026.
Jarude, J. N. D. M. 2020. O Estado da Arte da Fiscalização Tributária Federal e o Uso de Inteligência Artificial. Dissertação (Mestrado em Direito). Universidade de Marília, Marília, SP, Brasil.
Melo, A. L. 2023. Auditoria fiscal como determinante do comportamento de conformidade tributária: um estudo de caso com contribuintes corporativos no Brasil. Dissertação (Mestrado em Administração). Escola de Administração, Universidade Federal da Bahia, Salvador, BA, Brasil.
Nunes, A. T. 2020. O caminho oculto da sonegação no Brasil: causas, consequências e propostas. Dissertação (Mestrado em Administração Pública). Escola Brasileira de Administração Pública e de Empresas, Fundação Getúlio Vargas, Rio de Janeiro, RJ, Brasil.
Organização para a Cooperação e Desenvolvimento Econômico (OECD). 2004. Compliance Risk Management: Managing and Improving Tax Compliance. Paris: OECD. Disponível em: <https://www.oecd.org/tax/administration/33818656.pdf>. Acesso em: 15 dez. 2025.
Pinto, R. C.; Fávero, P. B. 2022. Aplicação de rede neural artificial para auxiliar a fiscalização tributária na identificação de empresas fantasmas. Trabalho de Conclusão de Curso (MBA em Data Science e Analytics). USP/ESALQ, Piracicaba, SP, Brasil.
Saito, T.; Rehmsmeier, M. 2015. The Precision-Recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS ONE, v. 10, n. 3, e0118432. Disponível em: <https://doi.org/10.1371/journal.pone.0118432>. Acesso em: 15 jan. 2026.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform