Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a sleep control method, system, storage medium and device based on deep learning, so as to solve the problem in the prior art that when a user wakes up, the sleeping time of the user is reduced or the deep sleep is interrupted, and the sleeping quality of the user is affected.
The embodiment of the disclosure adopts the following technical scheme: a deep learning-based sleep regulation method, comprising: collecting the current sleep index of a user; inputting the current sleep index into a deep learning model, and storing the current sleep index into a personal information database of the user; the deep learning model combines the personal information database and the sleeping time of the user, takes the current sleeping index as input, and outputs a sleeping state prediction curve of the user; generating a sleep regulation scheme matched with the user according to the sleep state prediction curve and the preset wake-up time of the user; and regulating and controlling the sleep state of the user based on a preset mode according to the sleep regulating and controlling scheme so as to enable the sleep state of the user to be matched with the sleep regulating and controlling scheme.
In some embodiments, the deep learning model, in combination with the personal information database and the time of falling asleep of the user, takes the current sleep index as input, outputs a sleep state prediction curve of the user, comprising: the deep learning model predicts the sleep index of the next moment according to the current sleep index, takes the sleep index of the next moment as a new current sleep index, and repeatedly predicts the sleep index of the next moment; and outputting a sleep state prediction curve of the user according to the personal information database and all sleep indexes of the next moment predicted by the deep learning model.
In some embodiments, the generating a sleep regulation scheme that matches the user according to the sleep state prediction curve and the predetermined wake time of the user includes: detecting whether the sleep state corresponding to the preset awakening time in the sleep state prediction curve is a light sleep state or not; under the condition that the sleep state corresponding to the preset awakening time is a light sleep state, the sleep regulation scheme is empty; determining a light sleep state area nearest to the preset awakening time on a time axis of the sleep state prediction curve under the condition that the sleep state corresponding to the preset awakening time is not the light sleep state; and determining the sleep regulation scheme to accelerate or decelerate the sleep cycle of the user according to the sequence between the light sleep state area and the preset wake-up time.
In some embodiments, after the adjusting the sleep state of the user according to the sleep adjusting scheme based on the preset manner, the matching the sleep state of the user with the sleep adjusting scheme further includes: collecting current sleep indexes in real time; determining a current actual sleep state of a user according to the current sleep index, updating the deep learning model according to the actual sleep state, and storing the current sleep index into the personal information database; re-predicting the sleep state prediction curve according to the updated deep learning model; and regenerating a sleep regulation scheme according to the re-predicted sleep state prediction curve and the preset wake-up time of the user, and regulating the sleep state of the user based on a preset mode based on the regenerated sleep regulation scheme.
In some embodiments, further comprising: detecting whether sleep interruption occurs; re-determining the time to fall asleep of the user in the event of sleep disruption; the deep learning model is combined with the personal information database and the redetermined sleeping time of the user to re-predict the sleeping state prediction curve; and regenerating a sleep regulation scheme according to the re-predicted sleep state prediction curve and the preset wake-up time of the user, and regulating the sleep state of the user based on a preset mode based on the regenerated sleep regulation scheme.
In some embodiments, the generating a sleep regulation scheme that matches the user according to the sleep state prediction curve and the predetermined wake time of the user includes: obtaining a dream preference parameter k and a sleep regulation limit time N of a user, wherein k is [ -1,1]; determining a sleep regulation limit M, wherein M= |kN|; determining a first sleep period conforming to the user's dream preference according to the dream preference parameter k, the predetermined wake-up time and the sleep state prediction curve; detecting whether the difference between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit; under the condition that the difference value between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit, the sleep regulation scheme is to accelerate or decelerate the sleep period of the user, so that the sleep period coincides with the first sleep period after regulation; and under the condition that the difference between the first sleep period and the sleep period which is not regulated by the user is larger than the sleep regulation limit, determining a light sleep state area closest to the preset awakening time on a time axis of the sleep state prediction curve, and determining the sleep regulation scheme to accelerate or decelerate the sleep period of the user according to the sequence between the light sleep state area and the preset awakening time.
In some embodiments, in a case where the deep learning model cannot output the sleep state prediction curve and/or after the adjustment based on the preset manner, the method further includes: acquiring an elastic awakening interval set by the user, wherein the preset awakening time is positioned in the elastic awakening interval; determining whether a sleep cycle of the user has a light sleep state within the elastic wake-up interval; waking up a user in a time period corresponding to a light sleep state under the condition that the sleep period of the user has the light sleep state; and under the condition that the sleep period of the user does not have a light sleep state, regulating and controlling the user based on a preset mode before the user enters the deep sleep state in the last sleep period of the sleep period in which the preset wake-up time is located so as to prevent the user from entering the deep sleep state, or waking up the user at the time corresponding to the second endpoint of the elastic wake-up interval, wherein the time corresponding to the first endpoint of the elastic wake-up interval is earlier than the time corresponding to the second endpoint.
The embodiment of the disclosure also provides a sleep regulation system based on deep learning, comprising: sleep monitoring system, operation storage system and sensory stimulation system; the sleep monitoring system is used for collecting current sleep indexes of a user; the operation storage system is used for inputting the current sleep index into a deep learning model and storing the current sleep index into a personal information database of the user; the deep learning model combines the personal information database and the sleeping time of the user, takes the current sleeping index as input, and outputs a sleeping state prediction curve of the user; generating a sleep regulation scheme matched with the user according to the sleep state prediction curve and the preset wake-up time of the user; the sensory stimulation system is used for regulating and controlling the sleep state of the user based on a preset mode according to the sleep regulating and controlling scheme so that the sleep state of the user is matched with the sleep regulating and controlling scheme.
The embodiment of the disclosure also provides a storage medium storing a computer program which, when executed by a processor, realizes the steps of the sleep regulation method based on deep learning.
The embodiment of the disclosure also provides equipment, which at least comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the steps of the sleep regulation method based on deep learning when executing the computer program on the memory.
The beneficial effects of the embodiment of the disclosure are that: and in the sleeping process of the user, the change of the sleeping state is judged and predicted by using a deep learning model, a matched sleeping regulation scheme is automatically generated for the user in combination with the preset awakening time set by the user, and the sleeping state of the user is actively regulated and controlled based on the sleeping regulation scheme to be matched with the sleeping regulation scheme, so that the sleeping quality of the user is improved under the condition that the sleeping time of the user is not influenced by the sleeping state of the user, and the sleeping state of the user is ensured to be in a shallow sleeping state at the preset awakening time.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive faculty, are intended to be within the scope of the present disclosure.
During normal human night sleep, non-rapid eye movement (NREM) sleep and Rapid Eye Movement (REM) sleep alternate. The sleeper firstly enters NREM sleep from a wakeful state, starts from a sleep-in period (N1) and enters a light sleep period (N2) after 3-7 minutes; after 10-25 minutes, the sleep enters a deep sleep period (N3-N4), and the deep sleep length varies from a few minutes to one hour according to the personal condition of a sleeper; after the deep sleep is finished, the sleep returns to the N1 phase or the N2 phase; then, a REM sleep period (first REM period lasts for 5-10 minutes) is entered, and one sleep period is completed.
Normal adults will experience 4-6 sleep cycles per night when sleeping. In the latter half of sleep, deep NREM sleep gradually decreases and REM sleep gradually lengthens. If awakened during deep sleep, the sleeper is often perceived as very tired and ill-conditioned; sleep paralysis (a phenomenon commonly known as "ghost press") may occur if the REM wakes up during sleep. Therefore, the optimal wake-up timing is the N1 and N2 phases in NREM sleep.
The existing intelligent alarm clock generally determines a wake-up strategy by monitoring the sleep state of a user and judging the sleep stage of the user or predicting the next sleep stage. However, when the intelligent alarm clock monitors or predicts that the user is in the deep sleep stage at the preset wake-up time, the problem that the user can wake-up in advance or wake-up forcefully can be solved, the former can reduce the whole sleep time, and the latter can interrupt the deep sleep, so that the sleeping quality of the user can be adversely affected.
In order to solve the above-mentioned problems, a first embodiment of the present disclosure provides a sleep control method based on deep learning, which can be applied to any intelligent device with sleep monitoring function, such as a smart speaker, a tablet computer, and even a mobile phone. Fig. 1 shows a flowchart of a deep learning-based sleep regulation method in the present embodiment, which mainly includes steps S10 to S50:
S10, collecting the current sleep index of the user.
The intelligent device executing the method of the embodiment can have the sleep index acquisition function of the user, can also communicate with other devices such as acquisition devices or sensors with the sleep index acquisition function, and can wear a series of devices with the sleep index acquisition function before the user is ready to sleep or start the devices with the sleep index acquisition function, and the devices can acquire the current sleep index of the user in real time and serve as data support for subsequent sleep regulation.
The sleep index mainly collected in this embodiment may be any one or more of the following indexes: the equipment for acquiring the sleep indexes can be wearable equipment such as a sports watch and a bracelet, can also be monitoring equipment such as ultrasonic radar placed at the bedside or a sleep monitoring belt placed on the bed, and can also be professional electroencephalogram or electrocardiograph monitoring instruments and the like. In the actual use process, the sleep index collection device of the user can be matched, one or more of the sleep indexes are selected for collection, and the more the types of the sleep indexes are, the better the corresponding monitoring and regulating effects are.
It should be noted that, the collection period of the current sleep index of the user may be adjusted according to the user setting, for example, ten times per second or one time per second, the higher the collection frequency corresponds to the more sleep indexes, the higher the accuracy in the subsequent deep learning model update is, but more energy consumption is also caused; in actual use, the method can also carry out adaptive adjustment according to the sleep state of the user, for example, the sleep index acquisition is carried out at shorter intervals before the user falls asleep, after the user is judged to fall asleep, the acquisition period is adaptively adjusted according to the change condition of the sleep period, so that the acquisition times are reduced as much as possible under the condition that the accurate index under each sleep state is accurately acquired, and the purpose of saving energy is achieved.
S20, inputting the current sleep index into the deep learning model, and storing the current sleep index into a personal information database of the user.
The deep learning model in this embodiment may be a long-short term memory (LTSM) network, where the collected sleep index of the user is used as an input vector to determine the current sleep state of the user, and predict the subsequent sleep state. The personal information database is used for storing the sleep index and the actual sleep state actually collected by the current user and the matching condition between the sleep index and the actual sleep state, and simultaneously records the sleep state change, the duration, the sleep time, the awake time and other data information of the user.
It should be noted that, the data recorded in the personal information database is increased along with the use process of the user, and the recorded data are the actual sleep index and sleep state of the user; the deep learning model is mainly used for prediction, and can be updated and optimized continuously in the subsequent use process, so that the prediction result is more accurate.
S30, the deep learning model combines the personal information database and the sleeping time of the user, takes the current sleeping index as input, and outputs a sleeping state prediction curve of the user.
The deep learning model can determine the current sleep state of the user according to the current sleep index of the user, for example, determine the sleeping time of the user, and predict the subsequent sleep index of the user by combining the acquired sleep index based on the sleeping time.
In some embodiments, the deep learning model predicts the sleep index at the next time based on the current sleep index as the input vector, where the next time refers to a time with a certain time interval from the time when the sleep index is currently collected, and the specific value of the time interval can be adjusted according to the requirement. Further, the deep learning model takes the sleep index at the next moment as a new current sleep index, repeatedly predicts the sleep index at the next moment to obtain a long-term sleep index change prediction, combines the sleep states of the user actually recorded by the personal information database based on all the sleep indexes at the next moment obtained in the long-term prediction, and correspondingly outputs a sleep state prediction curve of the user to represent the possible corresponding sleep state change condition of the user in the current sleep.
S40, generating a sleep regulation scheme matched with the user according to the sleep state prediction curve and the preset wake-up time of the user.
After the sleep state prediction curve is obtained, the sleep state corresponding to the preset wake-up time can be determined according to the preset wake-up time preset by the user, and the sleep regulation scheme is correspondingly generated according to the sleep state corresponding to the preset wake-up time.
Specifically, since the user is awakened in the light sleep state without tired feeling, whether the sleep state corresponding to the preset awakening time is the light sleep state or not is firstly determined in the sleep state prediction curve, and the sleep regulation scheme can be set to be empty under the condition that the sleep state corresponding to the preset awakening time is the light sleep state, namely the sleep state of the user is not regulated, and the user can just be in the light sleep state and just awaken when the preset awakening time arrives according to the normal sleep state change of the user; under the condition that the sleep state corresponding to the preset awakening time is not the light sleep state, if the sleep state is not regulated, the user is possibly awakened in the deep sleep state to influence the sleep quality, at the moment, the sleep state of the user is required to be regulated and controlled through a sleep regulation scheme, namely, a light sleep state area closest to the preset awakening time is determined on a time axis of a sleep state prediction curve, and according to the sequence between the light sleep state area and the preset awakening time, the sleep regulation scheme is determined to accelerate or decelerate the sleep period of the user, so that the sleep period of the user is correspondingly shortened or prolonged, and the sleep state corresponding to the preset awakening time is just in the light sleep state area, so that the user is awakened when the user is in the light sleep state.
S50, regulating and controlling the sleep state of the user based on a preset mode according to the sleep regulating and controlling scheme, so that the sleep state of the user is matched with the sleep regulating and controlling scheme.
The sleep regulation scheme determines a processing scheme for accelerating or decelerating the sleep state of the user according to the corresponding situation of the sleep state prediction curve and the preset wake-up time, and then the sleep state of the user can be regulated and controlled in a preset mode, so that the sleep state of the user is matched with the sleep regulation scheme, the user is in a light sleep state just when the user is waken up in the preset wake-up time, and the sleep quality of the user is prevented from being reduced when the user is waken up in the deep sleep state.
Fig. 2 shows a schematic diagram of a sleep regulation scheme. As shown in fig. 2, the horizontal axis represents sleep time, three curves from top to bottom respectively represent the change condition of sleep state with the lapse of time, three vertical dotted lines represent different preset wake-up times, the area between two horizontal dotted lines in each curve represents light sleep state, and the line segment part of the curve falling into the area between the dotted lines represents the time corresponding to the line segment is in light sleep state. The first curve in fig. 2 shows a sleep state prediction curve, which means normal sleep without sensory stimulation, where the curve positions corresponding to three different predetermined wake-up times do not fall within the range of the light sleep state, and the second curve and the third curve respectively show a curve of slowing down and prolonging the sleep period and a curve of accelerating and shortening the sleep period, where the curve positions corresponding to the adjusted predetermined wake-up times just fall within the region of the light sleep state. It should be noted that in actual use, the predetermined wake-up time set by the user is typically only one, so that only a single predetermined wake-up time is needed for adjustment, and the three different predetermined wake-up times shown in fig. 2 are only used as illustrations.
In this embodiment, the preset modes at least include one or more of the following modes: the regulation and control modes adopted in the specific implementation of playing audio, adjusting ambient light, transcranial electric stimulation and transcranial magnetic stimulation can be adjusted according to the requirements of users or the conditions of equipment of the users, the embodiment is not limited herein, and the regulation and control modes are all realized through corresponding stimulation units in the sensory stimulation system.
It should be noted that, because the sleep states of each person are different, the response to the sensory stimulation may be different, the stimulus intensity setting may be performed based on the pre-training model for most people when the sensory stimulation is performed for the first time, when the user is in the process of or after the regulation, the current sleep index of the user may be further collected in real time, and the current actual sleep state of the user may be determined according to the current sleep index, so as to reflect the regulation effect of the sensory stimulation in real time, and the sensory stimulation intensity may be adjusted according to the deviation between the actual stimulation condition and the predicted stimulation condition.
In some embodiments, the current actual sleep state of the user can be determined by collecting the current sleep index in real time, the deep learning model is updated, and the actual sleep index of the user is stored in the personal information database; when the deep learning model is updated, the weight matrix in the deep learning model is mainly updated, so that the prediction of the sleep index at the next moment and the determination of the corresponding sleep state correspondingly are more in line with the sleeping habit of the current user, and the aim of improving the accuracy is fulfilled. And after updating the deep learning model, predicting a sleep state curve again by utilizing the new deep learning module, further regenerating a sleep regulation scheme, and regulating the sleep state of the user based on a preset mode based on the regenerated sleep regulation scheme when regulating is carried out subsequently.
According to the embodiment, through monitoring of the sleep index in the sleeping process of the user, the change of the sleep state of the user is judged and predicted by using the deep learning model, a matched sleep regulation scheme is automatically generated for the user in combination with the preset wake-up time set by the user, and the sleep state of the user is actively regulated and controlled based on the sleep regulation scheme to be matched with the sleep regulation scheme, so that the user is ensured to be in a shallow sleep state at the preset wake-up time, and the sleeping quality of the user is improved under the condition that the sleeping duration of the user is not influenced.
In addition, in some embodiments, the intelligent device may also detect in real time whether the user has sleep interruption during the sleep process of the user, for example, a nightfall, an emergency is awakened, etc., where the user has a larger sleep index fluctuation or body movement, and the sleep period is also interrupted; when the sleep interruption occurs to the user, the sleeping time of the user is redetermined based on the sleep index acquired in real time, the deep learning model is utilized to combine the personal information database and the redetermined sleeping time to conduct the redevelopment of the sleep state prediction curve, the sleep regulation scheme is regenerated according to the redevelopment of the sleep state prediction curve and the predetermined wake-up time of the user, and the sleep state of the user is regulated based on the regenerated sleep regulation scheme in a preset mode.
In some embodiments, the user may personalize the content of the sleep regulation scheme and its implementation based on his own preferences for dreams. Specifically, a user may preset a dream preference parameter k to represent the self preference condition of the user for the dream content, where k e [ -1,1], when the value of k is closer to 1, indicates that the user desires to learn the dream condition, whereas when the value of k is closer to-1, indicates that the user does not desire to learn the dream condition; in addition, according to the sense organ stimulation mode and the response degree of the user to the sense organ stimulation, a sleep regulation limit duration N is set, the unit is minutes, the difference value between the regulated sleep period of the user and the original sleep period length when not regulated is represented, and the value can be automatically updated through personal data collection of the user in long-term use.
In the process of generating the sleep regulation scheme matched with the user, personalized sleep regulation scheme generation can be performed according to the preference condition of the user for the dream. The dream usually occurs in the REM sleep period of the user, the user can clearly remember the dream content when the REM later in the shallow sleep period is awakened, and the user usually forgets the dream content in the previous REM sleep period when the REM earlier in the shallow sleep period is awakened, so that when the user is actually awakened, the sleep regulation scheme is correspondingly generated according to the preference of the user on whether the dream content is expected to be known or not and the actual effect of sleep regulation of the system.
Firstly, obtaining a dream preference parameter k and a sleep regulation limit duration N of a user, and determining a sleep regulation limit M according to k and N, wherein M= |kN|, and setting the sleep regulation limit to reduce the influence of sleep regulation on the natural sleep of the user as much as possible, wherein in the process of generating a subsequent sleep regulation scheme, equipment performs sleep regulation by taking the sleep regulation limit as a limit; combining the dream preference parameter k, the preset awakening time and the sleep state prediction curve, namely selecting a light sleep state area conforming to the dream preference on the sleep state prediction curve, and determining a first sleep period conforming to the dream preference of the user according to the light sleep state area, namely if the user is awakened in a specific light sleep state according to the dream preference of the user, the sleep period of the user needs to be prolonged or shortened to be the first sleep period, and when the preset awakening time arrives, the user is just in the light sleep state; then detecting whether the difference between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit, and under the condition that the difference between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit, namely, the personalized sleep regulation can be realized under the condition that the natural sleep of the user is not excessively influenced, wherein the generated sleep regulation scheme is to accelerate or decelerate the sleep period of the user, so that the sleep period coincides with the first sleep period after regulation; under the condition that the difference between the first sleep period and the sleep period which is not regulated by the user is larger than the sleep regulation limit, namely, if the system regulates according to the dreaminess of the user, natural sleep of the user can be influenced, at the moment, the preference condition of the user to the dreaminess can be not considered, according to the principle of minimum regulation, a light sleep state area closest to the preset awakening time is determined on a time axis of a sleep state prediction curve, and according to the sequence between the light sleep state area and the preset awakening time, the sleep regulation scheme is determined to accelerate or decelerate the sleep period of the user, so that the risk that the sleep of the user is interrupted by the system stimulation or uncomfortable feeling is reduced.
It should be noted that, the user's preference condition of the dream may be reflected according to the value of the dream preference parameter k set by the user, that is, when k is greater than 0, the user is determined to want to learn the dream condition, at this time, the light sleep state area conforming to the dream preference may be determined to be the light sleep stage after REM closest to the predetermined wake-up time, and if k is less than or equal to 0, the user is determined to not want to learn the dream condition, at this time, the light sleep state area conforming to the dream preference may be determined to be the light sleep stage before REM closest to the predetermined wake-up time. If the dream preference of the user is not considered, the light sleep state closest to the preset time is taken into consideration.
FIG. 3 is a schematic diagram of a sleep regulation scheme based on dream preference, as shown in FIG. 3, in which a user is in REM sleep state normally at a predetermined wake-up time, if the user does not want to know the dream, regulating each period with M as a limit, and making the wake-up time be in shallow sleep region before REM by prolonging the sleep period; if the user wants to know the dream condition, the user takes M as a limit to regulate each period, and the sleep period is shortened to enable the wake-up time to be in a shallow sleep area after REM.
In the process of user sleep regulation, when the sleep state cannot be accurately regulated due to insufficient personal sleep data collection of the user or sleep disturbance of the user, the user can be individually awakened according to the awakening preference setting performed in advance by the user. Specifically, the user sets an elastic wake-up interval according to personal requirements, that is, a maximum value of the wake-up time that can be accepted by the user in advance or later than the preset wake-up time, for example, the preset wake-up time of the user is 7 hours, and the elastic wake-up time can be set to be 6 hours 50 minutes to 7 hours 20 minutes, where the two times are respectively a first endpoint and a second endpoint of the elastic wake-up interval, and the embodiment limits the time corresponding to the second endpoint to be later than the time corresponding to the first endpoint; under the condition that the sleep state of the user cannot be regulated and controlled, whether the sleep period of the user in the elastic awakening interval comprises a light sleep state or not can be determined according to a sleep state prediction curve output by a personal information database or a deep learning model of the user, if the sleep period of the user in the elastic awakening interval comprises the light sleep state, the user is awakened in a time period corresponding to the light sleep state in the elastic awakening interval, if the sleep period of the user in the elastic awakening interval does not comprise the light sleep state, the user can be forcibly awakened in a time corresponding to a second endpoint of the elastic awakening interval according to a preset awakening preference of the user, or the regulation and control based on a preset mode is carried out on the user before the user enters the deep sleep state in the last sleep period of the sleep period in which the preset awakening time is positioned, so that the user is prevented from entering the deep sleep state, and the shallow sleep state is ensured at the expense of the deep sleep time.
Based on the same inventive concept, a second embodiment of the present disclosure provides a sleep regulation system based on deep learning, and a structural schematic diagram of the system is shown in fig. 4, and the system at least comprises a sleep monitoring system 10, an operation storage system 20 and a sensory stimulation system 30, wherein the sleep monitoring system 10 is used for collecting current sleep indexes of a user; the operation storage system 20 is used for inputting the current sleep index into the deep learning model and storing the current sleep index into a personal information database of the user; the deep learning model combines the personal information database and the sleeping time of the user, takes the current sleeping index as input, and outputs a sleeping state prediction curve of the user; generating a sleep regulation scheme matched with the user according to the sleep state prediction curve and the preset wake-up time of the user; the sensory stimulation system 30 is used for regulating and controlling the sleep state of the user according to the sleep regulation scheme based on a preset mode, so that the sleep state of the user is matched with the sleep regulation scheme.
Specifically, the sleep index mainly collected in this embodiment may be any one or more of the following indexes: respiratory rate, blood oxygen concentration, heart rate, electroencephalogram index, electrocardiograph index and the like, and the sleep monitoring system 10 can comprise wearable equipment such as a sports watch and a bracelet, or monitoring equipment such as ultrasonic radar placed at the bedside or a sleep monitoring belt placed on the bed, and can also be a professional electroencephalogram or electrocardiograph monitoring instrument.
Specifically, the preset modes performed by the sensory stimulation system 30 include at least one or more of the following modes: playing audio, adjusting ambient light, transcranial electrical stimulation, transcranial magnetic stimulation, the sensory stimulation system 30 may be correspondingly configured as a sound box with audio playing, a light fixture with brightness and frequency adjusting functions, a stimulation device with transcranial electrical stimulation or transcranial magnetic stimulation, and the like.
In some embodiments, the operation storage system 20 is specifically configured to predict a sleep index at a next time according to the current sleep index by using the deep learning model, and repeat the prediction of the sleep index at the next time by using the sleep index at the next time as a new current sleep index; and outputting a sleep state prediction curve of the user according to the sleep indexes of all the next moments predicted by the personal information database and the deep learning model.
In some embodiments, the operation storage system 20 is specifically configured to detect whether a sleep state corresponding to a predetermined wake-up time in the sleep state prediction curve is a light sleep state; under the condition that the sleep state corresponding to the preset awakening time is a light sleep state, the sleep regulation scheme is empty; under the condition that the sleep state corresponding to the preset awakening time is not the light sleep state, determining a light sleep state area nearest to the preset awakening time on a time axis of a sleep state prediction curve; and determining a sleep regulation scheme to accelerate or decelerate the sleep cycle of the user according to the sequence between the light sleep state area and the preset wake-up time.
In some embodiments, the sleep monitoring system 10 is also used to acquire current sleep metrics in real-time; the operation storage system 20 determines the current actual sleep state of the user according to the current sleep index, updates the deep learning model according to the actual sleep state, and stores the current sleep index into the personal information database; re-predicting a sleep state prediction curve according to the updated deep learning model; and regenerating the sleep regulation scheme according to the re-predicted sleep state prediction curve and the preset wake-up time of the user, so that the sensory stimulation system 30 regulates the sleep state of the user based on the regenerated sleep regulation scheme in a preset mode.
In some embodiments, sleep monitoring system 10 is also used to detect whether sleep disruption has occurred; in the event of a sleep disruption, the computing storage system 20 re-determines the user's fall asleep time; the deep learning model is combined with the personal information database and the redetermined sleeping time of the user to re-predict the sleeping state prediction curve; and regenerating the sleep regulation scheme according to the re-predicted sleep state prediction curve and the preset wake-up time of the user, so that the sensory stimulation system 30 regulates the sleep state of the user based on the regenerated sleep regulation scheme in a preset mode.
In some embodiments, the operational storage system 20 is further configured to: obtaining a dream preference parameter k and a sleep regulation limit time N of a user, wherein k is [ -1,1]; determining a sleep regulation limit M, wherein M= |kN|; determining a first sleep period conforming to the user's dream preference according to the dream preference parameter k, the predetermined wake-up time and the sleep state prediction curve; detecting whether the difference between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit; under the condition that the difference value between the first sleep period and the sleep period which is not regulated by the user is smaller than or equal to the sleep regulation limit, the sleep regulation scheme is to accelerate or decelerate the sleep period of the user, so that the sleep period coincides with the first sleep period after regulation; and under the condition that the difference between the first sleep period and the sleep period which is not regulated by the user is larger than the sleep regulation limit, determining a light sleep state area closest to the preset awakening time on a time axis of the sleep state prediction curve, and determining the sleep regulation scheme to accelerate or decelerate the sleep period of the user according to the sequence between the light sleep state area and the preset awakening time.
In some embodiments, the operational storage system 20 is further configured to: acquiring an elastic awakening interval set by the user, wherein the preset awakening time is positioned in the elastic awakening interval; determining whether a sleep cycle of the user includes a light sleep state within the elastic wake-up interval; when the sleep cycle of the user comprises a light sleep state, waking up the user in a time period corresponding to the light sleep state; and under the condition that the sleep period of the user does not comprise a light sleep state, regulating and controlling the user based on a preset mode before the user enters the deep sleep state in the last sleep period of the sleep period in which the preset wake-up time is positioned so as to prevent the user from entering the deep sleep state, or waking up the user at the time corresponding to the second endpoint of the elastic wake-up interval, wherein the time corresponding to the first endpoint of the elastic wake-up interval is earlier than the time corresponding to the second endpoint.
According to the embodiment, through monitoring of the sleep index in the sleeping process of the user, the change of the sleep state of the user is judged and predicted by using the deep learning model, a matched sleep regulation scheme is automatically generated for the user in combination with the preset wake-up time set by the user, and the sleep state of the user is actively regulated and controlled based on the sleep regulation scheme to be matched with the sleep regulation scheme, so that the user is ensured to be in a shallow sleep state at the preset wake-up time, and the sleeping quality of the user is improved under the condition that the sleeping duration of the user is not influenced.
A third embodiment of the present disclosure provides a storage medium storing a computer program that, when executed by a processor, implements the steps of the deep learning model-based sleep regulation method provided by the first embodiment of the present disclosure.
A fourth embodiment of the present disclosure provides an apparatus, which at least includes a memory, and a processor, where the memory stores a computer program that when executed on the memory implements the steps of the deep learning model-based sleep regulation method provided by the first embodiment of the present disclosure.
In addition, the device of the embodiment may further include a device for performing sleep index collection and a device for performing sensory stimulation, or the device of the embodiment may communicate with or control the device for performing sleep index collection and the device for performing sensory stimulation.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.