[go: up one dir, main page]

CN113657345A - A non-contact heart rate variability feature extraction method based on real application scenarios - Google Patents

A non-contact heart rate variability feature extraction method based on real application scenarios Download PDF

Info

Publication number
CN113657345A
CN113657345A CN202111011120.8A CN202111011120A CN113657345A CN 113657345 A CN113657345 A CN 113657345A CN 202111011120 A CN202111011120 A CN 202111011120A CN 113657345 A CN113657345 A CN 113657345A
Authority
CN
China
Prior art keywords
face
heart rate
feature extraction
image
peak point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111011120.8A
Other languages
Chinese (zh)
Other versions
CN113657345B (en
Inventor
戴敏
王存栋
许阔达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN202111011120.8A priority Critical patent/CN113657345B/en
Publication of CN113657345A publication Critical patent/CN113657345A/en
Application granted granted Critical
Publication of CN113657345B publication Critical patent/CN113657345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • G06F2218/10Feature extraction by analysing the shape of a waveform, e.g. extracting parameters relating to peaks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/02Preprocessing
    • G06F2218/04Denoising

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

本发明公开了一种基于现实应用场景下的非接触式心率变异性特征提取方法,包含以下步骤:1)采集包含人脸的图像;2)使用人脸检测与跟踪相结合策略,获取图像面部区域;3)欧拉放大增强肤色变化;4)色彩空间转换与通道分离;5)自适应阈值皮肤检测;6)源信号提取;7)EEMD去噪;8)五点滑动平滑滤波;9)峰值点检测与异常峰值点修正;10)RR间期计算与时域、频域、非线性HRV特征提取。本发明在特征提取方法中融入提高特征提取速度的策略,以及克服晃动、光照影响,提高特征提取准确性的策略,能做到在现实应用环境下,以非接触方式快速提取HRV特征,并保证与接触式提取结果具有一致性。

Figure 202111011120

The invention discloses a non-contact heart rate variability feature extraction method based on a real application scenario, comprising the following steps: 1) collecting an image containing a human face; 2) using a combination strategy of face detection and tracking to obtain an image face 3) Euler amplification to enhance skin color change; 4) Color space conversion and channel separation; 5) Adaptive threshold skin detection; 6) Source signal extraction; 7) EEMD denoising; 8) Five-point sliding smoothing filtering; 9) Peak point detection and abnormal peak point correction; 10) RR interval calculation and time domain, frequency domain, nonlinear HRV feature extraction. The invention integrates the strategy of improving the speed of feature extraction into the feature extraction method, and the strategy of overcoming the influence of shaking and illumination, and improving the accuracy of feature extraction, so that the HRV feature can be quickly extracted in a non-contact manner in a real application environment, and the guarantee Consistent with contact extraction results.

Figure 202111011120

Description

