High-Precision Credit Card Fraud Detection on Imbalanced Data Using Random Forest and 1D Convolutional Neural Networks

Authors

  • Dhika Widiyanto Politeknik Sawunggalih Aji Author

    DOI:

    https://doi.org/10.65780/k6hexq72

    Keywords:

    Credit card fraud detection, class imbalance, Random Forest, 1D Convolutional Neural Network, SMOTE

    Abstract

    Credit card fraud has become a significant challenge for the financial industry, resulting in substantial monetary losses and eroding consumer trust. Detecting fraudulent transactions is particularly challenging due to the severe class imbalance and high dimensionality of transaction data. This study proposes a systematic pipeline for fraud detection, integrating stratified sampling, Synthetic Minority Over-sampling Technique (SMOTE), and comparative evaluation of Random Forest (RF) and 1D Convolutional Neural Network (CNN) models. The performance of both models is assessed using standard metrics, including Accuracy, Precision, Recall, F1-Score, and Area Under the Receiver Operating Characteristic Curve (AUC). Experimental results demonstrate that RF achieves high precision (99.45%) on unseen test data, ensuring reliable detection of legitimate transactions. In comparison, CNN achieves near-perfect recall (99.95%) on training data, indicating a strong capacity to identify fraudulent patterns. Temporal analysis of transaction data further reveals distinct patterns between legitimate and fraudulent activities, highlighting the predictive importance of the Time feature. The findings provide practical guidance for deploying machine learning models in real-world financial settings: RF offers a reliable solution for immediate implementation, whereas CNN presents a promising approach for future enhancement after further validation.

    Downloads

    Download data is not yet available.

    References

    [1] Jacob Obafemi Fatoki, ‘The influence of cyber security on financial fraud in the Nigerian banking industry’, Int. J. Sci. Res. Arch., vol. 9, no. 2, pp. 503–515, Aug. 2023, doi: 10.30574/ijsra.2023.9.2.0609.

    [2] F. Akbar, J. Hussain, M. B. Usman, and D. J. Afzal, ‘The Impact of Financial Scams on Consumer Trust in the Banking Sector: A Qualitative Analysis’, International Journal of Discovery in Social Sciences, vol. 1, no. 1, Aug. 2025, doi: 10.64060/IJDSS.v1i1.5.

    [3] O. Bello, A. B. Ogundipe, D. Mohammed, A. Folorunso, O. Alonge, and C. Bello, ‘AI-Driven Approaches for Real-Time Fraud Detection in US Financial Transactions: Challenges and Opportunities’, pp. 84–102, Jan. 2023, doi: 10.37745/ejcsit.2013/vol11n684102.

    [4] E. Udeh, P. Amajuoyi, K. Adeusi, and A. Scott, ‘The role of big data in detecting and preventing financial fraud in digital transactions’, World Journal of Advanced Research and Reviews, vol. 22, pp. 1746–1760, Aug. 2024, doi: 10.30574/wjarr.2024.22.2.1575.

    [5] T. Popoola, ‘Big Data-Driven Financial Fraud Detection and Anomaly Detection Systems for Regulatory Compliance and Market Stability’, Jan. 2023, doi: 10.7753/IJCATR1209.1004.

    [6] F. Tambon et al., ‘How to certify machine learning based safety-critical systems? A systematic literature review’, Autom Softw Eng, vol. 29, no. 2, p. 38, Apr. 2022, doi: 10.1007/s10515-022-00337-x.

    [7] H. Tissot, ‘FormulAI: Designing Rule-Based Datasets for Interpretable and Challenging Machine Learning Tasks’, Artificial Intelligence and Applications, vol. 3, no. 1, pp. 72–82, 2025, doi: 10.47852/bonviewAIA42021781.

    [8] A. Olushola and J. Mart, ‘Fraud Detection using Machine Learning’, ScienceOpen Preprints, Jan. 2024, doi: 10.14293/PR2199.000647.v1.

    [9] A. Ruchay, E. Feldman, D. Cherbadzhi, and A. Sokolov, ‘The Imbalanced Classification of Fraudulent Bank Transactions Using Machine Learning’, Mathematics, vol. 11, no. 13, p. 2862, Jan. 2023, doi: 10.3390/math11132862.

    [10] E. M. Al-dahasi, R. K. Alsheikh, F. A. Khan, and G. Jeon, ‘Optimizing fraud detection in financial transactions with machine learning and imbalance mitigation’, Expert Systems, vol. 42, no. 2, p. e13682, 2025, doi: 10.1111/exsy.13682.

    [11] Kanika, J. Singla, A. K. Bashir, Y. Nam, N. U. Hasan, and U. Tariq, ‘Handling class imbalance in online transaction fraud detection’, Computers, Materials and Continua, vol. 70, no. 2, pp. 2861–2877, Sept. 2021.

    [12] A. Ali et al., ‘ADVANCED MULTIVARIATE STATISTICAL METHODS FOR HIGH DIMENSIONAL DATA MODELING, PREDICTION, AND INTERPRETATION’, Spectrum of Emerging Sciences, vol. 3, p. 19, Sept. 2025, doi: 10.5281/zenodo.17129973.

    [13] Z. Xia, Y. Chen, and C. Xu, ‘Multiview PCA: A Methodology of Feature Extraction and Dimension Reduction for High-Order Data’, IEEE Transactions on Cybernetics, vol. 52, no. 10, pp. 11068–11080, Oct. 2022, doi: 10.1109/TCYB.2021.3106485.

    [14] M. A. A. Montaser and M. Bannett, ‘Beyond Anomaly Detection: Redesigning Real-Time Financial Fraud Systems for Multi-Channel Transactions in Emerging Markets’, Baltic Journal of Multidisciplinary Research, vol. 2, no. 3, pp. 1–17, July 2025.

    [15] D. Yuan and S. Meng, ‘Temporal Feature-Based Suspicious Behavior Pattern Recognition in Cross-Border Securities Trading’, Journal of Sustainability, Policy, and Practice, vol. 1, no. 2, pp. 1–18, Aug. 2025.

    [16] P. Gupta, A. Varshney, M. R. Khan, R. Ahmed, M. Shuaib, and S. Alam, ‘Unbalanced Credit Card Fraud Detection Data: A Machine Learning-Oriented Comparative Study of Balancing Techniques’, Procedia Computer Science, vol. 218, pp. 2575–2584, 2023, doi: 10.1016/j.procs.2023.01.231.

    [17] F. O. Aghware et al., ‘Enhancing the Random Forest Model via Synthetic Minority Oversampling Technique for Credit-Card Fraud Detection’, J. Comput. Theor. Appl., vol. 1, no. 4, pp. 407–420, Mar. 2024, doi: 10.62411/jcta.10323.

    [18] S. P, A. I. R, D.Elangovan, K. D. K. Raj, L. R. V. V. L. Rahul, and R. Raja, ‘Optimizing Credit Card Fraud Detection with Random Forests and SMOTE’, Dec. 03, 2024, In Review. doi: 10.21203/rs.3.rs-5539711/v1.

    [19] A. M. Aburbeian and H. I. Ashqar, ‘Credit Card Fraud Detection Using Enhanced Random Forest Classifier for Imbalanced Data’, 2023, arXiv. doi: 10.48550/ARXIV.2303.06514.

    [20] M. Z. Mizher and A. B. Nassif, ‘Deep CNN approach for Unbalanced Credit Card Fraud Detection Data’, in 2023 Advances in Science and Engineering Technology International Conferences (ASET), Dubai, United Arab Emirates: IEEE, Feb. 2023, pp. 1–7. doi: 10.1109/ASET56582.2023.10180615.

    [21] A. Meliboev, J. Alikhanov, and W. Kim, ‘1D CNN Based Network Intrusion Detection with Normalization on Imbalanced Data’, Mar. 04, 2020, arXiv: arXiv:2003.00476. doi: 10.48550/arXiv.2003.00476.

    [22] F. A. Ghaleb, F. Saeed, M. Al-Sarem, S. N. Qasem, and T. Al-Hadhrami, ‘Ensemble Synthesized Minority Oversampling-Based Generative Adversarial Networks and Random Forest Algorithm for Credit Card Fraud Detection’, IEEE Access, vol. 11, pp. 89694–89710, 2023, doi: 10.1109/ACCESS.2023.3306621.

    [23] T.-H. Lin and J.-R. Jiang, ‘Credit Card Fraud Detection with Autoencoder and Probabilistic Random Forest’, Mathematics, vol. 9, no. 21, p. 2683, Oct. 2021, doi: 10.3390/math9212683.

    [24] W. Li, C. Wu, and S. Ruan, ‘CUS-RF-Based Credit Card Fraud Detection with Imbalanced Data’, JRACR, vol. 12, no. 3, Sept. 2022, doi: 10.54560/jracr.v12i3.332.

    [25] C. Mabani, A. A. Tuskov, and E. V. Shchanina, ‘DETECTION OF CREDIT CARD FRAUDS WITH MACHINE LEARNING SOLUTIONS: AN EXPERIMENTAL APPROACH’, НК, vol. 11, no. 3, pp. 17–28, Oct. 2022, doi: 10.12731/2070-7568-2022-11-3-17-28.

    Downloads

    Published

    2025-11-11

    How to Cite

    High-Precision Credit Card Fraud Detection on Imbalanced Data Using Random Forest and 1D Convolutional Neural Networks. (2025). Bulletin of Intelligent Machines and Algorithms, 1(1), 30-36. https://doi.org/10.65780/k6hexq72