A remote non-contact heart rate detection system and method

Through the remote non-contact heart rate detection method based on remote photoplethysmography and neural network model, the problems of uncomfortable contact measurement and large detection deviation of image processing methods are solved, and high-precision and low-cost heart rate detection is achieved. Suitable for a variety of application scenarios.

CN116327152BActive Publication Date: 2024-10-22CHONGQING UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202211607519.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-14
Publication Date
2024-10-22
Estimated Expiration
2042-12-14

AI Technical Summary

Technical Problem

Existing heart rate detection methods are uncomfortable in contact measurement, high in cost, and unfriendly to users with fragile skin. Moreover, remote photoplethysmography based on image processing is difficult to effectively handle interference caused by motion artifacts and ambient light illumination changes. This leads to large deviations in test results.

Method used

A remote non-contact heart rate detection method based on remote photoplethysmography, attention mechanism and neural network model is used to record face video through the camera, use Fast-ICA to extract rPPG time series signals, and GADF encoding to form a two-dimensional feature image. And the heart rate value is inferred through the LA-Res2Net neural network model.

Benefits of technology

It achieves fast, accurate and non-contact detection of heart rate value, improves detection accuracy, is suitable for heart rate monitoring of newborns and exercise processes, and is not affected by age and skin color.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116327152B_ABST
    Figure CN116327152B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of heart rate detection technology, and in particular to a remote non-contact heart rate detection system and method. The method comprises: collecting video data of a user; locating the ROI region of each frame image in the video data; extracting the rPPG timing signal according to the ROI region of all frame images using Fast‑ICA; encoding the rPPG timing signal to form a two-dimensional feature image using GADF; and completing the reasoning of the heart rate value through a neural network model. The present invention adopts a combination of traditional image processing and deep learning to obtain the heart rate value from the face video, and the obtained heart rate value has higher accuracy; the face feature points are obtained by using the heat map method in deep learning, and the detection speed is fast and the accuracy is high. In addition, not only the number of feature points and the position of the feature points in the face can be arbitrarily set according to one's own needs, but also they are not affected and limited by the age and skin color of the identified object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of heart rate detection, and in particular to a remote non-contact heart rate detection system and method. Background Art

[0002] Heart rate is one of the important vital signs that reflects the physiological and mental health of the human body. Closely monitoring the changes in the human heart rate can detect and prevent common cardiovascular diseases as early as possible. Traditional heart rate detection methods are basically contact methods, which are not very friendly to wearing comfort, use costs, and users with fragile skin.

[0003] Existing heart rate detection methods include: blood oxygen method, pulse measurement method, electrode electrocardiogram method, photoplethysmography, and remote photoplethysmography based on traditional image processing.

[0004] 1. Blood oxygen method

[0005] The blood oxygen saturation instrument has two kinds of light-emitting diodes, one of which emits visible red light with a wavelength of 660nm, and the other emits infrared light with a wavelength of 940nm. There is a certain ratio between oxygenated hemoglobin HbO2 and hemoglobin Hb in the blood, and the two kinds of hemoglobin have different absorption coefficients for two different wavelengths of light. Therefore, by clamping the light-emitting diode of the blood oxygen saturation instrument in the translucent part of the human body, the absorption ratio of the two spectra during the measurement is calculated to obtain the blood oxygen saturation. The blood oxygen meter detects the arterial pulsation by detecting the change of blood oxygen saturation, and calculates the heart rate value through the pulsation rhythm.

[0006] Since this method is a transmission method, it requires the other side of the human body detection part to receive the transmitted light signal in order to operate normally. The detection part needs to be thin enough. The suitable parts of the human body are mainly fingers and earlobes. The scope and scenes of use are very limited. In addition, since this method uses contact measurement, the comfort during the measurement process needs to be improved.

[0007] 2. Pulse measurement method

[0008] This method obtains the heart rate value by detecting the human pulse. The person to be measured needs to remain relaxed and be in a lying or sitting position. The measurer needs to place his hand or pressure sensor on the radial artery at the wrist of the person to be measured to feel the regular fluctuations in arterial pressure. The number of fluctuations within 1 minute is counted, which is the heart rate value.

[0009] This method uses manual calculation or sphygmomanometer, which is not only cumbersome, but also takes a long time to measure and has large deviations in results. In addition, for people with heart disease, once arrhythmia, atrial fibrillation, and premature beats occur, their pulse and heartbeat are not completely consistent. At this time, the pulse will be lower than the heart rate. This phenomenon is clinically called pulse deficiency. In addition, this method is not suitable for 24-hour dynamic heart rate detection.

[0010] 3. Electrode electrocardiogram method

[0011] This method controls the contraction and relaxation of the heart through the rhythmic electrical activity of the sinoatrial node, thereby pumping blood to the peripheral arteries. The ECG signal gradually spreads from the heart to the body surface at a very fast speed, so the electrical activity of the heart can be detected in real time through the electrical signal on the skin surface.

[0012] This method requires multiple surface electrodes and specialized ECG signal analysis equipment to detect heart rate. This detection method is not suitable for newborns and patients with fragile skin. In addition, long-term use of contact measuring instruments may cause discomfort to patients or even cause skin diseases.

[0013] 4. Photoplethysmography

[0014] This method tracks the reflection of visible light (green light) in human tissue. Usually, there are two green LEDs that emit visible light to the wrist, and then a photoelectric sensor in the middle senses the reflected light. The reflection of light by the human skin, bones, meat, fat, etc. is a fixed value, while the reflection of light by capillaries and arterial veins is a fluctuating value because the volume of the pulse keeps increasing and decreasing. The frequency of this fluctuation is the pulse, which is generally consistent with the heart rate.

