The Way to my Heart is through Contrastive Learning: Remote Photoplethysmography from Unlabelled Video

John Gideon, Simon StentICCV 2021

Abstract

The ability to reliably estimate physiological signals from video is a powerful tool in low-cost, pre-clinical health monitoring. In this work we propose a new approach to remote photoplethysmography (rPPG)–the measurement of blood volume changes from observations of a person’s face or skin. Similar to current state-of-the-art methods for rPPG, we apply neural networks to learn deep representations with invariance to nuisance image variation. In contrast to such methods, we employ a fully self-supervised training approach, which has no reliance on expensive ground truth physiological training data. Our proposed method uses contrastive learning with a weak prior over the frequency and temporal smoothness of the target signal of interest. We evaluate our approach on four rPPG datasets, showing that comparable or better results can be achieved compared to recent supervised deep learning methods but without using any annotation. In addition, we incorporate a learned saliency resampling module into both our unsupervised approach and supervised baseline. We show that by allowing the model to learn where to sample the input image, we can reduce the need for hand-engineered features while providing some interpretability into the model’s behavior and possible failure modes.

Introduction

Remote photoplethysmography (rPPG) is the science of detecting minute changes in light reflection from the skin caused by blood volume pulses. While traditional methods relied on hand-crafted signal processing, recent deep learning approaches have significantly improved robustness to "nuisance" factors like lighting changes and head motion. However, these models typically require massive amounts of supervised data: video frames perfectly synchronized with ground-truth physiological signals (like ECG or contact PPG). Collecting this data is expensive, difficult to scale, and prone to synchronization errors.

Overview of the self-supervised rPPG model pipeline, showing the transition from input video to inferred PPG signals and saliency maps.

This research addresses the "data bottleneck" by introducing a fully self-supervised framework. By leveraging contrastive learning and a novel saliency-based sampling module, the authors demonstrate that a model can learn to extract a pulse signal simply by observing unlabelled video, matching or even exceeding the performance of state-of-the-art supervised methods.

Methodology

The proposed framework is built on three core assumptions: heart rate lies within a known physiological range (40–250 bpm), it does not change instantaneously, and it is the dominant periodic visual signal in that frequency range.

Contrastive Learning via Frequency Resampling

To train without labels, the system utilizes a Multi-View Triplet Loss (MVTL). It creates "positive" and "negative" pairs by taking a video clip (the anchor) and artificially speeding it up or slowing it down through frequency resampling. The model is forced to learn that the original clip and its resampled version share the same underlying "pulse" structure, while clips with different heart rates are distinct. In this context, temporal information becomes the primary feature for identity, replacing the spatial augmentations (like crops or flips) common in standard computer vision contrastive learning.

The detailed training architecture showing the saliency sampler (S), frequency resampler (R), and the contrastive triplet loss mechanism.

Saliency Sampler and PPG Estimator

A front-end saliency sampler, based on a truncated ResNet-18, learns to identify which parts of the face (e.g., forehead or cheeks) contain the strongest pulse signal. This module generates a saliency map used to warp the input video, focusing the estimator's attention on skin regions. The core PPG Estimator is a modified PhysNet (3D CNN) that extracts the 1D physiological signal from the spatio-temporal video volume.

Experimental Results

The method was evaluated on four diverse rPPG datasets: PURE (controlled motion), COHFACE (natural light, heavy compression), MR-NIRP-Car (automotive environment), and UBFC-rPPG (stressful tasks).

Key findings include:

  • Superior Performance on Compressed Data: On the COHFACE dataset, the contrastive method achieved an RMSE of 4.6 bpm, vastly outperforming the supervised HR-CNN baseline (10.8 bpm). This suggests the method is particularly robust to quantization artifacts.
  • Label-Free Parity: On the UBFC dataset, the contrastive model (4.6 RMSE) performed slightly better than the supervised version (4.9 RMSE), proving that ground-truth labels are not strictly necessary for high-accuracy rPPG.
  • Interpretability: The saliency sampler provides a "sanity check" for the model's behavior. Visualizing the maps allows researchers to confirm the model is attending to skin rather than periodic noise from the background or camera flicker.

Conclusion and Future Work

This work demonstrates that the "weak prior" of heart rate stability is a highly effective training signal, often more reliable than noisy or desynchronized ground-truth labels. While the model shows sensitivity to high-motion scenarios where nuisance signals overwhelm the pulse, the success of this self-supervised approach opens the door to training on massive, unlabelled "in-the-wild" video datasets. Future scaling could lead to a universal rPPG estimator capable of working across all ethnicities, lighting conditions, and camera types without the need for specialized medical hardware during training.

Summary updated

BibTeX
@inproceedings{gideon2021way,
  author = {John Gideon and Simon Stent},
  title = {{The Way to my Heart is through Contrastive Learning: Remote Photoplethysmography from Unlabelled Video}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=VvGr30PyhDo},
}
Figure