Skip to content

behnamy2010/Credit-Card-Fruad-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 

Repository files navigation

Credit Card Fraud Detection

This repository contains the implementation of the paper:
"A Distribution-Preserving Method for Resampling Combined with LightGBM-LSTM for Sequence-Wise Fraud Detection in Credit Card Transactions"
Published in Expert Systems with Applications.

Authors

  • Behnam Yousefimehr
  • Mehdi Ghatee

DOI: 10.1016/j.eswa.2024.125661


Abstract

Fraud detection is a challenging task that can be difficult to carry out. To address these challenges, a comprehensive framework has been developed which includes a new resampling method combined with a data-dependent classifier that can detect fraud effectively. The proposed framework uses two hybrid approaches that leverage the strengths of a One-Class Support Vector Machine (OCSVM) with the Synthetic Minority Oversampling Technique (SMOTE) and random undersampling. The distribution of fraud instances is effectively preserved by this innovative framework. The comparison of the probability functions of fraud data before and after resampling is demonstrated, indeed. Afterward, The outputs of our hybrid approaches are analyzed using two distinct models, the Light Gradient-Boosting Machine (LightGBM) and the Long Short-Term Memory (LSTM) model. Our case study on European credit cards has consistently demonstrated the effectiveness of our techniques over existing methods, achieving a high F1 score of 87% with a corresponding AUC score of 96% in non-sequential fraud detection and The F1 score of 85% with an AUC score of 87% in sequential fraud detection. Additionally, we have developed an innovative algorithm for determining optimal window sizes for sequence-wise fraud analysis, which recommends window sizes of 3 for the European dataset, highlighting the efficacy of sequence-wise analysis. Overall, the proposed framework, not only offers a promising solution to enhance fraud detection accuracy, but it also reduces false positives.


Dependencies

Ensure you have the following libraries installed:

  • Python 3.8+
  • numpy, pandas, matplotlib, seaborn, scipy
  • scikit-learn (for feature selection and metrics)
  • lightgbm (for LightGBM modeling)
  • tensorflow (for LSTM implementation)

Citation

If you use this repository, please cite our paper:

@article{YOUSEFIMEHR2025125661,
title = {A distribution-preserving method for resampling combined with LightGBM-LSTM for sequence-wise fraud detection in credit card transactions},
journal = {Expert Systems with Applications},
volume = {262},
pages = {125661},
year = {2025},
issn = {0957-4174},
doi = {10.1016/j.eswa.2024.125661},
author = {Behnam Yousefimehr and Mehdi Ghatee},
keywords = {Fraud detection, Credit card, Imbalanced data, Sequence-wise data, Dependency-awareness}
}

Contact

For inquiries or collaborations, please contact:
Behnam Yousefimehr
📧 behnam.y2010@aut.ac.ir

Releases

No releases published

Packages

No packages published