[0015] This contact method is often used in electronic products such as smart watches or smart bracelets. The user experience of these detection devices is not particularly good because it is difficult to fix the LED transmitter and receiver on the surface of the wrist skin in a suitable manner for a long time. Fixing it too tightly will cause poor blood flow, and fixing it too loosely will affect the accuracy of the measurement results. It is also easy to cause discomfort or pain during strenuous exercise.

[0016] 5. Remote photoplethysmography based on traditional image processing

[0017] The existing more mature remote photoplethysmography method is mainly based on the dichromatic reflection model (DRM): the camera captures the ambient light reflected from the skin surface, including diffuse reflection and specular reflection. Among them, specular reflection occurs at the interface between the incident light and the skin, and does not contain information related to physiological signals, while diffuse reflection is affected by blood flow. Therefore, by using traditional image and signal processing technology to process and analyze the video formed by the camera capturing the reflected light, the diffuse reflection signal can be separated, and then the required remote photoplethysmography (rPPG) signal with periodic peaks can be obtained. It can be understood that the peak interval is the heartbeat interval, so the number of heartbeats per minute can be obtained by calculating the number of peaks over a period of time.

[0018] However, this method not only finds it difficult to effectively deal with motion artifacts in face videos and interference caused by changes in ambient light, which leads to large deviations in the detection results, but the accuracy of the detection results also depends to a large extent on the accuracy of selecting the face region of interest. Traditional methods require customized selection rules for these regions, and it is difficult to achieve ideal detection results among people of different skin colors and age groups.

[0019] To this end, we have developed a remote non-contact heart rate detection system and method. Summary of the invention

[0020] The purpose of the present invention is to provide a remote non-contact heart rate detection system and method, which are used to solve the shortcomings of existing contact heart rate detection methods and non-contact heart rate detection methods: it is difficult to effectively handle the interference caused by motion artifacts in face videos and changes in ambient light illumination, thereby causing a large deviation in the detection results. The present invention provides heart rate detection based on remote photoplethysmography, attention mechanism and neural network model technology. The method can realize remote human heart rate detection, and the operation is comfortable, simple and low in cost. Only one camera is needed to record a face video to quickly, accurately and contactlessly detect the heart rate value.

[0021] In order to achieve the above object, the present invention adopts the following technical solutions:

[0022] The present invention provides a remote non-contact heart rate detection method, which is characterized by comprising the following steps:

[0023] S1. Turn on the fill light source and collect the user's video data;

[0024] S2. locating the ROI region for each frame of the video data;

[0025] S3. Use Fast-ICA to extract rPPG timing signals based on the ROI area of ​​all frame images;

[0026] S4. Use GADF to encode the rPPG timing signal into a two-dimensional feature image as a representation of the heart rate signal;

[0027] S5. Complete the inference of heart rate value through the neural network model.

[0028] Furthermore, in S2, ROI region positioning is performed on each frame image in the video data, including:

[0029] The facial feature key point recognition algorithm based on deep learning and heat map is used to detect and obtain facial key points as the ROI area. The method includes:

[0030] S21. Annotate the face in the image with feature points according to the custom face key point area, and obtain the corresponding (X, Y) feature point coordinates;

[0031] S22. The corresponding feature point coordinates are converted into a heat map using Gaussian filtering, where the width W and height H of the heat map are the same as the original Figure 1 The closer the pixel value is to the key point coordinate, the larger the pixel value is, and vice versa.

[0032] S23. Use the U-Net network model to build a heat map prediction regression model to predict facial key points;

[0033] S24. The Adam optimizer and MSE loss function are used to train the heat map prediction regression model. The input of the model is a face image of (H, W, 3), and the output is a heat map of (H, W, K);

[0034] S25. Using the trained heat map prediction regression model, find the coordinates of the point with the largest pixel value in each single-channel heat map matrix of size (H, W) from the heat map, which are the coordinates of the key points of the face inferred by the model;

[0035] S26. Construct a ROI region based on the inferred facial key point coordinates.

[0036] Furthermore, in S3, Fast-ICA is used to extract rPPG timing signals according to the ROI areas of all frame images, including:

[0037] Using the principle of remote photoplethysmography, rPPG signals expressing the rhythmic changes of blood volume in blood vessels are extracted from three signal channels of the RGB color space of the ROI area of ​​each frame image, and the method includes:

[0038] S31. Extract the pixel averages of the three signal channels of each time ROI region. For a video segment of T frames, there are three time series signals of length T;

[0039] S32. Taking the three time series signals as input observation signals, decomposing them into linear combinations of statistically independent non-Gaussian signal sources through linear transformation, and outputting three new time series containing more hidden information;

[0040] S33. Select the signal with the highest signal-to-noise ratio and the best pulse wave restoration among the three time series containing more hidden information as the rPPG signal.

[0041] Furthermore, in S4, GADF is used to encode the rPPG time series signal to form a two-dimensional feature image, including:

[0042] S41. Scale the range of each value in the time series data to [-1,1], the formula is as follows

[0043]

[0044] in, represents the value of the i-th point of the time series signal after scaling transformation, x i represents the value of the i-th point of the original timing signal, and X represents the original timing signal;

[0045] S42. Convert the scaled sequence data to the polar coordinate system, convert each data point of the sequence into the cosine value of the angle, and convert the time step into the radius r. The formula is as follows

