Time Series as Images: Vision Transformer for Irregularly Sampled Time Series

Zekun Li, SHIYANG LI, Xifeng Yan
3/1/2023

No official code found. Best implementation: Leezekun/ViTST (169 stars, last commit 2023-11-12).

Abstract

Irregularly sampled time series are increasingly prevalent, particularly in medical domains. While various specialized methods have been developed to handle these irregularities, effectively modeling their complex dynamics and pronounced sparsity remains a challenge. This paper introduces a novel perspective by converting irregularly sampled time series into line graph images, then utilizing powerful pre-trained vision transformers for time series classification in the same way as image classification. This method not only largely simplifies specialized algorithm designs but also presents the potential to serve as a universal framework for time series modeling. Remarkably, despite its simplicity, our approach outperforms state-of-the-art specialized algorithms on several popular healthcare and human activity datasets. Especially in the rigorous leave-sensors-out setting where a portion of variables is omitted during testing, our method exhibits strong robustness against varying degrees of missing observations, achieving an impressive improvement of 42.8% in absolute F1 score points over leading specialized baselines even with half the variables masked. Code and data are available at https://github.com/Leezekun/ViTST

View on arXivView PDF

Code Implementations(1)

Leezekun/ViTSTCommunity100%

[NeurIPS 2023] The official repo for the paper: "Time Series as Images: Vision Transformer for Irregularly Sampled Time Series"."

16913Shell, PythonFeb 23, 20232 years ago

Cite this paper

@article{li2023time,
  title  = {Time Series as Images: Vision Transformer for Irregularly Sampled Time Series},
  author = {Zekun Li and SHIYANG LI and Xifeng Yan},
  year   = {2023},
  eprint = {2303.12799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.12799},
  journal = {NEURIPS 2023 2023}
}

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

Discussion