Sleep quality monitoring method and system, electronic equipment and storage medium
Through multi-dimensional data analysis and network model prediction, combined with piezoelectric sensors and physical activity recording equipment, the problem of expensive and inaccurate sleep quality monitoring equipment in the existing technology is solved, and non-inductive long-term sleep quality monitoring and evaluation is achieved. It improves the accuracy of assessment and provides a new method for home monitoring.
Patent Information
- Application Number
- CN202410885726.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology has problems in sleep quality monitoring, such as expensive equipment and complex operations, and the inability to accurately assess sleep quality. Especially in non-invasive sleep monitoring, key cardiac parameters that reflect sleep status such as heart rate variability cannot be effectively used.
By obtaining the subject's physical activity intensity value and heart rate data, combined with the trained network model, the sleep state is predicted and sleep quality is calculated, using multi-dimensional data analysis, including state prediction optimization module, sleep state prediction statistics module and sleep quality determination The module uses piezoelectric sensors and physical activity recording devices to collect data, perform time alignment and feature extraction, calculate HRV features, assign weights and score sleep quality.
It achieves accurate sleep quality assessment without expensive medical equipment, is suitable for daily and home monitoring, improves the accuracy of sleep quality assessment, provides a new method for long-term sleep health monitoring, and has important significance in preventing sleep disorders and related diseases.
Smart Images

