<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>X. Wang);</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Joint Spatial-Temporal Modeling and Contrastive Learning for Self-supervised Heart Rate Measurement</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Wei Qian</string-name>
          <email>qianwei.hfut@gmail.com</email>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Qi Li</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kun Li</string-name>
          <email>kunli.hfut@gmail.com</email>
          <xref ref-type="aff" rid="aff5">5</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xinke Wang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiao Sun</string-name>
          <email>sunx@hfut.edu.cn</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Meng Wang</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>n Guo</string-name>
          <email>guodan@hfut.edu.cn</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Anhui University</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Anhui Zhonghuitong Technology Co., Ltd</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Institute of Artificial Intelligence, Hefei Comprehensive National Science Center</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Key Laboratory of Knowledge Engineering with Big Data (HFUT), Ministry of Education</institution>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>School of Computer Science and Information Engineering, School of Artificial Intelligence, Hefei University of</institution>
        </aff>
        <aff id="aff5">
          <label>5</label>
          <institution>Zhejiang University</institution>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>This paper briefly introduces the solutions developed by our team, HFUT-VUT, for Track 1 of selfsupervised heart rate measurement in the 3rd Vision-based Remote Physiological Signal Sensing (RePSS) Challenge hosted at IJCAI 2024. The goal is to develop a self-supervised learning algorithm for heart rate (HR) estimation using unlabeled facial videos. To tackle this task, we present two self-supervised HR estimation solutions that integrate spatial-temporal modeling and contrastive learning, respectively. Specifically, we first propose a non-end-to-end self-supervised HR measurement framework based on spatial-temporal modeling, which can efectively capture subtle rPPG clues and leverage the inherent bandwidth and periodicity characteristics of rPPG to constrain the model. Meanwhile, we employ an excellent end-to-end solution based on contrastive learning, aiming to generalize across diferent scenarios from complementary perspectives. Finally, we combine the strengths of the above solutions through an ensemble strategy to generate the final predictions, leading to a more accurate HR estimation. As a result, our solutions achieved a remarkable RMSE score of 8.85277 on the test dataset, securing 2nd place in Track 1 of the challenge.</p>
      </abstract>
      <kwd-group>
        <kwd>Measurement</kwd>
        <kwd>Self-supervised</kwd>
        <kwd>heart rate</kwd>
        <kwd>rPPG</kwd>
        <kwd>spatial-temporal modeling</kwd>
        <kwd>contrastive learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        Remote physiological measurement [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4 ref5">1, 2, 3, 4, 5</xref>
        ] has emerged as a promising field with
significant applications in healthcare, wellness monitoring, and human-computer interaction.
Korea
∗Corresponding authors.
†These authors contributed equally.
Traditional methods for physiological measurement, such as electrocardiograms (ECG) and
photoplethysmograms (PPG), require direct contact with the skin, which can be cumbersome
and inconvenient for continuous monitoring. With the great success of deep learning in
computer vision [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7, 8, 9, 10</xref>
        ], recent advancements [11, 12] have paved the way for non-contact,
video-based techniques to estimate physiological signals such as heart rate (HR) and respiratory
rate (RR) from facial videos, providing a more comfortable and accessible approach for users.
      </p>
      <p>
        Despite the promising potential of video-based physiological measurement, most existing
methods [
        <xref ref-type="bibr" rid="ref3 ref5">13, 5, 3</xref>
        ] rely heavily on supervised learning, necessitating large amounts of labeled data
for training. Acquiring such labeled data is often labor-intensive and time-consuming, posing a
significant bottleneck for developing robust and generalizable models. Moreover, supervised
methods may not generalize well across diferent environments and lighting conditions, limiting
their practical applicability. Therefore, the development of label-free rPPG estimation methods
is becoming increasingly urgent.
      </p>
      <p>
        To address these challenges, the 3rd Vision-based Remote Physiological Signal Sensing
(RePSS) Challenge at IJCAI 2024 was launched. This challenge aims to develop self-supervised
training methods for HR measurement using unlabeled facial videos, thereby reducing the
dependency on extensive labeled datasets. For this challenge, we present two self-supervised
HR estimation solutions that integrate spatial-temporal modeling and contrastive learning,
respectively. Inspired by Dual-TL [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and SiNC [14], we propose a non-end-to-end self-supervised
HR measurement framework based on a spatial-temporal Transformer to capture subtle rPPG
clues. Meanwhile, we adopt a complementary end-to-end contrastive learning solution based
on Contrast-Phys+ [11] to enhance the model accuracy. Finally, we combine the strengths of
both solutions through an ensemble strategy to generate the final predictions, securing second
place with the RMSE score of 8.85277.
      </p>
      <p>In conclusion, the main contributions can be summarized as follows:
• We propose a non-end-to-end self-supervised solution based on spatial-temporal modeling.</p>
      <p>By considering the priors of periodicity consistency and bandwidth limitation of the rPPG
signal, we introduce four loss functions to supervise the model efectively.
• We present an end-to-end solution based on contrastive learning, which utilizes 3DCNN
to extract features and employs a contrastive loss to learn discriminative representations
for periodic rPPG signal modeling.
• Our solution achieved second place with the RMSE score of 8.85277 on the test dataset
in Track 1 of the 3rd Vision-based Remote Physiological Signal Sensing Challenge. The
experimental results demonstrate the efectiveness and robustness of our proposed
solutions.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Methodology</title>
      <p>2.1. Solution 1: Self-supervised HR Measurement with Spatial-Temporal</p>
      <p>Transformer
Inspired by the great success of Transformer in computer vision [15], we present a
non-endto-end self-supervised HR measurement framework to mitigate the need for labeled video
N ROI Combinations</p>
      <p>… …
ROI-1 AvReOraI-g3e6pooRliOngI-N
××
isng ∈ℝ
d
d
e
b
m
E</p>
      <p>Spatial-Temporal Transformer
Spatial Encoder Temporal Encoder</p>
      <p>×
reryaoLNm iltaaSp li-fttteeonSnA+
m
r
o
rN PL+
eya M
L
errayoLNm leroapTm li-fttteeonnSA+
m
r
o
rN PL +
eya M
L
×ℝ
∈
ion 
s
rs
e
egrPPG signal
R
ℒ = ℒ)*++ ℒ+ ℒ+ ℒ</p>
      <p>SPD variance loss ℒ
bandwidth loss ℒ
sparsity loss ℒ
0 0.66 3.0 HZ
clip A clip B clip C
PSD PSD PSD
periodicity loss ℒ
data based on a Spatial-Temporal Transformer. The overview of this solution is illustrated in
Figure 1. Specifically, we first transform the input facial video into a multi-scale spatial-temporal
map (MSTmap) in Section 2.1.1. Then, we introduce our spatial-temporal Transformer module
in Section 2.1.2. Next, in Section 2.1.3, with the constraints of periodicity consistency and
bandwidth finiteness, our model directly discovers blood volume pulses from unlabeled videos
to predict HR.</p>
      <sec id="sec-3-1">
        <title>2.1.1. Data Pre-processing</title>
        <p>The quasi-periodic pulse signal originates from subtle light reflections of blood vessels
under the skin. Therefore, non-skin pixels and facial geometric features can be considered as
rPPG-independent noises. We transform the raw facial video into MSTmap to highlight the
spatiotemporal information of the human face, which is a common practice in rPPG
measurement [16, 17]. Concretely, the MSTmap divides the facial area into 6 meta-ROI blocks, which
can generate  = (26-1)=63 ROI combination blocks, and the pixels of each block are averaged
separately for  color channels. In the video, all the frames are concatenated along the time
dimension to generate a spatial-temporal map of size ℝ × × , where  = 6 represents {R,G,B,Y,U,V}
channels. Next, we embed the MSTmap  to high-dimensional feature  ∈ ℝ × × with feature
dimension  by using a full-connected layer.</p>
      </sec>
      <sec id="sec-3-2">
        <title>2.1.2. Spatial-Temporal Transformer</title>
        <p>Our spatial-temporal Transformer tailored for remote physiological measurement is designed
