Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Artif. Intell.

Sec. AI in Finance

Volume 8 - 2025 | doi: 10.3389/frai.2025.1643292

Enhancing Credit Card Fraud Detection Using Traditional and Deep Learning Models with Class Imbalance Mitigation

Provisionally accepted
Tahani  AlbalawiTahani AlbalawiSamia  DardouriSamia Dardouri*
  • Shaqra University, Shaqraa, Saudi Arabia

The final, formatted version of the article will be published soon.

The growing complexity of fraudulent activities poses significant challenges in detecting fraud within financial transactions. This study evaluates the performance of logistic regression, decision tree, and random forest models on a real-world credit card dataset, with a focus on addressing class imbalance and enhancing predictive accuracy. To further improve detection performance, a deep learning model incorporating focal loss was developed. The Synthetic Minority Over Sampling Technique (SMOTE) was employed to mitigate the effects of class imbalance, and hyperparameter tuning was conducted to optimize model configurations. Experimental results indicate that the random forest model achieved the best overall performance, with an accuracy of 99.95%, F1 score of 0.8256, and ROC-AUC of 0.9759. Meanwhile, the deep learning model provided a balanced output with the highest precision, demonstrating its potential in minimizing false positives. A key novelty of this work lies in the integration of focal loss within the deep learning framework, which enables the model to focus on hard-to-classify fraudulent transactions. Moreover, unlike many prior studies that evaluate models only on the Kaggle dataset, we validate our approach on both the Kaggle credit card dataset and the PaySim synthetic mobile money dataset, thereby demonstrating robustness and cross-domain generalizability. The findings highlight the effectiveness of combining data preprocessing, resampling techniques, and model optimization for robust credit card fraud detection.

Keywords: Credit card fraud detection, imbalanced data, machine learning, Logistic regression, decision tree, random forest, deep learning, SMOTE

Received: 11 Jun 2025; Accepted: 15 Sep 2025.

Copyright: © 2025 Albalawi and Dardouri. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Samia Dardouri, s.dardouri@su.edu.sa

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.