TL;DR
This paper introduces TimeDRL, a novel self-supervised learning framework for multivariate time-series data. It achieves superior performance in forecasting and classification by learning disentangled timestamp-level and instance-level representations without relying on data augmentation, thus mitigating inductive bias.
What Problem Does This Paper Address?
Multivariate time-series data, prevalent in fields like healthcare and industry, are rich in information but notoriously difficult to work with due to their high dimensionality and the scarcity of labeled data. While self-supervised learning (SSL) has shown promise in learning representations from unlabeled data, existing methods for time-series data face two major hurdles:
- Entangled Representations: Current SSL approaches often focus on learning either timestamp-level embeddings (useful for forecasting, anomaly detection) or instance-level embeddings (useful for classification, clustering), but not both simultaneously. This entanglement can limit the expressiveness of the learned representations.
- Inductive Bias: Many SSL techniques borrow data augmentation strategies from other domains (like images or text), which can inadvertently distort the crucial temporal patterns inherent in time-series data. Even time-series-specific augmentations can impose limiting assumptions about transformation invariance.
TimeDRL aims to overcome these limitations by learning disentangled representations at both the timestamp and instance levels, while strictly avoiding data augmentation to prevent inductive bias.
Methods
TimeDRL employs a two-stage approach: pre-training and fine-tuning.
Pre-training: The core innovation lies in learning disentangled dual-level embeddings. TimeDRL uses a [CLS] token strategy, inspired by NLP models like BERT, to generate both timestamp-level and instance-level embeddings from patched time-series data. This is achieved by:
- Patching and [CLS] Token: The input time-series is first normalized and then divided into patches. A special [CLS] token is prepended to these patches, forming the input to a Transformer encoder.
- Dual Pretext Tasks:
- Timestamp-Predictive Task: This task focuses on optimizing timestamp-level embeddings. It reconstructs the original patched time-series data without any augmentation, using a predictive head (a linear layer) and Mean Squared Error (MSE) loss. This directly learns temporal relationships.
- Instance-Contrastive Task: This task aims to optimize instance-level embeddings. It uses a Siamese network structure where two views of the data are generated by passing the patched input through the encoder twice (leveraging dropout randomness for variability, not augmentation). The [CLS] token embedding from each view is treated as the instance-level representation. A contrastive loss is then applied to align these instance-level embeddings from positive pairs, while avoiding model collapse through a stop-gradient operation.
- Mitigation of Inductive Bias: Crucially, TimeDRL avoids all external data augmentation. Instead, it relies on dropout layers within the instance-contrastive task and a reconstruction approach (without masking) for the timestamp-predictive task to introduce necessary variability.
Fine-tuning: After pre-training, the learned encoder weights are either frozen (for linear evaluation) or fine-tuned with limited labeled data for downstream tasks like forecasting and classification.
Datasets
TimeDRL was evaluated on a variety of real-world datasets:
Time-Series Forecasting (TSF): * Multivariate: ETTh1, ETTh2, ETTm1, ETTm2, Exchange, Weather. These datasets cover electric power deployment, exchange rates, and local climatological data. * Univariate: The same datasets were also used for univariate forecasting, focusing on specific target features.
Time-Series Classification (TSC): * HAR (Human Activity Recognition) * WISDM (Wireless Sensor Data Mining) * Epilepsy * PenDigits * FingerMovements
The paper does not introduce new benchmarks but uses established datasets to demonstrate TimeDRL's generalizability.
Key Insights and Ideas
- Disentangling is Key: The paper strongly argues that separating timestamp-level and instance-level representations is crucial for capturing the full spectrum of information in time-series data, leading to better performance across diverse tasks.
- Augmentation is the Enemy (of Inductive Bias): TimeDRL's success in avoiding data augmentation highlights a critical insight: standard augmentation techniques, even those adapted for time-series, can introduce unwanted biases that hinder generalization. Relying on inherent model randomness (like dropout) is a more robust approach.
- [CLS] Token for Time-Series: Adapting the [CLS] token strategy from NLP for time-series data proves effective for generating instance-level embeddings, overcoming the anisotropy issues often seen with simple pooling methods.
- Dual Pretext Tasks Synergy: The combination of timestamp-predictive and instance-contrastive tasks is more effective than either task alone, demonstrating a synergistic effect in learning comprehensive representations.
Key Results
- Forecasting: TimeDRL achieved an average Mean Squared Error (MSE) improvement of 58.02% on multivariate forecasting and 29.09% on univariate forecasting across 11 benchmarks, outperforming state-of-the-art methods like SimTS and TS2Vec.
- Classification: TimeDRL demonstrated an average accuracy improvement of 1.48% over existing methods on time-series classification tasks. It showed particularly strong results on challenging datasets like FingerMovements, with a 22.86% accuracy boost.
- Semi-Supervised Learning: TimeDRL significantly enhanced performance in semi-supervised settings, especially as the amount of labeled data decreased, showcasing its ability to leverage unlabeled data effectively.
- Efficiency: While using a Transformer encoder is computationally more intensive than convolutional approaches, TimeDRL's patching mechanism significantly narrows the efficiency gap.
Limitations and Future Work
- Computational Cost: Although improved by patching, Transformer-based models like TimeDRL are still generally more computationally expensive than CNN-based baselines.
- Future Work: The authors suggest enhancing TimeDRL for classification tasks and exploring its potential in comparison with large language models (LLMs) for time-series analysis. They also plan to further investigate the impact of different components through ablation studies.
Summary updated