A Unified Shape-Aware Foundation Model for Time Series Classification

Authors

  • Zhen Liu School of Computer Science and Engineering, South China University of Technology, Guangzhou, China Institute for Infocomm Research, Agency for Science, Technology and Research, Singapore
  • Yucheng Wang Institute for Infocomm Research, Agency for Science, Technology and Research, Singapore
  • Boyuan Li School of Computer Science and Engineering, South China University of Technology, Guangzhou, China
  • Junhao Zheng School of Computer Science and Engineering, South China University of Technology, Guangzhou, China
  • Emadeldeen Eldele Department of Computer Science, Khalifa University, UAE
  • Min Wu Institute for Infocomm Research, Agency for Science, Technology and Research, Singapore
  • Qianli Ma School of Computer Science and Engineering, South China University of Technology, Guangzhou, China

DOI:

https://doi.org/10.1609/aaai.v40i28.39574

Abstract

Foundation models pre-trained on large-scale source datasets are reshaping the traditional training paradigm for time series classification. However, existing time series foundation models primarily focus on forecasting tasks and often overlook classification-specific challenges, such as modeling interpretable shapelets that capture class-discriminative temporal features. To bridge this gap, we propose UniShape, a unified shape-aware foundation model designed for time series classification. UniShape incorporates a shape-aware adapter that adaptively aggregates multiscale discriminative subsequences (shapes) into class tokens, effectively selecting the most relevant subsequence scales to enhance model interpretability. Meanwhile, a prototype-based pretraining module is introduced to jointly learn instance- and shape-level representations, enabling the capture of transferable shape patterns. Pre-trained on a large-scale multi-domain time series dataset comprising 1.89 million samples, UniShape exhibits superior generalization across diverse target domains. Experiments on 128 UCR datasets and 30 additional time series datasets demonstrate that UniShape achieves state-of-the-art classification performance, with interpretability and ablation analyses further validating its effectiveness.

Downloads

Published

2026-03-14

How to Cite

Liu, Z., Wang, Y., Li, B., Zheng, J., Eldele, E., Wu, M., & Ma, Q. (2026). A Unified Shape-Aware Foundation Model for Time Series Classification. Proceedings of the AAAI Conference on Artificial Intelligence, 40(28), 23972–23980. https://doi.org/10.1609/aaai.v40i28.39574

Issue

Section

AAAI Technical Track on Machine Learning V