Construction and Evaluation of Credit Card Fraud Detection Model Based on Logistic Regression — A Case Study of Kaggle Dataset
Abstract
The widespread use of online payment has led to frequent credit card fraud incidents, causing significant economic losses to financial institutions and users. Efficient fraud detection models are the focus of research in financial risk control. Based on the publicly available credit card transaction dataset from Kaggle, this paper constructs a logistic regression fraud detection model. The study involves data exploration of the dataset, handling of imbalanced data, feature selection, as well as model training and tuning. This study uses stratified sampling, StandardScaler normalization, and cross-validation to enhance data processing and model reliability. Model evaluation is conducted using confusion matrices, precision, recall rate, and AUC values. Experimental results show that the model achieves high recall but low precision under SMOTE oversampling. This model achieved an AUC-ROC of 0.9708 for the fraud category, with a recall rate of 0.92, but the accuracy rate of this model is only 0.06, which indicating a significant trade-off between detecting fraud and controlling false positives.
References
- Alenzi, H. Z., & Aljehane, N. O. (2020). Fraud detection in credit cards using logistic regression.International Journal of Advanced Computer Science and Applications, 11(12), 484–490.
- Priya, M. J., & Ahammad, H. (2025). Balancing interpretability and performance in credit card fraud detection using machine learning techniques with SMOTE and logistic regression. In2025 IEEE International Conference on Future Machine Learning and Data Science(pp. 743–748). IEEE.
- Kaggle. (2018). Credit card fraud detection dataset [Data set].Kaggle.
- Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique.Journal of Artificial Intelligence Research, 16, 321–357.
- Dal Pozzolo, A., Caelen, O., Johnson, R. A., & Bontempi, G. (2015). Calibrating probability with undersampling for unbalanced classification. In2015 IEEE Symposium Series on Computational Intelligence(pp. 159–166). IEEE.
- Amakaamazu. (2026). Fintech fraud detection: Logistic regression and random forest on the Kaggle credit card dataset. Public project results.
- MDPI. (2024). Enhancing credit card fraud detection: An ensemble machine learning approach.Big Data and Cognitive Computing, 8(1), 6. https://www.mdpi.com/2504-2289/8/1/6