Skip to main content
QUICK REVIEW

[Paper Review] SleepPriorCL: Contrastive Representation Learning with Prior Knowledge-based Positive Mining and Adaptive Temperature for Sleep Staging

Hongjun Zhang, Jing Wang|arXiv (Cornell University)|Oct 15, 2021
EEG and Brain-Computer InterfacesNeuroscience31 references4 citations
TL;DR

This paper proposes SleepPriorCL, a self-supervised contrastive learning method for sleep staging that leverages prior domain knowledge to mine semantically similar positive samples and introduces an adaptive temperature mechanism to improve representation learning. The approach achieves state-of-the-art performance, outperforming existing SSL and supervised baselines, especially with limited labeled data.

ABSTRACT

The objective of this paper is to learn semantic representations for sleep stage classification from raw physiological time series. Although supervised methods have gained remarkable performance, they are limited in clinical situations due to the requirement of fully labeled data. Self-supervised learning (SSL) based on contrasting semantically similar (positive) and dissimilar (negative) pairs of samples have achieved promising success. However, existing SSL methods suffer the problem that many semantically similar positives are still uncovered and even treated as negatives. In this paper, we propose a novel SSL approach named SleepPriorCL to alleviate the above problem. Advances of our approach over existing SSL methods are two-fold: 1) by incorporating prior domain knowledge into the training regime of SSL, more semantically similar positives are discovered without accessing ground-truth labels; 2) via investigating the influence of the temperature in contrastive loss, an adaptive temperature mechanism for each sample according to prior domain knowledge is further proposed, leading to better performance. Extensive experiments demonstrate that our method achieves state-of-the-art performance and consistently outperforms baselines.

Motivation & Objective

  • To address sampling bias in self-supervised contrastive learning for sleep staging, where many semantically similar positives are missed due to random or heuristic negative sampling.
  • To reduce performance degradation caused by including false positives in contrastive learning without relying on ground-truth labels.
  • To improve representation learning by incorporating expert knowledge into positive sample mining and dynamically adjusting gradient penalties via adaptive temperature.
  • To enable high-performance sleep stage classification using only raw EEG signals and minimal labeled data, reducing clinical labeling burden.

Proposed method

  • The method introduces a prior knowledge-based positive mining strategy that retrieves the top-K most similar samples based on handcrafted features (e.g., power spectral density, differential entropy) instead of relying on data augmentation or temporal neighbors.
  • It formulates contrastive learning with multiple positives per anchor, where the positive set is constructed from feature-similar samples rather than a single augmented view.
  • An adaptive temperature mechanism is proposed, where the temperature hyperparameter for each sample is set based on its similarity confidence—higher confidence samples receive higher weights in the loss.
  • The temperature is dynamically adjusted using a learnable function based on feature similarity, which modulates the gradient penalty strength and improves model optimization.
  • The approach uses a standard contrastive loss (e.g., InfoNCE) but modifies the temperature scheduling per sample to emphasize reliable positives and suppress noisy ones.
  • The method is evaluated under linear evaluation protocols and fine-tuning with limited labeled data, demonstrating robustness and generalization.

Experimental results

Research questions

  • RQ1Can prior domain knowledge improve positive sample mining in self-supervised contrastive learning for sleep staging without requiring ground-truth labels?
  • RQ2How does incorporating feature-based similarity for positive mining affect representation quality compared to standard augmentation or temporal neighbor strategies?
  • RQ3Does an adaptive temperature mechanism that varies per sample improve model performance by adjusting gradient penalty strength based on confidence?
  • RQ4To what extent can a self-supervised model pre-trained with SleepPriorCL match or exceed supervised baselines when only a small fraction of labeled data is available?
  • RQ5How sensitive is the method to hyperparameters such as the number of retrieved positives (K) and temperature bounds (τ_min, τ_max)?

Key findings

  • SleepPriorCL achieves state-of-the-art performance on three benchmark datasets: Sleep-EDF39 (76.44±0.83% accuracy, 65.56±1.32% F1), Sleep-EDF153 (78.11±0.43% accuracy, 63.60±0.80% F1), and MASS-SS3 (80.40±0.26% accuracy, 70.60±0.75% F1).
  • The method significantly outperforms baseline SSL methods like SimCLR, DCL, CPC, TNC, and T-Loss, demonstrating the effectiveness of prior-knowledge-based positive mining.
  • With only 1% of labeled data, the pre-trained SleepPriorCL encoder achieves higher accuracy than a supervised model trained on the same small labeled set, highlighting its data efficiency.
  • The ablation study confirms that both prior-knowledge-based mining and adaptive temperature contribute to performance gains, with the full method (Basic+Feature+Adaptive) yielding the best results.
  • Sensitivity analysis shows that performance is stable across a range of K values (0.1 ≤ R ≤ 0.4) and temperature bounds, indicating robustness to hyperparameter choices.
  • The adaptive temperature mechanism consistently improves performance over fixed temperature baselines, especially when combined with knowledge-based mining, confirming its role in mitigating false positive impact.

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.