carefully for perceiving the temporal and spatial correlations. It includes two encoders (spatial
encoder and temporal encoder) to refine the ROI representation containing rPPG clues by
capturing long-term spatiotemporal contextual information. We now explain the proposed
model in detail. Specifically, given the input features  ∈ ℝ × × , the process of embedding
spatial context for  -frame can be formulated as:
 () =  ()   ,  () =  ()   ,  () =  ()   ,
 () 
√</p>
        <p>() 
 () = softmax (</p>
        <p>) () +  () ,
 ′() = MLP(LN( () )) + () ,
(1)
(2)
where   ,   ,   are learnable parameters shaped as  × 
frame. MLP is the multi-layer perceptron layer and LN is layer normalization operation. The
.  () denote the feature in  -th
feature map of all frames { ′() | = 1, … ,  }
are concatenated together into   ∈ ℝ × ×
We output the temporally correlated feature for the  -th facial ROI feature as  ′() ∈ ℝ ×
Eq. 1. The diference is that we calculate the temporal dimension for each spatial unit (  ∈ [1,  ] ).
and
stack the features { ′() | = 1, 2, … ,  }
together, represented by   ∈ ℝ × ×</p>
        <p>The spatial and temporal encoders are stacked as  loops in an alternating manner, taking into
account the spatial and temporal complementary contextual information integrally. Moreover,
spatial and temporal position embedding is applied only to the first encoder to retain two kinds
of position information. Finally, we use an rPPG regression head to project the feature to a 1D
rPPG signal</p>
        <p>∈ ℝ ×1 .</p>
      </sec>
      <sec id="sec-3-3">
        <title>2.1.3. Self-supervised Loss</title>
        <p>As highlighted in previous studies [18, 14], the rPPG signal possesses inherent theoretical
priors, including specific bandwidth in the frequency domain. By incorporating this prior
knowledge, we employ three self-supervised loss functions from [14] in this work. Additionally,
to further efectively train the model, we also propose a new periodicity loss based on periodic
characteristics of the rPPG signal. Notably, all predicted rPPG signals are transformed into
power spectrum density (PSD) with the Fast Fourier Transform (FFT) before computing all
losses in our method, denoted as  =</p>
        <p>FFT( ).</p>
        <p>Bandwidth Loss. A healthy HR falls within a specific frequency range. Following the [ 14],
we penalize the model for producing signals that exceed the healthy HR bandwidth limits.
Consequently, the bandwidth loss can be formalized as follows:</p>
        <p>L

=
[ ∑   + ∑   ] ,</p>
        <p>1
∞
=−∞
∑   =−∞
∞
=
where  and  denote lower and upper band limits, respectively.   is the power in the  th
frequency bin of the predicted signal. In our experiments, we specify the limits as  = 0. 66 Hz to
 = 3 Hz, which corresponds to a common pulse rate range from 40 bpm to 180 bpm. This range
efectively captures the typical variations in a healthy HR, ensuring that our model focuses on
the relevant frequency components while minimizing the influence of noise. By incorporating
this bandwidth loss, our model is better equipped to distinguish between meaningful rPPG
signals and disturbances, ultimately leading to more accurate HR estimation.</p>
        <p>Sparsity Loss. Since we are primarily interested in heartbeat frequency, we emphasize the
periodic heartbeats by suppressing non-heartbeat frequencies. Following [14], we penalize the
energy in the bandwidth regions far away from the spectrum peak, which can ensure that the
model focuses on the relevant heartbeat frequencies. It can be formulated as:
L

=</p>
        <p>1
∑ 
=
[
argmax( )−Δ 
∑
=
  +</p>
        <p>∑
= argmax( )+Δ 
  ] ,
where argmax( ) is the frequency of the spectral peak, and Δ = 6 is the frequency padding
around the peak. This loss enhances the model’s ability to accurately estimate HR by ensuring
that the spectral energy is concentrated around the true HR frequencies, thus minimizing the
influence of noise and other non-relevant frequency components.</p>
        <p>Variance Loss. To avoid the model collapsing to a specific frequency, we also use a variance
loss [14, 19] to spread the variance of the power spectral density into a uniform distribution over
the desired frequency band. Firstly, we define a uniform prior distribution  over  frequencies.
Then, we consider a batch of  spectral densities, represented as  = [ 1, … ,   ], where each
  is a  -dimensional frequency decomposition of a predicted waveform. To aggregate these
