The invention relates to the technical field of wireless sensing, in particular to a contactless breathing or heartbeat detection method.
With the transformation of life style in human society and the development of science and technology, people pay more attention to health and have a strong interest in the detection of ubiquitous vital signs. Traditional vital signs monitoring methods require wearing special instruments, such as bracelets or pulse oximeters. These technologies are inconvenient and uncomfortable to use. The contactless breathing and heartbeat detection scheme based on Wi-Fi wireless sensing, non-contact, easy to deploy and low-cost long-term vital signs monitoring is very attractive. Contactless breathing and heartbeat detection can be widely used in family scenes and car scenes, and can effectively detect the breathing and heartbeat of the measured target.
In the prior art, based on the concept of Fresnel zone, the amplitude information of CSI is usually used for a contactless breathing and heartbeat detection. As the closest prior art of the invention, the invention patent, a method for detecting human respiration based on Wi-Fi channel state signals (publication number CN109998549A), provides a solution. A channel state signal data acquisition platform is built through symmetrically arranged Wi-Fi access points and monitoring points, and a Fresnel field is established. The human body is located between the Wi-Fi access points and the monitoring points. Based on the Hampel filtering algorithm, the outliers are filtered out, and the subcarrier with the largest variance is selected. The CSI signal of the selected subcarrier is decomposed into components at different scales by using multi-resolution discrete wavelet transform, from which the human respiratory frequency is extracted.
Although this technology has realized the detection of human respiratory rate and its deployment is simple, there are still some problems. For example, in the above scheme, only the commonly used filtering algorithm, such as Hampel algorithm, is used to filter out abnormal values. In the filtering stage, environmental factors and the distribution of errors are not considered, which will cause that small errors can only be filtered out, and the filtered subcarrier signals will still have interference. Taking the automobile usage scene as an example, using Wi-Fi signals to detect vital signs will be affected by dynamic noise in the environment. For example, when a car turns a corner, it will bring big errors when it passes through the speed bump. These big errors can be filtered out by the conventional filtering algorithm in the detection of vital signs such as breathing and heartbeat. However, the engine jitter or the tiny jitter caused by the car passing through the gravel road always exists, and the filtering effect of such small errors by the conventional filtering algorithm is not good, which makes the extracted vital signs signals inaccurate. Therefore, the scheme in the prior art has high requirements on the environment, can not avoid the introduction of small errors, and can not adapt to various practical application scenarios.
The purpose of the invention is to overcome the problem that the conventional filtering algorithm mentioned above cannot filter out tiny errors, improve the classical Kalman filtering algorithm, replace the second norm in the Kalman filtering algorithm with a Huber objective function (including the first norm and the second norm), balance the big error and the small error, and improve the classical Kalman filtering algorithm by using the Huber objective function, so that the human breathing and heartbeat detection method based on Wi-Fi channel state information is more robust and can be applied to various scenarios. Therefore, a contactless breathing or heartbeat detection method is proposed.
In order to achieve the above object, the present invention provides the following technical scheme:
A contactless breathing or heartbeat detection method, including the following steps:
As a preferred scheme of the present invention, in step S3, the Huber-Kalman filtering algorithm uses the Huber objective function to update the formula of the Kalman filtering algorithm, specifically including the following steps:
The iterative calculation process of Kalman equation is modified by Huber objective function, and the input vital sign waveform signal is filtered.
Huber objective function divides the error into two parts, including big error and small error. Big error refers to the error value that deviates from the real value and is greater than the big error threshold, and small error refers to the error value that fluctuates within the small error threshold based on the real value.
Iterative calculation means that the optimal estimated value at the current moment is determined by the optimal estimated value calculated according to Kalman update equation at the previous moment and the observed value calculated according to Huber objective function at the current moment.
As a preferred scheme of the present invention, in step S3, the prediction equation based on Huber objective function is expressed as:
Kalman update equation is:
Where k represents the kth moment; a represents the threshold between a big error and a small error; {circumflex over (x)}k− represents the predicted value at moment k, and {circumflex over (x)}k-1 represents the optimal estimated value at moment k−1; zk is the input data; uk-1 represents the random noise in the state transition process; vk represents measurement noise; Q represents the covariance of process noise; R represents the measurement noise covariance; A represents the state transition coefficient; B represents the control input coefficient; H represents the measurement coefficient; ek stands for posterior error; ek− represents prior error; ρa− (ek−) represents a prior error function; ρa(ek) represents a posterior error function; Kk stands for Kalman gain.
As a preferred scheme of the present invention, step S3 further includes detecting the environmental noise level in real time, and adjusting the threshold between the big error and the small error according to the environmental noise level.
As a preferred scheme of the present invention, step S4 specifically includes the following steps:
As a preferred scheme of the present invention, step S4 specifically includes the following steps:
As a preferred scheme of the present invention, when the wireless signal is a millimeter wave radar signal, step S1 specifically includes the following steps:
As a preferred scheme of the present invention, the range of the frequency f of the millimeter wave radar signal includes: 23 GHz≤F≤28 GHz, 60 GHz≤F≤65 GHz and 76 GHz≤F≤81 GHz.
As a preferred scheme of the present invention, when the wireless signal is a Wi-Fi signal, step S1 specifically includes the following steps:
As a preferred scheme of the present invention, step S2 specifically includes the following steps:
As a preferred scheme of the present invention, when the wireless signal is a Wi-Fi signal in 2.4G band, the frequency bandwidth of the channel state information is 20 MHz or 40 MHz, and the frequency range of the subcarrier signal of the channel state information is 2401 MHz to 2483 MHz;
When the wireless signal is a Wi-Fi signal in 5G band, the frequency bandwidth of the channel state information is 20 MHz, 40 MHz or 80 MHz, and the frequency range of the subcarrier signal of the channel state information is 5150 MHz to 5850 MHz.
Based on the same idea, the invention also provides a contactless breathing or heartbeat detection system, which comprises a wireless signal transmitting device, a wireless signal receiving device and a data processor.
The wireless signal transmitting device outputs a wireless signal to a measured target;
The wireless signal receiving device receives the wireless signal reflected by the measured target;
The data processor executes any one of the above-mentioned contactless vital sign detection methods according to the wireless signal output by the wireless signal transmitter and the wireless signal reflected by the measured target, and calculates the respiratory characteristic parameters and/or heartbeat characteristic parameters of the measured target.
As a preferred scheme of the present invention, the wireless signal transmitting device comprises a wireless signal generating element and a transmitting antenna, and the wireless signal receiving device comprises a receiving antenna and a wireless signal receiving element;
The wireless signal generating element radiates the generated wireless signal to the measured target through the transmitting antenna;
The wireless signal receiving element receives the wireless signal reflected by the measured target through the receiving antenna;
The transmitting antenna and the receiving antenna are circularly polarized, and the polarization directions of the transmitting antenna and the receiving antenna are opposite.
As a preferred scheme of the invention, the clock signal on which the wireless signal generating element generates the wireless signal is the same as the clock signal on which the data processor receives the wireless signal reflected by the measured object.
As a preferred scheme of the present invention, when the wireless signal is a Wi-Fi signal, the system further comprises a power distributor,
The Wi-Fi signal generating element outputs the generated Wi-Fi signal to a power distributor,
The power distributor outputs the received Wi-Fi signal to the transmitting antenna and simultaneously outputs the Wi-Fi signal to the data processor through the coaxial cable;
The data processor generates the channel state information of the Wi-Fi signal according to the Wi-Fi signal received from the coaxial cable and the Wi-Fi signal reflected by the measured object.
The beneficial effects of the invention and its preferred scheme are as follows:
In the following, the invention will be further described in detail in combination with experimental examples and specific embodiments. However, it should not be understood that the scope of the above-mentioned subject matter of the present invention is limited to the following embodiments, and all technologies realized based on the contents of the present invention belong to the scope of the present invention.
This embodiment discloses a contactless breathing or heartbeat detection method, the flow chart of which is shown in
S1, acquiring channel state information of a wireless signal according to an outputted wireless signal and a wireless signal reflected back by a detected target.
S2, extracting a vital sign waveform signal from the channel state information of the wireless signal.
S3, performing filtering on the vital sign waveform signal on the basis of a Huber-Kalman filtering algorithm to obtain a filtered vital sign waveform signal, and the Huber-Kalman filtering algorithm uses the Huber objective function to update the formula of the Kalman filtering algorithm;
S4, extracting vital sign parameters from the filtered vital sign waveform signals, wherein the vital sign parameters include respiratory characteristic parameters and/or heartbeat characteristic parameters.
As a preferred scheme, in step S4, vital sign parameters are extracted from the filtered vital sign waveform signal, and the extracted vital sign parameters include respiration rate, respiration times, heartbeat times, heartbeat rate and the like. As a specific embodiment, when the method of the present invention is used in an automobile scene, the waveform signal of vital signs used to extract breathing or heartbeat parameters during the driving of the automobile is shown in
The method of extracting respiration rate or heartbeat rate can also be to calculate the time interval between the peak values of vital sign waveforms, and calculate respiration rate or heartbeat rate through the time interval.
For the extraction of respiration rate or heartbeat rate, another method can be used:
Firstly, the filtered vital sign waveform signal is analyzed in frequency domain (for example, fast Fourier transform (FFT)), that is, the vital sign waveform signal is transformed from a time domain signal to a frequency domain signal to obtain the frequency spectrum of the filtered vital sign waveform signal.
The effect diagram of breathing and heartbeat separation is shown in
As a preferred scheme, in step S3, the vital sign waveform signal is filtered based on the Huber-Kalman filtering algorithm to filter out interference and obtain an accurate filtered vital sign waveform signal. The Huber-Kalman filtering algorithm uses the advantage that the first norm and the second norm can be fused in the Huber objective function to improve the Kalman filtering algorithm. The specific steps include: when calculating the optimal estimated value at the current moment according to the Kalman update equation, the optimal estimated value is determined by the optimal estimated value at the previous moment and the observed value calculated according to the Huber prediction equation at the current moment, and the input vital sign waveform signal is filtered through repeated iterative calculation of the prediction equation and the update equation. In classical Kalman filtering, the Kalman gain is determined by the second norm (that is, the least square method). When there is a big deviation between the measured value and the real value, the result of classical Kalman filtering will be biased towards the error point, and the filtering effect is poor. Based on Huber's objective function, the error is divided into big error and small error, wherein big error refers to the error point that deviates from the real value more than a certain threshold, and small error refers to the error point that fluctuates up and down around the real value in a certain small range (within a certain threshold). Dealing with different types of errors in sections can effectively restore the original breathing and heartbeat waveforms.
In Huber-Kalman filtering algorithm, the prediction equation based on Huber objective function is expressed as:
Kalman update equation is:
Where k represents the kth moment; a represents the threshold between a big error and a small error; {circumflex over (x)}k− represents the predicted value at moment k, and {circumflex over (x)}k-1 represents the optimal estimated value at moment k−1; zk is the input data; uk-1 represents the random noise in the state transition process; vk represents measurement noise; Q represents the covariance of process noise; R represents the measurement noise covariance; A represents the state transition coefficient; B represents the control input coefficient; H represents the measurement coefficient; ek stands for posterior error; ek− represents prior error; ρa− (ek−) represents a prior error function; pa(ek) represents a posterior error function; Kk stands for Kalman gain.
Wherein, the threshold a between big error and small error is used to determine the proportion of big error and small error in filtering. The selection of threshold a is related to the current scene, and the value of acquisition parameter A is different in different scenes. As a preferred scheme, the characteristic value of the environment is detected in real time to determine the environmental state of the tested human body, and the threshold between the big error and the small error is adjusted in real time according to the characteristic value of the environment. For example, in the scene of car driving, the human body, as the reflection surface of Wi-Fi signals, has different relative distances from the signals transmitted by Wi-Fi through different states, including normal driving state, fast starting state and braking state. Detect the characteristic values of the environment (such as the relative distance between the human body and the Wi-Fi signal) to judge the driving scene of the car, and determine the value of the parameter a according to the state of the measured human body (normal driving state, quick start state, braking state, etc.), and adjust the proportion of big errors or small errors in real time. The characteristic value of the detection environment can also be environmental noise, and the state of the detected human body can be judged according to the environmental noise (the normal driving state, the quick start state, the braking state, etc. can be determined by the characteristics of the noise signal). As a specific example, in the case of high-speed driving, the trend chart of small error ratio is shown in
In step S1, according to the difference of wireless signals, the acquisition ways of channel status information are different. In this embodiment, the wireless signal is described as a Wi-Fi signal, but it is not limited that only the Wi-Fi signal can be used. Based on the wireless signal, the same principle and steps are adopted, which is also within the protection scope of the present invention.
As a preferred scheme, when the wireless signal is a Wi-Fi signal, step S1 specifically includes the following steps:
As a preferred scheme, when the vital signs extracted in step S4 are respiratory characteristic parameters, step S2 performs subcarrier fusion on the channel state information of the wireless signal to obtain the vital signs waveform signal, which specifically includes the following steps:
S21, unwrapping the phase difference signal to obtain a preprocessed signal. To calculate the phase-frequency characteristics, it is necessary to use the arc tangent function. The arc tangent function in the computer stipulates that the angle in the first and second quadrants is 0˜π, and the angle in the third and fourth quadrants is 0˜−π. If an angle changes from 0 to 2π, but the actual result is 0˜π, and then from −π to 0, a jump occurs at w=π, and the jump amplitude is 2π, which is called phase winding. In python and MATLAB, unwrap (w) is the unwrapping function, which makes the phase not jump at π, thus reflecting the real phase change. The unwrapped respiratory waveform is shown in
S22, performing subcarrier fusion processing on the preprocessed signal to output respiratory characteristic waveform signals. In Wi-Fi wireless sensing, CSI has 53 subchannels, and each subchannel has multiple subcarriers. Because of the different center frequency of each subcarrier, each subcarrier has different sensitivity to motion at different speeds. By selecting multiple subcarriers to complement each other, the characteristics of respiratory waveform are reflected.
Step S22 specifically includes the following steps:
S221: Obtain the subcarrier signal of each channel state information in the preprocessed signal, and the frequency of the subcarrier signal is distributed in the frequency bandwidth of the channel state information.
S222: In each channel state information, some subcarrier signals are extracted at intervals of N frequency points to form a preselected subcarrier signal. For example, the subcarrier signal is extracted every 1 frequency point, every 2 frequency points, every 3 frequency points, and how many frequency points are separated from each other to calculate the demand determination.
S223: Calculate the weight value and absolute deviation value corresponding to the preselected subcarrier signal.
S224: Multiply the weight values corresponding to the pre-selected subcarrier signals with the absolute deviation values to calculate the correction data of each pre-selected subcarrier signal, and output the vital sign waveform signal after superimposing the correction data.
In step S223, the original data of the sub-carriers of the pre-selected sub-carrier signal is set to X1={x11, x12, . . . , x1n}, X2={x21, x22, . . . , x2n}, Xm={xm1, xm2, . . . , xmn}, that is, the absolute deviation value of each sub-carrier can be calculated separately. The calculation formula is:
Wherein, n is the sampling number of each preselected subcarrier signal after discrete processing, m is the number of preselected subcarrier signals, xmi is the sampling value of each preselected subcarrier signal after discrete processing, and
The formula for calculating the corresponding weight of each subcarrier is:
Therefore, in step S224, the result of subcarrier fusion is
As a preferred scheme, when the vital sign extracted in step S4 is a heartbeat characteristic parameter, step S2, subcarrier fusion is performed on the channel state information of the wireless signal to obtain a vital sign waveform signal, which specifically includes the following steps:
K21, downsampling the channel state signal of the Wi-Fi signal to obtain downsampled channel state information. The sampling rate can be reduced as much as possible under the condition that the observed results can be satisfied, so that the calculation amount can be reduced and the real-time performance of the system can be improved. As a preferred scheme, the sampling rate can be reduced to 8 Hz, which can meet the requirements of wavelet transform.
K22, unwrapping the channel state information to obtain a preprocessed signal.
K23, performing subcarrier fusion processing on the preprocessed signal, performing frequency domain analysis, and outputting a heartbeat characteristic waveform signal.
As a preferred scheme, when the wireless signal is a 2.4G Wi-Fi signal, the frequency range that the subcarrier may cover is 2401 MHz to 2483 MHz. In practical use, one of the subcarriers in the bandwidth of 20 MHz or 40 MHz is generally selected.
When the wireless signal is a 5G Wi-Fi signal, the frequency range that the subcarrier may cover is 5150 MHz to 5850 MHz. In practical use, one of the subcarriers in the bandwidth of 20 MHz, 40 MHz or 80 MHz is generally selected. The higher the frequency, the shorter the wavelength of Wi-Fi signal, which is more sensitive to respiratory and heartbeat characteristics. Therefore, choosing the frequency range from 5750 MHz to 5850 MHz can achieve better detection effect.
The difference between Embodiment 2 and Embodiment 1 is that the wireless signal used is not a Wi-Fi signal, but a millimeter-wave radar signal, and the frequency F of the millimeter-wave radar signal includes: 23 GHz≤F≤28 GHz, 60 GHz≤F≤65 GHz, 76 GHz≤F≤81 GHz. The phase of Wi-Fi signal is random. When the Wi-Fi signal returned by the measured object is received, the actual meaning of the reflected signal can not be known. Therefore, it is necessary to take the transmitted Wi-Fi signal as a reference signal, and calculate the phase difference between the reflected signal and the reference signal. Millimeter-wave radar signals can distinguish and identify very small targets, and can identify multiple targets at the same time. The phase information of millimeter-wave radar can directly reflect the micro motion characteristics of the reflecting surface, so it is not necessary to additionally calculate the phase difference in millimeter wave radar system.
As a preferred scheme, when the wireless signal is a millimeter wave radar signal, step S1 specifically includes the following steps:
As a preferred scheme of the present invention, the specific steps of step S11 are as follows: the controller controls the RF front-end to generate the required millimeter-wave radar waveform and transmit it, and stores the millimeter-wave radar signal at the transmitting time as the reference signal of the receiving end, and what is needed in this embodiment is the FMCW radar signal; In step S12, the RF front-end receives the echo signal of the millimeter-wave radar signal after passing through the reflecting surface (the measured target), and demodulates it with the reference signal to generate an intermediate frequency signal (IF).
In step S13, the obtained intermediate frequency signal includes the signal of the reflector. After sampling the intermediate frequency signal by ADC, the distance information and phase information of the reflector are obtained by FFT. Distance information is to get the distance between the reflector and the radar through different frequency points of FFT results; the phase information refers to the phase of 1D-FFT, and the phase information of 1D-FFT can reflect the slight change of the reflecting surface. The phase information of millimeter wave radar signal is regarded as the channel state information of millimeter wave radar signal. For millimeter-wave radar signals, the phase information itself carries the vital sign waveform signal. In step S2, the vital sign waveform signal can be directly extracted from the phase information of millimeter-wave radar signals by phase unwrapping. The method of phase unwrapping is the same as that in step S21 in Embodiment 1, and the details are not repeated here. Subsequent steps S3 and S4 are the same as the method in Embodiment 1, and will not be described here.
The schematic diagram of radar system data acquisition process is shown in
Wherein, the method of phase unwrapping and extracting vital parameters by Huber-Kalman filtering is the same as that of Embodiment 1 (steps S3-S4 in
Based on the same idea, Embodiment 3 gives a contactless breathing or heartbeat detection system, including a Wi-Fi signal transmitting device, a Wi-Fi signal receiving device and a data processor. The structural diagram of a contactless breathing or heartbeat detection system is shown in
The Wi-Fi signal transmitting device outputs a Wi-Fi signal to the measured target; The Wi-Fi signal receiving device receives the Wi-Fi signal reflected by the measured target; The data processor generates a channel state signal of the Wi-Fi signal according to the Wi-Fi signal output by the Wi-Fi signal transmitting device and the reflected Wi-Fi signal received from the receiving antenna of the Wi-Fi signal, and performs subcarrier fusion on the channel state signal of the Wi-Fi signal to obtain a vital sign waveform signal;
The data processor also filters the vital sign waveform signal based on Huber-Kalman filtering algorithm to obtain the filtered vital sign waveform signal, and extracts vital sign parameters from the filtered vital sign waveform signal, including respiratory characteristic parameters and heartbeat characteristic parameters; Huber-Kalman filtering algorithm uses Huber objective function to fuse the first norm and the second norm in Kalman function. Further, the Wi-Fi signal transmitting device includes a Wi-Fi signal generating element and a transmitting antenna, and the structural diagram of a contactless breathing or heartbeat detection system including the Wi-Fi signal generating element, the transmitting antenna, the Wi-Fi signal receiving device and the receiving antenna is shown in
The transmitting antenna and the receiving antenna are circularly polarized, and the polarization directions of the transmitting antenna and the receiving antenna are opposite. If the transmitting antenna is a left-handed circularly polarized antenna, the receiving antenna is a right-handed circularly polarized antenna (or the transmitting antenna is a right-handed circularly polarized antenna, and the receiving antenna is a left-handed circularly polarized antenna). By using the circularly polarized antenna to suppress multipath interference, the direct signal and even reflected signal between the two antennas can be effectively suppressed, so that the signal received by the Wi-Fi signal receiving antenna is mainly a signal that has been reflected once, and the first reflected signal is a signal that is reflected from the measured target.
In addition, the system also includes a power distributor, and the contactless breathing or heartbeat detection system including the power distributor is shown in
As a preferred scheme, the clock signal on which the Wi-Fi signal generating device generates the Wi-Fi signal is the same as that of the data processor. It avoids the error caused by the unsynchronized clocks of all parts of the system during signal processing, and increases the stability in signal processing.
The above is only the preferred embodiment of the invention, and it is not used to limit the invention. Any modification, equivalent substitution and improvement made within the spirit and principle of the invention should be included in the protection scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
202011218737.2 | Nov 2020 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/128302 | 11/3/2021 | WO |