The application discloses an
ECG signal acquisition method and device based on an rPPG
signal, equipment and a medium, relates to the technical field of
computer software, and comprises the following steps: obtaining a PPG
signal based on an rPPG
signal, and generating rPPG conditional coding through a PPG
encoder. The low-frequency, high-frequency and
spatial domain ECG tokens of the
mask state are used as the current
mask token, the rPPG conditional coding is used as the constraint, and the
mask reconstruction is completed through a bidirectional
Transformer. The mask is gradually removed according to the confidence, and the reconstruction is circularly performed until all the masks are removed to obtain target tokens. The low-frequency and high-frequency feature tokens in the target tokens are subjected to corresponding decoding and inverse short-time
Fourier transform to generate a
frequency domain ECG waveform; and the
spatial domain feature tokens are subjected to an ECG decoder to obtain a
spatial domain ECG waveform. The target
ECG signal is obtained by fusing the two waveforms, and a high-precision and high-fidelity
ECG signal can be obtained based on the rPPG signal.