Skip to main content
QUICK REVIEW

[Paper Review] Temporal Dependencies in Feature Importance for Time Series Predictions

Kin Kwan Leung, Clayton Rooke|arXiv (Cornell University)|Jul 29, 2021
Explainable Artificial Intelligence (XAI)Computer Science7 citations
TL;DR

This paper proposes WinIT, a feature removal-based explainability method for multivariate time series that accounts for temporal dependencies by aggregating feature importance over a window of future predictions. WinIT outperforms existing methods on synthetic and real-world datasets, showing improved consistency and robustness across evaluation strategies, particularly in capturing delayed feature impacts.

ABSTRACT

Time series data introduces two key challenges for explainability methods: firstly, observations of the same feature over subsequent time steps are not independent, and secondly, the same feature can have varying importance to model predictions over time. In this paper, we propose Windowed Feature Importance in Time (WinIT), a feature removal based explainability approach to address these issues. Unlike existing feature removal explanation methods, WinIT explicitly accounts for the temporal dependence between different observations of the same feature in the construction of its importance score. Furthermore, WinIT captures the varying importance of a feature over time, by summarizing its importance over a window of past time steps. We conduct an extensive empirical study on synthetic and real-world data, compare against a wide range of leading explainability methods, and explore the impact of various evaluation strategies. Our results show that WinIT achieves significant gains over existing methods, with more consistent performance across different evaluation metrics. The code for our work is publicly available at \url{https://github.com/layer6ai-labs/WinIT}.

Motivation & Objective

  • To address the challenge of temporal dependencies in feature importance for time series explainability, where features at different time steps are interdependent and their importance varies over time.
  • To develop a feature removal-based method that captures the dynamic, time-varying importance of features by aggregating their impact over a window of future predictions.
  • To improve the robustness of explainability evaluation in time series by investigating and proposing complementary masking strategies that account for temporal correlation in feature removal.
  • To evaluate WinIT on both synthetic data with controlled delayed dependencies and real-world time series, demonstrating superior performance over state-of-the-art methods.
  • To provide a reproducible framework for time series explainability with publicly available code and standardized evaluation protocols.

Proposed method

  • WinIT computes feature importance as the difference in model prediction changes when a feature is removed, but considers the impact over a window of future time steps to account for temporal dependence.
  • It defines the importance of a feature observation at time t as the aggregated effect on predictions over a window [t, t+N], using a score i(S)ₐᵇ that measures prediction change over multiple steps.
  • The method uses a windowed aggregation strategy to summarize importance across time, enabling detection of delayed effects where feature changes influence predictions with a lag.
  • It evaluates performance using multiple masking strategies—such as standard, balanced, and prediction difference masking—to assess robustness and avoid bias in evaluation.
  • The approach is model-agnostic and applies to any time series model, relying only on input-output behavior to compute feature importance.
  • It introduces a hyperparameter N (window size) to control the temporal scope of importance aggregation, with empirical analysis showing stable performance across a range of values.

Experimental results

Research questions

  • RQ1How can feature importance in time series be modeled to account for temporal dependencies between observations of the same feature?
  • RQ2To what extent can a feature removal-based method capture delayed impacts of features on model predictions, where the effect appears after a time lag?
  • RQ3How do different masking strategies affect the evaluation of time series explainability methods, and which are most robust for fair comparison?
  • RQ4Does WinIT consistently outperform existing saliency methods across diverse evaluation metrics and real-world time series datasets?
  • RQ5Can the window size hyperparameter be tuned effectively to balance sensitivity to delayed effects and computational cost?

Key findings

  • WinIT achieves a 7.8% AUC drop on the MIMIC-III mortality prediction task using the top 5% most important observations, outperforming all baselines under STD masking.
  • On the delayed spike synthetic dataset, WinIT's performance improves significantly with window size N=3, capturing the exact two-step delay in feature impact.
  • Performance stabilizes for window sizes beyond N=3 in both synthetic and real-world experiments, indicating robustness to hyperparameter choice.
  • WinIT-PD (prediction difference) outperforms WinIT-KL and WinIT-JS in AUC drop, with a 7.6% drop at K=50, showing the importance of the choice of importance aggregation function.
  • The method demonstrates consistent performance across different masking strategies, with minimal variance in results, indicating robustness to evaluation protocol variations.
  • The window size N has a linear relationship with runtime, enabling efficient hyperparameter search across a wide range of values.

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.