Efficient Remote Photoplethysmography with Temporal Derivative Modules and Time-Shift Invariant Loss

Joaquim Comas, Adria Ruiz, Federico SuknoWorkshops @ CVPR 2022 · DOI

Abstract

Remote photoplethysmography (rPPG) enables non-contact heart rate monitoring by detecting subtle skin color variations. While deep learning has improved accuracy, state-of-the-art models often rely on computationally intensive 3D Convolutional Neural Networks (3DCNNs), hindering deployment on resource-constrained devices. This paper introduces a lightweight architecture utilizing a Temporal Derivative Module (TDM) to emulate Taylor series expansions for temporal modeling and a novel Temporal Adaptive LOcation Shift (TALOS) loss to handle synchronization delays. Our approach achieves competitive accuracy with significantly fewer parameters and lower computational costs than traditional 3DCNN-based methods.

Introduction

Remote heart rate tracking (rPPG) is vital for non-invasive physiological monitoring. However, most successful deep learning models are computationally expensive in terms of memory and processing power. Furthermore, training is complicated by synchronization issues: Pulse Transit Time (PTT) and hardware lags often cause a phase shift between the video and ground truth sensors. Standard loss functions like Mean Squared Error (MSE) penalize these shifts heavily, even when the predicted heart rate is accurate. This work addresses both efficiency and synchronization through physics-informed architectural priors and a shift-invariant loss function.

Methodology

The core of our approach lies in replacing heavy 3D convolutions with a more efficient temporal modeling strategy.

Temporal Derivative Module (TDM)

Instead of learning temporal patterns from scratch, the Temporal Derivative Module (TDM) uses a chain of 1D temporal derivatives. By calculating the "velocity" and "acceleration" of color changes, the TDM emulates a Taylor series expansion. This allows the model to approximate complex signal dynamics using simple, fixed-weight filters, drastically reducing the parameter count.

The proposed rPPG architecture, highlighting the Spatial Encoder and the Temporal Derivative Module (TDM) for efficient temporal feature extraction.

TALOS Loss

To mitigate synchronization errors, we designed the Temporal Adaptive LOcation Shift (TALOS) loss. TALOS treats the time offset as a latent variable and learns a probability distribution of possible shifts for each subject. By optimizing against the most likely alignment, the model avoids being penalized for systematic hardware or physiological delays.

Experimental Results

The model was evaluated on the PURE and UBFC-rPPG datasets, demonstrating state-of-the-art performance with a minimal footprint.

Efficiency and Performance

The proposed TDM-based model achieves extreme efficiency, requiring only 5.26K parameters—nearly 500x fewer than some competing models. As shown in the performance comparison, the TDM architecture matches or exceeds the accuracy of much larger 3DCNN models while maintaining a significantly lower computational footprint of 7.08 G-MACs.

Performance comparison of the TDM model against 2DCNN and 3DCNN baselines, showing superior efficiency and competitive accuracy.

Key Insights

  • Physics-Informed Priors: Forcing the model to analyze derivatives rather than raw sequences allows for a massive reduction in complexity.
  • Phase Invariance: Accounting for Pulse Transit Time via TALOS loss significantly improves model convergence and final accuracy.

Conclusion

This research demonstrates that high-performance remote heart rate tracking does not require massive neural networks. By leveraging temporal derivatives and a shift-invariant loss, we provide a solution that is both accurate and suitable for edge deployment. Future work will explore higher-order dynamics and robustness in challenging "in-the-wild" environments.

Summary updated

BibTeX
@inproceedings{comas2022efficient,
  author = {Joaquim Comas and Adria Ruiz and Federico Sukno},
  title = {{Efficient Remote Photoplethysmography with Temporal Derivative Modules and Time-Shift Invariant Loss}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
  doi = {10.1109/cvprw56347.2022.00237},
}
Figure