Method and device for adjusting sleep environment, sleep system and computer readable storage medium
By determining the sleep type and adjusting the sleep environment based on the user's historical sleep time information, the problem that smart home appliances are difficult to meet the needs of day sleep users is solved, and the quality of day sleep is improved.
Patent Information
- Application Number
- CN202311281814.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-09-28
AI Technical Summary
The existing smart home appliance sleep systems are difficult to meet the sleep needs of different users, especially daytime sleep users, which are poor sleep quality due to large external interference.
By determining the user's sleep type based on the user's historical sleep time information, controlling the sleep system to enter or exit the day sleep mode, and adjusting the indoor temperature, humidity, air quality and sound settings to meet the needs of day sleep users.
Effectively reduce the impact of external interference on users' daytime sleep quality, improve users' daytime sleep quality, and provide sleep solutions suitable for daytime sleep.
Smart Images

Figure CN119713535A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device for adjusting a sleep environment, a sleep system, and a computer-readable storage medium. Background Art
[0002] At present, many smart home appliances on the market have a sleep mode. Before the user goes to sleep, the user can turn on the sleep mode of the smart home appliance so that the smart home appliance can work according to the sleep mode to adjust the user's sleeping environment. However, the sleep system including various types of smart home appliances is difficult to meet the sleep needs of different users.
[0003] The related technology discloses a control method for an adaptive air conditioner based on human body detection. First, a CO2 (carbon dioxide) concentration sensor, a temperature sensor and a sound sensor are set indoors. Then, it is determined whether there is someone indoors based on the indoor CO2 concentration, whether the air conditioner needs to be turned on and whether it is cooling or heating based on the indoor temperature, and whether the day mode or the sleep mode is selected based on the average value of the indoor sound level within a preset time threshold. Finally, the air conditioner is controlled based on these judgments.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] The external environment during the day and at night is quite different, such as the sound and light of nature, the sound and light in residential areas, social information, prompts from home devices, etc. However, there are currently a large number of daytime sleepers, such as those who sleep late so that a long period of sleep is spent during the day, or some night shift workers who need to sleep during the day for a long time. Therefore, users are often disturbed by the outside world during daytime sleep and have poor sleep quality.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and device for adjusting a sleep environment, a sleep system, and a computer-readable storage medium to reduce the impact of external interference on a user's daytime sleep quality and improve the user's daytime sleep quality.
[0009] In some embodiments, the method is applied to a sleep system, including: determining the user's sleep type based on the user's historical sleep time information; controlling the sleep system to enter or exit daytime sleep mode based on the user's sleep type and current time to adjust indoor temperature, and / or humidity, and / or measures to improve air, and / or sound settings; wherein the user's sleep type includes a daytime sleep user or a non-daytime sleep user.
[0010] In some embodiments, the device is applied to a sleep system, including: a determination module, configured to determine the user's sleep type based on the user's historical sleep time information; a control module, configured to control the sleep system to enter or exit the daytime sleep mode based on the user's sleep type and the current time, so as to adjust the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings; wherein the user's sleep type includes a daytime sleep user or a non-daytime sleep user.
[0011] In some embodiments, the device includes a processor and a memory storing program instructions, and the processor is configured to execute the method for adjusting the sleeping environment when running the program instructions.
[0012] In some embodiments, the sleep system includes: a sleep system body; and the device for adjusting the sleep environment is installed on the sleep system body.
[0013] In some embodiments, the computer-readable storage medium stores program instructions, and when the program instructions are executed, the computer is used to execute the method for adjusting the sleep environment.
[0014] The method and device for adjusting the sleep environment, the sleep system, and the computer-readable storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0015] First, determine the user's sleep type as a daytime sleeper or non-daytime sleeper based on the user's historical sleep time, then control the sleep system to enter or exit the daytime sleep mode based on the user's sleep type and the current time, adjust the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings to make the sleeping environment more suitable for daytime sleepers or non-daytime sleepers, and provide a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0016] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0018] Figure 1 is a schematic diagram of a sleep system provided by an embodiment of the present disclosure;
[0019] Figure 2 is a schematic diagram of a method for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0020] Figure 3 is a schematic diagram of another method for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0021] Figure 4 is a schematic diagram of another method for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0022] Figure 5 is a schematic diagram of another method for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0023] Figure 6 is a schematic diagram of a device for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0024] Figure 7 is a schematic diagram of another device for adjusting a sleeping environment provided by an embodiment of the present disclosure;
[0025] Figure 8 Schematic diagram of a sleep system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0027] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0028] Unless otherwise stated, the term "plurality" means two or more.
[0029] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0030] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0031] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0032] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.
[0033] Combination Figure 1 As shown, the embodiment of the present disclosure provides a sleep system, including: an air conditioner 1, a ventilation device 2 connected to the outside world, and an air purifier 3. The air conditioner 1, the ventilation device 2 connected to the outside world, and the air purifier 3 are all connected to a server 4, and the air conditioner 1, the ventilation device 2 connected to the outside world, the air purifier 3, and the server 4 can communicate with each other.
[0034] Optionally, the sleeping system further includes: audio-visual equipment 5, doorbell 6 and sweeping robot 7. The audio-visual equipment 5, doorbell 6 and sweeping robot 7 are all connected to the server 4, and the audio-visual equipment 5, doorbell 6, sweeping robot 7 and server 4 can communicate with each other.
[0035] Optionally, the sleep system further comprises a light intensity detection device. The light intensity detection device is used to detect light intensity.
[0036] In this way, the air conditioner can adjust the indoor temperature and humidity, the ventilation equipment and air purifier connected to the outside world can improve the indoor air, and the audio-visual equipment, doorbell and sweeping robot can adjust the sound settings. This will reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0037] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for adjusting a sleeping environment, comprising:
[0038] S201 : The sleep system determines the sleep type of the user according to the historical sleep time information of the user.
[0039] S202, the sleep system controls the sleep system to enter or exit the daytime sleep mode according to the user's sleep type and the current time, so as to adjust the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings.
[0040] The sleep type of the user includes a daytime sleeper or a non-daytime sleeper.
[0041] The method for adjusting the sleeping environment provided by the embodiment of the present disclosure is adopted to first determine the user's sleep type as a daytime sleeper or a non-daytime sleeper based on the user's historical sleep time, and then control the sleep system to enter or exit the daytime sleep mode based on the user's sleep type and the current time, and adjust the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings to make the sleeping environment more suitable for daytime sleepers or non-daytime sleepers, and provide a sleeping plan suitable for daytime sleep to improve the user's daytime sleep quality. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0042] Optionally, the sleep system determines the sleep type of the user based on the historical sleep time information of the user, including: the sleep system determines the number of days when the user has daytime sleep behavior based on the historical sleep information of each day within a set number of historical days. The sleep system determines the sleep type of the user based on the number of days when the user has daytime sleep behavior within a set number of historical days. Specifically, the value of the set number of historical days can be 30 days or 14 days.
[0043] In this way, the number of days the user has daytime sleep behavior is first determined based on the history within the set historical days, and then the sleep type is determined based on the number of days the user has daytime sleep behavior. This is conducive to more accurately determining the user's sleep type, thereby more accurately controlling the sleep system to enter or exit the daytime sleep mode, and improving the user's daytime sleep quality.
[0044] Optionally, the historical sleep time information includes historical sleeping time and historical daytime sleep duration. The sleep system determines the number of days when the user has daytime sleep behavior according to the historical sleep information of each day within the set historical number of days, including: the sleep system determines the number of days when the user has daytime sleep behavior according to the historical sleeping time and historical daytime sleep duration of each day within the set historical number of days.
[0045] In this way, the daily historical sleeping time and historical daytime sleep duration determine the number of days the user has daytime sleep behavior, which is conducive to more accurately determining the sleep type, thereby more accurately controlling the sleep system to enter or exit the daytime sleep mode, and improving the user's daytime sleep quality.
[0046] Optionally, the sleep system determines the number of days when the user has daytime sleep behavior according to the historical sleeping time and historical daytime sleep duration of each day within the set historical number of days, including:
[0047] If the historical sleeping time on the i-th day is later than or equal to the first time, or the ratio of the historical daytime sleep duration to the standard duration is greater than or equal to the first ratio value, the sleep system determines that the user has daytime sleep behavior on the i-th day. The sleep system counts the number of days that the user has daytime sleep behavior. Or,
[0048] When the historical sleeping time on the i-th day is earlier than the first time and the ratio of the historical daytime sleeping duration to the standard duration is less than the first ratio value, the sleep system determines that the user has no daytime sleeping behavior on the i-th day.
[0049] Among them, i=1, 2, ..., N, N is the set historical number of days; the first moment is the moment before the first duration of the sunrise moment, and the historical daytime sleep duration is the sleep duration after the sunrise moment.
[0050] It should be noted that the first moment includes a sleep cycle.
[0051] In this way, if the time later than or equal to the first moment (the time difference from the sunrise time is less than or equal to one sleep cycle) is used as the time when the daytime sleep behavior starts, then this sleep cycle has not been completed after the sunrise time, so there is daytime sleep behavior in this sleep cycle. Taking the time later than or equal to one sleep cycle from the sunrise time as the time when the daytime sleep behavior starts is conducive to more accurately determining whether the user has daytime sleep behavior. And the historical sleep time is later than or equal to the first moment, or the ratio of the historical daytime sleep duration to the standard duration is greater than or equal to the first ratio value as the judgment standard of daytime sleep behavior, which is conducive to more accurately determining whether the user has daytime sleep behavior.
[0052] Specifically, the value range of the first duration is (0, 1.5h). The value of a sleep cycle may be 1.5h. The value of the first ratio may be 80%. More specifically, the value of the first duration may be 1.5h.
[0053] In this way, 1.5 hours includes a sleep cycle. If the time later than or equal to the first moment (the time difference from the sunrise time is less than or equal to one sleep cycle) is used as the time when daytime sleep behavior starts, then this sleep cycle has not been completed after the sunrise time. Therefore, there is daytime sleep behavior in this sleep cycle. Taking the time later than or equal to the sunrise time by one sleep cycle as the time when daytime sleep behavior starts is conducive to more accurately determining whether the user has daytime sleep behavior. It is conducive to reducing the difference in sleeping environment caused by day and night changes and improving sleep quality.
[0054] Optionally, the method for determining the standard duration includes: the sleep system determines the standard duration according to historical sleep time information within a set number of historical days.
[0055] Specifically, the historical sleep time information also includes: historical full-day sleep duration. The sleep system determines the standard duration according to the historical sleep time information within the set historical days, including: the sleep system calculates the average of the historical full-day sleep duration of each day within the set historical days to obtain the standard duration.
[0056] In this way, the user can avoid having too long or too short daytime sleep, and thus avoid the ratio of historical daytime sleep duration to daytime sleep duration fluctuating, thereby improving the accuracy of determining whether the user has daytime sleep behavior. This can reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0057] Optionally, the sleep system determines the user's sleep type according to the number of days in which the user has daytime sleep behavior within a set number of historical days, including: the sleep system determines the ratio of the number of days in which the user has daytime sleep behavior within the set number of historical days to the set number of historical days as the daytime sleep behavior ratio. The sleep system determines the user's sleep type according to the daytime sleep behavior ratio.
[0058] In this way, determining the user's sleep type based on the proportion of daytime sleep behavior is conducive to more accurately determining the user's sleep type based on the number of days the user has daytime sleep behavior within the set historical days, thereby reducing the impact of external interference on the user's daytime sleep quality and improving the user's daytime sleep quality.
[0059] Optionally, the sleep system determines the user's sleep type according to the daytime sleep behavior ratio, including: when the daytime sleep behavior ratio is greater than or equal to a second ratio value, the sleep system determines the user's sleep type as a daytime sleeper. Or, when the daytime sleep behavior ratio is less than the second ratio value, the sleep system determines the user's sleep type as a non-daytime sleeper. Specifically, the second ratio value may be 25%.
[0060] In this way, the higher the proportion of days in which the user has daytime sleep behavior in the set historical days, the more likely the user is to sleep during the day and is determined to be a daytime sleeper. The lower the proportion of days in which the user has daytime sleep behavior in the set historical days, the more likely the user occasionally sleeps during the day and is determined to be a non-daytime sleeper. This helps to more accurately determine the user's sleep type, thereby reducing the impact of external interference on the user's daytime sleep quality and improving the user's daytime sleep quality.
[0061] Optionally, the sleep system controls the sleep system to enter or exit the daytime sleep mode according to the user's sleep type and the current time, so as to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound reminder methods, including:
[0062] When the user's sleep type is a daytime sleeper and the current time is in the first daytime time interval, or when the user's sleep type is a non-daytime sleeper and the current time is in the second daytime time interval and the user enters the sleep state, the sleep system controls the sleep system to enter the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or sound settings. Or, when the user's sleep type is a daytime sleeper and the current time is in the first nighttime time interval, or when the user's sleep type is a non-daytime sleeper and the current time is in the second nighttime time interval and the user enters the sleep state, the sleep system controls the sleep system to exit the daytime sleep mode.
[0063] In this way, if the user's sleep type is a daytime sleeper and the current moment is in the first daytime time interval, or the user's sleep type is a non-daytime sleeper and the user is in the second daytime time interval and enters a sleeping state, it means that the user has a high probability of daytime sleep behavior at this time. At this time, the sleep system is controlled to enter the sleep mode, and the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings are adjusted to make the daytime sleep environment more suitable for daytime sleepers or non-daytime sleepers, and provide a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality. If the user's sleep type is a daytime sleeper and the current moment is in the first nighttime time interval, or the user's sleep type is a non-daytime sleeper and the user is in the second nighttime time interval and enters a sleeping state, it means that the user does not have daytime sleep behavior at this time. At this time, exiting the daytime sleep mode is conducive to better reducing the energy consumption of the sleep system and providing an environment suitable for daytime activities. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0064] Optionally, the sleep system controls the sleep system to enter the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings, including: the sleep system controls the sleep system to enter the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air according to the indoor noise. And, the sleep system adjusts the sound settings according to the set device whitelist information.
[0065] In this way, the sleep system controls the sleep system to enter the daytime sleep mode, adjusts the indoor temperature and / or humidity and / or measures to improve the air according to the indoor noise. In addition, the sleep system adjusts the sound settings according to the set device whitelist information, provides a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality, and creates an indoor environment suitable for daytime sleep. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0066] Optionally, the sleep system adjusts the indoor temperature and / or humidity and / or measures to improve the air according to the indoor noise, including: when the indoor noise is in the first noise range, the sleep system controls the air conditioner to adjust the indoor temperature to the first temperature and the humidity to the first humidity, and the measures to improve the air are to control the ventilation equipment connected to the outside to operate and stop the air purifier. Or, when the indoor noise is in the second noise range, the sleep system controls the air conditioner to adjust the indoor temperature to the second temperature and the humidity to the second humidity, and the measures to improve the air by the sleep system are to control the ventilation equipment connected to the outside to operate and stop the air purifier, and control the audio-visual equipment to play the set noise of rain white noise audio. Or, when the indoor noise is in the third noise range, the measures to improve the air are to control the ventilation equipment connected to the outside to stop operating and the air purifier to operate. Among them, the first temperature is greater than the second temperature, the first humidity is lower than the second humidity; the first noise range is lower than the second noise range, and the second noise range is lower than the third noise range.
[0067] Specifically, the value of the first temperature can be 22°C, the value of the second temperature can be 20°C, the value of the first humidity can be 40%, the value of the second humidity can be 50%, the value of the first noise interval can be [0, 30dB), the value of the second noise interval can be [30dB, 50dB], and the value of the third noise interval can be (50dB, +∞).
[0068] In this way, if the indoor noise is in the smallest first noise interval, it means that the indoor noise is similar to the noise of the nighttime sleep environment and is relatively quiet. It is only necessary to adjust the indoor temperature to a higher first temperature and the humidity to a lower first humidity to create a daytime sleep environment of "slightly noisy night", without stopping the ventilation operation noise reduction of the ventilation equipment connected to the outside world. If the indoor noise is in a larger first noise interval, it means that the indoor noise is higher than the noise of the nighttime sleep environment. At this time, the indoor temperature is lowered to the second temperature, the indoor humidity is increased to the second humidity, and the white noise audio is played to create a daytime sleep environment of "rainy daytime", and there is no need to stop the ventilation operation noise reduction of the ventilation equipment connected to the outside world. If the indoor noise is in the largest second noise interval, it means that it is difficult to reduce the noise by playing white noise at this time. At this time, the ventilation operation noise reduction of the ventilation equipment connected to the outside world is stopped, and the air purifier with less noise is turned on to improve the indoor air. In this way, the sleeping environment is more suitable for daytime sleep users or non-daytime sleep users, and a sleep plan suitable for daytime sleep is provided to improve the daytime sleep quality of users. Reduce the impact of external interference on the daytime sleep quality of users and improve the daytime sleep quality of users.
[0069] Optionally, the sleep system adjusts the sound settings according to the set device whitelist information, including: when the audio-visual device, and / or the doorbell, and / or the sweeping robot are in the device whitelist, the sleep system controls the audio-visual device to keep the original sound, and / or the doorbell prompt type is audible or high-pitched, and / or the sweeping robot keeps running the scheduled task. Or, when the audio-visual device, and / or the doorbell, and / or the sweeping robot are not in the device whitelist, the sleep system controls the audio-visual device to stop running, and / or the doorbell prompt type is silent or low-pitched, and / or the sweeping robot disables the scheduled task.
[0070] Specifically, the sleep system controls the audio-visual device to maintain the original sound, and / or the doorbell prompt type is audible or high-pitched, and / or the sweeping robot keeps running the scheduled task, including: when the audio-visual device is in the device whitelist, the sleep system controls the audio-visual device to maintain the original sound. And / or, when the doorbell is in the device whitelist, the sleep system controls the doorbell prompt type to be audible or high-pitched. And / or, when the sweeping robot is in the device whitelist, the sleep system controls the sweeping robot to keep running the scheduled task.
[0071] The sleep system controls the audio-visual device to stop running, and / or the doorbell prompt type is silent or low-pitched, and / or the sweeping robot disables scheduled tasks, including: if the audio-visual device is not in the device whitelist, the sleep system controls the audio-visual device to stop running. And / or, if the doorbell is not in the device whitelist, the sleep system controls the doorbell prompt type to be silent or low-pitched. And / or, if the sweeping robot is not in the device whitelist, the sleep system controls the sweeping robot to disable scheduled tasks.
[0072] In this way, a whitelist information is set to adjust the sound settings of audio-visual equipment, doorbells, and sweeping robots to reduce the noise in the daytime sleep environment, provide a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0073] Optionally, the first daytime time interval, the first nighttime time interval, the second daytime time interval, and the second nighttime time interval are determined according to sunrise time and sunset time.
[0074] This is helpful to more accurately determine the first daytime time interval, the first nighttime time interval, the second daytime time interval, and the second nighttime time interval.
[0075] Optionally, determining the first daytime time interval according to the sunrise time and the sunset time includes: determining the time interval starting from the second time and ending at the sunset time as the first daytime time interval. The second time is a time earlier than the sunrise time by a second time length. Specifically, the value of the second time length can be 1.5 hours.
[0076] In this way, for users who sleep during the day, they enter the daytime sleep mode at a second time earlier than the sunrise time. The user's sleep cycle before sunrise has not been completed after sunrise, so there is daytime sleep behavior in this sleep cycle. Entering the daytime sleep mode at this time is conducive to avoiding interruption of the sleep cycle, reducing the difference in sleeping environment caused by day and night changes, and improving sleep quality.
[0077] Optionally, determining the first night time interval according to the sunrise time and the sunset time includes: determining a time interval starting from the sunset time and ending at a second time of the next day as the first night time interval.
[0078] In this way, for daytime sleep users, exiting the daytime sleep mode outside the first daytime time interval is beneficial to better reduce the energy consumption of the sleep system and to provide an environment suitable for daytime activities.
[0079] Optionally, determining the second daytime time interval according to the sunrise time and the sunset time includes: determining a time interval starting from the sunrise time and ending at the sunset time as the second daytime time interval.
[0080] In this way, for non-daytime sleepers, entering the daytime sleep mode between sunrise and sunset is conducive to providing a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality. This reduces the impact of external interference on the user's daytime sleep quality and improves the user's daytime sleep quality. Since the daytime sleep mode is not entered at the first moment, it is conducive to better reducing the energy consumption of the sleep system.
[0081] Optionally, determining the second night time interval according to the sunrise time and the sunset time includes: determining a time interval starting from the sunset time and ending at the next day's sunrise time as the second night time interval.
[0082] In this way, the daytime sleep mode is not entered outside the second daytime time interval, which is conducive to better reducing the energy consumption of the sleep system and providing an environment suitable for daytime activities.
[0083] Optionally, the method for determining the sunrise time and sunset time includes: the sleep system receives the sunrise time and sunset time sent by the server. Or, the sleep system queries the sunrise time and sunset time in a preset information library according to the light intensity detected by the light intensity sensor.
[0084] This is helpful to more accurately determine the sunrise time and the sunset time, thereby more accurately determining the first daytime time interval, the first nighttime time interval, the second daytime time interval, and the second nighttime time interval.
[0085] Optionally, after the sleep system controls the sleep system to enter the daytime sleep mode, the process further includes: when the user wakes up, the sleep system controls the sleep system to exit the daytime sleep mode.
[0086] In this way, exiting the daytime sleep mode after the user wakes up is helpful in providing an environment suitable for daytime activities and helping to better reduce the energy consumption of the sleep system.
[0087] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for adjusting a sleeping environment, comprising:
[0088] S301 : The sleep system determines the sleep type of the user according to the historical sleep time information of the user.
[0089] S302, when the user's sleep type is a daytime sleeper and the current moment is in the first daytime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second daytime time interval and the user enters a sleep state, the sleep system controls the sleep system to enter the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings.
[0090] S303: When the user wakes up, the sleep system controls the sleep system to exit the daytime sleep mode.
[0091] S304, when the user's sleep type is a daytime sleeper and the current moment is in the first nighttime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second nighttime time interval and the user enters a sleep state, the sleep system controls the sleep system to exit the daytime sleep mode.
[0092] The sleep type of the user includes a daytime sleeper or a non-daytime sleeper.
[0093] Using the method for adjusting the sleep environment provided by the embodiment of the present disclosure, if the user's sleep type is a daytime sleep user and the current moment is in the first daytime time interval, or the user's sleep type is a non-daytime sleep user and the user is in the second daytime time interval and enters the sleep state, it means that the user has a high probability of daytime sleep behavior at this time. At this time, the sleep system is controlled to enter the sleep mode, and the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or sound settings are adjusted to make the daytime sleep environment more suitable for daytime sleep users or non-daytime sleep users, and provide a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality. Exiting the daytime sleep mode after the user wakes up is conducive to providing an environment suitable for daytime activities and is conducive to better reducing the energy consumption of the sleep system. If the user's sleep type is a daytime sleep user and the current moment is in the first nighttime time interval, or the user's sleep type is a non-daytime sleep user and the user is in the second nighttime time interval and enters the sleep state, it means that the user does not have daytime sleep behavior at this time. Exiting the daytime sleep mode at this time is conducive to better reducing the energy consumption of the sleep system and is conducive to providing an environment suitable for daytime activities. Reduce the impact of external interference on users' daytime sleep quality and improve users' daytime sleep quality.
[0094] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for adjusting a sleeping environment, comprising:
[0095] S401 : The sleep system determines the sleep type of the user according to the historical sleep time information of the user.
[0096] S402: When the user's sleep type is a daytime sleeper and the current time is in the first daytime time interval, or when the user's sleep type is a non-daytime sleeper and the current time is in the second daytime time interval and the user enters a sleeping state, the sleep system controls the sleep system to enter a daytime sleep mode to adjust the indoor temperature and / or humidity and / or improve the air according to the indoor noise. And,
[0097] S403, the sleep system adjusts the sound settings according to the set device whitelist information.
[0098] S404: When the user wakes up, the sleep system controls the sleep system to exit the daytime sleep mode.
[0099] S405, when the user's sleep type is a daytime sleeper and the current moment is in the first nighttime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second nighttime time interval and the user enters a sleep state, the sleep system controls the sleep system to exit the daytime sleep mode.
[0100] The sleep type of the user includes a daytime sleeper or a non-daytime sleeper.
[0101] Using the method for adjusting the sleep environment provided by the embodiment of the present disclosure, if the user's sleep type is a daytime sleeper and the user is currently in the first daytime time interval, or if the user's sleep type is a non-daytime sleeper and the user is currently in the second daytime time interval and enters a sleep state, it means that the user is very likely to have daytime sleep behavior at this time. At this time, the sleep system is controlled to enter the sleep mode, and the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings are adjusted to make the daytime sleep environment more suitable for daytime sleepers or non-daytime sleepers, and provide a sleep plan suitable for daytime sleep to improve the user's daytime sleep quality and create an indoor environment suitable for daytime sleep. Exiting the daytime sleep mode after the user wakes up is conducive to providing an environment suitable for daytime activities and is conducive to better reducing the energy consumption of the sleep system. If the user's sleep type is a daytime sleeper and the current time is in the first nighttime time interval, or if the user's sleep type is a non-daytime sleeper and the current time is in the second nighttime time interval and the user enters the sleep state, it means that the user does not have daytime sleep behavior at this time. Exiting the daytime sleep mode at this time is conducive to better reducing the energy consumption of the sleep system and providing an environment suitable for daytime activities. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0102] Combination Figure 5 As shown, the embodiment of the present disclosure provides another method for adjusting a sleeping environment, comprising:
[0103] S501 : The sleep system determines the sleep type of the user according to the historical sleep time information of the user.
[0104] S502, when the user's sleep type is a daytime sleeper and the current moment is in the first daytime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second daytime time interval and the user enters a sleep state, the sleep system controls the sleep system to enter the daytime sleep mode and determines whether the indoor noise is in the first noise interval.
[0105] S503, when the indoor noise is in the first noise range, the sleep system controls the air conditioner to adjust the indoor temperature to the first temperature and humidity to the first humidity, and measures to improve the air are to control the ventilation equipment connected to the outside to operate and stop the air purifier. Or,
[0106] S504, when the indoor noise is in the second noise range, the sleep system controls the air conditioner to adjust the indoor temperature to the second temperature and humidity to the second humidity, and measures to improve the air are to control the ventilation equipment connected to the outside to operate, stop the air purifier, and control the audio-visual equipment to play the set noise of rain white noise audio. Or,
[0107] S505, when the indoor noise is in the third noise range, the sleep system adjusts and improves the air by controlling the ventilation equipment connected to the outside to stop running and the air purifier to run.
[0108] S506, the sleep system adjusts the sound settings according to the set device whitelist information.
[0109] S507: When the user wakes up, the sleep system controls the sleep system to exit the daytime sleep mode.
[0110] S508, when the user's sleep type is a daytime sleeper and the current moment is in the first nighttime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second nighttime time interval and the user enters a sleep state, the sleep system controls the sleep system to exit the daytime sleep mode.
[0111] The sleep type of the user includes a daytime sleeper or a non-daytime sleeper. The first temperature is greater than the second temperature, the first humidity is lower than the second humidity, the first noise interval is lower than the second noise interval, and the second noise interval is lower than the third noise interval.
[0112] Using the method for adjusting the sleeping environment provided by the embodiment of the present disclosure, if the user's sleep type is a daytime sleep user and the current moment is in the first daytime time interval, or if the user's sleep type is a non-daytime sleep user and the current moment is in the second daytime time interval, the user enters the sleeping state, which means that the user has a high probability of daytime sleeping behavior at this time. At this time, the sleep system is controlled to enter the sleep mode. If the indoor noise is in the smallest first noise interval, it means that the indoor noise at this time is similar to the noise of the nighttime sleeping environment and is relatively quiet. It only needs to adjust the indoor temperature to a higher first temperature and the humidity to a lower first humidity to create a daytime sleeping environment of "slightly noisy night" without stopping the ventilation operation and noise reduction of the ventilation equipment connected to the outside world. If the indoor noise is in a larger first noise interval, it means that the indoor noise at this time is higher than the noise of the nighttime sleeping environment. At this time, the indoor temperature is lowered to the second temperature, the indoor humidity is increased to the second humidity, and then the white noise audio is played to create a daytime sleeping environment of "rainy daytime", and there is no need to stop the ventilation operation and noise reduction of the ventilation equipment connected to the outside world. If the indoor noise is in the second noise interval with the largest noise, it means that it is difficult to reduce the noise by playing white noise without unreasonable shielding. At this time, the ventilation operation of the ventilation equipment connected to the outside world is stopped to reduce noise, and the air purifier with less noise is turned on to improve the indoor air. In this way, the sleeping environment is more suitable for daytime sleepers or non-daytime sleepers, and a sleep plan suitable for daytime sleep is provided to improve the user's daytime sleep quality. Exiting the daytime sleep mode after the user wakes up is conducive to providing an environment suitable for daytime activities and to better reduce the energy consumption of the sleep system. If the user's sleep type is a daytime sleep user and the current moment is in the first night time interval, or the user's sleep type is a non-daytime sleep user and the current moment is in the second night time interval, the user enters a sleep state, which means that the user has no daytime sleep behavior at this time. At this time, exiting the daytime sleep mode is conducive to better reducing the energy consumption of the sleep system and providing an environment suitable for daytime activities. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0113] Combination Figure 6 As shown, the embodiment of the present disclosure provides a device 200 for adjusting the sleep environment, including a determination module 601 and a control module 602. The determination module 601 is configured to determine the sleep type of the user according to the historical sleep time information of the user. The control module 602 is configured to control the sleep system to enter or exit the daytime sleep mode according to the sleep type of the user and the current time, so as to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings. The sleep type of the user includes a daytime sleep user or a non-daytime sleep user.
[0114] The device 200 for adjusting the sleeping environment provided by the embodiment of the present disclosure is used to first determine the user's sleep type as a daytime sleeper or a non-daytime sleeper based on the user's historical sleep time, and then control the sleep system to enter or exit the daytime sleep mode based on the user's sleep type and the current time, and adjust the indoor temperature, and / or humidity, and / or measures to improve the air, and / or sound settings to make the sleeping environment more suitable for daytime sleepers or non-daytime sleepers, and provide a sleeping plan suitable for daytime sleep to improve the user's daytime sleep quality. Reduce the impact of external interference on the user's daytime sleep quality and improve the user's daytime sleep quality.
[0115] Combination Figure 7 As shown, the embodiment of the present disclosure provides a device 300 for adjusting a sleep environment, including a processor 700 and a memory 701. Optionally, the device 300 may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the method for adjusting a sleep environment of the above embodiment.
[0116] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0117] The memory 701 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 700 executes the function application and data processing by running the program instructions / modules stored in the memory 701, that is, the method for adjusting the sleep environment in the above embodiment is implemented.
[0118] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.
[0119] Combination Figure 8As shown, the embodiment of the present disclosure provides a sleep system 100, including: a sleep system body, and the above-mentioned device 200 (300) for adjusting the sleep environment. The device 200 (300) for adjusting the sleep environment is installed in the sleep system body. The installation relationship described here is not limited to placement inside the sleep system body, but also includes installation connections with other components of the sleep system 100, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the device 200 (300) for adjusting the sleep environment can be adapted to a feasible sleep system body, thereby realizing other feasible embodiments.
[0120] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for adjusting a sleeping environment.
[0121] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0122] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0123] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0124] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0125] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for adjusting a sleeping environment, characterized in that: Applied to sleep systems, including: Determine the user's sleep type based on the user's historical sleep time information; According to the user's sleep type and the current time, control the sleep system to enter or exit the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings; The sleep type of the user includes a daytime sleeper or a non-daytime sleeper.
2. The method according to claim 1, characterized in that Determine the user's sleep type based on the user's historical sleep time information, including: Determine the number of days the user has daytime sleep behavior based on the historical sleep information of each day within the set historical number of days; The user's sleep type is determined based on the number of days in which the user has daytime sleep behavior within a set number of historical days.
3. The method according to claim 1 or 2, characterized in that: According to the user's sleep type and current time, control the sleep system to enter or exit the daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound reminders, including: When the user's sleep type is a daytime sleeper and the current moment is in the first daytime time interval, or when the user's sleep type is a non-daytime sleeper and the current moment is in the second daytime time interval and the user enters a sleeping state, the sleep system is controlled to enter a daytime sleep mode to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings; or, When the user's sleep type is a daytime sleeper and the current time is in the first nighttime time interval, or when the user's sleep type is a non-daytime sleeper and the current time is in the second nighttime time interval and the user enters a sleeping state, the sleep system is controlled to exit the daytime sleep mode.
4. The method according to claim 3, characterized in that Control the sleep system to enter daytime sleep mode to adjust indoor temperature, and / or, humidity, and / or, measures to improve air, and / or, sound settings, including: Control the sleep system to enter the daytime sleep mode to adjust the indoor temperature and / or humidity and / or improve the air according to the indoor noise; and, Adjust the sound settings according to the set device whitelist information.
5. The method according to claim 4, characterized in that The sleeping system includes an air conditioner, ventilation equipment connected to the outside, an air purifier, and audio-visual equipment. It adjusts the indoor temperature and / or humidity according to the indoor noise, and / or measures to improve the air, including: When the indoor noise is in the first noise range, the air conditioner is controlled to adjust the indoor temperature to the first temperature and the humidity to the first humidity, and the measures to improve the air are to control the ventilation of the ventilation equipment connected to the outside and stop the operation of the air purifier; or, When the indoor noise is in the second noise range, the air conditioner is controlled to adjust the indoor temperature to the second temperature and the humidity to the second humidity. The measures to improve the air are to control the ventilation equipment connected to the outside to operate, stop the air purifier, and control the audio-visual equipment to play the set noise of rain white noise audio; or, When the indoor noise is in the third noise range, the measures to adjust and improve the air are to stop the ventilation equipment connected to the outside and to operate the air purifier; Among them, the first temperature is greater than the second temperature, the first humidity is lower than the second humidity; the first noise interval is lower than the second noise interval, and the second noise interval is lower than the third noise interval.
6. The method according to claim 4, characterized in that The sleep system includes: audio and video equipment, doorbell, sweeping robot; according to the set device whitelist information, adjust the sound settings, including: When the audio-visual device, and / or the doorbell, and / or the sweeping robot are in the device whitelist, control the audio-visual device to keep the original sound, and / or the doorbell prompt type is audible or high-pitched, and / or the sweeping robot keeps running the scheduled task; or, When the audio-visual device, and / or the doorbell, and / or the sweeping robot are not in the device whitelist, the audio-visual device is controlled to stop running, and / or the doorbell prompt type is silent or bass, and / or the sweeping robot disables scheduled tasks.
7. A device for adjusting a sleeping environment, characterized in that: Applied to sleep systems, including: a determination module, configured to determine the user's sleep type based on the user's historical sleep time information; A control module, configured to control the sleep system to enter or exit the daytime sleep mode according to the user's sleep type and the current time, so as to adjust the indoor temperature, and / or, humidity, and / or, measures to improve the air, and / or, sound settings; The sleep type of the user includes a daytime sleeper or a non-daytime sleeper.
8. A device for adjusting a sleeping environment, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for adjusting a sleeping environment according to any one of claims 1 to 6 when running the program instructions.
9. A sleeping system, characterized in that: include: Sleep system body; The device for adjusting the sleeping environment as described in claim 7 or 8 is installed on the sleeping system body.
10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is configured to execute the method for adjusting a sleeping environment as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Humidification method and device and humidification air conditioner
CN112781197A
Method and device for controlling air conditioner, air conditioner and storage medium
CN113819620A
Sleep quality improvement method and device, intelligent air conditioner, system and storage medium
CN115105720A
Method and device for improving sleep and storage medium
CN116761315A
Sleep controlling apparatus and method, and computer program product thereof
US20080234785A1