Anomaly detection framework for credit card fraud in e-commerce using enhanced isolation forest: A GDPR and DPIA-compliant approach
DOI:
https://doi.org/10.64497/jssci.161Keywords:
Enhanced Isolation Forest (EIF), Credit Card Fraud Detection, General Data Protection Regulation (GDPR) Compliance, Data Protection Impact Assessment (DPIA), Anomaly Detection, Explainable AI, Unsupervised learning, Shapley Additive Explanation (SHAP)Abstract
The rapid growth of e-commerce has increased credit card fraud while simultaneously increasing concerns regarding data privacy, accountability, and regulatory compliance. Fraud detection in this domain remains challenging due to extreme class imbalance, evolving fraud patterns, and limited transparency in many machine learning models. This study proposes an enhanced isolation forest (EIF) framework that integrates hybrid normalization, Pearson correlation-based feature selection, and hyperparameter optimization using RandomizedSearchCV. Experiments were conducted on the Kaggle–ULB credit card fraud detection dataset, which contains anonymized European cardholder transactions and represents a highly imbalanced real-world setting. The proposed EIF framework improves fraud detection performance while preserving data imbalance, achieving 99.8% accuracy, 99.9% precision, 99.7% recall, 99.8% F1-score, and AUROC 0.98, outperforming baseline unsupervised anomaly detection models. The study contributes a statistically robust and explainable anomaly detection framework that integrates optimization strategies with General Data Protection Regulation (GDPR) and Data Protection Impact Assessment (DPIA) aligned data governance, supporting reliable and compliant fraud detection in intelligent e-commerce systems.
Downloads
References
[1] Aggarwal, C. C. (2015). Data Mining: The Textbook. Springer International Publishing. https://doi.org/10.1007/978-3-319-14142-8 DOI: https://doi.org/10.1007/978-3-319-14142-8
[2] Al Farizi, W. S., Hidayah, I., & Rizal, M. N. (2021). Isolation Forest Based Anomaly Detection: A Systematic Literature Review. 2021 8th International Conference on Information Technology, Computer and Electrical Engineering (ICITACEE), 118–122. https://doi.org/10.1109/ICITACEE53184.2021.9617498 DOI: https://doi.org/10.1109/ICITACEE53184.2021.9617498
[3] Alamri, M., & Ykhlef, M. (2022). Survey of Credit Card Anomaly and Fraud Detection Using Sampling Techniques. Electronics, 11(23), 4003. https://doi.org/10.3390/electronics11234003 DOI: https://doi.org/10.3390/electronics11234003
[4] Alfaiz, N. S., & Fati, S. M. (2022). Enhanced Credit Card Fraud Detection Model Using Machine Learning. Electronics, 11(4), 662. https://doi.org/10.3390/electronics11040662 DOI: https://doi.org/10.3390/electronics11040662
[5] Amiri, Z., Heidari, A., Jafari, N., & Hosseinzadeh, M. (2024). Deep study on autonomous learning techniques for complex pattern recognition in interconnected information systems. Computer Science Review, 54, 100666. https://doi.org/10.1016/j.cosrev.2024.100666 DOI: https://doi.org/10.1016/j.cosrev.2024.100666
[6] Bartolini, C., Lenzini, G., & Robaldo, L. (2019). The DAta Protection REgulation COmpliance Model. IEEE Security & Privacy, 17(6), 37–45. https://doi.org/10.1109/MSEC.2019.2937756 DOI: https://doi.org/10.1109/MSEC.2019.2937756
[7] Berzal, F., & Matín, N. (2002). Data mining: Concepts and techniques by Jiawei Han and Micheline Kamber. ACM SIGMOD Record, 31(2), 66–68. https://doi.org/10.1145/565117.565130 DOI: https://doi.org/10.1145/565117.565130
[8] Carcillo, F., Le Borgne, Y.-A., Caelen, O., Kessaci, Y., Oblé, F., & Bontempi, G. (2021). Combining unsupervised and supervised learning in credit card fraud detection. Information Sciences, 557, 317–331. https://doi.org/10.1016/j.ins.2019.05.042 DOI: https://doi.org/10.1016/j.ins.2019.05.042
[9] Cavoukian, A. (2012). Privacy by Design. Published by IGI Global. DOI: https://doi.org/10.4018/978-1-61350-501-4.ch007
[10] Chugh, B., Malik, N., Gupta, D., & Alkahtani, B. S. (2025). A probabilistic approach driven credit card anomaly detection with CBLOF and isolation forest models. Alexandria Engineering Journal, 114, 231–242. https://doi.org/10.1016/j.aej.2024.11.054 DOI: https://doi.org/10.1016/j.aej.2024.11.054
[11] Dal Pozzolo, A., Caelen, O., Le Borgne, Y.-A., Waterschoot, S., & Bontempi, G. (2014). Learned lessons in credit card fraud detection from a practitioner perspective. Expert Systems with Applications, 41(10), 4915–4928. https://doi.org/10.1016/j.eswa.2014.02.026 DOI: https://doi.org/10.1016/j.eswa.2014.02.026
[12] Dashti, S., & Ranise, S. (2020). Tool-Assisted Risk Analysis for Data Protection Impact Assessment. In M. Friedewald, M. Önen, E. Lievens, S. Krenn, & S. Fricker (Eds.), Privacy and Identity Management. Data for Better Living: AI and Privacy (Vol. 576, pp. 308–324). Springer International Publishing. https://doi.org/10.1007/978-3-030-42504-3_20 DOI: https://doi.org/10.1007/978-3-030-42504-3_20
[13] Esenogho, E., Mienye, I. D., Swart, T. G., Aruleba, K., & Obaido, G. (2022). A Neural Network Ensemble with Feature Engineering for Improved Credit Card Fraud Detection. IEEE Access, 10, 16400–16407. https://doi.org/10.1109/ACCESS.2022.3148298 DOI: https://doi.org/10.1109/ACCESS.2022.3148298
[14] Forough, J., & Momtazi, S. (2021). Ensemble of deep sequential models for credit card fraud detection. Applied Soft Computing, 99, 106883. https://doi.org/10.1016/j.asoc.2020.106883 DOI: https://doi.org/10.1016/j.asoc.2020.106883
[15] Hariri, S., Kind, M. C., & Brunner, R. J. (2021). Extended Isolation Forest. IEEE Transactions on Knowledge and Data Engineering, 33(4), 1479–1489. https://doi.org/10.1109/TKDE.2019.2947676 DOI: https://doi.org/10.1109/TKDE.2019.2947676
[16] I., G., & A Eliseeff. (2000). 10.1162/153244303322753616. CrossRef Listing of Deleted DOIs, 1. https://doi.org/10.1162/153244303322753616 DOI: https://doi.org/10.1162/153244303322753616
[17] Islam, Md. E., Tasnim, T., Arafat, Md. Y., & Zadid Sultan bin Habib, A. (2022). Credit Card Fraud Detection Techniques: A Comparative Analysis. 2022 25th International Conference on Computer and Information Technology (ICCIT), 716–721. https://doi.org/10.1109/ICCIT57492.2022.10054883 DOI: https://doi.org/10.1109/ICCIT57492.2022.10054883
[18] Itoo, F., Meenakshi, & Singh, S. (2021). Comparison and analysis of logistic regression, Naïve Bayes and KNN machine learning algorithms for credit card fraud detection. International Journal of Information Technology, 13(4), 1503–1511. https://doi.org/10.1007/s41870-020-00430-y DOI: https://doi.org/10.1007/s41870-020-00430-y
[19] James Bergstra & Y. Bengio. (2012). Random Search for Hyper-Parameter Optimization. Journal of Machine Learning Research.
[20] Kalid, S. N., Ng, K.-H., Tong, G.-K., & Khor, K.-C. (2020). A Multiple Classifiers System for Anomaly Detection in Credit Card Data with Unbalanced and Overlapped Classes. IEEE Access, 8, 28210–28221. https://doi.org/10.1109/ACCESS.2020.2972009 DOI: https://doi.org/10.1109/ACCESS.2020.2972009
[21] Karthik, V. S. S., Mishra, A., & Reddy, U. S. (2022). Credit Card Fraud Detection by Modelling Behaviour Pattern using Hybrid Ensemble Model. Arabian Journal for Science and Engineering, 47(2), 1987–1997. https://doi.org/10.1007/s13369-021-06147-9 DOI: https://doi.org/10.1007/s13369-021-06147-9
[22] Khatri, S., Arora, A., & Agrawal, A. P. (2020). Supervised Machine Learning Algorithms for Credit Card Fraud Detection: A Comparison. 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), 680–683. https://doi.org/10.1109/Confluence47617.2020.9057851 DOI: https://doi.org/10.1109/Confluence47617.2020.9057851
[23] Lucas, Y., & Jurgovsky, J. (2020). Credit card fraud detection using machine learning: A survey (Version 1). arXiv. https://doi.org/10.48550/ARXIV.2010.06479
[24] Lucas, Y., Portier, P.-E., Laporte, L., He-Guelton, L., Caelen, O., Granitzer, M., & Calabretto, S. (2020). Towards automated feature engineering for credit card fraud detection using multi-perspective HMMs. Future Generation Computer Systems, 102, 393–402. https://doi.org/10.1016/j.future.2019.08.029 DOI: https://doi.org/10.1016/j.future.2019.08.029
[25] Malik, E. F., Khaw, K. W., Belaton, B., Wong, W. P., & Chew, X. (2022). Credit Card Fraud Detection Using a New Hybrid Machine Learning Architecture. Mathematics, 10(9), 1480. https://doi.org/10.3390/math10091480 DOI: https://doi.org/10.3390/math10091480
[26] Modi, K., & Dayma, R. (2017). Review on fraud detection methods in credit card transactions. 2017 International Conference on Intelligent Computing and Control (I2C2), 1–5. https://doi.org/10.1109/I2C2.2017.8321781 DOI: https://doi.org/10.1109/I2C2.2017.8321781
[27] Nwafor, C. N., Nwafor, O., & Brahma, S. (2024). Enhancing transparency and fairness in automated credit decisions: An explainable novel hybrid machine learning approach. Scientific Reports, 14(1), 25174. https://doi.org/10.1038/s41598-024-75026-8 DOI: https://doi.org/10.1038/s41598-024-75026-8
[28] Olowookere, T. A., & Adewale, O. S. (2020). A framework for detecting credit card fraud with cost-sensitive meta-learning ensemble approach. Scientific African, 8, e00464. https://doi.org/10.1016/j.sciaf.2020.e00464 DOI: https://doi.org/10.1016/j.sciaf.2020.e00464
[29] Popat, R. R., & Chaudhary, J. (2018). A Survey on Credit Card Fraud Detection Using Machine Learning. 2018 2nd International Conference on Trends in Electronics and Informatics (ICOEI), 1120–1125. https://doi.org/10.1109/ICOEI.2018.8553963 DOI: https://doi.org/10.1109/ICOEI.2018.8553963
[30] Prasad, P. Y., Chowdary, A. S., Bavitha, C., Mounisha, E., & Reethika, C. (2023). A Comparison Study of Fraud Detection in Usage of Credit Cards using Machine Learning. 2023 7th International Conference on Trends in Electronics and Informatics (ICOEI), 1204–1209. https://doi.org/10.1109/ICOEI56765.2023.10125838 DOI: https://doi.org/10.1109/ICOEI56765.2023.10125838
[31] Qaddoura, R., & Biltawi, M. M. (2022). Improving Fraud Detection in An Imbalanced Class Distribution Using Different Oversampling Techniques. 2022 International Engineering Conference on Electrical, Energy, and Artificial Intelligence (EICEEAI), 1–5. https://doi.org/10.1109/EICEEAI56378.2022.10050500 DOI: https://doi.org/10.1109/EICEEAI56378.2022.10050500
[32] Rb, A., & Kr, S. K. (2021). Credit card fraud detection using ArtificialNeural Network. DOI: https://doi.org/10.1016/j.gltp.2021.01.006
Rojimantoro, F., Sadam, M., Rahman, A., & Sutrisno, A. (2024). Legal Protection for Consumers in E-commerce Transactions Based on the Consumer Protection Law. Journal Transnational Universal Studies, 2(12), 677–688. https://doi.org/10.58631/jtus.v2i12.143 DOI: https://doi.org/10.58631/jtus.v2i12.143
[33] Ryman-Tubb, N. F., Krause, P., & Garn, W. (2018). What an Artificial Intelligence and machine learning research impacts payment card fraud detection: A survey and industry benchmark. Engineering Applications of Artificial Intelligence, 76, 130–157. https://doi.org/10.1016/j.engappai.2018.07.008 DOI: https://doi.org/10.1016/j.engappai.2018.07.008
[34] Sahithi, G. L., Roshmi, V., Sameera, Y. V., & Pradeepini, G. (2022). Credit Card Fraud Detection using Ensemble Methods in Machine Learning. 2022 6th International Conference on Trends in Electronics and Informatics (ICOEI), 1237–1241. https://doi.org/10.1109/ICOEI53556.2022.9776955. DOI: https://doi.org/10.1109/ICOEI53556.2022.9776955
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Hafsat Ashafa, Aisha Umar Suleiman

This work is licensed under a Creative Commons Attribution 4.0 International License.
- Abstract 221
- PDF 32

