Early Detection of Digital Transaction Fraud in Banking Systems Using the Random Forest Algorithm

Authors

  • Made Bagus Deva Dhammayogi University of Udayana, Kabupaten Badung
  • Cokorda Rai Adi Pramartha University of Udayana, Kabupaten Badung

DOI:

https://doi.org/10.25126/jitecs.2026112912

Abstract

This research aims to develop methods for preventing and detecting cyberattacks in banking systems by leveraging machine learning techniques.[1] Cybersecurity threats are becoming increasingly complex and pose significant risks to banking institutions and their customers through various attack types including fraud, intrusion, and malware.[2][3], [4]The data science approach utilizing machine learning enables automatic and real-time identification of anomalous patterns in transactional and security log data.[2], [5] This study utilizes transaction datasets and security logs as primary data sources. Random Forest and XGBoost models were selected due to their capability to handle high-dimensional data and class imbalance. Model evaluation was conducted using accuracy, F1-score, and ROC-AUC metrics. The prototype implementation includes a visualization dashboard to assist end-users.[6], [7] Random Forest and XGBoost models are selected due to their capability to handle high-dimensional data and class imbalance.[8], [9] Systematic preprocessing and feature engineering steps will address missing values, normalization, and categorical encoding.[10], [11] Moreover, model evaluation will be conducted using metrics such as accuracy, F1-score, and ROC-AUC to ensure optimal performance.[12] The prototype system implementation includes a visualization dashboard and automatic prediction features for end-users.[13] The expected outcomes of this research are improved early detection and prevention of cyber threats in the banking sector, contributing to the advancement of AI-based security systems in Indonesia.[14] Experimental results demonstrate that tree-based ensemble learning models significantly outperform SVM in handling extreme class imbalance. XGBoost achieved the best performance with an ROC-AUC score of 0.995, followed by Random Forest at 0.992, whereas SVM achieved only 0.935. Model transparency analysis using SHAP confirmed that transaction frequency and spikes in transaction amounts were the most critical predictors for identifying fraud. Overall, this research concludes that integrating XGBoost with the SHAP approach yields a fraud detection system that offers not only high accuracy but also clear interpretability to support decision-making in the digital banking sector.

Downloads

Download data is not yet available.

References

1. M. Ahsan, K. E. Nygard, R. Gomes, M. M. Chowdhury, N. Rifat, and J. F. Connolly, “Cybersecurity Threats and Their Mitigation Approaches Using Machine Learning—A Review,” Sep. 01, 2022, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/jcp2030027.

2. I. H. Sarker, A. S. M. Kayes, S. Badsha, H. Alqahtani, P. Watters, and A. Ng, “Cybersecurity data science: an overview from machine learning perspective,” J. Big Data, vol. 7, no. 1, Dec. 2020, doi: 10.1186/s40537-020-00318-5.

3. W. M. Sahib, Z. A. A. Alhuseen, I. D. I. Saeedi, A. A. Abdulkadhem, and A. Ahmed, “Leveraging machine learning for enhanced cybersecurity: an intrusion detection system,” Service Oriented Computing and Applications, vol. 19, no. 2, pp. 107–124, Jun. 2025, doi: 10.1007/s11761-024-00435-6.

4. A. Abu-Khadrah, S. Al-Washmi, A. Mohd Ali, and M. Jarrah, “Cyber-fraud detection methodology by using machine learning algorithms,” International Journal of Electrical and Computer Engineering (IJECE), vol. 15, no. 4, p. 3949, Aug. 2025, doi: 10.11591/ijece.v15i4.pp3949-3956.

5. A. I. P Esmeralda and N. K. Hidayah Fadhilah, “Educational Studies and Research Journal Fraud Detection and Machine Learning in Auditing: A Systematic Literature Review,” ESRJ, vol. 3, no. 1, p. 2026, 2025, doi: 10.60036/y8p1k791.

6. W. A. Al-Khater, S. Al-Maadeed, A. A. Ahmed, A. S. Sadiq, and M. K. Khan, “Comprehensive review of cybercrime detection techniques,” IEEE Access, vol. 8, pp. 137293–137311, 2020, doi: 10.1109/ACCESS.2020.3011259.

