Non-contact sleep staging method and device based on millimeter wave radar
Through the non-contact sleep staging method based on millimeter wave radar, the deep learning model is used to extract features from instantaneous heart rate data, which solves the shortcomings of the equipment's impact on the human body and manual staging in the traditional sleep staging method, and achieves efficient and accurate sleep. Stage staging.
Patent Information
- Application Number
- CN202410865532.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-22
AI Technical Summary
The traditional sleep stage staging method relies on a variety of sensors to collect physiological signals, which causes the equipment to have an impact on the human body. It is time-consuming and labor-intensive and prone to human error. It also relies on manual staging, and the results are easily affected by the doctor's experience.
A non-contact sleep staging method based on millimeter wave radar is adopted. Radar waves are emitted through the millimeter wave radar module and echo signals are collected. A deep learning model is used to extract features from instantaneous heart rate data to achieve automatic staging of sleep stages and simplify signal processing steps. and reduce model complexity.
It achieves accurate and simple sleep stage staging, avoids the complex process of collecting physiological signals with multiple sensors, and significantly saves computing resources. The deep learning model has strong adaptability and generalization capabilities, and can process sleep signal data under different individuals and environments. , improving accuracy and robustness.
Smart Images

Figure CN118806236A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sleep monitoring, and in particular to a non-contact sleep staging method and device based on millimeter wave radar. Background Art
[0002] The traditional sleep stage staging method basically uses sleep polysomnography, which is a medical-grade sleep stage staging. When performing polysomnography, the human body needs to wear a large number of electrode patches, including EEG patches, ECG patches, EMG patches and other sensors, and the collected sleep data is manually staged by professional doctors item by item. Such data collection and analysis methods are only implemented in medical treatment and are prone to human monitoring errors. The reason is that, on the one hand, a large number of electrodes will affect the person being measured, thereby affecting the results of sleep monitoring; on the other hand, manual sleep stage staging is time-consuming and labor-intensive, and the results of sleep staging are easily affected by the doctor's experience.
[0003] In recent years, with the rapid development of non-contact sensors such as millimeter-wave radar and the excellent performance of artificial intelligence in many tasks, the combination of millimeter-wave radar and deep learning has provided a new idea for non-contact sleep monitoring. Millimeter-wave radar technology has the advantages of no need to attach sensors, no environmental interference, and strong signal penetration. It can achieve high-precision capture of human body micro-movements and physiological signals. When working, millimeter-wave radar will continuously send chirp signals. The chirp signals are phase modulated due to the micro-vibration of the human body and received back by the receiving antenna. This micro-motion signal can be extracted through processing by the host computer, thereby obtaining the biological signs of the human body. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the present invention proposes a non-contact sleep staging method and device based on millimeter-wave radar, which only uses instantaneous heart rate and related features, avoids the complex process of collecting physiological signals by multiple sensors, greatly simplifies the signal processing steps, and reduces the complexity of the model, thereby achieving accurate and simple sleep stage staging.
[0005] The scheme of the present invention is as follows:
[0006] A non-contact sleep staging device based on millimeter wave radar, comprising:
[0007] Power module, used to provide stable power support for all components to ensure stable operation of the system;
[0008] The millimeter-wave radar module is deployed under the mattress and is responsible for transmitting radar waves to the person being tested and collecting radar wave echo signals reflected by the human body;
[0009] The data transmission module is responsible for caching the collected radar echo signals and transmitting them to the host computer module through the data line;
[0010] The host computer is responsible for receiving the radar echo signal from the data transmission module, extracting the heart rate from the radar echo signal and calculating the heart rate characteristics based on the heart rate; and using the deep learning model to divide the sleep stages, and store and display the results;
[0011] During operation, the millimeter-wave radar first transmits a radar beam to the person under test, and uploads the acquired radar echo signal to the host computer; then, the host computer performs digital signal processing on the radar echo signal to extract the heart rate data HR (unit: times / minute) of the person under test; then, the heart rate HR (unit: times / minute) extracted from the radar echo data is converted into the instantaneous heart rate IHR (unit: times / second), and the instantaneous heart rate data is processed using a sliding window to take a certain length of instantaneous heart rate sequence IHR t , and calculate the heart rate statistical characteristics and frequency domain feature sequence of the corresponding time period based on the instantaneous heart rate sequence Finally, the instantaneous heart rate sequence IHR t And heart rate characteristics As the input X of the deep learning model, the deep learning model divides the wakefulness period, rapid eye movement period, and non-rapid eye movement period (N1 stage, N2 stage, N3 stage), outputs the corresponding sleep stage, and displays and stores it in the host computer.
[0012] Furthermore, the millimeter wave radar uses an adaptive locking method to transmit radar waves, and finds the optimal distance unit rbin for biological signs through the following steps: first, a distance-dimensional fast Fourier transform (FFT) is performed on the radar echo signal S(t) to obtain the transformed signal amplitude M(T,f), where T represents the number of frequency-modulated continuous waves in the signal, and f represents the frequency of the transformed signal. The standard deviation of the amplitude signal M(T,f) of each distance unit is calculated, and the distance unit i with the largest standard deviation is found; then, the amplitude signal M(T,f) of the i-th distance unit and the m distance units before and after is calculated. k )(f k is the frequency of the kth sampling point of the frequency modulated continuous wave, (im≤k≤i+m)) and the corresponding phase signal P(T, f k ), the distance unit corresponding to the maximum Pearson correlation is selected as the optimal distance unit h_rbin of the heartbeat signal; where the phase signal P(T, f k ) is obtained by measuring the amplitude signal M(T, f k ) is obtained by performing inverse tangent operation and unwrapping.
[0013] The present invention also provides a non-contact sleep staging method based on millimeter wave radar, which is implemented based on the above-mentioned non-contact sleep staging device and includes the following steps:
[0014] S1. Processing the radar echo data on the host computer to extract the heart rate data from the radar echo data;
[0015] S2. Use a sliding window to process the instantaneous heart rate data and take an instantaneous heart rate sequence IHR of a certain length t , and calculate the heart rate statistical characteristics and frequency domain feature sequence of the corresponding time period based on the instantaneous heart rate sequence
[0016] S3, instantaneous heart rate sequence IHR t And heart rate characteristics As the input X of the deep learning model; the output of the model corresponds to the sleep stage; the host computer displays the sleep stage output by the deep learning model and stores it in the storage unit.
[0017] In the present invention, step S1 covers key steps such as signal preprocessing, locking the biological sign distance unit, extracting and processing phase information, extracting biological sign information, and error correction, and specifically includes the following steps:
[0018] S1.1: In the preprocessing stage, the millimeter-wave radar echo signal S(t) received by the host computer in real time is subjected to sliding window distance dimension fast Fourier transform. This step includes operations such as adding Hamming window, removing static clutter, and fast Fourier transform, aiming to optimize signal quality and reduce noise interference.
[0019] S1.2: Lock the biological sign distance unit, and use the adaptive locking method to lock the human body distance unit. This method can adaptively lock the distance unit with the most obvious human biological signs according to different scenarios, so as to accurately extract the heartbeat and breathing waveforms. It mainly includes two steps: First, perform a distance-dimensional fast Fourier transform on the radar echo signal S(t) to obtain the transformed signal amplitude M(T, f), calculate the standard deviation of the amplitude signal M(T, f) of each distance unit, find the distance unit i with the largest standard deviation, and then calculate the amplitude signal M(T, f) of the i-th distance unit and the m distance units before and after. k )(im≤k≤i+m) and the corresponding phase signal P(T, f k ), and the distance unit corresponding to the maximum Pearson correlation is selected as the optimal distance unit h_rbin of the heartbeat signal; wherein, the phase signal P(T, f k ) is obtained by measuring the amplitude signal M(T, f k ) is obtained by performing inverse tangent operation and unwrapping.
[0020] Compared with traditional methods, the adaptive locking method has demonstrated excellent robustness and accuracy in different noise environments, and can stably find the exact location of the human heartbeat signal.
[0021] S1.3: Processing of phase information: First, perform differential processing on the phase signal at the distance unit h_rbin: diff(P(T, f h_rbin )) to enhance the heartbeat signal, and then use a well-designed adaptive IIR digital bandpass filter to extract the signal H(T, f h_rbin ), the adaptive IIR digital bandpass filter will continuously update its passband range (Fp1_h, Fp2_h) according to the historical heart rate value HHR to filter out noise more accurately. In addition, in order to prevent the filter from locking in a certain frequency band, a mechanism for widening the locking range and resetting the frequency range point is set to ensure that the filter can stably and accurately extract the heartbeat signal under various conditions.
[0022] S1.4: Extraction of biological sign information is done by processing the heartbeat waveform H(T, f h_rbin ) to perform fast Fourier transform. First, FFI processing is performed to convert to the frequency domain, and then the frequency with the highest energy is extracted as the average heart rate frequency in the time window to obtain the heart rate value HR. This method can accurately capture the main frequency components of the heartbeat signal and achieve accurate heart rate measurement.
[0023] S1.5: Error correction. In order to obtain a more stable and accurate heart rate value, the average heart rate value HR calculated in step 5 is corrected for errors according to the gradual characteristics of the human heart rate. The correction process includes comparing the currently calculated average heart rate HR with the set threshold Thd. If the heart rate HR exceeds the set threshold Thd, a correction operation is performed, where the threshold Thd is a linear combination of the mean mean(HHR) and standard deviation std(HHR) of the historical average heart rate HHR multiplied by the threshold coefficient. This error correction method effectively overcomes the problem of excessive frequency resolution in the frequency domain method in heart rate frequency calculation, making heartbeat detection more accurate and reliable, thereby more accurately identifying and quantifying heartbeat signals while maintaining low complexity.
[0024] In the present invention, step S2 includes the following steps:
[0025] First, the instantaneous heart rate IHR is calculated based on the heart rate data HR extracted from the radar echo signal. The instantaneous heart rate is the number of heartbeats per second, and its conversion relationship is: IHR = HR / 60. Then, a sliding window is used to extract data for the instantaneous heart rate, with a window size of t, to obtain a fixed-length instantaneous heart rate sequence IHR t ={ihr1,ihr2,ihr3,...,ihr tBased on this, the statistical characteristics and frequency domain characteristics of the heart rate are calculated.
[0026] Then, calculate the instantaneous heart rate sequence IHR t The statistical characteristics and frequency domain characteristics of heart rate interval HRV (IHR t The standard deviation SDNN and the mean square error RMSSD of the inverse of the heart rate are used to obtain the heart rate statistical features and frequency domain feature sequence. Among them, statistical features include: mean, variance S 2 , standard deviation S, mode mode, median med, skewness ske, peak kurt, Shannon entropy H, interquartile range iqr_val, mean absolute difference mad_val, range range_val, etc.; frequency domain features such as instantaneous heart rate sequence IHR t The total power tp.
[0027] In the present invention, step S3 includes the following steps:
[0028] The instantaneous heart rate sequence IHR t and heart rate characteristics Combined together as the input feature X of the deep learning model. That is: X = {IHR t ,mean,S 2 , S, mode, med, ske, kurt, H, iqr_val, mad_val, range_val, SDNN, RMSSD, tp}. The deep learning model returns the corresponding sleep stage according to the input, and then the host computer stores and displays the sleep stage output by the model.
[0029] The present invention has the following characteristics and beneficial effects:
[0030] Compared with the existing methods using non-contact sensors and sleep staging algorithms, the method of the present invention only uses instantaneous heart rate and related features, avoids the complex process of multiple sensors collecting physiological signals, greatly simplifies the signal processing steps, and reduces the complexity of the model, thereby achieving both accurate and simple sleep stage staging, which has obvious advantages. First, the present invention only uses heart rate information as input for judging the sleep stage, simplifies the data processing process, and only needs to extract heart rate information from radar echo signals, while other methods may require multiple information such as heartbeat, breathing, and body movement, which can significantly save computing resources. Secondly, the present invention adopts a deep learning model, while other methods mostly use fixed mathematical algorithms and have strict regulations and restrictions on the input information. The deep learning model can automatically learn the abstract feature representation of the input data. For complex physiological signal data, such as heart rate signals, it can effectively extract features related to the sleep stage and achieve more accurate sleep staging. In addition, the deep learning model has strong adaptability and generalization ability, can process sleep signal data of different individuals and different environments, and can adjust model parameters according to changes in data, thereby achieving higher accuracy and robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0032] Figure 1 This is a module schematic diagram of a non-contact sleep staging device based on millimeter wave radar according to an embodiment of the present invention;
[0033] In the figure: 1-power module; 2-millimeter wave radar module; 3-data transmission module; 4-host computer; 5-tester; 6-mattress.
[0034] Figure 2 This is a workflow diagram of a non-contact sleep staging method based on millimeter wave radar according to an embodiment of the present invention;
[0035] Figure 3 Results of tripartite sleep stage analysis for deep learning models;
[0036] Figure 4 Results of classifying sleep into five stages for a deep learning model. DETAILED DESCRIPTION
[0037] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.
[0038] like Figure 1 As shown, a non-contact sleep staging device based on millimeter wave radar according to an embodiment of the present invention includes a power module 1, a millimeter wave radar module 2, a data transmission module 3, a data line and a host computer 4; wherein:
[0039] The power module 1 provides stable power support for all components to ensure stable operation of the system;
[0040] The millimeter wave radar module 2 is installed under the mattress 6 in the area corresponding to the chest of the test person 5 when the test person 5 lies down, and is responsible for transmitting radar waves to the test person and collecting radar wave echo signals reflected by the human body.
[0041] The data transmission module 3 is responsible for caching the collected radar echo signal and transmitting it to the host computer module through the data line;
[0042] The host computer 4 is responsible for receiving data from the data transmission module, extracting the heart rate and heart rate characteristics through digital signal processing technology; and using the deep learning model to divide the sleep stages, and storing and displaying the results;
[0043] like Figure 2 As shown, the operation of the non-contact sleep staging device based on millimeter wave radar of the present invention includes the following working steps:
[0044] S1. The non-contact sleep staging device is powered on, performs power-on operation and initializes the radar module and system;
[0045] S2. The person being tested lies on the bed;
[0046] S3, millimeter wave radar sends radar waves and receives radar echoes;
[0047] S4, radar echo data is sent to the host computer;
[0048] S5. The host computer performs digital signal processing on the radar echo signal to extract the heart rate data of the person being measured; then, the heart rate sequence of a certain length is converted into an instantaneous heart rate sequence, and the corresponding heart rate features are extracted from it; finally, the instantaneous heart rate sequence and the extracted heart rate features are input into the deep learning model deployed in the host computer, and the deep learning model outputs the corresponding sleep stage, which is displayed and stored in the host computer. Specifically, it includes the following steps:
[0049] S5.1. Radar echo signal preprocessing: The system performs sliding window distance dimension FFT processing on the millimeter wave radar echo signal S(t) received by the host computer in real time. The echo signal time length is 15s. This step includes operations such as adding a Hamming window, removing static clutter, and performing fast Fourier transform. The static clutter is removed by using the mean denoising method, which aims to optimize the signal quality and reduce noise interference.
[0050] S5.2. Locking the biological sign distance unit: The traditional human body distance unit locking method usually relies on the maximum energy or variance of the signal M(T,f) after the radar echo signal S(t) undergoes a distance-dimensional fast Fourier transform to determine the human target position. However, this method has the problem of insufficient stability in practical applications, especially in the accurate identification of heartbeat and respiratory waveforms. In order to improve the accuracy and stability of the estimation, the present invention adopts an adaptive locking method to lock the human body distance unit. This method can adaptively lock the distance unit with the most obvious human biological signs according to different scenarios, thereby accurately extracting the heartbeat and respiratory waveforms. It mainly includes the following two steps:
[0051] (1) First, perform a range-dimensional fast Fourier transform on the radar echo signal S(t) to obtain the transformed signal amplitude M(T, f). Calculate the standard deviation of the amplitude signal M(T, f) of each range unit and find the signal M(T, f) with the largest standard deviation. i ), determine the rough distance position of the human body as the i-th distance unit, select the 5 distance units before and after the i-th distance unit, a total of 11 distance units M(T, f k )(i-5≤k≤i+5) signal.
[0052] (2) Calculate the amplitude signal M(T, f) after screening k ) and the corresponding phase signal P(T, f k )(i-5≤k≤i+5) to determine the optimal distance unit h_rbin of the heartbeat signal, where the phase signal P(T, f k ) is the amplitude signal M(T, f k ) is obtained through the inverse tangent function and the unwrapping function. The calculation formula of Pearson correlation is as follows:
[0053]
[0054] Among them, conv(M(T,f k ), P(T, f k )) represents the covariance of the amplitude signal and the phase signal, Represent the standard deviation of the amplitude signal and the phase signal respectively. Find the distance unit with the largest MPT index to locate the target distance unit h_rbin. Compared with the traditional method, the adaptive locking method shows excellent robustness and accuracy in different noise environments, and can stably find the exact position of the human heartbeat signal.
[0055] S5.3. Extraction of phase information: using the inverse tangent function tan -1 (M(T,fh_rbin )) Convert the amplitude signal of the distance unit h_rbin, and then extract the phase information P(T, f) at the distance unit h_rbin through unwrapping and other methods h_rbin ), providing a reliable data basis for subsequent processing steps.
[0056] S5.4. Processing of phase information: First, perform differential processing on the phase signal at the distance unit h_rbin: diff(P(T, f h_rbin )) to enhance the heartbeat signal, and then use a well-designed adaptive IIR digital bandpass filter to extract the signal H(T, f h_rbin ), the adaptive IIR digital bandpass filter will continuously update the filter passband range (Fp1_h, Fp2_h) according to the historical heart rate value HHR. The initial passband range is set to 0.8hz-2.5hz, which is also the full set of the passband range. The range that is subsequently updated can only be included in this passband range to filter out noise more accurately. In addition, in order to prevent the filter from locking in a certain frequency band, the filter design adds the function of widening the locking range and setting the reset frequency range point.
[0057] S5.5. Extraction of biological sign information: The biological sign information is extracted by processing the heartbeat waveform H(T, f h_rbin ) is used for fast Fourier transform. First, FFT processing is performed to convert to the frequency domain, and then the frequency with the highest energy is extracted as the average heart rate frequency in the time window, thereby obtaining the heart rate value HR.
[0058] S5.6, Error correction: According to the gradual change characteristics of human heart rate, the average heart rate value HR calculated in step 5 is corrected for errors. The correction process includes comparing the currently calculated average heart rate HR with the set threshold Thd. If the heart rate HR exceeds the set threshold Thd, a correction operation is performed, where the threshold Thd is a linear combination of the mean mean(HHR) and standard deviation std(HHR) of the historical average heart rate HHR multiplied by the threshold coefficient. The threshold coefficient set in the system is 0.3, and the threshold Thd calculation formula is:
[0059] Thd = mean(HHR) / std(HHR)×0.3
[0060] This error correction method effectively overcomes the problem of excessive frequency resolution in the frequency domain method in heartbeat frequency calculation, making heartbeat detection more precise and reliable, thereby more accurately identifying and quantifying heartbeat signals while maintaining low complexity.
[0061] In order to verify the accuracy of heart rate extraction, this embodiment conducted an experiment to compare the heart rate data extracted from the millimeter wave radar with the heart rate data measured by the heart rate belt (as a benchmark). The heart rate value sequence calculated by the present invention over a period of time is HR ra The heart rate sequence measured by a heart rate belt is HR re , this embodiment uses the root mean square error as the error (RMSE) indicator, and the calculation method is: Where n represents the number of heart rates compared, HR ra (i) represents the i-th heart rate value calculated by the present invention, HR re (i) represents the i-th heart rate value measured by the heart rate belt.
[0062] During the experiment, the millimeter-wave radar device was used to monitor the heart rate data of the test subject without contact, and the echo signal was processed by the patented method to extract the heart rate data. At the same time, the heart rate belt was used as a control device to record the heart rate data of the same period. By comparing the heart rate data of the two devices, the calculated RMSE was 1.23bpm, which shows that the error between the heart rate data extracted by the millimeter-wave radar and the baseline data measured by the heart rate belt is very small. This high-precision heart rate extraction verifies the effectiveness and reliability of the present invention, making it of important reference value in practical applications.
[0063] S6. This embodiment extracts a 1Hz heart rate. The deep learning model for sleep stage staging uses a 390-second instantaneous heart rate sequence as part of the model input. The other part of the input is based on the 390-second instantaneous heart rate sequence to extract heart rate features. The model outputs the sleep stage corresponding to the 30 seconds in the middle of the instantaneous heart rate sequence. In order to achieve this process, it is necessary to process the radar echo signal to obtain the 1Hz heart rate HR and calculate the instantaneous heart rate IHR; use a sliding window to take the instantaneous heart rate IHR, with a window size of 390 and a sliding step size of 30, to obtain IHR 390 , according to the IHR 390 Calculate 14 heart rate characteristic parameters. The specific steps are as follows:
[0064] S6.1. Calculate instantaneous heart rate using heart rate data: IHR = HR / 60;
[0065] S6.2. When the system runs for T = 390 seconds, the IHR sliding window starts to fetch data. The sliding window size is 390, the sliding step is 30, and the instantaneous heart rate sequence IHR with a length of 390 seconds is obtained. 390 ={ihr1,ihr2,ihr3,...,ihr 390};
[0066] S6.3, based on the 390-second instantaneous heart rate sequence IHR390 Calculate the heart rate derived characteristic parameters, which are:
[0067] (1) Mean of the instantaneous heart rate over 390 seconds: IHR 390 Find the average value, ihr i Represents the i-th instantaneous heart rate value in the instantaneous heart rate sequence.
[0068] (2) Variance S of the instantaneous heart rate over 390 seconds 2 :
[0069] (3) Standard deviation S of instantaneous heart rate over 390 seconds:
[0070] (4) Mode of the 390s instantaneous heart rate: defined as the value with the highest frequency in the instantaneous heart rate sequence. The calculation formula is: mode = max(ihr_freq), where ihr_freq is the number of times each instantaneous heart rate value appears in the instantaneous heart rate sequence.
[0071] (5) The median of the instantaneous heart rate in 390s: Where ihr′ is the sequence of 390 seconds instantaneous heart rate sequence arranged in ascending order.
[0072] (6) Skewness value ske of the instantaneous heart rate at 390s: The skewness value is a feature used to measure the degree of asymmetry of the distribution of instantaneous heart rate data. The calculation method is: ske = 3*(mean-med) / S.
[0073] (7) Kurtosis of the instantaneous heart rate at 390s: Kurtosis is a statistic that studies the steepness or smoothness of the instantaneous heart rate and is calculated as follows: Where m 4 is the fourth-order sample central moment of the instantaneous heart rate sequence, m 2 is the second-order central moment.
[0074] (8) Shannon entropy H of 390s instantaneous heart rate: Shannon entropy is a quantitative measure of the instantaneous heart rate sequence, which characterizes the complexity of the instantaneous heart rate sequence. The calculation method is: Where P(ihr) is the probability of an element appearing in the instantaneous heart rate sequence.
[0075] (9) Interquartile range iqr_val of 390s instantaneous heart rate: The interquartile range is used to characterize the degree of dispersion of the instantaneous heart rate sequence data. The smaller the value, the more concentrated the data; the larger the value, the more dispersed the data. The calculation formula of the interquartile range is: iqr_val = Q3-Q1, where Q3 and Q1 are the 75% and 25% values of the instantaneous heart rate sequence data arranged from small to large.
[0076] (10) 390s mean absolute difference of instantaneous heart rate mad_val: The mean absolute difference is an indicator to measure the discreteness of instantaneous heart rate sequence data. The calculation method is: represents the i-th instantaneous heart rate value in the instantaneous heart rate sequence, and mean is the mean of the instantaneous heart rate sequence.
[0077] (11) Range_value of 390s instantaneous heart rate: The range is also used to characterize the variation of instantaneous heart rate data and evaluate the dispersion of data. The calculation method is: range_val = max(IHR 390 )-min(IHR 390 ).
[0078] (12) The inverse of the instantaneous heart rate is defined as the heart rate interval HRV, which can also be used to represent heartbeat information.
[0079] Calculate the standard deviation of HRV, characterize the heart rate variability SDNN, which is a common indicator for analyzing heartbeats. The calculation method is: hrv i Represents the i-th value in the heartbeat interval sequence.
[0080] (13) Another indicator to characterize heart rate variability is the root mean square deviation (RMSSD) of the heart beat interval:
[0081] (14) Perform Fourier transform on the 390-second instantaneous heart rate sequence and extract the frequency domain features. The power of the 390-second instantaneous heart rate is defined as tp. tp = (∑|P(f)| 2 ) / 390. Where P(f)=FFT(IHR 390 ), which is obtained by fast Fourier transform of the instantaneous heart rate sequence.
[0082] The above 14 time domain and frequency domain features are combined as follows:
[0083] S6.4. Convert the instantaneous heart rate sequence IHR 390 And the 14 heart rate statistics and frequency domain feature combinations calculated above Together they form the input features of the deep learning model. Specifically, the feature vector X includes:
[0084] X={IHR 390 ,mean,S 2 , S, mode, med, ske, kurt, H, iqr_val, mad_val, range_val, SDNN, RMSSD, tp}. This feature vector X is a sequence of length 404, which will be used as the input feature of the deep learning model to achieve accurate classification of sleep stages.
[0085] S7, feature vector X is input to the deep learning model deployed in the host computer, and a 5-layer long short-term memory network (LSTM) is used in this embodiment. LSTM can effectively capture and memorize long-term dependencies through its gating mechanism, so as to better handle the different sleep stages characterized by heart rate changes. In addition, LSTM has a relatively simple structure, fewer parameters, and is relatively easy to train and adjust, while having strong interpretability. The model outputs the corresponding sleep stage, which corresponds to the 30 seconds (181s-210s) time period in the middle of the 390-second instantaneous heart rate sequence.
[0086] S8, the host computer stores and displays the sleep stage corresponding to each 30-second time segment;
[0087] After the system of the present invention is turned on, it will continue to run, collect echo signals, extract heart rate HR and convert it into instantaneous heart rate IHR. Starting from the 390th second, a sliding window is performed every 30 seconds to calculate the heart rate features, which together with the 390-second instantaneous heart rate data form an input feature vector X, which is input into the deep learning model and returns the corresponding sleep stage. The system will continue this process until it is turned off.
[0088] To verify the accuracy of the deep learning model in sleep stage classification, we conducted multiple experiments using different staging methods and compared the results with those obtained using polysomnography (PSG) as a benchmark. The experimental results are as follows:
[0089] (1) Two-stage staging accuracy: 95.87%, including:
[0090] Sobriety determination accuracy: 96.53%;
[0091] Sleep determination accuracy: 95.20%;
[0092] (2) Accuracy of three-stage staging: 90.01%, including:
[0093] Sobriety determination accuracy: 89.39%;
[0094] Non-rapid eye movement (NREM) judgment accuracy: 89.40%;
[0095] Rapid eye movement (REM) determination accuracy: 94.79%;
[0096] (3) Accuracy of five-stage staging: 84.07%, including:
[0097] Sobriety determination accuracy: 86.36%;
[0098] Non-rapid eye movement period-S1 judgment accuracy: 80.15%;
[0099] Non-rapid eye movement-S2 judgment accuracy: 83.11%;
[0100] Non-rapid eye movement period-S3 judgment accuracy: 85.83%;
[0101] Rapid eye movement period determination accuracy: 86.46%;
[0102] Figure 3 and Figure 4 The results of three-stage and five-stage staging are shown respectively. Sub-figure (a) in the two figures shows the results of manual staging using sleep polygraphs, which is used as a benchmark for judging the staging accuracy of the deep learning model. Sub-figure (b) shows the results of sleep staging using the deep learning model in the present invention. It can be seen from the figure that the sleep staging method proposed in the present invention has a high accuracy rate.
[0103] The experimental results show that the method of the present invention can accurately extract the heart rate of the subject through the millimeter wave radar, and can efficiently and accurately perform sleep stage classification in combination with an efficient deep learning model. The above results verify the effectiveness and superiority of the present invention.
[0104] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A non-contact sleep staging device based on millimeter wave radar, characterized in that: include: Power module, used to provide stable power support for all components to ensure stable operation of the system; The millimeter-wave radar module is deployed under the mattress and is responsible for transmitting radar waves to the person being tested and collecting radar wave echo signals reflected by the human body; The data transmission module is responsible for caching the collected radar echo signals and transmitting them to the host computer module through the data line; The host computer is responsible for receiving the radar echo signal from the data transmission module, extracting the heart rate from the radar echo signal and calculating the heart rate characteristics based on the heart rate; And use deep learning models to divide sleep stages, and store and display the results.
2. A non-contact sleep staging device based on millimeter wave radar as claimed in claim 1, characterized in that: During operation, the millimeter-wave radar first transmits a radar signal to the person being measured, and the acquired radar echo signal is uploaded to the host computer; then, the host computer performs digital signal processing on the radar echo signal to extract the heart rate data of the person being measured; then, the heart rate sequence of a certain length is converted into an instantaneous heart rate sequence, and the corresponding heart rate features are extracted from it; finally, the instantaneous heart rate sequence and the extracted heart rate features are input into the deep learning model deployed on the host computer, and the deep learning model divides the wakefulness period, rapid eye movement period, and non-rapid eye movement period into stages, outputs the corresponding sleep stage, and displays and stores it in the host computer.
3. The non-contact sleep staging device based on millimeter wave radar as claimed in claim 1, characterized in that: The millimeter wave radar uses an adaptive locking method to transmit radar waves, and finds the optimal distance unit rbin for biological signs through the following steps: first, perform a distance dimension fast Fourier transform on the radar echo signal S(t) to obtain the transformed signal amplitude M(T,f), calculate the standard deviation of the amplitude signal M(T,f) of each distance unit, find the distance unit i with the largest standard deviation, and then calculate the amplitude signal M(T,f) of the i-th distance unit and the m distance units before and after. k )(im≤k≤i+m) and the corresponding phase signal P(T,f k ), and the distance unit corresponding to the maximum Pearson correlation is selected as the optimal distance unit h_rbin of the heartbeat signal; where the phase signal P(T,f k ) is obtained by measuring the amplitude signal M(T,f k ) is obtained by performing inverse tangent operation and unwrapping.
4. The non-contact sleep staging device based on millimeter wave radar as claimed in claim 1, characterized in that: The device uses an adaptive infinite impulse response (IIR) digital bandpass filter to extract the effective signal H(T,f h_rbin ), the adaptive IIR digital bandpass filter can continuously update its passband range (Fp1_h, Fp2_h) according to the historical heart rate value HHR.
5. A non-contact sleep staging method based on millimeter wave radar, characterized in that: The non-contact sleep staging device according to any one of claims 1 to 4 is implemented, comprising the following steps: S1. Processing the radar echo data on the host computer to extract the heart rate data from the radar echo data; S2. Use a sliding window to process the instantaneous heart rate data and take an instantaneous heart rate sequence IHR of a certain length t , and calculate the heart rate statistical characteristics and frequency domain feature sequence of the corresponding time period based on the instantaneous heart rate sequence S3, instantaneous heart rate sequence IHR t And heart rate characteristics As the input X of the deep learning model; the output of the model corresponds to the sleep stage; the host computer displays the sleep stage output by the deep learning model and stores it in the storage unit.
6. The non-contact sleep staging method based on millimeter wave radar as claimed in claim 5, characterized in that: The step S1 comprises the following steps: S1.1: In the preprocessing stage, the millimeter-wave radar echo signal S(t) received by the host computer in real time is subjected to sliding window distance-dimensional fast Fourier transform; S1.2: Lock the biological sign distance unit, and use the adaptive locking method to lock the human body distance unit; when locking, first, perform a distance dimension fast Fourier transform on the radar echo signal S(t) to obtain the transformed signal amplitude M(T,f), calculate the standard deviation of the amplitude signal M(T,f) of each distance unit, find the distance unit i with the largest standard deviation, and then calculate the amplitude signal M(T,f) of the i-th distance unit and the m distance units before and after. k )(im≤k≤i+m) and the corresponding phase signal P(T,f k ), and the distance unit corresponding to the maximum Pearson correlation is selected as the optimal distance unit h_rbin of the heartbeat signal; where the phase signal P(T,f k ) is obtained by measuring the amplitude signal M(T,f k ) is obtained by performing an inverse tangent function operation and unwrapping processing; S1.3: First, the phase signal at the distance unit h_rbin is differentially processed, and then a well-designed adaptive IIR digital bandpass filter is used to extract the signal H(T,f h_rbin ); S1.4: By processing the heartbeat waveform H(T,f h_rbin ) Perform fast Fourier transform to extract biological sign information; specifically, first, perform FFT processing to convert to frequency domain, and then extract the frequency with the highest energy as the average heart rate frequency in the time window, so as to obtain the heart rate value HR; S1.5: perform error correction on the heart rate value HR calculated in step S1.5; the correction process includes comparing the currently calculated average heart rate HR with the set threshold value Thd. If the heart rate HR exceeds the set threshold value Thd, a correction operation is performed, wherein the threshold value Thd is a linear combination of the mean mean(HHR) and standard deviation std(HHR) of the historical average heart rate HHR multiplied by the threshold coefficient.
7. The non-contact sleep staging method based on millimeter wave radar as claimed in claim 5, characterized in that: In step S2, the instantaneous heart rate IHR is calculated based on the heart rate data HR extracted from the radar echo signal. The instantaneous heart rate is the number of heartbeats per second, and its conversion relationship is: IHR = HR / 60; then, a sliding window is used to extract data for the instantaneous heart rate, and the window size is t to obtain a fixed-length instantaneous heart rate sequence IHR t ={ihr1,ihr2,ihr3,…,ihr t }.
8. The non-contact sleep staging method based on millimeter wave radar as claimed in claim 5, characterized in that: In step S3, the instantaneous heart rate sequence IHR t and heart rate characteristics Combined together as the input feature X of the deep learning model, the model returns the corresponding sleep stage based on the input.
Citation Information
Cited By
Non-contact sleep staging method and equipment
CN120345870A
A non-contact sleep staging method and device
CN120345870B
Millimeter wave output parameter regulation and control method and system based on sleep stage switching event
CN122410454A
Method and system for mmwave output parameter regulation based on sleep stage switching event
CN122410454B
