Overview
Time Series Classification (TSC) is a critical task across diverse domains, from detecting heart failure in electrocardiograms to monitoring power grid stability. While Deep Learning (DL) models excel at these tasks, they are typically deployed as "black boxes." This opacity obscures the inherent decision-making process, making it difficult for practitioners to trust or verify the model's outputs.
To address this, researchers have introduced MILLET (Multiple Instance Learning for Locally Explainable Time series classification). MILLET is a novel framework that transforms standard deep learning time series classifiers into inherently interpretable models. By replacing standard global pooling with a new method called Conjunctive Pooling, the framework provides high-quality, sparse explanations of model decisions in a single forward pass—without sacrificing predictive accuracy.
The Problem with Conventional TSC
Standard DL architectures for TSC typically rely on Global Average Pooling (GAP) to aggregate features across time. This process is problematic for two main reasons:
- Information Loss: GAP weights all time points equally, which can wash out the specific, localized "motifs" or signatures that actually define a class.
- Opacity: Because aggregation happens before the final classification step, it is nearly impossible to pinpoint exactly which part of the signal triggered the model's decision.
While post-hoc explanation methods like SHAP or LIME exist, they are computationally expensive—often requiring hundreds of model passes—and frequently produce noisy, unreliable results for time series data.
The MILLET Framework and Conjunctive Pooling
The core innovation of MILLET is reframing TSC as a Multiple Instance Learning (MIL) problem. In the MIL paradigm, data is organized into "bags" (the entire time series) that contain multiple "instances" (individual time points).
MILLET requires models to provide time-point-level predictions inherent to their architecture. To achieve this, the authors explored several MIL pooling strategies to replace GAP, ultimately proposing a novel approach: Conjunctive Pooling.
Unlike previous methods that apply attention and classification sequentially, Conjunctive Pooling trains attention and classifier heads in parallel. The final prediction is a weighted average where a time point is only considered influential if both the attention head deems it important and the classifier head identifies it as belonging to a specific class. This parallel structure prevents the classifier from relying on the attention head to pre-filter data, leading to more robust feature learning and cleaner explanations.
Importantly, MILLET is a "plug-and-play" framework, meaning it can be seamlessly integrated into popular backbone architectures like FCN, ResNet, and InceptionTime.
Datasets and Evaluation
The researchers rigorously evaluated MILLET using two primary sources:
- UCR TSC Archive: A standard benchmark comprising 85 univariate datasets spanning diverse domains such as medical imaging, sensor data, and device usage.
- WebTraffic: A novel synthetic dataset designed specifically to evaluate interpretability. It mimics streaming and e-commerce trends by injecting known "signatures" (e.g., spikes, flips, skews). Because the exact locations of these signatures are known, researchers can quantitatively measure whether the model is focusing on the correct regions.
Key Insights and Results
- Interpretability for Free: MILLET generates saliency maps (heatmaps of importance) in a single forward pass. This makes it over 800x faster than perturbation-based methods like SHAP during inference.
- Superior Explanation Quality: On the WebTraffic dataset, MILLET significantly outperformed Class Activation Mapping (CAM) and SHAP in identifying ground-truth discriminatory regions, as measured by the Area Over the Perturbation Curve (AOPCR).
- Competitive Predictive Performance: On the 85 UCR datasets, Conjunctive InceptionTime achieved a mean accuracy of 0.856. This makes it highly competitive with—and sometimes superior to—heavy-duty state-of-the-art ensembles like HC2 and Hydra-MR.
- Robustness to Imbalance: MILLET demonstrated greater robustness to imbalanced datasets than standard methods, improving balanced accuracy by up to 7.4% on highly skewed data.
Limitations and Future Work
While MILLET represents a significant step forward for interpretable TSC, the authors note a few areas for future development. Currently, the framework focuses on univariate time series; extending it to multivariate data would require models to identify influential channels in addition to time points. Furthermore, while the framework theoretically supports variable-length series, current experiments were limited to fixed-length benchmarks. Finally, MILLET sometimes produces overly sparse explanations that might only identify the edges of a long discriminatory region, suggesting a need for future work on "smoothing" explanations to improve coverage.
Summary updated