7. P. Thanathamathee, S. Sawangarreerak, S. Chantamunee, and D. N. M. Nizam, “SHAP-Instance Weighted and Anchor Explainable AI: Enhancing XGBoost for Financial Fraud Detection,” Emerging Science Journal, vol. 8, no. 6, pp. 2404–2430, Dec. 2024, doi: 10.28991/ESJ-2024-08-06-016.

8. A. Handa, A. Sharma, and S. K. Shukla, “Machine learning in cybersecurity: A review,” Jul. 01, 2019, Wiley-Blackwell. doi: 10.1002/widm.1306.

9. A. S. Zanah, B. Calista, W. N. Dewi, and P. Sokibi, “Deteksi Dini Fraud pada Layanan Keuangan Digital Menggunakan Metode Random Forest,” 2025. [Online]. Available: https://ejournal.unjaya.ac.id/index.php/ijds

10. Ugochukwu Ikechukwu Okoli, Ogugua Chimezie Obi, Adebunmi Okechukwu Adewusi, and Temitayo Oluwaseun Abrahams, “Machine learning in cybersecurity: A review of threat detection and defense mechanisms,” World Journal of Advanced Research and Reviews, vol. 21, no. 1, pp. 2286–2295, Jan. 2024, doi: 10.30574/wjarr.2024.21.1.0315.

11. A. C. Ramesh and Ms. Uma K, “A Stacked LightGBM-XGBoost Model with SHAP-Based Fraud Detection for Financial Transactions,” International Scientific Journal of Engineering and Management, vol. 04, no. 03, pp. 1–7, Mar. 2025, doi: 10.55041/isjem02496.

12. M. M. Mijwil, I. E. Salem, and M. M. Ismaeel, “The Significance of Machine Learning and Deep Learning Techniques in Cybersecurity: A Comprehensive Review,” 2023, College of Education, Al-Iraqia University. doi: 10.52866/ijcsm.2023.01.01.008.

13. R. Jagadish, “Threat Detection in Cloud Banking Using Machine Learning,” International Journal of Science and Research (IJSR), vol. 13, no. 3, pp. 1181–1184, Mar. 2024, doi: 10.21275/sr24318150126.

14. H. Dong and I. Kotenko, “Cybersecurity in the AI era: analyzing the impact of machine learning on intrusion detection,” May 01, 2025, Springer Science and Business Media Deutschland GmbH. doi: 10.1007/s10115-025-02366-w.

15. N. Bagam, S. K. Shiramshetty, M. Mothey, S. N. Annam, and S. Bussa, “Machine Learning Applications in Telecom and Banking,” Integrated Journal for Research in Arts and Humanities, vol. 4, no. 6, pp. 57–69, Nov. 2024, doi: 10.55544/ijrah.4.6.8.

16. S. Wakhare and N. Heffernan, “Securing Finance System Using Deep Learning Techniques: Credit Card Fraud Detection MSc Research Project Cybersecurity,” 2024.

17. MACHINE LEARNING FOR DETECTING CYBERCRIME IN THE BANKING SECTOR,” Journal of Southwest Jiaotong University, vol. 58, no. 5, 2023, doi: 10.35741/issn.0258-2724.58.5.60.

18. I Wayan Sui Suadnyana, “Bank BPD Bali Dibobol Transaksi Ilegal, Dana Nasabah Rp 21.5 Miliar Lenyap,” https://www.detik.com/bali/hukum-dan-kriminal/d-7030469/bank-bpd-bali-dibobol-transaksi-ilegal-dana-nasabah-rp-21-5-miliar-lenyap#google_vignette. Accessed: Feb. 17, 2026. [Online]. Available: https://www.detik.com/bali/hukum-dan-kriminal/d-7030469/bank-bpd-bali-dibobol-transaksi-ilegal-dana-nasabah-rp-21-5-miliar-lenyap

19. M. Leo, S. Sharma, and K. Maddulety, “Machine learning in banking risk management: A literature review,” Risks, vol. 7, no. 1, Mar. 2019, doi: 10.3390/risks7010029.

20. C. Lurie, “Impact of False Alarms in Machine Learning-Based Anti-Fraud Systems The Economic and Reputational Consequences,” 2025.

21. S. D. S, “Multi Model Fraud Analytics in Digital Payments: A UPI-Based Approach,” 2025. [Online]. Available: www.ijfmr.com

