keke-nice / rPPG-MAE

20 stars 5 forks source link

rPPG-MAE

This repository hosts the official implementation of "rPPG-MAE: Self-supervised Pretraining with Masked Autoencoders for Remote Physiological Measurements." Authored by Xin Liu, Yuting Zhang, Zitong Yu, Hao Lu, Huanjing Yue, and Jingyu Yang, the paper has been published in IEEE Transactions on Multimedia (IEEE TMM) in 2024. Paper download

pipelinenew1

Download datasets

You can download the datasets for preparation: VIPL-HR, PURE, UBFC-rPPG.

Data Pre-processing

You may reproduce enhanced noise-insensitive STMaps by following the methodology outlined in the paper PC-STMap. For more information about the generation of STMap, please refer to STMap. Alternatively, for your convenience, we have made available the processed STMaps for direct download here.

Dependencies and Installation

Environment required for experiment:

pip install -r requirements.txt

Pretrain

Finetune

Eval

After fine-tuning the model in, I believe you have obtained the predicted heart rate file. The final step is to get the metrics. You just need to execute the command:

python Eval.py

In Eval.py, you need to change the Idex_files (line 40), pr_path (line 41), rel_path (line 42) to your own. Idex_files corresponds to the index file path; pr_path and rel_path correspond to the predicted heart rate file path and ground true heart rate path respectively. The last two files can be found in output_dir.

Citation

@article{liu2024rppg,
  title={rPPG-MAE: Self-supervised Pretraining with Masked Autoencoders for Remote Physiological Measurements},
  author={Liu, Xin and Zhang, Yuting and Yu, Zitong and Lu, Hao and Yue, Huanjing and Yang, Jingyu},
  journal={IEEE Transactions on Multimedia},
  year={2024},
  publisher={IEEE}
}