Skip to main content
QUICK REVIEW

[Paper Review] timeXplain -- A Framework for Explaining the Predictions of Time Series Classifiers

Felix Mujkanovic, Vanja Doskoč|arXiv (Cornell University)|Jul 15, 2020
Time Series Analysis and ForecastingComputer Science23 references9 citations
TL;DR

timeXplain is a model-agnostic, post-hoc explanation framework for time series classifiers that uses SHAP-based perturbation with domain-specific mappings in the time, frequency, and statistical domains. It achieves higher explanation fidelity than baseline methods and rivals model-specific approaches like CAM and SAX-VSM, especially with sample replacement and background set class splitting.

ABSTRACT

Modern time series classifiers display impressive predictive capabilities, yet their decision-making processes mostly remain black boxes to the user. At the same time, model-agnostic explainers, such as the recently proposed SHAP, promise to make the predictions of machine learning models interpretable, provided there are well-designed domain mappings. We bring both worlds together in our timeXplain framework, extending the reach of explainable artificial intelligence to time series classification and value prediction. We present novel domain mappings for the time domain, frequency domain, and time series statistics and analyze their explicative power as well as their limits. We employ a novel evaluation metric to experimentally compare timeXplain to several model-specific explanation approaches for state-of-the-art time series classifiers.

Motivation & Objective

  • To address the lack of interpretable, model-agnostic explanation methods for time series classifiers.
  • To extend SHAP-based explanation to time series by designing domain mappings for time domain, frequency domain, and time series statistics.
  • To evaluate the explicative power and limitations of these mappings in generating faithful local explanations.
  • To compare timeXplain’s explanation fidelity against model-specific methods across multiple state-of-the-art classifiers.
  • To provide a reusable, open-source framework for local explanation of time series predictions.

Proposed method

  • The framework uses SHAP’s Kernel SHAP for model-agnostic local explanation, querying the classifier around a specimen input.
  • It introduces three domain mappings: time slice-based (using time domain), frequency band-based (using Fourier transform), and statistical feature-based (using summary statistics).
  • Perturbations are applied via synthetic replacements: global mean, global noise, local mean, local noise, or sample replacement from a background set.
  • Background set class splitting is applied to improve explanation fidelity by preserving class-specific distributional characteristics.
  • A novel evaluation metric, DTW interval fidelity, measures how well the explanation aligns with the model’s actual prediction behavior.
  • Explanations are generated using multi-run averaging (n=10) with 1000 perturbations per run to stabilize results.

Experimental results

Research questions

  • RQ1How do different domain mappings (time, frequency, statistics) affect the faithfulness and interpretability of explanations for time series classifiers?
  • RQ2What is the relative performance of timeXplain’s explanation methods compared to model-specific approaches like CAM and SAX-VSM?
  • RQ3How does background set class splitting influence explanation fidelity in timeXplain?
  • RQ4Which perturbation strategy (e.g., sample replacement, global noise) yields the most faithful and interpretable explanations?
  • RQ5What are the implicit assumptions and limitations of each domain mapping in timeXplain?

Key findings

  • timeXplain with sample replacement and background set class splitting achieves the highest mean DTW interval fidelity across most classifiers, outperforming global mean and noise replacements.
  • For ResNet, only sample replacement matches the fidelity of the model-specific CAM explanation method.
  • Background set class splitting consistently improves explanation fidelity across all classifiers and perturbation types.
  • Global noise replacement performs poorly for small interval lengths, while sample replacement maintains high fidelity across varying interval lengths.
  • Local mean and local noise perturbations preserve too much structural information, resulting in low fidelity due to insufficient perturbation diversity.
  • timeXplain with sample replacement often exceeds the fidelity of model-specific methods like CAM and SAX-VSM, especially in complex models like ResNet and InceptionTime.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.