Detecting and Analyzing Anomalies in City Expenditure Time Series
DOI:
https://doi.org/10.5753/jis.2026.7072Keywords:
Outlier detection, Time series, Ranking Approach, E-governmentAbstract
This paper presents an enhanced approach for detecting and analyzing anomalies in public expenditure time series. The method combines statistical techniques and machine learning models to identify unusual spending behaviors and to rank expenditure items according to both the frequency of anomalies and the monetary impact involved. The statistically generated anomalies produce suspicion alerts of potential fraud, with the objective of prioritizing cases and directing human audit efforts more effectively. In this extended version, we introduce a finer-grained analysis that examines spending patterns at a more detailed level within the governmental budget structure, allowing the detection of irregularities that may not be visible under more aggregated views. The approach is validated on a real-world dataset comprising more than one million city expenditure records from the state of Minas Gerais, and the results demonstrate its ability to reveal irregularities that may remain hidden under higher levels of aggregation.
Downloads
References
Alfian, A., Ritchi, H., and Adrianto, Z. (2023). Fraud analytics practices in public-sector transactions: a systematic review. Journal of Public Budgeting, Accounting & Financial Management, 35(5):685–710. DOI: https://doi.org/10.1108/JPBAFM-11-2022-0175.
Blázquez-García, A. et al. (2021). A review on outlier/anomaly detection in time series data. ACM Computing Surveys, 54(3):1–33. DOI: https://doi.org/10.1145/3444690.
Braz, C. S., Dutra, M. T., Oliveira, G. P., Costa, L. L., Silva, M. O., Brandão, M. A., Lacerda, A., and Pappa, G. L. (2024). Exploring irregularities in brazilian public bids: An in-depth analysis on small companies. J. Interact. Syst., 15(1):349–361. DOI: https://doi.org/10.5753/JIS.2024.3836.
Braz, C. S. et al. (2023). Análise de irregularidades em licitações públicas com foco em empresas de pequeno porte. In WCGE, pages 94–105. SBC. Title in English: “Analysis of Irregularities in Public Procurement with Focus on Small Companies”. [in Portuguese]. DOI: https://doi.org/10.5753/wcge.2023.230254.
Brazil (2025). Brazilian technical budget manual 2026. Ministry of Planning and Budget, Federal Budget Secretariat. [link]. Accessed on 21 May 2026.
Breunig, M. M. et al. (2000). Lof: identifying density-based local outliers. SIGMOD Rec., 29(2):93–104. DOI: https://doi.org/10.1145/335191.335388.
Costa, L. G. L. et al. (2024). Quanto Custa: Banco de Preços de Compras Públicas do Estado de Minas Gerais. In SBBD DS-CoPS. SBC. Title in English: “Quanto Custa: Price Database for Public Procurement of the State of Minas Gerais”. [in Portuguese]. DOI: https://doi.org/10.5753/sbbd_estendido.2024.243804.
Cuturi, M. et al. (2017). Soft-dtw: a differentiable loss function for time-series. In ICML, pages 894–903. PMLR. https://dl.acm.org/doi/10.5555/3305381.3305474. Accessed on 18 May 2026.
Darban, Z. Z. et al. (2024). Deep learning for time series anomaly detection: A survey. ACM Comput. Surv., 57(1). DOI: https://doi.org/10.1145/3691338.
Dutra, M. T., Costa, L. G., Oliveira, G. P., Silva, M. O., and Pappa, G. L. (2025). Detecçao e análise de anomalias em séries temporais de despesas municipais. In Latin American Symposium on Digital Government (LASDiGov), pages 121–132. SBC. Title in English: “Detection and Analysis of Anomalies in City Expenditure Time Series”. [in Portuguese]. DOI: https://doi.org/10.5753/lasdigov.2025.8935.
Gomide, L. D. et al. (2023). Mineração de dados sobre despesas públicas de municípios mineiros para gerar alertas de fraudes. In SBBD, pages 378–383. SBC. Title in English: “Data Mining on Public Expenditures of Municipalities in the State of Minas Gerais to Generate Fraud Alerts”. [in Portuguese]. DOI: https://doi.org/10.5753/sbbd.2023.232788.
Handoko, B. L. et al. (2022). The effect of skepticism, big data analytics to financial fraud detection moderated by forensic accounting. In ICEEG, page 123–130. DOI: https://doi.org/10.1145/3537693.3537703.
Hethu Avinash, D. et al. (2024). Integrating level shift anomaly detection for fault diagnosis of battery management system for lithium-ion batteries. IEEE Access, 12:116071–116084. DOI: https://doi.org/10.1109/ACCESS.2024.3445955.
Hyndman, R. and Athanasopoulos, G. (2021). Forecasting: Principles and Practice. OTexts, 3nd edition. [link]. Accessed on 21 May 2026.
Li, B., Kaplan, B., Lazirko, M., and Kogan, A. (2025). Unsupervised outlier detection in audit analytics: A case study using usa spending data. DOI: https://doi.org/10.48550/arXiv.2509.19366.
Liu, F. T., Ting, K. M., and Zhou, Z. (2008). Isolation forest. In ICDM, pages 413–422. IEEE Comp. Society. DOI: https://doi.org/10.1109/ICDM.2008.17.
Malhotra, P. et al. (2015). Long short term memory networks for anomaly detection in time series. In ESANN, volume 89, page 94. [link]. Accessed on 18 May 2026.
Mendes, B. M. A. et al. (2023). Impacto de Doações Eleitorais no Faturamento de Empresas: Um Estudo nas Eleições Municipais em Minas Gerais. In SBBD, pages 420–425. SBC. Title in English: “Impact of Electoral Donations on Company Revenues: A Study of Municipal Elections in Minas Gerais”. [in Portuguese]. DOI: https://doi.org/10.5753/sbbd.2023.233278.
Mongwe, W. T. et al. (2020). The efficacy of financial ratios for fraud detection using self organising maps. In SSCI, pages 1100–1106. IEEE. DOI: https://doi.org/10.1109/SSCI47803.2020.9308602.
MPMG (2024a). Court accepts complaint filed by mpmg against former mayor of poté for fraud in public procurement. [link]. News report. Accessed on 21 May 2026.
MPMG (2024b). Mpmg charges mayor and education secretary for involvement in procurement fraud in padre paraíso. [link]. News report. Accessed on 21 May 2026.
MPMG (2024c). Mpmg charges mayor and municipal attorney for contract without public procurement in ijaci. [link]. News report. Accessed on 21 May 2026.
MPMG (2024d). Mpmg files lawsuit against mayor and others for fraud in public procurement in ipatinga. [link]. News report. Accessed on 21 May 2026.
MPMG (2024e). Mpmg investigates procurement waiver and fraud in public contract execution in pouso alegre. [link]. News report. Accessed on 21 May 2026.
MPMG (2024f). Operation investigates scheme of fraud in public procurement and public examination in delta, minas gerais. [link]. News report. Accessed on 21 May 2026.
MPMG (2024g). Public agents and businessman from serranos charged with fraud in procurement of medicines. [link]. News report. Accessed on 21 May 2026.
No, W. G., Lee, K., Huang, F., and Li, Q. (2019). Multidimensional audit data selection (mads): A framework for using data analytics in the audit data selection process. Accounting Horizons, 33(3):127–140. DOI: https://doi.org/10.2308/acch-52453.
Oliveira, F. B. et al. (2024). Machine learning and time series analysis to forecast hotel room prices. In BRACIS, pages 358–371. Springer. DOI: https://doi.org/10.1007/978-3-031-79035-5_25.
Oliveira, G. P. et al. (2023a). Assessing data quality inconsistencies in brazilian governmental data. Journal of Information and Data Management, 14(1). DOI: https://doi.org/10.5753/jidm.2023.3220.
Oliveira, G. P. et al. (2023b). Ranqueamento de licitações públicas a partir de alertas de fraude. In BraSNAM, pages 1–12. SBC. Title in English: “Ranking Public Procurement Processes Based on Fraud Alerts”. [in Portuguese]. DOI: https://doi.org/10.5753/brasnam.2023.232105.
Schneider dos Santos, E., Machado dos Santos, M., Castro, M., and Tyska Carvalho, J. (2025). Detection of fraud in public procurement using data-driven methods: a systematic mapping study. EPJ Data Science, 14(1):52. DOI: https://doi.org/10.1140/epjds/s13688-025-00569-3.
Silva, C. A. et al. (2020). Consciência, Prevenção e Detecção contra Fraude: Estudo com Auditores Internos e Contadores do Setor Público Brasileiro. In USP International Conference on Accounting. Title in English: “Fraud Awareness, Prevention, and Detection: A Study with Internal Auditors and Accountants in the Brazilian Public Sector”. [in Portuguese]. [link]. Accessed on 18 May 2026.
Silva, M. O., Costa, L. L., Gomide, L. D., dos Santos, G. B., Oliveira, G. P., Brandão, M. A., Lacerda, A., and Pappa, G. L. (2024). Overpricing analysis in brazilian public bidding items. J. Interact. Syst., 15(1):130–142. DOI: https://doi.org/10.5753/JIS.2024.3831.
Silva, M. O. et al. (2023). Análise de sobrepreço em itens de licitações públicas. In WCGE, pages 118–129. SBC. Title in English: “Analysis of Overpricing in Items of Public Procurement Bids”. [in Portuguese]. DOI: https://doi.org/10.5753/wcge.2023.230608.
Zafar, U. and Wu, F. (2026). Methodological challenges in explainable ai for fraud detection: a systematic literature review. Artificial Intelligence Review, 59(4):115. DOI: https://doi.org/10.1007/s10462-026-11516-7.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Marco Túlio Dutra, Lucas G. L. Costa, Gabriel P. Oliveira, Mariana O. Silva, Gisele L. Pappa

This work is licensed under a Creative Commons Attribution 4.0 International License.
JIS is free of charge for authors and readers, and all papers published by JIS follow the Creative Commons Attribution 4.0 International (CC BY 4.0) license.