Non-contact heart rate variability feature extraction method based on reality application scene
Technical Field
The invention relates to the technical field of computer vision and signal processing, in particular to a non-contact heart rate variability feature extraction method.
Background
Heart Rate Variability (HRV) is an important indicator for evaluating autonomic nerve activity and intrinsic dynamic mechanisms of the heart. The phenomenon of heart rate variability arises from the modulation of heart rate by the autonomic nervous system, and the interaction between the sympathetic and parasympathetic nervous systems causes a periodic variation in heart rate. Heart rate variability is widely used in research of heart diseases, mental diseases, emotion recognition and the like.
The heart rate variability features are mainly extracted by electrocardiosignals acquired by a contact method. Under the real application scene, the use of contact mode to obtain heart rate variability characteristics needs the testee initiative cooperation, wears relevant collection equipment, and this brings a lot of inconveniences for the real application. Especially, when the heart rate variability features are used for emotion recognition and the heart rate variability features are collected in a contact mode, the extracted heart rate variability features of the testee can be influenced due to the influence of human contact factors in the collection process.
The non-contact heart rate detection mode mainly comprises a laser Doppler technology, a microwave or millimeter wave Doppler radar, a thermal imaging technology and the like. However, the above-mentioned techniques generally have high cost of equipment, and the long-term use of the equipment has an influence on human body, so that the equipment is not suitable for wide application in practical application. In recent years, imaging photoplethysmography (IPPG) based on the development of photoplethysmography (PPG) has enabled more accurate acquisition of human heart rate information, which also makes it possible to perform contactless heart rate variability measurements by this principle.
The general flow of extracting heart rate variability features through IPPG is that firstly, a camera is used for collecting a video containing a human face, the human face region is defined through human face detection on the video, then a specific region is selected from the human face region to be used as an ROI region, channel separation is carried out on the region through a color space, the pixel mean value of a single channel or multiple channels of each frame is calculated, and a signal processing method is applied according to the difference between the pixel mean values to obtain a heart rate value. However, in a real application scene, the problem of extracting the HRV features by directly applying the above process is that the extraction speed is slow because the face detection needs to be performed frame by frame, and the requirement of practical application cannot be met. In addition, in a real application scene, the accuracy of extracting the heart rate variability features is also affected by environmental factors such as shaking of a tested person, different illumination conditions and the like, and the problem cannot be well solved by the extraction process.
Disclosure of Invention
In order to solve the problems, the invention provides a non-contact heart rate variability feature extraction method based on a real application scene based on an IPPG principle, an image processing technology, a signal processing technology and a feature extraction technology which are integrated based on the IPPG principle, and the extracted features are consistent with contact extraction results.
The invention provides a non-contact heart rate variability feature extraction method, which provides a solution strategy for acquiring a face region by combining face detection and face tracking in order to improve the extraction speed of heart rate variability features, acquires a face position through the face detection and then tracks the face position, relocates the face position through the face detection according to a fixed time interval in the tracking process to prevent tracking offset, and continuously corrects the face offset generated by shaking to prevent incomplete extraction of the face region, thereby ensuring that the accuracy of acquiring the face region is not influenced while the speed is improved. In addition, the invention also realizes simultaneous processing of images acquired from the camera and image processing in two threads by means of a shared queue, thereby better improving the extraction speed.
In order to reduce the influence of different illumination conditions on the extraction result, the invention provides a solution strategy combining channel separation, self-adaptive skin detection and EEMD filtering. Firstly, converting a face area image into an LUV color space, separating an L channel reflecting brightness change, obtaining a U channel image reflecting chromaticity change, converting the face area image into a YCrCb color space, carrying out skin detection according to a luminance component Y under different illumination conditions and a Cb component self-adaptive determination threshold value to obtain a skin part of the face area image, calculating a skin detection result and the U channel image to obtain an original heart rate signal, preliminarily reducing the influence of illumination intensity change, and reducing the noise of the original heart rate signal by applying an EEMD method to further reduce the influence of illumination change.
In order to reduce the influence of the shaking of the testee on the extraction result, the invention provides a peak point extraction strategy capable of correcting the peak point influenced by the shaking. Firstly, calculating signal peak points, then judging whether each extracted peak point is influenced by shaking to generate extraction abnormity or not through whether the slope between adjacent peak points of the signals and the distance between the peak points are in a threshold range, and averaging and correcting the abnormal peak points of the peak points with the extraction abnormity through the positions of all normal peak points before the current abnormal peak point, thereby obtaining relatively accurate signal peak points and further reducing the influence of shaking on feature extraction.
In order to achieve the above purpose, the acquisition process provided by the invention is as follows:
step one, collecting an image containing a human face:
the tested person faces the camera and collects face images according to the fixed frame rate of the camera, namely 30FPS, and the tested person can extract relatively accurate heart rate variability features only by continuously collecting the face images for at least 30 seconds.
The storage of the acquired image including the human face needs to be performed in one sub-thread, that is, the acquisition of the image and the processing of reading the image in the program should be performed simultaneously in two threads, and the two threads share one image queue.
Step two, acquiring a face region of the image:
the face area is extracted in a mode of combining face detection by using a libfacedetection open source face detection library and face tracking by using a KLT (Kandade-Lucas-Tomasi) tracking method, the face position is acquired by face detection and then tracked, and meanwhile, the face position is positioned by reusing the face detection at a fixed time interval of 10s in the tracking process and then tracking is continued.
In the face tracking process, a minimum external rectangle is determined through four vertexes where a face area is determined after face tracking, the face affected by shaking is corrected through the central point and the deflection angle of the rectangle, and the face area is prevented from being extracted incompletely.
Step three, Euler amplification:
and the Euler amplification method is used for enhancing the skin color change of the face region and enhancing the information of the part related to the physiological signal in the face image.
Step four, channel separation:
and C, converting the face image obtained in the third step after Euler amplification from an RGB color space to an LUV color space, so as to separate an L channel reflecting brightness change, and extracting an original heart rate signal by using a U channel reflecting chromaticity change.
Step five, self-adaptive threshold skin detection:
and (3) providing a self-adaptive threshold value for skin detection, determining the threshold value in a self-adaptive manner according to the luminance component Y and the Cb component under different illumination conditions, setting the skin pixel in a range meeting the threshold value as a skin pixel, setting the pixel point of the skin pixel to be 255 white, and setting the rest of the skin pixel to be 0 black. And (4) carrying out AND operation on the skin detection image and the U channel, thereby removing the non-skin area and obtaining the U channel face image with the non-skin area removed.
Step six, source signal extraction:
in the process of extracting the HRV characteristics in one round, calculating the pixel mean value of the U-channel face image with the non-skin area removed in the fifth step to obtain a series of pixel mean value points, and then carrying out standardized calculation on the series of pixel points to form the original heart rate signal.
Seventhly, EEMD denoising:
noise reduction of the original heart rate signal using the eemd (ensemble Empirical Mode composition) method further reduces the effects of different lighting conditions.
Step eight, five-point sliding:
method for removing high-frequency noise still contained in signal by applying five-point sliding smoothing filtering method
Step nine, peak point extraction and correction:
and calculating a signal peak point, and finding out the peak point influenced by the shaking and correcting the peak point by setting the distance between the two peak points and the threshold range of the slope, thereby obtaining the relatively accurate signal peak point.
Step ten, HRV feature extraction:
and (4) calculating RR interval and R point time by using the corrected peak point obtained in the step nine so as to extract HRV characteristics, and extracting 27 HRV characteristics including time domain characteristics, frequency domain characteristics and nonlinear characteristics.
Wherein the time domain features include: max, min, mean, SDNN, RMSSD, hr-mean, hr-sd, NN40, pNN40, or HRVti;
the frequency domain features are obtained by performing spectrum analysis and extraction by using a Lomb-Scargle periodogram, and the frequency domain features comprise: aVLF, aLF, aHF, aTotal, pVLF, pLF, pHF, nLF, nHF, LFHF, peakVLF, peakLF or peakHF;
wherein the non-linear characteristics include: SD1, SD2 or SD1/SD 2.
The invention has the advantages and positive effects that:
the invention provides a non-contact heart rate variability feature extraction method based on a real application scene, and particularly embodies a strategy of improving the non-contact heart rate variability feature extraction speed and a strategy of overcoming different influences of shaking and illumination conditions in the extraction method so as to improve the non-contact heart rate variability feature extraction accuracy. In a real application scene, the real application functions of automatic switching, automatic detection, automatic calculation of HRV characteristics and the like of a tester can be realized on the basis of the method, and the method has very strong real application significance.
Drawings
FIG. 1 is a flow chart of the technical solution of the present invention.
Fig. 2 is a flow chart of a strategy for increasing the feature extraction speed by combining face detection and face tracking to obtain a face region.
FIG. 3 is a flow chart of a strategy for mitigating different effects of lighting conditions in combination with channel separation, adaptive skin detection, and EEMD filtering.
FIG. 4 is a flowchart of a peak extraction strategy for correcting peaks affected by shaking.
Fig. 5 is a face correction rotational coordinate system.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The invention provides a non-contact heart rate variability feature extraction method based on a real application scene, which can be used for quickly and accurately extracting heart rate variability features in the real application scene, can be used for emotion recognition to reflect the psychological pressure level of a tested person, and can be applied to the real scenes of assisting customs workers in screening suspicious customs clearance personnel and the like.
Referring to fig. 2, the present invention provides a strategy for increasing the feature extraction speed by combining face detection and face tracking to obtain a face region. The method comprises the steps of acquiring a face position through face detection, tracking the face position, repositioning the face position according to fixed time intervals in the tracking process to prevent tracking offset, and continuously correcting the face offset generated by shaking to prevent incomplete extraction of a face region, so that the speed is improved while the accuracy of the acquisition of the face region is not influenced.
Referring to fig. 3, the proposed strategy for mitigating the impact of different illumination conditions in combination with channel separation, adaptive skin detection, EEMD filtering. Firstly, converting a face area image into an LUV color space, separating an L channel reflecting brightness change, obtaining a U channel image reflecting chromaticity change, converting the face area image into a YCrCb color space, carrying out skin detection according to a brightness component Y under different illumination conditions and a Cb component self-adaptive determination threshold value to obtain a skin part of the face area image, obtaining an original heart rate signal by operating a skin detection result and the U channel image, preliminarily reducing different influences of illumination conditions, and reducing noise of a source signal by applying an EEMD method to further reduce different influences of the illumination conditions.
Referring to fig. 4, the present invention provides a peak point extraction strategy that can correct the peak points affected by shaking. Firstly, calculating signal peak points, then judging whether each extracted peak point is influenced by shaking to generate extraction abnormity or not through whether the slope between adjacent peak points of the signals and the distance between the peak points are in a threshold range, and averaging and correcting the abnormal peak points of the peak points with the extraction abnormity through the positions of all normal peak points before the current abnormal peak point, thereby obtaining relatively accurate signal peak points and further reducing the influence of shaking on feature extraction.
Referring to fig. 1, the non-contact heart rate variability feature extraction method based on the reality application scenario, which is provided by the invention in combination with the above strategy, mainly includes 4 major parts: the data acquisition part, the image processing part, the signal processing part and the HRV feature extraction part can be subdivided into 10 steps: the method comprises the steps of collecting an image containing a human face, obtaining an image face area, Euler amplifying, channel separating, self-adaptive threshold skin detecting, source signal extracting, EEMD denoising, five-point sliding, peak point extracting and correcting and HRV feature extracting.
The method comprises the following specific steps:
step one, collecting an image containing a human face:
the tested person faces to the camera and collects the face image according to the fixed frame rate of the camera, and the frame rate of the common USB camera on the market is mostly 30FPS, so the invention assumes that the face image is collected according to 30 FPS. The tested person can continuously acquire face images for at least 30s to extract relatively accurate heart rate variability characteristics.
Because the invention is based on a real application scene, it is not satisfactory to record the human face video as a general flow and then extract the heart rate variability features from the human face video. Therefore, when the method is applied, three threads are required to be simultaneously carried out, one thread is responsible for collecting the face image, one thread is responsible for processing the face image, and the other thread is responsible for signal processing and feature extraction.
Since the threads are used for processing, one thread collects the face images and the other thread processes the face images, a shared space is needed to ensure that the threads store the collected face images into the shared space in sequence, and the other thread reads the face images from the shared space in sequence for processing.
Step two, acquiring a face region of the image:
the extraction speed of the traditional non-contact heart rate variability feature extraction process is relatively slow. The traditional non-contact feature extraction can perform face detection once for each frame of image, and although the method can stably extract a face region, the speed is slow and the efficiency is low. The face region extraction is crucial in the overall process of HRV feature extraction, the face region extraction is used for processing images, compared with pure numerical calculation such as signal processing and emotion classification, the face region extraction takes most of time consumed by program operation, and therefore the whole operation speed of the system can be greatly improved in the optimization stage.
From the problem, the face region is extracted by combining the face detection by using the libfacedetection open source face detection library and the face tracking by using the KLT (Kandade-Lucas-Tomasi) tracking method, the extraction method is high in speed, the face region is stably extracted, other function realization is not influenced (for example, key functions such as automatic switching of a detected person and the like need to be considered under a real application scene), the face detection can be regarded as a face tracking providing tracking template in the extraction method, and in order to prevent the tracking position from deviating relative to the face position, the face detection is carried out again according to a fixed time interval in the tracking process to reposition the face position so as to carry out the face tracking.
In an actual application scene, a shaking condition needs to be considered, and the face region is incompletely extracted in the shaking condition by using the mode of face detection and face tracking, so that the face correction is needed. Although the method can effectively correct the position of the face, the correction speed is slow, and if the method is placed in a non-contact heart rate variability feature extraction flow, the extraction speed is severely slowed. Therefore, the invention determines a minimum external rectangle through four vertexes where the determined face area is located after face tracking, and performs correction through the central point and the deflection angle of the rectangle. Referring to fig. 5, the deflection angle of the rectangle is determined by a coordinate system, and when the rectangle is shifted to the right, the deflection angle is referenced to 0 degrees on the positive x-axis half in the first quadrant of the coordinate system. When the rectangle is shifted to the left, the angle is determined by the second quadrant, with the shift angle referenced to 0 degrees on the positive y-axis. The rotation angle is determined to be clockwise rotation by the current degree when the angle is between 0 and 45 degrees, and is determined to be counterclockwise rotation by subtracting the degree from 90 when the angle is between 45 and 90 degrees. Through the center point of the rectangle and the deflection angle of the rectangle, an affine transformation matrix is constructed, affine transformation is carried out on the whole image according to the affine transformation matrix, the image is intercepted again according to the center point of the rectangle and the length and the width of the rectangle, and the corrected face can be obtained.
Step three, Euler amplification:
the invention uses Euler amplification method to enhance the skin color change of human face region, and enhances the information of the part related to physiological signal in human face image.
The number of spatial decomposition layers in the Euler amplification method is 6, the frequency band of time domain filtering is 1-2Hz, and the image amplification factor is 200.
Step four, channel separation:
in order to reduce the influence of different illumination conditions on HRV feature extraction, the Euler amplified face image obtained in the step three is converted from an RGB color space to an LUV color space, so that an L channel reflecting brightness change is separated, and an original heart rate signal is extracted by using a U channel reflecting chromaticity change.
Step five, self-adaptive threshold skin detection:
because the face region image obtained through face detection and face tracking still has face parts of non-skin regions, and the face parts can influence the accuracy of HRV feature extraction, the non-skin regions of the face need to be screened out, and because the illumination conditions are different in a practical application scene, the skin detection effect of a single threshold value is poor. And (4) carrying out AND operation on the skin detection image and the U channel, thereby removing the non-skin area and obtaining the U channel face image with the non-skin area removed.
The dynamic configuration rule is defined in the YcrCb color space as follows:
Figure BDA0003238514260000101
Figure BDA0003238514260000102
θ3=6;θ4=-8
if(Y≤128)θ1=6;θ2=12;
Figure BDA0003238514260000103
Figure BDA0003238514260000104
a pixel is a skin pixel if its Cr value satisfies the following condition
cr≥-2(cb+24);cr≥-(cb+17);
cr≥-4(cb+32);cr≥2.5(cb1);
cr≥θ3;cr≥0.5(θ4-cb);
Figure BDA0003238514260000105
Where Y is a luminance component, Cb is a blue chrominance component, Cr is a red chrominance component, and θ 1 to θ 4 are intermediate variables.
Step six, source signal extraction:
in the invention, for one round of HRV feature extraction process, the average value of pixels of the U-channel face image with the non-skin area removed is calculated through the fifth step to obtain a series of average value points of the pixels, and then the series of pixel points are subjected to standardization processing to form the original heart rate signal.
Seventhly, EEMD denoising:
in a practical application scene, different illumination conditions have great influence on HRV feature extraction, and experimental results show that the lower the illumination, the larger the extracted HRV feature error. In order to reduce errors caused by different illumination conditions to HRV extraction, the invention adopts an EEMD (ensemble Empirical Mode composition) method to perform noise reduction treatment. The method comprises the steps of obtaining IMF components with different resolutions under each scale in a self-adaptive mode by applying an EEMD method, calculating instantaneous frequency through Hilbert transformation, distinguishing IMF components with noise dominance and IMF components with signal dominance according to the instantaneous frequency, abandoning the IMF components with noise dominance, and reserving the IMF components with signal dominance to reconstruct signals, so that the influence on HRV feature extraction under different illumination conditions is relieved.
Step eight, five-point sliding:
the five-point moving average filtering belongs to low-pass filtering, and can effectively remove high-frequency noise still contained in the signal. And applying five-point moving average filtering to further filter the signal after EEMD filtering in the step seven so as to make the signal smoother.
The formula for calculating the ith new data by five-point moving average is as follows:
Figure BDA0003238514260000111
Figure BDA0003238514260000112
where N is the signal length, f (j) is the signal value within the five-point sliding window, and y (i) is the new signal value determined by the five-point sliding average.
Step nine, peak point extraction and correction:
when the head of a testee shakes, the heart rate variability curve shakes, so that the extraction of the peak point of the heart rate variability curve is inaccurate. The invention provides a strategy for extracting peak points capable of correcting the peak points affected by the shaking, firstly, the signal peak points are calculated for the smooth signals obtained after the step eight, then whether the extraction of the peak points is affected by the shaking and abnormal extraction occurs is judged according to whether the slope between adjacent peak points and the distance between the peak points are in the threshold range, the abnormal peak points are corrected by averaging the positions of all normal peak points before the current abnormal peak point, and all abnormal peak points are corrected, so that the relatively accurate signal peak points are obtained.
The formula for judging whether the slope between adjacent peak points is in the threshold range in the invention is as follows:
Figure BDA0003238514260000121
wherein h isiDenotes the height of the ith (i-1, 2, …, n) peak, tiThe time corresponding to the ith (i is 1,2, …, n) peak point is shown, and if the formula is not satisfied, the ith peak point is represented as an abnormal peak point.
The formula for determining whether the distance between adjacent peak points is within the threshold range in the present invention is as follows:
60/(HR-14)≤ti-ti-1<60/(HR+14),(i=2,3,…,n)
wherein, tiAnd (3) representing the time corresponding to the ith (i-1, 2, …, n) peak point, wherein HR represents the heart rate mean value, and if the formula is not satisfied, the ith peak point is represented as an abnormal peak point, wherein the calculation formula of the average heart rate HR is as follows:
Figure BDA0003238514260000122
wherein, tallRepresents the total duration of the detection, and count represents the total number of peak points in the detection.
The calculation formula for correcting the detected abnormal peak point is as follows:
tF_new=tF-1+[(tF-1-tF-2)+…+(t2-t1)]/(F-2)
wherein, tF_newTo correct the result, (t)F-1,…,t1) The abnormal peak point is a normal peak point or a corrected peak point before the abnormal peak point to be corrected.
Step ten, HRV feature extraction:
and (4) calculating RR interval and R point time by using the corrected peak point obtained in the step nine so as to extract HRV characteristics, and extracting 27 HRV characteristics including time domain characteristics, frequency domain characteristics and nonlinear characteristics.
Wherein the time domain features include: max, min, mean, SDNN, RMSSD, hr-mean, hr-sd, NN40, pNN40, or HRVti;
the frequency domain features are obtained by performing spectrum analysis and extraction by using a Lomb-Scargle periodogram, and the frequency domain features comprise: aVLF, aLF, aHF, aTotal, pVLF, pLF, pHF, nLF, nHF, LFHF, peakVLF, peakLF or peakHF;
wherein the non-linear characteristics include: SD1, SD2 or SD1/SD 2.
The above is a specific embodiment of the present invention.

