Application of the Random Forest Algorithm in Identifying Suspicious Financial Transactions in Internal Auditing

Autori

DOI:

https://doi.org/10.46793/Rev26114.1MV

Ključne reči:

anomaly detection, classification, Random Forest, internal auditing, financial fraud, machine learning

Apstrakt

This paper applies the Random Forest algorithm to detect suspicious financial transactions in internal auditing. A classification model was developed using a publicly available Kaggle dataset to distinguish legitimate from potentially fraudulent transactions. Performance was assessed using accuracy, precision, recall, F1-score, average precision, and a confusion matrix. For the fraud class, the model achieved recall of 0.79, precision of 0.90, F1-score of 0.84, and average precision of 0.86. The results indicate that Random Forest may support the identification of higher-risk transactions for further internal audit review.

Reference

(1) Alizamini, H., & Radović, M. (2024). Efikasnost algoritama mašinskog učenja u analizi finansijskih rizika. Oditor, 10(2), 45–62. https://doi.org/10.5937/Oditor2402045A

(2) Bao, Y., Ke, B., Li, B., Yu, Y. J., & Zhang, J. (2020). Detecting accounting fraud in publicly traded US firms using a machine learning approach. Journal of Accounting Research, 58(1), 199–235. https://doi.org/10.1111/1475-679X.12292

(3) Beke-Trivunac, J. (2021). Uloga interne revizije u prevenciji i otkrivanju kriminalnih radnji i prevara. Revizor, 24(93), 7–19

(4) Beke-Trivunac, J., & Radović, M. (2023). Forenzičko računovodstvo i interna revizija kao stubovi korporativne bezbednosti. Oditor, 9(1), 29–44. https://doi.org/10.5937/Oditor2301029B

(5) Bonrath, A., & Eulerich, M. (2024). Internal auditing's role in preventing and detecting fraud: An empirical analysis. International Journal of Auditing, 28(4), 615–631. https://doi.org/10.1111/ijau.12342

(6) Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324

(7) Budimir, N. (2023). Revizija i digitalizacija. Revizor, 26(102–103), 95–111. https://doi.org/10.56362/Rev23102099B

(8) Cvetković, D., & Dimitrijević, D. S. (2024). Analytical techniques in the forensic investigation of fraudulent financial reporting. Revizor, 27(108), 235–249. https://doi.org/10.46793/Rev24108235C

(9) Dechow, P. M., Ge, W., Larson, C. R., & Sloan, R. G. (2011). Predicting material accounting misstatements. Contemporary Accounting Research, 28(1), 17–82. https://doi.org/10.1111/j.1911-3846.2010.01044.x

(10) Global Association of Certified Fraud Examiners. (2022). Occupational fraud 2022: A report to the nations. Association of Certified Fraud Examiners. https://www.acfe.com/report-to-the-nations/2022/

(11) Gligorijević, N., Popović, S. D., Nikolić, V., Viduka, D., & Popović, S. (2025). A hybrid SWARA-NWA framework for evaluating AI-based image recognition algorithms in educational technology applications. International Journal of Cognitive Research in Science, Engineering and Education, 13(3), 719–735. https://doi.org/10.23947/2334-8496-2025-13-3-719-735

(12) Gligorijević, N., Viduka, D., Popović, S., Strugarević, D., & Čabrić, V. (2026). A hybrid MCDM framework for selecting optimal AI algorithms in real-time infrared signal detection systems. Studies in Informatics and Control, 35(1), 45–55. https://doi.org/10.24846/v35i1y202604

(13) Hu, T. (2025, April 18–20). Financial fraud detection system based on improved random forest and gradient boosting machine (GBM) [Paper presentation]. 2025 5th Asia-Pacific Conference on Communications Technology and Computer Science (ACCTCS), Wuhan, China. IEEE. https://doi.org/10.1109/ACCTCS64158.2025.00150

(14) Jeremić, N., & Luka, S. (2024). Veštačka inteligencija – izazovi upotrebe u reviziji. Revizor, 27(107), 43–58. https://doi.org/10.56362/Rev24107043J

(15) Kotsiantis, S., Koumanakos, E., Tzelepis, D., & Tampakas, V. (2006). Forecasting fraudulent financial statements using data mining. International Journal of Computational Intelligence, 3(2), 104–110.

(16) Liu, C., Chan, Y., Kazmi, S. H. A., & Fu, H. (2015). Financial fraud detection model: Based on random forest. International Journal of Economics and Finance, 7(7), 178–188. https://doi.org/10.5539/ijef.v7n7p178

(17) Marjanović, S., & Stanišić, N. (2024). Upravljanje rizikom od prevara primenom savremenih IT alata. Oditor, 10(1), 75–92. https://doi.org/10.5937/Oditor2401075M

(18) Mićić, M. (2025). Forensic accounting in the digital era: Modern technologies in the detection of financial fraud. Revizor, 28(112), 61–78. https://doi.org/10.46793/Rev25112.061M

(19) Ngai, E. W. T., Hu, Y., Wong, Y. H., Chen, Y., & Sun, X. (2011). The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literature. Decision Support Systems, 50(3), 559–569. https://doi.org/10.1016/j.dss.2010.08.006

(20) Nguyen, M., Nguyen Hoang To, L., & Nguyen Viet, H. (2022). A model for detecting accounting frauds by using machine learning. Journal of Financial Crime, 29(4), 1245–1258. https://doi.org/10.1108/JFC-03-2021-0062

(21) Olowu, O., Adeleye, A. O., Omokanye, A. O., Ajayi, A. M., Adepoju, A. O., Omole, O. M., & Chianumba, E. C. (2024). AI-driven fraud detection in banking: A systematic review of data science approaches to enhancing cybersecurity. GSC Advanced Research and Reviews, 21(2), 227–237. https://doi.org/10.30574/gscarr.2024.21.2.0345

(22) Phua, C., Lee, V., Smith, K., & Gayler, R. (2010). A comprehensive survey of data mining-based fraud detection research. Artificial Intelligence Review, 34(1), 1–14. https://doi.org/10.1007/s10462-009-9119-y

(23) Popović, S., Viduka, D., Bašić, A., Dimić, V., Djukic, D., Nikolić, V., & Stokić, A. (2025). Optimization of artificial intelligence algorithm selection: PIPRECIA-S model and multi-criteria analysis. Electronics, 14(3), Article 562. https://doi.org/10.3390/electronics14030562

(24) Stanković, J., & Beke-Trivunac, J. (2022). Metodologija procene rizika od materijalno značajnih grešaka u finansijskim izveštajima. Revizor, 25(97), 21–35.

(25) West, J., & Bhattacharya, M. (2016). Intelligent financial fraud detection: A comprehensive review. Computers & Security, 57, 47–66. https://doi.org/10.1016/j.cose.2015.09.005

##submission.downloads##

Objavljeno

2026-10-25

Broj časopisa

Sekcija

Articles