Sleep staging method and device based on radar signals
Through the sleep staging method based on radar signals, the CNN backbone network and attention mechanism are used to extract sleep features, which solves the problems of invasiveness and high cost of sleep monitoring in the existing technology, and achieves efficient and accurate non-contact sleep monitoring. Improved the authenticity of sleep data and user comfort.
Patent Information
- Application Number
- CN202410969984.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Existing sleep monitoring methods are highly invasive, high-cost, have a single data source, complex and expensive equipment, and are inconvenient for wide application in homes and daily life, which limits the popularity of sleep monitoring and user comfort.
A sleep staging method based on radar signals is used to obtain respiratory time-frequency spectrograms and distance-time spectrograms through radar echo signals, and the CNN backbone network and attention mechanism are used for feature extraction and fusion, combined with multi-scale feature extraction technology to achieve Contactless sleep monitoring.
It improves the accuracy and efficiency of sleep staging, provides an intelligent and efficient non-invasive sleep monitoring solution, reduces interference to sleepers, and improves the authenticity of sleep data and user comfort.
Smart Images

Figure CN118490182B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sleep monitoring, and in particular to a sleep staging method and device based on radar signals. Background Art
[0002] Population aging has become a universal phenomenon around the world, and China's population aging is particularly prominent in terms of scale, depth, and speed. In the field of medical care and elderly care, sleep monitoring is one of the most promising applications. The American Academy of Sleep Medicine (AASM) divides sleep into five stages: W (wakefulness), R (rapid eye movement sleep), N1 (non-rapid eye movement sleep 1), N2 (non-rapid eye movement sleep 2), and N3 (non-rapid eye movement sleep 3). Accurate sleep staging is important for assessing sleep quality.
[0003] In traditional medicine, the gold standard for sleep monitoring is polysomnography (PSG). However, during PSG monitoring, the various wires on the subject will cause significant discomfort. At the same time, experts need to divide the entire night's electroencephalogram (EEG) data into 30-second frames for sleep states, and analyze and evaluate based on this, which requires a lot of manpower costs. Due to the limitations of equipment and labor costs, PSG has difficulty in widely popularizing sleep monitoring.
[0004] Existing sleep monitoring methods mainly include those based on electroencephalogram (EEG) signals, electrocardiogram (ECG), and near-infrared spectroscopy. However, these methods have many shortcomings: the EEG method is highly invasive and costly, and usually needs to be performed in a laboratory environment, which affects the user's comfort and compliance; the ECG method has a single data source, making it difficult to accurately stage the sleep stage, and requires professional equipment and technical support; the near-infrared spectroscopy technology equipment is complex, expensive, and inconvenient to wear, which limits its widespread application in homes and daily life. Summary of the invention
[0005] In view of this, the present invention provides a sleep staging method based on radar signals, comprising:
[0006] According to the radar echo signal Get the respiratory time-frequency spectrum energy signal and distance-time spectrum energy signal ;
[0007] The energy signal of the respiratory time-frequency spectrogram is analyzed by using the CNN backbone network. and the distance-time spectrum energy signal Perform feature extraction to obtain breathing features and body movement features;
[0008] The global information is compressed into the feature channels of breathing features and body motion features using the global-pooling layer, and then the attention weights are assigned to different feature channels using the first fully connected layer and activation function. The breathing features and body motion features are weighted fused based on the attention weights, and the fused feature channels are reduced in dimension using a one-dimensional convolution kernel to obtain the attention fusion features.
[0009] The attention fusion features are connected and integrated across layers using a residual module, and the integrated features are downsampled using a pooling layer to obtain feature signals of different resolutions, and features are extracted on feature maps of different resolutions using a convolutional layer to obtain fusion features at different resolutions, and feature maps of different resolutions are restored to the original sampling rate using an upsampling layer, and are concatenated and fused with the features downsampled by the corresponding pooling layer to obtain a feature map;
[0010] The second fully connected layer is used to classify the feature map to obtain the sleep stage results.
[0011] Optionally, the respiratory time-frequency spectrogram energy signal is analyzed by using a CNN backbone network. and the distance-time spectrum energy signal Before feature extraction, the method further includes: converting the energy signal of the respiratory time-frequency spectrum into and the distance-time spectrum energy signal Normalize.
[0012] Optionally, the CNN backbone network includes multiple two-dimensional convolution kernels, so as to utilize multiple two-dimensional convolution kernels to analyze the respiratory time-frequency spectrogram energy signal. and the distance-time spectrum energy signal Perform feature extraction.
[0013] Optionally, a residual module is used to connect and integrate the attention fusion features across layers, including:
[0014] Using the first convolution layer, the second convolution layer and the third convolution layer to perform a convolution operation on the attention fusion feature, so as to gradually reduce the dimension of the feature map;
[0015] The features output by the second convolution layer and the features output by the third convolution layer are concatenated by using feature concatenation and the fourth convolution layer, and a convolution operation is performed on the concatenated features;
[0016] The feature concatenation layer is used to concatenate the features output by the first convolutional layer with the features output by the fourth convolutional layer.
[0017] Optionally, the second fully connected layer includes multiple neurons, each of which is connected to all neurons in the feature map to map the feature map to a corresponding label to obtain a sleep staging result.
[0018] Optionally, the second fully connected layer further includes a random dropout layer, located between the neurons and the feature map, for discarding some neurons according to a preset probability.
[0019] Optionally, based on the radar echo signal Get the respiratory time-frequency spectrum energy signal ,include:
[0020] The radar echo signal Fast time Perform Hamming windowing and fast Fourier transform to obtain the complex value time-distance image ;
[0021] For the complex-valued time-distance image Bandpass filtering is performed along the time dimension to obtain the distance-time spectrum of chest and abdominal micro-motion information caused by breathing ;
[0022] The distance-time spectrum Each frame in the image is weighted along the distance dimension, and the phase information is extracted to obtain a one-dimensional respiratory phase signal representing the breathing. ;
[0023] The one-dimensional respiratory phase signal Perform short-time Fourier transform to obtain the time-frequency spectrum of breathing;
[0024] Take the absolute value of the time-frequency spectrogram and convert it into decibel units, and obtain the respiratory time-frequency spectrogram energy signal based on the preset sampling frequency .
[0025] Optionally, based on the radar echo signal Get the distance-time spectrum energy signal ,include:
[0026] For the complex-valued time-distance image Take the absolute value and convert it into an energy signal in decibels by taking its logarithm;
[0027] The energy signal is downsampled, and based on a preset sampling frequency, a distance-time spectrum energy signal is obtained. .
[0028] Optionally, after obtaining the sleep staging result, the method further includes:
[0029] Smoothing the sleep staging results to generate sleep staging labels at preset time intervals;
[0030] Count the duration and proportion of each sleep tag of the user and generate a sleep report.
[0031] A second aspect of the present invention provides a sleep staging device based on radar signals, the device comprising: a processor and a memory connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor performs the above-mentioned sleep staging method based on radar signals.
[0032] The present invention uses the respiratory time-frequency spectrum energy signal obtained by the radar device and distance-time spectrum energy signal The input is into the trained neural network, and the neural network uses the convolution layer to analyze the energy signal of the respiratory time-frequency spectrum. and distance-time spectrum energy signal Feature extraction is performed, and then the channel attention mechanism is used to effectively fuse these two types of features, thereby enhancing the expression ability of important features. Combined with multi-scale feature extraction technology, the fused features are abstracted and analyzed at a higher level, and finally the sleep features at different times are extracted to accurately determine the user's sleep stage at each time. The present invention improves the accuracy and efficiency of sleep staging, and also provides an intelligent and efficient solution for non-contact sleep monitoring. The radar technology used in the present invention is non-invasive and does not require the use of traditional sleep monitoring equipment such as polysomnography (PSG). Users do not need to wear any equipment or touch any sensors to perform sleep monitoring, so that sleepers can fall asleep in a more natural and comfortable environment. This non-invasive method reduces interference to sleepers and helps to obtain more realistic sleep data, thereby improving the quality of sleep monitoring and user comfort. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A radar device usage scenario diagram in an embodiment of the present invention;
[0035] Figure 2 is a flow chart of a sleep staging method based on radar signals in an embodiment of the present invention;
[0036] Figure 3 is a structural diagram of a deep neural network in an embodiment of the present invention;
[0037] Figure 4 It is a structural principle diagram of the attention mechanism module of the deep neural network in an embodiment of the present invention;
[0038] Figure 5 It is a structural principle diagram of a multi-scale feature extraction module of a deep neural network in an embodiment of the present invention;
[0039] Figure 6 is a structural diagram of the second fully connected layer in an embodiment of the present invention;
[0040] Figure 7 is a processing diagram of a radar echo signal in an embodiment of the present invention;
[0041] Figure 8 FIG. 4 is a processing diagram of a complex-valued time-distance image in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0044] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0045] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0046] like Figure 1 As shown, the millimeter wave radar device is installed at an appropriate location on the roof of the use scenario to collect data within the use scenario. The radar transmits a frequency modulated continuous wave (FMCW) signal. The FMCW signal within one cycle is a Chirp signal. The signal modulation method is a sawtooth wave. The period of the Chirp signal is , N Chirp signals transmitted continuously form a frame, and the frame period is The echo signal received by the radar is mixed with the transmitted signal to obtain a difference frequency signal, which is then high-pass filtered, low-noise amplified, and ADC sampled to obtain a digitized echo signal.
[0047] Specifically, an FMCW radar is used, and a single-transmit and single-receive mode is adopted during use. The radar setting parameters and the calculated performance parameters are shown in Table 1.
[0048] ,
[0049] The above basic parameters of FMCW radar fully meet the needs of users for breathing measurement during sleep.
[0050] like Figure 2 As shown, an embodiment of the present invention provides a sleep staging method based on radar signals, which is executed by an electronic device such as a computer or a server, and specifically includes:
[0051] S1, according to the radar echo signal Get the respiratory time-frequency spectrum energy signal and distance-time spectrum energy signal The echo signal received by FMCW radar middle, and They represent fast time (the time subscript within one sweep) and slow time (the time subscript between different sweeps).
[0052] S2, using the CNN backbone network to analyze the energy signal of the respiratory time-frequency spectrogram and the distance-time spectrum energy signal Perform feature extraction to obtain breathing features and body movement features.
[0053] S3, uses the global-pooling layer to compress the global information to the feature channels of respiratory features and body movement features, and then uses the first fully connected layer and activation function to assign attention weights to different feature channels. Based on the attention weights, the respiratory features and body movement features are weighted fused, and the one-dimensional convolution kernel is used to reduce the dimension of the fused feature channels to obtain the attention fusion features.
[0054] S4, uses the residual module to connect and integrate the attention fusion features across layers, and uses the pooling layer to downsample the integrated features to obtain feature signals of different resolutions. The convolution layer is used to extract features on feature maps of different resolutions to obtain fusion features at different resolutions. The upsampling layer is used to restore the feature maps of different resolutions to the original sampling rate, and they are spliced and fused with the corresponding downsampled features of the pooling layer to obtain the feature map.
[0055] S5: Use the second fully connected layer to classify the feature map and obtain the sleep stage result.
[0056] The present invention uses a deep neural network to convert the energy signal of the respiratory time-frequency spectrum into and distance-time spectrum energy signal Perform sleep staging, such as Figure 3 As shown, the deep neural network includes a CNN backbone network 1, an attention mechanism module 2 and a multi-scale feature extraction module 3, which are used to execute steps S2, S3 and S4 respectively.
[0057] The deep neural network training process is to transform the breathing time-frequency spectrogram energy signal and distance-time spectrum energy signal As the input signal of the network for training, during the training process, the window length of 3h can be set, and the signal can be segmented in the form of a sliding window, and then the segmented input is input into the network for feature extraction and recognition.
[0058] The present invention uses the respiratory time-frequency spectrum energy signal obtained by the radar device and distance-time spectrum energy signal The input is into the trained neural network, and the neural network uses the convolution layer to analyze the energy signal of the respiratory time-frequency spectrum. and distance-time spectrum energy signal Feature extraction is performed, and then the channel attention mechanism is used to effectively fuse these two types of features, thereby enhancing the expression ability of important features. Combined with multi-scale feature extraction technology, the fused features are abstracted and analyzed at a higher level, and finally the sleep features at different times are extracted to accurately determine the user's sleep stage at each time. The present invention improves the accuracy and efficiency of sleep staging, and also provides an intelligent and efficient solution for non-contact sleep monitoring. The radar technology used in the present invention is non-invasive and does not require the use of traditional sleep monitoring equipment such as polysomnography (PSG). Users do not need to wear any equipment or touch any sensors to perform sleep monitoring, so that sleepers can fall asleep in a more natural and comfortable environment. This non-invasive method reduces interference to sleepers and helps to obtain more realistic sleep data, thereby improving the quality of sleep monitoring and user comfort.
[0059] In the respiratory time-frequency spectrum energy signal and distance-time spectrum energy signal Before inputting into the deep neural network, the energy signal of the breathing time-frequency spectrogram and the distance-time spectrum energy signal Normalize.
[0060] Specifically, considering the large differences between data samples, in order to better handle the differences between data samples, before feature extraction, it is necessary to use Batch Normalization technology to normalize the data. The purpose of this step is to ensure that the distribution of data tends to be consistent during the training and verification process of the network, thereby enhancing the generalization ability of the network. Through normalization, the performance and stability of the model can be effectively improved, making the network more accurate and reliable when processing different data samples. The application of Batch Normalization can not only accelerate the convergence speed of the network, but also effectively avoid the problem of gradient disappearance or explosion, providing better support for model training and reasoning.
[0061] In one embodiment, in step S2, the CNN backbone network is used to analyze the energy signal of the respiratory time-frequency spectrogram. and distance-time spectrum energy signal Feature extraction is performed. The CNN backbone network includes multiple two-dimensional convolution kernels. The two-dimensional convolution kernel has efficient feature extraction capabilities. In order to adapt to the differences in the distribution of different range gate capabilities caused by different sleeping positions or body movements, multiple two-dimensional small convolution kernels are used instead of large one-dimensional convolution kernels. While reducing the number of parameters, different convolution kernels can focus on information on different range gates, and more data can be used in the process of gradient updating to complete the energy signal of the respiratory time-frequency spectrum. and distance-time spectrum energy signal Extraction, and after feature extraction, compression along the distance dimension. After feature extraction by the CNN backbone network, breathing features including breathing and body movement features representing arousal are obtained.
[0062] In one embodiment, in step S3, the attention mechanism module is used to effectively fuse the two types of information, namely, the global information is compressed into the feature channels of the respiratory features and the body movement features using the global pooling layer, and then the first fully connected layer and the activation function are used to assign attention weights to different feature channels, and the respiratory features and the body movement features are weightedly fused based on the attention weights, and the fused feature channels are reduced in dimension using a one-dimensional convolution kernel to obtain attention fusion features.
[0063] The specific implementation principle is as follows Figure 4 As shown in FIG. 1 , the attention mechanism module includes a residual module, a global-pooling layer, a first fully connected layer, a ReLU nonlinear layer, a first fully connected layer, a Sigmoid activation and an attention allocation. The number of channels C and the time length L of each layer of feature number N are different. The global-pooling layer is used to compress the global information onto the channel. The global information means that the data at different times on the same channel have a certain amount of information. The purpose of the global-pooling layer operation is to aggregate the information at different times into a single value, and measure the amount of information of each feature channel according to this single value in order to allocate weights. The specific operation is to use The time dimension is compressed by the global pooling layer, and the average of different channels (respiration and body motion features) is calculated along the time dimension, and the original data of size N*C*L is compressed to data of size N*C; the features of size N*C that approximately represent the amount of information of different channels after compression are input into the two first fully connected and activated layers (ReLU nonlinear layer and Sigmoid activation), and the distribution weights of different channels, i.e., attention, are obtained; then, through attention allocation, different channels are weighted using the learned weight parameters and the residual module is introduced to directly connect to obtain the final output result. Attention weights are allocated to different channels based on information, thereby retaining valuable features and eliminating redundant features, so that the network can better fuse the feature signals extracted from the radar. After weighted fusion of the respiratory features and body motion features using the attention mechanism, the channel is reduced in dimension using a one-dimensional convolution kernel, and the convolution kernel width is set to 2 and the step size is set to 2, so as to achieve downsampling of the time dimension and finally obtain the attention fusion feature.
[0064] In one embodiment, in step S4, the multi-scale feature extraction module extracts the attention fusion feature. In order to make full use of the before-after correlation characteristics of the signal when the network performs sleep staging at a certain moment, the following is designed: Figure 5The multi-scale feature extraction module shown in the figure includes a residual module, a pooling layer, a convolution layer, and an upsampling layer. The residual module refers to the design of the residual module in the YOLOv4Tiny model. By fusing feature maps of different resolutions, it ensures that the backend data can have target information of different scales and sufficient receptive fields, thereby improving the performance of automatic sleep staging of the network.
[0065] Specifically, the residual module is used to connect and integrate the attention fusion features across layers, including:
[0066] The first, second and third convolutional layers are used to perform convolution operations on the attention fusion features to gradually reduce the dimension of the feature map.
[0067] The features output by the second convolution layer and the features output by the third convolution layer are concatenated by using feature concatenation and the fourth convolution layer, and a convolution operation is performed on the concatenated features;
[0068] The feature concatenation layer is used to concatenate the features output by the first convolutional layer with the features output by the fourth convolutional layer.
[0069] After the attention fusion feature is input into the residual module in the multi-scale feature extraction module, it is first convolved through the Conv1 layer, and the number of output feature maps is D=64. Then it is input into the Conv2 layer for convolution, and the number of output feature maps is D=32. Then it is input into the Conv3 layer for convolution, and the number of output feature maps is D=32. Then, the features output by the convolution of the Conv3 layer are input into the feature splicing layer and concatenated with the features after the convolution of the Conv2 layer. The concatenated features are input into the Conv4 layer for convolution, and the number of output feature maps is D=64. Finally, the features output by the convolution of the Conv4 layer are input into the feature splicing layer and concatenated with the features after the convolution of the Conv1 layer, and the number of output feature maps is D=128.
[0070] like Figure 5 As shown, after the residual module 1, residual module 2 and residual module 3 fuse the feature maps of different resolutions, they will be downsampled through three pooling layers to obtain feature signals of different resolutions, and the convolution layer will be used to extract features on the feature maps of different resolutions to obtain fusion features at different resolutions. Then, the feature maps of different resolutions are restored to the original sampling rate by upsampling, and then the features restored to the original sampling rate and the features downsampled by the pooling layer corresponding to the residual module 2 are input to the feature splicing layer for splicing, and then convoluted and upsampled through the convolution layer and the upsampling layer, and finally input to the feature splicing layer for splicing with the features downsampled by the pooling layer corresponding to the residual module 1, and then convoluted and upsampled through the convolution layer and the upsampling layer, and the final feature map is output.
[0071] In one embodiment, in step S5, the feature map is classified using the second fully connected layer to obtain a sleep staging result, wherein the second fully connected layer includes multiple neurons, each neuron is connected to all neurons in the feature map to map the feature map to a corresponding label to obtain a sleep staging result.
[0072] Specifically, the second fully connected layer converts the input feature map into specific category information. Each neuron in the second fully connected layer is connected to all neurons in the multi-scale feature map of the previous layer, thereby realizing the mapping from low-level features to high-level features. This mapping process can map different input features to corresponding labels and obtain the probability distribution of feature data in different sleep periods (W, R, N1, N2, N3).
[0073] Furthermore, in order to prevent the network from overfitting, a random inactivation layer (Dropout layer) is introduced, such as Figure 6 As shown, the random inactivation layer 5 is located between neuron 6 and feature Figure 4 It is used to discard some neurons according to the preset probability, such as randomly discarding some neurons with a probability of 0.2, so as to avoid the network's dependence on certain specific neurons.
[0074] In one embodiment, in step S1, according to the radar echo signal Get the respiratory time-frequency spectrum energy signal , specifically including:
[0075] The radar echo signal Fast time Perform Hamming windowing and fast Fourier transform to obtain the complex value time-distance image ;
[0076] Complex-valued time-distance image Bandpass filtering is performed along the time dimension to obtain the distance-time spectrum of chest and abdominal micro-motion information caused by breathing ;
[0077] Distance-time spectrum Each frame in the image is weighted along the distance dimension, and the phase information is extracted to obtain a one-dimensional respiratory phase signal representing the breathing. ;
[0078] The one-dimensional respiratory phase signal Perform short-time Fourier transform to obtain the time-frequency spectrum of breathing;
[0079] Take the absolute value of the time-frequency spectrogram and convert it into decibel units. Based on the preset sampling frequency, the energy signal of the respiratory time-frequency spectrogram is obtained. .
[0080] like Figure 7 As shown, the radar echo signal Perform multiple processing to obtain a complex value time-distance image Specifically, the standard operation of FMCW range-dimensional imaging will be used to Perform a Hamming windowed FFT along the fast time 𝜏 to obtain the complex valued time-distance image ,in Indicates distance, It still represents slow time (hereinafter referred to as “time”), and at the same time intercepts 55 distance units of interest that are closer, which are sufficient to cover the bed area of the subject, so as to reduce the amount of data and improve the signal-to-noise ratio at the same time.
[0081] like Figure 1 The radar device is installed about 1m away from the bedside, and adopts an oblique illumination method so that the slight movement of the chest, abdomen and other parts of the body can be reflected on the doors at different distances. Figure 7 The specific calculation process of signal processing is as follows: FMCW radar periodically transmits a signal with a frequency that increases linearly with time. :
[0082] ,
[0083] It is called Chirp signal, where is the amplitude, is the starting frequency, and are the bandwidth and duration of a single Chirp signal. The distance between the target and the radar is , the receiving antenna obtains the echo signal reflected by the target :
[0084] ,
[0085] in, It is The reflection coefficient of the target, c is the speed of light. Then the intermediate frequency signal output by mixing the RF signal and the echo signal is :
[0086] ,
[0087] in, and is the goal The frequency and phase of the corresponding intermediate frequency signal. The intermediate frequency signals corresponding to objects at different distances have different frequencies. By performing fast Fourier transform in the fast time dimension, the radar field of view can be divided into different distance intervals, called range bins. Distance resolution is the minimum distance at which the radar can distinguish between different targets:
[0088] ,
[0089] During the radar's sleep breathing monitoring process, the target When there is micro-motion on the reflecting surface, ,in, is the micro-motion of the target's reflective surface, and the phase of the target's intermediate frequency signal Received The influence of
[0090] ,
[0091] in, is the wavelength of the radar signal. When a person breathes, the micro-movement of the vital signs on the chest and abdomen at the centimeter level will have a certain impact on the phase of each range gate. By extracting the phase signal on the range gate where the target is located The chest and abdomen displacement signal generated by human breathing during sleep can be obtained, that is, the one-dimensional respiratory phase signal representing breathing .
[0092] like Figure 8 As shown, the time distance image for complex values is Bandpass filtering is performed along the time dimension, and the frequency range is set at 0.1Hz~0.8Hz. The signal obtained after filtering retains the main components of the respiratory signal, thereby obtaining a distance-time spectrogram that retains the chest and abdominal micro-movement information caused by breathing , and extract the phase of each frame along the distance dimension to obtain a one-dimensional respiratory phase signal representing breathing Then, the one-dimensional respiratory signal is short-time Fourier transformed, the window length is set to 12.8s, the step length is 1s, and the time-frequency spectrum of the respiratory signal is obtained. Then, the absolute value of the time-frequency spectrum signal is taken and converted into a time-frequency energy signal with a sampling frequency of 1Hz in dB. .
[0093] In one embodiment, in step S1, according to the radar echo signal Get the distance-time spectrum energy signal , specifically including:
[0094] Complex-valued time-distance image Take the absolute value and convert it into an energy signal in decibels by taking its logarithm;
[0095] The energy signal is downsampled and based on the preset sampling frequency, the distance-time spectrum energy signal is obtained. .
[0096] Specifically, in Perform a Hamming windowed FFT along the fast time 𝜏 to obtain the complex valued time-distance image Afterwards, Figure 8 As shown, for the complex-valued time-distance image First, take the absolute value to obtain the distribution of target energy intensity at each range gate at different times, then convert it into an energy signal in dB by taking the logarithm, and finally obtain the distance-time spectrum energy signal with a sampling frequency of 1 Hz by downsampling. .
[0097] In one embodiment, after obtaining the sleep staging result, step S5 further includes:
[0098] Smoothing the sleep staging results to generate sleep staging labels at preset time intervals;
[0099] Count the duration and proportion of each sleep tag of the user and generate a sleep report.
[0100] This embodiment generates a sleep report based on the user's sleep staging results, and will provide users with comprehensive sleep data analysis, including the duration and proportion of each sleep stage such as deep sleep, light sleep, and rapid eye movement sleep, as well as statistical data on the user's wakefulness. Through this report, users can gain an in-depth understanding of their sleep quality and habits, and adjust their sleep environment and work and rest routines in a targeted manner, thereby improving their sleep quality and quality of life. The sleep analysis function of the cloud processing system will bring users a more intelligent, convenient, and personalized sleep management experience.
[0101] The present invention can be effectively used for the diagnosis and treatment of various sleep disorders. For example, for patients with sleep disorders, the present invention can provide detailed data support through automatic sleep staging to help doctors diagnose the condition more accurately. In addition, by long-term monitoring of the patient's sleep condition, the doctor can evaluate the treatment effect and adjust the treatment plan, thereby improving the treatment effect and the patient's quality of life. As people's attention to their own health continues to increase, the demand for home health monitoring equipment is also increasing. The non-contact automatic sleep staging method of the present invention can be used as a household device to facilitate users to monitor sleep at home. By analyzing the sleep data, users can understand their own sleep quality, discover potential sleep problems, and take corresponding measures to improve them. For example, users can adjust their work and rest time and improve the sleeping environment according to the monitoring data, thereby improving the overall sleep quality.
[0102] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0103] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0106] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A sleep staging method based on radar signals, characterized in that: include: According to the radar echo signal Get the respiratory time-frequency spectrum energy signal and distance-time spectrum energy signal ; The energy signal of the respiratory time-frequency spectrogram is analyzed by using the CNN backbone network. and the distance-time spectrum energy signal Perform feature extraction to obtain breathing features and body movement features; The global information is compressed into the feature channels of breathing features and body motion features using the global-pooling layer, and then the attention weights are assigned to different feature channels using the first fully connected layer and activation function. The breathing features and body motion features are weighted fused based on the attention weights, and the fused feature channels are reduced in dimension using a one-dimensional convolution kernel to obtain the attention fusion features. The attention fusion features are connected and integrated across layers using a residual module, and the integrated features are downsampled using a pooling layer to obtain feature signals of different resolutions, and features are extracted on feature maps of different resolutions using a convolutional layer to obtain fusion features at different resolutions, and feature maps of different resolutions are restored to the original sampling rate using an upsampling layer, and are concatenated and fused with the features downsampled by the corresponding pooling layer to obtain a feature map; The second fully connected layer is used to classify the feature map to obtain the sleep stage results.
2. The method according to claim 1, characterized in that The CNN backbone network is used to analyze the energy signal of the respiratory time-frequency spectrogram and the distance-time spectrum energy signal Before feature extraction, the method further includes: converting the energy signal of the respiratory time-frequency spectrum into and the distance-time spectrum energy signal Normalize.
3. The method according to claim 1, characterized in that The CNN backbone network includes multiple two-dimensional convolution kernels to utilize multiple two-dimensional convolution kernels to analyze the respiratory time-frequency spectrum energy signal. and the distance-time spectrum energy signal Perform feature extraction.
4. The method according to claim 1, characterized in that: The residual module is used to connect and integrate the attention fusion features across layers, including: Using the first convolution layer, the second convolution layer and the third convolution layer to perform a convolution operation on the attention fusion feature, so as to gradually reduce the dimension of the feature map; The features output by the second convolution layer and the features output by the third convolution layer are concatenated by using feature concatenation and the fourth convolution layer, and a convolution operation is performed on the concatenated features; The feature concatenation layer is used to concatenate the features output by the first convolutional layer with the features output by the fourth convolutional layer.
5. The method according to claim 1, characterized in that The second fully connected layer includes a plurality of neurons, each of which is connected to all neurons in the feature map to map the feature map to a corresponding label to obtain a sleep staging result.
6. The method according to claim 5, characterized in that The second fully connected layer also includes a random dropout layer, which is located between the neurons and the feature map and is used to discard some neurons according to a preset probability.
7. The method according to claim 1, characterized in that According to the radar echo signal Get the respiratory time-frequency spectrum energy signal ,include: The radar echo signal Fast time Perform Hamming windowing and fast Fourier transform to obtain the complex value time-distance image ; For the complex-valued time-distance image Bandpass filtering is performed along the time dimension to obtain the distance-time spectrum of chest and abdominal micro-motion information caused by breathing ; The distance-time spectrum Each frame in the image is weighted along the distance dimension, and the phase information is extracted to obtain a one-dimensional respiratory phase signal representing the breathing. ; The one-dimensional respiratory phase signal Perform short-time Fourier transform to obtain the time-frequency spectrum of breathing; Take the absolute value of the time-frequency spectrogram and convert it into decibel units, and obtain the respiratory time-frequency spectrogram energy signal based on the preset sampling frequency .
8. The method according to claim 7, characterized in that According to the radar echo signal Get the distance-time spectrum energy signal ,include: For the complex-valued time-distance image Take the absolute value and convert it into an energy signal in decibels by taking its logarithm; The energy signal is downsampled, and based on a preset sampling frequency, a distance-time spectrum energy signal is obtained. .
9. The method according to claim 1, characterized in that: After getting the sleep staging results, it also includes: Smoothing the sleep staging results to generate sleep staging labels at preset time intervals; Count the duration and proportion of each sleep tag of the user and generate a sleep report.
10. A sleep staging device based on radar signals, characterized in that: include: A processor and a memory connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor executes the sleep staging method based on radar signals as described in any one of claims 1-9.
Citation Information
Patent Citations
Non-contact sleep staging method
CN107307846A
Multi-sensor feature optimization algorithm-based sleep staging method
CN108388912A
Noncontact sleep monitoring device based no ultrawide-band radar and noncontact sleep staging method based on ultrawide-band radar
CN109480787A
Sleep breathing data monitoring method and device
CN113907742A
Sleep staging method and device
CN114098645A
