CN112451834B - Sleep quality management method, device, system and storage medium - Google Patents

Sleep quality management method, device, system and storage medium Download PDF

Info

Publication number
CN112451834B
CN112451834B CN202011331382.8A CN202011331382A CN112451834B CN 112451834 B CN112451834 B CN 112451834B CN 202011331382 A CN202011331382 A CN 202011331382A CN 112451834 B CN112451834 B CN 112451834B
Authority
CN
China
Prior art keywords
sleep
user
quality
sleep quality
stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011331382.8A
Other languages
Chinese (zh)
Other versions
CN112451834A (en
Inventor
李润林
宋德超
王沅召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011331382.8A priority Critical patent/CN112451834B/en
Publication of CN112451834A publication Critical patent/CN112451834A/en
Application granted granted Critical
Publication of CN112451834B publication Critical patent/CN112451834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M21/02Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis for inducing sleep or relaxation, e.g. by direct nerve stimulation, hypnosis, analgesia
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4815Sleep quality
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0066Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus with heating or cooling

Abstract

The invention relates to a sleep quality management method, a sleep quality management device, a sleep quality management system and a storage medium. The management method comprises the following steps: acquiring sleep state parameters of a user; determining a sleep stage of a user in a sleep cycle according to the sleep state parameters of the user, and obtaining a first sleep quality of the user in the sleep stage; acquiring a sleep quality threshold corresponding to a sleep stage; and when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located. According to the embodiment of the invention, the sleep state parameters of the user are acquired, the current sleep stage and the sleep quality of the user are determined based on the sleep state parameters, the sleep quality threshold corresponding to the current sleep stage is acquired, and when the sleep quality of the user is lower than the sleep quality threshold, the environmental parameters of the environment where the user is located are adjusted to improve the sleep quality of the user and control the air conditioner to be suitable for the temperature of the current sleep stage in real time according to the analyzed data, so that the user is ensured to have a better sleep environment.

Description

Sleep quality management method, device, system and storage medium
Technical Field
The invention relates to the technical field of smart home, in particular to a sleep quality management method, a sleep quality management device, a sleep quality management system and a storage medium.
Background
With the continuous improvement of living standard, the development of smart home is fast, which attracts many household appliance industries to enter and research and develop related intelligent products, wherein the smart bed is a special military project. Modern people have higher and higher requirements on sleeping, but many people do not sleep well after finishing busy work in one day. The quality of sleep is actually greatly related to the sleeping posture, the state before sleeping and the sleeping surrounding environment. But modern people often cannot find the direction of adjustment. Therefore, many people can only use the sleep detection APP to obtain the sleep state, but the state obtained by detecting the sleep by the APP has a small error.
Disclosure of Invention
In order to solve the problems in the prior art, at least one embodiment of the present invention provides a sleep quality management method, apparatus, system, and storage medium.
In a first aspect, an embodiment of the present invention provides a sleep quality management method, where the management method includes:
acquiring sleep state parameters of a user;
determining a sleep stage of the user in a sleep cycle according to the sleep state parameters of the user, and obtaining a first sleep quality of the user in the sleep stage;
acquiring a sleep quality threshold corresponding to the sleep stage;
when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located.
Based on the above technical solutions, the embodiments of the present invention may be further improved as follows.
With reference to the first aspect, in a first embodiment of the first aspect, the management method further includes:
acquiring a second sleep quality of the user in each sleep process; wherein the sleep process comprises at least one sleep cycle;
and taking the environment parameter of the sleep cycle in the sleep process with the maximum value of the second sleep quality as the optimal sleep parameter.
With reference to the first embodiment of the first aspect, in a second embodiment of the first aspect, the obtaining a second sleep quality of the user in each sleep process includes:
acquiring body parameters of the user in each sleeping process; the physical parameters include: the number of times of turning over a user, the number of times of leaving a bed of the user, the accumulated duration of keeping the heart rate of the user stable, the accumulated duration of keeping the respiratory frequency of the user stable and the number of sleep cycles;
and obtaining the second sleep quality according to the body parameters of the user in each sleep process.
With reference to the second embodiment of the first aspect, in a third embodiment of the first aspect, the obtaining the second sleep quality according to the body parameters of the user in each sleep process includes:
and according to the body parameters of the user in each sleeping process, calculating the second sleeping quality through the following formula:
Figure BDA0002795927570000021
wherein Score is the second sleep quality, Ta is the number of times the user turns over, Act is the number of times the user leaves the bed, S is the number of sleep cycles, T1 is the accumulated duration for which the heart rate of the user remains stable, T2 is the accumulated duration for which the respiratory rate of the user remains stable, and Tt is the total duration for which the user sleeps; m, b, c, d and f are preset constants respectively.
With reference to the first embodiment of the first aspect, in a fourth embodiment of the first aspect, the taking the environment parameter of the sleep cycle during the sleep session with the largest numerical value of the second sleep quality as the optimal sleep parameter includes:
acquiring each sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as a sleep cycle to be selected;
aiming at each sleep cycle to be selected, acquiring first sleep quality of each sleep stage of the sleep cycle to be selected, and calculating an accumulated value of the first sleep quality;
taking the sleep cycle to be selected corresponding to the accumulated value with the largest numerical value as the optimal sleep cycle;
and taking the environmental parameters of each sleep stage in the optimal sleep cycle as optimal sleep parameters.
With reference to the first aspect, in a fifth embodiment of the first aspect, the obtaining a sleep quality threshold corresponding to the sleep stage includes:
acquiring historical first sleep quality corresponding to the sleep stages from a historical record;
averaging the historical first sleep quality to obtain the sleep quality threshold.
With reference to the first aspect or the first, second, third, fourth or fifth embodiment of the first aspect, in a sixth embodiment of the first aspect, the obtaining a first sleep quality of the user in the sleep stage includes:
the first sleep quality is calculated by the following calculation formula:
Figure BDA0002795927570000031
wherein S1 is the first sleep quality, Ta 'is the number of turns of the user within the duration of the sleep stage, Act' is the number of exits of the user within the duration of the sleep stage, T3 is the accumulated duration of the heart rate of the user remaining stable within the duration of the sleep stage, T4 is the accumulated duration of the respiratory rate of the user remaining stable within the duration of the sleep stage, T0 is the average total duration of the sleep stage, and T5 is the duration of the sleep stage; m, b, c, d and f are preset constants respectively.
In a second aspect, an embodiment of the present invention provides a sleep quality management apparatus, where the management apparatus includes:
the first acquisition unit is used for acquiring the sleep state parameters of the user;
the first processing unit is used for determining a sleep stage of the user in a sleep cycle according to the sleep state parameter of the user and obtaining a first sleep quality of the user in the sleep stage;
the second acquisition unit is used for acquiring a sleep quality threshold corresponding to the sleep stage;
and the second processing unit is used for adjusting the environmental parameters of the environment where the user is located when the first sleep quality is smaller than the sleep quality threshold.
In a third aspect, an embodiment of the present invention provides a sleep quality management system, where the management system includes: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the sleep quality management method according to any one of the embodiments of the first aspect when executing a program stored in a memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the sleep quality management method according to any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme of the invention has the following advantages: according to the scheme, the sleep state parameters of the user are obtained, the current sleep stage and the sleep quality of the user are determined based on the sleep state parameters, the sleep quality threshold corresponding to the current sleep stage is obtained, when the sleep quality of the user is lower than the sleep quality threshold, the environment parameters of the environment where the user is located are adjusted to improve the sleep quality of the user, the air conditioner is controlled to be suitable for the temperature of the current sleep stage in real time according to the analyzed data, and the user is guaranteed to have a better sleep environment.
Drawings
Fig. 1 is a flowchart illustrating a sleep quality management method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a sleep quality management method according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a sleep quality management method according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a sleep quality management method according to another embodiment of the present invention;
fig. 5 is a third schematic flowchart of a sleep quality management method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a sleep quality management apparatus according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a sleep quality management system according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a sleep quality management method. Referring to fig. 1, the management method includes the steps of:
and S11, acquiring the sleep state parameters of the user.
In this embodiment, the sleep cycle refers to the existence of a biological rhythm in sleep, and the normal sleep structure cycle of people is divided into two phases: non-rapid eye movement sleep periods (NREM) and rapid eye movement sleep periods (REM), while the international society of sleep medicine divides sleep into five stages, i.e., non-rapid eye movement sleep periods include: the sleep period comprises the following sleep periods: the rapid eye movement period is about one complete sleep cycle within 90-100 minutes, and a person generally experiences 3-5 complete sleep cycles in the whole night sleep, which can be completed under the condition that the environmental parameters are more appropriate, and the worse the sleep environment is, the worse the sleep quality of the user is, and the worse the sleep quality is, the worse the daily working state of the user is.
In this embodiment, because the person is in deep sleep, because the body relaxes, the person's body will be more fit with the bed, and the frequency of breathing, the sound of breathing and the number of times of turning over all tend to steadily and reduce, so, can be through obtaining each item body parameter after the user sleeps as the sleep state parameter, and the sleep state of user under different environment is different, or the speed that gets into deep sleep under different environment is different, for example, the person is difficult to fall asleep in hotter or colder environment, also be in shallow sleep state with easy awakening after falling asleep, also can frequent turning over simultaneously, breathing also can fluctuate along with it.
In this embodiment, the sleep state parameters of the user can be obtained by installing various sensors or detection devices at the position where the user sleeps, and the sleep state parameters of the user can be detected, for example, a weight sensor can be arranged in a mattress to detect the weight distribution of the user, an infrared imaging device can be arranged at the bed head to detect the turn-over times and related actions of the user, and the heartbeat rate of the user can be detected by wearing a bracelet.
And S12, determining the sleep stage of the user in the sleep cycle according to the sleep state parameters of the user, and obtaining the first sleep quality of the user in the sleep stage.
In this embodiment, since each stage of sleep has its own sleep characteristics, and the detected sleep state parameters are combined, the sleep stage where the user is located can be determined more accurately, for example, a complete sleep cycle: in the sleep stage, the light sleep stage, the deep sleep stage, the sound sleep stage and the rapid eye movement stage, when the sleep degree of the user is deeper, the respiratory frequency is slower, the respiratory frequency of the user finally presents U-shaped distribution, and the heart rate is slower along with the deeper sleep degree, so that the sleep stage of the current user can be judged according to the respiratory frequency, the sleep stage of the current user can be judged according to the heart rate, and not only can the turn-over times and the body weight distribution of the user be used for assisting in judging the sleep stage of the user.
In this embodiment, the sleep quality of the user in the determined sleep stage may be obtained by comparing with the average value of the past sleep state parameters of the sleep stage, for example, the current respiratory rate is 15 times per minute, and the average respiratory rate of the past sleep stage is 13 times per minute, since the deeper the sleep level is, the lower the respiratory rate is, the lower the current sleep quality is compared with the average sleep quality by respiratory rate, and if the sleep quality corresponding to the average respiratory rate of 13 times per minute is the preset value, the sleep quality corresponding to the current respiratory rate is lower than the preset value, similarly, the first sleep quality of the user in the sleep stage may be obtained by other sleep state parameters, and in addition, the sleep quality corresponding to each sleep state parameter may be weighted and averaged to obtain the sleep quality corresponding to the comprehensive plurality of sleep state parameters, the accuracy of the determination of the sleep quality of the user is improved.
And S13, acquiring a sleep quality threshold corresponding to the sleep stage.
In this embodiment, after determining the sleep stage of the current user, acquiring a sleep quality threshold corresponding to the sleep stage of the current user, where the sleep quality threshold may be a sleep quality threshold obtained from a shared network, for example, acquiring sleep state parameters of different users, calculating the sleep quality according to the sleep state parameters of each user, and averaging the sleep quality to obtain an average sleep quality as the sleep quality threshold, where the sleep quality threshold is calculated by big data, so that the user can determine whether the sleep quality of the user is consistent with that of other people; because different people have different sleeping depths, a little sleep shallow and a little sleep deep, but the shallow people can also obtain sufficient sleep, the average sleeping quality can be obtained by obtaining the corresponding sleeping quality of the past sleeping state parameter machine loss of the sleeping stage of the user and is used as the sleeping quality threshold value, and the sleeping quality threshold value is obtained by only referring to the state calculation of the user and can be used for determining the current sleeping state of the user; and selecting corresponding numerical values from the normal body state according to a calculation formula of the sleep quality and the normal body state of the person in the sleep stage, and directly calculating to obtain the sleep quality threshold.
In this embodiment, acquiring the sleep quality threshold corresponding to the sleep stage includes: acquiring historical first sleep quality of each corresponding sleep stage from the historical records; averaging the historical first sleep quality to obtain a sleep quality threshold.
And S14, when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located.
In this embodiment, when the sleep quality of the user is less than the preset sleep quality threshold, the breathing sound of the user and the sound emitted by the user can be detected by setting the sound detection device, the environmental sound can also be detected, the temperature and humidity parameters of the indoor environment can be detected by setting the temperature sensor and the humidity sensor, the indoor air quality can be detected by setting the air quality detection device, the environmental parameters of the environment where the user is located can be adjusted, so as to improve the sleep quality of the user, wherein the environmental parameters of the environment where the user is located can be adjusted by the air conditioner, the humidifier, the air purifier and other household devices.
In this embodiment, too large adjustment range of the environmental parameters may also cause discomfort to the user, so that in this step, adjusting the environmental parameters may adopt a preset range to adjust each environmental parameter, and set a limit threshold respectively for each environmental parameter, so as to avoid too large range of the environmental parameter adjustment, and also set an adjustment mode, such as button adjustment, voice adjustment, etc., for the limit threshold, so that the user can set the limit threshold in a user-defined manner according to the adjustment button.
In the embodiment, the present scheme determines the current sleep stage and sleep quality of the user based on the sleep state parameters by obtaining the sleep state parameters of the user, and obtains the sleep quality threshold corresponding to the current sleep stage, and when the sleep quality of the user is lower than the sleep quality threshold, the environmental parameters of the environment where the user is located are adjusted to improve the sleep quality of the user and control the air conditioner to the temperature suitable for the current sleep stage in real time according to the data obtained by analyzing, so as to ensure that the user has a better sleep environment.
As shown in fig. 2, an embodiment of the present invention provides a sleep quality management method. Compared with the management method shown in fig. 1, the difference is that the management method further comprises the following steps:
s21, acquiring a second sleep quality of the user in each sleep process; wherein the sleep process comprises at least one sleep cycle.
In this embodiment, the sleep cycle refers to the existence of a biological rhythm in sleep, and the normal sleep structure cycle of people is divided into two phases: non-rapid eye movement sleep periods (NREM) and rapid eye movement sleep periods (REM), while the international society of sleep medicine divides sleep into five stages, i.e., non-rapid eye movement sleep periods include: the sleep period comprises the following sleep periods: the rapid eye movement period is about 90-100 minutes after a complete sleep cycle, and a person typically experiences 3-5 complete sleep cycles throughout the night.
In this embodiment, each sleep process is a sleep process of a user all night, and the sleep quality of all night may average the sleep quality of each sleep cycle to obtain a second sleep quality, and the sleep quality of each sleep cycle may be obtained by averaging the sleep quality of each sleep stage in the sleep cycle, and the sleep quality of each sleep stage may be calculated by referring to the method provided in the embodiment shown in fig. 1, which is not described again in this embodiment; moreover, since the more stable the state of the user is, the better the sleep quality of the user in a certain sleep stage is, the second sleep quality of the whole sleep process can be determined by obtaining the stable duration of the respiratory rate, the stable duration of the heart rate and the number of sleep cycles of the user in each sleep stage.
S22, the environment parameter of the sleep cycle during the sleep mode in which the second sleep quality value is the largest is set as the optimal sleep parameter.
In this embodiment, after the second sleep quality of each past sleep process is obtained through calculation, the second sleep quality may be stored for convenient use, in this step, the sleep process corresponding to the second sleep quality with the largest value is taken as the optimal sleep process, the environment parameter of each sleep cycle of the optimal sleep process is taken as the optimal sleep parameter, and the environment parameter is adjusted in real time according to the sleep quality of the user based on the management method shown in fig. 1, so the optimal sleep parameter finally obtained in this step is a dynamic curve in which the environment parameter changes in real time along with the change of time, and the dynamic curve is taken as the optimal sleep parameter.
In this embodiment, since the system cannot know the environmental parameters required by the user when the user starts sleeping, in this step, after determining the optimal sleep parameters, the system may be set to control each household appliance to operate according to the optimal sleep parameters, so as to improve the comfort level of the environment, and of course, before the user sleeps, the optimal sleep parameters may be recommended to the user, so that the user selects whether to operate according to the optimal sleep parameters, and if not, the environmental parameters are not adjusted first, and are adjusted according to conditions in the real-time operation process, and the sleeping posture and the sleeping state of the user are pushed to the user for reference, so that the user can know the sleeping condition of the user.
As shown in fig. 3, in the present embodiment, the step S21 of acquiring the second sleep quality of the user in each sleep process includes the following steps:
s31, acquiring body parameters of the user in each sleeping process; the physical parameters include: the number of times of turning over the user, the number of times of leaving the bed of the user, the accumulated duration of keeping the heart rate of the user stable, the accumulated duration of keeping the respiratory frequency of the user stable and the number of sleep cycles.
And S32, obtaining a second sleep quality according to the body parameters of the user in each sleep process.
In this embodiment, since the better the sleep quality of the user is in the whole sleep process of the user, the body parameters of the user may also change correspondingly, in this scheme, the second sleep quality of the user in the sleep process is determined according to the body parameters of the user by acquiring the body parameters of the user in the sleep process.
In this embodiment, the accumulated duration of the heart rate of the user remaining stable, that is, the accumulated value of the duration of the heart rate remaining stable in the sleep stage of each sleep cycle of the user, wherein it is determined that the heart rate remaining stable can be determined by setting the length of the time period and the threshold, and the heart rate is considered to remain stable as long as the heart rate variation in two consecutive time periods of the same length is smaller than the threshold, or the accumulated duration of the heart rate remaining stable of the user can be obtained by calculating the variance values of the heart rates in a plurality of consecutive time periods of the same length, and as long as the variance value is smaller than the preset variance value, the heart rate is considered to remain stable, and the accumulated duration of the heart rate remaining stable of the user is obtained by accumulating the durations of the heart rate remaining stable of the user.
In this embodiment, in step S32, the second sleep quality is calculated according to the following formula according to the body parameters of the user during each sleep:
Figure BDA0002795927570000101
wherein Score is the second sleep quality, Ta is the number of times the user turns over, Act is the number of times the user leaves the bed, S is the number of sleep cycles, T1 is the accumulated duration for which the heart rate of the user remains stable, T2 is the accumulated duration for which the respiratory rate of the user remains stable, and Tt is the total duration for which the user sleeps; m, b, c, d and f are preset constants respectively.
In this embodiment, in a sleeping process, the more the number of sleep cycles, the better the overall sleeping quality, the more the number of turning-over times, the worse the sleeping quality, the same number of times of leaving the bed as the number of turning-over times, and the need for the user to re-enter the sleep cycle after leaving the bed, which affects the sleeping quality of the user.
As shown in fig. 4, the step S22 of setting the environment parameter of the sleep cycle in the sleep process with the maximum value of the second sleep quality as the optimal sleep parameter includes:
and S41, acquiring each sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as a sleep cycle to be selected.
And S42, acquiring the first sleep quality of each sleep stage of the sleep cycle to be selected aiming at each sleep cycle to be selected, and calculating the accumulated value of the first sleep quality.
In this embodiment, since the sleep quality of the user in the sleep process with the largest numerical value of the second sleep quality is better than that in other sleep processes, in this step, for the sleep cycle to be selected in the sleep process corresponding to the second sleep quality with the largest numerical value, an accumulated value of the first sleep quality of each sleep stage in the sleep cycle to be selected is calculated, and the accumulated value may be used to refer to the overall sleep quality of the sleep cycle.
And S43, taking the sleep cycle to be selected corresponding to the accumulated value with the maximum numerical value as the optimal sleep cycle.
In the present embodiment, the optimal sleep cycle is determined based on the accumulated values of the first sleep quality of each sleep stage in the sleep cycle.
And S44, taking the environment parameters of each sleep stage in the optimal sleep cycle as the optimal sleep parameters.
In this embodiment, because the environmental parameters are adjusted in real time according to the sleep quality of the user based on the management method shown in fig. 1, the optimal sleep parameters finally obtained in this step are dynamic curves in which the environmental parameters change in real time along with the change of time, the dynamic curves are used as the optimal sleep parameters, and the sleep parameters of each sleep cycle are set according to the optimal sleep parameters, so that the environmental parameters of each sleep cycle in the sleep process operate according to the environmental parameters in the optimal sleep cycle at the beginning.
As shown in fig. 5, an embodiment of the present invention provides a sleep quality management method. Referring to fig. 5, the management method includes the steps of:
and S51, acquiring the sleep state parameters of the user.
Regarding step S51, refer to the description in step S11 for details, which are not repeated herein.
And S52, determining the sleep stage of the user in the sleep cycle according to the sleep state parameters of the user.
Regarding step S52, refer to the description in step S12 for details, which are not repeated herein.
S53, calculating the first sleep quality according to the sleep state parameters by the following calculation formula:
Figure BDA0002795927570000121
wherein S1 is a first sleep quality, Ta 'is the number of times a user turns over within the duration of a sleep stage, Act' is the number of times the user leaves the bed within the duration of the sleep stage, T3 is the accumulated duration that the heart rate of the user remains stable within the duration of the sleep stage, T4 is the accumulated duration that the respiratory frequency of the user remains stable within the duration of the sleep stage, T0 is the average total duration of the sleep stage, and T5 is the duration of the sleep stage; m, b, c, d and f are preset constants respectively.
And S54, acquiring a sleep quality threshold corresponding to the sleep stage.
Regarding step S54, refer to the description in step S13 for details, which are not repeated herein.
And S55, when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located.
Regarding step S55, refer to the description in step S14 for details, which are not repeated herein.
In this embodiment, according to the duration of the sleep stage and the obtained sleep state parameters, the predicted sleep quality of the user in the sleep stage is obtained, so that the user can adjust the environmental parameters according to the real-time result.
As shown in fig. 6, an embodiment of the present invention provides a sleep quality management apparatus, where the sleep quality management apparatus includes: a first acquisition unit 11, a first processing unit 12, a second acquisition unit 13 and a second processing unit 14.
In this embodiment, the first obtaining unit 11 is configured to obtain sleep state parameters of a user.
In this embodiment, the first processing unit 12 is configured to determine a sleep stage of the user in the sleep cycle according to the sleep state parameter of the user, and obtain a first sleep quality of the user in the sleep stage.
In this embodiment, the second obtaining unit 13 is configured to obtain a sleep quality threshold corresponding to a sleep stage.
In this embodiment, the second processing unit 14 is configured to adjust an environmental parameter of an environment where the user is located when the first sleep quality is smaller than the sleep quality threshold.
In this embodiment, the management apparatus further includes: the third acquisition unit is used for acquiring the second sleep quality of the user in each sleep process; wherein the sleep process comprises at least one sleep cycle.
In this embodiment, the management apparatus further includes: and the third processing unit is used for taking the environment parameter of the sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as the optimal sleep parameter.
In this embodiment, the third obtaining unit is specifically configured to obtain a body parameter of the user in each sleep process; the physical parameters include: the number of times of turning over a user, the number of times of leaving a bed of the user, the accumulated duration of keeping the heart rate of the user stable, the accumulated duration of keeping the respiratory frequency of the user stable and the number of sleep cycles; and obtaining a second sleep quality according to the body parameters of the user in each sleep process.
In this embodiment, the third obtaining unit is specifically configured to obtain the second sleep quality through the following formula according to the body parameter of the user in each sleep process:
Figure BDA0002795927570000131
wherein Score is the second sleep quality, Ta is the number of times the user turns over, Act is the number of times the user leaves the bed, S is the number of sleep cycles, T1 is the accumulated duration for which the heart rate of the user remains stable, T2 is the accumulated duration for which the respiratory rate of the user remains stable, and Tt is the total duration for which the user sleeps; m, b, c, d and f are preset constants respectively.
In this embodiment, the third processing unit is specifically configured to acquire each sleep cycle in the sleep process with the largest numerical value of the second sleep quality as a sleep cycle to be selected; aiming at each sleep cycle to be selected, acquiring first sleep quality of each sleep stage of the sleep cycle to be selected, and calculating an accumulated value of the first sleep quality; taking the sleep cycle to be selected corresponding to the accumulated value with the largest numerical value as the optimal sleep cycle; and taking the environmental parameters of each sleep stage in the optimal sleep cycle as the optimal sleep parameters.
In this embodiment, the second obtaining unit 13 is specifically configured to obtain, from the history record, each historical first sleep quality of the corresponding sleep stage; averaging the historical first sleep quality to obtain a sleep quality threshold.
In this embodiment, the first processing unit 12 is specifically configured to calculate the first sleep quality according to the following calculation formula:
Figure BDA0002795927570000141
wherein S1 is a first sleep quality, Ta 'is the number of times a user turns over within the duration of a sleep stage, Act' is the number of times the user leaves the bed within the duration of the sleep stage, T3 is the accumulated duration that the heart rate of the user remains stable within the duration of the sleep stage, T4 is the accumulated duration that the respiratory frequency of the user remains stable within the duration of the sleep stage, T0 is the average total duration of the sleep stage, and T5 is the duration of the sleep stage; m, b, c, d and f are preset constants respectively.
As shown in fig. 7, an embodiment of the present invention provides a sleep quality management system, including: the processor 1110, the communication interface 1120, the memory 1130 and the communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 complete communication with each other through the communication bus 1140;
a memory 1130 for storing computer programs;
the processor 1110, when executing the program stored in the memory 1130, implements the following method:
acquiring sleep state parameters of a user;
determining a sleep stage of a user in a sleep cycle according to the sleep state parameters of the user, and obtaining a first sleep quality of the user in the sleep stage;
acquiring a sleep quality threshold corresponding to a sleep stage;
and when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located.
In the electronic device provided in the embodiment of the present invention, the processor 1110 determines the current sleep stage and sleep quality of the user based on the sleep state parameters by executing the program stored in the memory 1130 to obtain the sleep state parameters of the user, and obtains the sleep quality threshold corresponding to the current sleep stage, and when the sleep quality of the user is lower than the sleep quality threshold, the environmental parameters of the environment where the user is located are adjusted to improve the sleep quality of the user and control the air conditioner to the temperature suitable for the current sleep stage in real time according to the data obtained by analyzing, so as to ensure that the user has a better sleep environment.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 1130 may also be at least one memory device located remotely from the processor 1110.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
Embodiments of the present invention provide a computer-readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors to implement the sleep quality management method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A sleep quality management method, characterized in that the management method comprises:
acquiring sleep state parameters of a user;
determining a sleep stage of the user in a sleep cycle according to the sleep state parameters of the user, and obtaining a first sleep quality of the user in the sleep stage;
acquiring a sleep quality threshold corresponding to the sleep stage;
when the first sleep quality is smaller than the sleep quality threshold, adjusting the environmental parameters of the environment where the user is located;
wherein the management method further comprises:
acquiring a second sleep quality of the user in each sleep process; wherein the sleep process comprises at least one sleep cycle;
taking the environment parameter of the sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as the optimal sleep parameter;
the taking the environment parameter of the sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as the optimal sleep parameter comprises the following steps:
acquiring each sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as a sleep cycle to be selected;
aiming at each sleep cycle to be selected, acquiring first sleep quality of each sleep stage of the sleep cycle to be selected, and calculating an accumulated value of the first sleep quality;
taking the sleep cycle to be selected corresponding to the accumulated value with the largest numerical value as the optimal sleep cycle;
and taking the environmental parameters of each sleep stage in the optimal sleep cycle as optimal sleep parameters.
2. The method for managing according to claim 1, wherein said obtaining a second sleep quality of the user during each sleep session comprises:
acquiring body parameters of the user in each sleeping process; the physical parameters include: the number of times of turning over a user, the number of times of leaving a bed of the user, the accumulated duration of keeping the heart rate of the user stable, the accumulated duration of keeping the respiratory frequency of the user stable and the number of sleep cycles;
and obtaining the second sleep quality according to the body parameters of the user in each sleep process.
3. The management method according to claim 2, wherein the obtaining the second sleep quality according to the physical parameters of the user during each sleep comprises:
and according to the body parameters of the user in each sleeping process, calculating the second sleeping quality through the following formula:
Figure FDA0003225105690000021
wherein Score is the second sleep quality, Ta is the number of times the user turns over, Act is the number of times the user leaves the bed, S is the number of sleep cycles, T1 is the accumulated duration for which the heart rate of the user remains stable, T2 is the accumulated duration for which the respiratory rate of the user remains stable, and Tt is the total duration for which the user sleeps; m, b, c, d and f are preset constants respectively.
4. The management method according to claim 1, wherein the obtaining of the sleep quality threshold corresponding to the sleep stage includes:
acquiring historical first sleep quality corresponding to the sleep stages from a historical record;
averaging the historical first sleep quality to obtain the sleep quality threshold.
5. The management method according to any one of claims 1 to 4, wherein the obtaining of the first sleep quality of the user in the sleep stage comprises:
the first sleep quality is calculated by the following calculation formula:
Figure FDA0003225105690000022
wherein S1 is the first sleep quality, Ta 'is the number of turns of the user within the duration of the sleep stage, Act' is the number of exits of the user within the duration of the sleep stage, T3 is the accumulated duration of the heart rate of the user remaining stable within the duration of the sleep stage, T4 is the accumulated duration of the respiratory rate of the user remaining stable within the duration of the sleep stage, T0 is the average total duration of the sleep stage, and T5 is the duration of the sleep stage; m, b, c, d and f are preset constants respectively.
6. A sleep quality management apparatus, characterized in that the management apparatus comprises:
the first acquisition unit is used for acquiring the sleep state parameters of the user;
the first processing unit is used for determining a sleep stage of the user in a sleep cycle according to the sleep state parameter of the user and obtaining a first sleep quality of the user in the sleep stage;
the second acquisition unit is used for acquiring a sleep quality threshold corresponding to the sleep stage;
the second processing unit is used for adjusting the environmental parameters of the environment where the user is located when the first sleep quality is smaller than the sleep quality threshold;
wherein the apparatus further comprises:
a third obtaining unit, configured to obtain a second sleep quality of the user in each sleep process; wherein the sleep process comprises at least one sleep cycle;
taking the environment parameter of the sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as the optimal sleep parameter;
the third obtaining unit is specifically configured to:
acquiring each sleep cycle in the sleep process with the maximum numerical value of the second sleep quality as a sleep cycle to be selected;
aiming at each sleep cycle to be selected, acquiring first sleep quality of each sleep stage of the sleep cycle to be selected, and calculating an accumulated value of the first sleep quality;
taking the sleep cycle to be selected corresponding to the accumulated value with the largest numerical value as the optimal sleep cycle;
and taking the environmental parameters of each sleep stage in the optimal sleep cycle as optimal sleep parameters.
7. A sleep quality management system, characterized in that the management system comprises: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the sleep quality management method according to any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the sleep quality management method of any one of claims 1 to 5.
CN202011331382.8A 2020-11-24 2020-11-24 Sleep quality management method, device, system and storage medium Active CN112451834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011331382.8A CN112451834B (en) 2020-11-24 2020-11-24 Sleep quality management method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011331382.8A CN112451834B (en) 2020-11-24 2020-11-24 Sleep quality management method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN112451834A CN112451834A (en) 2021-03-09
CN112451834B true CN112451834B (en) 2022-03-04

Family

ID=74800014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011331382.8A Active CN112451834B (en) 2020-11-24 2020-11-24 Sleep quality management method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN112451834B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI758107B (en) * 2021-02-24 2022-03-11 臺北醫學大學 Sleep quality assessment system and method
CN113883668B (en) * 2021-09-13 2023-06-23 Tcl空调器(中山)有限公司 Sleep aiding method and device for air conditioner, air conditioner and storage medium
CN113864990A (en) * 2021-10-29 2021-12-31 珠海格力电器股份有限公司 Air conditioner control method and device and air conditioning unit
CN114259210B (en) * 2021-12-27 2023-10-13 上海交通大学 Sleep staging method and control system based on dynamic skin temperature
CN114998229B (en) * 2022-05-23 2024-04-12 电子科技大学 Non-contact sleep monitoring method based on deep learning and multi-parameter fusion
CN115430003A (en) * 2022-10-24 2022-12-06 慕思健康睡眠股份有限公司 Sleep assisting method and device, intelligent mattress and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180135527A (en) * 2017-06-12 2018-12-21 삼성전자주식회사 Apparatus for controllig home device and operation method thereof
CN109568760A (en) * 2017-09-29 2019-04-05 中国移动通信有限公司研究院 Sleep environment adjusting method and system
CN110974195A (en) * 2019-12-05 2020-04-10 珠海格力电器股份有限公司 Method, device and storage medium for adjusting sleep environment
CN111358448A (en) * 2020-03-23 2020-07-03 珠海格力电器股份有限公司 Sleep regulation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180135527A (en) * 2017-06-12 2018-12-21 삼성전자주식회사 Apparatus for controllig home device and operation method thereof
CN109568760A (en) * 2017-09-29 2019-04-05 中国移动通信有限公司研究院 Sleep environment adjusting method and system
CN110974195A (en) * 2019-12-05 2020-04-10 珠海格力电器股份有限公司 Method, device and storage medium for adjusting sleep environment
CN111358448A (en) * 2020-03-23 2020-07-03 珠海格力电器股份有限公司 Sleep regulation method and device

Also Published As

Publication number Publication date
CN112451834A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN112451834B (en) Sleep quality management method, device, system and storage medium
JP4582642B2 (en) Sleep stage determination device
JP5496137B2 (en) Sleep state detection device, air conditioner using the same, sleep state detection method, and air conditioner control method
CN111336652B (en) Information processing method and information processing apparatus
CN111594999A (en) Air conditioner, control method and device thereof and air conditioning system
CN111870793B (en) Temperature pre-adjusting method and device, electronic equipment and readable storage medium
CN110946745A (en) Intelligent massage equipment control method and device, server and storage medium
CN110545724B (en) Sleeping position trainer with non-moving timer
JP6932630B2 (en) Sleep state determination device and program
CN113883668B (en) Sleep aiding method and device for air conditioner, air conditioner and storage medium
JP6040874B2 (en) Sleep stage estimation device
CN111358448A (en) Sleep regulation method and device
WO2023010859A1 (en) Method and apparatus for air conditioner control, and air conditioner
CN112032985A (en) Air conditioner adjusting method and system, intelligent terminal and storage medium
CN113164089A (en) Quantifying embedded PPG signal-to-noise ratio definition to exploit regulation of PPG signal quality on wearable devices
JP2001061820A (en) Sleeping state judging method and sleeping state judging device
US20180360386A1 (en) Systems and methods for adaptable presentation of sensor data
JP6945143B2 (en) Air conditioning control method and air conditioning control system
CN111938588A (en) Method for detecting sleep state, sleep monitor and storage medium
JP2014233488A (en) Sleep state determination device
KR102403213B1 (en) Deep learning sleep assistant system through ultradian rhythm optimization
US9968293B1 (en) Detecting and estimating sleep stages
JP2016067811A (en) Biological information detection system, biological information detection device and control method of biological information detection system
CN113598721B (en) Wearable terminal, core body temperature monitoring method thereof and computer readable storage medium
CN116170479A (en) Mattress control method, mattress control equipment and mattress

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant