A robust machine learning framework for detecting temporal drift in financial fraud prevention
摘要
Credit card fraud detection is a difficult applied machine learning problem. It combines extreme class imbalance, temporal non-stationarity, and a sharp cost gap between missed fraud and false alarms. This paper presents an end-to-end experimental framework for fraud detection on the benchmark European transaction dataset (284,807 transactions; fraud prevalence 0.173%). A strict no-data-leakage protocol is enforced throughout. The data are split chronologically into training (70%), validation (15%), and test (15%) sets, and every preprocessing step — feature scaling, SHapley Additive exPlanations (SHAP)-based feature selection, and oversampling — is fitted only on the training partition. Two domain-informed features are engineered from the raw timestamp (sinusoidal hour encoding and log-transformed amount), and SHAP analysis reduces the 33-dimensional feature space to 15 features. Six oversampling strategies — SMOTE, BorderlineSMOTE, SVMSMOTE, ADASYN, SMOTEENN, and SMOTETomek — are compared across 12 classical classifiers, 3 multilayer perceptron (MLP) architectures, a purpose-built deep neural network (