Explainable Artificial Intelligence (XAI) on TimeSeries Data: A Survey

Thomas Rojat, Raphaël Puget, David Filliat, Javier Del Ser, Rodolphe Gelin, Natalia Díaz RodríguezarXiv 2021

TL;DR

Deep learning models for time series data are powerful but act as opaque "black boxes," posing significant risks in critical fields like healthcare and autonomous driving. This survey categorizes XAI techniques specifically for temporal data, addresses the unique challenges of interpreting 1D signals, and emphasizes the urgent need for robust quantitative evaluation metrics.

Introduction: The Interpretability Gap in Time Series

Time series data—ranging from electrocardiograms (ECGs) and stock market tickers to sensor readings in autonomous vehicles—is ubiquitous. While deep learning architectures like CNNs and RNNs provide state-of-the-art performance, their inner workings are highly complex and uninterpretable.

Unlike Computer Vision (CV), where humans can intuitively validate highlighted pixels (e.g., identifying a dog's ear), time series fluctuations often require deep domain expertise to interpret. This survey explores the current landscape of time series XAI to understand how to bridge this gap, build user trust, and rigorously evaluate explanations.

Roadmap of XAI methods applied to time series

Categorizing XAI Methodologies

The survey identifies several core approaches to explaining time series models, many of which are adapted from other domains:

XAI for CNNs (Post-hoc)

Most methods for CNNs are post-hoc, meaning they explain a pre-trained model's decisions.

  • Backpropagation-based: Techniques like Class Activation Mapping (CAM) or Gradient*Input trace predictions backward to highlight influential sub-sequences.
  • Perturbation-based: Methods like occlusion sensitivity systematically mask or alter parts of the time series to measure changes in the model's prediction, thereby calculating feature importance.
Visualization of input activations and occlusion sensitivity

XAI for RNNs (Ante-hoc)

RNN explanations are often built directly into the model architecture. Attention mechanisms (temporal, variable, or global) are the primary tool here, assigning learnable weights to different timesteps to show which parts of the sequence the model "focused" on.

Data Mining & Example-Based Methods

  • SAX (Symbolic Aggregate approXimation): Converts continuous time series into discrete strings to find recurrent, interpretable patterns.
  • Shapelets: Identifies maximally representative sub-sequences (prototypes) to explain a classification by comparing it to a known, typical example.

Datasets and Benchmarking

The field relies on standard repositories and domain-specific data to benchmark performance:

  • Standard Benchmarks: UCR Time Series Classification Archive and UEA Time Series Archive.
  • Medical Data: PTB diagnostic ECG dataset and MIMIC (ICU time series data).
  • Sensor/Motion Data: JIGSAWS (surgical kinematics), UWaveGestureLibraryAll (accelerometer gestures), and smartphone-based human activity recognition.

Key Insights: The "Borrowed Tech" Problem

A critical finding is that many XAI methods are "hand-me-downs" from Computer Vision. Saliency maps designed for images are often flattened for 1D data, potentially ignoring unique temporal dynamics. Furthermore, the survey highlights that the target audience dictates the explanation type:

  • Developers require global explanations (overall model behavior) for debugging.
  • End-users (e.g., doctors) need local explanations (why a specific prediction was made) to build trust.
  • Decision-makers need confidence scores to assess the risk of deploying the system.

The survey synthesizes over 30 recent papers, noting a significant shift toward quantitative evaluation metrics. Because human "sanity checks" are difficult for 1D signals, researchers increasingly use perturbation analysis (measuring accuracy drop after removing "important" features) and Swap/Mean Time Points to test model reliance on temporal trends.

Limitations and Future Directions

Current XAI research often lacks a focus on Human-Computer Interaction (HCI), producing technical heatmaps that may not be useful to laypeople. There is also a notable absence of integrated confidence metrics to address epistemic uncertainty. Future work should focus on:

  1. Native Time Series XAI: Developing algorithms designed specifically for the unique properties of temporal data.
  2. Interactive Systems: Creating end-to-end systems that allow users to provide feedback to the model.
  3. HCI Integration: Ensuring explanations are actionable and understandable for the intended audience.

Summary updated

BibTeX
@misc{rojat2021explainable,
  author = {Thomas Rojat and Raphaël Puget and David Filliat and Javier Del Ser and Rodolphe Gelin and Natalia Díaz Rodríguez},
  title = {{Explainable Artificial Intelligence (XAI) on TimeSeries Data: A Survey}},
  year = {2021},
  eprint = {2104.00950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.00950},
}
Figure