RPPG signal noise filtering method and system based on cardiac periodic motion
By constructing an rPPG signal model based on cardiac cycle motion and performing linear regression solution, the problem of noise interference in rPPG technology was solved, and efficient signal denoising and accuracy improvement were achieved.
Patent Information
- Application Number
- CN202410779166.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-08
AI Technical Summary
Due to interference from factors such as light changes, skin color, and motion artifacts, remote photoplethysmography (rPPG) technology affects measurement accuracy and suffers from severe noise interference, which limits its application.
The rPPG signal noise filtering method based on cardiac periodic motion obtains the initial signal, builds a signal model and solves it with linear regression to obtain the pulse feature vector, thereby calculating the denoised target signal, reducing noise interference and improving the accuracy of signal processing. .
This method can quickly reconstruct the rPPG signal, reduce noise interference, improve the accuracy of signal processing, optimize the signal processing strategy, and enhance the accuracy of measurement.
Smart Images

Figure CN118747265A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a method and system for filtering noise from an rPPG signal based on cardiac cycle motion. Background Art
[0002] Remote Photoplethysmography (rPPG) is a new type of pulse wave signal detection technology. It uses an ordinary video camera or a special imaging device to capture and analyze the changes in light reflected or transmitted from the skin surface to extract the pulse signal, thereby realizing non-contact measurement of the pulse wave signal. In the related art, the measurement accuracy of the rPPG technology may be affected by interference from factors such as light changes, skin color, and motion artifacts. In summary, the technical problems existing in the related art need to be improved. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a method and system for rPPG signal noise filtering based on cardiac cycle motion, which can reduce noise interference and improve measurement accuracy.
[0004] To achieve the above object, an embodiment of the present application provides a method for filtering rPPG signal noise based on cardiac cycle motion, the method comprising the following steps:
[0005] Obtaining initial rPPG signal;
[0006] Performing model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model;
[0007] Performing linear regression solution processing on the signal model to obtain a pulse feature vector;
[0008] The denoised target rPPG signal is calculated based on the pulse feature vector.
[0009] In some embodiments, the model building process of the initial rPPG signal according to the cardiac cycle to obtain a signal model comprises the following steps:
[0010] Modeling the changes in arterial blood vessels according to the heart beat cycle to obtain a pulse waveform function;
[0011] Modeling the heartbeat changes according to the heart beat cycle to obtain a pulse train function;
[0012] The signal model is constructed based on the pulse waveform function and the pulse train function.
[0013] In some embodiments, the modeling of the heartbeat changes according to the heart beat cycle to obtain the pulse train function includes the following steps:
[0014] Performing peak detection processing on the initial rPPG signal according to the cardiac cycle to obtain a peak position;
[0015] A sparse function construction process is performed according to the peak position to obtain the pulse train function.
[0016] In some embodiments, constructing a signal model according to the pulse waveform function and the pulse train function comprises the following steps:
[0017] Performing convolution operation on the pulse waveform function and the pulse train function to obtain an operation result;
[0018] Adding noise interference to the calculation result to construct a mathematical model;
[0019] The mathematical model is subjected to discrete signal conversion processing to obtain the signal model.
[0020] In some embodiments, performing linear regression on the signal model to obtain the pulse feature vector comprises the following steps:
[0021] Analytically processing the signal model to obtain a pulse train function;
[0022] Performing shift and expansion processing on the pulse train function to obtain a pulse cycle matrix;
[0023] The signal model is solved according to the pulse cycle matrix to obtain the pulse feature vector.
[0024] In some embodiments, solving the signal model according to the pulse cycle matrix to obtain the pulse feature vector includes the following steps:
[0025] Get the preset threshold value;
[0026] Performing mean square error minimization processing on the signal model according to the pulse cycle matrix to obtain a mean square error function;
[0027] Performing vector solution processing on the mean square error function to obtain a solution vector;
[0028] Performing error calculation processing on the mean square error function according to the solution vector to obtain an error result;
[0029] When the error result is greater than the preset threshold, returning to the step of performing vector solution processing on the mean square error function to obtain a solution vector;
[0030] When the error result is less than or equal to the preset threshold, the solution vector is determined as the pulse feature vector.
[0031] In some embodiments, obtaining the initial rPPG signal comprises the following steps:
[0032] Obtain face video through camera acquisition;
[0033] Performing region of interest extraction processing on the face video to obtain a face region;
[0034] The green light channel data of all pixels in the face area are spatially averaged to obtain the initial rPPG signal.
[0035] To achieve the above object, another aspect of the embodiment of the present application provides a rPPG signal noise filtering system based on cardiac cycle motion, the system comprising:
[0036] The first module is used to obtain the initial rPPG signal;
[0037] The second module is used to perform model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model;
[0038] The third module is used to perform linear regression solution processing on the signal model to obtain a pulse feature vector;
[0039] The fourth module is used to calculate the denoised target rPPG signal according to the pulse feature vector.
[0040] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0041] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0042] The embodiments of the present application include at least the following beneficial effects: The present application provides a method and system for filtering noise of rPPG signals based on cardiac cycle motion. The scheme obtains an initial rPPG signal, and performs model construction processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model. The signal model can be constructed based on the periodicity of cardiac pulsation, thereby improving the accuracy of signal processing and optimizing the signal processing strategy. In addition, the scheme performs linear regression solution processing on the signal model to obtain a pulse feature vector; the denoised target rPPG signal is calculated based on the pulse feature vector, and the rPPG signal can be quickly reconstructed to reduce noise interference and improve the accuracy of signal processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of a method for filtering rPPG signal noise based on cardiac cycle motion provided in an embodiment of the present application;
[0044] Figure 2 is a schematic diagram of an original rPPG signal provided in an embodiment of the present application;
[0045] Figure 3 This is a schematic diagram of a pulsating train function generation provided in an embodiment of the present application;
[0046] Figure 4 is a schematic diagram of iterative updating of a feature vector provided in an embodiment of the present application;
[0047] Figure 5 is a schematic diagram of a rPPG signal after filtering and denoising provided in an embodiment of the present application;
[0048] Figure 6 It is a structural schematic diagram of a rPPG signal noise filtering system based on cardiac cycle motion provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of systems and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0050] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0051] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0053] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.
[0054] 1) Photoplethysmography (PPG) is a non-invasive optical technology that uses optical technology to detect the heart pulse waveform based on the absorption of light of specific wavelengths by human blood, and then observe the operation of the heart. When blood flows through body tissues, it absorbs a certain amount of light, and this absorption amount changes with the volume of blood flowing in the blood vessels. At the technical implementation level, PPG technology uses light-emitting diodes to emit light to the skin. Part of the light will be absorbed by the hemoglobin in the blood, while the other part of the light will pass through the skin and tissues and be received by photosensitive detectors. As the heart pumps blood periodically, the blood flow in the blood vessels will change, causing the amount of light reflected and transmitted to change periodically. This change will be captured by the photosensitive detector and converted into an electrical signal, thereby generating a periodically changing pulse wave signal.
[0055] 2) Remote Photoplethysmography (rPPG) is a new type of pulse wave signal detection technology. It uses an ordinary video camera or a special imaging device to capture and analyze the changes in light reflected or transmitted from the skin surface to extract the pulse signal, thereby achieving non-contact measurement of the pulse wave signal.
[0056] Pulse is one of the key physiological indicators for judging whether the heart is healthy, and the rhythm of the pulse can reflect the rhythm of the heart. By checking the waveform, rate, strength and rhythm of the pulse, the working state of the heart can be evaluated, and it can also further indicate whether there are heart diseases such as arrhythmia and heart valve problems. The current method of monitoring pulse is photoplethysmography (PPG technology), which has the advantages of non-invasiveness and convenience. However, PPG technology requires the sensor to be placed directly on the surface of the skin, and long-term wearing may cause allergic reactions to the skin of some people. While rPPG technology has broad application prospects in theory, it still faces some challenges in practical applications. The measurement accuracy of rPPG technology may be affected by interference from factors such as light changes, skin color, and motion artifacts. Compared with traditional contact PPG technology, the pulse wave signal obtained by rPPG technology has more extensive and more serious noise interference, which also limits the application of rPPG technology.
[0057] In view of this, an embodiment of the present application provides a method and system for filtering noise of rPPG signals based on cardiac cycle motion. The scheme obtains an initial rPPG signal, and performs model construction processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model. The signal model can be constructed based on the periodicity of cardiac pulsation, thereby improving the accuracy of signal processing and optimizing the signal processing strategy. In addition, the scheme performs linear regression solution processing on the signal model to obtain a pulse feature vector; the denoised target rPPG signal is calculated based on the pulse feature vector, and the rPPG signal can be quickly reconstructed to reduce noise interference and improve the accuracy of signal processing.
[0058] The embodiment of the present application provides a method for filtering noise of rPPG signals based on cardiac cycle motion, which relates to the field of signal processing technology. The embodiment of the present application provides a method for filtering noise of rPPG signals based on cardiac cycle motion, which can be applied to a terminal, a server, or software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a medical device, a remote monitoring device, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a method for filtering noise of rPPG signals based on cardiac cycle motion, etc., but is not limited to the above forms.
[0059] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0060] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0061] Figure 1 is an optional flow chart of a method for filtering rPPG signal noise based on cardiac cycle motion provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0062] Step S101, obtaining an initial rPPG signal;
[0063] Step S102, performing model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model;
[0064] Step S103, performing linear regression solution processing on the signal model to obtain a pulse feature vector;
[0065] Step S104, calculating and obtaining a denoised target rPPG signal according to the pulse feature vector.
[0066] In steps S101 to S104 shown in the embodiment of the present application, in order to solve the problem of large noise interference in the pulse wave signal measured by rPPG technology, a signal model is obtained by modeling the rPPG signal based on the cardiac cycle pulsation mechanism, and a linear regression is performed based on the signal model according to a signal denoising recursive algorithm to obtain a pulse feature vector, so as to calculate the denoised target rPPG signal according to the pulse feature vector, so as to quickly reconstruct the rPPG signal, reduce noise interference, and improve the accuracy of signal processing.
[0067] In step S101 of some embodiments, obtaining the initial rPPG signal includes the following steps:
[0068] Obtain face video through camera acquisition;
[0069] Performing region of interest extraction processing on the face video to obtain a face region;
[0070] The green light channel data of all pixels in the face area are spatially averaged to obtain the initial rPPG signal.
[0071] In the embodiment of the present application, the face video is acquired by the camera, and the video image of the skin area is clearly captured by the camera device for subsequent analysis. The camera includes but is not limited to a computer camera. Among them, the rPPG signal is obtained by monitoring the changes in the color of the facial skin of the subject, which utilizes the absorption and reflection spectral characteristics of the skin tissue under blood transport. When the heart beats, the blood causes slight changes in the color of the facial skin, which in turn affects the skin's absorption and reflection of light. In the embodiment of the present application, a sensor such as a camera can be used to capture the periodic changes in skin color caused by the cardiac cycle, and the skin on the face or arm is usually selected as the capture area. Therefore, the face video is acquired by the camera, and then the face area in each frame of the acquired face video is extracted and processed as the region of interest to obtain the face area. Since hemoglobin in the blood is more sensitive to the absorption of green light, the data of the green light channel (usually referring to the G channel in the RGB color space) is often used to extract the rPPG signal. In the embodiment of the present application, the green light channel data of all pixels in the face area of each frame of the picture are spatially averaged to obtain the original rPPG signal, that is, the initial rPPG signal. Specifically, the selected facial area can be converted from the original RGB color space to a space containing only the green light channel, or all channels can be retained but only the green light channel can be used for analysis. Then, the sum of all green light channel values in the face area is calculated and divided by the number of pixels to obtain the average value, which represents the average green light intensity of the face area in the image frame. Repeat the above steps and perform the same operation on each frame in the face video to obtain a time-varying average green light intensity sequence, which is the initial rPPG signal. Figure 2 , Figure 2 This is a schematic diagram of an original rPPG signal provided by an embodiment of the present application. It can be seen from the figure that the original rPPG signal has low-frequency noise caused by slight shaking of the body, which causes changes in light brightness. There are also random signals caused by devices such as optical sensors, which appear as high-frequency glitches. These noises cause the distortion of each pulse wave waveform, thereby reducing the accuracy of subsequent physiological parameter measurements. The embodiment of the present application obtains the initial rPPG signal through video acquisition, which provides a data basis for subsequent signal noise filtering processing.
[0072] In step S102 of some embodiments, the model building process is performed on the initial rPPG signal according to the cardiac cycle to obtain a signal model, including the following steps:
[0073] Modeling the changes in arterial blood vessels according to the heart beat cycle to obtain a pulse waveform function;
[0074] Modeling the heartbeat changes according to the heart beat cycle to obtain a pulse train function;
[0075] The signal model is constructed based on the pulse waveform function and the pulse train function.
[0076] In the embodiment of the present application, since the generation of the pulse signal is due to the periodic contraction and relaxation of the human heart, when the heart contracts, the left atrium will send blood into the aorta, and then the blood will flow through the arteries throughout the body through the blood vessels. The arteries are composed of elastic fibers and have a certain elasticity. When a large amount of blood flows into the arteries, its pressure will increase, causing the caliber of the arteries to increase. In the case of diastole, no blood will flow into the aorta, and the diameter of the arteries will decrease due to their elasticity. Therefore, the pulse signal is also periodic. Assuming that the function of the arterial change signal caused by each heart beat cycle is p(t), the arterial change is modeled according to the heart beat cycle to obtain the pulse waveform function p(t), and the continuous heart beat signal can be obtained by the pulse train function δ T (t) represents that the pulse train function δ is obtained by modeling the heartbeat changes according to the heart beat cycle. T (t). Finally, a signal model is constructed based on the pulse waveform function and the pulse train function. The embodiment of the present application can model the rPPG signal based on the cardiac cycle pulsation mechanism, and can more accurately describe and predict the behavior and characteristics of the rPPG signal, which helps to reduce the noise and interference caused by factors such as ambient lighting and head movement, thereby improving the accuracy of measuring physiological indicators such as heart rate and respiratory rate.
[0077] In some embodiments, the modeling of the heartbeat changes according to the heart beat cycle to obtain the pulse train function includes the following steps:
[0078] Performing peak detection processing on the initial rPPG signal according to the cardiac cycle to obtain a peak position;
[0079] A sparse function construction process is performed according to the peak position to obtain the pulse train function.
[0080] In the embodiment of the present application, the peak value detection processing is performed on the initial rPPG signal according to the cardiac cycle, referring to Figure 3 , Figure 3 Schematic diagram of a pulse train function generation provided by an embodiment of the present application, detecting the local peak value of each pulse wave from the original rPPG signal, Figure 3 It is marked with a circle. From a physiological point of view, the periodicity of the pulse wave originates from the periodic motion of the heart. The time when the peak appears is related to the heart beat time, which reflects each heart beat. Therefore, the embodiment of the present application constructs a pulse train function δ T [k] is used to characterize the moment of the pulse peak, such as Figure 3As shown. Pulsation train function δ T [k] is composed of a large number of "0" and sparse "1". When the pulse appears, it is represented as "1", corresponding to the pulse movement caused by a heart beat cycle. Figure 3 It is represented by the pulse peak, and other non-peak moments are represented by "0". The construction of the pulse train function is based on the mathematical model of the pulse generation mechanism. In addition, the embodiment of the present application designs the function as a sparse function. This is because a large number of "0"s are beneficial to reducing the amount of algorithm calculations, thereby facilitating the transplantation of the algorithm to embedded devices with limited computing resources. The embodiment of the present application models the changes in heartbeat according to the cardiac cycle to obtain a pulse train function, which can provide a data basis for subsequent rPPG signal modeling, and by constructing a sparse pulse train function, it can reduce the amount of algorithm calculations and improve the efficiency of signal processing.
[0081] In some embodiments, constructing a signal model according to the pulse waveform function and the pulse train function comprises the following steps:
[0082] Performing convolution operation on the pulse waveform function and the pulse train function to obtain an operation result;
[0083] Adding noise interference to the calculation result to construct a mathematical model;
[0084] The mathematical model is subjected to discrete signal conversion processing to obtain the signal model.
[0085] In the embodiment of the present application, the pulse waveform function and the pulse train function are convolved to obtain the operation result. Specifically, the obtained initial rPPG signal, that is, the continuous pulse signal r(t), can be regarded as the pulse train function δ T (t) The output signal under excitation, the formula of convolution operation is as follows:
[0086] r(t)=p(t)*δ T (t);
[0087] The symbol “*” indicates the convolution operation, and the pulsating string function δ(t) represents each beating signal that causes heart movement, T represents the pulsation period, and t represents time.
[0088] Due to the interference of factors such as light changes, skin color, and motion artifacts, in addition to the pulse signal, a large amount of noise is also aliased in the measured rPPG signal. Therefore, considering the influence of the above noise, the mathematical model of the modified rPPG model is obtained as follows:
[0089] r(t)=p(t)*δ T (t)+n(t);
[0090] The noise component n(t) represents a collection of various types of noise, including low-frequency components that may be caused by subtle body movements due to breathing, as well as high-frequency components such as random noise. The above noise is different in different environments, especially the effect of light on the signal, which usually manifests as time-varying broadband noise, so it is difficult to filter out the noise using traditional bandpass filters.
[0091] Among them, after defining the mathematical model of the rPPG signal based on the periodicity of the heart beat, the continuous signal needs to be converted into a discrete signal before it can be calculated using a computer. Therefore, the obtained mathematical model is converted into a discrete signal to obtain the final signal model. The expression of the signal model is as follows:
[0092]
[0093] Wherein, k represents a discrete time point after sampling the continuous signal. The embodiment of the present application can improve the efficiency of signal processing by constructing a signal model.
[0094] In some embodiments, performing linear regression on the signal model to obtain the pulse feature vector comprises the following steps:
[0095] Analytically processing the signal model to obtain a pulse train function;
[0096] Performing shift and expansion processing on the pulse train function to obtain a pulse cycle matrix;
[0097] The signal model is solved according to the pulse cycle matrix to obtain the pulse feature vector.
[0098] In the embodiment of the present application, the rPPG signal r[k] can be detected after video acquisition processing, and the pulse train function δ reflecting the heart cycle beat is constructed from the peak position. T [k], then, how to remove noise n[k] from the rPPG signal r[k] can be converted into the problem of solving the optimal solution r[k] of the linear regression model. The signal model is converted into a matrix form as follows:
[0099] r=Δ T p+n;
[0100] Where p is the vector form of the pulse waveform function p[k], which represents the pulse feature vector. T [k] is expanded to the pulse period matrix Δ by shifting T , where each column of data is a vector δ T The embodiment of the present application defines a vector is the optimal solution of the matrix model in the sense of minimum mean square error. The expression of the optimal solution is as follows:
[0101]
[0102] The pulse characteristic vector can be obtained by solving the signal model according to the pulse cycle matrix. The embodiment of the present application is based on the pulse from the physiological mechanism of heart beat to construct a signal model of rPPG signal. The characteristic of this model is to use the pulse train function δ T [k] is used to characterize the periodicity of the rPPG signal, and δ T [k] The expanded matrix Δ T It is a sparse matrix, so we can design a recursive method suitable for computer calculation to solve and obtain the optimal eigenvector So we can combine the pulse cycle matrix Δ T , and obtain the denoised rPPG signal The embodiment of the present application can effectively remove low-frequency and high-frequency noise, making the filtered rPPG signal clean and clear, thereby improving the efficiency of signal processing.
[0103] In some embodiments, solving the signal model according to the pulse cycle matrix to obtain the pulse feature vector includes the following steps:
[0104] Get the preset threshold value;
[0105] Performing mean square error minimization processing on the signal model according to the pulse cycle matrix to obtain a mean square error function;
[0106] Performing vector solution processing on the mean square error function to obtain a solution vector;
[0107] Performing error calculation processing on the mean square error function according to the solution vector to obtain an error result;
[0108] When the error result is greater than the preset threshold, returning to the step of performing vector solution processing on the mean square error function to obtain a solution vector;
[0109] When the error result is less than or equal to the preset threshold, the solution vector is determined as the pulse feature vector.
[0110] In the embodiment of the present application, a preset threshold is obtained, and the preset threshold is used to compare with the mean square error result, wherein the preset threshold can be set to a certain proportion of the standard deviation of the target variable, such as 10% or 20%, and can be adjusted according to the actual situation. The signal model is processed by minimizing the mean square error according to the pulse cycle matrix to obtain the mean square error function, and the expression of the mean square error function is as follows:
[0111] E(p)=(r-Δ T p) T (r-Δ T p);
[0112] Then the mean square error function is vector-solved, the mean square error function is differentiated and the derivative is set to zero, as shown in the following formula:
[0113]
[0114] The solution vector p can be calculated, and then the mean square error value is calculated according to the calculated solution vector to obtain the error result, and the error result is compared with the preset threshold. When the error result is greater than the preset threshold, the process returns to the step of performing vector solution processing on the mean square error function to obtain the solution vector; when the error result is less than or equal to the preset threshold, the solution vector is determined as the final pulse feature vector. The embodiment of the present application obtains the pulse feature vector by calculation, and can reconstruct the rPPG signal in combination with the pulse train function, thereby filtering out the interference of noise and improving the accuracy of signal processing.
[0115] Below, in conjunction with specific application examples, the scheme of the embodiment of the present application is introduced and explained in detail: The embodiment of the present application performs noise filtering on the rPPG signal based on the cardiac cycle motion, which can improve the efficiency and accuracy of signal processing and is applied to application scenarios such as remote health monitoring and unconstrained physiological parameter measurement. Specifically, the face video is first collected through the camera, and then the green light channel data of all pixels in the face area of each frame of the picture are spatially averaged to obtain the initial rPPG signal. Then, the local peak value of each pulse wave is detected from the initial rPPG signal, and the pulse train function δ is constructed. T [k] is used to characterize the moment of the pulse wave peak, thereby constructing a model of the initial rPPG signal based on the cardiac cycle to obtain a signal model. In order to adapt to the use of matrix operations, the present embodiment of the application shifts the pulse train function δ T [k] is used to construct the pulse cycle matrix ΔT. The specific operation is: the first column of the matrix is the pulse train function δ T [k], then δ T [k] shifts one bit to the left to become δ T [k-1], and use this as the second column; and so on, shifting left by n bits becomes δ T[kn], taking this as the n+1th column. Next, the embodiment of the present application generates a characteristic vector of the pulse and initializes it. From the established signal model, each pulsation cycle will generate a pulse wave excitation signal. This excitation signal is represented by a characteristic vector, and its length should be slightly larger than a pulse cycle time. In the embodiment of the present application, the vector length is defined as 46 sampling intervals. The initial value of the vector can be set arbitrarily. In this case, the initial value is set to 0, so it is a vector composed of 46 "0". The algorithm continuously iterates and updates the characteristic vector in a recursive manner, and also requires a parameter to adjust the update speed. In the embodiment of the present application, the value is 0.06. After initializing the above variables, the characteristic vector can be continuously iterated and calculated based on the pulse characteristic vector, and finally the mean square error is made less than the preset threshold, so as to obtain the optimal characteristic vector. The iterative update process of the eigenvector value is as follows Figure 4 As shown, Figure 4 is a schematic diagram of an iterative update of a feature vector provided in an embodiment of the present application, according to Figure 4 It can be seen that the algorithm has only undergone 5 iterations. The signal already has the general outline of a pulse wave cycle signal, which also shows that the calculation method proposed in the embodiment of the present application can quickly reconstruct the rPPG signal. Later, combined with the pulse cycle matrix Δ T , and obtain the denoised rPPG signal like Figure 5 As shown, Figure 5 is a schematic diagram of a filtered and denoised rPPG signal provided in an embodiment of the present application. Figure 2 In the initialization rPPG signal, the slowly changing low-frequency drift signal in the original signal has been filtered out, and the denoised rPPG signal is pulled back to a stable level value; similarly, the amplitude of the rapidly changing burr signal in the original signal is also effectively suppressed, and the denoised rPPG signal can clearly show the characteristic wave of the pulse. The method proposed in the embodiment of the present application can effectively remove low-frequency and high-frequency noise, so that the filtered rPPG signal is clean and clear, with a fast convergence speed, which is very suitable for deployment in embedded devices, and can reduce noise interference, thereby improving the accuracy of measurement.
[0116] See also Figure 6 The embodiment of the present application further provides a system for removing noise from an rPPG signal based on cardiac cycle motion, which can implement the above-mentioned method for removing noise from an rPPG signal based on cardiac cycle motion. The system comprises:
[0117] The first module 601 is used to obtain an initial rPPG signal;
[0118] The second module 602 is used to perform model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model;
[0119] The third module 603 is used to perform linear regression solution processing on the signal model to obtain a pulse feature vector;
[0120] The fourth module 604 is used to calculate the denoised target rPPG signal according to the pulse feature vector.
[0121] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0122] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned method for filtering rPPG signal noise based on cardiac cycle motion when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0123] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0124] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned rPPG signal noise filtering method based on cardiac cycle motion.
[0125] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0126] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0127] The embodiment of the present application provides a method and system for filtering noise of rPPG signals based on cardiac cycle motion. The scheme obtains an initial rPPG signal, and performs model construction processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model. The signal model can be constructed based on the periodicity of cardiac pulsation, thereby improving the accuracy of signal processing and optimizing the signal processing strategy. In addition, the scheme performs linear regression solution processing on the signal model to obtain a pulse feature vector; the denoised target rPPG signal is calculated based on the pulse feature vector, and the rPPG signal can be quickly reconstructed to reduce noise interference and improve the accuracy of signal processing.
[0128] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0129] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0130] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0131] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0132] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0133] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0134] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0135] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0138] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for filtering noise from rPPG signals based on cardiac cycle motion, characterized in that: The method comprises the following steps: Obtaining initial rPPG signal; Performing model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model; Performing linear regression solution processing on the signal model to obtain a pulse feature vector; The denoised target rPPG signal is calculated based on the pulse feature vector.
2. The method according to claim 1, characterized in that The model building process is performed on the initial rPPG signal according to the cardiac cycle to obtain a signal model, comprising the following steps: Modeling the changes in arterial blood vessels according to the heart beat cycle to obtain a pulse waveform function; Modeling the heartbeat changes according to the heart beat cycle to obtain a pulse train function; The signal model is constructed based on the pulse waveform function and the pulse train function.
3. The method according to claim 2, characterized in that The modeling of the heartbeat changes according to the heart beat cycle to obtain the pulse train function includes the following steps: Performing peak detection processing on the initial rPPG signal according to the cardiac cycle to obtain a peak position; A sparse function construction process is performed according to the peak position to obtain the pulse train function.
4. The method according to claim 2, characterized in that: The signal model is constructed according to the pulse waveform function and the pulse train function, comprising the following steps: Performing convolution operation on the pulse waveform function and the pulse train function to obtain an operation result; Adding noise interference to the calculation result to construct a mathematical model; The mathematical model is subjected to discrete signal conversion processing to obtain the signal model.
5. The method according to claim 1, characterized in that The signal model is subjected to linear regression solution processing to obtain a pulse feature vector, comprising the following steps: Analytically processing the signal model to obtain a pulse train function; Performing shift and expansion processing on the pulse train function to obtain a pulse cycle matrix; The signal model is solved according to the pulse cycle matrix to obtain the pulse feature vector.
6. The method according to claim 5, characterized in that The signal model is solved according to the pulse cycle matrix to obtain the pulse feature vector, comprising the following steps: Get the preset threshold value; Performing mean square error minimization processing on the signal model according to the pulse cycle matrix to obtain a mean square error function; Performing vector solution processing on the mean square error function to obtain a solution vector; Performing error calculation processing on the mean square error function according to the solution vector to obtain an error result; When the error result is greater than the preset threshold, returning to the step of performing vector solution processing on the mean square error function to obtain a solution vector; When the error result is less than or equal to the preset threshold, the solution vector is determined as the pulse feature vector.
7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of the initial rPPG signal comprises the following steps: Obtain face video through camera acquisition; Performing region of interest extraction processing on the face video to obtain a face region; The green light channel data of all pixels in the face area are spatially averaged to obtain the initial rPPG signal.
8. A rPPG signal noise filtering system based on cardiac cycle motion, characterized in that: The system comprises: The first module is used to obtain the initial rPPG signal; The second module is used to perform model building processing on the initial rPPG signal according to the cardiac cycle to obtain a signal model; The third module is used to perform linear regression solution processing on the signal model to obtain a pulse feature vector; The fourth module is used to calculate the denoised target rPPG signal according to the pulse feature vector.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