[0046]

[0047] in, represents the cosine value of the angle, t i represents the time step, and N represents the number of sampling points of the time series signal;

[0048] S43. Convert the time series data of length n into a Gram matrix of size according to the angle difference between different points. The formula is as follows

[0049]

[0050] Among them, Gram represents the transformed two-dimensional image matrix, Represents the cosine value of the angle corresponding to the nth point.

[0051] Furthermore, in S5, the heart rate value is inferred by a neural network model, and the neural network model is LA-Res2Net, which is trained by multiple face video data sets with heart rate value labels;

[0052] The training phase method of the LA-Res2Net includes:

[0053] All face video data in the dataset are processed through the data preprocessing module to obtain their corresponding rPPG feature image data;

[0054] All rPPG feature images and corresponding heart rate HR labels are put into the neural network model LA-Res2Net, and the model is trained using the RMSprop optimizer and mean absolute error loss function.

[0055] The present invention also provides a remote non-contact heart rate detection system, the system comprising:

[0056] Data acquisition module, data preprocessing module, heart rate inference module and inference result visualization module;

[0057] The data acquisition module is used to record the user's video data;

[0058] The data preprocessing module comprises:

[0059] A ROI region positioning module is used to obtain the ROI region of each frame in the video data;

[0060] An rPPG timing signal acquisition module, used to extract the rPPG timing signal expressing the rhythmic change of blood volume in the blood vessel from the ROI area in the video data through Fast-ICA;

[0061] An rPPG characteristic image encoding module, used for converting the rPPG timing signal into a two-dimensional characteristic image;

[0062] The heart rate inference module is used to infer the heart rate value according to the two-dimensional feature image;

[0063] The inference result visualization module is used to realize the visualization of the heart rate value obtained by inference.

[0064] Furthermore, the data acquisition module is composed of a high-definition video recording device, and the data acquisition module also includes a light source module and a bracket module;

[0065] The light source module includes a plurality of fill light sources, which are used for fill light when the data acquisition module acquires video data;

[0066] The support module is used to lift and fix the data acquisition module, and the support module is also used to adjust the height, azimuth and pitch angle of the data acquisition module.

[0067] Furthermore, the heart rate reasoning module is a LA-Res2Net neural network model;

[0068] The main body of the LA-Res2Net neural network model is the granular residual structure FGA-Block, which includes 1 convolutional layer, 2 pooling layers, 4 FGA-Layer layers, 1 LSTM layer and 1 fully connected layer;

[0069] Each FGA-Layer is composed of multiple FGA-Blocks in series;

[0070] The CBAM attention mechanism module is introduced in the FGA-Block.

[0071] Furthermore, the CBAM attention mechanism module includes a channel attention module and a spatial attention module;

[0072] In the channel attention module, the feature map of input size H×W×C is processed by maximum pooling and average pooling in the layer dimension to obtain a 1×1×C vector representing global information, and then the vector is sent to the multi-layer perceptron to learn the correlation between different channels. Finally, the outputs of the two are added and sent to the Sigmoid function to obtain a 1×1×C channel weight, which is multiplied with the original feature map of H×W×C in a weighted multiplication manner. The calculation process is as follows:

[0073] A c (X)=σ(MLP(MaxPool(X))+MLP(AvgPool(X))) (4)

[0074] Y c =A c (X)·X (5)

[0075] where X and Y c are the input and output of the channel attention module, A c (X) is the channel weight, σ is the Sigmoid function;

[0076] In the spatial attention module, the output feature map of the channel attention module is processed by MaxPool and AvgPool in the channel dimension to generate two H×W×1 feature maps representing different information. Then, the two H×W×1 feature maps representing different information are merged into an H×W×2 feature map through Concat operation, and then feature fusion is performed through the convolution layer. Finally, the Sigmoid function is used to obtain a weight map representing the importance of spatial area information, which is multiplied and weighted with the input feature map of the module to achieve the enhancement of the target area. The calculation process is as follows:

[0077] A s (Y c )=σ(Conv([((MaxPool(Y c ); AvgPool(Yc ))])) (6)

[0078] Y s =A s (Y c )·Y c (7)

[0079] where Y c and Y s are the input and output of the spatial attention module, A s (Y c ) is the spatial information weight map, and Conv is a convolution operation with a convolution kernel size of 7×7.

[0080] The present invention has at least the following beneficial effects:

[0081] (1) Compared with the existing immature remote heart rate detection methods based on image processing, the present invention adopts a combination of traditional image processing and deep learning to obtain heart rate values ​​from face videos, so as to achieve complementary advantages of the two technologies, and finally obtain a heart rate value with higher accuracy; the CBAM attention mechanism can make the model focus on important information related to the current task in both spatial and channel dimensions. Compared with the ordinary residual structure, the granularity-level residual structure used in the present invention produces a combination of multi-scale receptive fields in a finer granularity, and has a deeper mining capability for feature information; LSTM can mine the time series variation law of relatively long intervals in the feature map; the heat map method in deep learning is used to obtain face feature points, which has fast detection speed and high accuracy. In addition, not only the number of feature points and the position of feature points in the face can be set arbitrarily according to one's own needs, but also they are not affected and limited by the age and skin color of the identified object.

[0082] (2) Compared with the traditional contact heart rate detection method, the non-contact heart rate detection method of the present invention has better applicability in the aspects of newborn health detection and heart rate monitoring during heart rate tracking during exercise. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0084] Figure 1 This is a structural block diagram of the remote non-contact heart rate detection system provided by the present invention.