Claims (10)

1.一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,包括如下步骤:1. a non-contact heart rate variability feature extraction method based on a realistic application scenario, is characterized in that, comprises the steps: 步骤一、采集包含人脸的图像:按照固定帧率通过摄像头采集被测者包含人脸的图像;Step 1. Collect an image containing a human face: collect an image containing a human face of the subject through a camera according to a fixed frame rate; 步骤二、使用人脸检测加人脸跟踪的方式获取图像面部区域;Step 2, using the method of face detection and face tracking to obtain the face area of the image; 步骤三、应用欧拉放大方法进行人脸区域肤色变化增强,增强人脸图像中与生理信号有关部分的信息;Step 3, applying the Euler amplification method to enhance the skin color change of the face region, and enhance the information of the part related to the physiological signal in the face image; 步骤四、将经过欧拉放大后的人脸图像从RGB色彩空间转换到LUV色彩空间,目的是将反映亮度变化的L通道分离出来,使用反映色度变化的U通道来提取原始心率信号;Step 4: Convert the Euler-enlarged face image from the RGB color space to the LUV color space, the purpose is to separate the L channel reflecting the brightness change, and use the U channel reflecting the chromaticity change to extract the original heart rate signal; 步骤五、根据不同光照条件下亮度分量Y结合Cb分量自适应确定阈值进行皮肤检测,得到去除非皮肤区域的U通道图像;Step 5, according to the brightness component Y combined with the Cb component adaptively determine the threshold under different lighting conditions to perform skin detection, and obtain the U channel image with the non-skin area removed; 步骤六、对U通道图像求像素均值并进行标准化得到原始心率信号;Step 6: Calculate the pixel mean value of the U channel image and standardize it to obtain the original heart rate signal; 步骤七、应用EEMD方法对原始心率信号进行降噪;Step 7. Apply the EEMD method to denoise the original heart rate signal; 步骤八、应用五点滑动平滑滤波去除信号中仍然含有的高频噪声;Step 8. Apply the five-point sliding smoothing filter to remove the high-frequency noise still contained in the signal; 步骤九、计算信号峰值点,并通过设置两峰值点的距离和斜率的阈值范围,找出受晃动影响的峰值点并将其修正,从而得到相对准确的信号峰值点;Step 9: Calculate the peak point of the signal, and by setting the threshold range of the distance and slope of the two peak points, find the peak point affected by the shaking and correct it, so as to obtain a relatively accurate peak point of the signal; 步骤十、使用修正后的RR间期和R点时间进行HRV特征提取,提取时域特征、频域特征、非线性特征共27个HRV特征。Step 10. Use the corrected RR interval and R point time to extract HRV features, and extract a total of 27 HRV features including time domain features, frequency domain features, and nonlinear features. 2.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤二中使用人脸检测加人脸跟踪的方式获取图像面部区域具体步骤包括:2. a kind of non-contact heart rate variability feature extraction method based on realistic application scenario as claimed in claim 1, it is characterized in that, in described step 2, use the mode of face detection and face tracking to obtain image face Region-specific steps include: 1)使用libfacedetection开源人脸检测库进行人脸检测与KLT跟踪方法进行人脸跟踪相结合的这种方式提取面部区域;1) Use the libfacedetection open source face detection library for face detection and KLT tracking method for face tracking to extract the face area; 2)人脸检测获取人脸位置然后对该人脸位置进行跟踪;2) face detection obtains the face position and then tracks the face position; 3)在跟踪过程中对受晃动影响的人脸进行校正;3) Correct the face affected by shaking during the tracking process; 4)在跟踪过程中按照10s固定时间间隔重新使用人脸检测定位人脸位置再继续进行跟踪。4) During the tracking process, the face detection is used again to locate the face position according to a fixed time interval of 10s, and then the tracking is continued. 3.如权利要求2所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,对受晃动影响的人脸进行校正的具体步骤包括:3. a kind of non-contact heart rate variability feature extraction method based on a realistic application scenario as claimed in claim 2, is characterized in that, the concrete steps of correcting the human face affected by shaking comprises: 1)通过人脸跟踪后确定的人脸区域所在的四个顶点,确定一个最小的外接矩形,通过这个矩形的中心点和偏转角度来对人脸进行校正;1) Determine a minimum circumscribed rectangle through the four vertices where the face area determined after face tracking is located, and correct the face through the center point and deflection angle of the rectangle; 2)矩形的偏转角度由一个坐标系来确定,当矩形向右偏移时,在坐标系的第一象限,偏转角度以x轴正半轴为0度基准,当矩形向左偏移时,由第二象限来判定角度,偏移角度以y轴正半轴为0度基准;2) The deflection angle of the rectangle is determined by a coordinate system. When the rectangle is shifted to the right, in the first quadrant of the coordinate system, the deflection angle is based on the positive half-axis of the x-axis as 0 degrees. When the rectangle is shifted to the left, The angle is determined by the second quadrant, and the offset angle is based on the positive half-axis of the y-axis as 0 degrees; 3)当矩形偏转角度在0-45度之间用当前度数确定为旋转角度顺时针旋转,当矩形偏转角度在45-90度之间用90减去度数确定为旋转角度逆时针旋转;3) When the deflection angle of the rectangle is between 0-45 degrees, the current degree is used to determine the clockwise rotation of the rotation angle, and when the deflection angle of the rectangle is between 45-90 degrees, the rotation angle is determined as the counterclockwise rotation by 90 minus the degree; 4)通过这个矩形的中心点,和这个矩形的偏转角度,构造仿射变换矩阵,对整张图像按仿射变换矩阵进行仿射变换;4) Construct an affine transformation matrix through the center point of the rectangle and the deflection angle of the rectangle, and perform affine transformation on the entire image according to the affine transformation matrix; 5)按照矩形中心点和矩形长宽重新截取图像,就可以得到校正后的人脸。5) Re-intercept the image according to the center point of the rectangle and the length and width of the rectangle, and then the corrected face can be obtained. 4.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤一和步骤二在实现时包括:4. The non-contact heart rate variability feature extraction method based on a real application scenario according to claim 1, wherein the step 1 and the step 2 include: 采集到的包含人脸的图像的存储需要在一个子线程中进行,也就是说在程序中图像的采集和读取图像进行处理应该是在两个线程中同时进行的,两个线程会共享一个图像队列。The storage of the collected images containing faces needs to be carried out in a sub-thread, that is to say, the collection and reading of images in the program should be carried out in two threads at the same time, and the two threads will share a Image queue. 5.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤三应用欧拉放大方法进行人脸区域肤色变化增强,增强人脸图像中与生理信号有关部分的信息的具体应用参数为:空间分解层数为6层,时域滤波频带为1-2Hz,图像放大倍数为200。5. a kind of non-contact heart rate variability feature extraction method based on a realistic application scenario as claimed in claim 1, is characterized in that, described step 3 applies Euler amplification method to carry out the enhancement of skin color change in the face area, enhancing The specific application parameters of the information related to the physiological signal in the face image are: the number of spatial decomposition layers is 6, the time domain filtering frequency band is 1-2 Hz, and the image magnification is 200. 6.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤五还包括:6. The non-contact heart rate variability feature extraction method based on a real application scenario according to claim 1, wherein the step 5 further comprises: 根据不同光照条件下亮度分量Y结合Cb分量自适应确定阈值,符合阈值范围为皮肤像素,将其像素点设置为255白色,其余设置为0黑色,将皮肤检测图像与U通道做与运算,从而去除非皮肤区域,得到去除非皮肤区域的U通道人脸图像;The threshold value is adaptively determined according to the brightness component Y combined with the Cb component under different lighting conditions. The threshold range is skin pixels, and its pixels are set to 255 white, and the rest are set to 0 black, and the skin detection image is ANDed with the U channel, thus Remove the non-skin area to get the U channel face image with the non-skin area removed; 在YcrCb颜色空间中定义动态配置规则如下:The dynamic configuration rules are defined in the YcrCb color space as follows: if(Y>128)
Figure FDA0003238514250000031
if(Y>128)
Figure FDA0003238514250000031
Figure FDA0003238514250000032
Figure FDA0003238514250000032
θ3=6;θ4=-8;θ 3 =6; θ 4 =-8; if(Y≤128)θ1=6;θ2=12;if(Y≤128)θ 1 =6;θ 2 =12;
Figure FDA0003238514250000033
Figure FDA0003238514250000033
Figure FDA0003238514250000034
Figure FDA0003238514250000034
如果像素的Cr值满足以下条件,则该像素为皮肤像素:A pixel is a skin pixel if its Cr value satisfies the following conditions: cr≥-2(cb+24);cr≥-(cb+17); cr ≥ -2(c b +24); cr ≥ -(c b +17); cr≥-4(cb+32);cr≥2.5(cb1); cr ≥ -4(c b +32); cr ≥ 2.5(c b1 ); cr≥θ3;cr≥0.5(θ4-cb);cr ≥ θ 3 ; cr 0.5(θ 4 -c b );
Figure FDA0003238514250000041
Figure FDA0003238514250000041
其中,Y为亮度分量,Cb为蓝色色度分量,Cr为红色色度分量,θ1~θ4为中间变量。Among them, Y is the luminance component, Cb is the blue chrominance component, Cr is the red chrominance component, and θ1 to θ4 are intermediate variables.
7.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤七应用EEMD方法对原始心率信号进行降噪具体步骤包括:7. a kind of non-contact heart rate variability feature extraction method based on a realistic application scenario as claimed in claim 1, is characterized in that, described step 7 applies EEMD method to carry out noise reduction to original heart rate signal The concrete steps include: 1)通过Hilbert变换计算出瞬时频率;1) Calculate the instantaneous frequency through Hilbert transform; 2)根据瞬时频率分辨出噪声主导的IMF分量和信号主导的IMF分量;2) Distinguish the noise-dominated IMF component and the signal-dominated IMF component according to the instantaneous frequency; 3)将2)得到的噪声主导IMF分量舍弃,重构信号主导的IMF分量。3) The noise-dominated IMF component obtained in 2) is discarded, and the signal-dominated IMF component is reconstructed. 8.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤八还包括:8. The non-contact heart rate variability feature extraction method based on a real application scenario according to claim 1, wherein the step 8 further comprises: 五点滑动平均的计算公式为:The formula for calculating the five-point moving average is:
Figure FDA0003238514250000042
Figure FDA0003238514250000042
其中,N为信号长度,f(j)为五点滑动窗口内的信号值,y(i)为五点滑动平均确定的新信号值。Among them, N is the signal length, f(j) is the signal value in the five-point sliding window, and y(i) is the new signal value determined by the five-point sliding average.
9.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤九还包括:9. The non-contact heart rate variability feature extraction method based on a real application scenario according to claim 1, wherein the step 9 further comprises: 判定相邻峰值点间斜率是否在阈值范围内的公式如下:The formula for determining whether the slope between adjacent peak points is within the threshold range is as follows:
Figure FDA0003238514250000043
Figure FDA0003238514250000043
其中,hi表示第i(i=1,2,…,n)个峰值点的高度,ti表示第i(i=1,2,…,n)个峰值点对应的时间,不满足该公式则代表第i个峰值点为异常峰值点;Among them, hi represents the height of the ith (i=1, 2,...,n) peak point, and t i represents the time corresponding to the ith (i=1, 2,...,n) peak point. The formula represents that the i-th peak point is an abnormal peak point; 判定相邻峰值点间距离是否在阈值范围内的公式如下:The formula for determining whether the distance between adjacent peak points is within the threshold range is as follows: 60/(HR-14)≤ti-ti-1<60/(HR+14),(i=2,3,…,n)60/(HR-14)≤t i -t i-1 <60/(HR+14), (i=2,3,...,n) 其中,ti表示第i(i=1,2,…,n)个峰值点对应的时间,HR表示心率均值,不满足该公式则代表第i个峰值点为异常峰值点,其中平均心率HR的计算公式如下:Among them, t i represents the time corresponding to the i-th peak point (i=1,2,...,n), HR represents the average heart rate, if the formula does not satisfy the i-th peak point is an abnormal peak point, and the average heart rate HR The calculation formula is as follows:
Figure FDA0003238514250000051
Figure FDA0003238514250000051
其中,tall表示检测的总时长,count表示检测中峰值点总数;Among them, t all represents the total duration of the detection, and count represents the total number of peak points in the detection; 对于检测到的异常峰值点,对其进行修正的计算公式如下:For the detected abnormal peak point, the calculation formula to correct it is as follows: tF_new=tF-1+[(tF-1-tF-2)+…+(t2-t1)]/(F-2)t F_new =t F-1 +[(t F-1 -t F-2 )+...+(t 2 -t 1 )]/(F-2) 其中,tF_new为修正后结果,(tF-1,…,t1)为待修正异常峰值点前的正常峰值点或已修正峰值点。Among them, t F_new is the result after correction, (t F-1 ,...,t 1 ) is the normal peak point or the corrected peak point before the abnormal peak point to be corrected.
10.如权利要求1所述的一种基于现实应用场景下的非接触式心率变异性特征提取方法,其特征在于,所述的步骤十还包括:10. The non-contact heart rate variability feature extraction method based on a real application scenario according to claim 1, wherein the step 10 further comprises: 时域特征包括:max、min、mean、median、SDNN、RMSSD、hr-mean、hr-sd、NN40、pNN40或HRVti;Time domain features include: max, min, mean, median, SDNN, RMSSD, hr-mean, hr-sd, NN40, pNN40 or HRVti; 频域特征使用Lomb-Scargle周期图进行频谱分析提取得到,频域特征包括:aVLF、aLF、aHF、aTotal、pVLF、pLF、pHF、nLF、nHF、LFHF、peakVLF、peakLF或peakHF;The frequency domain features are extracted by spectral analysis using the Lomb-Scargle periodogram. The frequency domain features include: aVLF, aLF, aHF, aTotal, pVLF, pLF, pHF, nLF, nHF, LFHF, peakVLF, peakLF or peakHF; 非线性特征包括:SD1、SD2或SD1/SD2。Nonlinear features include: SD1, SD2 or SD1/SD2.
CN202111011120.8A 2021-08-31 2021-08-31 A non-contact heart rate variability feature extraction method based on real application scenarios Active CN113657345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111011120.8A CN113657345B (en) 2021-08-31 2021-08-31 A non-contact heart rate variability feature extraction method based on real application scenarios

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111011120.8A CN113657345B (en) 2021-08-31 2021-08-31 A non-contact heart rate variability feature extraction method based on real application scenarios

