Cost-Sensitive XGBoost with Adaptive Decision Threshold Optimization for Fraud Detection in Highly Imbalanced Digital Transactions

Putrama Alkhairi(1*), Imam Saputra(2), Abdul Karim(3), Erfan Babaee Tırkolaee(4),

(1) Informatics Management, STIKOM Tunas Bangsa, Pematangsiantar, North Sumatra, Indonesia
(2) Management Program, Sekolah Tinggi Ilmu Manajemen Sukma, Medan, Indonesia
(3) Information Technology Study Program, Faculty of Science and Technology, Universitas Labuhanbatu, Indonesia
(4) İstinye Üniversitesi, Istanbul, Turki
(*) Corresponding Author

Abstract


Detecting fraudulent card transactions under extreme class imbalance requires models whose missed-fraud costs and false alarms are evaluated separately. This study assesses cost-sensitive XGBoost with Bayesian optimization and an intended adaptive decision threshold on 284,807 anonymized transactions. A chronological partition provides 170,884 training, 56,961 development, and 56,962 held-out testing records. The comparison includes unweighted XGBoost, class weighting, threshold-only adjustment, their combination, random search, and the proposed Bayesian procedure. Using hypothetical costs of 20 per false negative and one per false positive, the Bayesian model reduces cost per transaction from 0.007795 to 0.006759, a 13.29% relative reduction. Fraud recall increases from 70.67% to 74.67%, while precision falls from 92.98% to 91.80% and false alarms rise from four to five. All reported models retain a decision cutoff of 0.5, preventing any independent claim of improvement from adaptive threshold adjustment. The proposed model performs best on the assumed cost metric in this held-out comparison, but the result remains contingent on the cost ratio, anonymized history, and single temporal split.

Full Text:

PDF

References


L. Hernandez Aros, L. X. Bustamante Molano, F. Gutierrez-Portela, J. J. Moreno Hernandez, and M. S. Rodríguez Barrero, “Financial fraud detection through the application of machine learning techniques: a literature review,” Humanit. Soc. Sci. Commun., 2024, doi: 10.1057/s41599-024-03606-0.

K. G. Dastidar, O. Caelen, and M. Granitzer, “Machine Learning Methods for Credit Card Fraud Detection: A Survey,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3487298.

I. Y. Hafez, A. Y. Hafez, A. Saleh, A. A. Abd El-Mageed, and A. A. Abohany, “A systematic review of AI-enhanced techniques in credit card fraud detection,” J. Big Data, 2025, doi: 10.1186/s40537-024-01048-8.

J. Yang, D. Zhu, Z. Wang, and Z. Zhang, “Decoupled focal loss and bayesian temperature fusion XGBoost for imbalanced credit card fraud detection,” Sci. Rep., 2026, doi: 10.1038/s41598-026-64196-2.

W. Chen, K. Yang, Z. Yu, Y. Shi, and C. L. P. Chen, “A survey on imbalanced learning: latest research, applications and future directions,” Artif. Intell. Rev., 2024, doi: 10.1007/s10462-024-10759-6.

V. N. T. Sang, “Enhancing Credit Card Fraud Detection under Severe Class Imbalance using Cost-Sensitive Learning and Threshold Optimization,” EAI Endorsed Transactions on Intelligent Systems and Machine Learning Applications, 2026, doi: 10.4108/eetismla.12078.

A. Huang, Y. Wang, P. Zhou, X. Zhang, S. Tsai, and L. Chen, “Dynamic Calibration of Decision Thresholds for Financial Anomaly Detection: Verification With Payment Platform Information and Data,” Journal of Global Information Management, 2025, doi: 10.4018/JGIM.395852.

T. de Menezes e Silva Filho, H. Song, M. Perello-Nieto, R. Santos-Rodriguez, M. Kull, and P. Flach, “Classifier calibration: A survey on how to assess and improve predicted class probabilities,” Mach. Learn., 2023, doi: 10.1007/s10994-023-06336-7.

B. Bischl et al., “Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges,” WIREs Data Mining and Knowledge Discovery, 2023, doi: 10.1002/widm.1484.

M. Tayebi and S. El Kafhali, “A novel approach based on XGBoost classifier and Bayesian optimization for credit card fraud detection,” Cyber Security and Applications, 2025, doi: 10.1016/j.csa.2025.100093.

B. Demir Sezgin and Ş. M. Kaya, “A Constraint-Aware Soft Voting Ensemble Framework for Credit Card Fraud Detection under Operational Threshold Optimization,” Turkish Journal of Science and Technology, 2026, doi: 10.55525/tjst.1931327.

E. Richardson, R. Trevizani, J. A. Greenbaum, H. Carter, M. Nielsen, and B. Peters, “The receiver operating characteristic curve accurately assesses imbalanced datasets,” Patterns, 2024, doi: 10.1016/j.patter.2024.100994.

I. D. Mienye and N. Jere, “Deep Learning for Credit Card Fraud Detection: A Review of Algorithms, Challenges, and Solutions,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3426955.

M. A. Talukder, M. Khalid, and M. A. Uddin, “An integrated multistage ensemble machine learning model for fraudulent transaction detection,” J. Big Data, 2024, doi: 10.1186/s40537-024-00996-5.

