Real-Time Detection of Credit Card Fraud in Imbalanced Datasets Using Machine Learning and Ensemble Approaches
DOI:
https://doi.org/10.21015/vtcs.v13i2.2298Abstract
The increase in digital payments has become more prominent and challenging in this short period of time and poses a great threat to both banks and customers. The traditional rule-based fraud detection systems cannot handle the evolving attack patterns, large volumes of data, and significantly biased transaction datasets. This work proposed a comprehensive machine learning-based fraud detection system that integrates advanced data preparation, efficient resampling approaches, and a wide variety of supervised learning algorithms to overcome these challenges. It compares seven machine learning models using Random Under-Sampling and Synthetic Minority Over-Sampling Technique. All the models went through the same preprocessing pipeline, which was used to enhance the reliability of the model through feature scaling and anomaly control. This paper used the Latency-Aware Accuracy Index, a metric that considers latency and outperforms the traditional metrics. It provides empirical evidence that boosting-based models such as LightGBM, CatBoost and XGBoost using SMOTE outperform classical classifiers with respect to prediction performance and inference time efficiency. It illustrates that accuracy alone is not sufficient for practical implementation; latency plays an equally important role in minimizing financial loss by ensuring a smooth customer experience. The results indicate that ensemble learning models much exceed the performance of standard linear classifiers in balanced datasets. XGBoost demonstrated superior performance with SMOTE oversampling, getting an accuracy of 0.9898, an F1-score of 0.9898, and a LAAI of 0.9889. This shows that it is strong across different balancing approaches. On the other hand, Logistic Regression and Naïve Bayes always got accuracy values around 0.50, which shows that they could not find the complex non-linear patterns that are typical of fraud detection.
References
A. Razaque et al., “Credit card-not-present fraud detection and prevention using big data analytics algorithms,” Applied Sciences, vol. 13, no. 1, p. 57, 2022.
S. Mittal and S. Tyagi, “Performance evaluation of machine learning algorithms for credit card fraud detection,” in Proc. 9th Int. Conf. Cloud Computing, Data Science & Engineering (Confluence), IEEE, 2019, pp. 320–324.
A. Alharbi et al., “A novel text2IMG mechanism of credit card fraud detection: A deep learning approach,” Electronics, vol. 11, no. 5, p. 756, 2022.
Business Insider, “Mastercard’s AI detects credit card fraud in 50 milliseconds,” May 12, 2025.
M. Zhu et al., “Enhancing credit card fraud detection: A neural network and SMOTE integrated approach,” arXiv preprint arXiv:2405.00026, 2024.
Z. S. Rubaidi et al., “Comparative data oversampling techniques with deep learning algorithms for credit card fraud detection,” in Proc. Int. Conf. Intelligent Systems Design and Applications, Springer, 2022, pp. 286–296.
L. Ding et al., “An autoencoder-enhanced LightGBM method for credit card fraud detection,” PeerJ Computer Science, vol. 10, e2323, 2024.
Y. Sahin and E. Duman, “Detecting credit card fraud by ANN and logistic regression,” Int. J. Data Analysis Techniques and Strategies, vol. 12, no. 3, pp. 222–236, 2020.
E. W. T. Ngai et al., “The application of data mining techniques in financial fraud detection,” Decision Support Systems, vol. 50, no. 3, pp. 559–569, 2011.
C. Phua et al., “A comprehensive survey of data mining-based fraud detection research,” arXiv preprint arXiv:1009.6119, 2010.
S. Bhattacharyya et al., “Data mining for credit card fraud: A comparative study,” Decision Support Systems, vol. 50, no. 3, pp. 602–613, 2011.
N. S. Alfaiz and S. M. Fati, “Enhanced credit card fraud detection model using machine learning,” Electronics, vol. 11, no. 4, p. 662, 2022.
A. C. Bahnsen et al., “Example-dependent cost-sensitive decision trees,” Expert Systems with Applications, vol. 42, no. 19, pp. 6609–6619, 2015.
A. Haider et al., “Harnessing deep learning and language models for protein function prediction,” J. Computing Biomedical Informatics, vol. 10, no. 1, 2025.
O. Orogun, “Credit card transaction dataset for fraud detection,” Kaggle, 2023.
M. Alkaissy et al., “Fraud detection in financial transactions using machine learning techniques: A survey,” Int. J. Intelligent Computing and Cybernetics, vol. 16, no. 3, pp. 423–441, 2023.
P. Fränti and R. Mariescu-Istodor, “Precision, recall, and F1 score for evaluations,” Pattern Recognition Letters, vol. 167, pp. 55–62, 2023.
D. Fourure et al., “Evaluating models with the F1-score,” Pattern Recognition, vol. 112, 2021.
J. Gao et al., “Credit card fraud detection using machine learning,” Applied Sciences, vol. 11, no. 4, p. 1613, 2021.
M. Khayat et al., “Latency-aware deep learning models for edge computing,” Future Generation Computer Systems, vol. 144, pp. 208–219, 2023.
S. Kishor et al., “Latency analysis in machine learning for IoT systems,” J. Ambient Intelligence and Humanized Computing, vol. 12, pp. 7863–7875, 2021.
A. Lakhan et al., “Performance evaluation of ML models with latency,” Int. J. Information Technology, vol. 13, pp. 2031–2040, 2021.
T. Obi, “Evaluating fraud detection systems using F1-score,” Journal of Financial Crime, vol. 30, no. 1, pp. 101–116, 2023.
S. Sharma and K. Guleria, “Accuracy-based comparison of ML algorithms,” J. Banking and Financial Technology, vol. 7, no. 1, pp. 1–14, 2023.
M. Ali et al., “Neural network and SMOTE-based credit card fraud detection,” 2022.
M. Thimonier et al., “Anomaly detection in imbalanced datasets,” 2023.
A. Khalid et al., “Machine learning framework using ensemble methods,” 2023.
S. Mansab et al., “Ensemble learning model (LDX) for fraud detection,” 2023.
A. H. Ali and A. A. Hagag, “Enhanced AI-based financial fraud detection,” Int. J. Advanced and Applied Sciences, vol. 11, no. 10, pp. 114–121, 2024.
X. Du et al., “Hybrid AutoEncoder–LightGBM approach,” 2023.
F. Alatawi, “Real-time IoT credit card fraud detection,” 2023.
V. N. Dornadula and S. Geetha, “Credit card fraud detection using ML,” Procedia Computer Science, vol. 165, pp. 631–641, 2020.
F. K. Alarfaj et al., “State-of-the-art ML and DL for fraud detection,” IEEE Access, vol. 10, pp. 39700–39715, 2022.
S. Bagga et al., “Fraud detection using pipelining and ensemble learning,” Procedia Computer Science, vol. 173, pp. 104–112, 2020.
K. Randhawa et al., “Credit card fraud detection using AdaBoost,” IEEE Access, vol. 6, pp. 14277–14284, 2018.
A. C. Bahnsen et al., “Feature engineering strategies for fraud detection,” Expert Systems with Applications, vol. 51, pp. 134–142, 2016.
E. Esenogho et al., “Neural network ensemble with feature engineering,” IEEE Access, vol. 10, pp. 16400–16407, 2022.
A. A. Taha and S. J. Malebary, “Optimized LightGBM for fraud detection,” IEEE Access, vol. 8, pp. 25579–25587, 2020.
X. Zhang et al., “HOBA: Feature engineering for fraud detection,” Information Sciences, vol. 557, pp. 302–316, 2021.
V. Mareeswari and G. Gunasekaran, “Credit card fraud prevention using HSVM,” in Proc. ICICES, 2016.
D. Eswar, “Credit card fraud detection using ML,” in Proc. ICICCS, 2021.
A. S. Hussein et al., “Fraud detection using fuzzy rough nearest neighbor,” Int. J. Interactive Mobile Technologies, vol. 15, no. 5, pp. 24–42, 2021.
A. K. Nandi et al., “Hierarchical behavior-knowledge space model,” PLoS One, vol. 17, 2022.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY