Explainable AI (XAI) Analysis Using SHAP for Credit Card Fraud

Authors

  • Yanuangga Galahartlambang Institut Teknologi dan Bisnis Ahmad Dahlan Lamongan Author
  • Titik Khotiah Institut Teknologi dan Bisnis Ahmad Dahlan Lamongan Author
  • Ilham Basri K Institut Teknologi dan Bisnis Ahmad Dahlan Lamongan Author
  • Masrur Anwar Institut Teknologi dan Bisnis Ahmad Dahlan Lamongan Author

DOI:

https://doi.org/10.65310/scxk4755

Keywords:

Fraud detection , Explainable AI, SHAP, Credit card, Machine learning.

Abstract

The increased use of credit cards in digital payment systems has also increased the risk of transaction fraud, which has led to financial losses and a decline in user confidence. Various machine learning approaches have been developed to automatically detect fraud, but most high-performance models are black-box in nature, making them difficult to explain and unsupportive of auditing and decision-making processes. This study aims to analyze the application of Explainable Artificial Intelligence (XAI) using the SHAP (SHapley Additive exPlanations) method in credit card fraud detection systems. An imbalanced credit card transaction dataset was used as experimental data, with two classification models, namely Logistic Regression as a baseline and Random Forest as an ensemble model. Performance evaluation was conducted using Precision, Recall, F1-score, and Average Precision (PR-AUC) metrics, which are more suitable for imbalanced data cases. The experimental results show that the Random Forest model performs better than Logistic Regression, especially in terms of Precision, F1-Score, and PR-AUC metrics. Explainability analysis using SHAP was performed to obtain global and local explanations for the model's decisions. Global explanations successfully identified the dominant features that influence fraud predictions, while local explanations provided an overview of the contribution of individual features to specific fraud transactions. The results of this study show that the application of SHAP can improve the transparency and clarity of fraud detection model decisions without sacrificing prediction performance, thereby potentially supporting the development of a more reliable and easily audited fraud detection system.  

Downloads

Download data is not yet available.

References

Barredo Arrieta, Alejandro et al. 2020. “Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI.” Information Fusion 58: 82–115. https://doi.org/10.1016/j.inffus.2019.12.012

Broucke, Seppe Vanden, and Bing Zhu. 2020. “An Experimental Investigation of Calibration Techniques for Imbalanced Data.” 8: 127343–52.

Burkart, Nadia, and Marco F. Huber. 2021. “A Survey on the Explainability of Supervised Machine Learning.” Journal of Artificial Intelligence Research 70: 245–317. https://doi.org/10.1613/jair.1.12228

Goorbergh, Ruben Van Den, and Maarten Van Smeden. 2022. “The Harm of Class Imbalance Corrections for Risk Prediction Models : Illustration and Simulation Using Logistic Regression.” 29(June): 1525–34.

Guilbert, Théo, Andrei Chirita, and Marco Saerens. 2023. “Calibration Methods in Imbalanced Binary Classication.” : 0–33. https://doi.org/10.1007/s10472-024-09952-8

Han, Tessa. 2024. “Towards Unified Attribution in Explainable AI, Data-Centric AI, and Mechanistic Interpretability.” : 1–25. https://doi.org/10.48550/arXiv.2501.18887

Lundberg, Scott M., and Su In Lee. 2017. “A Unified Approach to Interpreting Model Predictions.” Advances in Neural Information Processing Systems 2017-Decem(Section 2): 4766–75.

Middlyne Simbolon, Meha, I Gusti Komang Wijaya Kesuma, and Aditya Ery Wibowo. 2021. “Volume 5 Nomor 1, April 2021 | 1 Kejahatan Siber Pada Penyelenggaraan Perdagangan Berbasis Sistem Elektronik Dalam Langkah Pengamanan Pertumbuhan Ekonomi Digital Indonesia.” Defendonesia 5(1): 1–12. https://medium.com/@desriyanisilaen/hum.