[0085] Figure 2 Schematic diagram of the U-Net facial key point prediction network model provided by the present invention.

[0086] Figure 3 This is a schematic diagram of obtaining the face ROI provided by the present invention.

[0087] Figure 4 A schematic diagram of the process of extracting rPPG signals using the Fast-ICA method provided by the present invention.

[0088] Figure 5 Schematic diagram of the granularity level residual structure FGA-Block provided by the present invention.

[0089] Figure 6 This is a schematic diagram of the LA-Res2Net network model provided by the present invention.

[0090] Figure 7 This is a schematic diagram of the CBAM module provided by the present invention.

[0091] Figure 8 This is a schematic diagram of the LSTM module provided by the present invention.

[0092] Fig. 9 The present invention provides a host computer software interface. DETAILED DESCRIPTION

[0093] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0094] Example 1

[0095] This embodiment is mainly used to disclose a remote non-contact heart rate detection method, the steps comprising:

[0096] S1. Turn on the fill light source and collect the user's video data;

[0097] S2. locating the ROI region for each frame of the video data;

[0098] Specifically, regarding the positioning of the ROI area of ​​interest on the face, a facial feature key point recognition algorithm based on deep learning and heat map is adopted. Compared with the regression key point coordinate method based on CNN+fully connected Dense network model, which has the disadvantages of poor spatial generalization ability, heavy dependence on the distribution of training data, and easy overfitting, the present invention not only has high prediction accuracy for key point coordinates, but also has the advantage of strong spatial generalization ability.

[0099] The method for detecting key points of a face based on a heat map of the present invention is as follows:

[0100] The first step is to mark the facial features of the face in the image according to the customized facial key point area (such as forehead, cheek, etc.) to obtain the corresponding (X, Y) coordinates;

[0101] In the second step, the corresponding key point coordinates are converted into a heat map using Gaussian filtering, where the width W and height H of the heat map are the same as the original Figure 1 The closer the pixel value is to the key point coordinate, the larger the pixel value is, and vice versa.

[0102] The number of heatmaps depends on the number of key points of the face. For example, the coordinates of 12 key points will be converted into a heatmap of size (H, W, 12). Each channel is a single-channel heatmap of size (H, W) and records the coordinate information of a key point.

[0103] The third step is to build a heat map prediction regression model. Considering both the reasoning accuracy and speed, the present invention uses a simple U-net network model to predict the key points of the face. Figure 2 As shown;

[0104] The fourth step is to train the heat map prediction regression model using the Adam optimizer and the MSE loss function. The input of the model is a face image of (H, W, 3), and the output is a heat map of (H, W, K);

[0105] Step 5: In the inference stage, find the coordinates of the point with the largest pixel value in each single-channel heat map matrix of size (H, W) from the heat map of (H, W, K), which are the coordinates of the key points of the face inferred by the model;

[0106] The sixth step is to construct the ROI area based on the coordinates of the facial key points inferred by the model, such as Figure 3 shown.

[0107] S3. Use Fast-ICA to extract rPPG timing signals based on the ROI area of ​​all frame images;

[0108] Specifically, regarding the extraction of rPPG timing signals, this step uses the principle of remote photoplethysmography: the beating of the heart causes periodic changes in the blood volume in the blood vessels. When light shines on the facial skin, part of the light is mirror-reflected on the skin surface, and this part of the light does not contain information about the pulse signal. Another part of the light penetrates the skin and shines on the blood vessels and is reflected, which is diffuse reflection. This part of the reflected light will have slight changes due to the different blood volumes in the blood vessels, that is, it contains the pulse signal. Therefore, for a segment of face video, by observing the changes in pixel values ​​in a certain area, a segment of rPPG signal with weak, periodic peaks can be extracted, where the peak interval is the heartbeat interval. Therefore, calculating the number of peaks over a period of time can get the number of heartbeats per minute.

[0109] The present invention extracts rPPG signals expressing the rhythmic changes of blood volume in blood vessels from the three signal channels of the RGB color space of the ROI area of ​​each frame image through a fast independent component analysis method (Fast-ICA). This is a method for detecting heart rate based on changes in pixel values ​​of facial skin. Figure 4 Figure 1 is a flow chart of extracting rPPG signals using the Fast-ICA method. First, the pixel averages of the three signal channels in each time ROI area are extracted. In this way, for a video segment of T frames, there are three time series signals with a length of T. Then, the Fast-ICA method is used to take these three time series signals as input observation signals, decompose them into linear combinations of statistically independent non-Gaussian signal sources through linear transformation, and finally output three new time series containing more hidden information. Finally, the signal with the highest signal-to-noise ratio and the best pulse wave restoration is selected as the rPPG signal.

[0110] S4. Use GADF to encode the rPPG timing signal into a two-dimensional feature image as a representation of the heart rate signal;

[0111] Since the tested face videos are often accompanied by motion artifacts and affected by unstable ambient lighting, the accuracy of the rPPG signal obtained from the face video only by the Fast-ICA method is not very high. We need to convert the obtained rPPG signal into a two-dimensional feature image as another representation of the heart rate signal, and finally use it and the corresponding HR heart rate value as labels to input into the neural network model for training and testing.

[0112] The present invention uses the angle difference Grami angle field method (GADF) to encode the one-dimensional time series RPPG signal into a two-dimensional feature image. Assuming that the time series signal is, the GADF implementation steps are as follows:

[0113] Step 1: Scale the range of each value in the time series data to [-1,1], the formula is as follows

[0114]

[0115] in, represents the value of the i-th point of the time series signal after scaling transformation, x i represents the value of the i-th point of the original timing signal, and X represents the original timing signal;

[0116] Step 2: Convert the scaled sequence data to the polar coordinate system, convert each data point of the sequence into the cosine value of the angle, and convert the time step into the radius r. The formula is as follows

[0117]

[0118] in, represents the cosine value of the angle, t i represents the time step, and N represents the number of sampling points of the time series signal;

[0119] Step 3: Convert the time series data of length n into a Gram matrix of size n according to the angle difference between different points. The formula is as follows

[0120]

[0121] Among them, Gram represents the transformed two-dimensional image matrix, Represents the cosine value of the angle corresponding to the nth point.

[0122] Compared with the Cartesian coordinate system, the polar coordinate system maintains an absolute time relationship, and from the Gram matrix generated by GADF, it can be seen that time increases as the matrix elements move from the upper left corner to the lower right corner, so the time dimension information is encoded in the geometric structure of the Gram matrix. That is, the Gram matrix generated by GADF retains the time dependency, which provides a theoretical basis for using LSTM to extract the temporal change law in the feature map.

[0123] S5. Complete the inference of heart rate value through the neural network model.

[0124] 4.4 Heart Rate Inference Module

[0125] The inference module of the present invention completes the inference function of the heart rate value, and its ability is obtained by training the neural network model LA-Res2Net under 2635 face video data sets with heart rate value (HR) labels.

[0126] During the training phase, the entire inference module first passes all the face video data in the dataset through the data preprocessing module to obtain the corresponding rPPG feature image data, and then puts all the rPPG feature images and the corresponding heart rate value HR labels into the neural network model LA-Res2Net, and uses the RMSprop optimizer and mean absolute error (MAE) loss function to train the model.

[0127] In the inference stage, the entire inference module only needs to pass the face video data to be tested through the data preprocessing module to obtain the corresponding rPPG feature image and then transmit it to the trained neural network model LA-Res2Net to quickly, accurately and contactlessly infer the heart rate value.

[0128] For the specific structure of LA-Res2Net, please refer to the specific content of Example 2 below.

[0129] Embodiment 2:

[0130] This embodiment is used to disclose a remote non-contact heart rate detection system. For details, please refer to Figure 1 .

[0131] This system specifically includes:

[0132] 1. Data acquisition module

[0133] The data acquisition module is mainly composed of a high-definition video recording device, which is responsible for recording a short video data for each test user. The module transmits the video data to the data preprocessing module in real time via wired or wireless means for analysis and processing.

[0134] The data acquisition module also includes a light source module and a bracket module.

[0135] The light source module is composed of several fill light sources. Since the method relies on a two-color reflection model, the function of the light source module is to meet the lighting conditions of the detection scene environment and provide the high-definition video recording device with sufficient light to ensure the quality of the recorded video.

[0136] The function of the bracket module is to lift and fix the data acquisition module. The bracket should have a three-dimensional adjustment function, which can adjust the height, azimuth and pitch angle of the data acquisition module, provide the data acquisition module with the best data acquisition posture, and play a stabilizing role.

[0137] 2. Data preprocessing module

[0138] The data preprocessing module comprises:

[0139] A ROI region positioning module is used to obtain the ROI region of each frame in the video data;

[0140] An rPPG timing signal acquisition module, used to extract the rPPG timing signal expressing the rhythmic change of blood volume in the blood vessel from the ROI area in the video data through Fast-ICA;

[0141] An rPPG characteristic image encoding module, used for converting the rPPG timing signal into a two-dimensional characteristic image;

[0142] The heart rate inference module is used to infer the heart rate value according to the two-dimensional feature image;

[0143] The inference result visualization module is used to realize the visualization of the heart rate value obtained by inference.

[0144] 2.1 Heart Rate Inference Module

[0145] The heart rate reasoning module of the present invention is a neural network model LA-Res2Net.

[0146] The LA-Res2Net neural network model is used for regression prediction. The input three-channel rPPG feature image is used to predict the user's heart rate value through the network model. The main structure of the LA-Res2Net model is the granular residual structure FGA-Block, which has the following structure: Figure 5 As shown. LA-Res2Net( Figure 6 ) is composed of 1 convolutional layer, 2 pooling layers, 4 FGA-Layer layers, 1 LSTM layer and 1 fully connected layer, where each FGA-Layer layer is composed of multiple FGA-Blocks in series. FGA-Block introduces the CBAM (Convolutional Block Attention Module) attention mechanism module to extract important channel and spatial information in the feature map; due to the size of the convolution kernel, it is difficult for FGA-Layer to learn the temporal dependencies hidden in the CTG image data, so LA-Res2Net adds an LSTM layer between the last FGA-Layer layer and the fully connected layer. LSTM introduces a gated unit to control the forgetting, input and output of neurons, which can mine the temporal change rules of relatively long intervals in the feature map.

[0147] 2.1.1 CBAM Attention Mechanism

[0148] CBAM is an attention mechanism module that integrates channel and spatial information interaction. The entire module consists of two sub-modules in cascade. Its structure is as follows: Figure 7 shown. Figure 7 In the model, the first module is the channel attention module, which is used to characterize the correlation between each channel of the feature map and the key information. The larger the weight, the higher the correlation. The second module is the spatial attention module, which is used to obtain the importance of information in different regions of the feature map.

[0149] In the channel attention module, the feature map with an input size of H×W×C is processed by MaxPool and AvgPool in the layer dimension to obtain a 1×1×C vector representing global information, and then the vector is sent to the multi-layer perceptron (MLP) to learn the correlation between different channels. Finally, the outputs of the two are added and sent to the Sigmoid function to obtain a 1×1×C channel weight, which is multiplied with the original feature map of H×W×C in a weighted multiplication manner, thereby strengthening features with large amounts of information and suppressing useless features. The calculation process is as follows:

[0150] A c (X)=σ(MLP(MaxPool(X))+MLP(AvgPool(X))) (4)

[0151] Yc =A c (X)·X (5)

[0152] where X and Y c are the input and output of the channel attention module, A c (X) is the channel weight and σ is the Sigmoid function.

[0153] In the spatial attention module, the output feature map of the channel attention module is processed by MaxPool and AvgPool in the channel dimension to generate two H×W×1 feature maps representing different information. The two are combined into an H×W×2 feature map through the Concat operation, and then the feature fusion is performed through the convolution layer. Finally, the Sigmoid function is used to obtain the weight map representing the importance of spatial area information, which is multiplied and weighted with the input feature map of the module to achieve the enhancement of the target area. The calculation process is as follows:

[0154] A s (Y c )=σ(Conv([((MaxPool(Y c ); AvgPool(Y c ))])) (6)

[0155] Y s =A s (Y c )·Y c (7)

[0156] where Y c and Y s are the input and output of the spatial attention module, A s (Y c ) is the spatial information weight map, and Conv is a convolution operation with a convolution kernel size of 7×7.

[0157] 2.1.2 Granularity-level residual structure FGA-Block

[0158] FGA-Block( Figure 5) consists of a residual branch and a skip-layer branch, in which a hierarchical residual-like connection is constructed in the residual branch, that is, the feature map channels are grouped after 1×1Conv, and 3×3Conv is used to extract features for each channel separately, and the convolution output of the current channel is added to the next channel in a similar residual manner for feature fusion. After that, the convolution output of each channel is restored to the original number of channels through the Concat operation, and then the output after 1×1Conv is passed through the CBAM attention module to obtain the output of the residual branch. FGA-Block uses the parameter s to control the number of channel groups to achieve the granularity level representation of multi-scale characteristics, and increases the receptive field range of each network layer. The skip-layer branch allows the input signal to reach the end of the residual branch directly without passing through the residual branch, effectively preventing the gradient vanishing and gradient explosion problems caused by too deep network layers.

[0159] 2.1.3 Long Short-Term Memory Network LSTM

[0160] The internal structure of LSTM is as follows Figure 8 As shown, where x t is the network input at the current moment; c is the memory cell, which acts as the "conveyor belt" of the network to control the transmission of information; i is the input gate, which controls the input x at the current moment t The information contained is transferred to the current moment memory cell c t The ratio of; f is the forget gate, which controls the memory cell c at the previous moment t-1 The information is retained until the current time c t ratio; o is the output gate, which controls c t The stored information is retained until the current time output h t The ratio of h t-1 represents the output at the previous moment; σ and tanh are both activation functions, where σ is the Sigmoid function and tanh is the hyperbolic tangent function. The calculation of the LSTM unit is shown in Formula 8 to Formula 13.

[0161] The formula for the input gate is

[0162] i t =σ(W ix x t +W ih h t-1 +b i ) (8)

[0163] The formula of the forget gate is

[0164] f t =σ(W fx x t +W fh h t-1 +b f) (9)

[0165] The formula for the output gate is

[0166] o t =σ(W ox x t +W oh h t-1 +b o ) (10)

[0167] Formula for candidate memory cell states

[0168]

[0169] The current memory cell state value is the element-wise multiplication of the previous memory cell state value by the forget gate, plus the element-wise multiplication of the current candidate memory cell state value by the input gate. The symbol · indicates element-wise multiplication. The formula is

[0170]

[0171] The final output result of LSTM is determined by the output gate and memory cells. The formula is:

[0172] h t =o t ·tanh(c t ) (13)

[0173] Where W ix , W ig and b i , W fx , W fh and b f , W ox , W oh and b o , W cx , W ch and b c They are the input gate, forget gate, output gate, and the weight matrix of the candidate memory cell input at the current moment, the weight matrix and bias matrix output at the previous moment.

[0174] 2.1.4 Inference Result Visualization Module

[0175] The heart rate inference result visualization module of this system is mainly composed of the host computer software ( Fig. 9 ), the host computer receives the face video data sent by the data acquisition module through the serial port, and then transmits it to the data preprocessing module and the heart rate inference module. Finally, the heart rate inference module transmits the inferred heart rate value result to the host computer for visual display.

[0176] In order to verify the effectiveness of the LA-Res2Net network model in detecting heart rate values ​​based on face videos, this study conducted comparative experiments on the model with traditional image processing methods and other deep learning models under the same dataset, and used three indicators: mean absolute error (MAE), root mean square error (RMSE) and Pearson product-moment correlation coefficient (R) to evaluate the prediction effect of heart rate values.

[0177] Table 1 Performance comparison with traditional methods

[0178]

[0179] As shown in Table 1, compared with the traditional method, the heart rate prediction method based on the LA-Res2Net model proposed in the present invention reduces MAE from 15.2BPM to 7.5BPM, reduces RMSE from 19.5BPM to 12.1BPM, and improves R from 0.22 to 0.58. Obviously, since the present invention uses a combination of traditional image processing and deep learning to obtain heart rate values ​​from face videos, the advantages of the two technologies are complementary, and its prediction accuracy of heart rate values ​​is much higher than that of the traditional image processing method alone.

[0180] Table 2 Performance comparison of different deep learning methods

[0181]

[0182] As can be seen from Table 2, the LA-Res2Net model shows excellent prediction results in comparison with various deep learning models. According to the calculation results of MAE and R, the LA-Res2Net model has better detection ability for heart rate values ​​than other deep learning algorithms. Although the detection result of LA-Res2Net in RMSE (12.1BPM) is slightly higher than that of the Swin transformer model (11.6BPM), the results of MAE and R show that the difference between the heart rate predicted by LA-Res2Net and the actual heart rate is smaller, which can well reflect the prediction performance of the model. In summary, the proposed model and method have better detection effect on heart rate values ​​than other deep learning models, and are significantly improved compared with traditional methods.

[0183] Combining the above two embodiments, it can be seen that the present invention has the following technical advances:

[0184] First, compared with the traditional contact heart rate detection method, this non-contact heart rate detection method has great development potential and broad application prospects in the following fields.

[0185] Newborn health detection: Since the skin of newborns is very sensitive and fragile, it is inappropriate to use traditional contact methods to detect their heart rate. The present invention can continuously monitor the heart rate status of newborns in a remote non-contact method. This process is not only safe and reliable, but also has high detection accuracy.

[0186] Heart rate tracking during exercise: During fitness exercises, people mostly use contact devices such as smart watches or bracelets to monitor their heart rate and other indicators to adjust their exercise rhythm, but vigorous exercise with the wrist close to these contact devices for a long time will cause discomfort and pain. The present invention can continuously track the heart rate of users during exercise in a remote non-contact method, avoiding the discomfort caused by wearing a smart bracelet for exercise.

[0187] Second, compared with the existing immature remote heart rate detection methods based on image processing, this method has three major advantages:

[0188] (1) Technological advancement: Traditional image processing algorithms have difficulty processing complex motion artifacts and lighting changes in videos, so the remote photoplethysmography (rPPG) signals obtained from videos are relatively rough and deviate greatly from the real signals. The present invention uses a combination of traditional image processing and deep learning to obtain heart rate values ​​from face videos, so as to achieve complementary advantages of the two technologies, and the heart rate values ​​finally obtained are more accurate.

[0189] (2) Superiority of the neural network model: The CBAM attention mechanism used in the present invention can enable the model to focus on important information related to the current task in both spatial and channel dimensions; compared with the ordinary residual structure, the granularity-level residual structure used in the present invention produces a combination of multi-scale receptive fields in a finer-grained manner, and has a deeper mining capability for feature information; LSTM can mine the temporal variation patterns of relatively long intervals in the feature map.

[0190] (3) Advancedness of the facial region of interest (ROI) extraction method: The present invention uses the heat map method in deep learning to obtain facial feature points, which has fast detection speed and high accuracy. In addition, not only the number of feature points and the position of feature points in the face can be set arbitrarily according to one's own needs, but also they are not affected or limited by the age and skin color of the identified object.

[0191] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. A remote non-contact heart rate detection method, characterized in that: The following steps are involved: S1. Turn on the fill light source and collect the user's video data; S2. locating the ROI region for each frame of the video data; S3. Use Fast-ICA to extract rPPG timing signals based on the ROI area of ​​all frame images; S4. Use GADF to encode the rPPG timing signal into a two-dimensional feature image as a representation of the heart rate signal; S5. Complete the reasoning of the heart rate value through the neural network model; In S2, ROI region positioning is performed on each frame image in the video data, including: The facial feature key point recognition algorithm based on deep learning and heat map is used to detect and obtain facial key points as the ROI area. The method includes: S21. Annotate the feature points of the face in the image according to the custom facial key point area, and obtain the corresponding (X, Y) feature point coordinates; S22. The corresponding feature point coordinates are converted into a heat map using Gaussian filtering, wherein the width W and height H of the heat map are consistent with the original image, and the pixel value closer to the key point coordinate is larger, and vice versa; S23. Use the U-Net network model to build a heat map prediction regression model to predict key points of the face; S24. The Adam optimizer and MSE loss function are used to train the heat map prediction regression model. The input of the model is a face image of (H, W, 3), and the output is a heat map of (H, W, K); S25. Using the trained heat map prediction regression model, find the coordinates of the point with the largest pixel value in each single-channel heat map matrix of size (H, W) from the heat map, which are the coordinates of the key points of the face inferred by the model; S26. Construct a ROI region based on the inferred facial key point coordinates.

2. A remote non-contact heart rate detection method according to claim 1, characterized in that: In S3, Fast-ICA is used to extract rPPG timing signals according to the ROI areas of all frame images, including: Using the principle of remote photoplethysmography, rPPG signals expressing the rhythmic changes of blood volume in blood vessels are extracted from three signal channels of the RGB color space of the ROI area of ​​each frame image, and the method includes: S31. Extract the pixel averages of the three signal channels of each time ROI region. For a video segment of T frames, there are three time series signals of length T; S32. Taking the three time series signals as input observation signals, decomposing them into linear combinations of statistically independent non-Gaussian signal sources through linear transformation, and outputting three new time series containing more hidden information; S33. Select the signal with the highest signal-to-noise ratio and the best pulse wave restoration among the three time series containing more hidden information as the rPPG signal.

3. A remote non-contact heart rate detection method according to claim 1, characterized in that: In S4, GADF is used to encode the rPPG time series signal to form a two-dimensional feature image, including: S41. Scale the range of each value in the time series data to [-1,1], the formula is as follows: in, Represents the value of the i-th point of the timing signal after scaling transformation, Represents the value of the i-th point of the original timing signal, Represents the original timing signal; S42. Convert the scaled sequence data to the polar coordinate system, convert each data point of the sequence into the cosine value of the angle, and convert the time step into the radius r, as follows: ; in, Represents the cosine of the angle, represents the time step, Indicates the number of sampling points of the timing signal; S43. Convert the time series data of length n into a Gram matrix of size according to the angle difference between different points. The formula is as follows: ; in, represents the transformed two-dimensional image matrix, Represents the cosine value of the angle corresponding to the nth point.

4. A remote non-contact heart rate detection method according to claim 1, characterized in that: In S5, the heart rate value is inferred by a neural network model, wherein the neural network model is LA-Res2Net, which is trained by a plurality of face video data sets with heart rate value labels; The training phase method of the LA-Res2Net includes: All face video data in the dataset are processed through the data preprocessing module to obtain their corresponding rPPG feature image data; All rPPG feature images and corresponding heart rate HR labels are put into the neural network model LA-Res2Net, and the model is trained using the RMSprop optimizer and mean absolute error loss function.

5. A remote non-contact heart rate detection system, characterized in that: The system comprises: Data acquisition module, data preprocessing module, heart rate inference module and inference result visualization module; The data acquisition module is used to record the user's video data; The data preprocessing module comprises: The ROI region positioning module is used to obtain the ROI region of each frame in the video data; the inference result visualization module is used to realize the visualization of the heart rate value obtained by inference The ROI region of each frame in the video data is obtained, that is, the ROI region is located for each frame image in the video data, and the steps include: The facial feature key point recognition algorithm based on deep learning and heat map is used to detect and obtain facial key points as the ROI area. The method includes: S21. Annotate the feature points of the face in the image according to the custom facial key point area, and obtain the corresponding (X, Y) feature point coordinates; S22. The corresponding feature point coordinates are converted into a heat map using Gaussian filtering, wherein the width W and height H of the heat map are consistent with the original image, and the pixel value closer to the key point coordinate is larger, and vice versa; S23. Use the U-Net network model to build a heat map prediction regression model to predict key points of the face; S24. The Adam optimizer and MSE loss function are used to train the heat map prediction regression model. The input of the model is a face image of (H, W, 3), and the output is a heat map of (H, W, K); S25. Using the trained heat map prediction regression model, find the coordinates of the point with the largest pixel value in each single-channel heat map matrix of size (H, W) from the heat map, which are the coordinates of the key points of the face inferred by the model; S26. constructing a ROI region according to the inferred coordinates of the facial key points; An rPPG timing signal acquisition module, used to extract the rPPG timing signal expressing the rhythmic change of blood volume in the blood vessel from the ROI area in the video data through Fast-ICA; An rPPG characteristic image encoding module, used for converting the rPPG timing signal into a two-dimensional characteristic image; The heart rate inference module is used to infer the heart rate value according to the two-dimensional feature image; The inference result visualization module is used to realize the visualization of the heart rate value obtained by inference.

6. A remote non-contact heart rate detection system according to claim 5, characterized in that: The data acquisition module is composed of a high-definition video recording device, and the data acquisition module also includes a light source module and a bracket module; The light source module includes a plurality of fill light sources, which are used for fill light when the data acquisition module acquires video data; The support module is used to lift and fix the data acquisition module, and the support module is also used to adjust the height, azimuth and pitch angle of the data acquisition module.

7. A remote non-contact heart rate detection system according to claim 5, characterized in that: The heart rate reasoning module is a LA-Res2Net neural network model; The main body of the LA-Res2Net neural network model is the granular residual structure FGA-Block, which includes 1 convolutional layer, 2 pooling layers, 4 FGA-Layer layers, 1 LSTM layer and 1 fully connected layer; Each FGA-Layer is composed of multiple FGA-Blocks in series; The CBAM attention mechanism module is introduced in the FGA-Block.

8. A remote non-contact heart rate detection system according to claim 7, characterized in that: The CBAM attention mechanism module includes a channel attention module and a spatial attention module; In the channel attention module, the feature map of input size H×W×C is processed by maximum pooling and average pooling in the layer dimension to obtain a 1×1×C vector representing global information, and then the vector is sent to the multi-layer perceptron to learn the correlation between different channels. Finally, the outputs of the two are added and sent to the Sigmoid function to obtain a 1×1×C channel weight, which is multiplied with the original feature map of H×W×C in a weighted multiplication manner. The calculation process is as follows: ; in and are the input and output of the channel attention module, respectively. is the channel weight, is the Sigmoid function; In the spatial attention module, the output feature map of the channel attention module is processed by MaxPool and AvgPool in the channel dimension to generate two H×W×1 feature maps representing different information. Then, the two H×W×1 feature maps representing different information are merged into an H×W×2 feature map through Concat operation, and then feature fusion is performed through the convolution layer. Finally, the Sigmoid function is used to obtain a weight map representing the importance of spatial area information, which is multiplied and weighted with the input feature map of the module to achieve the enhancement of the target area. The calculation process is as follows: ; in and are the input and output of the spatial attention module, respectively. is the spatial information weight map, It is a convolution operation with a kernel size of 7×7.

Citation Information

Cited By

  • Non-contact heart rate detection method based on three-color channel signal fusion technology

    CN119770014A

  • A non-contact heart rate detection method based on three-color channel signal fusion technology

    CN119770014B