ShapeX: Shapelet-Driven Post Hoc Explanations for Time Series Classification Models
Bosong Huang, Ming Jin, Yuxuan Liang, Johan Barthelemy, Debo Cheng, Qingsong Wen, Chenghao Liu, Shirui Pan
Abstract
Explaining time series classification models is crucial, particularly in high-stakes applications such as healthcare and finance, where transparency and trust play a critical role. Although numerous time series classification methods have identified key subsequences, known as shapelets, as core features for achieving stateof-the-art performance and validating their pivotal role in classification outcomes, existing post-hoc time series explanation (PHTSE) methods primarily focus on timestep-level feature attribution. These explanation methods overlook the fundamental prior that classification outcomes are predominantly driven by key shapelets. To bridge this gap, we present SHAPEX, an innovative framework that segments time series into meaningful shapelet-driven segments and employs Shapley values to assess their saliency. At the core of SHAPEX lies the Shapelet Describe-and-Detect (SDD) framework, which effectively learns a diverse set of shapelets essential for classification. We further demonstrate that SHAPEX produces explanations which reveal causal relationships instead of just correlations, owing to the atomicity properties of shapelets. Experimental results on both synthetic and real-world datasets demonstrate that SHAPEX outperforms existing methods in identifying the most relevant subsequences, enhancing both the precision and causal fidelity of time series explanations. Our code is made available at https://github.com/BosonHwang/ShapeX
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d63a2e94-58b7-412e-9632-2c7b269b8f22Cited by top-tier papers2
- Rating Quality of Diverse Time Series Data by Meta-learning from LLM JudgmentShunyu Wu, Dan Li, Wenjie Feng, Haozheng Ye et al.ICLR 2026 · 2 citations
- Unified Time Series Explanations via Amortized Optimization and Instance-level Multi-Expert Knowledge DistillationViet-Hung Tran, Zichi Zhang, Ngoc Doan, Xuan Hoang Nguyen et al.ICML 2026
Builds on16
- A Time Series is Worth 64 Words: Long-term Forecasting with TransformersYuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant KalagnanamICLR 2023 · 536 citations
- Benchmarking Deep Learning Interpretability in Time Series PredictionsAya Abdelsalam Ismail, Mohamed K. Gunady, Héctor Corrada Bravo, Soheil FeiziNeurIPS 2020 · 249 citations
- Improving Deep Learning Interpretability by Saliency Guided TrainingAya Abdelsalam Ismail, Héctor Corrada Bravo, Soheil FeiziNeurIPS 2021 · 121 citations
- Explaining Time Series Predictions with Dynamic MasksJonathan Crabbé, Mihaela van der SchaarICML 2021 · 115 citations
- What went wrong and when? Instance-wise feature importance for time-series black-box modelsSana Tonekaboni, Shalmali Joshi, Kieran Campbell, David Duvenaud et al.NeurIPS 2020 · 94 citations
Related papers
- Learning Soft Sparse Shapes for Efficient Time-Series ClassificationZhen Liu, Yicheng Luo, Boyuan Li, Emadeldeen Eldele et al.ICML 2025
- TSec: An Efficient and Effective Framework for Time Series ClassificationYuanyuan Yao, Hailiang Jie, Lu Chen, Tianyi Li et al.ICDE 2024 · 7 citations
- Diffusion Language-Shapelets for Semi-supervised Time-Series ClassificationZhen Liu, Wenbin Pei, Disen Lan, Qianli MaAAAI 2024 · 24 citations
- MIX: A Multi-view Time-Frequency Interactive Explanation Framework for Time Series ClassificationViet-Hung Tran, Ngoc Phu Doan, Zichi Zhang, Tuan Dung Pham et al.NeurIPS 2025 · 3 citations
- ShapeNet: A Shapelet-Neural Network Approach for Multivariate Time Series ClassificationGuozhong Li, Byron Choi, Jianliang Xu, Sourav S. Bhowmick et al.AAAI 2021 · 177 citations
