Promoting Generalization in Cross-Dataset Remote Photoplethysmography

Nathan Vance, Jeremy Speth, Benjamin Sporrer, Patrick J. FlynnWorkshops @ CVPR 2023 · DOI

Abstract

Deep learning models for remote photoplethysmography (rPPG) often fail to generalize across datasets because they memorize the average heart rate of the training population. This work addresses this "lazy learning" bias by introducing temporal augmentations—speed and modulation—that decouple the visual signal from specific frequency distributions. By artificially varying the heart rate and its rate of change during training, we force the model to learn the underlying physiological pulse. Our approach reduces cross-dataset Mean Absolute Error (MAE) from over 13 BPM to under 3 BPM, achieving state-of-the-art performance with a standard 3DCNN architecture.

Introduction

Remote Photoplethysmography (rPPG) enables non-contact heart rate monitoring by detecting subtle skin color variations caused by the cardiac cycle. Despite significant progress, deep learning models often exhibit a "generalization gap" when tested on populations with heart rate distributions different from the training set. For instance, a model trained on resting individuals (60-70 BPM) typically fails to accurately predict the heart rate of subjects during exercise (120+ BPM). This failure stems from the model learning the statistical priors of the training data rather than the actual physiological signal.

Methodology

The core of our approach is the use of RPNet, a 3D Convolutional Neural Network (3DCNN), augmented with two novel temporal transformations designed to break frequency-domain biases.

Temporal Augmentations

To prevent the model from "hallucinating" a pulse based on training averages, we implement:

  1. Speed Augmentation: We resample training videos and their ground-truth waveforms to represent a random target heart rate between 40 and 180 BPM. This creates a uniform distribution of frequencies in the training pipeline.
  2. Modulation Augmentation: To simulate real-world heart rate variability, we apply linear acceleration or deceleration to the video frames (up to 7 BPM/s), forcing the model to track dynamic signals.
Overview of the temporal augmentation process, showing how input videos and ground-truth waveforms are transformed into diverse augmented pairs.

Training Pipeline

The training process involves preprocessing the input video, applying the temporal augmentations, and then passing the augmented data through the network. The loss is calculated by comparing the predicted waveform to the augmented ground truth, ensuring the backpropagation signal is tied to the synthetic variations.

The end-to-end training and inference pipeline, highlighting the role of augmentation in the loss calculation.

Experimental Results

We evaluated our method across three distinct datasets: PURE (low HR, low variability), UBFC-rPPG (moderate HR, task-induced variability), and DDPM (high HR, high stress/motion).

Cross-Dataset Performance

The impact of temporal augmentation was most evident in cross-dataset scenarios. When training on the low-HR PURE dataset and testing on the high-HR UBFC dataset, a standard model produced an MAE of 13.69 BPM. With speed and modulation augmentations, this error dropped to 2.25 BPM. Overall, 3-way cross-dataset tests showed an average MAE reduction from >13 BPM to <3 BPM.

Convergence and Stability

Beyond accuracy, these augmentations improved training dynamics. Models trained with temporal variations converged faster and exhibited much tighter confidence intervals on validation sets compared to models trained without augmentation, which often showed signs of overfitting to the training distribution.

Discussion and Limitations

While temporal augmentations effectively mitigate frequency bias, spatial challenges remain. The DDPM dataset, characterized by extreme head movements and facial expressions, remains difficult. This suggests that while we have addressed the "temporal" bias, future work must integrate robust spatial augmentations to handle significant motion artifacts and perspective shifts in unconstrained environments.

Conclusion

This paper demonstrates that the primary bottleneck in rPPG generalization is the model's tendency to memorize training-set heart rate distributions. By introducing simple yet effective temporal augmentations, we can force 3DCNNs to learn the true physiological signal, leading to dramatic improvements in cross-dataset reliability.

Summary updated

BibTeX
@inproceedings{vance2023promoting,
  author = {Nathan Vance and Jeremy Speth and Benjamin Sporrer and Patrick J. Flynn},
  title = {{Promoting Generalization in Cross-Dataset Remote Photoplethysmography}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
  doi = {10.1109/cvprw59228.2023.00637},
}
Figure