Abstract
Detecting credit card fraud is a complex challenge, requiring the development of a specialized anomaly detection framework and a model-explanation module. Existing methods rely primarily on data augmentation or standard machine learning models, whereas anomaly-detection-based approaches still need to be improved. Few studies have utilized AI interpretability methods to assess the significance of features in transaction data. This is vital for the black-box fraud detection module. We use our well-known dimensionality reduction statistical approach to incorporate XAI into anomaly detection algorithms like transformer, graph neural network (GNN), and transformer-GNN-ensembled. The study focuses on spotting inconsistencies in time series data, which is essential for detecting system flaws, fraud, or other unexpected behavior. The proposed technique is empirically validated on real-world time series datasets, demonstrating XAI's usefulness in improving forecasting accuracy and anomaly detection performance. This work also employs explainable artificial intelligence (XAI) to increase time series forecasting and anomaly detection accuracy. Time series data presents unique challenges for forecasting future trends and detecting aberrant patterns. Traditional forecasting approaches may need help to grasp the data's complexities and nonlinear relationships. The SHAP and LIME XAI techniques provide insights into the decision-making processes of complicated forecasting models, boosting their credibility and allowing for more accurate judgment. These approaches are used to examine the interpretability of these models, showing subtle differences and emphasizing trade-offs in stability, fidelity, and robustness. The study found that a transformer, GNN, and a transformer-GNN-ensembled model performed exceptionally well on Credit Card Fraud Detection and Credit Card Fraud Detection 2023, with the transformer achieving 99.93% accuracy, GNN 100% accuracy, and the transformer-GNN-ensembled model surpassing them all. The findings also show XAI's capacity to provide actionable insights, allowing stakeholders to make informed decisions based on a thorough understanding of the underlying models.



















Similar content being viewed by others
Availability of data and materials
No datasets were generated or analyzed during the current study.
References
Hu J et al (2023) Combining IMU with acoustics for head motion tracking leveraging wireless earphone. IEEE Trans Mob Comput 23:6835–6847
Zhou Z et al (2024) Near miss prediction in commercial aviation through a combined model of grey neural network. Expert Syst Appl 255:124690
Zhang M et al (2023) Age-dependent differential privacy. IEEE Trans Inf Theory 70:1300–1319
Li T et al (2024) Mobile user traffic generation via multi-scale hierarchical GAN. ACM Trans Knowl Discov Data 18:1–19
Kozitsin V, Katser I, Lakontsev D (2021) Online forecasting and anomaly detection based on the ARIMA model. Appl Sci 11(7):3194
Sun G et al (2018) Service function chain orchestration across multiple domains: a full mesh aggregation approach. IEEE Trans Netw Serv Manag 15(3):1175–1191
Luo H et al (2024) Symbiotic blockchain consensus: cognitive backscatter communications-enabled wireless blockchain consensus. IEEE/ACM Trans Netw 32:5372–5387
Lei J et al (2024) GPR detection localization of underground structures based on deep learning and reverse time migration. NDT E Int 143:103043
Liu R et al (2024) Multifaceted anomaly detection framework for leachate monitoring in landfills. J Environ Manag 368:122130
Lin W et al (2024) Input and output matter: malicious traffic detection with explainability. IEEE Netw
Ni L et al (2024) An explainable neural network integrating Jiles-Atherton and nonlinear auto-regressive exogenous models for modeling universal hysteresis. Eng Appl Artif Intell 136:108904
Fan H, Wang C, Li S (2024) Novel method for reliability optimization design based on rough set theory and hybrid surrogate model. Comput Methods Appl Mech Eng 429:117170
Tu B et al (2024) Anomaly detection in hyperspectral images using adaptive graph frequency location. IEEE Trans Neural Netw Learn Syst
Wang Z et al (2024) MLP-Net: multi-layer perceptron fusion network for infrared small target detection. IEEE Trans Geosci Remote Sens
Barbariol T et al (2022) A review of tree-based approaches for anomaly detection. In: Control Charts and Machine Learning for Anomaly Detection in Manufacturing, pp 149–185
Huang C-Q et al (2024) XKT: towards explainable knowledge tracing model with cognitive learning theories for questions of multiple knowledge concepts. IEEE Trans Knowl Data Eng 36:7308–7325
Huang Z et al (2024) Joining spatial deformable convolution and a dense feature pyramid for surface defect detection. IEEE Trans Instrum Meas
Zhou S et al (2024) An Anomaly detection method for uav based on wavelet decomposition and stacked denoising autoencoder. Aerospace 11:393
Qiao Y et al (2023) A multihead attention self-supervised representation model for industrial sensors anomaly detection. IEEE Trans Ind Inf 20(2):2190–2199
Zhao X et al (2023) Target-driven visual navigation by using causal intervention. IEEE Trans Intell Veh 9(1):1294–1304
Li T et al (2025) Generative AI empowered network digital twins: architecture, technologies, and applications. ACM Comput Surv 57:1–43
Ding Y et al (2020) FraudTrip: taxi fraudulent trip detection from corresponding trajectories. IEEE Internet Things J 8(16):12505–12517
Lin L et al (2024) Multiscale spatio-temporal feature fusion based non-intrusive appliance load monitoring for multiple industrial industries. Appl Soft Comput 167:112445
Jiang W et al (2024) A compensation approach for magnetic encoder error based on improved deep belief network algorithm. Sens Actuators A 366:115003
Adadi A, Berrada M (2018) Peeking inside the black-box: a survey on explainable artificial intelligence (XAI). IEEE Access 6:52138–52160
Hochreiter S, Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
Li Z, Zhu Y, Van Leeuwen M (2023) A survey on explainable anomaly detection. ACM Trans Knowl Discov Data 18(1):1–54
Vilone G, Longo L (2020) Explainable artificial intelligence: a systematic review. arXiv preprint arXiv:2006.00093
Agarwal R et al (2021) Neural additive models: interpretable machine learning with neural nets. Adv Neural Inf Process Syst 34:4699–4711
Lundberg SM, Lee S-I (2017) A unified approach to interpreting model predictions. Adv Neural Inf Process Syst 30:4765–4774
Ribeiro M (2016) Local interpretable model-agnostic explanations (lime). Revision 533368b7
Asaduzzaman M, Rahman MM (2022) An adversarial approach for intrusion detection using hybrid deep learning model. In: 2022 International Conference on Information Technology Research and Innovation (ICITRI). IEEE
Abdullayev V, Chauhan AS (2023) SQL injection attack: quick view. Mesopotamian J CyberSecur 2023:30–34
Schlegel U et al. (2019) Towards a rigorous evaluation of XAI methods on time series. In: 2019 IEEE/CVF International Conference on Computer Vision Workshop (ICCVW). IEEE
Cheng H, Xu D, Yuan S (2023) Explainable sequential anomaly detection via prototypes. In: 2023 International Joint Conference on Neural Networks (IJCNN). IEEE
Taylor SJ, Letham B (2018) Forecasting at scale. Am Stat 72(1):37–45
Dix M et al (2021) Anomaly detection in the time-series data of industrial plants using neural network architectures. In: 2021 IEEE Seventh International Conference on Big Data Computing Service and Applications (BigDataService). IEEE
Ras G et al (2022) Explainable deep learning: a field guide for the uninitiated. J Artif Intell Res 73:329–396
Tiwari A, Maurya RK (2023) Anomaly detection in time series data: exploring algorithms and methods. Adv Comput Technol Appl 7(1):37–46
Tripathy SM et al (2022) Explaining anomalies in industrial multivariate time-series data with the help of eXplainable AI. In: 2022 IEEE International Conference on Big Data and Smart Computing (BigComp). IEEE
Mercier D et al (2021) Evaluating privacy-preserving machine learning in critical infrastructures: a case study on time-series classification. IEEE Trans Ind Inf 18(11):7834–7842
Lin C-Y, Song Y, Wen Z (2017) Sequential anomaly detection. Google Patents
Credit card Fraud (2013)
Zhou F et al (2023) Semi-supervised anomaly detection via neural process. IEEE Trans Knowl Data Eng 35:10423–10435
Kim J, Kang H, Kang P (2023) Time-series anomaly detection with stacked transformer representations and 1D convolutional network. Eng Appl Artif Intell 120:105964
Li Z, Shi J, van Leeuwen M (2023) Graph neural network based log anomaly detection and explanation. arXiv preprint arXiv:2307.00527
Mohammed A, Kora R (2023) A comprehensive review on ensemble deep learning: opportunities and challenges. J King Saud Univ Comput Inf Sci 35:757–774
Wu T-Y, Wang Y-T (2021) Locally interpretable one-class anomaly detection for credit card fraud detection. In: 2021 International Conference on Technologies and Applications of Artificial Intelligence (TAAI). IEEE
Li C et al (2021) Application of credit card fraud detection based on CS-SVM. Int J Mach Learn Comput 11(1):34–39
Schell MJ et al (2007) Evidence-based target recall rates for screening mammography. Radiology 243(3):681–689
Caruana R, Niculescu-Mizil A (2004) Data mining in metric space: an empirical analysis of supervised learning performance criteria. In: Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
Itoo F, Meenakshi A, Singh S (2021) Comparison and analysis of logistic regression, Naïve Bayes and KNN machine learning algorithms for credit card fraud detection. Int J Inf Technol 13(4):1503–1511
Funding
No Funding has been received for this study.
Author information
Authors and Affiliations
Contributions
All author participated equally.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Iqbal, A., Amin, R. An efficient mechanism for time series forecasting and anomaly detection using explainable artificial intelligence. J Supercomput 81, 523 (2025). https://doi.org/10.1007/s11227-025-07040-0
Accepted:
Published:
DOI: https://doi.org/10.1007/s11227-025-07040-0