Publications (2)

Publication Number Publication Date
CN113657345A true CN113657345A (en) 2021-11-16
CN113657345B CN113657345B (en) 2023-09-15

Family

ID=78493317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111011120.8A Active CN113657345B (en) 2021-08-31 2021-08-31 A non-contact heart rate variability feature extraction method based on real application scenarios

Country Status (1)

Country Link
CN (1) CN113657345B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114403838A (en) * 2022-01-24 2022-04-29 佛山科学技术学院 A portable remote heart rate detection device and method based on Raspberry Pi

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137957A1 (en) * 2006-12-11 2008-06-12 Arcsoft, Inc. Method of automatically detecting and tracking a face by an electronic capturing device
CN102217931A (en) * 2011-06-09 2011-10-19 李红锦 Method and device for acquiring heart rate variation characteristic parameter
CN103824420A (en) * 2013-12-26 2014-05-28 苏州清研微视电子科技有限公司 Fatigue driving identification system based on heart rate variability non-contact measuring
EP2745770A1 (en) * 2012-12-18 2014-06-25 Werner Wittling Method and device for determining the variability of a creature's heart rate
CN104127194A (en) * 2014-07-14 2014-11-05 华南理工大学 Depression evaluating system and method based on heart rate variability analytical method
CN106333658A (en) * 2016-09-12 2017-01-18 吉林大学 Photoelectric volume pulse wave detector and photoelectric volume pulse wave detection method
CN109044322A (en) * 2018-08-29 2018-12-21 北京航空航天大学 A kind of contactless heart rate variability measurement method
CN111429345A (en) * 2020-03-03 2020-07-17 贵阳像树岭科技有限公司 Method for visually calculating heart rate and heart rate variability with ultra-low power consumption
CN111714144A (en) * 2020-07-24 2020-09-29 长春理工大学 Mental stress analysis method based on video non-contact measurement
CN112200099A (en) * 2020-10-14 2021-01-08 浙江大学山东工业技术研究院 A video-based dynamic heart rate detection method
CN112656393A (en) * 2020-12-08 2021-04-16 山东中科先进技术研究院有限公司 Heart rate variability detection method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137957A1 (en) * 2006-12-11 2008-06-12 Arcsoft, Inc. Method of automatically detecting and tracking a face by an electronic capturing device
CN102217931A (en) * 2011-06-09 2011-10-19 李红锦 Method and device for acquiring heart rate variation characteristic parameter
EP2745770A1 (en) * 2012-12-18 2014-06-25 Werner Wittling Method and device for determining the variability of a creature's heart rate
CN103824420A (en) * 2013-12-26 2014-05-28 苏州清研微视电子科技有限公司 Fatigue driving identification system based on heart rate variability non-contact measuring
CN104127194A (en) * 2014-07-14 2014-11-05 华南理工大学 Depression evaluating system and method based on heart rate variability analytical method
CN106333658A (en) * 2016-09-12 2017-01-18 吉林大学 Photoelectric volume pulse wave detector and photoelectric volume pulse wave detection method
CN109044322A (en) * 2018-08-29 2018-12-21 北京航空航天大学 A kind of contactless heart rate variability measurement method
CN111429345A (en) * 2020-03-03 2020-07-17 贵阳像树岭科技有限公司 Method for visually calculating heart rate and heart rate variability with ultra-low power consumption
CN111714144A (en) * 2020-07-24 2020-09-29 长春理工大学 Mental stress analysis method based on video non-contact measurement
CN112200099A (en) * 2020-10-14 2021-01-08 浙江大学山东工业技术研究院 A video-based dynamic heart rate detection method
CN112656393A (en) * 2020-12-08 2021-04-16 山东中科先进技术研究院有限公司 Heart rate variability detection method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田文龙;戴敏;: "非侵入式胎儿心电信号的R波检测方法", 天津理工大学学报, no. 02 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114403838A (en) * 2022-01-24 2022-04-29 佛山科学技术学院 A portable remote heart rate detection device and method based on Raspberry Pi

