A non-contact human heart rate and respiratory rate detection method and system for drones
Patent Information
- Application Number
- CN202311869508.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-09-10
AI Technical Summary
In complex combat environments, traditional non-contact personnel vital signs detection technology is difficult to collect the heart rate and respiratory rate information of the wounded in time during the search and rescue process, resulting in delayed rescue of the wounded.
UAVs are equipped with high frame rate camera equipment, combined with computer vision technology, by analyzing the small color changes and movement changes of facial skin in the person's video data, and using remote heart rate estimation learning framework and image processing algorithms to achieve UAV non-contact Check the casualty's heart rate and respiratory rate.
It realizes the timely detection and collection of the vital signs of the wounded in complex environments, improves the rescue efficiency during the search and rescue process, and avoids the limitations of traditional contact detection.
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of non-contact personnel health detection, and relates to a non-contact personnel heart rate and respiratory rate detection method using a drone using computer vision technology. The present invention also relates to a non-contact personnel heart rate and respiratory rate detection system using a drone. Background Art
[0002] Effective detection of vital signs of personnel is an important prerequisite for maintaining health, and heart rate and respiratory rate are the two most important parameters, and each detection is essential. The traditional method requires sticking electrodes on the skin surface or wearing blood oxygen to monitor respiratory movements, which cannot achieve long-term detection. In terms of heartbeat detection, most domestic and foreign countries use contact ECG monitors for real-time monitoring. In addition, the electrodes or sensors must be disinfected or replaced regularly by medical staff, which also increases the burden on medical staff. Therefore, in order to solve this problem, a new solution, non-contact detection technology, has been explored. Non-contact detection refers to the detection of vital signs signals of the human body from a distance by detecting various micro-movements caused by human physiological activities without contacting the human body, thereby obtaining various physiological information.
[0003] Existing non-contact detection is used for daily environment monitoring. In the face of reconnaissance needs in complex combat environments such as plateaus, mountain valleys and urban street fighting, search and rescue personnel cannot find the wounded in the first time. Even if they find the wounded, they cannot collect their vital signs, resulting in most of the wounded not being rescued in time. In order to solve this problem, this research and development is based on the field of drone technology, which can realize non-contact heart rate and respiratory rate detection of the wounded, so as to ensure the vital signs of the wounded and get timely rescue. Summary of the invention
[0004] In order to overcome the defect that the existing technology cannot detect the vital signs of the wounded in a complex combat environment, the present invention provides a drone non-contact personnel heart rate and respiratory rate detection method that can timely search and rescue the wounded in a complex combat environment and can collect the vital signs of the wounded while searching and rescuing. The present invention also provides a drone non-contact personnel heart rate and respiratory rate detection system.
[0005] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:
[0006] A non-contact human heart rate and respiratory rate detection method using an unmanned aerial vehicle comprises the following steps: firstly, searching and locating a human by using an unmanned aerial vehicle, and then using a high frame rate camera to collect human video data; then, using computer vision technology, based on the principles of human face recognition and optical flow detection, by analyzing slight color changes of facial skin, the collected human heart rate information is inferred; and based on image processing and changes in facial movements of the human, by analyzing changes in facial micro-expressions, the human respiratory information is inferred.
[0007] Furthermore, the specific process of inferring the heart rate information of a person is as follows:
[0008] ① Signal acquisition: Based on the human video data collected by the rPPG signal, the face and facial landmarks are first detected. The pixel values within the landmarks are retained, while other pixel values are filled with 0. Then the face image is cropped and reshaped to form a K×K image. We define the i-th video stream and PPG data as x(i) and t(i), respectively, where x (i) t(i) is sampled from the distribution of tasks (x(i), t(i))~p(t). The continuous T-frame face images are aggregated into a sequence to obtain our network input data. The face sequence is paired with the PPG signal t and collected using a PPG sensor placed under the index finger. Each sample t t Whether it is aligned with each frame of the face sequence x in time t during the collection process, the output of the network is the rPPG signal y∈R T It is an estimate of the carotid-radial pulse wave velocity caused by a small time offset in the PPG signal;
[0009] ②Signal extraction: After obtaining the network input data, modeling is performed through the remote heart rate estimation learning framework, which includes three modules: convolutional encoder, rPPG estimator and synthetic gradient generator. In order to infer the rPPG signal, only the convolutional encoder and rPPG estimator will be used, while the synthetic gradient generator will only be used in transductive learning;
[0010] ③Signal preprocessing: After signal extraction, the rPPG signal needs to be preprocessed to reduce the influence of noise and artifacts. The signal preprocessing method includes filtering method, denoising algorithm and motion artifact elimination; the filtering method includes mean filtering and median filtering, and the denoising algorithm uses wavelet transform and low-pass filtering; in order to reduce motion artifacts, motion compensation algorithm or phase adjustment is used to offset the influence of motion artifacts;
[0011] ④ Spectrum analysis: After signal preprocessing, spectrum analysis is first performed to obtain the frequency domain characteristics of the pulse signal; Fourier transform decomposes the signal into different frequency components, which is actually splitting the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal; then the pulse signal is filtered, sampled, A / D converted and other processes to become a digital signal; finally, according to discrete Fourier transform, Matlab principle software is used to calculate its instantaneous spectrum, obtain the period power, and select the total energy defined as 0~40H. Using the calculation of the power spectrum energy and spectrum energy ratio of the pulse signal, through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract the heart rate information from it;
[0012] ⑤Heart rate calculation: In the frequency domain information obtained by spectrum analysis, the pulse signal is the main frequency peak. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The heart rate calculation formula is: Heart rate (BPM) = peak frequency * 60.
[0013] Furthermore, the steps of modeling the remote heart rate estimation learning framework are:
[0014] (1) Convolutional Encoder: To extract latent features from the image stream, we use a feature extractor f modeled by CNN. θ (·), given an input stream of T frames, the convolutional encoder is shared across frames: p θ (z i |x i ) = f θ (x i ), giving T independent latent feature distributions {pθ(zi|xi)}T+Ti=T, which are fed back to the rPPG estimator to model the temporal visual information of the rPPG signal;
[0015] (2) The rPPG estimator is the latent features extracted from the input image stream and then passed to the rPPG estimator modeled by the LSTM-MLP module. The intuition behind the split is to separate the parameters responsible for visual modeling from those responsible for rPPG signal estimation, which is done by temporal modeling of the latent features:
[0016]
[0017] (3) Synthetic Gradient Generator: In order to quickly adapt the parameters of the model during deployment, a synthetic gradient generator modeled by a shallow hourglass network is introduced. Augmenting the long sequence backpropagation through time (BPTT) found in LSTM and then applying it to a few-shot learning framework to generate gradients for unlabeled samples, our synthetic gradient generator attempts to backpropagate from the ordered regression loss at the output L to model the gradient at z as ORD(y,t):
[0018]
[0019] Our network is designed to exploit spatiotemporal information, modeling visual information through the above convolutional encoder, and then using the LSTM rPPG estimator to model the estimation of the PPG signal. We named this method Meta-rPPG.
[0020] During the deployment of Meta-rPPG, the possibility of observing the input samples modeled by the model must be considered. One possible solution is to try to project the input data into the common distribution covered by the model by introducing a preprocessing step. For any preprocessing technique, it is almost impossible to consider an infinitely large distribution containing all possible scenarios during deployment. In order to cope with the shift in distribution, a transductive inference method is proposed to provide the gradient θ(·) to the convolutional encoder f during deployment.
[0021] Preferably, the transductive inference method generates gradients for the weight updates of the model during inference by using a generator modeled during training to generate synthetic gradients, which models the back-propagated gradients of the final output using the sequential loss L ORD(y, t) until the output of the feature extractor z, and the prototype distance minimizer generates gradients that force the samples outside the distribution to move toward the center of the samples inside the distribution. It can be simply said that loRD ORD (y, t) as the synthetic gradient generator g ψ (z) Attempt to simulate We can observe its role in the chain rule of gradient updates of feature extractor parameters;
[0022]
[0023] During the learning phase of training, we can update the weights of our synthetic gradient generator by minimizing the following objective function:
[0024] The weight update of ψ is:
[0025] Preferably, the transductive inference method attempts to minimize the prototype distance between different tasks, assuming that the rPPG estimator h φ (·) is only responsible for the estimation of rPPG signals; the specific steps are as follows:
[0026] First, each video sequence is considered as an independent task to be modeled. Then, the prototype of the task-specific latent variable is defined as:
[0027]
[0028] Here, T samples are continuously sampled from task or video i and the convolutional decoder is fed from p θ (z i |x i ) = f θ (x i ) takes the average value of the latent variables generated in , and then the first global latent variable prototype is obtained:
[0029]
[0030] As mentioned earlier, each training iteration performs Monte Carlo sampling on N tasks or videos, so it is impossible to obtain the statistical average of the entire dataset at once. A more computationally feasible approach is to update our global latent variable prototype in an iterative manner, as shown below:
[0031]
[0032] By introducing the hyperparameter γ, it can be understood as a weighted average between the old term and the newly sampled global latent variable prototype. The global prototype is obtained during the learning phase of training, and the conversion gradient is generated by minimizing the loss:
[0033]
[0034] θ and φ corresponding to the convolutional encoder and rPPG estimator will be trained in an end-to-end manner, while the parameters of the synthetic gradient generator ψ will be updated using the gradients backpropagated by the sequential regression loss. Ψ is updated by minimizing the synthetic loss given in;
[0035] Assume that R(t), G(t), and B(t) represent the light intensity of the red, green, and blue color channels at a certain frame time t in the video. We can extract the heart rate information by calculating the pulse signal RPPG(t):
[0036] RPPG(t)=R(t) / (R(t)+G(t)+B(t))(10).
[0037] Furthermore, the specific process of inferring the breathing information of the person is as follows:
[0038] ① Image processing: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video.
[0039] ② The enlargement unit based on Euler image includes: a decomposition subunit, a first extraction subunit, an enlargement subunit, a reconstruction subunit, and a second extraction subunit;
[0040] ③ Overall process: Each frame of the input video is decomposed into spatial multi-resolution according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio.
[0041] For each image with the same spatial resolution in the Laplace pyramid, a time-domain bandpass filter is performed using formula (11), and the image brightness change signal B(x, t) corresponding to the breathing change signal at the spatial point position x and time t in the video channel is extracted using formula (12), where formula (11) is
[0042]
[0043] Wherein, I(x, t) represents the image brightness signal when the spatial point position in the video channel is x and the time is t, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes through time t, and the formula (12) is:
[0044]
[0045] The original image is filtered by Gaussian low-pass filtering and sampled with a step size of 2 to obtain the first layer of the Gaussian pyramid. The 0th layer is the original image. The obtained image is filtered and sampled in the same way. The Gaussian pyramid can be obtained after several iterations. Therefore, the Gaussian pyramid decomposes the original image into low-pass subbands. The upper layer of the Gaussian pyramid is upsampled in the obtained low-pass subbands in turn, and then the upsampled result is subtracted from the lower layer of the Gaussian pyramid to obtain the Laplacian pyramid. In the process of spatial multi-resolution decomposition, the number of pyramid layers is increased in combination with the acquired video resolution, which can achieve artifact suppression and motion amplification while improving the video signal-to-noise ratio. After completing the spatial domain multi-resolution decomposition processing, the time domain filter is used in the time domain to perform time domain filtering on the same pyramid resolution image of each video frame to extract the micro-motion signal of interest in the video. The object of time domain filtering is the pixel points in the video frame. The breathing changes in the video cause the corresponding pixel values to change in the same periodic manner. Therefore, the cutoff frequency of the designed filter can be set according to the possible pulse frequency range of a person, the video frame rate and the Nyquist sampling theorem. The principle and algorithm of time domain processing, as well as the relationship with motion amplification can be analyzed according to the differential approximation method based on the first-order Taylor series expansion in optical flow analysis. The specific analysis of one-dimensional motion signals is shown below.
[0046] The function I(x, t) represents the image brightness I(x, 0) = f(x) when the spatial point position is x and the time is t. Let the motion displacement generated after time t be δ(t), then:
[0047] I(x, t) = f(x + δ(t)) (13)
[0048] For the small motion signal, an appropriate amplification factor is given, and the formula (13) can be analyzed by expanding the first-order Taylor series about x, as shown in formula (14):
[0049]
[0050] Let the action signal to be amplified after time domain bandpass filtering be:
[0051]
[0052] For each image with the same spatial resolution in the Laplacian pyramid, perform temporal bandpass filtering according to formula (14), and use formula (15) as the result of temporal filtering, that is, extract the respiratory signal in the upper channel of the video. The cutoff frequency of the temporal filtering of the video frame is determined by the respiratory frequency range of 0.1-1Hz and the video frame rate of 30FPS;
[0053] The image brightness change signal corresponding to the a-fold amplified breathing change signal is superimposed on the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, the image synthesis is completed and converted back to the RGB space to reconstruct the video, and the reconstructed video is output;
[0054] After the signal is amplified by a (amplification factor) times, it is overlapped back to the original signal I (x, t), as shown in formula (16):
[0055]
[0056] Combining (14), (15), and (16), we can obtain:
[0057]
[0058] Expand equation (17) in the reverse direction with respect to the first-order Taylor series to obtain the image brightness signal after motion amplification:
[0059] Y(x,t)≈f(x+(1+α)δ(t) (18)
[0060] By comparing equation (1) with equation (6), we can know that the motion amplitude after motion amplification is (1+α) times that of the motion amplitude without amplification. In order to prevent amplification distortion, the basebands of different spatial frequencies in the constructed pyramid should be limited by reasonable amplification factors.
[0061] Assume that the spatial wavelength of the signal is Where ω is the spatial frequency of the signal, the limiting formula of the amplification factor a is shown in formula (19):
[0062]
[0063] The signal extracted from the filtering result is amplified according to the amplification factor relationship (19), wherein the amplification factor decreases with the increase of spatial frequency (the decrease of signal-to-noise ratio), that is, it gradually decreases from the top layer to the bottom layer of the pyramid, and then the amplified multi-resolution pyramid is synthesized into an image. The slight displacement of an object is mainly related to brightness. Therefore, while amplifying the respiratory change signal in the L brightness channel, suppressing the amplification of the a and b channel signals can improve the signal-to-noise ratio of the output video. According to formula (16), the amplified signal is added to the original signal, and the amplified image is superimposed on the original video frame to complete the final synthesis of the image and convert it back to RGB space. The video is reconstructed and then output. The Euler image amplification technology is applied to the human face video, and the RGB space is converted to Lab space for processing to achieve respiratory amplitude amplification. The brightness variance statistics of the pixel brightness channel of the video frame after the slight change of breathing is amplified in the time domain are calculated by the pixel brightness variance calculation formula, and the statistical results are displayed using the brightness variance grayscale map. At the same time, the video frame after the slight change of breathing is amplified is thresholded by formula (20) to generate a binary image. The size of the connected domain is calculated for the binary image after threshold segmentation, and the connected domain with the largest area is selected. The holes in the largest connected domain are detected and filled, and the skin area is segmented and extracted. The pixel brightness variance calculation formula is:
[0064]
[0065] where σ 2 is the brightness variance of the video frame pixel x in the time domain of the first 30 frames after the slight change of breathing is amplified, N=30, xi represents the brightness of the pixel in the time domain, and the formula (20) is
[0066]
[0067] Perform a dot multiplication operation on the brightness variance grayscale map and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background, perform dynamic threshold segmentation on the skin area variance grayscale map using the fourth formula, perform grayscale erosion on the threshold segmentation result, then calculate the size of the connected domain, select the largest connected domain as the expansion object, restore the expansion object to its size before erosion, take the circumscribed rectangle of the largest connected domain in the brightness channel, and obtain the breathing rectangular area.
[0068] Furthermore, the decomposition subunit is specifically used to perform spatial multi-resolution decomposition on each frame of the input video through the Laplace pyramid construction principle;
[0069] The first extraction subunit is specifically used to perform time-domain bandpass filtering on each image with the same spatial resolution in the Laplace pyramid through formula (11), and extract the image brightness change signal B(x, t) corresponding to the breathing change signal when the spatial point position in the video channel is x and the time is t through formula (12), wherein the formula (11) is:
[0070]
[0071] I(x, t) represents the image brightness signal when the spatial point position in the video channel is x and the time is t, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes through time t, and the formula (12) is:
[0072]
[0073] Where B(x, t) is the image brightness change signal corresponding to the signal at the spatial point position x and time t in the video channel;
[0074] The amplifying subunit is specifically used to amplify the image brightness change signal corresponding to the breathing change signal by a factor of a through an amplification factor relationship;
[0075] The reconstruction subunit is specifically used to superimpose the image brightness change signal corresponding to the respiratory change signal amplified a times to the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, complete the image synthesis and convert it back to the RGB space to reconstruct the video, and output the reconstructed video;
[0076] The second extraction subunit is used to perform brightness variance statistics on the brightness channel of the pixel points of the video frame after the slight changes in breathing are amplified in the time domain, and the statistical results are represented by a brightness variance statistical grayscale map. At the same time, the skin area of the video frame after the slight changes in breathing are amplified is extracted, and the extracted skin area is logically ANDed with the brightness variance statistical grayscale map to remove the variance of the face background, and the breathing area is located by removing the face background variance map and image morphology processing, and the breathing area is extracted.
[0077] Furthermore, the second extraction subunit includes:
[0078] The statistical module is specifically used to perform brightness variance statistics on the brightness channel of the video frame pixels after amplifying the slight changes of breathing in the time domain through the brightness variance calculation formula of the pixel points, and display the statistical results with a brightness variance grayscale map;
[0079] A generating module, specifically used for generating a binary image by thresholding the video frame after amplifying the slight change of breathing through formula (22);
[0080] A first selection module is specifically used to calculate the size of a connected domain of the binary image after threshold segmentation, and select a connected domain with the largest area;
[0081] The extraction module is specifically used to detect and fill the holes in the largest connected domain, segment and extract the skin area; the calculation formula for the pixel brightness variance is:
[0082]
[0083] where σ 2 is the brightness variance of the video frame pixel x in the time domain of the first 30 frames after the slight change of breathing is amplified, N=30, xi represents the brightness of the pixel in the time domain, and the formula (22) is
[0084]
[0085] Among them, Cr and Cb are the chromaticity of red and blue respectively;
[0086] The elimination module is specifically used to perform a dot multiplication operation on the brightness variance grayscale map and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background;
[0087] The second selection module is specifically used to perform dynamic threshold segmentation on the skin area variance grayscale image by the fourth formula, perform grayscale erosion on the threshold segmentation result, and then calculate the size of the connected domain, and select the largest connected domain as the expansion object, and restore the expansion object to the size before the erosion;
[0088] The acquisition module is specifically used to obtain the circumscribed rectangle of the maximum connected domain in the brightness channel to obtain the breathing rectangular area.
[0089] Furthermore, the steps of extracting the breathing area are as follows: after the completion of the amplification of the small changes in breathing, the amplitude of the change of the brightness value in the time domain of the breathing area increases, and the extraction of the breathing area can be realized according to the change of the brightness value in the time domain of the pixel point of the video frame after the amplification; the object is accompanied by the change in the brightness channel of the pixel point at the corresponding position of the video frame during the movement, so after the amplification of the small changes in breathing, the amplitude of the brightness value of the image line corresponding to the breathing part is significantly larger than that of other skin areas, so the brightness values of the pixels in the first 1 second of the video are statistically analyzed according to the variance calculation formula, and the statistical results are represented by a brightness variance statistical grayscale map, wherein a higher grayscale value indicates that the brightness of the pixel point has a larger amplitude, and at the same time, the video frame after the amplification of the small changes in breathing is subjected to skin area extraction, and the extraction result is logically ANDed with the brightness variance statistical grayscale map to remove the variance of the face background, so as to avoid the possible influence of the complex motion background and the skin edge part on the subsequent processing, so as to further determine the position where the breathing produces deformation; finally, the breathing area is located according to the background removal variance map and image morphological processing, thereby realizing the extraction of the breathing area.
[0090] A non-contact human heart rate and respiratory rate detection system for unmanned aerial vehicles, comprising:
[0091] The drone video acquisition unit uses a drone to search and locate personnel, and then uses a high-frame-rate camera to collect video data of personnel;
[0092] The heart rate detection unit uses computer vision technology to analyze the slight color changes of the facial skin based on the collected video data of the person, and infers the heart rate information of the person based on the principle of face recognition and optical flow detection.
[0093] The personnel breathing information detection unit uses computer vision technology for the collected personnel video data, based on the principles of personnel face recognition and optical flow detection, and infers the personnel's heart rate information by analyzing the slight color changes of the facial skin. It also infers the personnel's breathing information by analyzing the changes in facial micro-expressions based on image processing and changes in the personnel's facial movements.
[0094] Furthermore, the personnel heart rate detection unit comprises:
[0095] Signal acquisition module: Capture video at a frame rate of each frame through the camera on the drone and record the reflection of light on the facial skin. Select a ROI in the video sequence to capture the skin color changes caused by heartbeat;
[0096] Signal extraction module: After obtaining the network input data, modeling is performed through the remote heart rate estimation learning framework, which includes three modules: convolutional encoder, rPPG estimator and synthetic gradient generator. In order to infer the rPPG signal, only the convolutional encoder and rPPG estimator will be used, while the synthetic gradient generator will only be used in transductive learning;
[0097] Signal preprocessing module: After signal extraction, the rPPG signal needs to be preprocessed to reduce the influence of noise and artifacts. The signal preprocessing method includes filtering method, denoising algorithm and motion artifact elimination; the filtering method includes mean filtering and median filtering, and the denoising algorithm uses wavelet transform and low-pass filtering; in order to reduce motion artifacts, motion compensation algorithm or phase adjustment is used to offset the influence of motion artifacts;
[0098] Spectrum analysis module: After signal preprocessing, spectrum analysis is first performed to obtain the frequency domain characteristics of the pulse signal; Fourier transform decomposes the signal into different frequency components, which is actually to split the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal; then the pulse signal is filtered, sampled, A / D converted and other processes to become a digital signal; finally, according to discrete Fourier transform, Matlab principle software is used to calculate its instantaneous spectrum, obtain the period power, and select the total energy to be defined as 0~40H. Using the calculation of the power spectrum energy and spectrum energy ratio of the pulse signal, through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract the heart rate information from it;
[0099] Heart rate calculation module: In the frequency domain information obtained by spectrum analysis, the pulse signal is the main frequency peak. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The calculation formula for heart rate is: Heart rate (BPM) = peak frequency * 60.
[0100] Furthermore, the personnel breathing information detection unit includes:
[0101] Image processing module: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video.
[0102] The Euler image-based magnification module includes: a decomposition subunit, a first extraction subunit, an amplification subunit, a reconstruction subunit, and a second extraction subunit;
[0103] Overall process module: Each frame of the input video is spatially decomposed into multiple resolutions according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio.
[0104] The present invention is based on the field of unmanned aerial vehicle technology, and can realize non-contact heart rate and respiratory rate detection of the injured, so as to ensure the vital signs of the injured and provide convenience for rescue work; in the process of target recognition, machine learning algorithms and deep learning models are used to analyze and compare images, and target detection allows the computer to automatically identify the categories of all targets in the picture or video frame, and draw a bounding box around the target to mark the position of each target; in the image classification task, we will first use a convolutional neural network to extract image features, and then use these features to predict the classification probability, establish a classification loss function based on the training sample labels, start end-to-end training, and train and optimize the target recognition system by using annotated training data sets to improve the accuracy of the system; motion artifacts of heart rate detection: when the person being detected is exercising, the shaking of the face will cause distortion of the facial hemodynamic signal, thereby affecting the accuracy of the heart rate. Motion artifacts are caused by the movement of facial structure and skin, which will increase the difficulty of identifying and extracting reliable heart rate signals.
[0105] The rPPG estimation in this invention is based on visual input. Due to the wide distribution of visual space, there is no guarantee that the samples collected for training are consistent with the samples used for testing. From a statistical point of view, the data provided by the training set for our network modeling can be regarded as samples within the distribution, while the data collected under different settings, such as lighting conditions, subjects, camera settings, etc., can be regarded as samples outside the distribution. It is not surprising that deep neural networks perform poorly on out-of-distribution samples. To overcome this limitation, a prototype distance minimization technique is proposed, which can be applied to video sequences with characteristics.
[0106] The present invention converts the RGB space into the Lab space for processing, and realizes the amplification of the breathing amplitude. The brightness variance statistics are performed on the brightness channel of the pixel points of the video frame after the amplification of the slight breathing change in the time domain through the pixel point brightness variance calculation formula, and the statistical results are displayed with the brightness variance grayscale map, and at the same time, the video frame after the amplification of the slight breathing change is passed through the third formula threshold to generate a binary image, and the size of the connected domain is calculated for the binary image after the threshold segmentation, and the connected domain with the largest area is selected, and the holes existing in the largest connected domain are detected and filled, and the skin area is segmented and extracted. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] The present invention will be further described below in conjunction with the accompanying drawings, in which:
[0108] Figure 1 is the prototype minimum distance graph;
[0109] Figure 2 is the latent space distribution map. DETAILED DESCRIPTION
[0110] Example 1
[0111] The drone-based non-contact human heart rate and respiratory rate detection method of this embodiment includes the following steps: first, a drone is used to search and locate a person, and then a high-frame rate camera is used to collect video data of the person. Then, computer vision technology is used for the collected video data of the person, based on the principles of human face recognition and optical flow detection, to infer the heart rate information of the person by analyzing the slight color changes of the facial skin, and based on image processing and changes in facial movements of the person, the breathing information of the person is inferred by analyzing the changes in facial micro-expressions.
[0112] Furthermore, the specific process of inferring the heart rate information of a person is as follows:
[0113] Heart rate detection is a method of measuring human heart rate in real time using computer vision technology. It is characterized by using a webcam to extract rPPG signals from videos captured under ambient light settings, filtering, removing noise, and performing power spectrum analysis on the detected color change signals. A frequency response is obtained by performing spectrum analysis on the processed color change signals. Heart rate is usually reflected as the most significant peak in the spectrum, and this is achieved by calculating the frequency peak to obtain heart rate information. The process is completed in 5 steps:
[0114] ① Signal acquisition: The acquisition of rPPG signals is mainly through the camera recording the light changes on the human face. Given an input image from the camera during the research process, the face is first detected, and then the facial landmarks are detected. The pixel values within the landmarks are retained, while other pixel values are filled with 0. The face image is then cropped and reshaped to form a K×K image. We define the i-th video stream and PPG data as x(i) and t(i), respectively, where x (i) t(i) is sampled from the distribution of tasks (x(i), t(i))~p(t). Aggregate T consecutive frames of face images into a sequence to get our network input data. The face sequence is paired with the PPG signal t and collected using a PPG sensor placed under the index finger. Each sample t t Whether it is aligned with each frame of the face sequence x in time t during the collection process. The output of the network is the rPPG signal y∈R TThis is an estimate of the carotid-radial pulse wave velocity (PWV) caused by a small time offset in the PPG signal. Typically, a ROI (Region of Interest) is selected in the video sequence to capture the skin color changes caused by the heartbeat. During the acquisition process, an appropriate light source is required to illuminate the facial area, and common light sources include LEDs. The camera captures the video at an appropriate frame rate and records the reflection of light on the facial skin.
[0115] ②Signal extraction: In the process of extracting rPPG signals, the main basis is the change in light reflection caused by heart beating. The remote heart rate estimation meta-learning framework includes three modules: convolutional encoder, rPPG estimator, and synthetic gradient generator. In order to infer rPPG signals, only convolutional encoder and rPPG estimator will be used, while synthetic gradient generator will only be used in transductive learning.
[0116] First, the convolutional encoder, in order to extract latent features from the image stream, we use a feature extractor f modeled by CNN. θ (·). We use a ResNet-like structure as the backbone of the convolutional encoder. Given an input stream of T frames, the convolutional encoder is shared across frames: θ (z i |x i ) = f θ (x i ), giving T independent latent feature distributions {pθ(zi|xi)}T+Ti=T, which are fed back to the rPPG estimator to model the temporal visual information of the rPPG signal.
[0117] Second, the rPPG estimator. The latent features extracted from the input image stream are then passed to the rPPG estimator modeled by the LSTM-MLP module. The intuition behind the split is to separate the parameters responsible for visual modeling from those responsible for rPPG signal estimation, which is done by temporal modeling of the latent features:
[0118]
[0119] Third, synthetic gradient generator. In order to quickly adapt the parameters of the model during deployment, a synthetic gradient generator modeled by a shallow hourglass network is introduced, g ψ(·). The idea of using a synthetic gradient generator for transductive inference is not new and aims to parallelize the backpropagation of gradients and increase the backpropagation through time (BPTT) for long sequences found in LSTM. It is then applied to a few-shot learning framework to generate gradients for unlabeled samples, resulting in significant performance improvements. Our synthetic gradient generator attempts to model the gradient ORD(y,t) at z by backpropagating from the ordered regression loss at the output L:
[0120]
[0121] Our network is designed to exploit spatiotemporal information, modeling visual information through the above-mentioned convolutional encoder, and then using an LSTM rPPG estimator to model the estimation of the PPG signal, which we name Meta-rPPG.
[0122] During the deployment of Meta-rPPG, the possibility of observing input samples modeled by the model (also known as out-of-distribution samples) must be considered. A possible solution is to try to project the input data into a common distribution covered by the model by introducing a preprocessing step. It is almost impossible for any preprocessing technique to consider an infinitely large distribution that contains all possible scenarios during deployment. To cope with the shift in distribution, transductive inference methods are proposed to provide the gradient θ(·) to the convolutional encoder f during deployment.
[0123] The transductive inference method generates synthetic gradients by using a generator modeled during training. During inference, gradients are generated for the weight updates of the model. The generator models the back-propagated gradients ORD(y, t) of the final output using the sequential loss L until the output of the feature extractor z, where Figure (a) shows the high-level concept of the application of prototype distance minimization in the latent space. (b) shows that the rPPG estimator performs well only on in-distribution samples covered by the training dataset, but performs poorly on out-of-distribution samples. Samples in the distribution are represented in green, while samples out of the distribution are represented in red. The prototype distance minimizer produces gradients that force out-of-distribution samples to move towards the center of in-distribution samples. It can be simply said that: loRD ORD (y, t) as the synthetic gradient generator g ψ (z) Attempt to simulate We can observe its effect in the chain rule of gradient updates of feature extractor parameters.
[0124]
[0125] During the learning phase of training, we can update the weights of our synthetic gradient generator by minimizing the following objective function: The weight update of ψ is:
[0126] ③Signal preprocessing: The role of the learning phase is to force our model to learn a suitable potential representation of the rPPG signal estimate based on its image domain correspondence. Supervised learning is required in the learning phase, so this phase will only appear in the training phase. Here, θ and φ corresponding to the convolutional encoder and rPPG estimator will be trained in an end-to-end manner, while the parameters of the synthetic gradient generator ψ will be updated using the gradients back-propagated by the sequential regression loss. Ψ is updated by minimizing the synthetic loss given in. Before adding the adaptation phase to the training, the network is first pre-trained under the learning phase of R epochs. The reason is that the gradients back-propagated to the synthetic gradient generator and the prototypes used for the prototype minimizer depend on the task at hand (rPPG estimation), rather than using gradients and prototypes based on a set of random weights, which may lead to instability. Therefore, after signal extraction, the rPPG signal usually needs to be pre-processed to reduce the influence of noise and artifacts. The preprocessing methods mainly include filters, denoising algorithms, and motion artifact removal. Commonly used filtering methods include mean filtering, median filtering, etc., and denoising algorithms can use wavelet transforms, low-pass filtering, etc. In order to reduce motion artifacts, the influence of motion artifacts can be offset by a motion compensation algorithm or phase adjustment.
[0127] ④ Spectral analysis: After signal preprocessing, we can perform spectral analysis to obtain the frequency domain characteristics of the pulse signal. Common frequency domain analysis methods include Fourier transform, power spectrum density estimation, etc. Fourier transform decomposes the signal into different frequency components, which actually splits the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal. The pulse signal is filtered, sampled, A / D converted, etc. to become a digital signal. Finally, according to the discrete Fourier transform, the instantaneous spectrum is calculated using Mat lab software to obtain the period power, and the total energy is defined as 0~40H. The power spectrum energy and spectrum energy ratio of the pulse signal are calculated. Through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract heart rate information from it.
[0128] ⑤Heart rate calculation: In the frequency domain information obtained by spectrum analysis, the pulse signal is usually expressed as the peak of the main frequency. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The formula for calculating the heart rate is: Heart rate (BPM) = peak frequency * 60.
[0129] Further,
[0130] (2) Respiration detection. Use high-frame-rate video equipment to collect video data of the human body to obtain information related to respiratory movements. Use image processing and computer vision technology to magnify video motion, detect and track changes in facial respiratory micro-expressions in the video. Select a region of interest, usually the face, chest or abdomen, which is related to respiratory movements. Extract features related to respiratory movements by analyzing pixel changes in the selected area. Filter and perform power spectrum analysis on the extracted motion features to obtain respiratory frequency and rhythm information.
[0131] The process specifically includes:
[0132] ① Image processing: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video.
[0133] ② A measurement device based on Euler image magnification, characterized in that the magnification unit specifically includes: a decomposition subunit, specifically used to perform spatial multi-resolution decomposition on each frame of the input video through the Laplace pyramid construction principle; a first extraction subunit, specifically used to perform time-domain bandpass filtering on each image with the same spatial resolution in the Laplace pyramid through a first formula, and extract an image brightness change signal B(x, t) corresponding to the respiratory change signal when the spatial point position in the video channel is x and the time is t through a second formula, wherein the first formula is:
[0134]
[0135] I(x, t) represents the image brightness signal when the spatial point position is x and the time is t in the video channel, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes by time t, and the second formula is:
[0136]
[0137] Wherein B(x, t) is the image brightness change signal corresponding to the signal at the spatial point position x and time t in the video channel.
[0138] The amplifying subunit is specifically used to amplify the image brightness change signal corresponding to the breathing change signal by a factor of a through an amplification factor relationship;
[0139] The reconstruction subunit is specifically used to superimpose the image brightness change signal corresponding to the respiratory change signal amplified a times to the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, complete the image synthesis and convert it back to the RGB space to reconstruct the video, and output the reconstructed video.
[0140] The second extraction subunit is specifically used to perform brightness variance statistics on the brightness channel of the video frame pixel points after the slight changes in breathing are amplified in the time domain, and the statistical results are represented by a brightness variance statistical grayscale map, and at the same time, the skin area of the video frame after the slight changes in breathing are amplified is extracted, and the extracted skin area is logically ANDed with the brightness variance statistical grayscale map to remove the variance of the face background, and the breathing area is located by removing the face background variance map and image morphology processing, and the breathing area is extracted. The second extraction subunit specifically includes:
[0141] The statistical module is specifically used to perform brightness variance statistics on the brightness channel of the video frame pixels after amplifying the slight changes of breathing in the time domain through the brightness variance calculation formula of the pixel points, and display the statistical results with a brightness variance grayscale map;
[0142] A generating module, specifically used for generating a binary image by passing a third formula threshold through the video frame after amplifying the slight breathing change;
[0143] A first selection module is specifically used to calculate the size of a connected domain of the binary image after threshold segmentation, and select a connected domain with the largest area;
[0144] The extraction module is specifically used to detect and fill the holes in the largest connected domain, segment and extract the skin area; the calculation formula for the pixel brightness variance is:
[0145]
[0146] where σ 2 is the brightness variance of the video frame pixel point x in the time domain of the first 30 frames after the slight change of breathing is amplified, N=30, xi represents the brightness of the pixel point in the time domain, and the third formula is
[0147] Among them, Cr and Cb are the chromaticity of red and blue respectively.
[0148] The elimination module is specifically used to perform a dot multiplication operation on the brightness variance grayscale map and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background;
[0149] The second selection module is specifically used to perform dynamic threshold segmentation on the skin area variance grayscale image by the fourth formula, perform grayscale erosion on the threshold segmentation result, and then calculate the size of the connected domain, and select the largest connected domain as the expansion object, and restore the expansion object to the size before the erosion;
[0150] The acquisition module is specifically used to obtain the circumscribed rectangle of the maximum connected domain in the brightness channel to obtain the breathing rectangular area.
[0151] Euler image magnification technology mainly processes the video frame in the spatial domain and time domain to magnify the tiny movements caused by breathing in the video that are difficult for the naked eye to detect. The processing of the tiny movement magnification in the spatial domain is mainly to establish the Laplacian pyramid of the video frame, which is obtained on the basis of the Gaussian pyramid.
[0152] ③ Overall process: Each frame of the input video is spatially decomposed into multiple resolutions according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio.
[0153] For each image with the same spatial resolution in the Laplace pyramid, a time-domain bandpass filter is performed using the first formula, and the image brightness change signal B(x, t) corresponding to the breathing change signal at the spatial point position x and time t in the video channel is extracted using the second formula, wherein the first formula is
[0154]
[0155] I(x, t) represents the image brightness signal when the spatial point position is x and the time is t in the video channel, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes by time t, and the second formula is:
[0156]
[0157] The original image is filtered by Gaussian low-pass filtering and sampled with a step size of 2 to obtain the first layer image of the Gaussian pyramid (the 0th layer is the original image). The obtained image is filtered and sampled in the same way. After several iterations, the Gaussian pyramid can be obtained. Therefore, the Gaussian pyramid decomposes the original image into low-pass subbands. The upper layer of the Gaussian pyramid is upsampled in the obtained low-pass subbands in turn, and then the upsampled result is subtracted from the lower layer of the Gaussian pyramid to obtain the Laplacian pyramid. In the process of spatial multi-resolution decomposition, the number of pyramid layers is increased in combination with the acquired video resolution, which can achieve artifact suppression and motion amplification while improving the video signal-to-noise ratio. After completing the spatial domain multi-resolution decomposition processing, the time domain filter is used in the time domain to perform time domain filtering on the same pyramid resolution image of each video frame to extract the micro-motion signal of interest in the video. The object of time domain filtering is the pixel points in the video frame. The breathing changes in the video cause the corresponding pixel values to change in the same periodic manner. Therefore, the cutoff frequency of the designed filter can be set according to the possible pulse frequency range of a person, the video frame rate and the Nyquist sampling theorem. The principle and algorithm of time domain processing, as well as its relationship with motion amplification can be analyzed according to the differential approximation method based on the first-order Taylor series expansion in optical flow analysis. The specific analysis of one-dimensional motion signals is shown below.
[0158] The function I(x, t) represents the image brightness I(x, 0) = f(x) when the spatial point position is x and the time is t. Let the motion displacement generated after time t be δ(t), then:
[0159] I(x, t) = f(x + δ(t)) (1)
[0160] For the small motion signal, an appropriate amplification factor is given, and the formula (1) can be analyzed by expanding the first-order Taylor series about x, as shown in formula (2):
[0161]
[0162] Let the action signal to be amplified after time domain bandpass filtering be:
[0163]
[0164] For each image with the same spatial resolution in the Laplacian pyramid, a temporal bandpass filter is performed according to formula (2), and formula (3) is used as the temporal filtering result, that is, the respiratory signal in the upper channel of the video is extracted. The cutoff frequency of the video frame temporal filtering is determined by the respiratory frequency range (0.1-1Hz) and the video frame rate (30FPS).
[0165] The image brightness change signal corresponding to the breathing change signal amplified a times is superimposed on the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, completing the image synthesis and converting it back to RGB space to reconstruct the video, and output the reconstructed video.
[0166] After the signal is amplified by a (amplification factor) times, it is overlapped back to the original signal I (x, t), as shown in formula (4):
[0167]
[0168] Combining (2), (3) and (4), we can obtain:
[0169]
[0170] Expand equation (5) in the reverse direction with respect to the first-order Taylor series to obtain the image brightness signal after motion amplification:
[0171] Y(x,t)≈f(x+(1+α)δ(t)) (6)
[0172] By comparing equation (1) with equation (6), we can know that the motion amplitude after motion amplification is (1+a) times that of the motion amplitude without amplification. In order to prevent amplification distortion, the basebands of different spatial frequencies in the constructed pyramid should be limited by reasonable amplification factors.
[0173] Assume that the spatial wavelength of the signal is Where ω is the spatial frequency of the signal, the limiting formula of the amplification factor a is shown in formula (7):
[0174]
[0175] The signal extracted from the filtering result is amplified according to the amplification factor relationship (7), where the amplification factor decreases with the increase of spatial frequency (the decrease of signal-to-noise ratio), that is, it gradually decreases from the top to the bottom of the pyramid, and then the amplified multi-resolution pyramid is synthesized into an image. The tiny displacement of the object is mainly related to the brightness. Therefore, while amplifying the respiratory change signal in the L brightness channel, suppressing the amplification of the a and b channel signals can improve the signal-to-noise ratio of the output video. According to formula (4), the amplified signal is added to the original signal, and the amplified image is superimposed on the original video frame. The final synthesis of the image is completed and converted back to RGB space, and the video is reconstructed and output. The Euler image amplification technology is applied to the human face video, and the RGB space is converted to Lab space for processing to achieve respiratory amplitude amplification. The brightness variance statistics are performed on the brightness channel of the pixel points of the video frame after the slight change of breathing is amplified in the time domain through the pixel brightness variance calculation formula, and the statistical results are displayed with a brightness variance grayscale map. At the same time, the video frame after the slight change of breathing is amplified is passed through the third formula threshold to generate a binary image, and the size of the connected domain of the binary image is calculated after the threshold segmentation, and the connected domain with the largest area is selected, and the holes existing in the largest connected domain are detected and filled, and the skin area is segmented and extracted. The pixel brightness variance calculation formula is:
[0176]
[0177] where σ 2 is the brightness variance of the video frame pixel point x in the time domain of the first 30 frames after the slight change of breathing is amplified, N=30, xi represents the brightness of the pixel point in the time domain, and the third formula is
[0178]
[0179] Perform a dot multiplication operation on the brightness variance grayscale map and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background, perform dynamic threshold segmentation on the skin area variance grayscale map using the fourth formula, perform grayscale erosion on the threshold segmentation result, then calculate the size of the connected domain, select the largest connected domain as the expansion object, restore the expansion object to its size before erosion, take the circumscribed rectangle of the largest connected domain in the brightness channel, and obtain the breathing rectangular area.
[0180] Breathing zone extraction:
[0181] After the small changes in breathing are amplified, the amplitude of the change in the brightness value of the breathing area in the time domain increases. According to the change in the brightness value of the pixel point in the time domain of the amplified video frame, the extraction of the breathing area can be realized. During the movement of the object, the brightness channel of the pixel point at the corresponding position of the video frame changes. Therefore, after the amplification of the small changes in breathing, the amplitude of the brightness value of the image line corresponding to the breathing part changes significantly compared with other skin areas. Therefore, the pixel brightness value of the first 1 second (30 frames) of the video is statistically analyzed according to the variance calculation formula. The statistical results are represented by the brightness variance statistical grayscale map, in which the higher grayscale value indicates that the brightness of the pixel point changes greatly. At the same time, the skin area is extracted from the video frame after the small changes in breathing are amplified. The extraction result and the brightness variance statistical grayscale map are logically ANDed to remove the face background variance, avoid the possible complex motion background and skin edge part from affecting the subsequent processing, so as to further determine the position where the breathing produces deformation. Finally, the breathing area is located according to the background removal variance map and image morphological processing, so as to realize the extraction of the breathing area.
[0182] Example 2
[0183] The transductive reasoning method used in this embodiment is:
[0184] It tries to minimize the prototype distance between different tasks, assuming that the rPPG estimator h φ (·) is only responsible for the estimation of the rPPG signal. Since rPPG estimation is based on visual input, there is no guarantee that the samples collected for training are consistent with those used at test time due to the wide distribution of visual space. From a statistical point of view, the data provided by the training set modeled by our network can be regarded as in-distribution samples, while data collected under different settings, such as lighting conditions, subjects, camera settings, etc., can be regarded as out-of-distribution samples. , It is not surprising that deep neural networks perform poorly on out-of-distribution samples. To overcome this limitation, a prototype distance minimization technique is proposed, which can be applied to video sequences with characteristics. The statistics that need to be modeled by the neural network do not change much over time. A conceptual illustration is shown in Figure (a).
[0185] First, each video sequence is considered as an independent task to be modeled. Then, the prototype of the latent variable for a specific task is defined as:
[0186]
[0187] Here, T samples are continuously sampled from task or video i and the convolutional decoder is fed from p θ (z i |x i ) = f θ (x i) takes the average value of the latent variables generated in . Then the first global latent variable prototype is obtained:
[0188]
[0189] As mentioned earlier, each training iteration performs Monte Carlo sampling on N tasks or videos, so it is impossible to obtain the statistical average of the entire dataset at once. A more computationally feasible approach is to update our global latent variable prototype in an iterative manner, as follows:
[0190]
[0191] By introducing the hyperparameter γ, it can be understood as a weighted average between the old term and the newly sampled global latent variable prototype. The global prototype in (11) is obtained during the learning phase of training, and the conversion gradient is generated by minimizing the loss:
[0192]
[0193] Here, θ and φ corresponding to the convolutional encoder and rPPG estimator will be trained in an end-to-end manner, while the parameters of the synthetic gradient generator ψ will be updated using the gradients backpropagated by the sequential regression loss. Ψ is updated by minimizing the synthetic loss given in .
[0194] Assume that R(t), G(t), and B(t) represent the light intensity of the red, green, and blue color channels at a certain frame time t in the video. We can extract the heart rate information by calculating the pulse signal RPPG(t):
[0195] RPPG(t)=R(t) / (R(t)+G(t)+B(t)).
[0196] Example 3
[0197] The drone non-contact personnel heart rate and respiratory rate detection system of this embodiment includes:
[0198] The drone video acquisition unit uses a drone to search and locate personnel, and then uses a high-frame-rate camera to collect video data of personnel;
[0199] The heart rate detection unit uses computer vision technology to analyze the slight color changes of the facial skin based on the collected video data of the person, and infers the heart rate information of the person based on the principle of face recognition and optical flow detection.
[0200] The personnel breathing information detection unit uses computer vision technology for the collected personnel video data, based on the principles of personnel face recognition and optical flow detection, and infers the personnel's heart rate information by analyzing the slight color changes of the facial skin. It also infers the personnel's breathing information by analyzing the changes in facial micro-expressions based on image processing and changes in the personnel's facial movements.
[0201] Furthermore, the personnel heart rate detection unit comprises:
[0202] Signal acquisition module: Capture video at a frame rate of each frame through the camera on the drone and record the reflection of light on the facial skin. Select a ROI in the video sequence to capture the skin color changes caused by heartbeat;
[0203] Signal extraction module: After obtaining the network input data, modeling is performed through the remote heart rate estimation learning framework. The remote heart rate estimation meta-learning framework includes three modules: convolutional encoder, rPPG estimator and synthetic gradient generator. In order to infer the rPPG signal, only the convolutional encoder and rPPG estimator will be used, while the synthetic gradient generator will only be used in transductive learning;
[0204] Signal preprocessing module: After signal extraction, the rPPG signal needs to be preprocessed to reduce the influence of noise and artifacts. The signal preprocessing method includes filtering method, denoising algorithm and motion artifact elimination; the filtering method includes mean filtering and median filtering, and the denoising algorithm uses wavelet transform and low-pass filtering; in order to reduce motion artifacts, motion compensation algorithm or phase adjustment is used to offset the influence of motion artifacts;
[0205] Spectrum analysis module: After signal preprocessing, spectrum analysis is first performed to obtain the frequency domain characteristics of the pulse signal; Fourier transform decomposes the signal into different frequency components, which is actually to split the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal; then the pulse signal is filtered, sampled, A / D converted and other processes to become a digital signal; finally, according to discrete Fourier transform, Matlab principle software is used to calculate its instantaneous spectrum, obtain the period power, and select the total energy to be defined as 0~40H. Using the calculation of the power spectrum energy and spectrum energy ratio of the pulse signal, through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract the heart rate information from it;
[0206] Heart rate calculation module: In the frequency domain information obtained by spectrum analysis, the pulse signal is the main frequency peak. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The calculation formula for heart rate is: Heart rate (BPM) = peak frequency * 60.
[0207] Furthermore, the personnel breathing information detection unit includes:
[0208] Image processing module: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video.
[0209] The Euler image-based magnification module includes: a decomposition subunit, a first extraction subunit, an amplification subunit, a reconstruction subunit, and a second extraction subunit;
[0210] Overall process module: Each frame of the input video is spatially decomposed into multiple resolutions according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio.
Claims
1. A non-contact human heart rate and respiratory rate detection method using an unmanned aerial vehicle, characterized in that: The method includes the following steps: first, using a drone to search and locate a person, using a high-frame rate camera to collect video data of the person, and then using computer vision technology, based on the principles of face recognition and optical flow detection, by analyzing slight color changes of the facial skin, inferring the person's heart rate information, and based on image processing and changes in facial movements, by analyzing changes in facial micro-expressions, inferring the person's breathing information.
2. The non-contact human heart rate and respiratory rate detection method of drone according to claim 1, characterized in that: The specific process of inferring the heart rate information of a person is as follows: ① Signal acquisition: Based on the human video data collected by the rPPG signal, the face and facial landmarks are first detected. The pixel values within the landmarks are retained, while other pixel values are filled with 0. Then the face image is cropped and reshaped to form a K×K image. We define the i-th video stream and PPG data as x(i) and t(i), respectively, where x (i) t(i) is sampled from the distribution of tasks (x(i), t(i))~p(t). The continuous T-frame face images are aggregated into a sequence to obtain our network input data. The face sequence is paired with the PPG signal t and collected using a PPG sensor placed under the index finger. Each sample t t Whether it is aligned with each frame of the face sequence x in time t during the collection process, the output of the network is the rPPG signal y∈R T It is an estimate of the carotid-radial pulse wave velocity caused by a small time offset in the PPG signal; ②Signal extraction: After obtaining the network input data, modeling is performed through the remote heart rate estimation learning framework, which includes three modules: convolutional encoder, rPPG estimator and synthetic gradient generator. In order to infer the rPPG signal, only the convolutional encoder and rPPG estimator will be used, while the synthetic gradient generator will only be used in transductive learning; ③Signal preprocessing: After signal extraction, the rPPG signal needs to be preprocessed to reduce the impact of noise and artifacts. The signal preprocessing methods include filtering methods, denoising algorithms, and motion artifact elimination; The filtering methods include mean filtering and median filtering, and the denoising algorithm uses wavelet transform and low-pass filtering; in order to reduce motion artifacts, motion compensation algorithm or phase adjustment is used to offset the influence of motion artifacts; ④ Spectrum analysis: After signal preprocessing, spectrum analysis is first performed to obtain the frequency domain characteristics of the pulse signal; Fourier transform decomposes the signal into different frequency components, which is actually splitting the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal; then the pulse signal is filtered, sampled, A / D converted and other processes to become a digital signal; finally, according to discrete Fourier transform, Matlab principle software is used to calculate its instantaneous spectrum, obtain the period power, and select the total energy defined as 0~40H. Using the calculation of the power spectrum energy and spectrum energy ratio of the pulse signal, through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract the heart rate information from it; ⑤Heart rate calculation: In the frequency domain information obtained by spectrum analysis, the pulse signal is the main frequency peak. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The heart rate calculation formula is: Heart rate (BPM) = peak frequency * 60.
3. The non-contact human heart rate and respiratory rate detection method of drone according to claim 1, characterized in that: The steps of modeling the remote heart rate estimation learning framework are: (1) Convolutional Encoder: To extract latent features from the image stream, we use a feature extractor f modeled by CNN. θ (·), given an input stream of T frames, the convolutional encoder is shared across frames: p θ (z i |x i )=f θ (x i ), giving T independent latent feature distributions {pθ(zi|xi)}T+Ti=T, which are fed back to the rPPG estimator to model the temporal visual information of the rPPG signal; (2) The rPPG estimator is the latent features extracted from the input image stream and then passed to the rPPG estimator modeled by the LSTM-MLP module. The intuition behind the split is to separate the parameters responsible for visual modeling from those responsible for rPPG signal estimation, which is done by temporal modeling of the latent features: (3) Synthetic Gradient Generator: In order to quickly adapt the parameters of the model during deployment, a synthetic gradient generator modeled by a shallow hourglass network is introduced. ψ (·) and augmenting the long sequence backpropagation through time (BPTT) found in LSTM, which is then applied to a few-shot learning framework to generate gradients for unlabeled samples, our synthetic gradient generator attempts to backpropagate from the ordered regression loss at the output L to model the gradient at z: Our network is designed to exploit spatiotemporal information, modeling visual information through the above convolutional encoder, and then using the LSTM rPPG estimator to model the estimation of the PPG signal. We named this method Meta-rPPG. During the deployment of Meta-rPPG, the possibility of observing the input samples modeled by the model must be considered. One possible solution is to try to project the input data into the common distribution covered by the model by introducing a preprocessing step. For any preprocessing technique, it is almost impossible to consider an infinitely large distribution containing all possible scenarios during deployment. In order to cope with the shift in distribution, a transductive inference method is proposed to provide the gradient θ(·) to the convolutional encoder f during deployment.
4. The non-contact human heart rate and respiratory rate detection method of drone according to claim 3 is characterized in that: The transductive inference method generates gradients for the model's weight updates during inference by generating synthetic gradients using a generator modeled during training, which models the back-propagated gradients of the final output using the sequential loss L ORD(y,t) until the output of the feature extractor z, the prototype distance minimizer produces gradients that force out-of-distribution samples to move toward the center of in-distribution samples. It can be simply stated as: loRD ORD (y,t) as the synthetic gradient generator g ψ (z) Attempt to simulate We can observe its role in the chain rule of gradient updates of feature extractor parameters; During the learning phase of training, we can update the weights of our synthetic gradient generator by minimizing the following objective function: The weight of ψ is updated as:
5. The non-contact human heart rate and respiratory rate detection method of drone according to claim 3 is characterized in that: The proposed transductive inference method attempts to minimize the prototype distance between different tasks, assuming that the rPPG estimator h φ (·) is only responsible for the estimation of rPPG signals; the specific steps are as follows: First, each video sequence is considered as an independent task to be modeled. Then, the prototype of the task-specific latent variable is defined as: Here, T samples are continuously sampled from task or video i and the convolutional decoder is fed from p θ (z i ∣x i )=f θ (x i ) takes the average value of the latent variables generated in , and then the first global latent variable prototype is obtained: As mentioned earlier, each training iteration performs Monte Carlo sampling on N tasks or videos, so it is impossible to obtain the statistical average of the entire dataset at once. A more computationally feasible approach is to update our global latent variable prototype in an iterative manner, as shown below: By introducing the hyperparameter γ, it can be understood as a weighted average between the old term and the newly sampled global latent variable prototype. The global prototype is obtained during the learning phase of training, and the conversion gradient is generated by minimizing the loss: θ and φ corresponding to the convolutional encoder and rPPG estimator will be trained in an end-to-end manner, while the parameters of the synthetic gradient generator Ψ will be updated using the gradients backpropagated by the sequential regression loss. Ψ is updated by minimizing the synthetic loss given in; Assume that R(t), G(t), and B(t) represent the light intensity of the red, green, and blue color channels at a certain frame time t in the video. We can extract the heart rate information by calculating the pulse signal RPPG(t): RPPG(t)=R(t) / (R(t)+G(t)+B(t)) (10).
6. The non-contact human heart rate and respiratory rate detection method of drone according to claim 1 is characterized in that: The specific process of inferring the breathing information of personnel is as follows: ① Image processing: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video. ② The enlargement unit based on Euler image includes: a decomposition subunit, a first extraction subunit, an enlargement subunit, a reconstruction subunit, and a second extraction subunit; ③ Overall process: Each frame of the input video is decomposed into spatial multi-resolution according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio. For each image with the same spatial resolution in the Laplace pyramid, a time-domain bandpass filter is performed using formula (11), and the image brightness change signal B(x, t) corresponding to the breathing change signal at the spatial point position x and time t in the video channel is extracted using formula (12), where formula (11) is Wherein, I(x, t) represents the image brightness signal when the spatial point position in the video channel is x and the time is t, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes through time t, and the formula (12) is: The original image is filtered by Gaussian low-pass filtering and sampled with a step size of 2 to obtain the first layer image of the Gaussian pyramid (the 0th layer is the original image). The obtained image is filtered and sampled in the same way. After several iterations, the Gaussian pyramid can be obtained. Therefore, the Gaussian pyramid decomposes the original image into low-pass subbands. The upper layer of the Gaussian pyramid is upsampled in the obtained low-pass subbands in turn, and then the upsampled result is subtracted from the lower layer of the Gaussian pyramid to obtain the Laplacian pyramid. In the process of spatial multi-resolution decomposition, the number of pyramid layers is increased in combination with the acquired video resolution, which can achieve artifact suppression and motion amplification while improving the video signal-to-noise ratio. After completing the spatial domain multi-resolution decomposition processing, the time domain filter is used in the time domain to perform time domain filtering on the image with the same pyramid resolution of each video frame to extract the micro-motion signal of interest in the video. The object of time domain filtering is the pixel points in the video frame. The breathing changes in the video cause the corresponding pixel values to change in the same periodicity, so the cutoff frequency of the designed filter can be set according to the possible pulse frequency range of a person, the video frame rate and the Nyquist sampling theorem. The principle and algorithm of time domain processing, as well as the relationship with motion amplification can be analyzed according to the differential approximation method based on the first-order Taylor series expansion in optical flow analysis. The specific analysis of one-dimensional motion signals is shown below. The function I(x, t) represents the image brightness when the spatial point position is x and the time is t. I(x, 0) = f(x). Let the motion displacement generated after time t be δ(t), then: I(x, t) = f(x + δ(t)) (13) For the small motion signal, an appropriate amplification factor is given, and the formula (13) can be analyzed by expanding the first-order Taylor series about x, as shown in formula (14): Let the action signal to be amplified after time domain bandpass filtering be: For each image with the same spatial resolution in the Laplacian pyramid, perform time-domain bandpass filtering according to formula (14), and use formula (15) as the result of time-domain filtering, that is, extract the respiratory signal in the upper channel of the video. The cutoff frequency of the video frame time-domain filtering is determined by the respiratory frequency range of 0.1-1Hz and the video frame rate of 30FPS; The image brightness change signal corresponding to the breathing change signal amplified a times is superimposed on the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, completing the image synthesis and converting it back to the RGB space to reconstruct the video, and outputting the reconstructed video; After amplifying the signal by a (amplification factor) times, it is overlapped back to the original signal I (x, t), as shown in formula (16): Combining (14), (15), and (16), we can obtain: Expand equation (17) in the reverse direction with respect to the first-order Taylor series to obtain the image brightness signal after motion amplification: Y(x,t)≈f(x+(1+α)δ(t)) (18) By comparing equation (1) with equation (6), we can know that the motion amplitude after motion amplification is (1+α) times that of the motion amplitude without amplification. In order to prevent amplification distortion, the basebands of different spatial frequencies in the constructed pyramid should be limited by reasonable amplification factors. Assume that the spatial wavelength of the signal is Where ω is the spatial frequency of the signal, the limiting formula of the amplification factor a is shown in formula (19): The signal extracted from the filtering result is amplified according to the amplification factor relationship (19), where the amplification factor decreases with the increase of spatial frequency (the decrease of signal-to-noise ratio), that is, it gradually decreases from the top layer to the bottom layer of the pyramid, and then the amplified multi-resolution pyramid is synthesized into an image. The slight displacement of an object is mainly related to brightness. Therefore, while amplifying the respiratory change signal in the L brightness channel, suppressing the amplification of the a and b channel signals can improve the signal-to-noise ratio of the output video. According to formula (16), the amplified signal is added to the original signal, and the amplified image is superimposed on the original video frame to complete the final synthesis of the image and convert it back to RGB space. The video is reconstructed and then output. The Euler image amplification technology is applied to the human face video, and the RGB space is converted to Lab space for processing to achieve respiratory amplitude amplification. The brightness variance statistics of the pixel brightness channel of the video frame after the slight change of breathing is amplified in the time domain are calculated by the pixel brightness variance calculation formula, and the statistical results are displayed using the brightness variance grayscale map. At the same time, the video frame after the slight change of breathing is amplified is thresholded by formula (20) to generate a binary image. The size of the connected domain is calculated for the binary image after threshold segmentation, and the connected domain with the largest area is selected. The holes in the largest connected domain are detected and filled, and the skin area is segmented and extracted. The pixel brightness variance calculation formula is: where σ 2 is the brightness variance of the video frame pixel x in the time domain of the first 30 frames after the slight change of breathing is amplified, N = 30, xi represents the brightness of the pixel in the time domain, and the formula (20) is Perform a dot multiplication operation on the brightness variance grayscale map and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background, perform dynamic threshold segmentation on the skin area variance grayscale map using the fourth formula, perform grayscale erosion on the threshold segmentation result, then calculate the size of the connected domain, select the largest connected domain as the expansion object, restore the expansion object to its size before erosion, take the circumscribed rectangle of the largest connected domain in the brightness channel, and obtain the breathing rectangular area.
7. The non-contact human heart rate and respiratory rate detection method of drone according to claim 6 is characterized in that: The decomposition subunit is specifically used to perform spatial multi-resolution decomposition on each frame of the input video by using the Laplace pyramid construction principle; The first extraction subunit is specifically used to perform time-domain bandpass filtering on each image with the same spatial resolution in the Laplace pyramid through formula (11), and extract the image brightness change signal B (x, t) corresponding to the breathing change signal when the spatial point position in the video channel is x and the time is t through formula (12), wherein the formula (11) is: I(x, t) represents the image brightness signal when the spatial point position in the video channel is x and the time is t, I(x, 0) = f(x), δ(t) is the motion displacement after the spatial point passes through time t, and the formula (12) is: Where B(x, t) is the image brightness change signal corresponding to the signal at the spatial point position x and time t in the video channel; The amplifying subunit is specifically used to amplify the image brightness change signal corresponding to the breathing change signal by a factor of a through an amplification factor relationship; The reconstruction subunit is specifically used to superimpose the image brightness change signal corresponding to the respiratory change signal amplified a times to the image brightness signal I(x, t) at the spatial point position x and time t in the video channel, complete the image synthesis and convert it back to the RGB space to reconstruct the video, and output the reconstructed video; The second extraction subunit is used to perform brightness variance statistics on the brightness channel of the pixel points of the video frame after the slight breathing change is amplified in the time domain, and to express the statistical result with a brightness variance statistical grayscale map, and to extract the skin area of the video frame after the slight breathing change is amplified, and to perform a logical AND operation between the extracted skin area and the brightness variance statistical grayscale map to remove the variance of the face background, and to locate the breathing area by removing the face background variance map and image morphology processing, and to extract the breathing area.
8. The non-contact human heart rate and respiratory rate detection method of drone according to claim 7, characterized in that: The second extraction subunit comprises: The statistical module is specifically used to perform brightness variance statistics on the brightness channel of the video frame pixels after amplifying the slight changes of breathing in the time domain through the brightness variance calculation formula of the pixel points, and display the statistical results with a brightness variance grayscale map; A generating module, specifically used for generating a binary image by thresholding the video frame after amplifying the slight change of breathing through formula (22); A first selection module is specifically used to calculate the size of the connected domain of the binary image after threshold segmentation, and select the connected domain with the largest area; The extraction module is specifically used to detect and fill the holes in the maximum connected domain, segment and extract the skin area; the calculation formula for the pixel brightness variance is: where σ 2 is the brightness variance of the video frame pixel x in the time domain of the first 30 frames after the slight change of breathing is amplified, N = 30, xi represents the brightness of the pixel in the time domain, and the formula (22) is Among them, Cr and Cb are the chromaticity of red and blue respectively; The elimination module is specifically used to perform a dot multiplication operation on the brightness variance grayscale image and the skin area binary image matrix to eliminate the variance grayscale corresponding to the skin background; The second selection module is specifically used to perform dynamic threshold segmentation on the skin area variance grayscale image through the fourth formula, perform grayscale erosion on the threshold segmentation result, and then calculate the size of the connected domain, and select the largest connected domain as the expansion object, and restore the expansion object to the size before the erosion; The acquisition module is specifically used to take the circumscribed rectangle of the maximum connected domain in the brightness channel and obtain the breathing rectangular area.
9. The non-contact human heart rate and respiratory rate detection method of drone according to claim 7, characterized in that: The steps of extracting the breathing area are as follows: after completing the amplification of the small changes in breathing, the amplitude of the change of the brightness value in the time domain of the breathing area increases, and the extraction of the breathing area can be realized according to the change of the brightness value in the time domain of the pixel point of the video frame after the amplification; the object changes in the brightness channel of the pixel point at the corresponding position of the video frame during the movement, so after the amplification of the small changes in breathing, the amplitude of the brightness value of the image line corresponding to the breathing part changes significantly compared with other skin areas, so the brightness values of the pixels in the first 1 second of the video are statistically analyzed according to the variance calculation formula, and the statistical results are represented by the brightness variance statistical grayscale map, wherein the grayscale value is higher, indicating that the brightness of the pixel point changes greatly, and at the same time, the video frame after the amplification of the small changes in breathing is subjected to skin area extraction, and the extraction result and the brightness variance statistical grayscale map are logically ANDed to remove the variance of the face background, so as to avoid the possible influence of the complex motion background and the skin edge part on the subsequent processing, so as to further determine the position where the breathing produces deformation; finally, the breathing area is located according to the background removal variance map and the image morphological processing, so as to realize the extraction of the breathing area.
10. A non-contact human heart rate and respiratory rate detection system for drones, characterized in that: include The drone video acquisition unit uses a drone to search and locate personnel, and then uses a high-frame-rate camera to collect video data of personnel; The heart rate detection unit uses computer vision technology to analyze the slight color changes of the facial skin based on the collected video data of the person, and infers the heart rate information of the person based on the principle of face recognition and optical flow detection. The breathing information detection unit uses computer vision technology to analyze the slight color changes of the facial skin based on the collected video data of the personnel, based on the principle of personnel face recognition and optical flow detection, to infer the heart rate information of the personnel, and to infer the breathing information of the personnel by analyzing the changes of facial micro-expressions based on image processing and changes in facial movements of the personnel; The personnel heart rate detection unit comprises: Signal acquisition module: Capture video at a frame rate of each frame through the camera on the drone and record the reflection of light on the facial skin. Select a ROI in the video sequence to capture the skin color changes caused by heartbeat; Signal extraction module: After obtaining the network input data, modeling is performed through the remote heart rate estimation learning framework, which includes three modules: convolutional encoder, rPPG estimator and synthetic gradient generator. In order to infer the rPPG signal, only the convolutional encoder and rPPG estimator will be used, while the synthetic gradient generator will only be used in transductive learning; Signal preprocessing module: After signal extraction, the rPPG signal needs to be preprocessed to reduce the influence of noise and artifacts. The signal preprocessing method includes filtering method, denoising algorithm and motion artifact elimination; the filtering method includes mean filtering and median filtering, and the denoising algorithm uses wavelet transform and low-pass filtering; in order to reduce motion artifacts, motion compensation algorithm or phase adjustment is used to offset the influence of motion artifacts; Spectrum analysis module: After signal preprocessing, spectrum analysis is first performed to obtain the frequency domain characteristics of the pulse signal; Fourier transform decomposes the signal into different frequency components, which is actually to split the signal into a combination of many sine waves with different amplitudes and frequencies, so that we can better understand the frequency characteristics and periodicity of the signal; then the pulse signal is filtered, sampled, A / D converted and other processes to become a digital signal; finally, according to discrete Fourier transform, Matlab principle software is used to calculate its instantaneous spectrum, obtain the period power, and select the total energy to be defined as 0~40H. Using the calculation of the power spectrum energy and spectrum energy ratio of the pulse signal, through spectrum analysis, we can observe the peak fluctuations in the frequency range and extract the heart rate information from it; Heart rate calculation module: In the frequency domain information obtained by spectrum analysis, the pulse signal is the main frequency peak. By calculating the peak position, we can calculate the heart rate. A common method is to select the main frequency peak position as the heart rate estimate. The calculation formula of the heart rate is: heart rate (BPM) = peak frequency * 60; The personnel breathing information detection unit comprises: Image processing module: This image processing method decomposes each frame of the video into a Laplace pyramid. The top layer of the pyramid represents the most subtle edges, details, and noise, and the bottom layer represents the DC signal. This method performs bandpass filtering on each pixel in each layer of the pyramid signal. Each layer of the filtered signal can be multiplied by a specific magnification and added to the original signal before frequency domain filtering to obtain a new pyramid. Each layer of the new pyramid is the final amplified video. The Euler image-based magnification module includes: a decomposition subunit, a first extraction subunit, an amplification subunit, a reconstruction subunit, and a second extraction subunit; Overall process module: Each frame of the input video is spatially decomposed into multiple resolutions according to the Laplace pyramid construction principle described above. Each frame corresponds to a Laplace pyramid, in which the original image as the bottom layer of the pyramid has the highest spatial frequency. The higher the level in the multi-resolution pyramid, the lower the spatial frequency and the higher the signal-to-noise ratio.
