CN108836265B - Sleep state detection method, household appliance and computer readable storage medium - Google Patents
Sleep state detection method, household appliance and computer readable storage medium Download PDFInfo
- Publication number
- CN108836265B CN108836265B CN201810367638.7A CN201810367638A CN108836265B CN 108836265 B CN108836265 B CN 108836265B CN 201810367638 A CN201810367638 A CN 201810367638A CN 108836265 B CN108836265 B CN 108836265B
- Authority
- CN
- China
- Prior art keywords
- sleep state
- noise
- user
- user enters
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 92
- 238000000034 method Methods 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 8
- 206010062519 Poor quality sleep Diseases 0.000 claims description 2
- 230000035565 breathing frequency Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 3
- 230000003860 sleep quality Effects 0.000 description 2
- 206010041235 Snoring Diseases 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004461 rapid eye movement Effects 0.000 description 1
- 230000036391 respiratory frequency Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4809—Sleep detection, i.e. determining whether a subject is asleep or not
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Anesthesiology (AREA)
- Physics & Mathematics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Air Conditioning Control Device (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The invention discloses a sleep state detection method, which comprises the following steps: acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state or not; after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, wherein the noise is detected by a noise detection sensor; determining whether the user enters a sleep state according to the noise parameters of the noise; and after determining that the user enters the sleep state according to the noise parameters, confirming that the user enters the sleep state. The invention also discloses a household appliance and a computer readable storage medium. The invention combines the radar sensor and the noise detection sensor to detect the sleep state of the human body, thereby improving the accuracy of sleep state detection.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a sleep state detection method, an appliance, and a computer readable storage medium.
Background
In real life, if a user enters sleep, the sleep is often influenced by noise in an external environment, and the existing sleep detection is performed only through a single sensor, and because the single sensor judges whether the user performs the sleep state or not, misjudgment is easy to occur, so that the detection accuracy of the sleep state is lower.
Disclosure of Invention
The main object of the present invention is to provide a sleep state detection method, an electric appliance and a computer readable storage medium, aiming at improving the accuracy of sleep state detection.
In order to achieve the above object, the present invention provides a sleep state detection method, including:
acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state or not;
after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, wherein the noise is detected by a noise detection sensor;
determining whether the user enters a sleep state according to the noise parameters of the noise;
and after determining that the user enters the sleep state according to the noise parameters, confirming that the user enters the sleep state.
Optionally, the noise parameter includes a noise value and/or a noise change frequency, and the step of determining whether the user enters a sleep state according to the noise parameter of the noise includes:
comparing the noise value with a noise threshold corresponding to the sleep state and/or comparing the noise change frequency with a preset noise change frequency threshold;
determining whether the user enters a sleep state according to the comparison result;
and determining that the user enters a sleep state when the noise value is smaller than the noise threshold value and/or the noise change frequency is matched with the noise change frequency threshold value.
Optionally, after the step of determining whether the user enters a sleep state according to the comparison result, the method further includes:
re-executing the step of acquiring the user parameter detected by the radar sensor when the noise variation frequency does not match the noise variation frequency threshold value, so as to compare the re-acquired noise variation frequency with the noise variation frequency threshold value;
if the reacquired noise change frequency is detected to be not matched with the noise change frequency threshold value, the times of the mismatch of the noise change frequency and the noise change frequency threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
Optionally, after the step of determining whether the user enters a sleep state according to the comparison result, the method further includes:
if the noise value reaches the noise threshold, re-executing the step of acquiring the user parameter detected by the radar sensor so as to compare the re-acquired noise value with the noise threshold;
if the reacquired noise value is detected to reach the noise threshold value, the times that the noise value reaches the noise threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
Optionally, after the step of determining whether the user enters a sleep state according to the comparison result, the method further includes:
and storing the noise value association into the sleep state so as to look up the noise value in the sleep state later.
Optionally, after the step of determining whether the user enters a sleep state according to the comparison result, the method further includes:
if the user enters the sleep state, acquiring the current noise value of the sleep state;
if the current noise value of the sleep state is larger than the noise threshold value corresponding to the sleep state, adjusting the operation parameters of the household appliance;
and controlling the operation of the household appliance according to the adjusted operation parameters.
Optionally, after the step of controlling the operation of the home appliance according to the adjusted operation parameter, the method further includes:
re-acquiring the noise value of the sleep state;
and if the re-acquired noise value is greater than or equal to the noise value before the operation parameter adjustment, recovering the operation parameter of the household appliance.
In addition, in order to achieve the above object, the present invention also provides a sleep state detection method, including:
acquiring noise in a space where a user is located, which is detected by a noise detection sensor;
determining whether the user enters a sleep state according to the noise parameters of the noise;
after determining that the user enters a sleep state according to the noise parameters, acquiring user parameters detected by a radar sensor to judge whether the user enters the sleep state;
and after determining that the user enters the sleep state according to the user parameters, confirming that the user enters the sleep state.
In addition, in order to achieve the above object, the present invention also provides an electric home appliance including a memory, a processor, and a sleep state detection program stored on the memory and executable on the processor, the sleep state detection program implementing the steps of the sleep state detection method as described above when executed by the processor.
Optionally, the appliance comprises an air conditioner.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium storing a sleep state detection program which, when executed by a processor, implements the steps of the sleep state detection method as described above.
According to the technical scheme, the user parameters detected by the radar sensor are firstly obtained to judge whether the user enters the sleep state, after the user enters the sleep state according to the user parameters, the noise in the space where the user is located, detected by the noise detection sensor, is obtained to determine whether the user enters the sleep state according to the noise parameters of the noise, and after the user enters the sleep state according to the noise parameters, the user is confirmed to enter the sleep state.
Drawings
Fig. 1 is a schematic structural diagram of a home appliance in a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a sleep state detection method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a refinement flow of step S30 in fig. 2.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The solution of the embodiment of the invention mainly comprises the following steps: firstly acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state, after determining that the user enters the sleep state according to the user parameters, acquiring noise in a space where the user is located, detected by a noise detection sensor, so as to determine whether the user enters the sleep state according to the noise parameters of the noise, and after determining that the user enters the sleep state according to the noise parameters, confirming that the user enters the sleep state. The method solves the problem of low accuracy of the existing sleep state detection mode.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an appliance in a hardware running environment according to an embodiment of the present invention.
The household appliance of the embodiment of the invention can be an air conditioner, a humidifier, a refrigerator, a dehumidifier and other household appliances.
As shown in fig. 1, the home appliance may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), keys, and the user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface for connecting to a wireless network). The memory 1005 stores a sleep state detection program, and the memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the home appliance may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, and the like.
Those skilled in the art will appreciate that the appliance structure shown in fig. 1 is not limiting of the appliance and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network interface module, a user interface module, and a sleep state detection program may be included in a memory 1005, which is a computer-readable storage medium. The operating system is a program for managing and controlling household appliances and software resources and supports the operation of a network interface module, a user interface module, a sleep state detection program and other programs or software; the network interface module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the home appliance shown in fig. 1, the network interface 1004 is mainly used for connecting a cloud server or a remote control device, and performing data communication with the server or the remote control device; the home appliance invokes a sleep state detection program stored in the memory 1005 through the processor 1001 to implement the following steps:
acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state or not;
after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, wherein the noise is detected by a noise detection sensor;
determining whether the user enters a sleep state according to the noise parameters of the noise;
and after determining that the user enters the sleep state according to the noise parameters, confirming that the user enters the sleep state.
Further, the noise parameter includes a noise value and/or a noise change frequency, and the home appliance invokes, by the processor 1001, a sleep state detection program stored in the memory 1005 to implement the step of determining whether the user enters a sleep state according to the noise parameter of the noise:
comparing the noise value with a noise threshold corresponding to the sleep state and/or comparing the noise change frequency with a preset noise change frequency threshold;
determining whether the user enters a sleep state according to the comparison result;
and determining that the user enters a sleep state when the noise value is smaller than the noise threshold value and/or the noise change frequency is matched with the noise change frequency threshold value.
Further, after the step of determining whether the user enters the sleep state according to the comparison result, the home appliance invokes the sleep state detection program stored in the memory 1005 through the processor 1001, and further implements the following steps:
re-executing the step of acquiring the user parameter detected by the radar sensor when the noise variation frequency does not match the noise variation frequency threshold value, so as to compare the re-acquired noise variation frequency with the noise variation frequency threshold value;
if the reacquired noise change frequency is detected to be not matched with the noise change frequency threshold value, the times of the mismatch of the noise change frequency and the noise change frequency threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
Further, after the step of determining whether the user enters the sleep state according to the comparison result, the home appliance invokes the sleep state detection program stored in the memory 1005 through the processor 1001, and further implements the following steps:
if the noise value reaches the noise threshold, re-executing the step of acquiring the user parameter detected by the radar sensor so as to compare the re-acquired noise value with the noise threshold;
if the reacquired noise value is detected to reach the noise threshold value, the times that the noise value reaches the noise threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
Further, after the step of determining whether the user enters the sleep state according to the comparison result, the home appliance invokes the sleep state detection program stored in the memory 1005 through the processor 1001, and further implements the following steps:
and storing the noise value association into the sleep state so as to look up the noise value in the sleep state later.
Further, after the step of determining whether the user enters the sleep state according to the comparison result, the home appliance invokes the sleep state detection program stored in the memory 1005 through the processor 1001, and further implements the following steps:
if the user enters the sleep state, acquiring the current noise value of the sleep state;
if the current noise value of the sleep state is larger than the noise threshold value corresponding to the sleep state, adjusting the operation parameters of the household appliance;
and controlling the operation of the household appliance according to the adjusted operation parameters.
Further, after the step of controlling the operation of the home appliance according to the adjusted operation parameter, the home appliance invokes the sleep state detection program stored in the memory 1005 through the processor 1001, and further performs the following steps:
re-acquiring the noise value of the sleep state;
and if the re-acquired noise value is greater than or equal to the noise value before the operation parameter adjustment, recovering the operation parameter of the household appliance.
The home appliance proposed in the present embodiment invokes the sleep state detection program stored in the memory 1005 by the processor 1001, and executes the following steps: the method comprises the steps of acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state, acquiring noise in a space where the user is located detected by a noise detection sensor after the user enters the sleep state according to the user parameters, determining whether the user enters the sleep state according to the noise parameters of the noise, and confirming that the user enters the sleep state after the user enters the sleep state according to the noise parameters.
Based on the hardware structure of the household appliance, the embodiment of the sleep state detection method is provided.
Referring to fig. 2, fig. 2 is a flow chart illustrating a sleep state detection method according to a preferred embodiment of the invention.
In this embodiment, the sleep state detection method includes:
step S10, acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state or not;
step S20, after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, wherein the noise is detected by a noise detection sensor;
step S30, determining whether the user enters a sleep state according to the noise parameters of the noise;
step S40, after the user is determined to enter the sleep state according to the noise parameters, the user is confirmed to enter the sleep state.
In this embodiment, the sleep state detection method is applied to a home appliance, such as the home appliance shown in fig. 1. In the embodiment of the invention, the household appliance is preferably an air conditioner, and the places needing to be taken as examples of the household appliance later are all represented by the air conditioner. When the method for detecting the sleep state of the household appliance is applied to the household appliance, the radar sensor and the light detection sensor are sensors which are arranged in the household appliance.
In addition, when the household electrical appliance sleep state detection method is applied to the household electrical appliance, the radar sensor and the light detection sensor are both external sensors, a communication relation is established between the radar sensor and the household electrical appliance, the radar sensor sends detected user parameters to the household electrical appliance, when the household electrical appliance receives the user parameters sent by the radar sensor, whether a user enters a sleep state is judged, after the user enters the sleep state according to the user parameters, a detection instruction is sent to the light detection sensor, and the light detection sensor detects light of a space where the user is located.
In addition, when the home appliance sleep state detection method is applied to the home appliance, the radar sensor is an external sensor, the light detection sensor is an internal sensor, a communication relationship is established between the radar sensor and the home appliance, the radar sensor sends detected user parameters to the home appliance, when the home appliance receives the user parameters sent by the radar sensor, whether a user enters a sleep state is judged, and after the user enters the sleep state according to the user parameters, the internal light detection sensor is started to detect light of a space where the user is located.
In addition, when the home appliance sleep state detection method is applied to the home appliance, the radar sensor is an internal sensor, the light detection sensor is an external sensor, after the home appliance senses the user parameters through the internal radar sensor, whether the user enters the sleep state is judged, if the user enters the sleep state according to the user parameters, a detection instruction is sent to the light detection sensor, and the light of the space where the user is located, detected by the light detection sensor, is obtained.
The following describes in detail the specific steps for implementing sleep state detection in this embodiment:
step S10, acquiring user parameters detected by a radar sensor to judge whether a user enters a sleep state or not;
in this embodiment, in the case of starting the home appliance, the radar sensor detects the user parameter of whether the user goes to sleep, and acquires the user parameter detected by the radar sensor to determine whether the user goes to sleep, specifically, the step S10 includes:
step a, acquiring respiratory frequency and/or motion amplitude detected by a radar sensor;
and b, judging whether the user enters a sleep state according to the breathing frequency and/or the movement amplitude, wherein when the breathing frequency is lower than a preset frequency and/or the movement amplitude is lower than the preset amplitude, the user is determined to enter the sleep state.
Namely, firstly detecting the breathing frequency of a user or detecting the movement amplitude of the user or detecting the breathing frequency and the movement amplitude of the user through a radar sensor, judging whether the user enters a sleep state according to the breathing frequency and/or the movement amplitude of the user after detecting the breathing frequency and/or the movement amplitude of the user, specifically comparing the breathing frequency of the user with a preset frequency, and comparing the movement amplitude of the user with a preset amplitude, wherein specific numerical values of the preset frequency and the preset amplitude are not limited, setting according to the actual condition of the radar sensor, and determining that the user enters the sleep state when the breathing frequency is lower than the preset frequency and/or the movement amplitude is lower than the preset amplitude.
In this embodiment, the sleep states include a sleep-in state, a light sleep state, a deep sleep state, and a REM (rapid eyes movement, rapid eye movement), also known as out-of-phase sleep (Para-sleep), or also known as fast-phase sleep) state.
Step S20, after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, wherein the noise is detected by a noise detection sensor;
after determining that the user enters a sleep state according to the user parameters, detecting noise in a space where the user is located through a noise detection sensor, and acquiring noise parameters of the noise, wherein the noise parameters comprise a noise value and/or a noise change frequency in the embodiment.
Step S30, determining whether the user enters a sleep state according to the noise parameters of the noise;
in this embodiment, a noise parameter of noise is obtained, that is, a noise value of the noise is detected, and a noise change frequency of the noise is calculated, where the noise value is a value of the noise in a space where a user is located, a unit of the noise value is dB (decibel), the noise change frequency is a change of front-back noise, and after the noise value and the noise change frequency are obtained, whether the user enters a sleep state is determined according to the noise value and the noise change frequency. Specifically, referring to fig. 3, the step S30 includes:
step S31, comparing the noise value with a noise threshold corresponding to the sleep state, and/or comparing the noise change frequency with a preset noise change frequency threshold;
step S32, determining whether the user enters a sleep state according to the comparison result;
and determining that the user enters a sleep state when the noise value is smaller than the noise threshold value and/or the noise change frequency is matched with the noise change frequency threshold value.
That is, after the noise value and the noise change frequency are obtained, a preset noise change frequency threshold value is extracted first, the preset noise change frequency threshold value is a standard value for judging whether the user enters sleep by the noise detection sensor, the specific value of the noise change frequency threshold value is not limited, and the noise change frequency threshold value is set according to actual needs. If the noise change frequency is represented by P and the noise change frequency threshold is represented by P0, after the noise change frequency threshold P0 is extracted, the calculated noise change frequency P is compared with the extracted noise change frequency threshold P0, and if the noise change frequency is detected to be the same as the noise change frequency threshold, that is, p=p0, the noise value is matched with the noise change frequency threshold, so that the user can be determined to enter a sleep state.
In addition, after the user parameter detected by the radar sensor determines that the user enters a sleep state, the noise threshold of the sleep state is acquired, and in this embodiment, different sleep states are distinguished by the noise threshold, wherein the noise threshold is db0 when the sleep state is a sleep-in state, db1 when the sleep state is a shallow sleep state, db2 when the sleep state is a deep sleep state, and db3 when the sleep state is a fast-phase sleep state. Then, if the noise value is represented by db, comparing the noise value db with the noise threshold corresponding to the sleep state, and if the noise value is found to be smaller than the noise threshold, the user enters the sleep state. For example, the noise value db is compared with the noise threshold db2 in the deep sleep state, and if the noise value db is found to be smaller than the noise threshold db2, it is indicated that the human user enters the deep sleep state.
In this embodiment, the noise threshold may be understood as snoring of a person, which means that the person falls asleep, or regular noise in a room, which may be understood as low noise of an air conditioner fan or noise of an external compressor.
According to the technical scheme, the user parameters detected by the radar sensor are acquired to judge whether the user enters the sleep state, after the user enters the sleep state according to the user parameters, the noise in the space where the user is located, detected by the noise detection sensor, is acquired to determine whether the user enters the sleep state according to the noise parameters of the noise, and after the user enters the sleep state according to the noise parameters, the user is confirmed to enter the sleep state.
Further, a second embodiment of the sleep state detection method of the present invention is proposed based on the first embodiment.
The second embodiment of the sleep state detection method differs from the first embodiment of the sleep state detection method in that after the step S32, the method further includes:
re-executing the step of step S10 when the noise variation frequency does not match the noise variation frequency threshold value, so as to compare the re-acquired noise variation frequency with the noise variation frequency threshold value;
if the reacquired noise change frequency is detected to be not matched with the noise change frequency threshold value, the times of the mismatch of the noise change frequency and the noise change frequency threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of the step S10 until the accumulated times reach the preset times, and determining that the user enters a sleep state.
In this embodiment, after comparing the noise change frequency with a preset noise change frequency threshold, if it is detected that the noise change frequency is not matched with the noise change frequency threshold, that is, P is equal to P0, it is indicated that the previous radar sensor does not detect that the user enters the sleep state although the user enters the sleep state, in order to ensure the accuracy of the sleep state detection, the user parameter detected by the radar sensor is acquired again, that is, whether the user enters the sleep state is detected again by the radar sensor, if the user parameter detected by the radar sensor determines that the user enters the sleep state, the noise in the space where the user is located detected by the noise detection sensor is acquired again, and finally judging whether the user enters a sleep state according to the noise parameters, namely comparing the noise change frequency with a preset noise change frequency threshold value, if the reacquired noise change frequency is detected to be not matched with the noise change frequency threshold value, accumulating the times of the mismatch of the noise change frequency and the noise change frequency threshold value, if the accumulated times are smaller than the preset times, returning to the step S10, and re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, wherein the specific value of the preset times is set according to actual needs, such as 3 times. It should be appreciated that when the accumulated number reaches the preset number, it may be determined that the user is in a sleep state at this time, since the radar sensor detects that the user is asleep each time.
In this embodiment, when the noise change frequency does not match with the noise change frequency threshold, the detection and judgment are performed again by the radar sensor, so as to reconfirm whether the user enters the sleep state, and the final detection result is confirmed by multiple detection, so that the accuracy of sleep state detection is improved.
Further, a third embodiment of the sleep state detection method of the present invention is proposed based on the first or second embodiment.
The third embodiment of the sleep state detection method differs from the first or second embodiment of the sleep state detection method in that after the step S32, the method further includes:
if the noise value reaches the noise threshold, re-executing the step of step S10 to compare the re-acquired noise value with the noise threshold;
if the reacquired noise value is detected to reach the noise threshold value, the times that the noise value reaches the noise threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of the step S10 until the accumulated times reach the preset times, and determining that the user enters a sleep state.
In this embodiment, after comparing the noise value with the noise threshold of the sleep state, if it is detected that db is greater than or equal to dbx (db 0, db1, db2 or db 3), which is the noise threshold, indicating that the previous radar sensor detects that the user enters the sleep state, but the noise detection sensor does not detect that the user enters the sleep state, in order to ensure the accuracy of the sleep state detection, acquiring the user parameter detected by the radar sensor again, that is, detecting whether the user enters the sleep again by the radar sensor, if the user parameter detected by the radar sensor determines that the user enters the sleep state, acquiring the noise in the space where the light detection sensor detects the user to acquire the noise parameter of the noise, finally judging whether the user is in the sleep state according to the noise parameter, that is, comparing the noise value with the noise threshold of the sleep state again, if it is detected that the reacquired noise value reaches the noise threshold, accumulating the number of times of the noise threshold, if the accumulated number of times is less than the preset number of times, returning to step S10 to acquire the user parameter detected by the radar sensor again, and performing the preset number of times is set to the actual number of times, wherein the preset number of times is set up to be the actual number of times, for example, according to 3. It should be appreciated that when the accumulated number reaches the preset number, it is determined that the user enters the sleep state at this time, since the radar sensor detects that the human body falls asleep each time.
In this embodiment, when the noise value reaches the noise threshold, the detection and judgment are performed again by the radar sensor, so as to reconfirm whether the user falls asleep, and the final detection result is confirmed by multiple detection, so that the accuracy of sleep state detection is improved.
Further, a fourth embodiment of the sleep state detection method of the present invention is proposed based on the first to third embodiments.
The fourth embodiment of the sleep state detection method differs from the first to third embodiments of the sleep state detection method in that after the step S32, the method further includes:
and step A, storing the noise value association into the sleep state so as to look up the noise value in the sleep state later.
In this embodiment, after determining whether the user enters a sleep state, the calculated noise value is associated and saved in the sleep state, specifically, the noise value may be saved according to a preset time period T, so that when the user views the history data through the app or the display screen, the user may view the noise values in different sleep states.
In this embodiment, the noise value in the sleep state is recorded and stored, so that the noise value in the sleep state is checked later, and the flexibility of sleep state detection is improved.
Further, a fifth embodiment of the sleep state detection method of the present invention is proposed based on the first to fourth embodiments.
The fifth embodiment of the sleep state detection method differs from the first to fourth embodiments of the sleep state detection method in that after the step S32, the method further includes:
step B, if the user enters the sleep state, acquiring the current noise value of the sleep state;
step C, if the current noise value of the sleep state is larger than the noise threshold corresponding to the sleep state, adjusting the operation parameters of the household appliance;
and D, controlling the operation of the household appliance according to the adjusted operation parameters.
In this embodiment, after the home appliance determines that the user enters the sleep state, the current noise value of the sleep state is obtained, the noise threshold corresponding to the sleep state is determined, then the obtained noise value is compared with the noise threshold corresponding to the sleep state, if the noise value is detected to be greater than the noise threshold, it is indicated that the current noise value of the sleep state is greater than the theoretical noise threshold of the sleep state, and in order not to affect the sleep quality of the user, the operation parameters of the home appliance are optionally adjusted.
In this embodiment, after determining the sleep state of the user, if the current noise value of the sleep state is greater than the noise threshold corresponding to the sleep state, the factor causing noise in the air conditioner is adjusted to reduce the noise value of the sleep state, thereby ensuring the sleep quality.
Further, a sixth embodiment of the sleep state detection method of the present invention is proposed based on the fifth embodiment.
The sixth embodiment of the sleep state detection method is different from the fifth embodiment of the sleep state detection method in that, after the step D, the method further includes:
e, re-acquiring the noise value of the sleep state;
and F, if the re-acquired noise value is greater than or equal to the noise value before the operation parameter adjustment, recovering the operation parameter of the household appliance.
In this embodiment, after the operation parameters of the home appliance are adjusted and the operation of the home appliance is controlled according to the adjusted operation parameters, the home appliance reacquires the noise value of the sleep state, so as to compare the reacquired noise value with the noise value before the operation parameters are adjusted, if the reacquired noise value is smaller than the noise value before the operation parameters are adjusted, the home appliance can continue to operate according to the adjusted operation parameters, for example, the air conditioner operates according to the adjusted operation wind speed, if the reacquired noise value is greater than or equal to the noise value before the operation parameters are adjusted, which means that the noise is not reduced, and if the noise in the space where the user is located is not the noise generated by the operation of the home appliance, the operation parameters of the home appliance can be restored, so that the home appliance can operate according to the operation parameters before the restoration.
In this embodiment, after the operation parameters of the home appliance are adjusted according to the noise value, if the noise value is not reduced, the operation parameters of the home appliance are restored, so that the control of the home appliance is flexible and intelligent.
The invention further provides a sleep state detection method.
In this embodiment, the sleep state detection method includes:
step G, acquiring noise in the space where the user is located, which is detected by a noise detection sensor;
step H, determining whether the user enters a sleep state according to the noise parameters of the noise;
step I, after determining that the user enters a sleep state according to the noise parameters, acquiring user parameters detected by a radar sensor to judge whether the user enters the sleep state;
and step J, after determining that the user enters the sleep state according to the user parameters, confirming that the user enters the sleep state.
In this embodiment, the specific operation process of acquiring the noise in the space where the user is located detected by the noise detection sensor, and then determining whether the user enters the sleep state according to the noise parameter of the noise, where determining whether the user enters the sleep state according to the noise parameter of the noise is described in detail in the above embodiments, which is not repeated here. After determining that the user enters the sleep state according to the noise parameter, the user parameter detected by the radar sensor is acquired to determine whether the user enters the sleep state, and a specific operation process of determining whether the user enters the sleep state according to the user parameter is also described in detail in the above embodiments, which is not repeated herein. After determining that the user enters the sleep state according to the user parameters, the user can be confirmed to enter the sleep state.
According to the technical scheme provided by the embodiment, the noise in the space where the user is located and detected by the noise detection sensor is obtained, so that whether the user enters a sleep state or not is determined according to the noise parameter of the noise, after the user enters the sleep state according to the noise parameter, the user parameter detected by the radar sensor is obtained so as to judge whether the user enters the sleep state, and after the user enters the sleep state according to the user parameter, the user can be confirmed to enter the sleep state.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a sleep state detection program, and the sleep state detection program realizes the following sleep state detection method steps when being executed by a processor.
The specific embodiment of the computer readable storage medium is consistent with the operation mode of the sleep state detection method above, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings, or by direct or indirect application to other relevant art(s).
Claims (8)
1. A sleep state detection method, applied to a home appliance, the sleep state detection method comprising:
the radar sensor establishes a communication relation with the household appliance, and the radar sensor sends the detected user parameters to the household appliance so as to judge whether a user enters a sleep state or not when the household appliance receives the user parameters sent by the radar sensor, wherein the sleep state comprises a sleep state, a light sleep state, a deep sleep state and a fast-phase sleep state;
after determining that a user enters a sleep state according to the user parameters, acquiring noise in a space where the user is located, which is detected by a noise detection sensor, and acquiring a noise threshold corresponding to the sleep state;
comparing the noise value of the noise with a noise threshold corresponding to the sleep state;
comparing the noise change frequency of the noise with a preset noise change frequency threshold;
determining whether the user enters the sleep state according to the comparison result;
after determining that the user enters the sleep state according to the noise value and the noise change frequency, confirming that the user enters sleep;
if the user enters the sleep state, acquiring a current noise value of the sleep state;
if the current noise value of the sleep state is larger than the noise threshold value corresponding to the sleep state, adjusting the operation parameters of the household appliance;
controlling the operation of the household appliance according to the adjusted operation parameters;
re-acquiring the noise value of the sleep state; and
and if the re-acquired noise value is greater than or equal to the noise value before the operation parameter adjustment, recovering the operation parameter of the household appliance.
2. The sleep state detection method as claimed in claim 1, wherein after the step of determining whether the user enters a sleep state according to the comparison result, the method further comprises:
re-performing the step of acquiring the user parameter detected by the radar sensor when the noise variation frequency does not match the noise variation frequency threshold, so as to compare the re-acquired noise variation frequency with the noise variation frequency threshold;
if the reacquired noise change frequency is detected to be not matched with the noise change frequency threshold value, the times of the mismatch of the noise change frequency and the noise change frequency threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
3. The sleep state detection method as claimed in claim 1, wherein after the step of determining whether the user enters a sleep state according to the comparison result, the method further comprises:
if the noise value reaches the noise threshold, re-executing the step of acquiring the user parameter detected by the radar sensor so as to compare the re-acquired noise value with the noise threshold;
if the reacquired noise value is detected to reach the noise threshold value, the times that the noise value reaches the noise threshold value are accumulated;
and if the accumulated times are smaller than the preset times, re-executing the step of acquiring the user parameters detected by the radar sensor until the accumulated times reach the preset times, and determining that the user enters a sleep state.
4. The sleep state detection method as claimed in claim 1, wherein after the step of determining whether the user enters a sleep state according to the comparison result, the method further comprises:
and storing the noise value association into the sleep state so as to look up the noise value in the sleep state later.
5. The sleep state detection method as claimed in claim 1, wherein after the step of controlling the operation of the home appliance according to the adjusted operation parameter, the method further comprises:
re-acquiring the noise value of the sleep state;
and if the re-acquired noise value is greater than or equal to the noise value before the operation parameter adjustment, recovering the operation parameter of the household appliance.
6. An appliance comprising a memory, a processor and a sleep state detection program stored on the memory and executable on the processor, the sleep state detection program when executed by the processor implementing the steps of the sleep state detection method of any one of claims 1-5.
7. The appliance of claim 6, wherein the appliance comprises an air conditioner.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a sleep state detection program which, when executed by a processor, implements the steps of the sleep state detection method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810367638.7A CN108836265B (en) | 2018-04-23 | 2018-04-23 | Sleep state detection method, household appliance and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810367638.7A CN108836265B (en) | 2018-04-23 | 2018-04-23 | Sleep state detection method, household appliance and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108836265A CN108836265A (en) | 2018-11-20 |
CN108836265B true CN108836265B (en) | 2024-03-08 |
Family
ID=64212130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810367638.7A Active CN108836265B (en) | 2018-04-23 | 2018-04-23 | Sleep state detection method, household appliance and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108836265B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110411035A (en) * | 2019-08-05 | 2019-11-05 | 珠海格力电器股份有限公司 | Method and equipment for adjusting running noise of electric appliance and electric appliance system |
CN111459044A (en) * | 2020-04-30 | 2020-07-28 | 宋彦震 | Method for adaptively adjusting working state of smart home product and reducing noise interference based on deep sleep |
CN112716449B (en) * | 2020-12-23 | 2024-09-03 | 西安皑鸥软件科技有限公司 | Method and system for monitoring human sleep state based on mobile equipment |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103228203A (en) * | 2010-12-03 | 2013-07-31 | 皇家飞利浦电子股份有限公司 | Sleep disturbance monitoring apparatus |
CN103717125A (en) * | 2011-05-18 | 2014-04-09 | V视股份有限公司 | System and method for determining sleep and sleep stages of a person |
CN104566793A (en) * | 2014-12-17 | 2015-04-29 | 美的集团股份有限公司 | Air conditioner and control method and system for air conditioner |
CN104676854A (en) * | 2015-02-15 | 2015-06-03 | 青岛海尔空调器有限总公司 | Air conditioner sleep operation control method |
CN104764137A (en) * | 2015-02-15 | 2015-07-08 | 青岛海尔空调器有限总公司 | Sleeping operation control method for air conditioner |
CN104955385A (en) * | 2013-01-29 | 2015-09-30 | 皇家飞利浦有限公司 | Sensory stimuli to increase accuracy of sleep staging |
CN105249927A (en) * | 2015-10-30 | 2016-01-20 | 兔顽智能科技(上海)有限公司 | Snoring sound identification method and anti-snoring device |
CN105877327A (en) * | 2014-12-05 | 2016-08-24 | 贵州省遵义市子鱼印象文化传媒有限责任公司 | Novel snoring stopping pillow |
CN106037661A (en) * | 2016-06-30 | 2016-10-26 | 成都天奥电子股份有限公司 | Sleep monitoring watch and implementation method thereof |
CN106510663A (en) * | 2016-11-28 | 2017-03-22 | 沃康(上海)家具有限公司 | Sleep monitoring method based on internet of things |
WO2017069000A1 (en) * | 2015-10-19 | 2017-04-27 | ヤマハ株式会社 | Sound signal control device, sound signal control method, and recording medium |
CN106642547A (en) * | 2016-11-29 | 2017-05-10 | 美的集团武汉制冷设备有限公司 | Controlling method of air conditioner and air conditioner |
CN106679093A (en) * | 2016-12-30 | 2017-05-17 | 广东美的制冷设备有限公司 | Air conditioner sleep control method as well as device and air conditioner |
CN107894070A (en) * | 2017-11-17 | 2018-04-10 | 盛立兴 | A kind of air-conditioner sleep mode method to set up and air conditioner |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150342519A1 (en) * | 2014-05-28 | 2015-12-03 | Huneo, LLC | System and method for diagnosing medical condition |
CN104460593B (en) * | 2014-10-29 | 2017-10-10 | 小米科技有限责任公司 | mode switching method and device |
JP6439860B2 (en) * | 2015-03-30 | 2018-12-19 | 富士通株式会社 | Air conditioner, sensor unit, and air conditioning system |
-
2018
- 2018-04-23 CN CN201810367638.7A patent/CN108836265B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103228203A (en) * | 2010-12-03 | 2013-07-31 | 皇家飞利浦电子股份有限公司 | Sleep disturbance monitoring apparatus |
CN103717125A (en) * | 2011-05-18 | 2014-04-09 | V视股份有限公司 | System and method for determining sleep and sleep stages of a person |
CN104955385A (en) * | 2013-01-29 | 2015-09-30 | 皇家飞利浦有限公司 | Sensory stimuli to increase accuracy of sleep staging |
CN105877327A (en) * | 2014-12-05 | 2016-08-24 | 贵州省遵义市子鱼印象文化传媒有限责任公司 | Novel snoring stopping pillow |
CN104566793A (en) * | 2014-12-17 | 2015-04-29 | 美的集团股份有限公司 | Air conditioner and control method and system for air conditioner |
CN104676854A (en) * | 2015-02-15 | 2015-06-03 | 青岛海尔空调器有限总公司 | Air conditioner sleep operation control method |
CN104764137A (en) * | 2015-02-15 | 2015-07-08 | 青岛海尔空调器有限总公司 | Sleeping operation control method for air conditioner |
WO2017069000A1 (en) * | 2015-10-19 | 2017-04-27 | ヤマハ株式会社 | Sound signal control device, sound signal control method, and recording medium |
CN105249927A (en) * | 2015-10-30 | 2016-01-20 | 兔顽智能科技(上海)有限公司 | Snoring sound identification method and anti-snoring device |
CN106037661A (en) * | 2016-06-30 | 2016-10-26 | 成都天奥电子股份有限公司 | Sleep monitoring watch and implementation method thereof |
CN106510663A (en) * | 2016-11-28 | 2017-03-22 | 沃康(上海)家具有限公司 | Sleep monitoring method based on internet of things |
CN106642547A (en) * | 2016-11-29 | 2017-05-10 | 美的集团武汉制冷设备有限公司 | Controlling method of air conditioner and air conditioner |
CN106679093A (en) * | 2016-12-30 | 2017-05-17 | 广东美的制冷设备有限公司 | Air conditioner sleep control method as well as device and air conditioner |
CN107894070A (en) * | 2017-11-17 | 2018-04-10 | 盛立兴 | A kind of air-conditioner sleep mode method to set up and air conditioner |
Also Published As
Publication number | Publication date |
---|---|
CN108836265A (en) | 2018-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108571804B (en) | Air conditioner, parameter adjusting method and device thereof and readable storage medium | |
CN107763812B (en) | Air conditioner control method, air conditioner and computer readable storage medium | |
CN108758996B (en) | Air conditioner, control method and device thereof and readable storage medium | |
CN109974235B (en) | Method and device for controlling household appliance and household appliance | |
CN108836265B (en) | Sleep state detection method, household appliance and computer readable storage medium | |
CN105185380B (en) | Information processing method and electronic equipment | |
CN104394614B (en) | Indicator lamp brightness adjusting method and device | |
CN106705385A (en) | Control method, control device and control system of air conditioner | |
CN108489036B (en) | Air conditioner, control method thereof, and computer-readable storage medium | |
CN108489028B (en) | Air conditioner control method, air conditioner and storage medium | |
US9142121B2 (en) | Information processing method and user equipment | |
CN107631419A (en) | Air conditioner operating parameter method of adjustment, air conditioner and computer-readable recording medium | |
CN104898600B (en) | A kind of information-pushing method and device based on intelligent domestic system | |
CN112923528B (en) | Control method of fresh air system, fresh air system and computer readable storage medium | |
CN110173858A (en) | Air conditioner and its automatically cleaning control method and computer readable storage medium | |
CN110553365A (en) | control method of air conditioner, air conditioner and storage medium | |
CN107726539B (en) | Terminal operation parameter adjusting method and device and computer readable storage medium | |
CN108498077B (en) | Sleep state detection method, home appliance, and computer-readable storage medium | |
CN106371328B (en) | Control method and device of intelligent household appliance | |
CN107422703B (en) | Equipment control method and device | |
CN112443948A (en) | Control method and device of multi-split air conditioner and computer readable storage medium | |
CN107623718B (en) | A kind of control method and system of household appliance | |
CN113357771A (en) | Air conditioner control method based on movable wearable device and movable wearable device | |
CN107906669B (en) | Control method and control device of air conditioner and storage medium | |
CN114110998A (en) | Operation frequency control method of air conditioner, air conditioner 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |