Adaptive filtering method and system for motion interference in rPPG signals
Through the adaptive filtering method, face recognition and motion suppression technology are used to remove motion interference in the rPPG signal, solving the problem of signal quality degradation in sports scenes, and improving the accuracy and convenience of heart rate detection.
Patent Information
- Application Number
- CN202111555138.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-17
AI Technical Summary
rPPG signals are susceptible to motion interference in sports scenes, resulting in signal quality degradation and affecting the accuracy of heart rate detection.
The adaptive filtering method is used to remove motion interference in the rPPG signal and improve the signal-to-noise ratio through face recognition, chroma processing, detrend processing, band-pass filtering and motion suppression adaptive filters.
It effectively removes motion interference in complex sports scenes, improves the signal-to-noise ratio of rPPG signals, and enhances the accuracy and convenience of heart rate detection.
Smart Images

Figure CN114305370B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of biomedical signal processing, and in particular relates to an adaptive filtering method and system for motion interference in rPPG signals. Background Art
[0002] In the field of contact heart rate detection, the main heart rate detection devices include electrocardiogram detectors, heart rate watches and heart rate chest straps. Electrocardiogram detectors are expensive and inconvenient to use, and are difficult for non-professionals to operate; the heart rate detection method of heart rate watches is photoelectric pulse wave detection, which has the advantage of being easy to use, but the accuracy of heart rate detection is not high; the heart rate detection method of heart rate belts is piezoelectric pulse wave detection, and the measurement results are relatively accurate, but it is very inconvenient to wear and use, and other hardware devices are required to display the detected heart rate.
[0003] Because of the various problems that the contact-based heart rate detection method brings when used, researchers have been inspired to find a heart rate detection method that is more convenient to use, more accurate, and more universal in daily life. It is in this context that the non-contact heart rate detection method came into being.
[0004] In the heart rate signal extraction part, the face area can be captured by the camera to extract the pixel information of the face. The concept of rPPG (Remote photoplethysmography) was first proposed by W. Verkruysse et al. in 2008. The rPPG method realizes contactless monitoring of human heart activity by using a multi-wavelength RGB camera to detect the subtle color changes on the human skin caused by the pulse. In recent years, some core rPPG signal extraction methods have been proposed, which can extract rPPG signals from the pixel information of the face.
[0005] Since the signal extracted by the rPPG signal extraction part usually contains a lot of noise, the rPPG signal needs to be filtered, and the current rPPG signal will be seriously interfered by the motion signal in the motion scene, so it is necessary to optimize the processing method of the rPPG signal to reduce its impact. Summary of the invention
[0006] The object of the present invention is to provide an adaptive filtering method and system for motion interference in rPPG signals.
[0007] The technical solution to achieve the purpose of the present invention is: an adaptive filtering method for motion interference in rPPG signals, comprising:
[0008] Collect face video for face recognition to obtain RGB three-channel skin color signals, and use chroma processing to process the RGB three-channel skin color signals to obtain a single-channel rPPG signal;
[0009] Detrending the rPPG signal to remove the trend component in the signal caused by environmental changes and changes in the physical state of the subject;
[0010] Use bandpass filtering to remove signal components other than those with frequencies between 0.7 Hz and 4 Hz.
[0011] The corresponding motion signal is obtained by extracting the displacement of facial feature points in continuous video frames;
[0012] The motion suppression adaptive filter is used to remove the interference caused by severe movement in the rPPG signal according to the motion signal of the subject.
[0013] An adaptive filtering system for motion interference in rPPG signals, comprising:
[0014] Face detection module: Use the face detection model to identify the face part in the video frame, take the triangle area under the eyes as the ROI, and average the pixel values of the region of interest to obtain the skin color signal;
[0015] rPPG signal extraction module: uses chromaticity processing to process the RGB three-channel skin color signal to obtain a single-channel rPPG signal;
[0016] rPPG signal preprocessing module: detrending the uniformly sampled rPPG signal and filtering it with a bandpass filter;
[0017] rPPG signal adaptive filtering module: using motion suppression adaptive filter to remove the interference caused by motion in the rPPG signal according to the motion signal of the object under test.
[0018] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the above-mentioned adaptive filtering method for motion interference in rPPG signals is implemented.
[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned adaptive filtering method for motion interference in rPPG signals.
[0020] Compared with the existing algorithms, the present invention has the following advantages:
[0021] (1) When the subject is in a relatively complex motion scene, the present invention can remove the influence of the subject's motion in the rPPG signal, which is beneficial to the subsequent heart rate detection work;
[0022] (2) Taking into full consideration the changes in the color of the ambient light source and the rotation of the head, rPPG signal preprocessing can be provided for more complex heart rate detection scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a flow chart of the adaptive filtering method for motion interference in rPPG signals proposed by the present invention.
[0024] Figure 2 Select a schematic for the ROI.
[0025] Figure 3 It is the spectrum diagram of rPPG signal.
[0026] Figure 4 It is the spectrum diagram of motion signal.
[0027] Figure 5 This is the spectrum diagram of the rPPG frequency domain signal after being processed by the adaptive filter. DETAILED DESCRIPTION
[0028] Aiming at extracting rPPG signals from video frames, the present invention proposes an effective rPPG signal processing algorithm and system, which mainly includes face recognition, rPPG signal extraction, rPPG signal preprocessing and rPPG signal adaptive filtering processing. This method can effectively improve the signal-to-noise ratio of rPPG signals in intense motion scenes.
[0029] Combination Figure 1 , the adaptive filtering method for motion interference in rPPG signals, the specific steps are as follows:
[0030] Step 1: Use a camera to take a video of the face of the subject, and use a face recognition algorithm to perform face recognition on the video frame. Take the average pixel value of the recognized face to obtain the average skin color signal of each of the three RGB channels.
[0031] Step 1.1 uses a camera to capture a video of the face of the subject, and uses a face recognition algorithm to perform face recognition on the video frame.
[0032] Step 1.2: Select the triangle area under the eyes as the ROI for the face area identified by the face recognition model and spatially average the pixels in the ROI area to obtain the average skin color signal of each of the three RGB channels.
[0033] The video is from a normal consumer camera, including but not limited to a webcam, a mobile phone camera, a near-infrared camera, etc. The ROI area is as follows: Figure 2 shown.
[0034] Step 2: Perform chromaticity processing on the RGB three-channel skin color signal to obtain a single-channel rPPG signal containing a pulse wave; perform signal preprocessing on the extracted rPPG signal, including signal detrending and bandpass filtering.
[0035] Step 2.1 Define two signals X in color space f , Y f for:
[0036]
[0037] Among them, P is the projection matrix of the chromaticity processing algorithm in the color space, C S (t) is the three-channel skin color signal, R S , G S , B S They are color signals of three channels: R, G, and B.
[0038] Step 2.2 defines the rPPG signal S as:
[0039]
[0040] Among them, α is the signal amplitude adjustment coefficient, and σ(.) is the standard deviation of the corresponding signal.
[0041] Step 2.3: Detrend the uniformly sampled rPPG signal, and then use a Butterworth filter to bandpass filter to remove signal components other than those with frequencies between 0.7 Hz and 4 Hz.
[0042] Step 3, by extracting the displacement of facial feature points in continuous video frames, the corresponding motion signal is obtained; the displacement signal is calculated using the displacement of the same facial feature point in the previous and next frames, and the first-order difference of the displacement signal is calculated to obtain the motion signal, as follows:
[0043] The displacement signal S(n) is defined as follows:
[0044]
[0045] Among them, Smax is the maximum value in the displacement signal, which can be used to normalize the signal S(n). x(n) is the absolute value of the displacement of the facial feature point in the x direction, and y(n) is the absolute value of the displacement of the facial feature point in the y direction.
[0046] The motion signal dS(n) is defined as the first-order difference of the displacement signal S(n):
[0047] dS(n)=S(n)-S(n-1)
[0048] S(n) is the displacement signal of the current frame, and S(n-1) is the displacement signal of the previous frame.
[0049] Step 4: Use a motion-suppressed adaptive filter to remove interference in the rPPG signal caused by the motion of the object under test. In the motion-suppressed adaptive filter, the motion signal of the object under test is used to remove the noise component in the rPPG signal caused by the motion, as follows:
[0050] The filter input signals are rPPG signal U(n) and motion signal dS(n).
[0051] The output signal y(n) after filter processing is defined as follows:
[0052] y(n)=W(n)U(n)
[0053] Where U(n) is the input rPPG signal and W(n) is the filter coefficient.
[0054] The error signal e(n) between the motion signal and the filter output signal is defined as follows:
[0055] e(n)=dS(n)-y(n)
[0056] Among them, dS(n) is the input motion signal, and y(n) is the output signal after filter processing.
[0057] The error signal e(n) can be used to update the adaptive filter coefficients. The filter coefficient update formula is defined as follows:
[0058]
[0059] Among them, mu is the filter parameter adjustment coefficient; the filtering effect can be continuously improved by continuously updating the filter coefficient.
[0060] The error signal e(n) processed by the motion-suppressed adaptive filter is the rPPG signal without motion interference.
[0061] When the subject is in intense motion, the spectrum of the motion signal, the spectrum of the original rPPG signal, and the spectrum of the rPPG signal filtered by the adaptive filter are compared. Figure 3 to Figure 5 As shown in the three spectrum diagrams, it can be seen that after being processed by the adaptive filter, the interference caused by the motion signal in the rPPG signal processed by the adaptive filter is indeed filtered out to a certain extent.
[0062] The present invention also provides a motion-suppressed rPPG signal processing system, comprising:
[0063] Face detection module: Use the face detection model to identify the face part in the video frame, take the triangle area under the eyes as the ROI, and average the pixel values of the region of interest to obtain the skin color signal;
[0064] rPPG signal extraction module: Use chromaticity processing to process the RGB three-channel skin color signal to obtain a single-channel rPPG signal
[0065] rPPG signal preprocessing module: detrending the uniformly sampled rPPG signal and filtering it with a bandpass filter;
[0066] rPPG signal adaptive filtering module: using motion suppression adaptive filter to remove the interference caused by motion in the rPPG signal according to the motion signal of the object under test.
[0067] The specific implementation method of each of the above modules is the same as the aforementioned filtering method and will not be repeated here.
[0068] Through the adaptive filtering method mentioned in the present invention, the rPPG signal generated by the object under test in a moving state can be adaptively filtered to filter out the interference signal generated by the movement.
[0069] The above is only a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. An adaptive filtering method for motion interference in rPPG signals, characterized in that: include: Collecting face video for face recognition to obtain RGB three-channel skin color signals, and using chroma processing to process the RGB three-channel skin color signals to obtain a single-channel rPPG signal; the collecting face video for face recognition to obtain RGB three-channel skin color signals is specifically as follows: using a camera to take a video of the face of the subject, and using a face recognition algorithm to perform face recognition on the video frame; selecting the triangle area under the eyes as the ROI for the face area recognized by the face recognition model and spatially averaging the pixels in the ROI area to obtain the average skin color signals of the three RGB channels; The extracted rPPG signals were preprocessed, including signal detrending and bandpass filtering; Define two signals X in color space f , Y f for: Among them, P is the projection matrix of the chromaticity processing algorithm in the color space, C S (t) is the three-channel skin color signal, R S , G S , B S They are color signals of three channels: R, G, and B; The rPPG signal S is defined as: Among them, α is the signal amplitude adjustment coefficient, σ(.) is the standard deviation of the corresponding signal; The uniformly sampled rPPG signal was detrended, and then the signal components other than the signal frequency of 0.7 Hz-4 Hz were removed by band-pass filtering using a Butterworth filter; Detrending the rPPG signal to remove the trend component in the signal caused by environmental changes and changes in the physical state of the subject; Use bandpass filtering to remove signal components other than those with frequencies between 0.7 Hz and 4 Hz. The corresponding motion signal is obtained by extracting the displacement of facial feature points in continuous video frames; the displacement signal is calculated using the displacement of the same facial feature point in the previous and next frames, and the motion signal is obtained by calculating the first-order difference of the displacement signal, as follows: The displacement signal S(n) is defined as follows: Among them, Smax is the maximum value in the displacement signal, which can be used to normalize the signal S(n) to the maximum value, x(n) is the absolute value of the displacement of the facial feature point in the x direction, and y(n) is the absolute value of the displacement of the facial feature point in the y direction; The motion signal dS(n) is defined as the first-order difference of the displacement signal S(n): dS(n)=S(n)-S(n-1) S(n) is the displacement signal of the current frame, and S(n-1) is the displacement signal of the previous frame; The motion suppression adaptive filter is used to remove the interference caused by intense motion in the rPPG signal according to the motion signal of the object being measured, as follows: The filter input signals are rPPG signal U(n) and motion signal dS(n); The output signal y(n) after filter processing is defined as follows: y(n)=W(n)U(n) Where U(n) is the input rPPG signal and W(n) is the filter coefficient; The error signal e(n) between the motion signal and the filter output signal is defined as follows: e(n)=dS(n)-y(n) Among them, dS(n) is the input motion signal, and y(n) is the output signal after filter processing; The error signal e(n) is used to update the adaptive filter coefficients. The filter coefficient update formula is defined as follows: Among them, mu is the filter parameter adjustment coefficient; The error signal e(n) processed by the motion-suppressed adaptive filter is the rPPG signal without motion interference.
2. An adaptive filtering system for motion interference in rPPG signals, characterized in that: For implementing the method of claim 1, the adaptive filtering system comprises: Face detection module: Use the face detection model to identify the face part in the video frame, take the triangle area under the eyes as the ROI, and average the pixel values of the region of interest to obtain the skin color signal; rPPG signal extraction module: uses chromaticity processing to process the RGB three-channel skin color signal to obtain a single-channel rPPG signal; rPPG signal preprocessing module: detrending the uniformly sampled rPPG signal and filtering it with a bandpass filter; rPPG signal adaptive filtering module: using motion suppression adaptive filter to remove the interference caused by motion in the rPPG signal according to the motion signal of the object under test.
3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the adaptive filtering method for motion interference in the rPPG signal as claimed in claim 1 is implemented.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the adaptive filtering method for motion interference in rPPG signals as claimed in claim 1 is implemented.
Citation Information
Patent Citations
Method for reducing motion noise by photoplethysmographic imaging
CN109512418A
RPPG signal preprocessing method and system for video heart rate detection
CN113243900A
