ShapeX: Shapelet-Driven Post Hoc Explanations for Time Series Classification Models

Bo-Song Huang, Ming Jin, Yuxuan Liang, Johan Barthelemy, De-Bo Cheng +3 more
10/1/2025

No confident code implementation found for this paper.

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 state-of-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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025shapex,
  title  = {ShapeX: Shapelet-Driven Post Hoc Explanations for Time Series Classification Models},
  author = {Bo-Song Huang and Ming Jin and Yuxuan Liang and Johan Barthelemy and De-Bo Cheng and Qing-Song Wen and Cheng-Hao Liu and Shi-Rui Pan},
  year   = {2025},
  eprint = {2510.20084},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2510.20084},
  url    = {https://doi.org/10.48550/arXiv.2510.20084},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.20084.svg)](https://codeofpaper.com/paper/2510.20084)

Discussion