Abstracted Shapes as Tokens -- A Generalizable and Interpretable Model for Time-series Classification

Yunshi Wen, Tengfei Ma, Tsui-Wei Weng, Lam M. Nguyen, Anak Agung Julius
11/1/2024
cs.LGstat.ML

Official code: YunshiWen/VQShape (32 stars, MIT, last commit 2025-06-10).

Abstract

In time-series analysis, many recent works seek to provide a unified view and representation for time-series across multiple domains, leading to the development of foundation models for time-series data. Despite diverse modeling techniques, existing models are black boxes and fail to provide insights and explanations about their representations. In this paper, we present VQShape, a pre-trained, generalizable, and interpretable model for time-series representation learning and classification. By introducing a novel representation for time-series data, we forge a connection between the latent space of VQShape and shape-level features. Using vector quantization, we show that time-series from different domains can be described using a unified set of low-dimensional codes, where each code can be represented as an abstracted shape in the time domain. On classification tasks, we show that the representations of VQShape can be utilized to build interpretable classifiers, achieving comparable performance to specialist models. Additionally, in zero-shot learning, VQShape and its codebook can generalize to previously unseen datasets and domains that are not included in the pre-training process. The code and pre-trained weights are available at https://github.com/YunshiWen/VQShape.

View on arXivView PDF

Code Implementations(1)

YunshiWen/VQShapeOfficial100%
MIT
327Shell, PythonOct 18, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wen2024abstracted,
  title  = {Abstracted Shapes as Tokens -- A Generalizable and Interpretable Model for Time-series Classification},
  author = {Yunshi Wen and Tengfei Ma and Tsui-Wei Weng and Lam M. Nguyen and Anak Agung Julius},
  year   = {2024},
  eprint = {2411.01006},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.01006},
  url    = {http://arxiv.org/abs/2411.01006v3},
  journal = {NEURIPS 2024 2024}
}

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/2411.01006.svg)](https://codeofpaper.com/paper/2411.01006)

Discussion