T-Rep: Representation Learning for Time Series using Time-Embeddings
Archibald Fraikin, Adrien Bennetot, Stéphanie Allassonnière
TL;DR
T-Rep presents a self-supervised framework for learning timestep-level representations of multivariate time series by jointly learning learnable time-embeddings with a convolutional encoder. Two pretext tasks—Time-embedding Divergence Prediction and Time-embedding-conditioned Forecasting—drive the model to capture trend, periodicity, and distribution shifts while enforcing contextual consistency and enabling a hierarchical, multiscale representation. Empirically, T-Rep outperforms state-of-the-art SSL methods across anomaly detection, classification, and forecasting, and shows superior robustness to missing data with a compact latent space, while offering interpretable temporal trajectories. The approach offers a principled way to encode temporal structure in SSL for time series, with potential impact in medicine, climate, and sensor-domain applications where data are noisy, incomplete, and unlabeled.
Abstract
Multivariate time series present challenges to standard machine learning techniques, as they are often unlabeled, high dimensional, noisy, and contain missing data. To address this, we propose T-Rep, a self-supervised method to learn time series representations at a timestep granularity. T-Rep learns vector embeddings of time alongside its feature extractor, to extract temporal features such as trend, periodicity, or distribution shifts from the signal. These time-embeddings are leveraged in pretext tasks, to incorporate smooth and fine-grained temporal dependencies in the representations, as well as reinforce robustness to missing data. We evaluate T-Rep on downstream classification, forecasting, and anomaly detection tasks. It is compared to existing self-supervised algorithms for time series, which it outperforms in all three tasks. We test T-Rep in missing data regimes, where it proves more resilient than its counterparts. Finally, we provide latent space visualisation experiments, highlighting the interpretability of the learned representations.
