Explainable Multivariate Time Series Classification: A Deep Neural Network Which Learns To Attend To Important Variables As Well As Informative Time Intervals

Tsung-Yu Hsieh, Suhang Wang, Yiwei Sun, Vasant G. HonavararXiv 2020

Abstract

Multivariate Time Series (MTS) classification is critical in high-stakes domains like healthcare, yet many state-of-the-art models remain "black boxes." This paper introduces LAXCAT (Locality Aware eXplainable Convolutional ATtention network), a novel architecture that combines convolutional feature extraction with a dual-attention mechanism. LAXCAT identifies both significant variables and informative time intervals, providing interpretable explanations for its predictions while maintaining superior accuracy and computational efficiency compared to traditional RNN-based models.

Introduction

Multivariate Time Series (MTS) data, such as multi-channel EEG or sensor networks, presents significant modeling challenges due to its high dimensionality and temporal dependencies. While deep learning models like LSTMs and GRUs have shown promise, their lack of transparency is a major hurdle in fields like clinical medicine. If an AI predicts a seizure, clinicians must understand the underlying physiological triggers—whether they are specific spikes in a single sensor or patterns across multiple channels.

Existing explainable AI (XAI) methods often focus on either variable importance or temporal importance in isolation. Furthermore, point-wise attention can be sensitive to noise. LAXCAT addresses these gaps by focusing on time intervals of interest (TOIs) and employing a dual-attention strategy to capture dynamic relevance across both sensors and time.

Methodology: The LAXCAT Architecture

The LAXCAT model is built on three modular components designed to balance predictive power with interpretability:

  1. CNN Feature Extraction: Instead of processing raw data points, LAXCAT utilizes 1D convolutional layers to extract features from local neighborhoods (TOIs). This allows the model to capture meaningful temporal patterns, such as specific wave morphologies, rather than being distracted by point-wise noise.
  2. Variable Attention Module: This module operates within each time interval to assign weights to different variables. It dynamically determines which sensor provides the most relevant information for a specific window.
  3. Temporal Attention Module: This component evaluates the importance of different time intervals across the entire sequence, identifying which windows are most indicative of the final classification.
The LAXCAT architecture: CNN feature extraction followed by Variable and Temporal Attention modules.

By integrating these modules, the network generates a Joint Attention map, offering a comprehensive heatmap of importance across both variable and temporal dimensions.

Experimental Evaluation

The model was rigorously tested across four diverse datasets:

  • PM2.5 (Beijing Air Quality): Meteorological data used to predict pollution levels.
  • Seizure (EEG): 23-channel EEG recordings for epilepsy detection.
  • Motor Task (EEG): 15-channel EEG to distinguish between left-hand and right-hand movements.
  • Synthetic Data: Custom "square wave" signals designed to validate the attention mechanism's accuracy in feature localization.

Results and Discussion

LAXCAT demonstrated significant improvements in both performance and interpretability:

  • Superior Accuracy: On the Movement EEG dataset, LAXCAT achieved 87.21% accuracy, outperforming the best baseline (84.09%).
  • Computational Efficiency: Due to its parallelizable convolutional structure, LAXCAT trained nearly 100x faster than dual-attention RNNs (DARNN) on long sequences like the Seizure dataset.
  • Robust Explainability: The model's attention maps correctly identified neuroscientific principles, such as the contralateral control of hand movements in the Motor Task study.
Conceptual overview of LAXCAT's explainability, showing how attention modules highlight specific patterns in multivariate data.

Key Insights

  • Interval-Based Attention: Focusing on intervals rather than individual points makes the model more robust to noise and better at capturing complex temporal signatures.
  • Dynamic Relevance: LAXCAT captures how a variable's importance shifts over time, recognizing that a sensor may only be critical during specific, brief windows.

Conclusion and Future Work

LAXCAT represents a significant step toward transparent AI for complex time series. While effective, future work could explore dilated convolutions to handle multiple temporal scales and adapt the architecture for irregularly sampled data common in electronic health records. Additionally, the potential for transfer learning of explainable features across domains remains a promising avenue for research.

Summary updated

BibTeX
@misc{hsieh2020explainable,
  author = {Tsung-Yu Hsieh and Suhang Wang and Yiwei Sun and Vasant G. Honavar},
  title = {{Explainable Multivariate Time Series Classification: A Deep Neural Network Which Learns To Attend To Important Variables As Well As Informative Time Intervals}},
  year = {2020},
  eprint = {2011.11631},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.11631},
}
Figure