Optimization of RNN and Tree-Based Models with Imbalance Handling for Fraud Detection in Digital Banking Transactions

Authors

  • Rizki Ahmad Darmawan Graduate Program of Informatics Engineering, Universitas Pamulang
  • Ahmad Musyafa Graduate Program of Informatics Engineering, Universitas Pamulang
  • Murni Handayani Graduate Program of Informatics Engineering, Universitas Pamulang

Keywords:

Fraud Detection, RNN, LSTM, GRU, BiLSTM, XGBoost, LightGBM, Hyperparameter Tuning, Imbalanced Data

Abstract

This study focuses on addressing the growing challenge of fraud detection in digital banking transactions, which has intensified alongside the rapid expansion of digital financial services. Fraud detection is particularly complex due to the highly imbalanced nature of transaction data, large data volumes, and intricate transaction patterns that make fraudulent activities difficult to identify accurately. Although previous research has applied a wide range of methods, from conventional machine learning techniques to advanced deep learning models, many approaches still face limitations in balancing high detection accuracy with computational efficiency. The main objective of this research is to compare the performance of Recurrent Neural Network (RNN)–based models, including Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Bidirectional LSTM (BiLSTM), with tree-based ensemble models such as XGBoost and LightGBM in detecting fraudulent banking transactions. To enhance model effectiveness, the study implements a comprehensive data preprocessing framework that includes data cleaning, feature engineering, and techniques for handling class imbalance, particularly the use of Synthetic Minority Over-sampling Technique (SMOTE). Furthermore, model performance is optimized through systematic hyperparameter tuning using Optuna, Hyperopt, and Keras Tuner. Evaluation is conducted using metrics suitable for imbalanced datasets, such as precision, recall, F1-score, and AUC-ROC. The expected outcome is the identification of a robust and efficient fraud detection model that improves detection accuracy and sensitivity, while offering valuable insights for both academic research and practical banking applications.

References

O. Jasa, “PERATURAN OTORITAS JASA KEUANGAN. REPUBLIK INDONESIA. NOMOR 12 /POJK.03/2021,” 2021, [Online]. Available: https://www.ojk.go.id/id/regulasi/Documents/Pages/Bank-Umum/POJK 12 - 03 -2021.pdf

“2020 ACFE Report to the Nations.” Accessed: Feb. 09, 2026. [Online]. Available: https://legacy.acfe.com/report-to-the-nations/2020/

A. C. Bahnsen, D. Aouada, and B. Ottersten, “Example-dependent cost-sensitive decision trees,” Expert Syst. Appl., vol. 42, no. 19, pp. 6609–6619, 2015.

A. Dal Pozzolo, “Adaptive machine learning for credit card fraud detection,” 2015.

F. Carcillo, A. Dal Pozzolo, Y.-A. Le Borgne, O. Caelen, Y. Mazzer, and G. Bontempi, “Scarff: a scalable framework for streaming credit card fraud detection with spark,” Inf. fusion, vol. 41, pp. 182–194, 2018.

T. Chen, “XGBoost: A Scalable Tree Boosting System,” Cornell Univ., 2016.

E. Ileberi, Y. Sun, and Z. Wang, “Performance evaluation of machine learning methods for credit card fraud detection using SMOTE and AdaBoost,” IEEE access, vol. 9, pp. 165286–165294, 2021.

S. Mittal and S. Tyagi, “Performance evaluation of machine learning algorithms for credit card fraud detection,” in 2019 9th International Conference on Cloud Computing, Data Science & Engineering (Confluence), IEEE, 2019, pp. 320–324.

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, p. 120, 2025.

A. D. Novika and A. Mujhid, “Cost-Sensitive Learning with LightGBM for Class Imbalance in Intrusion Detection Systems,” Eng. Math. Comput. Sci. J., vol. 7, no. 2, pp. 147–154, 2025.

P. Branco, L. Torgo, and R. P. Ribeiro, “A survey of predictive modeling on imbalanced domains,” ACM Comput. Surv., vol. 49, no. 2, pp. 1–50, 2016.

J. Bergstra and Y. Bengio, “Random search for hyper-parameter optimization,” J. Mach. Learn. Res., vol. 13, no. 1, pp. 281–305, 2012.

T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama, “Optuna: A next-generation hyperparameter optimization framework,” in Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, 2019, pp. 2623–2631.

G. Ke et al., “Lightgbm: A highly efficient gradient boosting decision tree,” Adv. Neural Inf. Process. Syst., vol. 30, 2017.

A. Mehdary, A. Chehri, A. Jakimi, and R. Saadane, “Hyperparameter optimization with genetic algorithms and XGBoost: a step forward in smart grid fraud detection,” sensors, vol. 24, no. 4, p. 1230, 2024.

A. Rezaei, M. Yazdinejad, and M. Sookhak, “Credit Card Fraud Detection Using Tree-Based Algorithms For Highly Imbalanced Data,” in 2024 IEEE 3rd International Conference on Computing and Machine Intelligence (ICMI), IEEE, 2024, pp. 1–6.

U. Fiore, A. De Santis, F. Perla, P. Zanetti, and F. Palmieri, “Using generative adversarial networks for improving classification effectiveness in credit card fraud detection,” Inf. Sci. (Ny)., vol. 479, pp. 448–455, 2019.

K. R. L. Reddy, “Advancing Anomaly Detection in Banking Transactions: Leveraging Natural Language Processing and Artificial Neural Network Methods.” The George Washington University, 2026.

J. L. S. Saquicela, L. A. B. Herrera, V. P. M. Hidalgo, V. E. C. Cajas, P. D. L. Á. P. Villacis, and V. E. R. Arboleda, “Credit Card Fraud Detection Using Bidirectional LSTM with Attention Mechanism on Sequential Spending Behavior,” in 2025 Second International Conference on Intelligent Technologies for Sustainable Electric and Communications Systems (iTech SECOM), IEEE, 2025, pp. 1–7.

A. Agarwal, M. Iqbal, B. Mitra, V. Kumar, and N. Lal, “Hybrid CNN-BILSTM-attention based identification and prevention system for banking transactions.,” 2021.

P. Feng, “Hybrid BiLSTM-Transformer Model for Identifying Fraudulent Transactions in Financial Systems,” J. Comput. Sci. Softw. Appl., vol. 5, no. 3, 2025.

D. Sharma, “A survey of image forensics: Exploring forgery detection in image colorization,” 2025.

Downloads

Published

2026-02-10

How to Cite

Darmawan, R. A., Musyafa, A., & Handayani, M. (2026). Optimization of RNN and Tree-Based Models with Imbalance Handling for Fraud Detection in Digital Banking Transactions. Jurnal Ilmiah Multidisiplin Indonesia (JIM-ID), 5(02), 347–366. Retrieved from https://ejournal.seaninstitute.or.id/index.php/esaprom/article/view/8057