[Paper Review] Self-supervised Contrastive Representation Learning for Semi-supervised Time-Series Classification
This paper proposes TS-TCC, a self-supervised contrastive learning framework for time-series classification that uses time-series-specific weak and strong augmentations to learn robust temporal and contextual representations. It further extends to CA-TCC for semi-supervised learning, leveraging pseudo-labels to improve performance with minimal labeled data, achieving near-supervised accuracy even at 1% label budget.
Learning time-series representations when only unlabeled data or few labeled samples are available can be a challenging task. Recently, contrastive self-supervised learning has shown great improvement in extracting useful representations from unlabeled data via contrasting different augmented views of data. In this work, we propose a novel Time-Series representation learning framework via Temporal and Contextual Contrasting (TS-TCC) that learns representations from unlabeled data with contrastive learning. Specifically, we propose time-series-specific weak and strong augmentations and use their views to learn robust temporal relations in the proposed temporal contrasting module, besides learning discriminative representations by our proposed contextual contrasting module. Additionally, we conduct a systematic study of time-series data augmentation selection, which is a key part of contrastive learning. We also extend TS-TCC to the semi-supervised learning settings and propose a Class-Aware TS-TCC (CA-TCC) that benefits from the available few labeled data to further improve representations learned by TS-TCC. Specifically, we leverage the robust pseudo labels produced by TS-TCC to realize a class-aware contrastive loss. Extensive experiments show that the linear evaluation of the features learned by our proposed framework performs comparably with the fully supervised training. Additionally, our framework shows high efficiency in the few labeled data and transfer learning scenarios. The code is publicly available at \url{https://github.com/emadeldeen24/CA-TCC}.
Motivation & Objective
- Address the challenge of limited labeled time-series data in real-world applications such as healthcare and IoT.
- Develop a self-supervised framework that learns discriminative representations from unlabeled time-series data using contrastive learning.
- Design time-series-specific data augmentations that preserve temporal structure while enabling effective contrastive learning.
- Extend the self-supervised framework to semi-supervised learning by incorporating few labeled samples via class-aware contrastive loss.
- Improve transferability and efficiency of learned representations under low-label and transfer learning settings.
Proposed method
- Propose TS-TCC, a contrastive representation learning framework using temporal and contextual contrasting modules for unlabeled time-series data.
- Design time-series-specific weak augmentations (e.g., scaling, time shift) and strong augmentations (e.g., jitter, permutation) to preserve temporal dependencies.
- Implement a temporal contrasting module that contrasts weak and strong augmented views to learn robust temporal representations.
- Introduce a contextual contrasting module that learns discriminative representations by contrasting different augmented views of the same sample.
- Extend TS-TCC to CA-TCC by using robust pseudo-labels from TS-TCC to train a class-aware contrastive loss in semi-supervised settings.
- Normalize time-series signals between 0 and 1 to standardize augmentation parameters across datasets and improve generalization.
Experimental results
Research questions
- RQ1How do different data augmentation strategies impact the performance of contrastive learning in time-series representation learning?
- RQ2Can a self-supervised contrastive framework achieve performance comparable to fully supervised training with minimal labeled data?
- RQ3How can pseudo-labels from a self-supervised model be effectively leveraged in a semi-supervised setting to improve representation learning?
- RQ4What is the optimal configuration of weak and strong augmentations for time-series contrastive learning across diverse datasets?
- RQ5To what extent do the learned representations generalize to transfer learning and low-label scenarios?
Key findings
- TS-TCC achieved a linear evaluation accuracy of 77.58% when using weak augmentation on one view and strong augmentation on the other, outperforming configurations with only weak or strong augmentations.
- With only 10% of labeled data, the linear probe on features from TS-TCC achieved performance comparable to fully supervised training.
- CA-TCC improved performance further with just 1% of labeled data, demonstrating strong generalization in low-supervision regimes.
- Applying jitter to time shift or scaling as weak augmentation, combined with strong augmentation (e.g., jitter + permutation), yielded 74.69% and 72.35% accuracy, respectively.
- The systematic ablation study confirmed that combining weak and strong augmentations on different views yields the best performance, with optimal parameters including jitter in [0, 0.1] for weak and [0.1, 1] for strong augmentations.
- The framework showed strong transferability, improving performance in transfer learning scenarios across multiple time-series datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.