22. S. Ahmad, M. A. Haque, H. A. M. Abdeljaber, A. E. M. Eljialy, J. Nazeer, and B. K. Mishra, “Machine Learning Approaches in Cybersecurity to Enhance Security in Future Network Technologies,” Apr. 01, 2025, Springer. doi: 10.1007/s42979-025-03853-1.

23. J. P. Bharadiya, “Machine Learning in Cybersecurity: Techniques and Challenges.” [Online]. Available: www.ajpojournals.org

24. W. Sun, Z. Qi, and Q. Shen, “High-Recall Deep Learning: A Gated Recurrent Unit Approach to Bank Account Fraud Detection on Imbalanced Data,” Nov. 19, 2025. doi: 10.21203/rs.3.rs-8136120/v1.

25. K. Achuthan, S. Sankaran, S. Roy, and R. Raman, “Integrating sustainability into cybersecurity: insights from machine learning based topic modeling,” Discover Sustainability, vol. 6, no. 1, Dec. 2025, doi: 10.1007/s43621-024-00754-w.

26. S. S. Akhi et al., “Enhancing Banking Cybersecurity: An Ensemble-Based Predictive Machine Learning Approach,” The American Journal of Engineering and Technology, vol. 07, no. 03, pp. 88–97, Mar. 2025, doi: 10.37547/tajet/Volume07Issue03-07.

27. N. Baisholan, J. E. Dietz, S. Gnatyuk, M. Turdalyuly, E. T. Matson, and K. Baisholanova, “FraudX AI: An Interpretable Machine Learning Framework for Credit Card Fraud Detection on Imbalanced Datasets,” Computers, vol. 14, no. 4, Apr. 2025, doi: 10.3390/computers14040120.

28. David, Robet, and Hendri, “Journal of Artificial Intelligence and Engineering Applications Implementation of the Random Forest Algorithm for Financial Transaction Fraud Detection,” 2025. [Online]. Available: https://ioinformatic.org/

29. G. Airlangga, “Comparative Analysis of Machine Learning Models for Credit Card Fraud Detection in Imbalanced Datasets,” Journal of Computer Networks, Architecture and High Performance Computing, vol. 6, no. 2, pp. 858–866, Jun. 2024, doi: 10.47709/cnahpc.v6i2.3816.

30. S. Ahmad, “Enhancing Fraud Detection in Financial Services Using Artificial Intelligence,” International Journal of Scientific Research and Management (IJSRM), vol. 13, no. 08, pp. 2514–2572, Aug. 2025, doi: 10.18535/ijsrm/v13i08.ec04.

31. M. I. Akazue, I. A. Debekeme, A. E. Edje, C. Asuai, and U. J. Osame, “UNMASKING FRAUDSTERS: Ensemble Features Selection to Enhance Random Forest Fraud Detection,” Journal of Computing Theories and Applications, vol. 1, no. 2, pp. 201–211, Dec. 2023, doi: 10.33633/jcta.v1i2.9462.

32. N. Hamdi, “Enhancing Cybersecurity in smart grid: a review of machine learning approaches,” Telecommun. Syst., vol. 88, no. 2, Jun. 2025, doi: 10.1007/s11235-025-01308-9.

33. T. H. Kim, A. Srinivasulu, R. Chinthaginjala, J. Dhakshayani, X. Zhao, and S. Obaidur Rab, “Enhancing cybersecurity through script development using machine and deep learning for advanced threat mitigation,” Sci. Rep., vol. 15, no. 1, Dec. 2025, doi: 10.1038/s41598-025-92676-4.

34. T. Chen, R. Sun, T. Ma, and S. Sergeev, “Recent Progress on Financial Risk Detection in the Context of Transaction Fraud Based on Machine Learning Algorithms,” Journal of Risk and Financial Management, vol. 19, no. 1, p. 14, Dec. 2025, doi: 10.3390/jrfm19010014.

Downloads

Published

2026-09-07

Issue

Section

Articles

How to Cite

Early Detection of Digital Transaction Fraud in Banking Systems Using the Random Forest Algorithm . (2026). Journal of Information Technology and Computer Science, 11(2), 267-279. https://doi.org/10.25126/jitecs.2026112912