Implementation of the Random Forest Algorithm for Financial Transaction Fraud Detection
DOI:
https://doi.org/10.59934/jaiea.v5i1.1635Keywords:
Fraud Detection, Random Forest, Machine Learning, Financial Transactions, Digital SecurityAbstract
Fraud detection in financial transactions is a major challenge for the banking and fintech industries, especially with the increasing volume of digital transactions. This study aims to implement the Random Forest algorithm in machine learning to detect suspicious financial transactions. The Random Forest algorithm was chosen due to its ability to handle complex data and produce accurate predictions. This research uses a financial transaction dataset consisting of various features such as transaction amount, location, payment method, and user activity patterns. The data undergoes preprocessing stages, including handling missing values, normalization, and oversampling techniques to address data imbalance. The Random Forest model is then developed and evaluated using accuracy, precision, recall, and F1-Score metrics to assess its fraud detection performance. The results show that the Random Forest model performs well in detecting fraudulent transactions with a high level of accuracy. Analysis of the confusion matrix also indicates that the model is able to reduce the number of false negatives, which is a crucial aspect in preventing losses due to illegal transactions. Additionally, a feature correlation heatmap is used to identify the most influential variables in fraud prediction. With the implementation of this Random Forest-based system, it is expected that the financial industry can enhance early detection of suspicious activities and strengthen security in digital transactions.
Downloads
References
K. Rizkiyah, L. Nurmayanti, R. D. N. Macdhy, and A. Yusuf, “PENGARUH DIGITAL PAYMENT TERHADAP PERILAKU KONSUMEN DI ERA REVOLUSI INDUSTRI 4.0 (Studi Kasus Pengguna Platform Digital Payment OVO),” Manag. Insight J. Ilm. Manaj., vol. 16, no. 1, pp. 107–126, 2021.
T. S. Lestari and D. A. N. Sirodj, “Klasifikasi Penipuan Transaksi Kartu Kredit Menggunakan Metode Random Forest,” J. Ris. Stat., vol. 1, no. 2, pp. 160–167, 2022.
P. T. S. Ningsih, M. Gusvarizon, and R. Hermawan, “Analisis Sistem Pendeteksi Penipuan Transaksi Kartu Kredit dengan Algoritma Machine Learning,” J. Teknol. Inform. dan Komput., vol. 8, no. 2, pp. 386–401, 2022.
R. A. Billah, K. S., & Saputra, “Pendeteksian Penipuan Menggunakan Pendekatan Metode Random Forest,” 2024.
D. R. M. Mandyara, “Dampak Kecerdasan Buatan Dan Pembelajaran Mesin Terhadap Pendidikan: Tinjauan Bibliometrik,” J. PenKoMi Kaji. Pendidik. dan Ekon., vol. 7, no. 1, pp. 291–298, 2024.
R. A. Putra, “Penerapan Machine Learning Dalam Deteksi Kecurangan Pada Transaksi Keuangan Online,” J. Dunia Data, vol. 1, no. 4, pp. 1–16, 2024.
R. S. Nurhalizah, R. Ardianto, and P. Purwono, “Analisis Supervised dan Unsupervised Learning pada Machine Learning: Systematic Literature Review,” J. Ilmu Komput. dan Inform., vol. 4, no. 1, pp. 61–72, 2024.
E. Mardiani et al., “Penerapan Algoritma Supervised Learning untuk Klasifikasi Data Music Listening,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 3, no. 2, pp. 115–124, 2023.
E. Fitri, “Analisis Perbandingan Metode Regresi Linier, Random Forest Regression dan Gradient Boosted Trees Regression Method untuk Prediksi Harga Rumah,” J. Appl. Comput. Sci. Technol., vol. 4, no. 1, pp. 58–64, 2023.
D. Mualfah, W. Fadila, and R. Firdaus, “Teknik SMOTE untuk Mengatasi Imbalance Data pada Deteksi Penyakit Stroke Menggunakan Algoritma Random Forest,” J. CoSciTech (Computer Sci. Inf. Technol., vol. 3, no. 2, pp. 107–113, 2022.
I. Werdiningsih et al., “Identifikasi Penipuan Kartu Kredit Pada Transaksi Ilegal Menggunakan Algoritma Random Forest dan Decision Tree,” J. Sisfokom (Sistem Inf. dan Komputer), vol. 12, no. 3, pp. 477–484, 2023.
R. Armiani and E. P. Agustini, “Analisa Fraud Pada Transaksi Kartu Kredit Menggunakan Algoritma Random Forest,” J. Teknol. Inf. dan Terap., vol. 9, no. 2, pp. 118–126, 2022.
M. R. Givari, M. R. Sulaeman, and Y. Umaidah, “Perbandingan Algoritma SVM, Random Forest Dan XGBoost Untuk Penentuan Persetujuan Pengajuan Kredit,” Nuansa Inform., vol. 16, no. 1, pp. 141–149, 2022.
D. R. K. Saputra, Y. V. Via, and A. N. Sihananto, “Deteksi Anomali Menggunakan Ensemble Learning Dan Random Oversampling Pada Penipuan Transaksi Keuangan,” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 3, 2024.
F. Zamachsari and N. Puspitasari, “Penerapan Deep Learning dalam Deteksi Penipuan Transaksi Keuangan Secara Elektronik,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 5, no. 2, pp. 203–212, 2021.
G. W. M. Kurniawan, “Pendeteksian Penipuan Menggunakan Pendekatan Metode Klasifikasi Random Forest,” 2025.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.







