Mitigating Financial Fraud: A Hybrid SMOTE-Tomek and Stacked Ensemble Model Approach
Abstract
Credit card fraud is a menace to financial institutions, but detection is compromised by highly imbalanced transaction datasets. This study proposes an advanced machine learning framework optimized for fraud detection. To address the issue of data imbalance, SMOTE-Tomek Links is applied to synthetically generate minority fraud cases while removing noisy, overlapping majority-class instances. Recursive Feature Elimination (RFE) is deployed to identify the optimal features, and RandomizedSearchCV automates hyperparameter optimization. The study introduces a Stacked Logistic Regression ensemble to combine the predictive capacity of optimized Random Forest and XGBoost base classifiers. The model’s effectiveness is assessed using seven evaluation methods: accuracy, recall, precision, confusion matrix, F1-score, Receiver Operating Characteristic Area Under the Curve (ROC-AUC) score and the Area Under the Precision-Recall Curve (AUC-PR) score. Findings reveal that the proposed stacked model performance surpasses both individual base models. While achieving deceptively high baseline accuracy across all models, the stacked ensemble delivers a superior AUC-PR score of 0.8207 and an F1-score of 0.93. This minimizes the confusion matrix misclassifications to just 20 False Negatives and 5 False Positives. The framework provides a cost-optimized operational engine that aggressively mitigates bank fraud losses while successfully shielding legitimate cardholders from accidental checkout declines.