All models

Contrast-Phys

A 3D convolutional network that measures the rPPG signal from face video, trained without labels.

Neuroscience signals · 57 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (13 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
858.5K
Operations
57
Framework
PyTorch
Recurrent
No
Published
ECCV 2022
Cited by
125 (as of 27 October 2026)
Authors
Zhaodong Sun, Xiaobai Li
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15428
Graph hash
26834d75de3b116d01aa90ed9765935040e9ddfb82496c8683440b71e40fbd6a
Skeleton hash
bcb8abd7e6a52822493b64071eefcc9a241f2fffbb683ae305e9de7cad729c4f
Architecture hash
c45e2fc51c0fa5fe45cb583b5e1381e2cdc62c1e5fb982ee2803a217cc5ae939
Diagram SHA-256
5e154413452124325b6a0b0c8fc7951092c67d7ae8028c50091f3187618c0046
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Contrast-Phys measures a physiological signal from face video: the blood volume change signal, also called remote photoplethysmography (rPPG). Supervised rPPG methods need ground truth physiological signals alongside the face videos, and Contrast-Phys is an unsupervised method that does not require them for training.

A 3D convolutional network turns an input video into a spatiotemporal rPPG (ST-rPPG) block, which contains multiple rPPG signals along height, width and time. The network is a modified version of the 3DCNN-based PhysNet, with adaptive average pooling in its last stage to control the spatial size of the output. Training uses a contrastive loss in which rPPG signals from the same video are pulled together and those from different videos are pushed away.

The method was built on four observations about rPPG, one of which is that heart rate should fall between 40 and 250 beats per minute. The paper tests on five public datasets, including RGB and NIR videos, and reports a training speed of 802.45 frames per second against 387.87 for the unsupervised baseline it calls Gideon2021.

Key idea. Contrast-Phys trains a 3D convolutional network to measure rPPG from face video without ground truth signals, using a contrastive loss over signals sampled within and across videos.

  • Contrast-Phys
  • rPPG
  • remote photoplethysmography
  • remote physiological measurement
  • heart rate estimation
  • unsupervised rPPG
  • face video
  • contrastive learning
  • ST-rPPG

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{sun2022contrastphysunsupervisedvideobasedremote,
      title={Contrast-Phys: Unsupervised Video-based Remote Physiological Measurement via Spatiotemporal Contrast}, 
      author={Zhaodong Sun and Xiaobai Li},
      year={2022},
      eprint={2208.04378},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1007/978-3-031-19775-8_29},
      url={https://arxiv.org/abs/2208.04378}, 
}