CoLaX: Context-Aware Local Explanations for Time Series Classification
Kexuan Zhang, Paolo Frazzetto, Xiaobei Zou, Gustau Camps-Valls, Yang Tang
Abstract
Post-hoc explanations for time series classifiers usually score local patterns, such as subsequences or shapelets, without regard to the rest of the sequence. Yet the same motif can carry different predictive meaning under different global temporal conditions, such as trends or regimes. We propose CoLaX, a context-aware post-hoc explanation framework that builds on shapelet-driven Shapley attribution and conditions local-pattern relevance on a learned representation of the full sequence. Global context acts at two levels: it produces sample-specific prototype weights and a temporally resolved signal that reweights the local activation map. The resulting context-conditioned segments are the players of a Shapley attribution game whose values come only from the frozen black-box classifier. On synthetic benchmarks where identical motifs change relevance across contexts, CoLaX improves AUPRC over the strongest baseline by 30\% on average. On real-world data, it achieves the highest AUPRC on ECG. Additional ablations indicate that the gains come from input-dependent conditioning rather than from additional learnable weights. CoLaX is therefore most useful when recurring local motifs change relevance across sequence-level contexts.
Create a lesson
Related papers
CastWorld: Benchmarking Context-Aware Agentic Time Series Forecasting Beyond Predictive Accuracy
Shared title terminology · Bokai Pan, Ruijie Yang, Mingyue Cheng et al.
COMPASS: Cross-modal Observation with Multi-Path Adaptive Stopping and Selection for Early Time Series Classification
Shared title terminology · Cheng-En Chung, Yujia Wu, Oscar Tai-Yuan Chen et al.
Time Series Structure Learning with Local Causal Parent Discovery
Shared title terminology · Jacqueline Maasch, Shu Wan, Hank Zhu et al.
Breath-Dx: A Time Series Classification Benchmark for Disease Screening with eNose
Shared title terminology · Ivan Poddiakov, Ivan Kruzhilov, Galina Zubkova et al.
Lift Out, Kick In: Decoupling Event Effects for Time Series Forecasting
Shared title terminology · Yunying Zhu, Zichun Cao, Siwei Sun et al.
Hypergraph Structural Entropy-Enhanced Hierarchy-Aware Semi-Supervised Graph Classification
Shared title terminology · Guangjie Zeng, Hao Peng, Angsheng Li et al.