spectral densities, we compute the normalized sum across the batch, denoted as  . Therefore,
the variance loss L can be formulated as:</p>
        <p>1
 =1
L

=</p>
        <p>∑ (CDF () − CDF ( ) )2 ,
where CDF represents the cumulative distribution function at the  -th frequency.</p>
        <p>Periodicity Loss. In addition to the intrinsic properties of the rPPG signal itself, we have
observed that adjacent rPPG signals do not change rapidly over short periods. This is typically
manifested by similar periodicity in neighboring rPPG signals, meaning they share a dominant
peak in the PSD. Specifically, we uniformly sample  non-overlapping temporal segments from a
short rPPG signal (e.g., 10s). The PSDs of these segments should be similar. Thus, our proposed
periodicity loss can be formulated as:</p>
        <p>L</p>
        <p>−1
= ∑
∞
∑ (  −</p>
        <p>=1 =−∞
+1 )2 ,

where  = 3 denotes the number of segments.</p>
        <p>In summary, the overall loss function of our self-supervised learning strategy is :
L
 
= L
+ L
+ L
+ L
.</p>
        <p>(3)
(4)
(5)
(6)
Video 1</p>
        <p>3DCNN
Video 2
r
e
l
p
m
a
s
T
S</p>
        <p>3DCNN
Video</p>
        <sec id="sec-3-3-1">
          <title>Pear loss</title>
        </sec>
        <sec id="sec-3-3-2">
          <title>MCC loss</title>
        </sec>
        <sec id="sec-3-3-3">
          <title>Contrastive Loss</title>
        </sec>
        <sec id="sec-3-3-4">
          <title>Label</title>
        </sec>
        <sec id="sec-3-3-5">
          <title>Label PSD</title>
          <p>2.2. Solution 2: Self-supervised HR Measurement with Contrastive Learning
Here we provide the end-to-end self-supervised HR measurement framework based on the
contrastive learning strategy. The framework is depicted in Figure 2. Specifically, we first
perform data-preprocessing in Section2.2.1. Then we pre-train the proposed model in an
unsupervised setting based on the Contrast-Phys+ [11] in Section 2.2.2. Finally, we fine-tune
the Contrast-Phys+ model with a supervised setting and obtain the final rPPG predictor in
Section 2.2.3.</p>
        </sec>
      </sec>
      <sec id="sec-3-4">
        <title>2.2.1. Data Pre-processing</title>
        <p>In this self-supervised manner, we input facial video into our model to estimate the final rPPG
signal. For an original video, we first perform face detection by MTCNN [ 20] to get the four
coordinates of the face bounding box from the first frame. Then, we enlarge the length and
width of the bounding box by 1.5 times and crop the face region for each frame of the video. The
cropped faces are resized to 128 × 128. Next, we segment each video into clips to feed into the
model. Note that we also perform frame diference operations on the clip to generate normalized
diference frames as an attempt of model input. The diference between two consecutive frames
can be formulated as:
Δ  =  +1 −   ,
(7)
where   denotes the  -th frame. To keep the length of the diference video equal to the raw
video, we simply repeat the last diference frame. Then, the Δ is normalized.</p>
      </sec>
      <sec id="sec-3-5">
        <title>2.2.2. Pre-training</title>
        <p>In this stage, following the setting of [11] we modify the 3DCNN-based PhysNet to get
spatiotemporal rPPG (ST-rPPG) block representation. The model outputs spatiotemporal rPPG
features with shape  ×  ×  , where  is the temporal length, and  is the spatial dimension.
The ST-rPPG block can be regarded as a collection of rPPG signals from diferent facial regions.
Therefore, for each input, we can sample  2 rPPG signals with the length of  .</p>
        <p>According to the observations that rPPG spatial similarity and temporal similarity in [11], the
ST-rPPG block can sample multiple rPPG signals with short time intervals and diferent spatial
positions. Those signals should be similar. Then contrastive learning can be formulated by
pulling together the rPPG signals from the same ST-rPPG block and pushing away the signals
from diferent ST-rPPG blocks extracted in the crossing video. The contrastive loss can be
formulated as:</p>
        <p>L
