CN113639379A - Sleep control method and device of air conditioner, air conditioner and storage medium - Google Patents
Sleep control method and device of air conditioner, air conditioner and storage medium Download PDFInfo
- Publication number
- CN113639379A CN113639379A CN202010346570.1A CN202010346570A CN113639379A CN 113639379 A CN113639379 A CN 113639379A CN 202010346570 A CN202010346570 A CN 202010346570A CN 113639379 A CN113639379 A CN 113639379A
- Authority
- CN
- China
- Prior art keywords
- sleep
- sleep stage
- stage
- air conditioner
- user
- 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.)
- Withdrawn
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/30—Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/61—Control or safety arrangements characterised by user interfaces or communication using timers
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
- F24F11/63—Electronic processing
- F24F11/64—Electronic processing using pre-stored data
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
- F24F11/63—Electronic processing
- F24F11/65—Electronic processing for selecting an operating mode
- F24F11/66—Sleep mode
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/70—Control systems characterised by their outputs; Constructional details thereof
- F24F11/72—Control systems characterised by their outputs; Constructional details thereof for controlling the supply of treated air, e.g. its pressure
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/70—Control systems characterised by their outputs; Constructional details thereof
- F24F11/80—Control systems characterised by their outputs; Constructional details thereof for controlling the temperature of the supplied air
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/88—Electrical aspects, e.g. circuits
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F2120/00—Control inputs relating to users or occupants
- F24F2120/20—Feedback from users
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Human Computer Interaction (AREA)
- Air Conditioning Control Device (AREA)
Abstract
The invention provides a sleep control method and device of an air conditioner, the air conditioner and a storage medium, wherein the sleep control method of the air conditioner comprises the following steps: determining a sleep stage to be entered, and acquiring body movement information of a user; determining sleep stage switching time based on the user body movement information and/or the sleep stage to be entered; and adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter. The invention can guide the sleep rhythm of the user, relieve nerves, promote the user to fall asleep and revive, and ensure good sleep quality of the user.
Description
Technical Field
The invention relates to the technical field of air conditioner control, in particular to a sleep control method and device of an air conditioner, the air conditioner and a storage medium.
Background
With the development of intelligent air conditioners, the air conditioner functions are increasingly wide. In the prior art, an air conditioner with a sleep mode is available, which can adjust indoor environment in the sleep mode and improve sleep quality of users.
However, the existing air conditioner can only adjust the indoor temperature environment, has a single adjustment type, and has a weak promotion effect on the sleep quality of a user.
Disclosure of Invention
The invention solves the problems that the prior air conditioner has single environment type adjustment and has weaker promotion effect on the sleep quality of a user.
In order to solve the above problems, the present invention provides a sleep control method for an air conditioner, comprising:
determining a sleep stage to be entered, and acquiring body movement information of a user;
determining sleep stage switching time based on the user body movement information and/or the sleep stage to be entered;
and adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter.
The requirements of different sleep stages on the environment are different, the regulation and control of the temperature environment and the light environment are beneficial to controlling the rhythm of falling asleep and waking up, and the comfortable sound environment and the aromatic environment can also relieve nerves and promote sleep. The comprehensive and all-round adjustment of the air conditioner to the sleeping environment of the user is realized by adjusting the indoor temperature environment, the light environment, the sound environment and the aromatic environment, so that the current environment is matched with the current sleeping stage of the user, the user is guided to sleep or the user is promoted to wake up, and the good sleep of the user can be ensured.
Optionally, when the sleep stage to be entered is an awake stage, the determining a sleep stage switching time based on the user movement information and/or the sleep stage to be entered includes:
acquiring the body movement frequency variation trend of the current day from the user body movement information, and acquiring a current prediction rule, wherein the current prediction rule is determined based on the body movement frequency variation data recorded every day before the current day and the actual awakening time;
and predicting the switching time from the current sleep stage to the wake-up stage based on the body movement frequency variation trend of the current day and the current prediction rule.
The method comprises the steps of determining the latest incidence relation between the change of the body movement times and the actual awakening time, namely a current prediction rule, based on the change of the body movement times and the actual awakening time data in the previous sleep cycle, predicting the awakening time of the sleep cycle by combining the change of the body movement times of the sleep cycle (the current day) based on the current prediction rule, establishing the incidence relation between the personal body movement times and the sleep stages of a user according to the unique personal sleep data and the body movement data of the user, predicting the awakening time, adjusting the environmental parameters in advance in the subsequent period, and guiding the sleep rhythm of the user.
Optionally, the adjusting an environmental parameter according to the sleep stage to be entered and the sleep stage switching time includes:
and starting to adjust the environmental parameters before the preset duration of the sleep stage switching time, or starting to adjust the environmental parameters at the sleep stage switching time.
By starting to adjust the environment parameters before the preset duration of the sleep stage switching time, the environment can be adjusted to the state corresponding to the sleep stage to be entered before the sleep stage to be entered is really entered, and then the user is guided to enter the sleep stage to be entered. By starting to adjust the environmental parameters at the sleep stage switching time, the environmental parameters can be immediately adjusted after the user switches the sleep stage to be suitable for the current sleep stage.
Optionally, when the sleep stage to be entered is an awake stage, the starting to adjust the environmental parameter before the preset duration of the sleep stage switching time includes:
before the preset duration of the sleep stage switching time, gradually reducing the room temperature to a first preset temperature, gradually increasing the light brightness to a first preset brightness, gradually increasing the audio volume to a first preset volume, and releasing a preset first type of fragrance.
The starting time of each environment type control is set before the preset duration of the sleep stage switching time, so that the control of each environment type can be started when the user is about to wake up but not wake up, the waking of the human body is promoted, the waking rhythm of the human body is guided and promoted, and the hysteresis of the environment control is avoided.
Optionally, before the determining the sleep stage to be entered and acquiring the body movement information of the user, the method includes:
and when a sleep mode starting instruction is received, controlling the air conditioner to enter a sleep mode, setting the current sleep stage where the user is positioned as a sleep preparation stage, and adjusting the environmental parameters to be adaptive to the sleep preparation stage.
The air conditioner is controlled to switch between the sleep mode and the non-sleep mode by the sleep mode starting instruction, so that the air conditioner can be ensured to enter the sleep mode under the manual control or the timing control of a user, and the corresponding sleep control is carried out at a proper time.
Optionally, said adjusting environmental parameters to be appropriate for said preparation for sleep stage comprises:
reducing the room temperature to a second preset temperature, generating light with a preset wavelength, generating sound with a preset frequency band, and releasing a preset second type of fragrance.
The body temperature of a human body is reduced by reducing the room temperature, and meanwhile, the light environment, the sound environment and the aromatic environment are adjusted, so that the surrounding environment becomes an environment suitable for sleeping, and a user is promoted to fall asleep as soon as possible.
Optionally, the preset frequency band is at least one of 4096Hz, 4160Hz and 4225 Hz.
The user is promoted to fall asleep by generating sounds in a frequency band having a calming effect on the human body.
Optionally, when the sleep stage to be entered is a sound sleep stage, the determining a sleep stage switching time based on the user movement information and/or the sleep stage to be entered includes:
acquiring the number of body movements in the latest preset time period from the body movement information of the user;
judging whether the number of body movements in the latest preset time period is less than a preset number;
if yes, determining the current time as the switching time from the preparation sleep stage to the sound sleep stage.
The time of the user entering the deep sleep stage is determined according to the number of times of body movement in the latest preset time period, the time of entering the deep sleep stage is judged according to the real-time body movement data, the accuracy of opportunity judgment can be ensured, and the ambient environment of the user during sleep is controlled in real time, so that the ambient environment is adjusted to be adaptive to the deep sleep stage.
Optionally, when the sleep stage to be entered is a sound sleep stage, the adjusting an environmental parameter according to the sleep stage to be entered and the sleep stage switching time includes:
and before the sleep stage switching time or the preset duration of the sleep stage switching time, raising the room temperature to a third preset temperature, turning off a lamp, muting and stopping releasing fragrance.
When the user is determined to enter the sound sleep stage, the surrounding environment is adjusted to be adaptive to the sound sleep stage, so that the user is kept in the sound sleep stage under the environment, the user is prevented from waking up or slightly sleeping due to inappropriate environment, and the user is ensured to have better sleep quality.
The present invention also provides a sleep control device of an air conditioner, including:
the acquisition unit is used for determining a sleep stage to be entered and acquiring the body movement information of the user;
a computing unit for determining sleep stage switching time based on the user movement information and/or the sleep stage to be entered;
and the control unit is used for adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter.
The invention also provides an air conditioner, which comprises a computer readable storage medium and a processor, wherein the computer readable storage medium is used for storing a computer program, and the computer program is read by the processor and runs to realize the sleep control method of the air conditioner.
Optionally, the air conditioner further comprises: lighting devices, sound devices and fragrance devices.
The present invention also provides a computer-readable storage medium storing a computer program, which when read and executed by a processor, implements the sleep control method of an air conditioner as described above.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a sleep control method for an air conditioner according to the present invention;
FIG. 2 is a schematic diagram of a detailed embodiment of step S30 of the sleep control method of the air conditioner according to the present invention;
FIG. 3 is a schematic diagram of another embodiment of a sleep control method for an air conditioner according to the present invention;
FIG. 4 is a schematic diagram of another embodiment of the sleep control method of an air conditioner according to the present invention, after step S30 is detailed;
FIG. 5 is a schematic view of a sleep control apparatus of an air conditioner according to an embodiment of the present invention;
fig. 6 is a schematic view of an air conditioner according to an embodiment of the present invention.
Description of reference numerals:
101-acquisition unit, 102-calculation unit, 103-control unit, 201-computer-readable storage medium, 202-processor.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The invention provides a sleep control method of an air conditioner. Fig. 1 is a schematic diagram of an embodiment of a sleep control method of an air conditioner according to the present invention. As shown in fig. 1, the sleep control method of the air conditioner includes:
step S20, determining a sleep stage to be entered, and acquiring body movement information of a user;
the method comprises the steps that a user starts to prepare to fall asleep in the evening and wakes up in the morning of the next day to serve as a sleep cycle, and the user sequentially goes through a sleep preparation stage, a sound sleep stage and an awakening stage in one sleep cycle. When the current sleep stage of the user is a sleep stage to be entered, the sleep stage to be entered is a sound sleep stage, and when the current sleep stage is a sound sleep stage, the sleep stage to be entered is an awakening stage. In this embodiment, the wake-up phase is the last phase of a sleep cycle, after which there are no sleep phases to enter.
The air conditioner may preset a context between the sleep stages, that is, the sleep stage to be entered is a deep sleep stage when the current sleep stage of the user is a stage ready to fall asleep, and the sleep stage to be entered is an awake stage when the current sleep stage is a deep sleep stage, which may be set in a list form. Optionally, a current sleep stage where the user is located is determined, a preset list is queried, and a sleep stage to be entered is determined according to the current sleep stage. In this embodiment, the current sleep stage where the user is located may be a ready-to-fall sleep stage or a sound sleep stage, and the preset list stores sleep stages to be entered, i.e., a sound sleep stage and a wake-up stage, which correspond to the ready-to-fall sleep stage and the sound sleep stage, respectively.
In an optional embodiment, the air conditioner sets a stage identifier to characterize a current sleep stage where the user is located, and when or after the sleep stage is switched, the stage identifier may be updated according to a context between sleep stages preset in the air conditioner, for example, the stage identifier of the air conditioner indicates a stage ready to fall asleep, which indicates that the current sleep stage where the user is located is the stage ready to fall asleep, and after the sleep stage switch is detected, the stage identifier is changed to a corresponding identifier of the stage ready to fall asleep. By acquiring the stage identifier, the sleep stage represented by the stage identifier is identified, and the sleep stage represented by the stage identifier is the current sleep stage.
The preparation falling asleep stage is the initial stage of the sleep cycle, and whether the preparation falling asleep stage is entered can be determined by judging whether a relevant instruction sent by a user is received (entering the preparation falling asleep stage or entering a sleep control mode). After receiving a relevant instruction sent by a user, the air conditioner judges that the user enters a sleep preparation stage, the current sleep stage is the sleep preparation stage, and the air conditioner performs environment control corresponding to the sleep preparation stage. Optionally, the air conditioner may also detect the user position, the user posture and the body movement frequency to determine whether the user enters a preparation sleep stage or whether the air conditioner enters a sleep control mode. When the user is detected to be in bed, the posture of the user is lying posture and the body movement frequency is lower than the body movement frequency of the preset normal activity, the user is judged to enter a sleep preparation stage or the air conditioner enters a sleep control mode.
After determining to enter the preparation-to-fall-asleep phase, the phase identification may be set to the preparation-to-fall-asleep phase. Optionally, the stage identifier may also be defined to represent a sleep stage to be entered by the user, after determining to enter the sleep-ready stage, according to a pre-set context between sleep stages, determining the sleep stage to be entered, i.e. a deep sleep stage, setting the stage identifier as the deep sleep stage, and at the sleep stage switching time determined by the air conditioner, updating the stage identifier to a next sleep stage of the deep sleep stage: a wake-up phase.
The waking stage is the last stage of a sleep cycle, so that after the air conditioner completes the adjustment of the environmental parameters corresponding to the waking stage, the environmental parameter control of the sleep cycle is completed.
And the air conditioner controls corresponding environmental parameters according to each sleep stage.
Optionally, the control mode of the air conditioner is divided into a sleep mode and a non-sleep mode, and in the sleep mode, the air conditioner automatically controls the corresponding environmental parameters according to each sleep stage. After completing the environmental parameter control of a sleep cycle, the air conditioner can maintain the environmental control corresponding to the awakening stage, and after waiting for the user to close the air conditioner or close the sleep mode, the normal control of the air conditioner is recovered, and the sleep mode can also be automatically stopped to recover the normal control of the air conditioner.
The user body movement information is obtained, the user body movement can be detected in real time, and whether the user body movement occurs or not can be detected through an infrared sensor or a microwave sensor and the like.
After the body movement of the user is detected, adding a body movement record to represent the body movement, wherein the body movement record can be in the form of body movement occurrence time, if the body movement occurs in 1:30 in the morning, storing the 1:30 as the body movement record, and the body movement record can also be in the form of body movement times in a certain time period, for example, the body movement times in 15 minutes, and accumulating the body movement times in the corresponding time period once every time the body movement of the user is detected in 15 minutes.
Based on the body movement record, user body movement information may be formed. The user body movement information may include the number of body movements within a preset time period, the preset time period may be a fixed time period, such as 0:00-0:59, 1:00-1:59, 2:00-2:59, 3:00-3:59, and the like, and the preset time period may also be a certain time period before the current time, for example, within 15 minutes before the current time and within 20 minutes before the current time. The user movement information may further include a duration corresponding to the number of fixed movements, for example, a duration corresponding to 4 movements, a duration corresponding to 6 movements, and the like.
Step S30, determining sleep stage switching time based on the user movement information and/or the sleep stage to be entered;
the sleep stage switching time, i.e. the timing at which the user switches between different sleep stages, includes the timing at which the user switches from the preparation-to-sleep stage to the sound-sleep stage, and the timing at which the user switches from the sound-sleep stage to the wake-up stage.
In one embodiment, the sleep stage switching time is determined based on user movement information. Specifically, two implementations may be included: 1. determining a sleep stage switching time based on a user body movement frequency over a period of time. The body movement frequency of the user is different under different sleep stages. The larger the body movement frequency of the user is, the closer the user is to the awakening stage or the preparation to sleep stage, and the smaller the body movement frequency of the user is, the closer the user is to the sound sleep stage. Therefore, a frequency threshold value can be preset, when the body movement frequency of the user is greater than the frequency threshold value, the user is in an awakening stage or a sleep preparation stage, when the body movement frequency of the user is less than or equal to the frequency threshold value, the user is in a sleep stage, and the sleep stage switching time can be determined by judging the critical point of the body movement frequency change of the user and the front-back relation between the sleep stages. 2. And predicting when the sleep stage switching time is based on the change trend of the user movement times in a period of time.
In one embodiment, sleep stage switching times are determined based on the sleep stage to be entered. Specifically, sleep stage switching times corresponding to the respective sleep stages may be preset. For example, the sleep stage switching time from the preparation for sleep stage to the deep sleep stage is after a first duration (e.g., 30min) of entering the preparation for sleep stage, and after a second duration (e.g., 7h) of entering the preparation for sleep stage from the deep sleep stage to the wake stage; as another example, the sleep stage transition time from the preparation for sleep stage to the deep sleep stage is a preset first time (e.g., 0:30am), and the sleep stage transition time from the deep sleep stage to the wake stage is a preset second time (e.g., 7:00 am). The sleep stage switching time corresponding to each sleep stage can be set by the user, for example, if the user wants the air conditioner to perform a wake-up function similar to an alarm, the user can set the desired wake-up time as the sleep stage switching time from the sound sleep stage to the wake-up stage. The sleep stage switching time corresponding to each sleep stage can also be set by default by the system.
In another embodiment, the sleep stage switching time is determined based on user movement information and a sleep stage to be entered. Specifically, the sleep stage switching time judging modes corresponding to the sound sleep stage and the waking stage are different, when the sleep stage switching time is determined, the sleep stage switching time judging mode is determined based on the stage type (sound sleep stage or waking stage) of the sleep stage to be entered, and then the sleep stage switching time entering the sleep stage to be entered is judged according to the user movement information. Optionally, the sleep stage switching time for entering the deep sleep stage is determined based on the body movement frequency of the user within a period of time, and the sleep stage switching time for entering the wake-up stage is predicted based on the body movement frequency variation trend of the user within a period of time.
Step S40, adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are temperature parameters, light parameters, audio parameters and aroma parameters.
Specifically, when and how to adjust the environmental parameters is determined based on the sleep stage to be entered, which determines a specific adjustment operation of the environmental parameters, and the sleep stage switching time, which determines the time of the adjustment of the environmental parameters.
The requirements of different sleep stages on the environment are different, the regulation and control of the temperature environment and the light environment are beneficial to controlling the rhythm of falling asleep and waking up, and the comfortable sound environment and the aromatic environment can also relieve nerves and promote sleep. The comprehensive and all-round adjustment of the air conditioner to the sleeping environment of the user is realized by adjusting the indoor temperature environment, the light environment, the sound environment and the aromatic environment, so that the current environment is matched with the current sleeping stage of the user, the user is guided to sleep or the user is promoted to wake up, and the good sleep of the user can be ensured.
The air conditioner can enter the sleep mode at the time set by the user or the default time of the system, or execute the corresponding program of the sleep control method of the air conditioner when receiving the instruction sent by the user to enter the sleep mode, so as to realize the embodiment of the sleep control method of the air conditioner.
Optionally, as shown in fig. 2, when the sleep stage to be entered is an awake stage, step S30 includes:
step S300, obtaining the variation trend of the body movement times of the current day from the body movement information of the user;
the "current day" in this embodiment refers to a sleep cycle in which the air conditioner is currently controlled, for example, if the air conditioner enters a sleep mode from 0:00am at 8/month and 1 day of 2020 and 8:00am is actually awake at 8/month and 1 day of 2020, 0:00-8:00am at 8/month and 1 day of 2020 is a sleep cycle, and the time when the corresponding program of this embodiment is executed is 5:00am at 8/month and 1 day of 2020, then the "current day" in this embodiment refers to 0:00-8:00am at 8/month and 1 day of 2020. In a sleep cycle, the number of body movements is counted every preset time interval, for example, every 1 hour, the number of body movements within the 1 hour is counted. The user body movement information comprises recorded body movement times in each preset time period in a sleep cycle, and if the current time is 5:05 and the time for starting the sleep stage is 0:00, the body movement times in 5 time periods such as 0:00-00:59, 1:00-1:59, 2:00-2:59, 3:00-3:59, 4:00-4:59 and the like can be obtained. In this embodiment, the trend of the number of body movements may be represented as: the body movement times in a plurality of time periods in one sleep cycle, which are recorded in sequence in time sequence, in the above example, the body movement times in 5 time periods, such as 0:00-00:59, 1:00-1:59, 2:00-2:59, 3:00-3:59, 4:00-4:59, are respectively 0, 1, 2, and the variation trend of the body movement times can be represented as 0, 1, 2.
Optionally, when it is determined that the sleep stage to be entered is the wake-up stage, step S300 and the following steps are executed, or after it is determined that the sleep stage to be entered is a certain duration of the wake-up stage, for example, after 3 hours or 4 hours, steps S300 to S302 are executed, so as to expand the time span of data, increase the data samples, and improve the prediction accuracy. Optionally, it may also be determined when to predict the wake-up time according to historical data recorded before the current day, that is, when to perform steps S300-S302, specifically, an average value of actual wake-up times of preset days (e.g., 10 days, 20 days) before the current day may be calculated, and steps S300-S302 are performed before a certain duration of the average value, in an embodiment, the environmental parameter is adjusted before the preset duration of the sleep stage switching time, so that the "certain duration" before the certain duration of the average value is longer than the preset duration, and if the preset duration is 10 minutes, the certain duration is certainly longer than 10 minutes.
Step S301, obtaining a current prediction rule, wherein the current prediction rule is determined based on the change data of the number of body movements recorded every day before the current day and the actual wake-up time;
step S302, based on the variation trend of the times of physical movement on the current day and the current prediction rule, predicting the switching time from the current sleep stage to the wake-up stage.
The current prediction rule is determined based on historical data recorded in a sleep cycle prior to the current sleep cycle (i.e., the current day). Recording the change of the times of physical activity and the actual awakening time every day, establishing an association relation between the change of the times of physical activity and the awakening time based on the change of the times of physical activity and the actual awakening time every day, and obtaining a prediction rule which is the association relation between the change of the times of physical activity and the awakening time. And when the wake-up time is predicted on the same day, predicting the wake-up time on the same day according to the change of the movement times of the day and the incidence relation.
In an embodiment, in an initial state, the air conditioner has not collected user data, an initial prediction rule and statistical data are preset in the air conditioner, when a user uses the air conditioner for the first time to perform sleep control as shown in this embodiment, the air conditioner predicts a switching time from a current sleep stage to an awake stage (i.e., an awake time) based on the initial prediction rule and the statistical data to obtain a predicted awake time, detects an actual awake time, adjusts the prediction rule based on a difference between the predicted awake time and the actual awake time, adapts the adjusted prediction rule to a subsequent awake time prediction, repeats the step of adjusting the prediction rule based on the difference between the predicted awake time and the actual awake time after obtaining the daily predicted awake time and the actual awake time during daily use, and as the use time goes on, the relevance between the prediction rule and the user is strengthened, and the prediction of the wake-up time based on the prediction rule is more accurate.
In an optional embodiment, the current prediction rule is expressed as an AI model with a learning function, and the change data of the number of physical activity times, the actual wake-up time and the predicted wake-up time recorded every day before the day are used as a training sample and a test sample of the AI model to train the AI model, so that the parameter optimization of the AI model is realized. The method specifically comprises the steps that model parameters are reversely calibrated by utilizing a loss function of an AI model based on a difference value between daily actual wake-up time and predicted wake-up time, along with the increase of the service time of the air conditioner, the number of times of physical activity changes and data related to the wake-up time are more and more, the parameters of the AI model are more and more accurate, and the output result of the AI model is more and more accurate. The prediction of the time of day's wake-up includes: and inputting the variation trend of the times of physical activity of the day into a preset AI model, and taking the output result of the AI model as the predicted wake-up time. The AI model has no information related to the change of the times of physical activity and the awakening time in the initial state, the model parameters are initial parameters which are default by the system, and as the service time of the air conditioner increases, the data related to the change of the times of physical activity and the awakening time collected by the air conditioner is more and more, and the prediction result of the AI model is more accurate.
The method comprises the steps of determining the latest incidence relation between the change of the body movement times and the actual awakening time, namely a current prediction rule, based on the change of the body movement times and the actual awakening time data in the previous sleep cycle, predicting the awakening time of the sleep cycle by combining the change of the body movement times of the sleep cycle (the current day) based on the current prediction rule, establishing the incidence relation between the personal body movement times and the sleep stages of a user according to the unique personal sleep data and the body movement data of the user, predicting the awakening time, adjusting the environmental parameters in advance in the subsequent period, and guiding the sleep rhythm of the user.
Optionally, step S40 includes:
step S400, beginning to adjust the environmental parameters before the preset duration of the sleep stage switching time, or step S410, beginning to adjust the environmental parameters at the sleep stage switching time.
And starting to adjust the environmental parameters before the preset time of the sleep stage switching time, wherein the preset time can be set by a user or can be set by default by a system. The corresponding preset time lengths of different environmental parameters can be different.
By starting to adjust the environment parameters before the preset duration of the sleep stage switching time, the environment can be adjusted to the state corresponding to the sleep stage to be entered before the sleep stage to be entered is really entered, and then the user is guided to enter the sleep stage to be entered.
By starting to adjust the environmental parameters at the sleep stage switching time, the environmental parameters can be immediately adjusted after the user switches the sleep stage to be suitable for the current sleep stage.
Optionally, when the sleep stage to be entered is an awake stage, the step S400 includes:
before the preset duration of the sleep stage switching time, gradually reducing the room temperature to a first preset temperature, gradually increasing the light brightness to a first preset brightness, gradually increasing the audio volume to a first preset volume, and releasing a preset first type of fragrance.
Before entering the waking stage, the sleep stage switching time corresponding to the waking stage may be determined, and before the user actually enters the waking stage, the environment parameter may be adjusted to the state of promoting the user to wake so as to make the user wake more quickly. For adjusting the room temperature, the temperature is reduced according to the predicted awakening time to reach the comfortable temperature during awakening, because the body temperature of the human body is lower than the body temperature during activity when the human body sleeps, the indoor temperature is increased during the sleepy stage, and the body temperature is increased after the human body wakes up, the indoor temperature can be properly reduced, so that the indoor temperature is more comfortable. The higher the light brightness is, the easier the user wakes up, and by controlling the light brightness, the effect of promoting the waking of the human body can be realized. The sound volume of the surrounding environment has great influence on the sleep of the user, and when the sound volume is large, the effect of waking up the user can be achieved. The first type of fragrance is one that promotes human alertness, such as a jasmine fragrance. Alternatively, the rate of fragrance release may be varied gradually from slow to fast.
The parameter adjustment start times may be the same or different for the four environment types, such as room temperature, light brightness, audio volume, and fragrance.
And when the preset time length is the same as the preset time length, adjusting parameters of all environment types and releasing the preset first type of fragrance are started before the sleep stage switching time, wherein the preset time length can be set by a user or can be set by default by a system. For example, the sleep stage switching time is 7:00, the preset time duration corresponding to each environment type is 10 minutes, and the parameter adjustment starting time corresponding to each environment type is 6: 50.
When the environmental types are different, the corresponding advanced control duration, that is, the preset duration in this embodiment, may be set for the user, or may be set by default for the system. Optionally, the change speed of the aromatic environment and the room temperature is slower, the start time of the parameter adjustment may be earlier, the change speed of the light environment and the change speed of the sound environment are faster, and the start time of the parameter adjustment may be later, for example, the sleep stage switching time is 7:00, the preset time corresponding to the aromatic environment is 10 minutes, the preset time corresponding to the room temperature environment is 8 minutes, and the preset time corresponding to the light environment and the sound environment is 5 minutes, that is, the start times of the parameter adjustment of the aromatic environment, the room temperature environment, the light environment and the sound environment are 6:50, 6:52, 6:55 and 6:55, respectively.
And controlling the parameters corresponding to the environment types to gradually change to the target values at the parameter adjustment starting time corresponding to the environment types. The target value of the room temperature is a first preset temperature, the target value of the light intensity is a first preset brightness, and the target value of the audio volume is a first preset volume. The first preset temperature, the first preset brightness and the first preset volume may be set by a user or may be set by default by the system.
For the adjustment of the room temperature, the temperature may be decreased every fixed time, for example, every 2 minutes by 1 ℃, wherein the fixed time and the decreased temperature of the interval may be set by default or by a user. The adjustment speed of the room temperature may also be determined according to a preset time duration corresponding to the room temperature and a difference between the current actual room temperature and the first preset temperature, and specifically, a quotient obtained by dividing the preset time duration corresponding to the room temperature by the difference may be calculated to determine a room temperature reduction speed (i.e., an interval time and a temperature reduction amplitude of temperature reduction), for example, the preset time duration is 10 minutes, the difference is 3 ℃, and the room temperature reduction speed may be reduced by 1 ℃ every 3 minutes.
For the adjustment of the light brightness, a certain light brightness can be increased at intervals of a set time until the light brightness is increased to a first preset brightness, wherein the interval of the set time can be set by a default of a system or can be set by a user.
Optionally, the gradually increasing the light brightness to the first preset brightness includes: acquiring the current actual light brightness, and calculating the brightness difference between the current actual light brightness and the first preset brightness; calculating the ratio of a preset duration to the brightness difference value, and determining the interval time and the single adjustment amplitude of the adjusted brightness based on the ratio; and increasing the light brightness to a first preset brightness at the interval time and the single adjustment amplitude.
Alternatively, the setting time of the interval and the amplitude of the light brightness increased each time (i.e. the single adjustment amplitude) may be determined based on the preset time duration corresponding to the light brightness and the difference between the first preset brightness and the current actual brightness, specifically, the interval time of the light brightness increase and the amplitude of the light brightness increase may be determined by calculating and dividing the quotient of the preset time duration corresponding to the light brightness by the brightness difference, where for example, the preset time duration is 10 minutes, and the brightness difference is 20, and then 2 brightness increases every 1 minute.
The brightness adjustment amplitude and the interval time are determined based on the difference value between the preset time length, the current actual brightness and the first preset brightness, the ambient light brightness can be uniformly adjusted to the target value, the speed is high, the visual stimulation of the light brightness mutation to the user is avoided, the user is awakened, the light environment can be adjusted to the end before the user wakes up, and the waking promotion effect of the light to the user is ensured.
Alternatively, the brightness of the light can be controlled to change linearly according to time. Optionally, for the lighting device that possesses a plurality of LED lamps, the luminance of the single lamp of accessible increase promotes whole light luminance, also can increase the bright lamp figure and promote whole light luminance.
For the adjustment of the audio volume, a certain volume can be increased at intervals of set time until the volume is increased to the first preset volume, wherein the interval of set time can be set by a default of the system or can be set by a user.
Optionally, the gradually increasing the audio volume to a first preset volume comprises: acquiring the current actual audio volume, and calculating the volume difference between the current actual audio volume and the first preset volume; calculating the ratio of the preset duration to the volume difference, and determining the interval time and the adjustment amplitude of the volume adjustment based on the ratio; and increasing the audio volume to a first preset volume according to the interval time and the adjustment amplitude.
The setting time of the interval and the volume amplitude of each increase (i.e., the adjustment amplitude) may be determined based on a preset time corresponding to the audio volume and a difference between the first preset volume and the current actual volume, and specifically, the interval time of the volume increase and the amplitude of each increase (i.e., the adjustment amplitude) may be determined by calculating and dividing the preset time corresponding to the audio volume by the volume difference, for example, if the preset time is 10 minutes and the brightness difference is 20, 2 brightness increases every 1 minute.
The volume adjustment amplitude and the interval time are determined based on the difference between the preset time length, the current actual volume and the first preset volume, so that the ambient audio volume can be uniformly adjusted to a target value, the speed is high, the situation that the volume changes suddenly and is large enough to wake up a user is avoided, the situation that the ambient volume is adjusted to be finished before the user wakes up is guaranteed as much as possible, and the promotion effect of the volume on the waking of the user is ensured.
At the sleep stage switching time, the user may already be awake, and then the parameters of each environment type are adjusted, so that the control of each environment type is too delayed. Therefore, the starting time of each environment type control is set before the preset duration of the sleep stage switching time, so that the control of each environment type can be started when the user is about to wake up but not wake up, the waking of the human body is promoted, the waking rhythm of the human body is guided and promoted, and the hysteresis of the environment control is avoided.
Optionally, as shown in fig. 3, step S20 includes, before:
and step S10, when a sleep mode starting instruction is received, controlling the air conditioner to enter a sleep mode, setting the current sleep stage of the user as a sleep preparation stage, and adjusting the environmental parameters to be suitable for the sleep preparation stage.
The air conditioner has a sleep mode and a non-sleep mode, and in the sleep mode, the air conditioner realizes promotion of sleep quality of a user by controlling the sleep environment of the user. The air conditioner can enter the sleep mode after receiving the sleep mode starting instruction.
The sleep mode starting instruction can be sent by a user, specifically can be sent by the user through an air conditioner remote controller, can also be sent through a button on an air conditioner panel, and can also be sent by the user through intelligent equipment. Optionally, the user may also preset a sleep mode start time in the air conditioner, so that the internal timer of the air conditioner automatically counts time, and when the sleep mode start time is reached, the sleep mode start instruction is triggered. The air conditioner can also judge whether the user is in a sleep preparation stage or not by detecting the body movement information of the user, and if so, a sleep mode starting instruction is generated.
After the air conditioner enters the sleep mode, the air conditioner sets the current sleep stage as the preparation sleep stage and adjusts the environment to the state corresponding to the preparation sleep stage, so that the indoor environment is favorable for the user to sleep. Wherein, the air conditioner prestores the corresponding environmental parameters of the preparation falling asleep stage.
The air conditioner is controlled to switch between the sleep mode and the non-sleep mode by the sleep mode starting instruction, so that the air conditioner can be ensured to enter the sleep mode under the manual control or the timing control of a user, whether the air conditioner enters the sleep mode or not is controlled by the user, and the corresponding sleep control is carried out when the user needs.
Optionally, said adjusting environmental parameters to be appropriate for said preparation for sleep stage comprises:
reducing the room temperature to a second preset temperature, generating light with a preset wavelength, generating sound with a preset frequency band, and releasing a preset second type of fragrance.
When a human body falls asleep, the moderate low temperature can reduce the internal temperature of the human body, reduce the metabolism speed of the human body, promote the falling asleep of the human body and be beneficial to sleep. The second preset temperature may be a default setting of the system or may be set by the user.
The preset wavelength refers to a wavelength of light that can promote the secretion of sleep hormones from a human body. Optionally, the preset wavelength is 380-780 nm.
The preset frequency band is a frequency band with a calming effect on a human body, and the human body is promoted to sleep by generating sound of the preset frequency band. In addition, the volume of the ambient sound has a great influence on the sleep of the user, and in the sleeping process, if the volume of the ambient sound is great, a certain interference may be caused to the user, and the user may take a long time to successfully fall asleep, so that the volume of the ambient sound is limited to a lower volume value.
Optionally, the preset frequency band is at least one of 4096Hz, 4160Hz and 4225 Hz.
The preset second type of fragrance is fragrance with calming effect on human body, such as lavender fragrance, and can relieve nerve of human body and promote human body to sleep by releasing the preset second type of fragrance.
The body temperature of a human body is reduced by reducing the room temperature, and meanwhile, the light environment, the sound environment and the aromatic environment are adjusted, so that the surrounding environment becomes an environment suitable for sleeping, and a user is promoted to fall asleep as soon as possible.
Alternatively, as shown in fig. 4, when the sleep stage to be entered is a deep sleep stage, the step S30 includes:
step S310, obtaining the number of body movements in the latest preset time period from the body movement information of the user;
the number of body movements is counted at intervals of a preset time period, for example, at intervals of 15 minutes, which means that the number of body movements within the 15 minutes is counted.
And when the sleep stage to be entered is a sound sleep stage, counting the body movement times at intervals of a preset time period, and judging whether the air conditioner enters the sound sleep stage currently or not based on the body movement times obtained by current counting, namely based on the body movement times obtained in the latest preset time period.
Step S311, judging whether the number of body movements in the latest preset time period is less than a preset number;
the smaller the user's body movement frequency, the more asleep the user sleeps, the more likely it is in a deep sleep stage.
In this embodiment, when the number of body movements of the user in the last preset time period is less than the preset number, it is determined that the user has entered the deep sleep stage, otherwise, it is determined that the user has not entered the deep sleep stage.
In step S312, if yes, the current time is determined as the switching time from the preparation sleep stage to the sound sleep stage.
The current time refers to the current time, the current time is used as the switching time from the sleep preparation stage to the sound sleep stage, and the adjustment operation of the environmental parameters is carried out at the current time.
The time of the user entering the deep sleep stage is determined according to the number of times of body movement in the latest preset time period, the time of entering the deep sleep stage is judged according to the real-time body movement data, the accuracy of opportunity judgment can be ensured, and the ambient environment of the user during sleep is controlled in real time, so that the ambient environment is adjusted to be adaptive to the deep sleep stage.
Optionally, when the sleep stage to be entered is a deep sleep stage, the step S40 includes:
and before the sleep stage switching time or the preset duration of the sleep stage switching time, raising the room temperature to a third preset temperature, turning off a lamp, muting and stopping releasing fragrance.
At this time, the user is asleep and does not need to promote sleep nor waking any more, and therefore, the light is controlled to be turned off, muted and the release of fragrance is stopped.
The body temperature is higher during activity than during sleep, and is lower during the deep sleep stage, so that the indoor temperature is slightly raised, and the problem that the user cannot maintain the deep sleep state due to the low body temperature is avoided.
Alternatively, the third preset temperature may be 1-2 ° higher than the preset comfort temperature of the air conditioner, for example, the comfort temperature of a person while moving is 25-26 °, and the third preset temperature may be set to 28 °. The preset comfortable temperature refers to the comfortable temperature of people during activities in the current outdoor environment, the temperature of the people is lower than the temperature of the people during activities when the people are asleep, and the room temperature can be adjusted to be the proper temperature by increasing the indoor temperature by 1-2 degrees, so that the sleep of the user is facilitated. In addition, the more the air conditioner is heated, the more the indoor temperature is brought closer to the preset constant temperature, and the more the air conditioner is power-saving.
When the user is determined to enter the sound sleep stage, the surrounding environment is adjusted to be adaptive to the sound sleep stage, so that the user is kept in the sound sleep stage under the environment, the user is prevented from waking up or slightly sleeping due to inappropriate environment, and the user is ensured to have better sleep quality.
The control method can be executed after the air conditioner is started or after the sleep mode is started (the sleep mode can be started manually by a user or the sleep mode can be started by automatic recognition of the air conditioner).
After the air conditioner is started or after the sleep mode of the air conditioner is started, the user body movement information is detected through the microwave sensor, and the sleep stage of the user is judged according to the user body movement information, wherein the sleep stage of the user is divided into three types, namely, when the user falls asleep, and the user wakes up. The sleep-in stage can be obtained by analyzing the user movement information, and can also be manually started by the user (a sleep mode starting instruction can be used, and the sleep-in stage can be more intelligent).
When a user is in a stage of falling asleep at present, controlling the indoor temperature to be lowered, reducing the brightness of light, generating sound with a calming effect, and releasing fragrance with the calming effect; when the user is in a sound sleep stage, controlling the indoor temperature to rise, turning off the light, muting and stopping releasing fragrance; and predicting the awakening time, and controlling the indoor temperature to gradually decrease, gradually increase the light brightness, gradually increase the sound volume and start releasing the awakening fragrance at a preset time before the predicted awakening time.
The invention also provides a sleep control device of the air conditioner. Fig. 5 is a schematic diagram of an embodiment of the control device. As shown in fig. 5, the control device includes:
the acquisition unit is used for determining a sleep stage to be entered and acquiring the body movement information of the user;
a computing unit for determining sleep stage switching time based on the user movement information and/or the sleep stage to be entered;
and the control unit is used for adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter.
Optionally, when the sleep stage to be entered is an awake stage, the computing unit is further configured to obtain a body movement time variation trend of the current day from the user body movement information, and obtain a current prediction rule, where the current prediction rule is determined based on body movement time variation data recorded daily before the current day and actual awake time; and predicting the switching time from the current sleep stage to the wake-up stage based on the body movement frequency variation trend of the current day and the current prediction rule.
Optionally, the control unit is further configured to start adjusting the environmental parameter before a preset duration of the sleep stage switching time, or start adjusting the environmental parameter at the sleep stage switching time.
Optionally, when the sleep stage to be entered is an awake stage, the control unit is further configured to gradually decrease the room temperature to a first preset temperature, gradually increase the light brightness to a first preset brightness, gradually increase the audio volume to a first preset volume, and release a preset first type of fragrance before the preset duration of the sleep stage switching time.
Optionally, the control unit is further configured to, before the determining of the sleep stage to be entered and acquiring the body movement information of the user, perform: when a sleep mode starting instruction is received, the air conditioner is controlled to enter a sleep mode, the current sleep stage where the user is located is set as a sleep preparation stage, and the environmental parameters are adjusted to be adaptive to the sleep preparation stage.
Optionally, the control unit is further configured to reduce the room temperature to a second predetermined temperature, generate light with a predetermined wavelength, generate sound with a predetermined frequency band, and release a predetermined second type of fragrance.
Optionally, the preset frequency band is at least one of 4096Hz, 4160Hz and 4225 Hz.
Optionally, when the sleep stage to be entered is a sound sleep stage, the computing unit is further configured to obtain the number of body movements within a latest preset time period from the body movement information of the user; judging whether the number of body movements in the latest preset time period is less than a preset number; if yes, determining the current time as the switching time from the preparation sleep stage to the sound sleep stage.
Optionally, when the sleep stage to be entered is a sound sleep stage, the control unit is further configured to raise the room temperature to a third preset temperature, turn off the light, mute, and stop releasing the fragrance before the sleep stage switching time or the preset duration of the sleep stage switching time.
The invention also provides an air conditioner. Fig. 6 is a schematic diagram of an embodiment of the air conditioner, and as shown in fig. 6, the air conditioner includes a computer-readable storage medium 201 storing a computer program and a processor 202, and the computer program is read by the processor 202 and executed to implement the sleep control method of the air conditioner according to the above embodiments.
The air conditioner also comprises a body movement detection device, which can be an infrared sensor or a microwave sensor, the body movement detection device can be arranged on the air conditioner, can also be arranged independently of the air conditioner, and can be in wired or wireless connection communication with the air conditioner. After detecting the body movement of the user, the body movement detection device sends the body movement data of the user to the processor 202 of the air conditioner, the processor 202 of the air conditioner stores the body movement data of the user, and generates body movement information of the user after corresponding processing is carried out, and stores the body movement information of the user.
Optionally, the air conditioner further comprises a fragrance device for containing fragrance, and the fragrance device can be arranged inside the air conditioner and communicated with the air duct of the air conditioner, so that the fragrance in the fragrance device and other sleep-assisting substances are brought out of the air conditioner by the air in the air duct of the air conditioner and blown into the room.
The aromatic device may be provided with an opening part which is opened and closed, the opening part is communicated with an air duct of the air conditioner, the opening part of the aromatic device is opened when the aromatic device releases the aromatic, and the opening part of the aromatic device is closed when the aromatic device stops releasing the aromatic. The fragrance storage device is internally provided with various fragrances, and different fragrances can have different effects, such as jasmine fragrance for promoting the sobering of human bodies, lavender fragrance for calming the human bodies and the like.
Optionally, the air conditioner further comprises a speaker for generating a voice signal, and an equalizer for adjusting a frequency characteristic of the voice signal generated by the speaker, which may be used to emphasize a specific frequency band having a calming effect on a human body, such as 4096Hz, 4160Hz, 4225 Hz.
Optionally, the air conditioner further comprises a lighting device. Optionally, the light emitted by the lighting device has an optical wavelength capable of promoting the secretion of sleep hormones by a human body. Optionally, the lighting device is packaged by a purple (or near-purple) LED and RGB phosphors, and is used for simulating the wavelength of natural light. The selectable wavelength is 380-780 nm. Optionally, the lighting device includes a lamp panel, a purple (or near purple) LED and an RGB phosphor, wherein the purple (or near purple) LED and the RGB phosphor are a fixed combination package body, the package body is fixed on the lamp panel, the lamp panel is disposed at the bottom of the air conditioner, can be disposed outside the bottom casing of the air conditioner, and is fixedly connected or detachably connected with the bottom casing of the air conditioner, and the lamp panel can be used as a part of the bottom casing of the air conditioner, and the lamp panel constitutes the bottom casing of the whole air conditioner. Optionally, the lamp plate is light-transmitting structure, the light that the packaging body sent sees through the lamp plate and shines indoor aerial.
The present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is read and executed by a processor, the computer program implements the sleep control method of the air conditioner according to the above embodiments. Those skilled in the art will appreciate that all or part of the steps in the method according to the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in the computer readable storage medium.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (13)
1. A sleep control method of an air conditioner is characterized by comprising the following steps:
determining a sleep stage to be entered, and acquiring body movement information of a user;
determining sleep stage switching time based on the user body movement information and/or the sleep stage to be entered;
and adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter.
2. The sleep control method of an air conditioner according to claim 1, wherein when the sleep stage to be entered is an awake stage, the determining a sleep stage switching time based on the user movement information and/or the sleep stage to be entered comprises:
acquiring the body movement frequency variation trend of the current day from the user body movement information, and acquiring a current prediction rule, wherein the current prediction rule is determined based on the body movement frequency variation data recorded every day before the current day and the actual awakening time;
and predicting the switching time from the current sleep stage to the wake-up stage based on the body movement frequency variation trend of the current day and the current prediction rule.
3. The sleep control method of an air conditioner according to claim 1 or 2, wherein the adjusting of the environmental parameter according to the sleep stage to be entered and the sleep stage switching time includes:
and starting to adjust the environmental parameters before the preset duration of the sleep stage switching time, or starting to adjust the environmental parameters at the sleep stage switching time.
4. The sleep control method of an air conditioner according to claim 3, wherein when the sleep stage to be entered is an awake stage, the starting of adjusting the environmental parameter before the preset duration of the sleep stage switching time comprises:
before the preset duration of the sleep stage switching time, gradually reducing the room temperature to a first preset temperature, gradually increasing the light brightness to a first preset brightness, gradually increasing the audio volume to a first preset volume, and releasing a preset first type of fragrance.
5. The sleep control method of an air conditioner according to claim 1 or 2, before the determining the sleep stage to be entered and acquiring the user movement information, comprising:
when a sleep mode starting instruction is received, the air conditioner is controlled to enter a sleep mode, the current sleep stage where the user is located is set as a sleep preparation stage, and the environmental parameters are adjusted to be adaptive to the sleep preparation stage.
6. The sleep control method of an air conditioner according to claim 5, wherein the adjusting the environmental parameter to be suitable for the sleep preparation stage includes:
reducing the room temperature to a second preset temperature, generating light with a preset wavelength, generating sound with a preset frequency band, and releasing a preset second type of fragrance.
7. The sleep control method of an air conditioner according to claim 6, wherein the preset frequency band is at least one of 4096Hz, 4160Hz and 4225 Hz.
8. The sleep control method of an air conditioner according to claim 1 or 2, wherein when the sleep stage to be entered is a deep sleep stage, the determining a sleep stage switching time based on the user movement information and/or the sleep stage to be entered includes:
acquiring the number of body movements in the latest preset time period from the body movement information of the user;
judging whether the number of body movements in the latest preset time period is less than a preset number;
if yes, determining the current time as the switching time from the preparation sleep stage to the sound sleep stage.
9. The sleep control method of an air conditioner according to claim 1 or 2, wherein when the sleep stage to be entered is a deep sleep stage, the adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time includes:
and before the sleep stage switching time or the preset duration of the sleep stage switching time, raising the room temperature to a third preset temperature, turning off a lamp, muting and stopping releasing fragrance.
10. A sleep control apparatus of an air conditioner, comprising:
an acquisition unit (101) for determining a sleep stage to be entered and acquiring user movement information;
a calculation unit (102) for determining a sleep stage switching time based on the user movement information and/or the sleep stage to be entered;
a control unit (103) for adjusting environmental parameters according to the sleep stage to be entered and the sleep stage switching time, wherein the environmental parameters are a temperature parameter, a light parameter, an audio parameter and a fragrance parameter.
11. An air conditioner, characterized by comprising a computer-readable storage medium (201) storing a computer program and a processor (202), the computer program being read and executed by the processor (202) to implement the sleep control method of the air conditioner according to any one of claims 1 to 9.
12. The air conditioner according to claim 11, further comprising: lighting devices, sound devices and fragrance devices.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when read and executed by a processor, implements the sleep control method of an air conditioner according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010346570.1A CN113639379A (en) | 2020-04-27 | 2020-04-27 | Sleep control method and device of air conditioner, air conditioner and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010346570.1A CN113639379A (en) | 2020-04-27 | 2020-04-27 | Sleep control method and device of air conditioner, air conditioner and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113639379A true CN113639379A (en) | 2021-11-12 |
Family
ID=78415187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010346570.1A Withdrawn CN113639379A (en) | 2020-04-27 | 2020-04-27 | Sleep control method and device of air conditioner, air conditioner and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113639379A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114431837A (en) * | 2022-04-12 | 2022-05-06 | 深圳市心流科技有限公司 | Sleep state control method and device, sleep-assisting equipment and storage medium |
CN114738969A (en) * | 2022-03-30 | 2022-07-12 | 青岛海尔空调器有限总公司 | Air conditioner control method and device, computer readable storage medium and air conditioner |
-
2020
- 2020-04-27 CN CN202010346570.1A patent/CN113639379A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114738969A (en) * | 2022-03-30 | 2022-07-12 | 青岛海尔空调器有限总公司 | Air conditioner control method and device, computer readable storage medium and air conditioner |
CN114431837A (en) * | 2022-04-12 | 2022-05-06 | 深圳市心流科技有限公司 | Sleep state control method and device, sleep-assisting equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230213892A1 (en) | Clock Device with Automatic Simulation of Sunrise or Suset | |
CN109386940B (en) | Device and method for improving sleep comfort degree and air conditioner | |
US9459597B2 (en) | Method and apparatus to provide an improved sleep experience by selecting an optimal next sleep state for a user | |
CN113639379A (en) | Sleep control method and device of air conditioner, air conditioner and storage medium | |
WO2020217384A1 (en) | Environment control system and environment control method | |
CN105805898A (en) | Air conditioner and sound sleep mode control method thereof | |
KR101617697B1 (en) | Smart pillow having alarm function and alarm system using the same | |
CN103673194A (en) | Air conditioner and control method thereof | |
US11395902B2 (en) | System and method for waking a user up with a stimulus of varying intensity | |
CN106765971A (en) | Air-conditioner control method and device | |
CN113639380B (en) | Sleep control method and device of air conditioner, air conditioner and storage medium | |
CN114151912A (en) | Air conditioner control method and device and air conditioner | |
CN108969863A (en) | assisting sleep and progressive wake-up system | |
CN103673196A (en) | Air conditioner and control method thereof | |
CN103673197A (en) | Air conditioner and control method thereof | |
CN105068581A (en) | Indoor light rays adjusting system and adjusting method | |
CN113641114A (en) | Environment control method and system for intelligent getting-up scene | |
CN112190419A (en) | Sleep management method and device | |
CN113639378A (en) | Sleep control method and device of air conditioner, air conditioner and storage medium | |
CN113639376B (en) | Sleep control method and device of air conditioner, air conditioner and storage medium | |
CN113639377B (en) | Sleep control method and device for air conditioner, air conditioner and storage medium | |
CN112283884A (en) | Atmosphere lamp control method and device for air conditioner, air conditioner and storage medium | |
CN115105720A (en) | Sleep quality improving method and device, intelligent air conditioner, system and storage medium | |
CN111880423B (en) | Morning wakeup method and system | |
CN111459042B (en) | Control method and system of household appliance, television and storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211112 |