Anti-interference method and system for non-contact heart rate detection based on video enhancement
By mathematically modeling and video enhancement of skin reflection light, and suppressing interference components, combined with cross-covariance attention networks and hierarchical spatiotemporal feature coding, the problem of non-contact heart rate detection being susceptible to interference is solved, and stable signal extraction and heart rate detection are achieved in real-world scenarios.
Patent Information
- Application Number
- CN202611086928.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-11-24
AI Technical Summary
Existing non-contact heart rate detection methods are easily affected by factors such as ambient light and motion, making it difficult to stably extract high-quality RPPG signals in real-world scenarios, thus affecting the reliability and stability of the detection.
By mathematically modeling the light reflected from the skin to suppress the interference of brightness and specular reflection components, video enhancement is performed using a cross-covariance attention network, and RPPG signals are extracted using a hierarchical spatiotemporal feature coding and multi-scale temporal feature fusion network to achieve robustness of heart rate detection.
It can stably extract RPPG signals under interference scenarios, improving the reliability and stability of heart rate detection, and is suitable for non-contact heart rate monitoring in daily life scenarios.
Smart Images

Figure CN123147887A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of video enhancement and detection anti-interference technology, specifically to a non-contact heart rate detection anti-interference method and system based on video enhancement. Background Technology
[0002] The statements in this section are merely background information relating to this disclosure and do not necessarily constitute prior art.
[0003] Heart rate is an important indicator reflecting cardiovascular function and overall health, and a significant predictor of CVD (Cardiovascular Disease) morbidity and mortality. Heart rate monitoring can help assess physical condition and is of great significance in disease screening, exercise monitoring, and clinical diagnosis and treatment.
[0004] Traditional heart rate detection methods mostly rely on contact sensors such as electrodes. However, in practical applications, contact heart rate detection methods often have a series of problems such as inconvenience in wearing, skin discomfort caused by long-term contact, poor comfort, and impact on normal movement, which significantly limits their applicability.
[0005] Currently, remote photoplethysmography (RPPG) technology provides a means for non-contact heart rate detection. RPPG technology uses imaging devices such as cameras to acquire facial videos, and extracts pulse wave signals by analyzing the subtle color fluctuations in the skin area caused by periodic changes in blood perfusion, thereby achieving non-contact heart rate detection.
[0006] However, current non-contact heart rate monitoring methods still have the following limitations: (1) Because the skin color changes caused by the periodic changes in blood volume are very small, they are easily disturbed by color disturbances caused by ambient light, motion and other factors in video data.
[0007] (2) In practical applications, it is difficult to strictly limit the detection environment. Interference factors are often unpredictable and multiple interferences may coexist, making it difficult to stably extract high-quality RPPG signals from videos. This is the main challenge faced by RPPG technology in its application and promotion. Summary of the Invention
[0008] To address the aforementioned issues, this disclosure proposes a non-contact heart rate detection anti-interference method and system based on video enhancement. Based on modeling and analysis of skin reflection light, interference components in the video data are suppressed, and a cross-covariance attention network is used to enhance the original video. Through hierarchical spatiotemporal feature encoding, deep mining of blood perfusion-related physiological information is achieved, enabling stable extraction of RPPG signals and robust detection of heart rate values under interference scenarios, thus improving the reliability and stability of RPPG-based heart rate detection in everyday life scenarios.
[0009] According to some embodiments, the present disclosure adopts the following technical solutions: Video-enhanced non-contact heart rate detection anti-interference methods include: Obtain the original video of skin surface reflection and perform mathematical modeling of the skin reflection light signal; Based on the mathematical model, the luminance component and specular reflection component of the original video image frame are suppressed respectively to obtain a diffuse reflection feature video containing only diffuse reflection features. The diffuse reflection feature video and the original video are fused and enhanced using a cross-covariance attention fusion mechanism to obtain the enhanced video. A hierarchical spatiotemporal feature extraction network for enhanced video input is used to extract multi-scale spatiotemporal features using a hierarchical structure; a multi-scale temporal feature fusion network is used to adaptively fuse the multi-scale spatiotemporal features, and finally, the RPPG signal is reconstructed by linear projection. Heart rate values are obtained from RPPG signals through one-dimensional convolutional regression.
[0010] As one embodiment, the step of acquiring the original video of skin surface reflection and mathematically modeling the skin reflection light signal includes: Acquire the original video of skin surface reflection and record the change in the intensity of reflected light on the skin surface over time; Based on the Retinex algorithm and the dichroic reflection model, the captured skin reflection light signal is mathematically modeled:
[0011] in, Represents an image frame captured by the camera. For the luminance component, For the reflection component, t For time, the reflection component includes the specular reflection component. and diffuse reflection component Two parts.
[0012] As one embodiment, the method of suppressing the luminance component and specular reflection component of the original video image frame based on a mathematical model to obtain a diffuse reflection feature video containing only diffuse reflection features includes: Modeling and analyzing skin reflection light yields the influence components of ambient light and motion interference factors. These influence components are the brightness component and the change in specular reflection. The video interference component suppression module is designed to suppress the luminance component and the specular reflection component. The video interference component suppression module includes a luminance component normalization module and a specular reflection suppression module. The brightness component normalization module normalizes the video brightness under different lighting conditions to a brightness range, suppressing interference caused by insufficient lighting and lighting changes; the specular reflection suppression module uses a neural network to predict the vector of the ambient light source in the video and constructs an orthogonal projection plane to suppress the specular reflection component. The input to the neural network is an original video sequence containing multiple image frames. Each frame of the video is subjected to brightness normalization and specular reflection component suppression, retaining only the color changes caused by the diffuse reflection component, thus obtaining a diffuse reflection feature video.
[0013] As one embodiment, the process of fusing and enhancing the diffuse reflection feature video and the original video through a cross-covariance attention fusion mechanism to obtain an enhanced video includes: The diffuse reflection feature video and the original video are input into the cross-covariance attention module. The original video contains more complete physiological signals and provides queries after tensor dimension reconstruction, layer normalization and linear layer, while the diffuse reflection feature video provides keys and values. The multi-head self-attention module divides the query, key, and value channels into multiple subspaces. Each head independently learns a set of channel covariance relationships, and obtains a set of channel attention matrices which are multiplied by the value space. The results from each head are then concatenated to obtain the fused enhanced video.
[0014] As one embodiment, the enhanced video input hierarchical spatiotemporal feature extraction network, utilizing a hierarchical structure to extract multi-scale spatiotemporal features, includes: A hierarchical spatiotemporal feature extraction network is constructed, which uses spatiotemporal convolutional blocks based on 2+1D convolutions instead of 3D convolutional blocks; First, 2D convolution is performed in the spatial dimension to extract spatial texture features, and then 1D convolution is performed in the temporal dimension to extract temporal fluctuation features. To achieve progressive feature extraction from local to global facial videos, the spatiotemporal encoder is designed with a three-layer structure. It combines spatial downsampling to expand the receptive field layer by layer, extracting detailed features, local features, and global semantics respectively. The entire spatiotemporal feature encoder extracts stable spatiotemporal representations by spatiotemporal decoupling modeling, layered receptive field expansion, and maintaining the original sampling accuracy in the time dimension. At the same time, it suppresses local noise disturbances, retains dynamic features related to changes in blood perfusion, and finally retains only the temporal multi-scale features in the time dimension after spatial pooling.
[0015] As one embodiment, the method of adaptively fusing multi-scale spatiotemporal features using a multi-scale temporal feature fusion network and finally linearly projecting and reconstructing the output RPPG signal includes: The multi-scale temporal feature fusion network achieves multi-timescale feature modeling through three branches: short-term one-dimensional convolution, medium-term dilated convolution, and long-term low-rank attention mechanism. It also adaptively fuses features through a gating mechanism and finally outputs the RPPG signal using a 1D convolutional linear projection with a kernel of 1.
[0016] According to some embodiments, the present disclosure adopts the following technical solutions: A video-enhanced non-contact heart rate detection anti-interference system includes: The model building module is used to acquire the original video of skin surface reflection and to perform mathematical modeling on the skin reflection light signal; The component suppression module is used to suppress the luminance component and specular reflection component of the original video image frame based on a mathematical model, so as to obtain a diffuse reflection feature video containing only diffuse reflection features. The video enhancement module is used to fuse and enhance the diffuse feature video and the original video through a cross-covariance attention fusion mechanism to obtain an enhanced video; The prediction and reconstruction module is used to input the enhanced video into a hierarchical spatiotemporal feature extraction network, extract multi-scale spatiotemporal features using the hierarchical structure, adaptively fuse the multi-scale spatiotemporal features using a multi-scale temporal feature fusion network, and finally reconstruct the RPPG signal by linear projection. The detection output module is used to obtain the heart rate value from the RPPG signal through one-dimensional convolution regression.
[0017] According to some embodiments, the present disclosure adopts the following technical solutions: A computer program product includes a computer program that, when executed by a processor, implements the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0018] According to some embodiments, the present disclosure adopts the following technical solutions: A non-transitory computer-readable storage medium is provided for storing computer instructions, which, when executed by a processor, implement the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0019] According to some embodiments, the present disclosure adopts the following technical solutions: An electronic device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to perform the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0020] Compared with the prior art, the beneficial effects of this disclosure are as follows: This disclosure presents a non-contact heart rate detection anti-interference method based on video enhancement. An end-to-end neural network is constructed to extract RPPG signals from facial videos subject to interference from ambient light and motion. Based on modeling and analysis of skin reflection light, a video interference component suppression module is used to suppress interference components in the video data while preserving diffuse reflection features. A cross-covariance attention network is then combined to enhance the original video. Subsequently, a hierarchical spatiotemporal feature encoding module extracts spatiotemporal dynamic information from the video. Finally, a multi-scale temporal feature fusion structure is used to predict the RPPG signal, thereby achieving stable pulse wave reconstruction. By suppressing interference components and deeply mining blood perfusion-related physiological information, stable RPPG signal extraction and robust heart rate detection are achieved under interference scenarios, thus improving the reliability and stability of RPPG-based heart rate detection in everyday life scenarios.
[0021] This disclosure presents a non-contact heart rate detection anti-interference method based on video enhancement, which incorporates a brightness constraint loss and an RGB channel balance loss. The brightness constraint loss limits the average brightness of the output image to a preset range, while the RGB channel balance loss constrains the consistency of the proportional relationships among the three channels. For the RPPG signal prediction task, a negative Pearson correlation coefficient is used as the temporal regression loss to improve the consistency between the predicted waveform and the actual PPG waveform. Simultaneously, an L1 loss is used to calculate the error between the predicted heart rate and the actual value. The front-end interference suppression module and the subsequent feature extraction module are jointly trained end-to-end, and weight coefficients are set to balance the various loss terms, enabling the network to retain effective pulse wave information while suppressing interference.
[0022] This disclosure presents a video-enhanced non-contact heart rate detection anti-interference method. It constructs a hierarchical spatiotemporal coding network structure, employing progressive spatial downsampling and decoupling spatial and temporal feature modeling through (2+1)D convolutional blocks, thereby reducing parameter complexity while maintaining expressive power. To capture physiological rhythm information at different time scales, a multi-scale temporal feature fusion network is designed. This network achieves multi-time scale feature modeling through short-term convolution, medium-term dilated convolution, and long-term low-rank attention mechanisms, and adaptively fuses features through a gating mechanism. Finally, it linearly projects the RPPG signal and outputs the heart rate value through one-dimensional convolutional regression, enhancing the network structure's ability to perceive and adapt to stable rhythmic patterns. Attached Figure Description
[0023] The accompanying drawings, which form part of this disclosure, are used to provide a further understanding of this disclosure. The illustrative embodiments of this disclosure and their descriptions are used to explain this disclosure and do not constitute an undue limitation of this disclosure.
[0024] Figure 1 This is a schematic diagram of skin reflection according to an embodiment of the present disclosure; Figure 2 This is a flowchart illustrating the implementation architecture of the video-enhanced non-contact heart rate detection anti-interference method according to an embodiment of this disclosure. Figure 3 This is an architectural diagram of the video interference suppression module according to an embodiment of the present disclosure; Figure 4 This is a diagram illustrating the architecture of the cross-covariance attention module according to an embodiment of this disclosure. Figure 5 This is a diagram of the hierarchical spatiotemporal feature extraction network structure according to an embodiment of the present disclosure; Figure 6 This is a schematic diagram of the structure of the multi-scale temporal feature fusion network and the RPPG signal and heart rate prediction process according to an embodiment of this disclosure. Detailed Implementation
[0025] The present disclosure will be further described below with reference to the accompanying drawings and embodiments.
[0026] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of this disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains.
[0027] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this disclosure. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0028] Example 1 One embodiment of this disclosure provides a non-contact heart rate detection anti-interference method based on video enhancement, the method steps including: Step 1: Obtain the original video of skin surface reflection and perform mathematical modeling on the skin reflection light signal; Step 2: Based on the mathematical model, suppress the luminance component and specular reflection component of the original video image frame respectively to obtain a diffuse reflection feature video containing only diffuse reflection features; Step 3: The diffuse reflection feature video and the original video are fused and enhanced using a cross-covariance attention fusion mechanism to obtain the enhanced video; Step 4: The enhanced video input is processed by a hierarchical spatiotemporal feature extraction network, which extracts multi-scale spatiotemporal features using a hierarchical structure; a multi-scale temporal feature fusion network is used to adaptively fuse the multi-scale spatiotemporal features, and finally, the RPPG signal is reconstructed by linear projection. Step 5: Obtain the heart rate value by performing one-dimensional convolution regression on the RPPG signal.
[0029] As one embodiment, this disclosure presents a non-contact heart rate detection anti-interference method based on video enhancement. Based on modeling and analysis of skin reflection light, it suppresses interference components in video data while preserving diffuse reflection features through a video interference component suppression module, and enhances the original video using a cross-covariance attention network. Subsequently, a hierarchical spatiotemporal feature encoding module extracts spatiotemporal dynamic information from the video. Finally, a multi-scale temporal feature fusion structure is used to predict the RPPG signal, thereby achieving stable pulse wave reconstruction. The specific implementation process is as follows: Step 1: Obtain the original video of skin surface reflection and perform mathematical modeling on the skin reflection light signal; Specifically, firstly, a video of the skin surface reflecting light is captured using a camera device to record the changes in the intensity of reflected light over time, and then the changes in blood volume are reconstructed by analyzing these changes.
[0030] like Figure 1As shown, the skin consists of three parts: the epidermis, the dermis, and the subcutaneous tissue. When light from a light source shines on the skin, based on the dichroic reflection model, part of the incident light undergoes specular reflection on the skin surface, carrying no physiological information, while the other part penetrates the skin and undergoes diffuse reflection within the skin. Some of this light is reflected by blood vessels, carrying physiological information such as blood perfusion. A camera records the reflected light from the skin by recording video, thus extracting relevant physiological information such as changes in blood perfusion from the video.
[0031] Based on the Retinex algorithm and the dichroic reflection model, the skin reflection light signal captured by the camera can be modeled as follows: (1) in, Represents an image frame captured by the camera. For the luminance component, The reflection component includes the specular reflection component. and diffuse reflection component Two parts, t For time.
[0032] like Figure 1 As shown, specular reflection occurs on the skin surface and does not carry physiological information, while diffuse reflection light enters the skin tissue and carries blood perfusion information. Both the specular and diffuse reflection components contain two parts: DC and AC. Equation (1) can be further expanded as follows: (2) in, The DC component in specular and diffuse reflection is determined by the physical properties of skin structure. This represents the change in specular reflection caused by motion. The dominant change in blood volume during diffuse reflection is the RPPG signal.
[0033] Step 2: Based on the mathematical model, suppress the luminance component and specular reflection component of the original video image frame respectively to obtain a diffuse reflection feature video containing only diffuse reflection features; Specifically, by modeling and analyzing the light reflected from the skin, it can be determined that ambient light, motion, and other interfering factors mainly affect the luminance component. and the change in specular reflection The signal to be extracted is the change in diffuse reflectance. .
[0034] This disclosure presents a video interference component suppression module, the architecture of which is as follows: Figure 3As shown, the video interference component suppression module includes a luminance component normalization module and a specular reflection suppression module, which suppress the luminance component and specular reflection component respectively through the two sub-modules. The specific implementation details are as follows: (1) In the brightness normalization module, the image is normalized. Luminance component Decomposed into brightness under ideal, constant, and bright lighting conditions and the difference between the two ,Right now: (3) Since the reflectivity of the photographed object is determined by its own physical properties and is independent of illumination, multiplying the luminance component by the reflection component allows the original image to be represented as the enhanced image. and residual sum: (4) The process of obtaining the enhanced image is as follows: [The original image is then processed...] As input to the brightness normalization module, the nonlinear features are obtained through two layers of 2D convolution and ReLU activation function. The two layers of features are then added together through residual connection to enhance stability and gradient propagation ability. Finally, the residual is output after 2D convolution and Sigmoid activation function. ,Will from Subtracting from the middle yields the enhanced image. .
[0035] The residual is predicted from video image frames using a neural network. This results in an enhanced image. It captures learnable patterns of illumination, models low-frequency illumination variations, and normalizes images of different brightness levels to a set brightness. This is to achieve image enhancement and suppression of brightness variations in low-light scenes.
[0036] (2) In the specular reflection component suppression module, a neural network is used to predict the specular reflection vector in the image to establish an orthogonal projection plane and suppress noise introduced by motion interference. Since specular reflection only occurs on the surface of the skin and reflects all incident light, the color change caused by the specular reflection component is consistent with the color of the light source, but inconsistent with the skin color caused by changes in blood perfusion. Image pixels are usually composed of three components: red, green, and blue. In the color space constructed by the three components, the direction of change of the specular reflection vector is consistent with the color of the light source, but inconsistent with the direction of the diffuse reflection vector. 2D convolution and ReLU activation function are used to learn features related to the color of the light source in the image, and the features are mapped to specular reflection vectors through AvgPool2D and Linear layers. The enhanced image obtained from the previous module All pixels are projected onto the orthogonal plane of this vector to remove components that are in phase with the specular reflection vector, thereby suppressing the effect of specular reflection: (5) in, The image is after orthogonal projection. The input to the neural network is a video sequence containing multiple image frames. Each frame of the video is subjected to brightness normalization and specular reflection component suppression, retaining only the color changes caused by the diffuse reflection component, thus obtaining the diffuse reflection feature video.
[0037] Step 3: The diffuse reflection feature video and the original video are fused and enhanced using a cross-covariance attention fusion mechanism to obtain the enhanced video; Specifically, this disclosure fuses the input original video and diffuse feature video through a cross-covariance attention module, the architecture of which is as follows: Figure 4 As shown.
[0038] First, the original input video and the diffuse feature video output by the video interference suppression module are reshaped using tensors to facilitate data fusion. The resulting tensors are then normalized using LayerNorm and linear layers to obtain the query, key, and value. The original input video contains more complete physiological signals, providing the query (Q), while the diffuse feature video provides the key (K) and value (V). This allows the network to retain physiological information while using cleaner features for compensation and refinement, ultimately obtaining a more robust spatiotemporal representation. When fusing data using Q, K, and V, a multi-head attention module is used to divide the channels of Q, K, and V into multiple subspaces Q. h K h V h Each head independently learns a set of channel covariance relationships, and Q... h and K h Multiply and then pass through Softmax to obtain the corresponding channel attention matrix A. h and with V h The multiplication outputs the result of one head, and the results of all heads are concatenated and reshaped to obtain the fused enhanced video.
[0039] Step 4: The hierarchical spatiotemporal feature extraction network is used to enhance the video input and extract multi-scale spatiotemporal features using the hierarchical structure; the multi-scale spatiotemporal features are adaptively fused using a multi-scale temporal feature fusion network, and finally the RPPG signal is reconstructed by linear projection; the heart rate value is obtained by one-dimensional convolution regression on the RPPG signal.
[0040] Specifically, to extract stable and discriminative spatiotemporal features from enhanced videos and further achieve multi-scale reconstruction of RPPG signals, this disclosure constructs a hierarchical spatiotemporal feature extraction network, such as... Figure 5 As shown.
[0041] The hierarchical spatiotemporal feature extraction network uses spatiotemporal convolutional blocks (ConvST Blocks) based on (2+1)-dimensional (D) convolutions instead of 3D convolutional blocks. First, 2D convolutions are performed in the spatial dimension to extract spatial texture features, followed by 1D convolutions in the temporal dimension to extract temporal fluctuation features. BatchNorm pooling layers and the ReLU activation function are used to stabilize the training process and enhance feature representation capabilities. To achieve progressive feature extraction from local to global facial videos, the spatiotemporal encoder is designed as a three-layer structure, with each layer containing two spatiotemporal convolutional blocks. The enhanced video first passes through a detail feature extraction layer to extract detailed features such as edges and facial features. The spatiotemporal convolutional block has 32 channels for initial feature extraction, while also performing downsampling in the spatial dimension. Next, a local feature modeling layer with 64 channels further mines features while focusing more on local features related to the skin region, and further downsampling in the spatial dimension. Finally, after passing through a global semantic abstraction layer with 128 channels, the module primarily mines features related to changes in blood perfusion. Spatial pooling then abstracts these spatiotemporal features into temporal features. The hierarchical spatiotemporal feature module uses three feature extraction layers, combined with spatial downsampling, to progressively expand the receptive field, extracting detailed features, local features, and global semantics. The entire spatiotemporal feature encoder extracts stable spatiotemporal representations through spatiotemporal decoupling modeling, hierarchical receptive field expansion, and maintaining the original sampling accuracy in the temporal dimension. Simultaneously, it suppresses local noise disturbances, retains dynamic features related to changes in blood perfusion, and finally, spatial pooling preserves only the temporal features.
[0042] Furthermore, to capture physiological rhythm information at different time scales, this disclosure designs a multi-scale temporal feature fusion network. This network achieves multi-time scale feature modeling through three branches: short-term one-dimensional convolution, mid-term dilated convolution, and long-term low-rank attention mechanism. It adaptively fuses features through a gating mechanism, and finally outputs the RPPG signal using a 1D convolutional linear projection with a kernel of 1. The heart rate value is then obtained through one-dimensional convolutional regression. Figure 6As shown, the multi-scale temporal feature fusion module adopts a three-branch structure design. The extracted temporal features are input into three branches, and each branch independently models at different time scales. The short-term branch uses a one-dimensional convolutional block to model high-frequency changes in the local temporal neighborhood; the medium-term branch uses a dilated one-dimensional convolutional block, which, compared to a regular one-dimensional convolutional block, can expand the temporal receptive field without increasing the number of parameters, and is used to capture periodic fluctuations at medium scales; the long-term branch uses a low-rank self-attention mechanism, which passes the input temporal features through three linear layers to obtain the query Q. l Key K l Sum V l The model multiplies Q1 and K1, applies a softmax function, and then multiplies with V1 to model long-term dependencies, integrating long-distance dependency information across cycles and enhancing the ability to perceive stable rhythmic patterns. The features from the three branches are concatenated, and a gating module obtains the fusion weight w through a linear layer and a sigmoid activation function. The three-branch features are then weighted and fused, dynamically adjusting the contribution ratio at different time scales to enhance the model's adaptability to complex scenarios. Finally, the output features are first mapped to the RPPG signal through a one-dimensional convolutional block, and then regressed through another one-dimensional convolutional block to obtain the heart rate value.
[0043] As one embodiment, the loss function design and model training process of the network disclosed herein are as follows: To restrict the luminance component normalization module to normalize only luminance, the following loss function was designed: (6) The loss is calculated by averaging the output image of the luminance component normalization module, only for average pixel values exceeding [ , Penalizes out-of-range conditions, thus limiting image brightness within a certain range while allowing fluctuations within that range, preserving color changes caused by pulse waves. To ensure RGB component balance in the output video, a loss function is set to ensure consistent RGB ratios. (7) in, To enhance video The number of pixels in , and These represent the red, green, and blue component values of the video pixels, respectively. The overall loss function of the luminance normalization module in the video interference suppression module. That is: (8) Regarding the output RPPG signal, since the amplitude of the PPG signal itself has no physical meaning, this disclosure uses the negative Pearson correlation coefficient to calculate the loss between the RPPG signal and the PPG signal acquired by the finger-clip pulse oximeter, which serves as a reference standard signal. The calculation formula is as follows: (9) Simultaneously, the L1 norm is used to calculate the heart rate value output by the network. Heart rate values obtained from fingertip pulse oximeter Losses between: (10) This disclosure trains the network's pre-processing video enhancement module and subsequent feature extraction module together instead of separately training them in two steps. This prevents the front-end video processing module from focusing solely on interference information and erasing color changes caused by the pulse wave without supervision. In the total training loss, the RPPG temporal loss is dominant to prevent the pre-processing module from damaging the RPPG signal. for: (11) A coefficient is set for the heart rate value loss to balance the mismatch in magnitude between the losses, while a coefficient is set for the brightness normalization module to prevent the image enhancement task from excessively affecting the RPPG signal and the heart rate value prediction task.
[0044] After the network model built in this disclosure is trained based on the above loss function to obtain the model parameters, it can realize the extraction of RPPG signals and detection of heart rate values from the input video.
[0045] This disclosure allows for the measurement of heart rate in everyday situations with interference through a non-contact method. It can be used for patients who cannot wear contact sensors due to open wounds, and it does not require complicated sensor wearing, making it suitable for daily heart rate monitoring.
[0046] The beneficial effects of the video-enhanced non-contact heart rate detection anti-interference method disclosed herein include: (1) To achieve the suppression of interference from the luminance component and specular reflection component in the video and the enhancement of diffuse reflection features. Based on the mathematical modeling of skin reflection light, the signal components mainly affected by interference factors are the luminance component as a multiplicative gain and the specular reflection component which is greatly affected by motion. In the video interference component suppression module, this disclosure uses two sub-modules to suppress the luminance component and specular reflection component respectively: the luminance component normalization module is used to normalize the video luminance under different lighting conditions to a certain luminance range, suppressing the interference caused by insufficient lighting and lighting changes; the specular reflection suppression module suppresses the specular reflection component by predicting the vector of the ambient light source in the video and constructing an orthogonal projection plane, obtaining a video containing only diffuse reflection features. The obtained diffuse reflection feature video only contains hue changes and loses the original video detail information. Therefore, this disclosure uses a cross-covariance attention fusion module to fuse the diffuse reflection feature video and the original video to obtain an enhanced video for subsequent RPPG signal extraction.
[0047] (2) Stable and discriminative spatiotemporal features are extracted from the enhanced video, and multi-scale reconstruction of the RPPG signal is further realized. The obtained enhanced data contains spatial structural features and temporal dynamic features. The spatial dimension carries information on skin texture, blood vessel distribution and local reflection; the temporal dimension contains periodic weak color changes caused by blood volume pulsation. This disclosure constructs a hierarchical spatiotemporal coding structure, adopts progressive spatial downsampling, and realizes decoupling modeling of spatial and temporal features through (2+1)D convolutional blocks, thereby reducing parameter complexity while ensuring expressive power. In order to capture physiological rhythm information at different time scales, this disclosure designs a multi-scale temporal feature fusion module. This module realizes multi-time scale feature modeling through short-term convolution, medium-term dilated convolution and long-term low-rank attention mechanism, and adaptively fuses features through gating mechanism. Finally, the RPPG signal is output by linear projection, and the heart rate value is output by one-dimensional convolution regression.
[0048] (3) Joint training and loss function design of the front-end video enhancement module and the back-end feature extraction and RPPG signal and heart rate prediction network. To limit the brightness normalization network to only adjust the brightness without excessively disrupting color fluctuations, this disclosure designs a brightness constraint loss and an RGB channel balance loss; the brightness constraint loss is used to limit the average brightness of the output image to remain within a preset range, and the RGB channel balance loss is used to constrain the consistency of the three-channel ratio relationship. For the RPPG signal prediction task, this invention uses the negative Pearson correlation coefficient as the time-domain regression loss to improve the consistency between the predicted waveform and the real PPG waveform; at the same time, L1 loss is used to calculate the error between the predicted heart rate and the actual value. The front-end interference suppression module and the subsequent feature extraction module adopt an end-to-end joint training method, and set weight coefficients to balance each loss term, so that the network retains effective pulse wave information while suppressing interference.
[0049] Example 2 One embodiment of this disclosure provides a video-enhanced non-contact heart rate detection anti-interference system, comprising: The model building module is used to acquire the original video of skin surface reflection and to perform mathematical modeling on the skin reflection light signal; The component suppression module is used to suppress the luminance component and specular reflection component of the original video image frame based on a mathematical model, so as to obtain a diffuse reflection feature video containing only diffuse reflection features. The video enhancement module is used to fuse and enhance the diffuse feature video and the original video through a cross-covariance attention fusion mechanism to obtain an enhanced video; The prediction and reconstruction module is used to input the enhanced video into a hierarchical spatiotemporal feature extraction network, extract multi-scale spatiotemporal features using the hierarchical structure, adaptively fuse the multi-scale spatiotemporal features using a multi-scale temporal feature fusion network, and finally reconstruct the RPPG signal by linear projection. The detection output module is used to obtain the heart rate value from the RPPG signal through one-dimensional convolution regression.
[0050] Example 3 One embodiment of this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0051] Example 4 One embodiment of this disclosure provides a non-transitory computer-readable storage medium for storing computer instructions, which, when executed by a processor, implement the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0052] Example 5 One embodiment of this disclosure provides an electronic device, including a processor, a memory, and a computer program; wherein the processor is connected to the memory, and the computer program is stored in the memory. When the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to perform the aforementioned video-enhanced non-contact heart rate detection anti-interference method.
[0053] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0054] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0055] While the specific embodiments of this disclosure have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of this disclosure. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of this disclosure are still within the scope of protection of this disclosure.
Claims
1. A non-contact heart rate detection anti-interference method based on video enhancement, characterized in that, include: Obtain the original video of skin surface reflection and perform mathematical modeling of the skin reflection light signal; Based on the mathematical model, the luminance component and specular reflection component of the original video image frame are suppressed respectively to obtain a diffuse reflection feature video containing only diffuse reflection features. The diffuse reflection feature video and the original video are fused and enhanced using a cross-covariance attention fusion mechanism to obtain the enhanced video. A hierarchical spatiotemporal feature extraction network for enhanced video input is used to extract multi-scale spatiotemporal features using a hierarchical structure; a multi-scale temporal feature fusion network is used to adaptively fuse the multi-scale spatiotemporal features, and finally, the RPPG signal is reconstructed by linear projection. Heart rate values are obtained from RPPG signals through one-dimensional convolutional regression.
2. The non-contact heart rate detection anti-interference method based on video enhancement as described in claim 1, characterized in that, The process of acquiring the original video of skin surface reflection and mathematically modeling the skin reflection light signal includes: Acquire the original video of skin surface reflection and record the change in the intensity of reflected light on the skin surface over time; Based on the Retinex algorithm and the dichroic reflection model, the captured skin reflection light signal is mathematically modeled: in, Represents an image frame captured by the camera. For the luminance component, For the reflection component, t For time, the reflection component includes the specular reflection component. and diffuse reflection component Two parts.
3. The non-contact heart rate detection anti-interference method based on video enhancement as described in claim 1, characterized in that, The method, based on a mathematical model, suppresses the luminance and specular reflection components of the original video image frames to obtain a diffuse reflection feature video containing only diffuse reflection features, including: Modeling and analyzing skin reflection light yields the influence components of ambient light and motion interference factors. These influence components are the brightness component and the change in specular reflection. The video interference component suppression module is designed to suppress the luminance component and the specular reflection component. The video interference component suppression module includes a luminance component normalization module and a specular reflection suppression module. The brightness component normalization module normalizes the video brightness under different lighting conditions to a brightness range, suppressing interference caused by insufficient lighting and lighting changes; the specular reflection suppression module uses a neural network to predict the vector of the ambient light source in the video and constructs an orthogonal projection plane to suppress the specular reflection component. The input to the neural network is an original video sequence containing multiple image frames. Each frame of the video is subjected to brightness normalization and specular reflection component suppression, retaining only the color changes caused by the diffuse reflection component, thus obtaining a diffuse reflection feature video.
4. The non-contact heart rate detection anti-interference method based on video enhancement as described in claim 1, characterized in that, The process of fusing and enhancing the diffuse reflection feature video and the original video using a cross-covariance attention fusion mechanism to obtain the enhanced video includes: The diffuse reflection feature video and the original video are input into the cross-covariance attention module. The original video contains more complete physiological signals and provides queries after tensor dimension reconstruction, layer normalization and linear layer, while the diffuse reflection feature video provides keys and values. The multi-head self-attention module divides the query, key, and value channels into multiple subspaces. Each head independently learns a set of channel covariance relationships, and obtains a set of channel attention matrices which are multiplied by the value space. The results from each head are then concatenated to obtain the fused enhanced video.
5. The non-contact heart rate detection anti-interference method based on video enhancement as described in claim 1, characterized in that, The enhanced video input hierarchical spatiotemporal feature extraction network utilizes a hierarchical structure to extract multi-scale spatiotemporal features, including: A hierarchical spatiotemporal feature extraction network is constructed, which uses spatiotemporal convolutional blocks based on 2+1D convolutions instead of 3D convolutional blocks; First, 2D convolution is performed in the spatial dimension to extract spatial texture features, and then 1D convolution is performed in the temporal dimension to extract temporal fluctuation features. To achieve progressive feature extraction from local to global facial videos, the spatiotemporal encoder is designed with a three-layer structure. It combines spatial downsampling to expand the receptive field layer by layer, extracting detailed features, local features, and global semantics respectively. The entire spatiotemporal feature encoder extracts stable spatiotemporal representations by spatiotemporal decoupling modeling, layered receptive field expansion, and maintaining the original sampling accuracy in the time dimension. At the same time, it suppresses local noise disturbances, retains dynamic features related to changes in blood perfusion, and finally retains only the temporal multi-scale features in the time dimension after spatial pooling.
6. The non-contact heart rate detection anti-interference method based on video enhancement as described in claim 1, characterized in that, The method of adaptively fusing multi-scale spatiotemporal features using a multi-scale temporal feature fusion network and finally linearly projecting and reconstructing the output RPPG signal includes: The multi-scale temporal feature fusion network achieves multi-timescale feature modeling through three branches: short-term one-dimensional convolution, medium-term dilated convolution, and long-term low-rank attention mechanism. It also adaptively fuses features through a gating mechanism and finally outputs the RPPG signal using a 1D convolutional linear projection with a kernel of 1.
7. A video-enhanced non-contact heart rate detection anti-interference system, characterized in that, include: The model building module is used to acquire the original video of skin surface reflection and to perform mathematical modeling on the skin reflection light signal; The component suppression module is used to suppress the luminance component and specular reflection component of the original video image frame based on a mathematical model, so as to obtain a diffuse reflection feature video containing only diffuse reflection features. The video enhancement module is used to fuse and enhance the diffuse feature video and the original video through a cross-covariance attention fusion mechanism to obtain an enhanced video; The prediction and reconstruction module is used to input the enhanced video into a hierarchical spatiotemporal feature extraction network, extract multi-scale spatiotemporal features using the hierarchical structure, adaptively fuse the multi-scale spatiotemporal features using a multi-scale temporal feature fusion network, and finally reconstruct the RPPG signal by linear projection. The detection output module is used to obtain the heart rate value from the RPPG signal through one-dimensional convolution regression.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the video-enhanced non-contact heart rate detection anti-interference method according to any one of claims 1-6.
9. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium is used to store computer instructions, which, when executed by a processor, implement the video-enhanced non-contact heart rate detection anti-interference method as described in any one of claims 1-6.
10. An electronic device, characterized in that, include: The device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to perform the video-enhanced non-contact heart rate detection anti-interference method as described in any one of claims 1-6.