L</p>
        <p>and the ground-truth PPG signal   , a popular Negative Pearson
correlation (Pear) loss and Negative max cross-correlation (MCC) loss are selected to perform
supervised training. It is worth noting that the Pear is the time domain loss function while the
MCC loss is the frequency domain loss function. The MCC is robust to temporal ofsets in the
ground truth, which can make up for the Pear loss. The MCC loss is formulated as:
where  is the PSDs of the ground-truth signal.
where   denotes the Power Spectrum Densities (PSDs) of the rPPG signal in position  and   ′ is
the other video’s PSDs.  is the number of sampled rPPG pairs. The contrastive loss function
minimizes the MSE distance between positive samples and maximizes the distance between the
negative samples to force the model to learn the discriminative representation of the underlying
signals from diferent videos.
2.2.3. Fine-tuning


 
=1 =1

≠
=1 =1</p>
        <p>∑ (‖  −   ‖2 + ‖  ′ −   ′‖2) /(2 ( − 1)),
= − ∑</p>
        <p>∑ ‖  −   ′‖2 / 2,
L

= − Max (
  
−1{  (   {</p>
        <p>×   
} ⋅    {
 })
) ,
where</p>
        <p>−1 is the inverse of fast Fourier transform (FFT),  is the standard deviation. Besides,
as the ground-truth signals are the reference of predicted rPPG signals, the  
similar to   . Therefore, we also use the contrastive loss by the following:
should be
= ∑</p>
        <p>∑ (‖  −   ‖2 + ‖  ′ −  ′‖2) /(2 ( − 1)),
= − ∑
∑ (‖  −  ′‖2 + ‖  ′ −   ‖2) / 2,
(8)
(9)
(10)
(11)
(12)
(13)</p>
        <p>Finally, the overall loss for fine-tuning is the combination of Pear loss, MCC loss, and
contrastive loss, which can resist noise interference of ground-truth signal.</p>
        <p>L = L</p>
        <p>+ L
+  L
+  L ,
(14)
where L is the Negative Pearson correlation loss function. In our experiments, we set  to
0.1 and  to 0.2 for the VIPL-V2 dataset.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Experiments</title>
      <p>
        3.1. Datasets
UBFC-rPPG [21] is a commonly used pure dataset for physiological estimation. It records 42
facial videos from 42 subjects in a stable lab environment. PURE [22] contains 60 facial videos of
10 participants under 6 modes (steady, small rotation, medium rotation, talking, slow translation,
and fast translation). MMSE-HR [23] contains 102 facial videos captured from 40 subjects
under six task modes. This dataset contains various facial expression changes. DISFA [24] is a
non-posed facial expression dataset. It records 27 facial videos from 27 subjects with diferent
ethnicities[25]. VIPL-V2 [26] is the second version of the VIPL-HR [26] dataset for remote
HR estimation from face videos under less-constrained situations, which contains 2,000 RGB
videos provided in this challenge [16, 17]. Up until the publication of the OBF [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] dataset, it
contains 100 healthy subjects and 6 patients with atrial fibrillation, totaling 10,600 minutes in
length [13]. In this challenge, some data of OBF are included in the test set. Following the rule
of this challenge, we use the datasets except VIPL-V2 and OBF without labels to pre-train the
model and finetune the model on the VIPL-V2 dataset.
3.2. Evaluation Metrics and Implementation Details
In this challenge, the root mean squared error (RMSE) is selected as the evaluation metric
between the predicted HR   and ground-truth HR   as below:
 (

,   ) =
√ 
1 ∑=1 ( 

−   ),
(15)
where  denotes the number of video samples.
      </p>
      <p>
        For solution 1 introduced in Section 2.1, we begin by extracting the facial ROI regions using
the landmark detection tool of OpenFace during the data pre-processing step. We then follow
the setting described in [17], applying a sliding window size of 300 frames (10s) and a step
size of 15 frames (0.5s) to generate MSTmap from the facial videos. For the spatial-temporal
Transformer module, we set the dimensionality  to 128 and the number of layers  to 6. During
pre-training, we use the AdamW optimizer with a learning rate of 1e-4 and a batch size of
4. Data augmentation techniques include random horizontal and vertical flipping as well as
frequency up/down sampling are used. In the fine-tuning step with data labels, in addition
to the self-supervised loss, we also add Negative Pearson Loss to further optimize the model.
Besides, we use a smaller learning rate, i.e., 1e-5, to finetune the model. For the VIPL-V2 dataset,
we split the training and validation subsets in a ratio of 8:2. For the HR estimation inference
step, following previous work [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ], we apply a 1st-order Butterworth filter to convert the rPPG
signal into an HR value with a cutof frequency range of [0.66Hz, 3.0Hz], corresponding to [40,
180] beats per minute. Subsequently, we perform the PSD [27] to estimate HR for each video
clip. For solution 2 elaborated in Section 2.2, we resample the videos to a frame rate of 30 and
then perform face detection and cropping. We set the length of the video clip to 300 frames
without overlapping. Following the setting in [11], the spatial resolution  is set to 2, and the
sampled time interval Δ of each rPPG signal is set to 150 frames. Other settings are the same
as solution 1.
      </p>
      <p>For the ensemble strategy, we take the multiple best prediction results under diferent settings
of both solution 1 and solution 2. Then we average the diferent predicted heart rates of each
sample as the final result.
3.3. Experimental Results
Results for Solution 1. As shown in Table 1, we investigate the impact of diferent
pretraining datasets and loss functions for solution 1. The results indicate that as the amount
of pre-training data increases, the performance of the model improves accordingly. In our
solution, we ultimately select the UBFC-rPPG [21], PURE [22], and MMSE-HR [23] datasets for
pre-training. Additionally, we also investigate the impact of the proposed periodicity loss L .
We can see that the incorporation of the periodicity loss consistently improves the performance
of the model significantly across diferent settings. For instance, when the model is trained
on the UBFC-rPPG, PURE, and MMSE-HR datasets, the introduction of the periodicity loss
reduces RMSE from 10.35720 to 9.93125. This improvement underscores the efectiveness of
the periodicity loss in mitigating abnormal periodic fluctuations in the predicted signal and
maintaining temporal periodicity consistency.</p>
      <p>Results for Solution 2. As shown in Table 2, we evaluate diferent pre-training datasets,
loss functions, and model inputs to find the best setting for this task. Note that the DISFA
dataset is a non-posed facial expression database. However, from the results, we can find that
using it for pre-training can still achieve comparable performance. Apart from that, we can
ifnd the same conclusion as solution 1 that increasing the amount of pre-training datasets is
beneficial to performance. In this solution, we choose DISFA, UBFC-rPPG, MMSE-HR, and
PURE for pre-training. Additionally, we also evaluate diferent combinations of supervised
1https://www.kaggle.com/competitions/the-3rd-repss-t1/leaderboard
loss L . The results show that both the time domain and frequency domain loss are helpful
for model fine-tuning. Moreover, we evaluate the performance of normalized frame diference
input, and it shows a comparable result with normal input. In the model ensemble phase, we
added the frame diference-based manner as diferent feature forms.</p>
      <p>Model Ensemble. In order to combine the advantages of Solution 1 and Solution 2, we use
an ensemble strategy to integrate the best prediction results of these two solutions together.
Specifically, we ensembled the models by taking the average value of the prediction results for
Solution 1 and Solution 2, and then obtained the final prediction results. As shown in Table 3,
we report the top-3 results on the test dataset for each RePSS challenge. Compared to other
teams, we can see that our team achieves 2nd place, which is higher than the 3rd by 1.2%. This
demonstrates that our proposed two self-supervision solutions can complementaryly achieve
more accurate and robust heart rate estimation. Compared to the results of the supervised
methods in previous challenges, we can find that self-supervised methods improve performance
by a large margin. This indicates that self-supervised methods can capture rPPG-related signals
from facial videos during the pre-train phase without requiring any real physiological signals.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusion</title>
      <p>In this paper, we present our solutions developed for self-supervised remote heart rate
measurement of the 3rd RePSS challenge hosted at IJCAI 2024. Specifically, we propose two
selfsupervised HR estimation solutions that integrate spatial-temporal modeling and contrastive
learning, respectively. By leveraging the ensemble strategy, our final submission takes second
place with the RMSE score of 8.85277 bpm. In the future, we plan to address the issues in this
challenge from other perspectives, e.g., using video motion magnification algorithms [ 30] to
capture the subtle change reflected in faces by heartbeats.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work was supported by the National Key R&amp;D Program of China (NO.2022YFB4500601), the
National Natural Science Foundation of China (72188101,62272144,62020106007and U20A20183),
the Major Project of Anhui Province(202203a05020011), and the Fundamental Research Funds
for the Central Universities.
[8] K. Li, D. Guo, M. Wang, Vigt: proposal-free video grounding with a learnable token in the
transformer, Science China Information Sciences 66 (2023) 202102.
[9] D. Guo, K. Li, B. Hu, Y. Zhang, M. Wang, Benchmarking micro-action recognition: Dataset,
methods, and applications, IEEE Transactions on Circuits and Systems for Video
Technology (2024).
[10] Y. Wei, Z. Zhang, Y. Wang, M. Xu, Y. Yang, S. Yan, M. Wang, Deraincyclegan: Rain
attentive cyclegan for single image deraining and rainmaking, IEEE Transactions on Image
Processing 30 (2021) 4788–4801.
[11] Z. Sun, X. Li, Contrast-phys+: Unsupervised and weakly-supervised video-based remote
physiological measurement via spatiotemporal contrast, IEEE Transactions on Pattern
Analysis and Machine Intelligence (2024) 1–18.
[12] H. Lu, H. Han, S. K. Zhou, Dual-gan: Joint bvp and noise modeling for remote physiological
measurement, in: Proceedings of the IEEE/CVF Conference on Computer Vision and
Pattern Recognition, 2021, pp. 12404–12413.
[13] Z. Yu, W. Peng, X. Li, X. Hong, G. Zhao, Remote heart rate measurement from highly
compressed facial videos: an end-to-end deep learning solution with video enhancement,
in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019, pp.
151–160.
[14] J. Speth, N. Vance, P. Flynn, A. Czajka, Non-contrastive unsupervised learning of
physiological signals from video, in: Proceedings of the IEEE/CVF Conference on Computer
Vision and Pattern Recognition, 2023, pp. 14464–14474.
[15] K. Li, J. Li, D. Guo, X. Yang, M. Wang, Transformer-based visual grounding with
crossmodality interaction, ACM Transactions on Multimedia Computing, Communications and
Applications 19 (2023) 1–19.
[16] X. Niu, S. Shan, H. Han, X. Chen, Rhythmnet: End-to-end heart rate estimation from face
via spatial-temporal representation, IEEE Transactions on Image Processing 29 (2019)
2409–2423.
[17] X. Niu, Z. Yu, H. Han, X. Li, S. Shan, G. Zhao, Video-based remote physiological
measurement via cross-verified feature disentangling, in: Computer Vision–ECCV 2020: 16th
European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part II 16, 2020, pp.
295–310.
[18] J. Gideon, S. Stent, The way to my heart is through contrastive learning: Remote
photoplethysmography from unlabelled video, in: Proceedings of the IEEE/CVF International
Conference on Computer Vision, 2021, pp. 3995–4004.
[19] A. Bardes, J. Ponce, Y. Lecun, Vicreg: Variance-invariance-covariance regularization for
self-supervised learning, in: International Conference on Learning Representations, 2022.
[20] K. Zhang, Z. Zhang, Z. Li, Y. Qiao, Joint face detection and alignment using multitask
cascaded convolutional networks, IEEE Signal Processing Letters 23 (2016) 1499–1503.
[21] S. Bobbia, R. Macwan, Y. Benezeth, A. Mansouri, J. Dubois, Unsupervised skin tissue
segmentation for remote photoplethysmography, Pattern Recognition Letters 124 (2019)
82–90.
[22] R. Stricker, S. Müller, H.-M. Gross, Non-contact video-based pulse rate measurement on a
mobile service robot, in: The 23rd IEEE International Symposium on Robot and Human
Interactive Communication, 2014, pp. 1056–1062.
[23] S. Tulyakov, X. Alameda-Pineda, E. Ricci, L. Yin, J. F. Cohn, N. Sebe, Self-adaptive matrix
completion for heart rate estimation from face videos under realistic conditions, in:
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,
2016, pp. 2396–2404.
[24] S. M. Mavadati, M. H. Mahoor, K. Bartlett, P. Trinh, J. F. Cohn, Disfa: A spontaneous facial
action intensity database, IEEE Transactions on Afective Computing 4 (2013) 151–160.
[25] S. M. Mavadati, M. H. Mahoor, K. Bartlett, P. Trinh, Automatic detection of non-posed
facial action units, in: 2012 19th IEEE International Conference on Image Processing, 2012,
pp. 1817–1820.
[26] X. Niu, H. Han, S. Shan, X. Chen, Vipl-hr: A multi-modal database for pulse estimation
from less-constrained face video, in: Computer Vision–ACCV 2018: 14th Asian Conference
on Computer Vision, Perth, Australia, December 2–6, 2018, Revised Selected Papers, Part
V 14, 2019, pp. 562–576.
[27] P. Welch, The use of fast fourier transform for the estimation of power spectra: A method
based on time averaging over short, modified periodograms, IEEE Transactions on Audio
and Electroacoustics 15 (1967) 70–73.
[28] X. Li, H. Han, H. Lu, X. Niu, Z. Yu, A. Dantcheva, G. Zhao, S. Shan, The 1st challenge on
remote physiological signal sensing (repss), in: Proceedings of the IEEE/CVF Conference
on Computer Vision and Pattern Recognition Workshops, 2020, pp. 314–315.
[29] X. Li, H. Sun, Z. Sun, H. Han, A. Dantcheva, S. Shan, G. Zhao, The 2nd challenge on
remote physiological signal sensing (repss), in: Proceedings of the IEEE/CVF International
Conference on Computer Vision, 2021, pp. 2404–2413.
[30] F. Wang, D. Guo, K. Li, M. Wang, Eulermormer: Robust eulerian motion magnification
via dynamic filtering within transformer, in: Proceedings of the AAAI Conference on
Artificial Intelligence, volume 38, 2024, pp. 5345–5353.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pietikainen</surname>
          </string-name>
          ,
          <article-title>Remote heart rate measurement from face videos under realistic situations</article-title>
          ,
          <source>in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>4264</fpage>
          -
          <lpage>4271</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Alikhani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Seppanen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Junttila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Majamaa-Voltti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Tulppo</surname>
          </string-name>
          ,
          <string-name>
            <surname>G. Zhao,</surname>
          </string-name>
          <article-title>The obf database: A large face video database for remote physiological signal measurement and atrial fibrillation detection</article-title>
          ,
          <source>in: 2018 13th IEEE International Conference on Automatic Face &amp; Gesture Recognition (FG</source>
          <year>2018</year>
          ),
          <year>2018</year>
          , pp.
          <fpage>242</fpage>
          -
          <lpage>249</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>W.</given-names>
            <surname>Qian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Tian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Dual-path tokenlearner for remote photoplethysmography-based physiological measurement with facial videos</article-title>
          ,
          <source>IEEE Transactions on Computational Social Systems</source>
          (
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Qian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Tian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Channel-wise interactive learning for remote heart rate estimation from facial video</article-title>
          ,
          <source>IEEE Transactions on Circuits and Systems for Video Technology</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Hill</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Patel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>McDuf</surname>
          </string-name>
          ,
          <article-title>Eficientphys: Enabling simple, fast and accurate camera-based cardiac measurement</article-title>
          ,
          <source>in: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>5008</fpage>
          -
          <lpage>5017</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Hong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Gloss semantic-enhanced network with online backtranslation for sign language production</article-title>
          ,
          <source>in: Proceedings of the 30th ACM International Conference on Multimedia</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>5630</fpage>
          -
          <lpage>5638</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Contrastive positive sample propagation along the audio-visual event line</article-title>
          ,
          <source>IEEE Transactions on Pattern Analysis and Machine Intelligence</source>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>