[Paper Review] PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer
This paper proposes PhysFormer, an end-to-end video transformer architecture for remote photoplethysmography (rPPG) that leverages temporal difference guided global attention to enhance quasi-periodic rPPG features across long-range spatio-temporal contexts. It achieves state-of-the-art performance on multiple benchmark datasets without ImageNet pretraining, demonstrating strong generalization and robustness in both intra- and cross-dataset evaluations.
Remote photoplethysmography (rPPG), which aims at measuring heart activities and physiological signals from facial video without any contact, has great potential in many applications (e.g., remote healthcare and affective computing). Recent deep learning approaches focus on mining subtle rPPG clues using convolutional neural networks with limited spatio-temporal receptive fields, which neglect the long-range spatio-temporal perception and interaction for rPPG modeling. In this paper, we propose the PhysFormer, an end-to-end video transformer based architecture, to adaptively aggregate both local and global spatio-temporal features for rPPG representation enhancement. As key modules in PhysFormer, the temporal difference transformers first enhance the quasi-periodic rPPG features with temporal difference guided global attention, and then refine the local spatio-temporal representation against interference. Furthermore, we also propose the label distribution learning and a curriculum learning inspired dynamic constraint in frequency domain, which provide elaborate supervisions for PhysFormer and alleviate overfitting. Comprehensive experiments are performed on four benchmark datasets to show our superior performance on both intra- and cross-dataset testings. One highlight is that, unlike most transformer networks needed pretraining from large-scale datasets, the proposed PhysFormer can be easily trained from scratch on rPPG datasets, which makes it promising as a novel transformer baseline for the rPPG community. The codes will be released at https://github.com/ZitongYu/PhysFormer.
Motivation & Objective
- To address the limitations of existing rPPG methods that rely on local receptive fields and fail to model long-range spatio-temporal dependencies.
- To develop an end-to-end deep learning framework capable of capturing global contextual cues from facial video for improved physiological signal estimation.
- To design a supervision strategy that mitigates overfitting and enhances learning of intrinsic rPPG-aware features in low-supervision scenarios.
- To enable effective training from scratch without large-scale pretraining, establishing a new baseline for rPPG in the transformer era.
Proposed method
- Introduces a cascaded temporal difference transformer (TD-Transformer) backbone that models long-range spatio-temporal relationships using fine-grained temporal skin color differences.
- Employs temporal difference multi-head self-attention (TD-MHSA) to enhance quasi-periodic rPPG signals by attending to similar signal trends across frames and regions.
- Applies label distribution learning to model the uncertainty in physiological signal labels, improving robustness to noisy annotations.
- Incorporates curriculum learning-inspired dynamic loss in the frequency domain, with exponentially increasing weighting to guide training and reduce overfitting.
- Uses tube-based tokenization to represent spatio-temporal regions across consecutive frames, enabling efficient video sequence modeling.
- Trains the model end-to-end from scratch on rPPG datasets, avoiding dependency on ImageNet or other large-scale pretraining.
Experimental results
Research questions
- RQ1Can a video transformer architecture effectively model long-range spatio-temporal dependencies in facial video for rPPG measurement?
- RQ2How does temporal difference guided global attention improve rPPG feature extraction compared to local convolutional or standard self-attention?
- RQ3Can dynamic frequency-domain supervision enhance model generalization and reduce overfitting in low-supervision rPPG learning?
- RQ4Does PhysFormer achieve state-of-the-art performance without pretraining on large-scale datasets like ImageNet-21K?
- RQ5How do architectural hyperparameters such as head count and depth affect the performance and robustness of the model?
Key findings
- PhysFormer achieves superior or state-of-the-art performance on four benchmark datasets, including VIPL-HR, Datasets for rPPG, and others, without any ImageNet pretraining.
- The model with dynamic frequency-domain supervision (exponentially increasing β) converges faster and achieves lower RMSE than fixed or linearly increasing strategies.
- Optimal performance is achieved with θ = 0.4 or 0.7 in the temporal difference module, indicating the importance of normalized local temporal gradients for attention.
- Using four attention heads yields the best performance, while fewer heads lead to significant performance drops, highlighting the need for multi-head modeling of rPPG patterns.
- Deeper networks with more TD-Transformer blocks progressively reduce RMSE, though at increased computational cost.
- Attention visualization confirms that the model learns to attend to physiologically relevant regions (e.g., forehead, cheeks) and aligns with periodic rPPG signal trends, though some noisy or phase-shifted responses remain.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.