Minh, Dang, H. Xiang Wang, Y. Fen Li, and Tan N. Nguyen. 2022. 55 Artificial Intelligence Review Explainable Artificial Intelligence: A Comprehensive Review. Springer Netherlands. https://doi.org/10.1007/s10462-021-10088-y.

MLG-ULB. 2016. “Credit Card Fraud Detection Dataset.” Kaggle. https://www.kaggle.com/datasets/mlg-ulb/creditcardfraud.

Muhammad Naufal Aly1, Nurvita Trianasari2. 2020. “Pengaruh Kualitas Layanan Sistem Pembayaran Non Tunai Terhadap Kepuasan Konsumen.” e-Proceeding of Management 7(1): 395.

Murdoch, W. James et al. 2019. “Definitions, Methods, and Applications in Interpretable Machine Learning.” Proceedings of the National Academy of Sciences of the United States of America 116(44): 22071–80.

Ounacer, Soumaya, Houda Jihal, Soufiane Ardchir, and Mohamed Azzouazi. 2020. “Anomaly Detection in Credit Card Transactions.” Advances in Intelligent Systems and Computing 1105 AISC(3): 132–40. https://doi.org/10.1007/978-3-030-36674-2_14

Phillips, P Jonathon et al. 2020. “Four Principles of Explainable Artificial Intelligence: Draft NISTIR 8312.” National Institute of Standards and Technology Interagency or Internal Report (August). https://doi.org/10.6028/NIST.IR.8312-draft.

Pozzolo, Andrea Dal. 2015. “Adaptive Machine Learning for Credit Card Fraud Detection Declaration of Authorship.” Doctor - Université Libre de Bruxelles (December): 199. https://www.ulb.ac.be/di/map/adalpozz/pdf/Dalpozzolo2015PhD.pdf%0Ahttp://www.ulb.ac.be/di/map/adalpozz/.

Ranjbaran, Golshid, Diego Reforgiato Recupero, Chanchal K Roy, and Kevin A Schneider. 2025. “C-SHAP : A Hybrid Method for Fast and Efficient Interpretability.” : 1–23.

Ribeiro, Marco Tulio, Sameer Singh, and Carlos Guestrin. 2016. “‘Why Should I Trust You?’ Explaining the Predictions of Any Classifier.” NAACL-HLT 2016 - 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Proceedings of the Demonstrations Session: 97–101. https://doi.org/10.1145/2939672.293977

Rizki Ariyani. 2023. “State of the Art Fraud Detection Pada Kartu Kredit Dengan Menggunakan Pendekatan Algoritma Dan Teknik Machine Learning.” Jurnal Ilmiah Teknik 2(2): 147–53. https://doi.org/10.56127/juit.v2i2.1728

Salih, Ahmed M et al. “A Perspective on Explainable Artificial Intelligence Methods : SHAP and LIME.” https://doi.org/10.1002/aisy.202400304

SamanehSorournejad, Zahra Zojaji, Reza Ebrahimi Atani, and Amir Hassan Monadjemi. 2016. “A Survey of Credit Card Fraud Detection Techniques: Data and Technique Oriented Perspective.” : 1–26. http://arxiv.org/abs/1611.06439.

Samek, Wojciech, Thomas Wiegand, and Klaus-Robert Müller. 2017. “Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models.” http://arxiv.org/abs/1708.08296.

Sudiyarno, Ripto, Arief Setyanto, and Emha Taufiq Luthfi. 2021. “Peningkatan Performa Pendeteksian Anomali Menggunakan Ensemble Learning Dan Feature Selection.” Creative Information Technology Journal 7(1): 1. https://doi.org/10.24076/citec.2020v7i1.238

Verma, Sahil et al. 2024. “Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Review.” ACM Computing Surveys 56(12). https://doi.org/10.1145/3677119

Downloads

Published

2025-12-30

How to Cite

Explainable AI (XAI) Analysis Using SHAP for Credit Card Fraud. (2025). Journal of Engineering and Applied Technology, 1(2), 333-344. https://doi.org/10.65310/scxk4755