IDEAS home Printed from https://ideas.repec.org/a/etm/ijsrst/v12y2025i3id929.html

An Optimized XGBoost Framework for Real-Time Credit Card Fraud Detection: Addressing Class Imbalance with Hybrid SMOTE-ENN Resampling

Author

Listed:
  • Hemangini Patel
  • Mrugesh Patel
  • Krinal Savani

Abstract

Financial fraud, especially in the form of credit card fraud, presents considerable threats to both consumers and businesses, thus requiring sophisticated detection mechanisms. This paper introduces an enhanced framework based on XGBoost to tackle essential issues in fraud detection: class imbalance, the need for real-time processing, and the importance of model interpretability. Using the Kaggle Credit Card Fraud Dataset (which includes 285,807 transactions with a fraud rate of 0.17%), we apply a SMOTE-ENN hybrid resampling method to equalize class distributions and create features (derived from PCA on V1–V28 and temporal metrics) for effective training. The model incorporates cost-sensitive learning by imposing penalties that are 10 times greater for false negatives, and it employs Youden’s J statistic to fine-tune decision thresholds (0.32). The experimental findings show a 92% F1-score and an AUC-ROC of 0.98, surpassing LightGBM (89% F1) and LSTM networks (90% F1) while achieving a crucial inference latency of 12ms for real-time payment gateways. Analysis of errors indicates strategies to address false positives (by whitelisting high amounts) and false negatives (through spend velocity features). The scalability of the framework is confirmed through a simulation of 1 million transactions per second on AWS, which demonstrates a throughput of 985,000 transactions per second.

Suggested Citation

  • Hemangini Patel & Mrugesh Patel & Krinal Savani, 2025. "An Optimized XGBoost Framework for Real-Time Credit Card Fraud Detection: Addressing Class Imbalance with Hybrid SMOTE-ENN Resampling," International Journal of Scientific Research in Science and Technology, Technoscience Academy, vol. 12(3), pages 1129-1136, June.
  • Handle: RePEc:etm:ijsrst:v12:y2025:i3:id:929
    DOI: 10.32628/IJSRST25123122
    as

    Download full text from publisher

    File URL: https://ijsrst.com/home/article/view/IJSRST25123122
    File Function: Abstract page
    Download Restriction: no

    File URL: https://ijsrst.com/home/article/download/IJSRST25123122/IJSRST25123122
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32628/IJSRST25123122?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:etm:ijsrst:v12:y2025:i3:id:929. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (email available below). General contact details of provider: https://ijsrst.com/home .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.