A sleep stage classification method based on standard deviation
Through the sleep stage staging method based on standard deviation, the heart rate and respiration rate data of the non-contact sleep detection device are distorted and interpolated, and the standard deviation and difference of the heart rate and respiration rate are analyzed to solve the problem of distortion caused by sensor pressure. It is difficult to classify sleep states, and it achieves accurate sleep stage classification, which is consistent with the EEG sleep measurement results.
Patent Information
- Application Number
- CN202411096744.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-12
AI Technical Summary
In non-contact sleep detection equipment, the sensor is easily distorted by pressure under the pillow or mattress, making it impossible to accurately classify sleep states.
The sleep stage staging method based on standard deviation is used to obtain heart rate and respiration rate data, perform distortion processing and interpolation completion, calculate the standard deviation of heart rate and respiration rate difference, and analyze the heart rate variability and respiration rate based on the threshold value and duration. Level of stability, dividing the stages of deep sleep, light sleep and wakefulness.
It effectively solves the problem of sensor pressure distortion, realizes the classification of sleep stages in the lying state, and has a consistent rate of 85% with the test results of EEG sleep medical equipment.
Smart Images

Figure QLYQS_3 
Figure QLYQS_6 
Figure QLYQS_52
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of non-contact sleep monitoring, and more particularly to a sleep stage classification method based on standard deviation. Background Art
[0002] Traditional sleep monitoring devices mainly rely on contact sensors attached to the human body to measure, thereby obtaining real-time human parameter signals. For sensitive users, contact sensors attached to the human body can easily affect the user's natural sleeping habits and sleep quality.
[0003] For this reason, non-contact sleep monitoring devices came into being. They do not need to contact the user's body surface, are more comfortable to use, and will not cause interference or discomfort to the user's sleep.
[0004] Chinese patent CN109480787A provides a non-contact sleep detection device and sleep staging method based on ultra-wideband radar. The non-contact sleep detection device collects radar echo data of a human body lying down, obtains body movement status, respiratory rate and heart rate, and divides the sleep state into wakefulness, light sleep and deep sleep based on the acquired data.
[0005] The above patent requires that the sensor be installed in an unobstructed location such as the bedside or wall. When some children install it for the elderly, some privacy-conscious elderly people often resist. However, if the sensor is installed under the pillow or mattress, the signal collected by the sensor will easily be distorted due to the change in the pressure of the human body on the sensor, making it impossible to divide the sleep state. Summary of the invention
[0006] In view of the problem in the prior art that the sensor is installed under the pillow or mattress, which is prone to signal distortion and causes the non-contact sleep detection device to be unable to achieve sleep state classification, the purpose of the present invention is to provide a sleep stage classification method based on standard deviation, which includes the following steps:
[0007] S1. Use a sensor placed under a mattress or pillow to obtain raw data, the raw data is as follows:
[0008] Heart rate data H = { , ,……, }, h represents the heart rate per minute.
[0009] Respiration rate data B = { , ,……, }, b represents the respiratory rate per minute.
[0010] S2, given distortion rate judgment value , given the distorted breathing rate judgment value . Set H to be greater than or equal to The h value is assigned to 0, and we get . Set B to be greater than or equal to The b value is assigned to 0, and we get .
[0011] S3, if =0, then judge from n to 1 in sequence Is the h value zero? ≠0, j<n. If =0, then judge in order from 1 to n Is the h value zero? ≠0, i<n. like ≠0, then In = .like ≠0, then In = .
[0012] like =0, then judge from n to 1 in sequence Is the b value zero? ≠0, p<n. If =0, then judge in order from 1 to n Is the b value zero? ≠0, q<n. If ≠0, then In = .like ≠0, then In = .
[0013] S4. middle and Each h value equal to zero is assigned the average of the two non-zero h values before and after it, and we get .Will middle and Each b value equal to zero is assigned the mean of the two non-zero b values before and after it, and the result is .
[0014] S5. Calculate in sequence The difference between each b value and the first b value after it ,get ={ , ,……, }.
[0015] Calculate in sequence The standard deviation of each h value and the next h value or the next consecutive h values .get { , ,……, }.
[0016] S6. According to , and Determines sleep stage results for each minute, with sleep stage results being deep sleep, light sleep, or awake.
[0017] The present invention is further configured as follows: S6 specifically steps as follows: assuming that deep sleep is , light sleep is , sober for .according to , and Determine sleep stage results per minute : y∈[1,n], when y is equal to n, Recorded as 0, Recorded as 0. Given Threshold values E1 and E2, E1>E2, given Threshold value F, given Duration C, C≥2.
[0018] =0, = .
[0019] ≠0, if ≥E1, ≤F, and The two adjacent ones that are larger than F If the time interval between is greater than or equal to C, then = .like ,and <E2, then = .like ,and ,but = .
[0020] The present invention is further set as: F=0.
[0021] The present invention is further configured as: C=4 or C=5.
[0022] The present invention is further configured as: E1=4 or E1=3.
[0023] The present invention is further configured as: E2=1.
[0024] The present invention is further configured as follows: The calculation steps are as follows: Given a value A, 30≥A≥15. middle There are at least A-1 h values after that, x∈[1,n], then calculate , μ represents the mean, .like middle If the number of h values is less than A-1, and x∈[1,n], then calculate , μ represents the mean, .
[0025] The present invention is further set as: A=20.
[0026] The present invention is further configured as follows: The single-minute heart rate value corresponding to the upper limit of the sensor measurement. The single-minute respiration rate value corresponding to the upper limit of the sensor measurement.
[0027] The present invention is further configured as follows: the sensor is a radar sensor or a piezoelectric sensor, the radar sensor is used to transmit radar waves to the human body and receive radar echo data, and obtain raw data based on the radar echo data. The piezoelectric sensor is used to convert small pressure changes on the mattress into electrical signals, and obtain raw data based on the electrical signals.
[0028] In summary, the present invention has the following beneficial effects compared to the prior art: the present invention retains the distorted parts at the beginning and end of the original heart rate data and the original respiratory rate data, performs interpolation processing on the distorted parts of the original heart rate data and the original respiratory rate data located between the valid data, calculates the heart rate standard deviation and the respiratory rate difference of two consecutive minutes based on the interpolated heart rate data and respiratory rate data, determines whether someone is lying on the mattress based on the distorted part of the data, and further analyzes the heart rate variability and respiratory rate stability when someone is lying on the mattress based on the heart rate standard deviation and the respiratory rate difference of two consecutive minutes, so as to divide the deep sleep stage, light sleep stage and awake stage of the person in the lying state. The method provided by the present invention solves the problem that when the sensor of the non-contact sleep detection equipment is set under the mattress or pillow, the sensor is compressed and distorted, making it difficult to divide the sleep stages. DETAILED DESCRIPTION
[0029] The technical solution of the present invention will be clearly described below. Obviously, the described embodiments are not all embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the invention.
[0030] Example
[0031] This embodiment provides a sleep stage classification method based on standard deviation, which includes the following steps:
[0032] S1. Use a sensor placed under a mattress or pillow to obtain raw data. The sensor is a radar sensor or a piezoelectric sensor. The radar sensor is used to transmit radar waves to the human body and receive radar echo data. Raw data is obtained based on the radar echo data. The piezoelectric sensor is used to convert small pressure changes on the mattress into electrical signals. Raw data is obtained based on the electrical signals. The raw data is as follows:
[0033] Heart rate data H = { , ,……, }, h represents the heart rate per minute.
[0034] Respiration rate data B = { , ,……, }, b represents the respiratory rate per minute.
[0035] S2, given distortion rate judgment value , given the distorted breathing rate judgment value . Set H to be greater than or equal to The h value is determined as the distorted heart rate and assigned to 0 to obtain the heart rate data . Set B to be greater than or equal to The b value is determined as the distorted breathing rate and assigned to 0 to obtain the breathing rate data. .
[0036] The single-minute heart rate value corresponding to the upper limit of the sensor measurement. The single-minute respiration rate value corresponding to the upper limit of the sensor measurement.
[0037] S3, if =0, then judge from n to 1 in sequence Is the h value zero? ≠0, j<n. If =0, then judge in order from 1 to n Is the h value zero? ≠0, i<n. like ≠0, then In = .like ≠0, then In = . arrive The data represents the heart rate data of a person lying in bed.
[0038] like =0, then judge from n to 1 in sequence Is the b value zero? ≠0, p<n. If =0, then judge in order from 1 to n Is the b value zero? ≠0, q<n. If ≠0, then In = .like ≠0, then In = . middle arrive The data represents the breathing rate of a person lying in bed.
[0039] The calculation steps are as follows: Given a value A, A represents the time required to fall asleep normally, 30≥A≥15. middle There are at least A-1 h values after that, x∈[1,n], then calculate , μ represents the mean, .like middle If the number of h values is less than A-1, and x∈[1,n], then calculate , μ represents the mean, In this embodiment, A=20.
[0040] S4. middle and Each h value equal to zero is assigned the average of the two non-zero h values before and after it, and the distorted heart rate data of the person lying on the bed is interpolated and supplemented to obtain the heart rate data. .Will middle and Each b value equal to zero is assigned the average of the two non-zero b values before and after it, and the distorted breathing rate in the breathing rate data of a person lying on the bed is interpolated and supplemented to obtain the breathing rate data. .
[0041] S5. Calculate in sequence The difference between each b value and the first b value after it ,get ={ , ,……, }.
[0042] Calculate in sequence The standard deviation of each h value and the next h value or the next consecutive h values .get { , ,……, }.
[0043] S6. According to , and Determine the sleep stage result for each minute, and the sleep stage result is deep sleep, light sleep, or wakefulness. It can be used to classify whether a person is lying in bed. Can be used to determine how steady a person's breathing is. Can be used to determine a person's heart rate variability. and Combined, it can be used for the deep sleep stage, light sleep stage and wakefulness stage of a person in a lying state.
[0044] It should be noted that the deep sleep in this embodiment is equivalent to the non-rapid eye movement (NREM) state in the art, and the light sleep in this embodiment is equivalent to the rapid eye movement (REM) state in the art.
[0045] It is a parameter that measures the degree of fluctuation of respiratory rate. The smaller the value, the steadier the breathing. Because the breathing in the NREM state is generally deep and slow, and the breathing rhythm is more regular, multiple consecutive and small values It can be used as one of the measures of deep sleep.
[0046] It is an important parameter to measure heart rate variability. The smaller it is, the smaller the heart rate variability HRV is; The larger the HRV, the greater the heart rate variability. According to the literature "Study on Heart Rate Variability of Short-term Sleep Based on Limited Crossing Horizontal Visibility Diagram", the transition from wakefulness to non-rapid eye movement (NREM) sleep is associated with increasing parasympathetic modulation and decreasing sympathetic modulation. During NREM sleep, as the degree of sleep deepens from light sleep to deep sleep, parameters such as heart rate gradually decrease, while HRV increases. On the contrary, from the NREM stage to the REM sleep stage, HRV will decrease significantly, accompanied by changes in the balance of the sympathetic vagus nerves, changing in the direction of weakened vagal control and enhanced sympathetic modulation. Therefore, in the deep sleep stage, Maximum, awake The smallest, lightest sleep stage , in deep sleep and awake stage between.
[0047] The specific steps are as follows: Set deep sleep to , light sleep is , sober for .according to , and Determine sleep stage results per minute : y∈[1,n], when y is equal to n, and It is impossible to calculate according to the steps described in S5, so Recorded as 0, Recorded as 0. Given Threshold values E1 and E2, E1>E2, given Threshold value F, given Duration C, C≥2.
[0048] =0, = .
[0049] ≠0, if ≥E1, ≤F, and The two adjacent ones that are larger than F If the time interval between is greater than or equal to C, then = .like ,and <E2, then = .like ,and ,but = .
[0050] In this embodiment, F=0, C=4 or C=5, E1=4 or E1=3, and E2=1.
[0051] After testing, the deep sleep stage, light sleep stage and wakefulness stage divided based on the method of this embodiment have a consistency rate of about 85% with the test results of the Class II electroencephalogram sleep measurement medical device.
[0052] In summary, this embodiment retains the distorted parts at the beginning and end of the original heart rate data and the original respiratory rate data, interpolates the distorted parts of the original heart rate data and the original respiratory rate data that are between the valid data, calculates the heart rate standard deviation and the respiratory rate difference of two consecutive minutes based on the interpolated heart rate data and respiratory rate data, determines whether someone is lying on the mattress based on the distorted part of the data, and further analyzes the heart rate variability and respiratory rate stability when someone is lying on the mattress based on the heart rate standard deviation and the respiratory rate difference of two consecutive minutes, so as to divide the deep sleep stage, light sleep stage and awake stage of the person in the lying state. The method provided in this embodiment solves the problem that when the sensor of the non-contact sleep detection equipment is set under the mattress or pillow, the sensor is compressed and distorted, making it difficult to divide the sleep stages.
[0053] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A sleep stage classification method based on standard deviation, characterized in that: The steps include: S1. Use a sensor placed under a mattress or pillow to obtain raw data, the raw data is as follows: Heart rate data H = { , ,……, }, h represents the heart rate per minute; Respiration rate data B = { , ,……, }, b represents the respiratory rate per minute; S2, given distortion rate judgment value , given the distorted breathing rate judgment value ; Set H to be greater than or equal to The h value is assigned to 0, and we get ; Set the value in B that is greater than or equal to The b value is assigned to 0, and we get ; S3, if =0, then judge from n to 1 in sequence Is the h value zero? ≠0, j<n; if =0, then judge in order from 1 to n Is the h value zero? ≠0, i<n; if ≠0, then In = ;like ≠0, then In = ; like =0, then judge from n to 1 in sequence Is the b value zero? ≠0, p<n; if =0, then judge in order from 1 to n Is the b value zero? ≠0, q<n; if ≠0, then In = ;like ≠0, then In = ; S4. middle and Each h value equal to zero is assigned the average of the two non-zero h values before and after it, and we get ;Will middle and Each b value equal to zero is assigned the mean of the two non-zero b values before and after it, and the result is ; S5. Calculate in sequence The difference between each b value and the first b value after it ,get ={ , ,……, }; Calculate in sequence The standard deviation of each h value and the next h value or the next consecutive h values ; get { , ,……, }; S6. According to , and Determines sleep stage results for each minute, with sleep stage results being deep sleep, light sleep, or awake.
2. A sleep stage classification method based on standard deviation according to claim 1, characterized in that: The specific steps of S6 are as follows: Set deep sleep to , light sleep is , sober for ;according to , and Determine sleep stage results per minute : y∈[1,n], when y is equal to n, Recorded as 0, Recorded as 0; given Threshold values E1 and E2, E1>E2, given Threshold value F, given Duration C, C≥2; =0, = ; ≠0, if ≥E1, ≤F, and The two adjacent ones that are larger than F If the time interval between is greater than or equal to C, then = ;like ,and <E2, then = ;like ,and ,but = .
3. A sleep stage classification method based on standard deviation according to claim 2, characterized in that: F=0。 4. A sleep stage classification method based on standard deviation according to claim 2 or 3, characterized in that: C=4 or C=5.
5. The sleep stage classification method based on standard deviation according to claim 2, characterized in that: E1=4 or E1=3.
6. A sleep stage classification method based on standard deviation according to claim 2 or 5, characterized in that: E2=1。 7. A sleep stage classification method based on standard deviation according to claim 1 or 2, characterized in that: The calculation steps are as follows: given a value A, 30≥A≥15; if middle There are at least A-1 h values after that, x∈[1,n], then calculate , μ represents the mean, ;like middle If the number of h values is less than A-1, and x∈[1,n], then calculate , μ represents the mean, .
8. The sleep stage classification method based on standard deviation according to claim 7, characterized in that: A=20。 9. A sleep stage classification method based on standard deviation according to claim 1 or 2, characterized in that: The single-minute heart rate value corresponding to the upper limit of sensor measurement; The single-minute respiration rate value corresponding to the upper limit of the sensor measurement.
10. A sleep stage classification method based on standard deviation according to claim 1 or 2, characterized in that: The sensor is a radar sensor or a piezoelectric sensor. The radar sensor is used to transmit radar waves to the human body and receive radar echo data, and obtain original data based on the radar echo data; the piezoelectric sensor is used to convert the pressure change on the mattress into an electrical signal, and obtain original data based on the electrical signal.
Citation Information
Patent Citations
Noncontact sleep monitoring device based no ultrawide-band radar and noncontact sleep staging method based on ultrawide-band radar
CN109480787A
Sleep stage staging method for self-adaptive cluster point generation
CN112617761A
Sleep staging stage identification method based on human body monitoring sleep data
CN112842266A
Sleep sign and state detection method
CN114176543A
Non-contact sleep stage judgment method and system, computer equipment and medium
CN115500789A
