Lune

KDD2024Top-tier venue

ShapeFormer: Shapelet Transformer for Multivariate Time Series Classification

Xuan-May Le, Ling Luo, Uwe Aickelin, Minh-Tuan Tran

Abstract

Multivariate time series classification (MTSC) has attracted significant research attention due to its diverse real-world applications. Recently, exploiting transformers for MTSC has achieved state-of-the-art performance. However, existing methods focus on generic features, providing a comprehensive understanding of data, but they ignore class-specific features crucial for learning the representative characteristics of each class. This leads to poor performance in the case of imbalanced datasets or datasets with similar overall patterns but differing in minor class-specific details. In this paper, we propose a novel Shapelet Transformer (ShapeFormer), which comprises class-specific and generic transformer modules to capture both of these features. In the class-specific module, we introduce the discovery method to extract the discriminative subsequences of each class (i.e. shapelets) from the training set. We then propose a Shapelet Filter to learn the difference features between these shapelets and the input time series. We found that the difference feature for each shapelet contains important class-specific features, as it shows a significant distinction between its class and others. In the generic module, convolution filters are used to extract generic features that contain information to distinguish among all classes. For each module, we employ the transformer encoder to capture the correlation between their features. As a result, the combination of two transformer modules allows our model to exploit the power of both types of features, thereby enhancing the classification performance. Our experiments on 30 UEA MTSC datasets demonstrate that ShapeFormer has achieved the highest accuracy ranking compared to state-of-the-art methods. The code is available at https://github.com/xuanmay2701/shapeformer.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Accurate and Efficient Multivariate Time Series Forecasting via Offline Clustering cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Accurate and Efficient Multivariate Time Series Forecasting via Offline Clustering cites TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis
  • Accurate and Efficient Multivariate Time Series Forecasting via Offline Clustering cites A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • Accurate and Efficient Multivariate Time Series Forecasting via Offline Clustering cites One Fits All: Power General Time Series Analysis by Pretrained LM
  • Thicker and Quicker: The Jumbo Token for Fast Plain Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers cites TS2Vec: Towards Universal Representation of Time Series
  • ShapeX: Shapelet-Driven Post Hoc Explanations for Time Series Classification Models cites A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • One Fits All: Power General Time Series Analysis by Pretrained LM cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • One Fits All: Power General Time Series Analysis by Pretrained LM cites TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis
  • One Fits All: Power General Time Series Analysis by Pretrained LM cites A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. LaS-Comp: Zero-shot 3D Completion with Latent–Spatial ConsistencyWeilong Yan, Li Haipeng, Hao Xu, Nianjin Ye et al.CVPR 2026 · 14 citations
  2. ShapeX: Shapelet-Driven Post Hoc Explanations for Time Series Classification ModelsBosong Huang, Ming Jin, Yuxuan Liang, Johan Barthelemy et al.NeurIPS 2025 · 8 citations
  3. Thicker and Quicker: The Jumbo Token for Fast Plain Vision TransformersAnthony Fuller, Yousef Yassin, Daniel G. Kyrollos, Evan Shelhamer et al.ICLR 2026 · 5 citations
  4. Accurate and Efficient Multivariate Time Series Forecasting via Offline ClusteringYiming Niu, Jinliang Deng, Lulu Zhang, Zimu Zhou et al.ICDE 2025 · 4 citations
  5. Effective Node-Level Anomaly Detection in HPC Systems via Coarse-Grained Clustering and Fine-Grained Model SharingSibo Xia, Yongqian Sun, Xijie Pan, Yuan Yuan et al.SC 2025 · 3 citations

Builds on15

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. One Fits All: Power General Time Series Analysis by Pretrained LMTian Zhou, Peisong Niu, Xue Wang, Liang Sun et al.NeurIPS 2023 · 1,178 citations
  3. TS2Vec: Towards Universal Representation of Time SeriesZhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang et al.AAAI 2022 · 938 citations
  4. A Time Series is Worth 64 Words: Long-term Forecasting with TransformersYuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant KalagnanamICLR 2023 · 536 citations
  5. TimesNet: Temporal 2D-Variation Modeling for General Time Series AnalysisHaixu Wu, Tengge Hu, Yong Liu, Hang Zhou et al.ICLR 2023 · 423 citations

Related papers

  1. SVP-T: A Shape-Level Variable-Position Transformer for Multivariate Time Series ClassificationRundong Zuo, Guozhong Li, Byron Choi, Sourav S. Bhowmick et al.AAAI 2023 · 53 citations
  2. Adversarial Dynamic Shapelet NetworksQianli Ma, Wanqing Zhuang, Sen Li, Desen Huang et al.AAAI 2020 · 34 citations
  3. Learning Soft Sparse Shapes for Efficient Time-Series ClassificationZhen Liu, Yicheng Luo, Boyuan Li, Emadeldeen Eldele et al.ICML 2025
  4. TSec: An Efficient and Effective Framework for Time Series ClassificationYuanyuan Yao, Hailiang Jie, Lu Chen, Tianyi Li et al.ICDE 2024 · 7 citations
  5. A Shapelet-based Framework for Unsupervised Multivariate Time Series Representation LearningZhiyu Liang, Jianfeng Zhang, Chen Liang, Hongzhi Wang et al.VLDB 2024 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines