Skip to main content
QUICK REVIEW

[Paper Review] Credit Card Fraud Detection Using Advanced Transformer Model

Chang Yu, Yongshun Xu|arXiv (Cornell University)|Jun 6, 2024
Imbalanced Data Classification TechniquesComputer Science8 citations
TL;DR

The paper adapts a Transformer encoder architecture to credit card fraud detection, showing superior performance over classic models (e.g., XGBoost, TabNet) on European transaction data from 2023 and 2013, using balanced data and various preprocessing steps.

ABSTRACT

With the proliferation of various online and mobile payment systems, credit card fraud has emerged as a significant threat to financial security. This study focuses on innovative applications of the latest Transformer models for more robust and precise fraud detection. To ensure the reliability of the data, we meticulously processed the data sources, balancing the dataset to address the issue of data sparsity significantly. We also selected highly correlated vectors to strengthen the training process.To guarantee the reliability and practicality of the new Transformer model, we conducted performance comparisons with several widely adopted models, including Support Vector Machine (SVM), Random Forest, Neural Network, and Logistic Regression. We rigorously compared these models using metrics such as Precision, Recall, and F1 Score. Through these detailed analyses and comparisons, we present to the readers a highly efficient and powerful anti-fraud mechanism with promising prospects. The results demonstrate that the Transformer model not only excels in traditional applications but also shows great potential in niche areas like fraud detection, offering a substantial advancement in the field.

Motivation & Objective

  • Address the challenge of detecting highly imbalanced credit card fraud data.
  • Evaluate Transformer-based models against standard classifiers on European transaction datasets.
  • Assess the impact of data preprocessing (balancing, outlier handling, dimensionality reduction) on model performance.
  • Demonstrate generalization by cross-validating across time-period data (2013 and 2023).

Proposed method

  • Balance the dataset via resampling to create an equal number of fraudulent and non-fraudulent samples.
  • Perform feature correlation analysis to enhance training with correlated vectors.
  • Apply outlier detection and removal using the Interquartile Range (IQR) method.
  • Use three-dimensionality reduction techniques (T-SNE, PCA, Truncated SVD) for visualization and analysis.
  • Implement a Transformer encoder with self-attention and feed-forward networks for fraud detection.
  • Compare Transformer with Logistic Regression, KNN, SVM, Decision Tree, Neural Network, XGBoost, and TabNet using Precision, Recall, F1-score, and ROC AUC.

Experimental results

Research questions

  • RQ1Can a Transformer-based model outperform traditional machine learning methods for credit card fraud detection on European datasets?
  • RQ2Does dataset balancing and preprocessing improve fraud detection performance of advanced models?
  • RQ3How well does the Transformer generalize across different time periods (2013 vs 2023) in fraud detection tasks?

Key findings

  • Transformer achieves the highest metrics among all models on 2023 data: Precision 0.998, Recall 0.998, F1-score 0.998, ROC AUC 0.99.
  • On 2023 data, XGBoost and TabNet perform worse than the Transformer across examined metrics.
  • On 2013 data, Transformer maintains Precision 0.998, Recall 0.998, F1-score 0.998, ROC AUC 0.98, outperforming other models including TabNet (F1 0.67).
  • Cross-validation across 2013 and 2023 data confirms the Transformer's superior generalization and stability in fraud detection.
  • Subsampling to balance classes improved correlation and predictive stability, reducing overfitting and enhancing interpretability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.