Skip to main content
QUICK REVIEW

[Paper Review] Utilizing Expert Features for Contrastive Learning of Time-Series Representations

Manuel Nonnenmacher, Lukas Oldenburg|arXiv (Cornell University)|Jun 23, 2022
Time Series Analysis and ForecastingComputer Science9 citations
TL;DR

This paper proposes ExpCLR, a contrastive learning method that replaces data transformations with expert features to learn time-series representations. By designing a novel loss function that enforces similarity between samples with close expert features and dissimilarity between those with distant features, ExpCLR achieves state-of-the-art performance in both unsupervised and semi-supervised settings across three real-world time-series datasets without relying on data augmentations.

ABSTRACT

We present an approach that incorporates expert knowledge for time-series representation learning. Our method employs expert features to replace the commonly used data transformations in previous contrastive learning approaches. We do this since time-series data frequently stems from the industrial or medical field where expert features are often available from domain experts, while transformations are generally elusive for time-series data. We start by proposing two properties that useful time-series representations should fulfill and show that current representation learning approaches do not ensure these properties. We therefore devise ExpCLR, a novel contrastive learning approach built on an objective that utilizes expert features to encourage both properties for the learned representation. Finally, we demonstrate on three real-world time-series datasets that ExpCLR surpasses several state-of-the-art methods for both unsupervised and semi-supervised representation learning.

Motivation & Objective

  • To address the lack of effective data transformations in time-series contrastive learning, especially in industrial and medical domains where expert features are available.
  • To define two essential properties that useful representations based on expert features should satisfy: proximity for similar expert features and separation for dissimilar ones.
  • To develop a novel contrastive loss function that leverages continuous expert features to enforce these properties, enabling robust representation learning.
  • To demonstrate that ExpCLR surpasses state-of-the-art methods in both unsupervised and semi-supervised time-series representation learning.
  • To provide a general-purpose method applicable to any dataset with expert features, including regression and non-time-series tasks.

Proposed method

  • Introduces two key properties for useful representations: (1) similar expert features should yield close representations, and (2) dissimilar expert features should yield distant representations.
  • Proposes a novel contrastive loss function that uses a quadratic similarity measure between expert features to define positive pairs, replacing traditional data augmentation-based positive pairs.
  • Employs a temperature-scaled contrastive loss with hard-negative mining to improve representation quality, inspired by MoCo and SimCLR but adapted for expert features.
  • Uses a momentum encoder and instance discrimination to stabilize training, similar to SimCLR, but with expert features as the supervisory signal instead of augmentations.
  • Applies the method in both unsupervised and semi-supervised settings, fine-tuning on a fraction of labeled data to evaluate label efficiency.
  • Employs a similarity measure based on squared differences of expert features, ensuring that the loss function is differentiable and suitable for continuous labels.

Experimental results

Research questions

  • RQ1Can expert features be effectively used as a supervisory signal in contrastive learning for time-series data, replacing data transformations?
  • RQ2Do representations learned via expert features satisfy the desired properties of proximity for similar features and separation for dissimilar ones?
  • RQ3How does ExpCLR compare to state-of-the-art contrastive learning methods in terms of performance across unsupervised and semi-supervised time-series representation learning?
  • RQ4Does ExpCLR achieve better label efficiency than existing methods, particularly when only a small fraction of labels is available?
  • RQ5Can the proposed loss function be generalized to other domains beyond time-series data where expert features are available?

Key findings

  • ExpCLR outperforms all competing methods on the HAR, SleepEDF, and Waveform datasets across all label ratios in both unsupervised and semi-supervised settings.
  • With only 20% labeled data, ExpCLR (semi-supervised) surpasses all other methods even when they are trained on 100% of the labels on the HAR and SleepEDF datasets.
  • ExpCLR maintains a performance drop of less than 3.5% when using only 5% labeled data, while supervised cross-entropy pretraining drops by over 17.5% under the same conditions.
  • The quadratic similarity measure (Eq. 5) outperforms both the linear similarity and Gaussian similarity used in prior work, as shown in ablation studies.
  • Hard-negative mining with a decreasing temperature τ improves performance, and the method converges to the non-hard-mined baseline as τ increases, validating the theoretical analysis.
  • The method is robust to hyperparameter choices, with ablation studies showing stable performance across different embedding dimensions, batch sizes, and Δ values.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.