M. Z. Yüzügüldü, H. O. Altun, A. Çoşkun, and E. Şener, “A multi-criteria ranking framework for machine learning algorithms: credit card fraud detection,” International Transactions in Operational Research, 2026, doi: 10.1111/itor.70245.

S. Arora, R. Rani, and N. Saxena, “A systematic review on detection and adaptation of concept drift in streaming data using machine learning techniques,” WIREs Data Mining and Knowledge Discovery, 2024, doi: 10.1002/widm.1536.

Z. Salekshahrezaee, J. L. Leevy, and T. M. Khoshgoftaar, “The effect of feature extraction and data sampling on credit card fraud detection,” J. Big Data, 2023, doi: 10.1186/s40537-023-00684-w.

D. Breskuvienė and G. Dzemyda, “Enhancing credit card fraud detection: highly imbalanced data case,” J. Big Data, 2024, doi: 10.1186/s40537-024-01059-5.

R. K. L. Kennedy, F. Villanustre, T. M. Khoshgoftaar, and Z. Salekshahrezaee, “Synthesizing class labels for highly imbalanced credit card fraud detection data,” J. Big Data, 2024, doi: 10.1186/s40537-024-00897-7.

R. K. L. Kennedy, F. Villanustre, and T. M. Khoshgoftaar, “Unsupervised feature selection and class labeling for credit card fraud,” J. Big Data, 2025, doi: 10.1186/s40537-025-01154-1.

M. A. Walauskis and T. M. Khoshgoftaar, “Scalable unsupervised labeling with SHAP feature selection for fraud detection in imbalanced data,” J. Big Data, 2025, doi: 10.1186/s40537-025-01248-w.

I. Almubark, “Advanced Credit Card Fraud Detection: An Ensemble Learning Using Random Under Sampling and Two-Stage Thresholding,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3519335.

E. Ileberi and Y. Sun, “A Hybrid Deep Learning Ensemble Model for Credit Card Fraud Detection,” IEEE Access, 2024, doi: 10.1109/ACCESS.2024.3502542.

H. Huang, B. Liu, X. Xue, J. Cao, and X. Chen, “Imbalanced credit card fraud detection data: A solution based on hybrid neural network and clustering-based undersampling technique,” Appl. Soft Comput., 2024, doi: 10.1016/j.asoc.2024.111368.

A. H. Salem, S. M. Azzam, O. E. Emam, and A. A. Abohany, “From chaos to clarity: unraveling credit card fraud with BGVOA-LS,” J. Big Data, 2025, doi: 10.1186/s40537-025-01274-8.

F. Atban, M. Y. Küçükkara, and C. Bayılmış, “Enhancing variational quantum classifier performance with meta-heuristic feature selection for credit card fraud detection,” Eur. Phys. J. Spec. Top., 2025, doi: 10.1140/epjs/s11734-025-01703-y.

M. A. Alrasheedi, “Enhancing Fraud Detection in Credit Card Transactions: A Comparative Study of Machine Learning Models,” Comput. Econ., 2026, doi: 10.1007/s10614-025-11071-3.

S. S. Awad, A. A. Hamza, M. A. Sobh, and A. M. Bahaa-Eldin, “Applying explainable artificial intelligence to interpret supervised ensemble learning models for robust credit card fraud detection,” Sci. Rep., 2026, doi: 10.1038/s41598-026-49939-5.

E. Z. Çavdar and A. Bozanta, “AI-based credit card fraud detection: a machine learning approach with model explainability on real-world data,” Knowl. Inf. Syst., 2026, doi: 10.1007/s10115-026-02773-7.

C. N. Nwafor, O. Nwafor, and S. Brahma, “Enhancing transparency and fairness in automated credit decisions: an explainable novel hybrid machine learning approach,” Sci. Rep., 2024, doi: 10.1038/s41598-024-75026-8.

M. A. Ghalwash, S. M. Abdelrazek, N. H. Eladawi, and H. A. Ghalwash, “Enhancing credit card fraud detection using DBSCAN-augmented disjunctive voting ensemble,” Sci. Rep., 2025, doi: 10.1038/s41598-025-22960-w.

L. A. Alharbi and F. Alsulami, “A SMOTE enhanced multi stream deep learning ensemble for credit card fraud detection,” Sci. Rep., 2026, doi: 10.1038/s41598-026-75271-z.

M. Zavvar et al., “A hybrid deep learning framework using synthetic oversampling, autoencoder, convolutional neural networks, and an attention mechanism for credit card fraud detection,” J. Big Data, 2026, doi: 10.1186/s40537-025-01331-2.

D. Lukats, O. Zielinski, A. Hahn, and F. Stahl, “A benchmark and survey of fully unsupervised concept drift detectors on real-world data streams,” Int. J. Data Sci. Anal., 2025, doi: 10.1007/s41060-024-00620-y.

D. Danang and T. W. A. Putra, “Cost-Sensitive Fraud Detection with Reliability Calibration: A Practical Pipeline with XGBoost and Focal-Proxy Reweighting,” International Journal of Information Technology and Business, 2025, doi: 10.24246/ijiteb.812025.13-24.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Zahra: Bulletin Big data, Data Science and Artificial Intelligence

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.