Abstract
This paper presents the solutions developed by the HFUT-VUT team for Track 1 of the 3rd Vision-based Remote Physiological Signal Sensing (RePSS) Challenge at IJCAI 2024. The objective is to develop a self-supervised learning algorithm for heart rate (HR) estimation using unlabeled facial videos. We propose two distinct self-supervised HR estimation solutions: one based on spatial-temporal modeling and another based on contrastive learning. The first framework utilizes a non-end-to-end approach with a Spatial-Temporal Transformer to capture subtle remote photoplethysmography (rPPG) clues, constrained by the inherent biological characteristics of the signal. The second is an end-to-end solution utilizing contrastive learning to generalize across diverse scenarios. By combining these approaches through an ensemble strategy, our solution achieved an RMSE of 8.85277, securing 2nd place in the challenge.
Introduction
Remote photoplethysmography (rPPG) enables the non-contact monitoring of heart rate by detecting minute skin color variations caused by the cardiac cycle. While deep learning has significantly advanced this field, most state-of-the-art models rely on large-scale datasets with synchronized medical-grade ground truth labels (e.g., ECG). Acquiring such labels is expensive and labor-intensive, and supervised models often struggle to generalize across varying lighting conditions and skin tones.
To address these limitations, we focus on self-supervised learning, which allows models to learn physiological features from unlabeled facial videos. Our approach integrates spatial-temporal modeling with contrastive learning, leveraging biological priors to guide the learning process without the need for explicit heart rate labels.
Methodology
Our framework consists of two primary solutions integrated via an ensemble strategy.
Solution 1: Spatial-Temporal Transformer (Non-End-to-End)
This solution focuses on capturing long-range dependencies in the blood volume pulse through a multi-stage pipeline:
- Preprocessing: Facial videos are converted into Multi-scale Spatial-Temporal maps (MSTmaps). These maps aggregate color information across various facial regions over time, effectively condensing the video into a format suitable for signal analysis.
- Architecture: We employ a Transformer-based model featuring alternating Spatial and Temporal encoders to process the MSTmaps and extract the rPPG signal.
- Self-Supervised Losses: To train the model without labels, we apply four specific biological constraints:
- Bandwidth Loss: Restricts the predicted signal to the human physiological range (40–180 bpm).
- Sparsity Loss: Encourages the model to identify a single dominant frequency peak in the power spectrum.
- Variance Loss: Prevents the model from collapsing into a single static frequency across all samples.
- Periodicity Loss (Novel): This loss assumes that heart rate remains relatively stable over short intervals. By ensuring that adjacent video segments yield similar heart rate patterns, this constraint significantly reduces noise and stabilizes the output.
Solution 2: Contrastive Learning (End-to-End)
Based on the Contrast-Phys+ framework, this method utilizes a 3D Convolutional Neural Network (3DCNN) to extract features directly from video volumes. The model is trained to recognize the unique periodic nature of the human pulse by "pulling" together rPPG signals derived from the same video and "pushing" away signals from different videos in the latent space.
Ensemble Strategy
To maximize robustness, we combine the predictions of both models. By averaging the outputs of the Spatial-Temporal Transformer and the Contrastive 3DCNN, we mitigate individual model biases and improve overall estimation accuracy.
Experimental Setup and Results
Datasets
We utilized a diverse set of facial video datasets for different stages of training:
- Pre-training (Unlabeled): UBFC-rPPG, PURE, MMSE-HR, and DISFA.
- Fine-tuning: VIPL-V2, a large-scale dataset for remote HR estimation.
- Evaluation: The OBF dataset served as the test set for the RePSS challenge.
Performance
Our ensemble approach achieved a Root Mean Squared Error (RMSE) of 8.85277 bpm on the challenge test set, earning 2nd place in Track 1 of the 3rd RePSS Challenge.
Ablation studies highlighted the impact of our novel Periodicity Loss. In Solution 1, the inclusion of this loss reduced the RMSE from 10.36 bpm to 9.93 bpm, demonstrating its effectiveness in filtering out non-physiological fluctuations. Furthermore, we observed that increasing the diversity of pre-training data (e.g., combining UBFC, PURE, and MMSE-HR) consistently improved model performance.
Conclusion
This work demonstrates that self-supervised methods can achieve competitive performance in remote heart rate sensing by leveraging biological constraints and contrastive learning. The introduction of Periodicity Loss proves that temporal consistency is a powerful prior for physiological signal recovery. Future research will explore the integration of video motion magnification algorithms to amplify subtle rPPG signals, potentially enhancing accuracy in low-signal-to-noise environments.
Summary updated