Introduction
Deep learning models have become indispensable for classifying complex time-series data, with applications ranging from medical diagnostics like heart arrhythmia detection to industrial monitoring of power grids. Despite their predictive power, these models often function as "black boxes," making it difficult to understand the rationale behind their decisions. While Explainable AI (XAI) has matured significantly in computer vision, applying these methods to the temporal domain presents unique challenges. Standard image-based attribution methods often struggle with point-level noise, the necessity of temporal continuity, and the independence of multi-channel sensor data.
To address these gaps, researchers at DFKI introduced TimeREISE (Time-series Randomized Evolving Input Sample Explanation), a model-agnostic attribution method specifically engineered for time-series classifiers. TimeREISE provides clear, smooth, and robust explanations by identifying critical signal segments and specific channels that drive model predictions.
Methodology
TimeREISE is inspired by the Randomized Input Sampling for Explanation (RISE) algorithm but incorporates three fundamental innovations tailored for time-series data:
- Multi-Granularity Masking: Unlike fixed-size masks, TimeREISE generates masks at multiple scales. By downsampling the time axis, applying random masks, and upsampling via interpolation, the method produces "smooth" transitions. This avoids the harsh on/off artifacts common in traditional perturbation methods.
- Evolving Densities: The algorithm samples across a range of masking densities rather than relying on a single probability. This allows the resulting attribution map to capture both broad trends and fine-grained temporal features.
- Channel-Awareness: Recognizing that multi-sensor data often contains independent physical properties, TimeREISE can generate distinct masks for different channels, ensuring that importance is correctly attributed to the relevant sensor stream.
As a model-agnostic tool, TimeREISE treats the classifier as a black box. It perturbs the input signal numerous times, observes the resulting changes in the output score, and aggregates these observations into a comprehensive attribution heatmap.
Experimental Evaluation
The authors validated TimeREISE across 17 diverse datasets, including the standard UEA & UCR Time Series Repository (e.g., ECG5000) and a custom Synthetic Anomaly Dataset. The synthetic data was particularly valuable as it provided a mathematical "ground truth," allowing researchers to measure how closely the explanations matched known anomalous features.
TimeREISE was compared against five state-of-the-art XAI methods: FeatureAblation, GuidedBackprop, IntegratedGradients, LIME, and Occlusion. Performance was measured using causal metrics (Insertion/Deletion), continuity (smoothness), and sensitivity to input perturbations.
Results and Discussion
The experimental results highlight TimeREISE's superiority in several key areas:
- Causal Accuracy: TimeREISE achieved the best average Deletion score (0.2516), indicating that the features it identifies as "important" are indeed critical to the model's decision-making process.
- Interpretability through Smoothness: Continuity is a vital metric for human experts. TimeREISE produced significantly smoother explanations (0.0267) compared to the next best method, Occlusion (0.0565).
- Robustness: The method proved highly resilient to small, insignificant perturbations, outperforming gradient-based methods which often exhibit "jittery" or unstable attribution maps.
A key insight from the study is that the "neighborhood" of a feature matters. In anomaly detection, highlighting only the peak is often insufficient; the surrounding context is what the model actually processes. TimeREISE’s multi-granularity approach naturally captures these contextual dependencies.
Conclusion
TimeREISE represents a significant step forward in making time-series AI more transparent. By prioritizing temporal continuity and channel independence, it overcomes the limitations of porting computer vision methods to the signal processing domain. While the perturbation-based approach incurs a higher computational cost than single-pass gradient methods, the gains in robustness and human-readability make it a powerful tool for high-stakes time-series applications. Future work will focus on automating hyperparameter selection to adapt the "evolving" masks to the specific frequency characteristics of different datasets.
Summary updated