Also Published As

Publication number Publication date
CN113657345B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
Bobbia et al. Unsupervised skin tissue segmentation for remote photoplethysmography
US11229372B2 (en) Systems and methods for computer monitoring of remote photoplethysmography based on chromaticity in a converted color space
Feng et al. Dynamic ROI based on K-means for remote photoplethysmography
US9082165B2 (en) Inspection of region of interest
US11259710B2 (en) System and method for remote measurements of vital signs
CN111938622B (en) Heart rate detection method, device and system and readable storage medium
CN109820499B (en) High anti-interference heart rate detection method based on video, electronic equipment and storage medium
US11701015B2 (en) Computer-implemented method and system for direct photoplethysmography (PPG) with multiple sensors
US11583198B2 (en) Computer-implemented method and system for contact photoplethysmography (PPG)
Bousefsaf et al. Automatic selection of webcam photoplethysmographic pixels based on lightness criteria
Ernst et al. Optimal color channel combination across skin tones for remote heart rate measurement in camera-based photoplethysmography
DE102016200045A1 (en) Selecting a region of interest to extract physiological parameters from a subject&#39;s video
Wu et al. Motion-robust atrial fibrillation detection based on remote-photoplethysmography
CN110037667A (en) The human body physiological parameter monitoring method based on recognition of face applied to work station
Tabei et al. A novel diversity method for smartphone camera-based heart rhythm signals in the presence of motion and noise artifacts
Bai et al. Real-time robust noncontact heart rate monitoring with a camera
Gupta et al. A motion and illumination resistant non-contact method using undercomplete independent component analysis and Levenberg-Marquardt algorithm
CN113657345A (en) A non-contact heart rate variability feature extraction method based on real application scenarios
He et al. Remote photoplethysmography heart rate variability detection using signal to noise ratio bandpass filtering
Park et al. Direct-global separation for improved imaging photoplethysmography
Panigrahi et al. Contactless HR measurement from facial videos using alternative color spaces with CEEMDAN
Kopeliovich et al. Color signal processing methods for webcam-based heart rate evaluation
Xiao et al. Temporal-spatial smoothing mask for enhanced remote heart rate estimation
Sheng et al. An Improved Approach to the Performance of Remote Photoplethysmography.
KR102760724B1 (en) System and Apparatus for Estimating Immersion Level of Drama and Movie Audience Using Photo Plethysmography Signal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant