Skip to main content

Advertisement

Log in

An efficient mechanism for time series forecasting and anomaly detection using explainable artificial intelligence

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19

Similar content being viewed by others

Availability of data and materials

No datasets were generated or analyzed during the current study.

References

  1. Hu J et al (2023) Combining IMU with acoustics for head motion tracking leveraging wireless earphone. IEEE Trans Mob Comput 23:6835–6847

    Article  MATH  Google Scholar 

  2. Zhou Z et al (2024) Near miss prediction in commercial aviation through a combined model of grey neural network. Expert Syst Appl 255:124690

    Article  MATH  Google Scholar 

  3. Zhang M et al (2023) Age-dependent differential privacy. IEEE Trans Inf Theory 70:1300–1319

    Article  MathSciNet  MATH  Google Scholar 

  4. Li T et al (2024) Mobile user traffic generation via multi-scale hierarchical GAN. ACM Trans Knowl Discov Data 18:1–19

    MATH  Google Scholar 

  5. Kozitsin V, Katser I, Lakontsev D (2021) Online forecasting and anomaly detection based on the ARIMA model. Appl Sci 11(7):3194

    Article  MATH  Google Scholar 

  6. 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

    Article  MATH  Google Scholar 

  7. Luo H et al (2024) Symbiotic blockchain consensus: cognitive backscatter communications-enabled wireless blockchain consensus. IEEE/ACM Trans Netw 32:5372–5387

    Article  Google Scholar 

  8. Lei J et al (2024) GPR detection localization of underground structures based on deep learning and reverse time migration. NDT E Int 143:103043

    Article  MATH  Google Scholar 

  9. Liu R et al (2024) Multifaceted anomaly detection framework for leachate monitoring in landfills. J Environ Manag 368:122130

    Article  Google Scholar 

  10. Lin W et al (2024) Input and output matter: malicious traffic detection with explainability. IEEE Netw

  11. 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

    Article  MATH  Google Scholar 

  12. 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

    Article  MathSciNet  MATH  Google Scholar 

  13. Tu B et al (2024) Anomaly detection in hyperspectral images using adaptive graph frequency location. IEEE Trans Neural Netw Learn Syst

  14. Wang Z et al (2024) MLP-Net: multi-layer perceptron fusion network for infrared small target detection. IEEE Trans Geosci Remote Sens

  15. 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

  16. 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

    Article  MATH  Google Scholar 

  17. Huang Z et al (2024) Joining spatial deformable convolution and a dense feature pyramid for surface defect detection. IEEE Trans Instrum Meas

  18. Zhou S et al (2024) An Anomaly detection method for uav based on wavelet decomposition and stacked denoising autoencoder. Aerospace 11:393

    Article  MATH  Google Scholar 

  19. 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

    Article  MATH  Google Scholar 

  20. Zhao X et al (2023) Target-driven visual navigation by using causal intervention. IEEE Trans Intell Veh 9(1):1294–1304

    Article  MATH  Google Scholar 

  21. Li T et al (2025) Generative AI empowered network digital twins: architecture, technologies, and applications. ACM Comput Surv 57:1–43

    Google Scholar 

  22. Ding Y et al (2020) FraudTrip: taxi fraudulent trip detection from corresponding trajectories. IEEE Internet Things J 8(16):12505–12517

    Article  Google Scholar 

  23. 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

    Article  MATH  Google Scholar 

  24. Jiang W et al (2024) A compensation approach for magnetic encoder error based on improved deep belief network algorithm. Sens Actuators A 366:115003

    Article  MATH  Google Scholar 

  25. Adadi A, Berrada M (2018) Peeking inside the black-box: a survey on explainable artificial intelligence (XAI). IEEE Access 6:52138–52160

    Article  Google Scholar 

  26. Hochreiter S, Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780

    Article  MATH  Google Scholar 

  27. Li Z, Zhu Y, Van Leeuwen M (2023) A survey on explainable anomaly detection. ACM Trans Knowl Discov Data 18(1):1–54

    MATH  Google Scholar 

  28. Vilone G, Longo L (2020) Explainable artificial intelligence: a systematic review. arXiv preprint arXiv:2006.00093

  29. Agarwal R et al (2021) Neural additive models: interpretable machine learning with neural nets. Adv Neural Inf Process Syst 34:4699–4711

    MATH  Google Scholar 

  30. Lundberg SM, Lee S-I (2017) A unified approach to interpreting model predictions. Adv Neural Inf Process Syst 30:4765–4774

    MATH  Google Scholar 

  31. Ribeiro M (2016) Local interpretable model-agnostic explanations (lime). Revision 533368b7

  32. 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

  33. Abdullayev V, Chauhan AS (2023) SQL injection attack: quick view. Mesopotamian J CyberSecur 2023:30–34

    Article  Google Scholar 

  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

  35. Cheng H, Xu D, Yuan S (2023) Explainable sequential anomaly detection via prototypes. In: 2023 International Joint Conference on Neural Networks (IJCNN). IEEE

  36. Taylor SJ, Letham B (2018) Forecasting at scale. Am Stat 72(1):37–45

    Article  MathSciNet  MATH  Google Scholar 

  37. 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

  38. Ras G et al (2022) Explainable deep learning: a field guide for the uninitiated. J Artif Intell Res 73:329–396

    Article  MathSciNet  MATH  Google Scholar 

  39. Tiwari A, Maurya RK (2023) Anomaly detection in time series data: exploring algorithms and methods. Adv Comput Technol Appl 7(1):37–46

    MATH  Google Scholar 

  40. 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

  41. 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

    Article  MATH  Google Scholar 

  42. Lin C-Y, Song Y, Wen Z (2017) Sequential anomaly detection. Google Patents

  43. Credit card Fraud (2013)

  44. Zhou F et al (2023) Semi-supervised anomaly detection via neural process. IEEE Trans Knowl Data Eng 35:10423–10435

    Article  MATH  Google Scholar 

  45. 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

    Article  MATH  Google Scholar 

  46. Li Z, Shi J, van Leeuwen M (2023) Graph neural network based log anomaly detection and explanation. arXiv preprint arXiv:2307.00527

  47. 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

    MATH  Google Scholar 

  48. 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

  49. Li C et al (2021) Application of credit card fraud detection based on CS-SVM. Int J Mach Learn Comput 11(1):34–39

    Article  MATH  Google Scholar 

  50. Schell MJ et al (2007) Evidence-based target recall rates for screening mammography. Radiology 243(3):681–689

    Article  MATH  Google Scholar 

  51. 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

  52. 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

    MATH  Google Scholar 

Download references

Funding

No Funding has been received for this study.

Author information

Authors and Affiliations

Authors

Contributions

All author participated equally.

Corresponding author

Correspondence to Rashid Amin.

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11227-025-07040-0

Keywords