Figure CN118697291A
Abstract
Description
Background Art
[0002] Sleep quality is a key factor in a person's physical health and daily performance. Studies have shown that good sleep quality can improve cognitive function, enhance memory, reduce the risk of chronic diseases, improve mood and mental health, and enhance the function of the immune system. For professional athletes, especially those who need high-intensity training, sleep is a critical time for physical recovery and repair. Maintaining good sleep quality will help athletes restore physical functions and improve athletic performance. In addition, sleep also has an important impact on athletes' cognitive function and emotional state. Good sleep quality can improve athletes' skill learning efficiency, while lack of sleep may cause athletes to be distracted, seriously affecting athletes' reaction speed and decision-making ability, and increasing athletes' risk of injury.
[0003] Polysomnography (PSG) is a comprehensive method for evaluating sleep. It can record data such as brain waves, eye movements, electrocardiograms, breathing, and muscle activity. It is currently the "gold standard" sleep assessment method. However, PSG measurements need to be performed in a specialized sleep laboratory or hospital, and the monitoring process may interfere with sleep, limiting its application in athletes or daily sleep monitoring for the general public. In addition, self-reported sleep logs and questionnaires are also a simple and easy way to assess sleep quality. It mainly assesses sleep quality by recording sleep logs (such as sleep time, difficulty falling asleep, frequency of waking up at night, etc.) or filling out sleep questionnaires (such as the Pittsburgh Sleep Quality Index, Eysenck Sleep Questionnaire, etc.). This method is simple to operate and does not require professional equipment and environment. It has been widely used, but it is susceptible to user memory bias.
[0004] With the development of smart sensors and smart home technologies, smart mattresses, smart pillows, etc. can realize non-invasive sleep monitoring. In practical applications, piezoelectric sensors are installed on sleep tracking devices such as mattresses and sheets to monitor the pressure change signals of tiny movements generated by heart beats for a long time, namely the ballistocardiography (BCG) signals. Through BCG data analysis, different sleep states such as wakefulness, rapid eye movement (REM), deep sleep and light sleep, as well as sleep duration, can be effectively identified and calculated, which helps to objectively evaluate sleep quality.
[0005] At present, relevant personnel have conducted non-invasive sleep monitoring research based on BCG signals. For example, the invention patent with the theme name "A sleep sign monitoring and adjustment method" (publication number: CN116849630A) discloses: obtaining heart rate signals, respiratory signals, body temperature signals and other sign parameters through piezoelectric sensors, judging whether they are within the standard sign parameter range and sending prompt control information to the user. This method only monitors abnormal sleep conditions and cannot effectively evaluate sleep quality; the invention patent with the theme name "A real-time sleep staging detection method and device based on piezoelectric sensors" (publication number: CN106419869A) discloses: using piezoelectric sensors to collect BCG signals during sleep, and passing the BCG signals through a hidden Markov model to fuse heart rate, respiratory and body movement parameters for sleep staging. This method can enhance the ability to distinguish between wakefulness and sleep through body motion data. However, this method does not analyze key cardiac parameters that reflect sleep status, such as heart rate variability, and cannot accurately predict sleep status, and lacks a method to evaluate sleep quality. In the invention patent with the theme name "Sleep staging method based on BCG signal" (publication number: CN110742585A), heart rate, breathing and pulse signals are extracted from the BCG waveform. Based on these acquired signals, the frequency domain features of heart rate variability (HRV) and cardiopulmonary coupling power spectrum are calculated, feature vectors are extracted, and deep learning models are used to calculate sleep staging results. However, this method ignores other dimensional features such as nonlinear domains, and relies on deep learning models, requiring high computing power and poor real-time performance. Summary of the invention
[0006] The technical problem to be solved by the present invention is to address the deficiencies of the prior art and specifically provide a sleep quality monitoring method, system, electronic device and storage medium, as follows:
[0007] 1) In the first aspect, the present invention provides a method for monitoring sleep quality, and the specific technical solution is as follows:
[0008] Obtaining the physical activity intensity value of the subject at each first preset time in the first preset time period, and combining with the trained first network model, predicting and optimizing the state of the subject at multiple first preset time periods, and determining the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized result, wherein the state at the first preset time period is the awake state or the sleep state;
[0009] According to the heart rate data of the subject in each sleep cycle, the target HRV features are obtained, and combined with the trained second network model, the sleep state of the subject at each first preset moment in each sleep cycle is predicted, the duration of the subject in different sleep states is counted, and the total sleep time and the time waking up after falling asleep WASO of the subject are calculated;
[0010] The sleep quality of the subject is determined according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration in different sleep states and the waking time WASO after falling asleep.
[0011] The beneficial effects of a sleep quality monitoring method provided by the present invention are as follows:
[0012] Through multi-dimensional data analysis, the accuracy of sleep quality assessment can be improved. Compared with professional detection work based on polysomnography, the present invention does not need to use expensive and complicated medical equipment to measure professional medical indicators such as brain waves. It is suitable for daily sleep quality monitoring and can realize non-invasive long-term sleep monitoring. It provides new possibilities for long-term and home sleep evaluation, which is of great significance for preventing sleep disorders and related diseases.
[0013] Based on the above solution, the sleep quality monitoring method of the present invention can also be improved as follows.
[0014] Furthermore, the process of obtaining the trained first network model includes:
[0015] Collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment;
[0016] Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state;
[0017] Preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state;
[0018] Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain a trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain a trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
[0019] Furthermore, according to the heart rate data of the subject in each sleep cycle, the target HRV characteristics are obtained, including:
[0020] According to the heart rate data of the subject in each sleep cycle, the RR interval at each sixth preset moment is calculated and screened;
[0021] From the screened RR intervals of the multiple sixth preset moments, the RR interval data of different sleep states are determined, and HRV analysis is performed on the RR interval data of different sleep states to extract multiple HRV features, and the target HRV features are screened out through a recursive feature elimination method.
[0022] Further, the sleep quality of the subject is determined according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration of different sleep states and the time of waking up after falling asleep WASO, including:
[0023] According to the duration of the subjects in different sleep states and the WASO of waking up after falling asleep, the proportion of the duration of different sleep states and the proportion of WASO of waking up after falling asleep are calculated, and weights are assigned accordingly. The total sleep time and number of awakenings of the subjects are also weighted accordingly.
[0024] A sleep quality score is determined based on all weights, and the sleep quality of the subject is determined based on the sleep quality score.
[0025] Furthermore, different sleep states include a light sleep state, a deep sleep state, and a REM sleep state.
[0026] 2) In the second aspect, the present invention also provides a sleep quality monitoring system, and the specific technical solution is as follows:
[0027] It includes a state prediction optimization module, a sleep state prediction statistics module and a sleep quality determination module;
[0028] The state prediction and optimization module is used to: obtain the physical activity intensity value of the subject at each first preset time in the first preset time period, and combine the trained first network model to predict and optimize the state of the subject at multiple first preset time periods, and determine the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized results, wherein the state at the first preset time period is the awake state or the sleep state;
[0029] The sleep state prediction and statistics module is used to obtain the target HRV features according to the heart rate data of the subject in each sleep cycle, and combine with the trained second network model to predict the sleep state of the subject at each first preset time in each sleep cycle, count the duration of the subject in different sleep states, and calculate the total sleep time and the waking time WASO of the subject after falling asleep;
[0030] The sleep quality determination module is used to determine the sleep quality of the subject according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration in different sleep states and the time WASO of waking up after falling asleep.
[0031] Based on the above solution, the sleep quality monitoring system of the present invention can also be improved as follows.
[0032] Furthermore, a model training module is included, and the model training module is used to:
[0033] Collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment;
[0034] Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state;
[0035] Preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state;
[0036] Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain a trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain a trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
[0037] Furthermore, the sleep state prediction and statistics module is also specifically used for:
[0038] According to the heart rate data of the subject in each sleep cycle, the RR interval at each sixth preset moment is calculated and screened;
[0039] From the screened RR intervals of the multiple sixth preset moments, the RR interval data of different sleep states are determined, and HRV analysis is performed on the RR interval data of different sleep states to extract multiple HRV features, and the target HRV features are screened out through a recursive feature elimination method.
[0040] Furthermore, the sleep quality determination module is specifically used for:
[0041] According to the duration of the subjects in different sleep states and the WASO of waking up after falling asleep, the proportion of the duration of different sleep states and the proportion of WASO of waking up after falling asleep are calculated, and weights are assigned accordingly. The total sleep time and number of awakenings of the subjects are also weighted accordingly.
[0042] A sleep quality score is determined based on all weights, and the sleep quality of the subject is determined based on the sleep quality score.
[0043] Furthermore, different sleep states include a light sleep state, a deep sleep state, and a REM sleep state.
[0044] 3) In a third aspect, the present invention further provides an electronic device, comprising a processor, the processor being coupled to a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor, so that the electronic device implements any one of the above-mentioned sleep quality monitoring methods.
[0045] 4) In a fourth aspect, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above-mentioned sleep quality monitoring methods.
[0046] It should be noted that the beneficial effects achieved by the technical solutions of the second to fourth aspects of the present invention and the corresponding possible implementation methods can be found in the above-mentioned technical effects of the first aspect and its corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] 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:
[0048] Figure 1 A schematic diagram of a sleep quality monitoring method according to an embodiment of the present invention;
[0049] Figure 2 Schematic diagram for temporal alignment of physical activity intensity and physical activity count signals;
[0050] Figure 3 It is a score curve graph of total sleep duration;
[0051] Figure 4 This is the score curve of the REM period proportion;
[0052] Figure 5 This is the score curve of the proportion of light sleep period;
[0053] Figure 6 This is a score curve chart of the deep sleep period ratio;
[0054] Figure 7 This is the score curve of WASO;
[0055] Figure 8 It is a score curve chart of awakening times;
[0056] Fig. 9 A structural schematic diagram of a sleep quality monitoring system according to an embodiment of the present invention;
[0057] Fig.10 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0059] like Figure 1 As shown, a sleep quality monitoring method according to an embodiment of the present invention comprises the following steps:
[0060] S1, obtaining the physical activity intensity value of the subject at each first preset time in the first preset time period, and combining with the trained first network model, predicting the state of the subject at multiple first preset time periods and optimizing it, and determining the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized result, wherein the state at the first preset time period is the awake state or the sleep state;
[0061] The first preset time period may be set according to actual conditions. For example, the first preset time period is the time period from 15 minutes before going to bed at night to 15 minutes after getting up the next day.
[0062] The interval between two adjacent first preset moments may be set according to actual conditions. For example, the interval between two adjacent first preset moments may be 1 second or 5 seconds.
[0063] The implementation process of obtaining the physical activity intensity value of the subject at each first preset moment in the first preset time period is as follows:
[0064] A piezoelectric film sensor for collecting ballistocardiogram signals (BCG signals) is placed under the subject's mattress and at the position of the subject's posterior chest when the subject is lying down. The piezoelectric film sensor continuously collects the subject's ballistocardiogram signals (collects ballistocardiogram data) within a first preset time period at a preset sampling frequency, and the subject's physical activity intensity value at each first preset moment within the first preset time period is analyzed from the collected ballistocardiogram signals, wherein the preset sampling frequency can be set according to actual conditions.
[0065] The process of optimizing the predicted states of the subject at multiple first preset moments includes:
[0066] When the states of multiple consecutive first preset moments are the same and the duration is less than the first preset duration threshold, and the states of multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments are the same and the duration is not less than the first preset duration threshold, and the states of multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments are different from the states of the multiple consecutive first preset moments, the states of the multiple consecutive first preset moments are adjusted to be the same as the states of the multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments, wherein the first preset duration threshold can be set according to actual conditions, for example, the first preset duration threshold is 2 minutes.
[0067] Among them, the number of awakenings refers to the number of times the subject enters the awake state and the duration exceeds the second preset time threshold during the entire sleep process, that is, within the first preset time period. The second preset time threshold can be set according to actual conditions. For example, the second preset time threshold is 5 minutes.
[0068] S2. Obtain target HRV features based on the heart rate data of the subject in each sleep cycle, and combine with the trained second network model to predict the sleep state of the subject at each first preset moment in each sleep cycle, count the duration of the subject in different sleep states, and calculate the subject's total sleep time and the time WASO to wake up after falling asleep;
[0069] Among them, the time of waking up after falling asleep (WASO) refers to the time of wakefulness between the first sleep and the last sleep of the subject in the first preset time period, which is used to assess the degree of sleep interruption.
[0070] Among them, different sleep states include light sleep state, deep sleep state and REM sleep state, and other sleep states can also be divided according to actual conditions.
[0071] Among them, the trained second network model can be a trained random forest machine learning model.
[0072] S3. Determine the sleep quality of the subject according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration in different sleep states, and the waking time WASO after falling asleep.
[0073] Optionally, the process of acquiring the trained first network model includes:
[0074] S020, collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment;
[0075] The second preset time period may be set according to actual conditions, and the second preset time period may be the same as or different from the first preset time period.
[0076] The process of collecting the ballistocardiogram signal of each person in the second preset time period is as follows:
[0077] Among them, a piezoelectric film sensor for collecting ballistocardiogram signals (BCG signals) is placed under the mattress of any person and located at the posterior chest of the person when the person lies down. The piezoelectric film sensor continuously collects the ballistocardiogram signals (collects ballistocardiogram data) of the person within a first preset time period at a preset sampling frequency, and the body activity intensity value of the person at each first preset moment within the first preset time period is analyzed from the collected ballistocardiogram signals. Similarly, the ballistocardiogram signals of each person within the second preset time period are collected.
[0078] Among them, the interval length between two adjacent second preset moments can be set according to actual conditions. For example, the interval length between two adjacent second preset moments is 1 second or 5 seconds, etc. The interval length between two adjacent second preset moments can be equal to or unequal to the interval length between two adjacent first preset moments.
[0079] S021. Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state;
[0080] Among them, the physical activity recording device can be an Actigraph, which is a physical activity recording device containing a three-axis accelerometer. It can monitor physical activity counting signals around the clock and use the Cole-Kripke algorithm to calculate the state of each person at each third preset moment within the second preset time period.
[0081] When using the Actigraph body actigraph to collect body activity counting signals, the Actigraph body actigraph can be worn on the wrist of the non-dominant hand.
[0082] Among them, the interval length between two adjacent third preset moments can be set according to actual conditions. For example, the interval length between two adjacent third preset moments is 1 second, 5 seconds or 1 minute, etc. The interval length between two adjacent third preset moments may be equal to or unequal to the interval length between two adjacent second preset moments.
[0083] S022, preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state;
[0084] Among them, the physical activity intensity of each person at each second preset moment is preprocessed, including: linear interpolation and median filtering are performed on the physical activity intensity of each person at each second preset moment. Through linear interpolation, missing data can be filled, and through median filtering, noise and outliers can be removed to improve the prediction accuracy of the trained first network model.
[0085] Among them, the interval between two adjacent fourth preset moments can be set according to actual conditions. For example, the interval between two adjacent fourth preset moments is 1 second, 5 seconds or 1 minute, etc. The interval between two adjacent fourth preset moments may be equal to or unequal to the interval between other two adjacent preset moments (including the first preset moment, the second preset moment and the third predicted time).
[0086] S023. Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain a trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain a trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
[0087] Among them, the step of "obtaining the physical activity intensity and status of each person at each fifth preset moment in the second preset time period based on the physical activity intensity and status of each person at each fourth preset moment in the second preset time period" can greatly reduce the amount of data processing.
[0088] Among them, the first network model can be a logistic regression model, which can be combined with the TPE algorithm in Bayesian optimization to train the logistic regression model. It can more efficiently search for the best hyperparameter combination of the logistic regression model to accurately adjust the hyperparameters of the logistic regression model and improve the generalization ability of the trained logistic regression model. A neural network can also be selected as the first network model according to actual conditions.
[0089] Optionally, in S2, obtaining a target HRV feature according to the heart rate data of the subject in each sleep cycle includes:
[0090] S20, calculating and screening the RR interval at each sixth preset time according to the heart rate data of the subject in each sleep cycle;
[0091] Among them, the heart rate of the subject at each first preset moment in the first preset time period can be analyzed from the collected ballistocardiogram signal, thereby obtaining the heart rate data of the subject in each sleep cycle, that is, the heart rate at each first preset moment in each sleep cycle.
[0092] Among them, the interval between two adjacent sixth preset moments can be set according to actual conditions. For example, the interval between two adjacent sixth preset moments is 1 second, 5 seconds or 1 minute, etc. The interval between two adjacent sixth preset moments can be equal to or unequal to the interval between other two adjacent preset moments (including the first preset moment, the second preset moment, the third predicted time, the fourth predicted time and the fifth predicted time).
[0093] Among them, the time period when the subject leaves the bed within the first preset time period (out-of-bed time period) is determined, and the RR intervals within the time period when the subject leaves the bed are removed from all RR intervals at the sixth preset time to obtain the screened RR intervals at multiple sixth preset times.
[0094] S21. Determine the RR interval data of different sleep states from the selected RR intervals at the sixth preset moments, perform HRV analysis on the RR interval data of different sleep states, extract multiple HRV features, and select target HRV features through a recursive feature elimination method.
[0095] Among them, HRV (Heart Rate Variability, HRV) refers to heart rate variability.
[0096] Screening out target HRV features refers to: the HRV features that are most useful for predicting sleep status, such as HRV_MeanNN, HRV_SDNN, and HRV_Prc20NN.
[0097] Optionally, in S3, the sleep quality of the subject is determined according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration of different sleep states, and the time WASO of waking up after falling asleep, including:
[0098] S30, according to the duration of the subject in different sleep states and the WASO of waking up after falling asleep, calculate the proportion of the duration of different sleep states and the proportion of the WASO of waking up after falling asleep, assign weights accordingly, and assign weights accordingly to the total sleep time and number of awakenings of the subject;
[0099] S31. Determine a sleep quality score according to all weights, and determine the sleep quality of the subject according to the sleep quality score.
[0100] The present invention is further described by the following examples, including:
[0101] S101, signal acquisition and data preprocessing, specifically:
[0102] S1010, signal acquisition:
[0103] 1) BCG signal acquisition: A piezoelectric film sensor for collecting ballistocardiogram signals (BCG signals) is placed under the person's mattress and located at the back of the person's chest when the person is lying down. Preferably, the thickness of the mattress does not exceed 10 cm. The piezoelectric film sensor continuously collects the person's ballistocardiogram signals at a preset sampling frequency from the time the person prepares to go to bed to the time the person wakes up (a second preset time period), and analyzes key parameters of sleep signs such as heart rate, bed status, and physical activity intensity from the ballistocardiogram signals.
[0104] 2) Body activity count signal acquisition: The Actigraph is a body activity recording device that contains a three-axis accelerometer. It can monitor body activity count signals around the clock and use the Cole-Kripke algorithm to calculate the status of each person every minute (at each third preset moment) from 15 minutes before going to bed to 15 minutes after waking up the next day (within the second preset time period). This is used as the "gold standard" and as a label when training the first network model.
[0105] S1011, data preprocessing, specifically:
[0106] 1) Timestamp processing: The Unix timestamps in the physical activity intensity and bed status signals were interpolated to ensure that each timestamp was equidistant and in seconds.
[0107] 2) Signal interpolation: Linear interpolation is applied to the signals of physical activity intensity and bed status, and cubic spline interpolation is performed on the heart rate to fill in the data gaps.
[0108] 3) Median filtering: Median filtering is applied to the interpolated physical activity intensity to remove noise and outliers.
[0109] 4) Time-align the physical activity intensity and the physical activity count signal. The alignment diagram of the two is as follows: Figure 2 shown.
[0110] S102, stage 1 sleep-wake staging algorithm, including:
[0111] S1020, Data Reorganization: Based on the Unix timestamp and filtered physical activity intensity signal, the signal data is resampled from the second level to the minute level, which simplifies the complexity of data processing while retaining the key information of the original data.
[0112] S1021. Construct a body movement record dataset: The dataset consists of sleep records of 60 people, including person ID, Unix timestamp, aligned body movement features for each minute, and bed status and sleep-wake state labels derived from Actigraph. Among them, the body movement feature for each minute is the physical activity intensity value in a 7-minute window, that is, assuming that the current minute is the Tth minute, the physical activity intensity value in the 7-minute time window from the T-4th minute to the T+2th minute is taken as the input of the trained first network model to evaluate the state of the Tth minute. The construction of this dataset facilitates subsequent analysis or machine learning model training input.
[0113] S1022. Train a logistic regression model to predict wakefulness-sleep state: Use a trained logistic regression model (trained first network model) to classify states (wakefulness and sleep state). First, train the logistic regression model based on the sleep data set, and use the TPE algorithm in Bayesian optimization to more efficiently search for the best hyperparameter combination of the logistic regression model to accurately adjust the hyperparameters of the model and improve the generalization ability of the model. The trained logistic regression model predicts wakefulness and sleep state based on the characteristics of physical activity intensity.
[0114] S103, obtaining the physical activity intensity value of the subject at each first preset time in the first preset time period (wearing the device 15 minutes before going to bed to 15 minutes after waking up the next day), and combining the trained first network model, predicting the state of the subject at multiple first preset time periods and optimizing it, and determining the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle, as well as the start time and end time of each sleep cycle according to the optimized result, wherein the state at the first preset time period is the awake state or the sleep state;
[0115] In order to improve the prediction accuracy, a post-processing step (optimization step) is introduced to adjust the prediction results. Considering the continuity of sleep state, if the state predicted as sleep lasts only for a short time in the time series (such as less than two minutes), and both sides of the short state are opposite states (that is, both sides are awake or asleep), then the state is readjusted to the same state before and after. Specifically:
[0116] When the states of multiple consecutive first preset moments are the same and the duration is less than the first preset duration threshold, and the states of multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments are the same and the duration is not less than the first preset duration threshold, and the states of multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments are different from the states of the multiple consecutive first preset moments, the states of the multiple consecutive first preset moments are adjusted to be the same as the states of the multiple consecutive first preset moments before and after the state of the multiple consecutive first preset moments, wherein the first preset duration threshold can be set according to actual conditions, for example, the first preset duration threshold is 2 minutes.
[0117] S104, REM-deep sleep-light sleep staging algorithm for stage 2, specifically:
[0118] S1040, data preparation and preprocessing: calculating the RR interval per minute from the heart rate data, and storing the Unix timestamp, heart rate and RR interval data of each person per minute;
[0119] S1041, bed leaving time processing: calculate the total time of being out of bed during sleep according to the bed leaving time periods, and remove the RR interval data of these time periods from the data.
[0120] S1042, HRV feature extraction: perform HRV analysis on the RR intervals of each time period, and extract multiple HRV features, including HRV time domain features, HRV frequency domain features, and HRV nonlinear domain features.
[0121] S1043. Feature selection and random forest model construction: The most useful HRV features for predicting sleep status are screened out through methods such as recursive feature elimination, such as HRV_MeanNN, HRV_SDNN, HRV_Prc20NN, etc. The pre-trained random forest machine learning model (the trained random forest machine learning model, that is, the trained second network model) is used to predict the sleep state every minute. The sleep state is divided into: light sleep state, deep sleep state and REM sleep state.
[0122] S1044, counting the duration of each sleep state: based on the predicted sleep state, counting the duration of REM, deep sleep and light sleep states, and calculating the total sleep time.
[0123] S105. The sleep quality scoring method is as follows:
[0124] S1050, data calculation:
[0125] 1) Calculate total sleep time: This indicator is the sum of the duration of all sleep periods that night. The total sleep time TST is determined by continuously monitoring the participants' physical activity and heart rate changes. Any continuous stillness or low-intensity activity is considered a sleep state. SP is the sleep time between two consecutive awakenings. The total sleep time TST is calculated using formula (1):
[0126]
[0127] Among them, SP i represents the i-th SP, and N represents the number of occurrences of SP.
[0128] 2) Calculate awakenings: Awakenings refer to the number of times the subject enters the awake state and lasts for more than 5 minutes during the entire sleep process. This indicator reflects the continuity and stability of sleep. High-frequency awakenings are usually associated with decreased sleep quality.
[0129] 3) Calculation of wake-up time after falling asleep (WASO): WASO refers to the awake time between the first and last sleep of the subject to assess the degree of sleep interruption. It is calculated by subtracting the total sleep time (TST) from the time between the start of the first sleep and the end of the last sleep. For details, see formula (2):
[0130] WASO=SI-TST (2)
[0131] 4) Calculate the proportion of rapid eye movement (REM) period (the proportion of duration of REM sleep state): Rapid eye movement period is a state in the sleep cycle that is closely related to dream activities. The duration and proportion of REM period are believed to be related to cognitive functions such as memory consolidation and emotion regulation.
[0132] 5) Calculate the proportion of light sleep (the proportion of duration of light sleep): Light sleep is the primary state of transition from wakefulness to deep sleep. Although it is considered a lighter sleep state, light sleep plays an important role in the overall sleep structure.
[0133] 6) Calculate the deep sleep percentage (percentage of duration in deep sleep): Deep sleep or slow-wave sleep is the deepest state in the sleep cycle. Deep sleep is essential for physical recovery, immune system function, and rebuilding of energy reserves.
[0134] The individual scores S of the above six indicators (total sleep time TST, number of awakenings, WASO, REM period proportion, light sleep period proportion and deep sleep period proportion) are calculated according to different category formulas, namely formula (3) and formula (4):
[0135] S = max(100-β j *(x median -x) 2 ,0) (3)
[0136]
[0137] Among them, total sleep time, REM period proportion, light sleep period proportion and deep sleep period proportion are all first-class indicators, and awakening times and WASO are all second-class indicators. The scores of each indicator in the first-class indicators are calculated according to formula (3), and the scores of each indicator in the second-class indicators are calculated according to formula (4). In formula (3), x median is the midpoint of the curve, β j Represents the slope parameters of different indicators, j = 1, 2, 3, 4, 5, 6, represented by β1~β6: the slope parameter of total sleep time TST, the slope parameter of the number of awakenings, the slope parameter of WASO, the slope parameter of REM period proportion, the slope parameter of light sleep period proportion and the slope parameter of deep sleep period proportion (not limited to this corresponding relationship, as long as it can play a distinguishing role), x is the value of each indicator; in formula (4), θ is the midpoint of the curve, β j It represents the slope parameters of different indicators (same explanation as above), and x is the value of each indicator.
[0138] In formula (3), the midpoint of the curves of total sleep time, REM period percentage, light sleep period percentage, and deep sleep period percentage is x median The slope parameters of total sleep duration, REM period proportion, light sleep period proportion, and deep sleep period proportion are (10, 4.4444), (0.064, 0.1563), (0.1, 0.0309), and (0.2367, 0.0059), respectively. The score curves of various indicators are as follows: Figures 3 to 8 As shown, a table of sleep parameters of a category of indicators is shown in Table 1.
[0139] Table 1:
[0140]
[0141] S1051. Comprehensively score each sleep index by using a comprehensive weighted method to evaluate the sleep quality of the individual: the score of each index (S j ) and its corresponding weight (a j ) and then add up the results to get the total score. The total score reflects the overall sleep quality of the individual and is calculated as formula (5):
[0142]
[0143] Among them, S jRepresents the scores of individual indicators, represented by S1 to S6: the slope score of total sleep time TST, the score of awakening times, the score of WASO, the score of REM period proportion, the score of light sleep period proportion and the score of deep sleep period proportion (not limited to this corresponding relationship, as long as it can play a distinguishing role), a j Represents S j Corresponding to the weight of the indicators, in the present invention, the weight setting of each indicator is obtained by using the random forest regression method.
[0144] The weight results of each indicator calculated in the random forest regression analysis are as follows:
[0145] 1) The weight of total sleep time (TST) is 28.7615%;
[0146] 2) The weight of Awakenings is 9.9406%;
[0147] 3) The weight of the total duration of wakefulness after falling asleep (WASO) is 10.5902%;
[0148] 4) The weight of rapid eye movement (REM) is 19.5368%;
[0149] 5) The weight of light sleep is 20.9300%;
[0150] 6) The weight of deep sleep period (Deep) is 10.2409%.
[0151] S1052. Calculate the total score, i.e., the sleep quality score S, according to the above weight distribution. 总 , the total score calculation formula can be specifically expressed as:
[0152] S 总 =0.287615×S TST +0.099406×S Awakenings +0.105902×S WASO +
[0153] 0.195368×S REM +0.209300×S Light +0.102409×S Deep (6)
[0154] Among them, S TST , S Awakenings , S WASO , S REM , S Light and S Deep Corresponding to S1~S6, S TST Represents the weight of total sleep duration, SAwakenings Indicates the weight of the number of awakenings, S WASO represents the weight of WASO, S REM represents the weight of REM period, S Light Indicates the weight of the light sleep period, S Deep It indicates the weight of the deep sleep period. The total score is usually set between 0 and 100. The higher the total score, the better the sleep quality.
[0155] S1053. Based on the total score, we can classify sleep quality as follows:
[0156] (1) If the total score was ≥80 points, sleep quality was judged to be good;
[0157] (2) If the total score is less than 80 points, the sleep quality is judged to be poor.
[0158] In another embodiment, three states are included: ballistocardiogram signal acquisition and preprocessing, sleep staging algorithm and sleep quality scoring algorithm. Specifically:
[0159] 1) Ballistocardiogram signal acquisition and preprocessing:
[0160] ① Collect ballistocardiography (BCG) signals through piezoelectric sensing sensors, and at the same time, wear an Actigraph to collect activity count signals as the gold standard for body movement status. Extract key parameters such as heart rate, physical activity intensity, and bed status from the ballistocardiogram signals.
[0161] ② Perform linear interpolation on the physical activity intensity signal and bed status to ensure that the timestamps are equidistant.
[0162] ③ Apply median filtering to the interpolated physical activity intensity signal to remove noise and outliers.
[0163] ④Align the physical activity intensity signal extracted based on BCG and the activity count signal output by Actigraph.
[0164] 2) Sleep staging algorithm:
[0165] ① Stage 1 sleep-wake staging algorithm:
[0166] First, a sleep dataset was constructed and necessary preprocessing was performed, including data cleaning and format conversion. Then, a machine learning linear model was used. The model was trained and the sleep state was predicted for each minute. Then, a post-processing step was introduced to adjust the prediction results and improve the prediction accuracy. Finally, based on the optimized prediction results, continuous sleep and wake cycles were identified and calculated, and the start and end time and duration of each cycle were determined.
[0167] ②REM-deep sleep-light sleep staging algorithm for stage 2:
[0168] First, the RR interval per minute is calculated from the heart rate data to reflect the changes in heart rate in different sleep states. According to the provided time period for getting out of bed, the total time of getting out of bed during sleep is calculated and these time periods are removed. After that, the heart rate variability (HRV) analysis method is used to extract the time domain, frequency domain and nonlinear domain features of HRV, and the most useful HRV features for sleep state prediction are screened by feature selection method. Then, the random forest algorithm is applied to learn and predict the sleep state (REM, deep sleep and light sleep) per minute. Finally, based on the predicted sleep state, the duration of REM, deep sleep and light sleep is counted, and the total sleep time is calculated.
[0169] 3) Sleep quality scoring algorithm:
[0170] ① Calculate the total sleep time, percentage of REM sleep, percentage of light sleep, percentage of deep sleep, number of awakenings (>5 minutes), and percentage of waking time after falling asleep, and calculate the scores for each item.
[0171] ② Apply a weighted algorithm to these parameters based on the sleep quality recommendations report released by the National Sleep Foundation of the United States, calculate the overall sleep quality score, and determine the sleep quality based on the score.
[0172] The beneficial effects of the present invention are as follows:
[0173] Through multi-dimensional data analysis, the accuracy of sleep quality assessment can be improved. Compared with professional detection work based on polysomnography, the present invention does not need to use expensive and complex medical equipment to measure professional medical indicators such as brain waves. It is suitable for daily sleep health monitoring and sleep quality monitoring, and can realize non-invasive long-term sleep monitoring. It provides new possibilities for long-term and home sleep evaluation, which is of great significance for preventing sleep disorders and related diseases.
[0174] In the above embodiments, although the steps are numbered S1, S2, etc., these are only specific embodiments given by the present invention. Those skilled in the art may adjust the execution order of S1, S2, etc. according to actual conditions, which is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.
[0175] like Fig. 9 As shown, a sleep quality monitoring system 200 according to an embodiment of the present invention includes a state prediction optimization module 201, a sleep state prediction statistics module 202 and a sleep quality determination module 203;
[0176] The state prediction and optimization module 201 is used to: obtain the physical activity intensity value of the subject at each first preset time in the first preset time period, and combine the trained first network model to predict the state of the subject at multiple first preset time periods and optimize it, and determine the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized results, wherein the state at the first preset time period is the awake state or the sleep state;
[0177] The sleep state prediction and statistics module 202 is used to obtain the target HRV feature according to the heart rate data of the subject in each sleep cycle, and combine the trained second network model to predict the sleep state of the subject at each first preset time in each sleep cycle, count the duration of the subject in different sleep states, and calculate the total sleep time of the subject and the time of waking up after falling asleep WASO;
[0178] The sleep quality determination module 203 is used to determine the sleep quality of the subject according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration in different sleep states and the waking time WASO after falling asleep.
[0179] Optionally, in the above technical solution, a model training module is also included, and the model training module is used to:
[0180] Collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment;
[0181] Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state;
[0182] Preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state;
[0183] Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain a trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain a trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
[0184] Optionally, in the above technical solution, the sleep state prediction and statistics module 202 is further specifically used for:
[0185] According to the heart rate data of the subject in each sleep cycle, the RR interval at each sixth preset moment is calculated and screened;
[0186] From the screened RR intervals of the multiple sixth preset moments, the RR interval data of different sleep states are determined, and HRV analysis is performed on the RR interval data of different sleep states to extract multiple HRV features, and the target HRV features are screened out through a recursive feature elimination method.
[0187] Optionally, in the above technical solution, the sleep quality determination module 203 is specifically used to:
[0188] According to the duration of the subjects in different sleep states and the WASO of waking up after falling asleep, the proportion of the duration of different sleep states and the proportion of WASO of waking up after falling asleep are calculated, and weights are assigned accordingly. The total sleep time and number of awakenings of the subjects are also weighted accordingly.
[0189] A sleep quality score is determined based on all weights, and the sleep quality of the subject is determined based on the sleep quality score.
[0190] Optionally, in the above technical solution, different sleep states include light sleep state, deep sleep state and REM sleep state.
[0191] It should be noted that the beneficial effects of the sleep quality monitoring system 200 provided in the above embodiment are the same as the beneficial effects of the sleep quality monitoring method described above, which will not be described in detail here. In addition, when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to actual conditions to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be described in detail here.
[0192] like Fig.10 As shown, an electronic device 300 according to an embodiment of the present invention includes a processor 320, the processor 320 is coupled to a memory 310, and the memory 310 stores at least one computer program 330, and the at least one computer program 330 is loaded and executed by the processor 320, so that the electronic device 300 implements any of the above sleep quality monitoring methods, specifically:
[0193] The electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, wherein the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the electronic device 300 implements any sleep quality monitoring method provided in the above embodiments. Of course, the electronic device 300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 300 may also include other components for realizing device functions, which will not be described in detail here. The electronic device may specifically be a computer, etc.
[0194] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above sleep quality monitoring methods.
[0195] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0196] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs any of the above sleep quality monitoring methods.
[0197] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0198] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.
[0199] Any combination of one or more computer-readable media can be used. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0200] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A sleep quality monitoring method, characterized in that: include: Obtaining the physical activity intensity value of the subject at each first preset time in the first preset time period, and combining with the trained first network model, predicting and optimizing the state of the subject at multiple first preset time periods, and determining the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized result, wherein the state at the first preset time period is a wakeful state or a sleeping state; According to the heart rate data of the subject in each sleep cycle, the target HRV feature is obtained, and combined with the trained second network model, the sleep state of the subject at each first preset time in each sleep cycle is predicted, the duration of the subject in different sleep states is counted, and the total sleep time and the waking time after falling asleep WASO of the subject are calculated; The sleep quality of the subject is determined according to the total sleep time of the subject, the number of awakenings in the first preset time period, the duration in different sleep states and the waking time WASO after falling asleep.
2. A sleep quality monitoring method according to claim 1, characterized in that: The process of acquiring the trained first network model includes: Collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment; Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state; Preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state; Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain the trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain the trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
3. A sleep quality monitoring method according to claim 1, characterized in that: According to the heart rate data of the subject in each sleep cycle, a target HRV feature is obtained, including: According to the heart rate data of the subject in each sleep cycle, the RR interval at each sixth preset time is calculated and screened; From the screened RR intervals at the multiple sixth preset moments, the RR interval data of different sleep states are determined, and HRV analysis is performed on the RR interval data of different sleep states to extract multiple HRV features, and the target HRV feature is screened out through a recursive feature elimination method.
4. A sleep quality monitoring method according to any one of claims 1 to 3, characterized in that: Determining the sleep quality of the subject according to the total sleep duration of the subject, the number of awakenings in the first preset time period, the duration of different sleep states, and the time WASO of waking up after falling asleep, including: According to the duration of the subject in different sleep states and the WASO of waking up after falling asleep, calculate the proportion of the duration of different sleep states and the proportion of WASO of waking up after falling asleep, assign weights accordingly, and assign weights accordingly to the total sleep duration and number of awakenings of the subject; A sleep quality score is determined according to all the weights, and the sleep quality of the subject is determined according to the sleep quality score.
5. A sleep quality monitoring method according to any one of claims 1 to 3, characterized in that: Different sleep states include light sleep, deep sleep and REM sleep.
6. A sleep quality monitoring system, characterized in that: It includes a state prediction optimization module, a sleep state prediction statistics module and a sleep quality determination module; The state prediction and optimization module is used to: obtain the physical activity intensity value of the subject at each first preset time in the first preset time period, and combine the trained first network model to predict and optimize the state of the subject at multiple first preset time periods, and determine the number of awakenings of the subject in the first preset time period and the sleep duration of each sleep cycle according to the optimized results, wherein the state at the first preset time period is the awake state or the sleep state; The sleep state prediction and statistics module is used to: obtain target HRV features according to the heart rate data of the subject in each sleep cycle, and combine with the trained second network model to predict the sleep state of the subject at each first preset time in each sleep cycle, count the duration of the subject in different sleep states, and calculate the total sleep time and the waking time WASO of the subject after falling asleep; The sleep quality determination module is used to determine the sleep quality of the subject according to the total sleep time of the subject, the number of awakenings in a first preset time period, the duration of different sleep states and the waking time WASO after falling asleep.
7. A sleep quality monitoring system according to claim 6, characterized in that: It also includes a model training module, which is used to: Collecting ballistocardiogram signals of multiple persons within a second preset time period, and analyzing the physical activity intensity of each person at each second preset moment; Obtaining the state of each person at each third preset time within the second preset time period through a body activity recording device, where the state at the third preset time is a wakefulness state or a sleep state; Preprocessing the physical activity intensity of each person at each second preset moment, and time-aligning the preprocessed data with the state of each person at each third preset moment in the second preset time period, to obtain the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, wherein the state at the fourth preset moment is a wakeful state or a sleeping state; Based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, and taking the state of the Tth fourth preset moment as the prediction output, and taking the states of multiple consecutive fourth preset moments including the Tth fourth preset moment as input, the first network model is trained to obtain the trained first network model, or, based on the physical activity intensity and state of each person at each fourth preset moment in the second preset time period, the physical activity intensity and state of each person at each fifth preset moment in the second preset time period are obtained, based on the physical activity intensity and state of each person at each fifth preset moment in the second preset time period, and taking the state of the T1th fifth preset moment as the prediction output, and taking the states of multiple consecutive fifth preset moments including the T1th fifth preset moment as input, the first network model is trained to obtain the trained first network model, wherein the interval between two adjacent fourth preset moments is less than the interval between two adjacent fifth preset moments, and the state at the fourth preset moment is awake or asleep.
8. A sleep quality monitoring system according to claim 6, characterized in that: The sleep state prediction and statistics module is also specifically used for: According to the heart rate data of the subject in each sleep cycle, the RR interval at each sixth preset time is calculated and screened; From the screened RR intervals at the multiple sixth preset moments, the RR interval data of different sleep states are determined, and HRV analysis is performed on the RR interval data of different sleep states to extract multiple HRV features, and the target HRV feature is screened out through a recursive feature elimination method.
9. An electronic device, characterized in that: The electronic device includes a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements a sleep quality monitoring method as described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements a sleep quality monitoring method according to any one of claims 1 to 5.
Citation Information
Cited By
Detection method and device for assisting in determining sleep quality level
CN119318469A
Detection method and device for assisting in determining sleep quality level
CN119318469B
Sleep data processing method and system based on AI intelligent algorithm
CN119442056A
Sleep quality evaluation method and device, electronic equipment and storage medium
CN119818032A
Health scanning method and system based on multi-dimensional slow waves and AI
CN119864140A
