An Adaptive Behavioral Fraud Detection Framework Using XGBoost and Isolation Forest for Risk-Based Decision-Making in Digital Marketing
Abstract
This study develops and evaluates an Adaptive Behavioral Fraud Detection Framework for risk-based decision-making in digital marketing. The framework integrates supervised fraud prediction, unsupervised anomaly detection, and behavioral risk modelling into a unified risk score, followed by probability calibration, risk stratification, explainability, and temporal monitoring. A Design Science Research approach is employed to construct and evaluate the framework using a publicly available dataset containing 1,000 digital marketing activities recorded between January 1 and February 29, 2024. The dataset is divided chronologically into 80% development and 20% test observations, with preprocessing and model optimization restricted to information available in the development period. The supervised XGBoost model achieves a precision-recall area under the curve of 0.9965, an F1-score of 0.9753, and a Matthews correlation coefficient of 0.9155. The Isolation Forest and Behavioral Risk Score components achieve precision-recall areas under the curve of 0.9647 and 0.9889, respectively. A central empirical finding is that end-to-end optimization assigns the entire integration weight to the supervised fraud probability, indicating that the anomaly and behavioral components do not provide additional ranking gains under the selected optimization criterion. Platt scaling reduces the Brier Score from 0.0529 to 0.0354 without altering ranking performance. The calibrated score produces four ordered risk levels, with fraud rates increasing from 0.0370 in the lowest level to 0.9853 in the highest level, while 94.37% of fraudulent test observations are assigned to the highest-risk category. A five-window rolling simulation identifies three windows requiring retraining review based on a Brier Score increase exceeding 10% relative to the baseline. These findings provide a proof-of-concept for risk-based, explainable, and monitorable fraud decision support, while the atypical class distribution, limited label provenance, short observation period, and absence of adversarial and latency evaluation constrain generalizability to operational environments.
Keywords
Full Text:
PDFReferences
B. Gayatri, A. S. Charitha, A. Sri, S. Reddy, G. Gowtham, and R. Kiran, “Detection Of Fake Ad Clicks Using Data-Driven Machine Learing Models,” Int. J. Engg. Res. & Sci. & Tech, vol. 22, no. 1, p. 2026, 2026, [Online]. Available: https://ijerst.org/index.php/ijerst
A. Yin and B. Li, “XGBoost-Based Fraud Detection and Risk Assessment in E-commerce Transactions,” in Proceedings of 2025 2nd International Conference on Big Data and Digital Management, ICBDDM 2025, Association for Computing Machinery, Inc, Nov. 2025, pp. 505–511. doi: 10.1145/3768801.3768881.
Ms. Hemangini Patel, Mrugesh Patel, and Ms. Krinal Savani, “An Optimized XGBoost Framework for Real-Time Credit Card Fraud Detection: Addressing Class Imbalance with Hybrid SMOTE-ENN Resampling,” Int. J. Sci. Res. Sci. Technol., vol. 12, no. 3, pp. 1129–1136, Jun. 2025, doi: 10.32628/ijsrst25123122.
M. Ram Pratap Singh, “A Review on Voice-based Scam Detection Using Machine Learning and Speech Analytics,” Journal of Science Engineering Technology and Management Sciences, vol. 3, no. 5, pp. 271–279, May 2026, doi: 10.64771/jsetms.2026.v03.i05.pp271-279.
L. Guo, R. Song, J. Wu, Z. Xu, and F. Zhao, “Integrating a machine learning-driven fraud detection system based on a risk management framework,” Applied and Computational Engineering, vol. 87, no. 1, pp. 80–86, Jul. 2024, doi: 10.54254/2755-2721/87/20241541.
M. Whahidur Rahman, M. S. Hoddain, and Nurujjaman, “An AI-Based Hybrid Framework for Real-Time Fraud Detection in Financial Transactions,” American Journal of Economics and Business Management, vol. 8, no. 2, pp. 6621–6651, 2025.
S. S. and S. M., “Smart and Explainable Credit Card Fraud Detection Using XGBoost and SHAP,” Journal of ISMAC, vol. 7, no. 2, pp. 155–169, Jul. 2025, doi: 10.36548/jismac.2025.2.004.
P. Hajek, M. Z. Abedin, and U. Sivarajah, “Fraud Detection in Mobile Payment Systems using an XGBoost-based Framework,” Information Systems Frontiers, vol. 25, no. 5, pp. 1985–2003, Oct. 2023, doi: 10.1007/s10796-022-10346-6.
M. Lutfi Azizan et al., “Comparative Analysis of SMOTE-Based Random Forest and XGBoost Algorithms for Handling Imbalanced Datasets in Credit Card Fraud Detection. Muhamad Lutfi Azizan et Comparative Analysis of SMOTE-Based Random Forest and XGBoost Algorithms for Handling Imbalanced Datasets in Credit Card Fraud Detection,” Jurnal Multidisiplin Sahombu, vol. 6, no. 01, pp. 42–49, 2026.
N. D. Anh Luong and S. Xie, “Explainable ensemble machine learning for financial transaction fraud detection: Insights from XGBoost and deep neural networks,” Journal of Finance and Data Science, vol. 12, Dec. 2026, doi: 10.1016/j.jfds.2026.100195.
I. M. Silaban, M. Syahputra Novelan, and M. I. Sarif, “Instal : Jurnal Komputer Transaction Fraud Detection in Savings and Loan Cooperatives Using Xgboost with Shap Explanations (Shapley Additive Explanations)”, doi: 10.54209/jurnalinstall. v18i06.535.
B. S. Kumar, P. P. Yadav, and M. R. Reddy, “An intelligent approach to detect and predict online fraud transaction using XGBoost algorithm,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 35, no. 3, pp. 1491–1498, Sep. 2024, doi: 10.11591/ijeecs.v35.i3.pp1491-1498.
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, vol. 3, Dec. 2025, doi: 10.1016/j.csa.2025.100093.
O. Lawal, A. Paschal, A. Okolie, C. Obunadike, M. O. Ikhifa, and S. I. Edozie, “An Explainable XGBoost Framework for Detecting Fraudulent Financial Transactions,” J. Sci. Res. Rep., vol. 31, no. 12, pp. 244–255, Dec. 2025, doi: 10.9734/jsrr/2025/v31i123769.
T. Majumder and D. Mishra, “Financial Fraud Detection for Credit Card Using XGBoost & SMOTE,” Nanotechnol. Percept., vol. 20, no. S15, pp. 32–50, 2024, [Online]. Available: www.nano-ntp.com
T. V. P. Monteiro, G. J. B. C. Castor, C. G. Castillo Correa, H. R. C. Arias, D. Z. Ñaupari Huatuco, and Y. P. Molina Rodriguez, “A Hybrid Machine Learning Framework for Electricity Fraud Detection: Integrating Isolation Forest and XGBoost for Real-World Utility Data,” Energies (Basel)., vol. 18, no. 23, Dec. 2025, doi: 10.3390/en18236249.
C. Cakiroglu, F. Batool, K. Islam, and M. L. Nehdi, “Explainable Ensemble Learning Predictive Model For Thermal Conductivity Of Cement-Based Foam,” Constr. Build. Mater., vol. 421, Mar. 2024, doi: 10.1016/j.conbuildmat.2024.135663.
D. N. Jawza, M. I. Mazdadi, A. Farmadi, T. H. Saragih, D. Kartini, and V. Abdullayev, “Enhancing Diabetes Prediction Accuracy Using Random Forest and XGBoost with PSO and GA-Based Feature Selection,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 7, no. 2, pp. 295–306, Feb. 2025, doi: 10.35882/jeeemi.v7i2.626.
T. Liu, T. Chong, G. Xu, X. Wang, P. Peng, and J. L. Ma, “XGBoost-LR: A method for network traffic anomaly detection,” International Journal of Cognitive Computing in Engineering, vol. 7, no. 1, pp. 325–333, Dec. 2026, doi: 10.1016/j.ijcce.2025.11.007.
N. F. Idris, M. A. Ismail, M. I. M. Jaya, A. O. Ibrahim, A. W. Abulfaraj, and F. Binzagr, “Stacking with Recursive Feature Elimination-Isolation Forest for classification of diabetes mellitus,” PLoS One, vol. 19, no. 5 May, May 2024, doi: 10.1371/journal.pone.0302595.
M. Shanaa and S. Abdallah, “A Hybrid Anomaly Detection Framework Combining Supervised and Unsupervised Learning for Credit Card Fraud Detection,” F1000Res., vol. 14, p. 664, Jul. 2025, doi: 10.12688/f1000research.166350.1.
H. Nallabothula, “An Analysis of Machine Learning Alogarithms For Detection of Credit Card Fraud,” reseach study, Tilburg University, Tillberg, 2022.
A. Maurya, A. Kumar, and S. Prakash, “Credit Card Fraud Detection using XGBoost Classifier with a Threshold Value,” Jun. 10, 2022. doi: 10.21203/rs.3.rs-1722294/v1.
M. Lister et al., “Fraud Detection Using Isolation Forest For RFID-Based Attendance Monitoring System,” Sci.Int.(Lahore), vol. 34, no. 6, pp. 511–517, 2022.
N. Alamsyah, Budiman, and V. Claudia Jennifer Kaunang, “Anomaly Detection In Walking Data Using Isolation Forest: An Unsupervised Learning Approach,” Oct. 2025.
M. A. A. El-Enen et al., “Fraud Detection in Medical Insurance Claims Using Majority Voting of Multiple Unsupervised Algorithms,” in Procedia Computer Science, Elsevier B.V., 2024, pp. 9–22. doi: 10.1016/j.procs.2024.10.173.
A. Akbiyik et al., Current and Prospective Approaches, Methods, and Techniques for Management Information Systems Research, 1st ed. Turki: Sakarya University Esentepe Campus, 2024.
E. Walker, S. Mitchell, B. Carter, O. Reynolds, and C. Paul, “Adaptive AI Frameworks for Financial Fraud and Cyber Threat Detection,” 2026, Research Gate.
DOI: https://doi.org/10.47738/jads.v7i4.1562
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)