Unsupervised Representation Learning for Time Series with Temporal Neighborhood Coding
About
Time series are often complex and rich in information but sparsely labeled and therefore challenging to model. In this paper, we propose a self-supervised framework for learning generalizable representations for non-stationary time series. Our approach, called Temporal Neighborhood Coding (TNC), takes advantage of the local smoothness of a signal's generative process to define neighborhoods in time with stationary properties. Using a debiased contrastive objective, our framework learns time series representations by ensuring that in the encoding space, the distribution of signals from within a neighborhood is distinguishable from the distribution of non-neighboring signals. Our motivation stems from the medical field, where the ability to model the dynamic nature of time series data is especially valuable for identifying, tracking, and predicting the underlying patients' latent states in settings where labeling data is practically impossible. We compare our method to recently developed unsupervised representation learning approaches and demonstrate superior performance on clustering and classification tasks for multiple datasets.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Multivariate Forecasting | ETTh1 | MSE0.632 | 645 | |
| Multivariate Time-series Forecasting | Weather | MSE0.484 | 276 | |
| Time Series Forecasting | ETTh1 (test) | MSE0.632 | 262 | |
| Human Activity Recognition | RealWorld-HAR | Accuracy88.92 | 50 | |
| Physical Activity Recognition | PAMAP2 | Acc83.87 | 50 | |
| Time-series classification | UEA Time Series Classification Archive EC FD HW HB JV PEMS-SF SCP1 SCP2 SAD UW | Accuracy (EC)29.7 | 28 | |
| Time-series classification | UEA time series classification archive (test) | Average Accuracy67 | 27 | |
| Vehicle Recognition | MOD | Accuracy95.18 | 26 | |
| Vehicle Recognition | ACIDS | Accuracy83.52 | 26 | |
| Human Activity Recognition | MOD | Accuracy94.98 | 24 |