Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Learning by Shifting: Temporal View Construction for Time Series Contrastive Learning

About

Supervised learning demands large quantities of labeled data, a bottleneck that is expensive and reliant on domain-specific expertise. Self-supervised learning, particularly contrastive learning, has emerged as a compelling alternative, enabling rich representation learning directly from unlabeled data. Yet its success hinges critically on the design of positive and negative sample pairs. Existing approaches for time series rely on hand-crafted augmentations and masking heuristics that embed strong domain assumptions, often limiting generalization across diverse temporal patterns and potentially introducing spurious correlations. In this work, we challenge this paradigm by demonstrating that explicitly encoding temporal shift invariance through a simple, deterministic view construction is sufficient to learn strong representations for time series classification. By exploiting temporal structure, our method, Shift Invariant Feature Training (ShiFT), achieves state-of-the-art performance on six diverse real-world time series benchmark datasets, as well as the UCR and UEA archives, while reducing training time. Beyond empirical performance, we present a systematic analysis of contrastive learning dynamics in time series settings, examining the effects of batch size and the number of negatives on downstream performance. Our findings provide practical insights for designing efficient contrastive learning frameworks for time series representation learning. The source code is publicly available at https://github.com/sfi-norwai/ShiFT.

Abdul-Kazeem Shamba, Kerstin Bach, Gavin Taylor• 2026

Related benchmarks

TaskDatasetResultRank
Time-series classificationPAMAP2
Accuracy72.74
60
Time-series classificationWISDM 2
Accuracy63.68
43
Time-series classificationSKODA
Accuracy99.08
36
Time-series classificationHarth
Accuracy90.34
36
Time-series classification124 UCR Datasets
Average Accuracy80.99
18
Time-series classification28 UEA Datasets
Average Accuracy70.26
18
ClassificationSLEEPM
1NN Accuracy85.22
13
ClusteringPAMAP2
ARI37.9
10
ClassificationPAMAP2
1NN Accuracy66.79
7
ClassificationECG2
1NN Accuracy63.74
7
Showing 10 of 20 rows

Other info

Follow for update