AimTS: Augmented Series and Image Contrastive Learning for Time Series Classification
Yuxuan Chen, Shanshan Huang, Yunyao Cheng, Peng Chen, Zhongwen Rao, Yang Shu, Bin Yang, Lujia Pan, Chenjuan Guo
TL;DR
AimTS tackles data scarcity and cross-domain generalization in time series classification by pre-training on multi-source data with a two-level prototype-based contrastive loss and by incorporating an image modality through series-image contrastive learning. The method combines intra- and inter-prototype losses to robustly utilize diverse augmentations, while a geodesic mixup strategy enriches negative samples by jointly encoding numerical and structural information. Empirical results on UCR and UEA benchmarks show strong generalization across datasets, with significant gains in few-shot settings and substantial efficiency in memory and computation. Overall, AimTS advances cross-domain TSC by leveraging multi-source pre-training and cross-modal cues to achieve robust, scalable representations with practical impact for diverse time series tasks.
Abstract
Time series classification (TSC) is an important task in time series analysis. Existing TSC methods mainly train on each single domain separately, suffering from a degradation in accuracy when the samples for training are insufficient in certain domains. The pre-training and fine-tuning paradigm provides a promising direction for solving this problem. However, time series from different domains are substantially divergent, which challenges the effective pre-training on multi-source data and the generalization ability of pre-trained models. To handle this issue, we introduce Augmented Series and Image Contrastive Learning for Time Series Classification (AimTS), a pre-training framework that learns generalizable representations from multi-source time series data. We propose a two-level prototype-based contrastive learning method to effectively utilize various augmentations in multi-source pre-training, which learns representations for TSC that can be generalized to different domains. In addition, considering augmentations within the single time series modality are insufficient to fully address classification problems with distribution shift, we introduce the image modality to supplement structural information and establish a series-image contrastive learning to improve the generalization of the learned representations for TSC tasks. Extensive experiments show that after multi-source pre-training, AimTS achieves good generalization performance, enabling efficient learning and even few-shot learning on various downstream TSC datasets.
