Learning Soft Sparse Shapes for Efficient Time-Series Classification
About
Shapelets are discriminative subsequences (or shapes) with high interpretability in time series classification. Due to the time-intensive nature of shapelet discovery, existing shapelet-based methods mainly focus on selecting discriminative shapes while discarding others to achieve candidate subsequence sparsification. However, this approach may exclude beneficial shapes and overlook the varying contributions of shapelets to classification performance. To this end, we propose a Soft sparse Shapes (SoftShape) model for efficient time series classification. Our approach mainly introduces soft shape sparsification and soft shape learning blocks. The former transforms shapes into soft representations based on classification contribution scores, merging lower-scored ones into a single shape to retain and differentiate all subsequence information. The latter facilitates intra- and inter-shape temporal pattern learning, improving model efficiency by using sparsified soft shapes as inputs. Specifically, we employ a learnable router to activate a subset of class-specific expert networks for intra-shape pattern learning. Meanwhile, a shared expert network learns inter-shape patterns by converting sparsified shapes into sequences. Extensive experiments show that SoftShape outperforms state-of-the-art methods and produces interpretable results.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Time-series classification | 128 UCR datasets | Avg Accuracy93.26 | 39 | |
| Medical Time Series Classification | PTB-XL 5-Classes | Accuracy78.69 | 38 | |
| Medical Time Series Classification | ADFTD 3-Classes | Accuracy (%)88.82 | 38 | |
| Time-series classification | Adiac (UCR) | Accuracy93.7 | 28 | |
| Time-series classification | UCR Archive Yoga | Accuracy98.3 | 28 | |
| Time-series classification | UCR Archive ItalyPowerDemand | Accuracy98.2 | 28 | |
| Time-series classification | UCR Archive Lightning2 | Accuracy88.6 | 28 | |
| Time-series classification | APAVA 2-Classes | Accuracy99.92 | 26 | |
| 2-class EEG classification | APAVA EEG-2 (Cross-subject) | Accuracy81.22 | 26 | |
| Time-series classification | PTB 2-Classes | Accuracy99.9 | 26 |