PhysMamba: Efficient Remote Physiological Measurement with SlowFast Temporal Difference Mamba

Chaoqi Luo, Yiping Xie, Zitong YuarXiv 2024 · DOI

Abstract

Facial-video based Remote photoplethysmography (rPPG) aims at measuring physiological signals and monitoring heart activity without any contact, showing significant potential in various applications. Previous deep learning based rPPG measurement are primarily based on CNNs and Transformers. However, the limited receptive fields of CNNs restrict their ability to capture long-range spatio-temporal dependencies, while Transformers also struggle with modeling long video sequences with high complexity. Recently, the state space models (SSMs) represented by Mamba are known for their impressive performance on capturing long-range dependencies from long sequences. In this paper, we propose the PhysMamba, a Mamba-based framework, to efficiently represent long-range physiological dependencies from facial videos. Specifically, we introduce the Temporal Difference Mamba block to first enhance local dynamic differences and further model the long-range spatio-temporal context. Moreover, a dual-stream SlowFast architecture is utilized to fuse the multi-scale temporal features. Extensive experiments are conducted on three benchmark datasets to demonstrate the superiority and efficiency of PhysMamba.

Introduction

Remote heart rate monitoring, or remote photoplethysmography (rPPG), detects subtle skin color changes caused by blood flow through facial videos. While deep learning has significantly advanced this field, existing architectures face a fundamental trade-off. Convolutional Neural Networks (CNNs) excel at capturing local spatial details but struggle with long-range temporal patterns due to limited receptive fields. Conversely, Transformers provide global context but suffer from quadratic computational complexity ($O(L^2)$) as video sequences lengthen.

PhysMamba addresses these challenges by leveraging State Space Models (SSMs), specifically the Mamba architecture. By combining Mamba with temporal difference convolutions and a dual-stream "SlowFast" design, PhysMamba achieves state-of-the-art accuracy with a fraction of the parameters required by traditional models, making it highly suitable for real-time monitoring on mobile devices.

Methods

The PhysMamba architecture is built upon three core innovations designed to capture the rhythmic nature of heartbeats efficiently.

Architecture of PhysMamba showing the SlowFast streams and the Temporal Difference Mamba (TD-Mamba) block.

1. Temporal Difference Mamba (TD-Mamba) Block

Standard Mamba blocks are enhanced with Temporal Difference Convolutions (TDC). TDC focuses on frame-to-frame changes, which is where the vital pulse signal resides, effectively filtering out static facial features. This is followed by a Bidirectional Mamba (Bi-Mamba) layer that processes sequences in both forward and backward directions, capturing long-range temporal context with linear complexity.

2. SlowFast Architecture

To handle multi-scale temporal features, PhysMamba employs a dual-stream approach:

  • Slow Stream: Processes frames at a lower sampling rate to capture stable spatial features.
  • Fast Stream: Maintains a high frame rate to capture fine-grained, high-frequency pulse signals.

3. Lateral Connections and Loss Function

Lateral connections fuse features from the Fast stream into the Slow stream, ensuring the final predictor integrates both coarse and fine temporal data. The model is optimized using a Negative Pearson (NegPearson) loss, which aligns the predicted signal's periodic shape with the ground-truth pulse wave.

Experimental Setup

The model was evaluated on three diverse rPPG benchmarks:

  • PURE: 60 videos of 10 subjects in various states (steady, talking, head turning).
  • UBFC-rPPG: 42 videos of subjects playing games to induce heart rate variations.
  • MMPD (mini-MMPD): A challenging "in-the-wild" dataset featuring diverse skin tones, lighting, and motion.

Results and Discussion

PhysMamba demonstrates superior performance and efficiency compared to existing state-of-the-art (SOTA) methods.

Performance comparison of PhysMamba against state-of-the-art methods on PURE and MMPD datasets.

State-of-the-Art Accuracy

On the PURE dataset, PhysMamba achieved a Mean Absolute Error (MAE) of 1.20 bpm in cross-dataset testing (trained on UBFC), outperforming models like PhysFormer (12.92 bpm) and TS-CAN (3.69 bpm). In intra-dataset testing on PURE, it reached an even lower MAE of 0.25 bpm.

Extreme Efficiency

A key highlight is the model's small footprint. PhysMamba utilizes only 0.56 million parameters, compared to 7.38M for PhysFormer and 7.5M for TS-CAN. This massive reduction in parameters does not sacrifice performance, maintaining a competitive computational cost of 47.3G MACs.

Robustness and Generalization

The integration of TDC ensures the model focuses on blood flow dynamics rather than static appearance, aiding generalization. However, like most rPPG models, performance on the MMPD dataset remains a challenge due to low signal-to-noise ratios in dark skin tones and low-light conditions, with MAE values around 11.96 bpm.

Conclusion

PhysMamba represents a significant step forward in efficient rPPG. By replacing computationally heavy Transformers with the linear-complexity Mamba and utilizing a SlowFast temporal difference approach, it achieves high accuracy with minimal parameters. Its small size makes it an ideal candidate for deployment on resource-constrained mobile and edge devices for continuous, non-contact health monitoring. Future work will focus on enhancing robustness against extreme motion and diverse skin tones.

Summary updated

BibTeX
@misc{luo2024physmamba,
  author = {Chaoqi Luo and Yiping Xie and Zitong Yu},
  title = {{PhysMamba: Efficient Remote Physiological Measurement with SlowFast Temporal Difference Mamba}},
  year = {2024},
  eprint = {2409.12031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.12031},
}
Figure