Method and device for controlling smart devices in sleep state

By collecting user body parameters through wearable devices, judging sleep status and automatically controlling smart devices, the problem of smart devices being unable to be intelligently controlled when the user is sleeping is solved, and the comfort and convenience of the sleeping environment are improved.

CN116243612BActive Publication Date: 2025-10-03YUNMI HULIAN TECH (GUANGDONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111490233.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2025-10-03
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

Existing smart device control methods require human intervention and cannot achieve intelligent control when the user enters a sleep state, resulting in an inability to provide the user with a comfortable sleeping environment.

Method used

The wearable device collects the user's body parameters, determines the user's sleep state and state level, determines the smart device to be controlled, and generates corresponding control parameters to automatically control the operation of the smart device.

Benefits of technology

It improves the intelligence and convenience of smart device control, enhances the comfort of the user's sleeping environment, and reduces safety hazards and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116243612B_ABST
    Figure CN116243612B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and apparatus for controlling smart devices in a sleep state, comprising: collecting the current body parameters of the target user based on the wearable device of the target user; determining whether the target user is in a sleep state based on the body parameters; if so, determining the sleep state level of the target user based on the body parameters; determining at least one smart device to be controlled in a target area corresponding to the target user; generating control parameters corresponding to each smart device based on the sleep state level; and controlling each smart device to perform a matching operation based on the generated control parameters corresponding to each smart device. It can be seen that the implementation of the present invention can realize automatic control of smart devices based on the wearable device according to the user's sleep state level when the user enters a sleep state where instructions cannot be issued, thereby improving the intelligence and convenience of smart device control, thereby improving the comfort level of the user's sleeping environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent device control, and in particular to a method and apparatus for controlling an intelligent device in a sleep state. Background Art

[0002] With the development of social economy, people are increasingly pursuing the comfort and convenience of their homes. Smart device products, such as smart home products, are becoming more and more popular in people's daily lives and playing an increasingly important role due to their advantages of saving time and effort, convenience and speed.

[0003] In real life, existing smart device control methods mainly use voice and gesture commands issued by users or instructions triggered by users on portable networked devices as control instructions for the smart device control system, and then control the working status of the smart device products according to the control instructions. However, practice has found that existing smart device control methods still require human participation, that is, users are required to consciously issue corresponding control instructions. Once the user enters a sleep state where instructions cannot be issued, the smart device product will maintain its current working state and cannot achieve true intelligence, resulting in the possibility of not being able to provide users with a more comfortable sleeping environment. It can be seen that how to improve the intelligence of smart device control and thus improve the comfort level of the user's sleeping environment is particularly important. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method and apparatus for controlling a smart device in a sleeping state, which can improve the intelligence of the smart device control and thereby improve the comfort level of the user's sleeping environment.

[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a method for controlling a smart device in a sleep state, the method comprising:

[0006] Based on the wearable device of the target user, collecting the current physical parameters of the target user;

[0007] determining, based on the body parameters, whether the target user is in a sleeping state;

[0008] When the target user is in the sleeping state, determining the sleeping state level of the target user according to the body parameters;

[0009] Determining at least one smart device to be controlled in a target area corresponding to the target user;

[0010] Generating control parameters corresponding to each of the smart devices based on the sleep state level;

[0011] Based on the generated control parameters corresponding to each of the smart devices, each of the smart devices is controlled to perform a matching operation.

[0012] As an optional embodiment, in the first aspect of the present invention, the wearable device includes smart shoes;

[0013] Before collecting the current physical parameters of the target user based on the wearable device of the target user, the method further includes:

[0014] Detecting whether the wearable device is in a target wearing state, and when the wearable device is in the target wearing state, triggering execution of the operation of collecting the current physical parameters of the target user based on the wearable device of the target user;

[0015] Furthermore, detecting whether the wearable device is in a target wearing state includes:

[0016] detecting whether a first shoe and a second shoe included in the smart shoe are both in a worn state;

[0017] When the detection result is yes, it is determined whether the user parameters of the wearer corresponding to the first shoe collected by the first shoe and the user parameters of the wearer corresponding to the second shoe collected by the second shoe match, wherein the user parameters are parameters that can determine the identity of the wearer; when the judgment result is yes, it is determined that the smart shoe is in the target wearing state, and the wearer corresponding to the first shoe and the wearer corresponding to the second shoe are the same user;

[0018] When it is detected that there is a target shoe in the wearing state between the first shoe and the second shoe, it is determined whether the body parameter collection type of the target shoe includes a predetermined target parameter type. When it is determined that the body parameter collection type of the target shoe includes the target parameter type, it is determined that the smart shoe is in the target wearing state.

[0019] As an optional implementation manner, in the first aspect of the present invention, collecting the current physical parameters of the target user based on the wearable device of the target user includes:

[0020] When a first shoe and a second shoe included in the smart shoe are both in a wearing state, collecting a current first body parameter of a target user based on the first shoe, where the target user is a user wearing the first shoe or the second shoe;

[0021] Based on the second shoe, collecting a current second body parameter of the target user;

[0022] Determine the current identity parameter of the target user according to the first body parameter and the second body parameter.

[0023] As an optional implementation manner, in the first aspect of the present invention, determining at least one smart device to be controlled in the target area corresponding to the target user includes:

[0024] determining, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors;

[0025] Determining a smart device associated with each sleep influencing factor in the sleep influencing factor set, and determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as a smart device to be controlled in a target area corresponding to the target user;

[0026] Furthermore, when the set of sleep influencing factors includes at least one positive influencing factor and at least one negative influencing factor, before determining the smart device associated with each sleep influencing factor in the set of sleep influencing factors as the smart device to be controlled in the target area corresponding to the target user, the method further includes:

[0027] Determine whether a certain positive influencing factor in the set of sleep influencing factors has a causal relationship with a certain negative influencing factor. When the judgment result is yes, delete the positive influencing factor from the set of sleep influencing factors, and trigger the execution of the operation of determining the smart device associated with each sleep influencing factor in the set of sleep influencing factors as the smart device to be controlled in the target area corresponding to the target user, wherein the existence of the causal relationship between a certain positive influencing factor and a certain negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

[0028] As an optional embodiment, in the first aspect of the present invention, the wearable device includes smart shoes, and the body parameter includes the foot temperature of the target user;

[0029] And, the method further comprises:

[0030] determining whether the foot temperature is greater than a determined maximum comfort temperature or less than a determined minimum comfort temperature;

[0031] When the foot temperature is greater than the maximum comfortable temperature or less than the minimum comfortable temperature, determining the shoe type of the smart shoe;

[0032] When the shoe type is a full-cover type, generating a temperature adjustment parameter of the smart shoe according to the foot temperature, and controlling the smart shoe to perform a matching temperature control operation based on the temperature adjustment parameter;

[0033] When the shoe type is a non-all-inclusive type, determining a temperature adjustment device for controlling the ambient temperature in the sleeping area where the target user is located, generating temperature adjustment parameters for the temperature adjustment device according to the foot temperature, and controlling the temperature adjustment device to perform a matching temperature control operation based on the temperature adjustment parameters;

[0034] When the foot temperature is greater than the maximum comfortable temperature, the temperature adjustment parameter is a cooling parameter; and when the foot temperature is less than the minimum comfortable temperature, the temperature adjustment parameter is a heating parameter.

[0035] As an optional embodiment, in the first aspect of the present invention, the method further comprises:

[0036] When the target user is in the sleeping state, determining a sleeping carrier carrying the target user based on the positioning function of the wearable device, and judging whether the carrier type of the sleeping carrier is a preset type;

[0037] When the carrier type is the preset type, judging whether the sleep attribute of the target user is an easy-to-wake attribute according to the predetermined user identity of the target user;

[0038] When the sleep attribute is not the easy-to-wake-up attribute, determining whether the current sleeping posture of the target user is a comfortable sleeping posture based on the target body parameter of the target user collected by the wearable device;

[0039] When the sleeping posture is not the comfortable sleeping posture, generating a control parameter corresponding to the sleeping carrier based on the sleeping posture;

[0040] Based on the generated control parameters corresponding to the sleep carrier, the sleep carrier is controlled to perform a matching operation.

[0041] As an optional implementation manner, in the first aspect of the present invention, after controlling the working state of each of the smart devices based on the generated control parameters corresponding to each of the smart devices, the method further includes:

[0042] Acquire the historical sleep records of the target user from a user database of the target user;

[0043] Analyzing the historical sleep records and the body parameters to obtain an adapted sleep duration corresponding to the target user;

[0044] Detecting whether the target user's current sleep duration is greater than or equal to the adapted sleep duration;

[0045] When the detection result is yes, determining at least one target smart device in the target area that needs to enter the wake-up mode, and generating a control parameter corresponding to each of the target smart devices in the wake-up mode;

[0046] Based on the generated control parameters corresponding to each of the target smart devices, controlling each of the target smart devices to perform a matching operation;

[0047] The step of analyzing the historical sleep records and the body parameters to obtain the adapted sleep duration corresponding to the target user includes:

[0048] determining the sleep type of the target user according to the target user's current sleep falling asleep time;

[0049] Obtaining, from the historical sleep records, an average sleep duration of all target sleep records matching the sleep type;

[0050] Analyzing the sleep type and the body parameters to obtain an optimal sleep duration corresponding to the target user;

[0051] Determining whether the average sleep duration is less than or equal to the optimal sleep duration;

[0052] When the judgment result is yes, the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user;

[0053] When the judgment result is no, the average value of the average sleep duration and the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user.

[0054] A second aspect of the present invention discloses a device for controlling a smart device in a sleep state, the device comprising:

[0055] A collection module, configured to collect the current physical parameters of the target user based on the wearable device of the target user;

[0056] a judgment module, configured to judge whether the target user is in a sleeping state based on the body parameters;

[0057] a determination module, configured to, when the determination module determines that the target user is in the sleep state, determine the sleep state level of the target user based on the body parameters, and determine at least one smart device to be controlled in the target area corresponding to the target user;

[0058] A generating module, configured to generate a control parameter corresponding to each of the smart devices based on the sleep state level;

[0059] The control module is used to control each of the smart devices to perform a matching operation based on the generated control parameters corresponding to each of the smart devices.

[0060] As an optional implementation, in the second aspect of the present invention, the wearable device includes smart shoes;

[0061] Wherein, the device further comprises:

[0062] a state detection module, configured to detect whether the wearable device is in a target wearing state before the acquisition module acquires the current physical parameters of the target user based on the wearable device of the target user, and trigger the acquisition module to execute the operation of acquiring the current physical parameters of the target user based on the wearable device of the target user when the detection result is yes;

[0063] Furthermore, the specific manner in which the state detection module detects whether the wearable device is in the target wearing state is as follows:

[0064] detecting whether a first shoe and a second shoe included in the smart shoe are both in a worn state;

[0065] When the detection result is yes, it is determined whether the user parameters of the wearer corresponding to the first shoe collected by the first shoe and the user parameters of the wearer corresponding to the second shoe collected by the second shoe match, wherein the user parameters are parameters that can determine the identity of the wearer; when the judgment result is yes, it is determined that the smart shoe is in the target wearing state, and the wearer corresponding to the first shoe and the wearer corresponding to the second shoe are the same user;

[0066] When it is detected that there is a target shoe in the wearing state between the first shoe and the second shoe, it is determined whether the body parameter collection type of the target shoe includes a predetermined target parameter type. When it is determined that the body parameter collection type of the target shoe includes the target parameter type, it is determined that the smart shoe is in the target wearing state.

[0067] As an optional implementation, in the second aspect of the present invention, the acquisition module acquires the current physical parameters of the target user based on the wearable device of the target user in the following specific manner:

[0068] When a first shoe and a second shoe included in the smart shoe are both in a wearing state, collecting a current first body parameter of a target user based on the first shoe, where the target user is a user wearing the first shoe or the second shoe;

[0069] Based on the second shoe, collecting a current second body parameter of the target user;

[0070] Determine the current identity parameter of the target user according to the first body parameter and the second body parameter.

[0071] As an optional implementation manner, in the second aspect of the present invention, the specific manner in which the determination module determines the at least one smart device to be controlled in the target area corresponding to the target user is:

[0072] determining, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors;

[0073] Determining a smart device associated with each sleep influencing factor in the sleep influencing factor set, and determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as a smart device to be controlled in a target area corresponding to the target user;

[0074] Furthermore, the determination module is further configured to, when the sleep influencing factor set includes at least one positive influencing factor and at least one negative influencing factor, determine whether there is a causal relationship between a certain positive influencing factor and a certain negative influencing factor in the sleep influencing factor set before determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user. If the judgment result is yes, delete the positive influencing factor from the sleep influencing factor set, and trigger the execution of the operation of determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user, wherein the existence of the causal relationship between a certain positive influencing factor and a certain negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

[0075] As an optional embodiment, in the second aspect of the present invention, the wearable device includes smart shoes, and the body parameter includes the foot temperature of the target user;

[0076] The judging module is further configured to judge whether the foot temperature is greater than a determined maximum comfortable temperature or less than a determined minimum comfortable temperature;

[0077] The determination module is further configured to, when the determination module determines that the foot temperature is greater than the maximum comfort temperature or less than the minimum comfort temperature, determine the shoe type of the smart shoe, and, when the shoe type is a non-all-inclusive type, determine a temperature adjustment device for controlling the ambient temperature in the sleeping area where the target user is located;

[0078] The generating module is further configured to generate temperature adjustment parameters of the smart shoes according to the foot temperature when the shoes are of a full-coverage type, or to generate temperature adjustment parameters of the temperature adjustment device according to the foot temperature when the shoes are of a non-full-coverage type;

[0079] The control module is further configured to control the smart shoes to perform a matching temperature control operation based on the temperature control parameters when the shoes are all-inclusive, or to control the temperature adjustment device to perform a matching temperature control operation based on the temperature control parameters when the shoes are not all-inclusive.

[0080] When the foot temperature is greater than the maximum comfortable temperature, the temperature adjustment parameter is a cooling parameter; and when the foot temperature is less than the minimum comfortable temperature, the temperature adjustment parameter is a heating parameter.

[0081] As an optional implementation, in the second aspect of the present invention, the determining module is further configured to, when the target user is in the sleeping state, determine a sleeping carrier carrying the target user based on a positioning function of the wearable device;

[0082] The judgment module is further configured to judge whether the carrier type of the sleep carrier is a preset type; when the carrier type is the preset type, judging whether the sleep attribute of the target user is an easy-to-wake-up attribute based on the predetermined user identity of the target user; and when the sleep attribute is not the easy-to-wake-up attribute, judging whether the current sleeping posture of the target user is a comfortable sleeping posture based on the target body parameters of the target user collected by the wearable device;

[0083] The generating module is further configured to generate control parameters corresponding to the sleeping carrier based on the sleeping posture when the sleeping posture is not the comfortable sleeping posture;

[0084] The control module is further configured to control the sleep carrier to perform a matching operation based on the generated control parameters corresponding to the sleep carrier.

[0085] As an optional embodiment, in the second aspect of the present invention, the device further includes:

[0086] An acquisition module, configured to acquire the historical sleep records of the target user from a user database of the target user;

[0087] An analysis module, configured to analyze the historical sleep records and the body parameters to obtain an adapted sleep duration corresponding to the target user;

[0088] A duration detection module, configured to detect whether the target user's current sleep duration is greater than or equal to the adapted sleep duration;

[0089] The determining module is further configured to determine at least one target smart device in the target area that needs to enter a wake-up mode when the sleep duration detection module detects that the sleep duration is greater than or equal to the adapted sleep duration;

[0090] The generating module is further configured to generate a control parameter corresponding to each of the target smart devices in the wake-up mode;

[0091] The control module is further configured to control each target smart device to perform a matching operation based on the generated control parameters corresponding to each target smart device;

[0092] The specific method in which the analysis module analyzes the historical sleep records and the body parameters to obtain the adapted sleep duration corresponding to the target user is:

[0093] determining the sleep type of the target user according to the target user's current sleep falling asleep time;

[0094] Obtaining, from the historical sleep records, an average sleep duration of all target sleep records matching the sleep type;

[0095] Analyzing the sleep type and the body parameters to obtain an optimal sleep duration corresponding to the target user;

[0096] Determining whether the average sleep duration is less than or equal to the optimal sleep duration;

[0097] When the judgment result is yes, the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user;

[0098] When the judgment result is no, the average value of the average sleep duration and the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user.

[0099] A third aspect of the present invention discloses a wearable device for executing the steps of the method for controlling a smart device in a sleep state disclosed in the first aspect of the present invention.

[0100] A fourth aspect of the present invention discloses another apparatus for controlling a smart device in a sleep state, the apparatus comprising:

[0101] a memory storing executable program code;

[0102] a processor coupled to the memory;

[0103] The processor calls the executable program code stored in the memory to execute the steps of the method for controlling an intelligent device in a sleep state disclosed in the first aspect of the present invention.

[0104] A fifth aspect of the present invention discloses a computer storage medium storing computer instructions. When the computer instructions are called, they are used to execute the steps of the method for controlling an intelligent device in a sleep state disclosed in the first aspect of the present invention.

[0105] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0106] In an embodiment of the present invention, the current body parameters of the target user are collected based on the wearable device of the target user; based on the body parameters, it is determined whether the target user is in a sleep state; when the target user is in a sleep state, the sleep state level of the target user is determined based on the body parameters; at least one smart device to be controlled in the target area corresponding to the target user is determined; based on the sleep state level, control parameters corresponding to each smart device are generated; based on the generated control parameters corresponding to each smart device, each smart device is controlled to perform a matching operation. It can be seen that the implementation of the present invention can realize automatic control of smart devices based on the wearable device according to the user's sleep state level when the user enters a sleep state where instructions cannot be issued, thereby improving the intelligence and convenience of smart device control, thereby improving the comfort level of the user's sleeping environment. In addition, it can also reduce safety hazards and unnecessary energy consumption caused by the user entering a sleep state and being unable to turn off the turned-on smart device. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0108] Figure 1 This is a flow chart of a method for controlling a smart device in a sleep state disclosed in an embodiment of the present invention;

[0109] Figure 2 This is a flow chart of another method for controlling a smart device in a sleep state disclosed in an embodiment of the present invention;

[0110] Figure 3 This is a schematic structural diagram of a device for controlling a smart device in a sleep state disclosed in an embodiment of the present invention;

[0111] Figure 4This is a structural diagram of another apparatus for controlling a smart device in a sleep state disclosed in an embodiment of the present invention;

[0112] Figure 5 This is a structural diagram of another apparatus for controlling a smart device in a sleep state disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0113] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0114] The terms "first," "second," and so on, in the description and claims of the present invention and the accompanying drawings are used to distinguish between different items, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or end comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed therein, or may optionally include other steps or elements inherent to such process, method, product, or end.

[0115] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0116] The present invention discloses a method and apparatus for controlling smart devices during sleep. When a user enters a sleep state where commands cannot be issued, the wearable device automatically controls the smart device based on the user's sleep level. This improves the intelligence and convenience of smart device control, thereby enhancing the user's sleeping comfort. Furthermore, it reduces safety hazards and unnecessary energy consumption caused by the user being unable to shut down an active smart device after entering a sleep state. Details are provided below.

[0117] Example 1

[0118] See also Figure 1 , Figure 1This is a flow chart of a method for controlling a smart device in a sleep state disclosed in an embodiment of the present invention. Figure 1 The method for controlling a smart device in a sleep state described above can be applied to wearable devices, and can also be applied to a smart device control system that interacts with a wearable device, and the embodiment of the present invention does not limit this. Figure 1 As shown, the method for controlling the smart device in the sleep state may include the following operations:

[0119] 101. Based on the wearable device of the target user, collect the current body parameters of the target user.

[0120] Among them, wearable devices may include any smart portable devices such as smart bracelets, smart shoes, smart glasses, etc. that can be worn on the target user and can be used to collect the user's physical parameters. Optionally, wearable devices can be equipped with various types of sensors, such as pressure sensors, light sensors, sound sensors, temperature sensors, motion sensors, bioresistance sensors, etc. Wearable devices can collect external information through the installed sensors.

[0121] The body parameters collected by the wearable device may include one or more of the target user's heart rate, body temperature, blood pressure, blood flow velocity, blood oxygen saturation, blood sugar content, muscle tension, etc. When the wearable device includes smart shoes, the collected body parameters may also include one or more of the target user's weight, muscle content, water content, bone density, fat content, etc.

[0122] 102. Determine whether the target user is in a sleeping state based on body parameters.

[0123] As an optional implementation, judging whether the target user is in a sleeping state based on body parameters may include: determining a target type parameter in the body parameters that can be used to judge the sleeping state, and judging whether the target user is in a sleeping state based on the target type parameter.

[0124] When the target user enters a sleep state, changes in body parameters such as lower body temperature, lower heart rate, deeper breathing, lower blood pressure, lower blood oxygen saturation, lower blood flow velocity, and lower muscle tension occur. Therefore, it is possible to determine whether the target user is in a sleep state based on the parameter values ​​of each target type parameter related to sleep in the body parameters. The target user can pre-enter the parameter values ​​of their body parameters when they are awake and the parameter values ​​of their body parameters when they are asleep. After the target user's current body parameters are collected through the wearable device, it is possible to determine whether the target user is currently in a sleep state or a wakeful state based on the difference between the target user's current body parameters, the parameter values ​​of their body parameters when they are awake, and the parameter values ​​of their body parameters when they are asleep.

[0125] It can be seen that this can improve the accuracy and reliability of determining whether the user is in a sleeping state.

[0126] 103. When the target user is in a sleeping state, determine the target user's sleeping state level according to the body parameters.

[0127] The sleep state level may include one of a light sleep level, a moderate sleep level, and a deep sleep level. Each sleep state level has a parameter value of a body parameter corresponding to that sleep state level. For example, the heart rate of the target user when the sleep state level is the deep sleep level is lower than the heart rate when the sleep state level is the light sleep level. Furthermore, different types of target users may have different parameter values ​​of body parameters at the same sleep state level. For example, the heart rate of a child-type target user when the sleep state level is the light sleep level is higher than the heart rate of an adult-type target user when the sleep state level is the light sleep level. This can improve the accuracy of determining the user's sleep state level.

[0128] 104. Determine at least one smart device to be controlled in a target area corresponding to the target user.

[0129] The target area corresponding to the target user may include the area where the target user is currently located, or may include areas where the target user is not currently located. For example, when the target user is sleeping in the bedroom, the target area may include the bedroom, or may include the living room, kitchen, etc. Smart devices may include one or more of smart air conditioners, smart speakers, smart televisions, smart lights, smart curtains, smart doors and windows, smart cleaning equipment, and smart water heaters.

[0130] As an optional implementation manner, determining at least one smart device to be controlled in a target area corresponding to the target user may include:

[0131] Determine, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors;

[0132] A smart device associated with each sleep influencing factor in the sleep influencing factor set is determined, and the smart device associated with each sleep influencing factor in the sleep influencing factor set is determined as a smart device to be controlled in a target area corresponding to the target user.

[0133] It can be seen that the implementation of this optional implementation method can determine the smart devices that need to be controlled based on the set of sleep influencing factors related to the user's sleep quality, thereby improving the accuracy of determining the smart devices to be controlled. Moreover, by matching the set of sleep influencing factors according to the user type, the smart devices to be controlled can be determined in a personalized manner, thereby more accurately providing the user with a more comfortable sleeping environment and reducing the control of unnecessary smart devices, thereby reducing unnecessary energy consumption.

[0134] In this optional embodiment, optionally, when the set of sleep influencing factors includes at least one positive influencing factor and at least one negative influencing factor, before determining the smart device associated with each sleep influencing factor in the set of sleep influencing factors as the smart device to be controlled in the target area corresponding to the target user, the method may further include:

[0135] Determine whether there is a causal relationship between a positive influencing factor and a negative influencing factor in the sleep influencing factor set. When the judgment result is yes, delete the positive influencing factor from the sleep influencing factor set, and trigger the execution of the above-mentioned operation of determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user, wherein the causal relationship between a positive influencing factor and a negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

[0136] For example, if a positive influencing factor is temperature and a negative influencing factor is sound, when the temperature is controlled by air conditioning or a fan to make the target user's sleeping environment more comfortable, noise will be generated due to the operation of the air conditioning or the fan. That is, there is a causal relationship between temperature and sound. At this time, temperature can be deleted from the set of sleep influencing factors.

[0137] It can be seen that implementing this optional implementation method can also reduce the occurrence of situations where the determined smart devices are inaccurate due to the causal relationship between positive influencing factors and negative influencing factors, thereby affecting the user's sleeping environment, and improve the flexibility, accuracy and reliability of determining the smart devices to be controlled, which is conducive to improving the user's experience.

[0138] 105. Based on the sleep state level, generate corresponding control parameters for each smart device.

[0139] As an optional implementation, generating control parameters corresponding to each smart device based on the sleep state level may include:

[0140] Determine the comfort environment parameters corresponding to the target user according to the sleep state level and the determined user type of the target user;

[0141] Based on the determined environmental parameters and comfortable environment parameters, control parameters corresponding to each smart device are generated, wherein the environmental parameters include one or more of temperature, humidity, light intensity, light type, ambient sound intensity, and ambient sound type.

[0142] In this optional implementation, optionally, based on the determined environmental parameters and comfortable environment parameters, generating control parameters corresponding to each smart device may include:

[0143] Determining a corresponding second sub-parameter in the comfort environment parameter for each first sub-parameter in the environment parameter;

[0144] For each first sub-parameter, determining whether a parameter difference between the first sub-parameter and its corresponding second sub-parameter meets a preset condition; if the determination result is negative, determining the first sub-parameter as a target first sub-parameter;

[0145] A control parameter corresponding to each smart device is generated according to each target first sub-parameter and its corresponding second sub-parameter.

[0146] It can be seen that the implementation of this optional implementation method can generate control parameters of smart devices based on the difference between current environmental parameters and comfort environment parameters, and can flexibly adjust control parameters according to the parameter values ​​of environmental parameters, thereby improving the accuracy, reliability and flexibility of smart device parameter generation, which is conducive to providing users with a more comfortable sleeping environment.

[0147] 106. Based on the generated control parameters corresponding to each smart device, control each smart device to perform a matching operation.

[0148] For example, when the smart TV is not turned off, the smart TV can be controlled to enter the shutdown state or standby state according to the control parameters corresponding to the smart TV, or the smart TV can be controlled to lower the volume; when the smart curtains are not drawn, the smart curtains can be controlled to be drawn according to the control parameters corresponding to the smart curtains.

[0149] It can be seen that the implementation of the embodiment of the present invention can realize automatic control of smart devices based on the wearable device according to the user's sleep state level when the user enters a sleep state where no instructions can be issued, thereby improving the intelligence and convenience of smart device control, thereby improving the comfort level of the user's sleeping environment. In addition, it can also reduce safety hazards and unnecessary energy consumption caused by the user entering a sleep state and being unable to turn off the turned-on smart devices.

[0150] In an optional embodiment, the method may further include:

[0151] When the target user is in a sleeping state, based on the positioning function of the wearable device, a sleeping carrier carrying the target user is determined, and whether the carrier type of the sleeping carrier is a preset type;

[0152] When the carrier type is a preset type, judging whether the target user's sleep attribute is an easy-to-wake attribute based on the predetermined user identity of the target user;

[0153] When the sleep attribute is not an easy-to-wake-up attribute, determining whether the target user's current sleeping posture is a comfortable sleeping posture based on the target body parameters of the target user collected by the wearable device;

[0154] When the sleeping posture is not a comfortable sleeping posture, generating control parameters corresponding to the sleeping carrier based on the sleeping posture;

[0155] Based on the generated control parameters corresponding to the sleep carrier, the sleep carrier is controlled to perform a matching operation.

[0156] In this optional embodiment, the carrier type of the sleeping carrier is a preset type, indicating that the sleeping carrier is a smart carrier, for example, a smart sofa, a smart massage chair, a smart pillow, etc.

[0157] It can be seen that the implementation of this optional embodiment can correct the user's sleeping posture by intelligently controlling the sleep carrier when the user's sleeping posture is not a comfortable sleeping posture, thereby increasing the diversity of the wearable device's functions and improving the intelligence of the sleep carrier control, thereby providing the user with a more comfortable sleeping environment.

[0158] In another optional embodiment, after controlling the working state of each smart device based on the generated control parameters corresponding to each smart device, the method may further include:

[0159] Obtain historical sleep records of the target user from a user database of the target user;

[0160] Analyze historical sleep records and body parameters to obtain the appropriate sleep duration for the target user;

[0161] Check whether the target user's current sleep duration is greater than or equal to the adapted sleep duration;

[0162] When the detection result is yes, determining at least one target smart device in the target area that needs to enter the wake-up mode, and generating control parameters corresponding to each target smart device in the wake-up mode;

[0163] Based on the generated control parameters corresponding to each target smart device, each target smart device is controlled to perform a matching operation.

[0164] For example, when all target smart devices that need to enter the wake-up mode include a smart speaker, the smart speaker can be controlled to play music to wake up the user. Optionally, soothing music can be played first and then lively music can be played to gradually wake up the user.

[0165] It can be seen that implementing this optional embodiment can intelligently control the user's sleep duration, so that the user's sleep duration is more adapted to their body parameters and historical sleep records, thereby helping to improve the user's sleep quality.

[0166] In this optional embodiment, as an optional implementation, analyzing historical sleep records and body parameters to obtain the adapted sleep duration corresponding to the target user may include:

[0167] Determine the target user's current sleep type based on the target user's current sleep onset time;

[0168] Obtain the average sleep duration of all target sleep records that match the sleep type from historical sleep records;

[0169] Analyze sleep types and body parameters to obtain the optimal sleep duration for target users;

[0170] Determine whether the average sleep duration is less than or equal to the optimal sleep duration;

[0171] If the result of the judgment is yes, the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user;

[0172] When the judgment result is no, the average of the average sleep duration and the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user.

[0173] It can be seen that implementing this optional implementation method can gradually adjust the user's sleep duration to the optimal sleep duration when the user's average sleep duration is too long, thereby realizing intelligent control of the user's sleep duration, which is conducive to improving the user's sleep quality.

[0174] Example 2

[0175] See also Figure 2 , Figure 2 This is a flow chart of a method for controlling a smart device in a sleep state disclosed in an embodiment of the present invention. Figure 2 The method for controlling a smart device in a sleep state described above can be applied to wearable devices, and can also be applied to a smart device control system that interacts with a wearable device, and the embodiment of the present invention does not limit this. Figure 2 As shown, the method for controlling the smart device in the sleep state may include the following operations:

[0176] 201. Detect whether the wearable device is in a target wearing state.

[0177] Among them, whether the wearable device is in the target wearing state can be detected by detecting whether each sensor of the wearable device is in contact with the target part of the target person.

[0178] As an optional implementation, the wearable device includes smart shoes, and detecting whether the wearable device is in a target wearing state may include:

[0179] Detecting whether a first shoe and a second shoe included in the smart shoe are both in a worn state;

[0180] When the detection result is yes, it is determined whether the user parameters of the wearer corresponding to the first shoe collected by the first shoe and the user parameters of the wearer corresponding to the second shoe collected by the second shoe match, where the user parameters are parameters that can determine the identity of the wearer; when the judgment result is yes, it is determined that the smart shoe is in the target wearing state, and the wearer corresponding to the first shoe and the wearer corresponding to the second shoe are the same user;

[0181] When it is detected that there is a target shoe in the wearing state between the first shoe and the second shoe, it is determined whether the body parameter collection type of the target shoe includes a predetermined target parameter type. When it is determined that the body parameter collection type of the target shoe includes the target parameter type, it is determined that the smart shoe is in the target wearing state.

[0182] It can be seen that the implementation of this optional embodiment can determine that the smart shoes are in the worn state only when both shoes are worn by the same user or when one of the worn shoes can collect all the required parameters, thereby improving the accuracy of detecting whether the wearable device is in the worn state, thereby helping to improve the comprehensiveness and accuracy of the collected body parameters.

[0183] 202. Based on the wearable device of the target user, collect the current body parameters of the target user.

[0184] As an optional embodiment, the wearable device may include smart shoes;

[0185] Furthermore, based on the wearable device of the target user, the current physical parameters of the target user are collected, which may include:

[0186] When both the first shoe and the second shoe included in the smart shoe are in a wearing state, based on the first shoe, collecting the current first body parameter of the target user, the target user being the user wearing the first shoe or the second shoe;

[0187] Based on the second shoe, collecting the second body parameter of the target user;

[0188] Determine the current identity parameter of the target user according to the first body parameter and the second body parameter.

[0189] It can be seen that the implementation of this optional implementation method can integrate the body parameters collected by the two smart shoes to obtain the user's current body parameters, thereby improving the comprehensiveness and accuracy of the collected body parameters.

[0190] 203. Determine whether the target user is in a sleeping state based on the body parameters.

[0191] 204. When the target user is in a sleeping state, determine the target user's sleeping state level according to the body parameters.

[0192] 205. Determine at least one smart device to be controlled in the target area corresponding to the target user.

[0193] 206. Generate control parameters corresponding to each smart device based on the sleep state level.

[0194] 207. Based on the generated control parameters corresponding to each smart device, control each smart device to perform a matching operation.

[0195] In the embodiment of the present invention, for other descriptions of steps 202 to 207 , please refer to the detailed description of steps 101 to 106 in the first embodiment, which will not be repeated in the embodiment of the present invention.

[0196] It can be seen that the implementation of the embodiment of the present invention can realize automatic control of smart devices based on the wearable device according to the user's sleep state level when the user enters a sleep state where no instructions can be issued, thereby improving the intelligence and convenience of smart device control, thereby improving the comfort level of the user's sleeping environment, and can also reduce the safety hazards and unnecessary energy consumption caused by the user entering a sleep state and being unable to turn off the turned-on smart device. In addition, it can also collect the user's body parameters only when it is detected that the wearable device is in a worn state, reducing unnecessary operations, thereby reducing the consumption of running memory and energy.

[0197] In an optional embodiment, the wearable device includes smart shoes, and the body parameter includes the target user's foot temperature;

[0198] And, the method may further include:

[0199] determining whether the foot temperature is greater than the determined maximum comfort temperature or less than the determined minimum comfort temperature;

[0200] When the foot temperature is greater than the maximum comfortable temperature or less than the minimum comfortable temperature, determining the shoe type of the smart shoe;

[0201] When the shoe type is a full-cover type, the temperature adjustment parameters of the smart shoe are generated according to the foot temperature, and based on the temperature adjustment parameters, the smart shoe is controlled to perform a matching temperature control operation;

[0202] When the shoe type is non-all-inclusive, determining a temperature control device for controlling the ambient temperature in the sleeping area where the target user is located, generating temperature control parameters for the temperature control device according to the foot temperature, and controlling the temperature control device to perform a corresponding temperature control operation based on the temperature control parameters;

[0203] Among them, when the foot temperature is greater than the maximum comfortable temperature, the temperature adjustment parameter is a cooling parameter, and when the foot temperature is less than the minimum comfortable temperature, the temperature adjustment parameter is a heating parameter.

[0204] It can be seen that the implementation of this optional embodiment can take corresponding temperature control operations when the temperature of the user's feet is high or low, thereby providing the user with a more comfortable sleeping temperature, which is conducive to improving the user's sleep quality and usage experience. In addition, different temperature control operations can be taken according to the type of shoes, enriching the functions of smart shoes, improving the flexibility of temperature control, and increasing the diversity of temperature control methods.

[0205] In another optional embodiment, the method may further include:

[0206] When the wearable device is not in the target wearing state, determining the current time and the end time of the target user's most recent wearing of the wearable device;

[0207] Analyze the current time, the end time, and the user habit records of the target user obtained in advance from the user database of the target user to obtain the target probability that the target user is in the sleeping state;

[0208] When the target probability is greater than or equal to the preset probability, the sleep state level of the target user is determined according to the user habit record, and the above-mentioned operation of determining at least one smart device to be controlled in the target area corresponding to the target user based on the sleep state level is triggered.

[0209] It can be seen that the implementation of this optional embodiment can determine whether the user is in a sleep state based on time and user habits when the wearable is not worn, and determine the user's sleep state level when the user is in a sleep state, enriching the methods of determining whether the user is in a sleep state and determining the user's sleep state level.

[0210] In yet another optional embodiment, the wearable device includes smart shoes;

[0211] And, the method further comprises:

[0212] When there is a target shoe that is not in a worn state among the first shoe and the second shoe included in the smart shoe, detecting whether the target shoe is subjected to abnormal contact;

[0213] When the test result is yes, determining the contact parameters of the abnormal contact, and judging whether the abnormal contact originated from a living animal based on the abnormal contact parameters;

[0214] When the abnormal contact comes from a living animal, the target shoe is controlled to enter a self-protection mode, wherein the self-protection mode includes one or more of a light-emitting mode, a heating mode, and a sound warning mode, or one or more of the smart shoe, an audio device associated with the smart shoe, and a smart terminal of the target user corresponding to the smart shoe is controlled to output an abnormal contact prompt;

[0215] When the abnormal contact does not come from a living animal, one or more of the smart shoes, an audio device associated with the smart shoes, and a smart terminal of a target user corresponding to the smart shoes is controlled to output an abnormal contact prompt.

[0216] It can be seen that the implementation of this optional embodiment can output a prompt when the wearable device is subjected to abnormal contact, and activate the self-protection mode when the wearable device is subjected to abnormal contact from a living animal such as a pet cat or pet dog, thereby enriching the functions of the wearable device and improving the self-protection ability of the wearable device, thereby helping to increase the service life of the wearable device.

[0217] In yet another alternative embodiment, the wearable device may include smart shoes;

[0218] And, the method further comprises:

[0219] Detecting whether there is a spastic reaction in the feet of the target user based on body parameters;

[0220] When the test result is yes, the target site of the foot where the spastic reaction occurs and the severity level of the spastic reaction are determined based on the physical parameters;

[0221] Determine the massage mode of the smart shoe based on the target area and severity level;

[0222] The smart shoes are controlled to perform massage operations on the target parts based on the determined massage mode.

[0223] It can be seen that the implementation of this optional embodiment can massage the user's foot through the wearable device when a spasm reaction is detected in the user's foot, thereby increasing the diversity of the wearable device's functions and improving the user's experience.

[0224] Example 3

[0225] See also Figure 3 , Figure 3This is a schematic diagram of the structure of a device for controlling a smart device in a sleep state disclosed in an embodiment of the present invention. Figure 3 The apparatus for controlling a smart device in a sleep state described above can be applied to a wearable device, or to a smart device control system that interacts with a wearable device, and the embodiment of the present invention does not limit this. Figure 3 As shown, the apparatus for controlling the smart device in the sleep state may include:

[0226] The collection module 301 is used to collect the current physical parameters of the target user based on the wearable device of the target user;

[0227] The judgment module 302 is used to judge whether the target user is in a sleeping state based on the body parameters;

[0228] The determination module 303 is configured to determine the target user's sleep level based on the body parameters when the determination module 302 determines that the target user is in a sleep state, and to determine at least one smart device to be controlled in the target area corresponding to the target user;

[0229] A generating module 304 is configured to generate control parameters corresponding to each smart device based on the sleep state level;

[0230] The control module 305 is configured to control each smart device to perform a matching operation based on the generated control parameters corresponding to each smart device.

[0231] It can be seen that implementation Figure 3 The described device can automatically control smart devices based on the wearable device according to the user's sleep state level when the user enters a sleep state where no instructions can be issued, thereby improving the intelligence and convenience of smart device control, thereby improving the comfort of the user's sleeping environment. In addition, it can also reduce safety hazards and unnecessary energy consumption caused by the user entering a sleep state and being unable to turn off the turned-on smart devices.

[0232] In an optional embodiment, if Figure 4 As shown, the device may also include:

[0233] The state detection module 306 is used to detect whether the wearable device is in the target wearing state before the collection module 301 collects the current physical parameters of the target user based on the wearable device of the target user. When the detection result is yes, the collection module 301 is triggered to perform the above-mentioned operation of collecting the current physical parameters of the target user based on the wearable device of the target user.

[0234] It can be seen that implementation Figure 4The described device can collect the user's body parameters only when it detects that the wearable device is in a wearing state, reducing unnecessary operations and thus reducing running memory and energy consumption.

[0235] In this optional embodiment, as an optional implementation, as Figure 4 As shown, wearable devices include smart shoes;

[0236] Furthermore, the specific manner in which the state detection module 306 detects whether the wearable device is in the target wearing state may be:

[0237] Detecting whether a first shoe and a second shoe included in the smart shoe are both in a worn state;

[0238] When the detection result is yes, it is determined whether the user parameters of the wearer corresponding to the first shoe collected by the first shoe and the user parameters of the wearer corresponding to the second shoe collected by the second shoe match, where the user parameters are parameters that can determine the identity of the wearer; when the judgment result is yes, it is determined that the smart shoe is in the target wearing state, and the wearer corresponding to the first shoe and the wearer corresponding to the second shoe are the same user;

[0239] When it is detected that there is a target shoe in the wearing state between the first shoe and the second shoe, it is determined whether the body parameter collection type of the target shoe includes a predetermined target parameter type. When it is determined that the body parameter collection type of the target shoe includes the target parameter type, it is determined that the smart shoe is in the target wearing state.

[0240] It can be seen that implementation Figure 4 The described device can also determine that the smart shoe is in the wearing state only when it is ensured that both shoes of the smart shoe are worn by the same user or when it is ensured that one of the worn shoes can collect all the required parameters, thereby improving the accuracy of detecting whether the wearable device is in the target wearing state, thereby facilitating improving the comprehensiveness and accuracy of the collected body parameters.

[0241] In another optional embodiment, Figure 4 As shown, wearable devices may include smart shoes;

[0242] Furthermore, the specific manner in which the acquisition module 301 acquires the current physical parameters of the target user based on the wearable device of the target user may be:

[0243] When both the first shoe and the second shoe included in the smart shoe are in a wearing state, based on the first shoe, collecting the current first body parameter of the target user, the target user being the user wearing the first shoe or the second shoe;

[0244] Based on the second shoe, collecting the second body parameter of the target user;

[0245] Determine the current identity parameter of the target user according to the first body parameter and the second body parameter.

[0246] It can be seen that implementation Figure 4 The described device can also integrate the body parameters collected by the two smart shoes to obtain the user's current body parameters, thereby improving the comprehensiveness and accuracy of the collected body parameters.

[0247] In another optional embodiment, Figure 4 As shown, the specific manner in which the determining module 303 determines at least one smart device to be controlled in the target area corresponding to the target user may be:

[0248] Determine, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors;

[0249] Determining a smart device associated with each sleep influencing factor in the sleep influencing factor set, and determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as a smart device to be controlled in a target area corresponding to the target user;

[0250] Furthermore, the determination module 303 is further configured to, when the sleep influencing factor set includes at least one positive influencing factor and at least one negative influencing factor, determine whether there is a causal relationship between a certain positive influencing factor and a certain negative influencing factor in the sleep influencing factor set before determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user. If the judgment result is yes, delete the positive influencing factor from the sleep influencing factor set, and trigger the execution of the above-mentioned operation of determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user, wherein the causal relationship between a certain positive influencing factor and a certain negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

[0251] It can be seen that implementation Figure 4The described device can also determine the smart devices that need to be controlled based on a set of sleep influencing factors related to the user's sleep quality, thereby improving the accuracy of determining the smart devices to be controlled. Moreover, by matching the set of sleep influencing factors according to the user type, the smart devices to be controlled can be personalized, thereby providing the user with a more comfortable sleeping environment and reducing the control of unnecessary smart devices, thereby reducing unnecessary energy consumption. In addition, it can also reduce the occurrence of situations where the determined smart devices are inaccurate due to the causal relationship between positive and negative influencing factors, thereby affecting the user's sleeping environment, thereby improving the flexibility and intelligence of smart device control, which is conducive to improving the user experience.

[0252] In another optional embodiment, Figure 4 As shown, the wearable device may include smart shoes, and the body parameters may include the target user's foot temperature;

[0253] The determination module 302 is further configured to determine whether the foot temperature is greater than the determined maximum comfort temperature or less than the determined minimum comfort temperature;

[0254] The determination module 303 is further configured to, when the determination module 302 determines that the foot temperature is greater than the maximum comfort temperature or less than the minimum comfort temperature, determine the type of the smart shoe, and, when the shoe type is a non-all-inclusive type, determine a temperature adjustment device for controlling the ambient temperature in the sleeping area where the target user is located;

[0255] The generating module 304 is further configured to generate temperature adjustment parameters for the smart shoe according to the foot temperature when the shoe type is a full-cover type, or to generate temperature adjustment parameters for the temperature adjustment device according to the foot temperature when the shoe type is a non-full-cover type;

[0256] The control module 305 is further configured to control the smart shoes to perform a matching temperature control operation based on the temperature control parameters when the shoe type is a full-cover type, or to control the temperature control device to perform a matching temperature control operation based on the temperature control parameters when the shoe type is a non-full-cover type;

[0257] Among them, when the foot temperature is greater than the maximum comfortable temperature, the temperature adjustment parameter is a cooling parameter, and when the foot temperature is less than the minimum comfortable temperature, the temperature adjustment parameter is a heating parameter.

[0258] It can be seen that implementation Figure 4 The described device can also take corresponding temperature control operations when the user's foot temperature is high or low, thereby providing the user with a more comfortable sleeping temperature, which is conducive to improving the user's sleep quality and usage experience. In addition, different temperature control operations can be taken according to the type of shoes, enriching the functions of smart shoes, improving the flexibility of temperature control, and increasing the diversity of temperature control methods.

[0259] In another optional embodiment, Figure 4 As shown, the determination module 303 is further configured to determine a sleeping carrier carrying the target user based on the positioning function of the wearable device when the target user is in a sleeping state;

[0260] The judgment module 302 is further configured to judge whether the carrier type of the sleep carrier is a preset type. If the carrier type is the preset type, the judgment module 302 judges whether the target user's sleep attribute is an easy-to-wake attribute based on the predetermined user identity of the target user. If the sleep attribute is not an easy-to-wake attribute, the judgment module 302 judges whether the target user's current sleeping posture is a comfortable sleeping posture based on the target body parameters of the target user collected by the wearable device.

[0261] The generating module 304 is further configured to generate control parameters corresponding to the sleeping carrier based on the sleeping posture when the sleeping posture is not a comfortable sleeping posture;

[0262] The control module 305 is further configured to control the sleep carrier to execute a matching operation based on the generated control parameters corresponding to the sleep carrier.

[0263] It can be seen that implementation Figure 4 The described device can also correct the user's sleeping posture by controlling the sleep carrier when the user's sleeping posture is not a comfortable sleeping posture, thereby increasing the diversity of the wearable device's functions and improving the intelligence of the sleep carrier control, thereby providing the user with a more comfortable sleeping environment.

[0264] In another optional embodiment, Figure 4 As shown, the device may also include:

[0265] An acquisition module 307 is configured to acquire the historical sleep records of the target user from a user database of the target user;

[0266] Analysis module 308, for analyzing historical sleep records and body parameters to obtain the appropriate sleep duration for the target user;

[0267] The duration detection module 309 is further used to detect whether the target user's current sleep duration is greater than or equal to the adapted sleep duration;

[0268] The determination module 303 is further configured to determine at least one target smart device in the target area that needs to enter a wake-up mode when the duration detection module 309 detects that the sleep duration is greater than or equal to the adapted sleep duration;

[0269] The generating module 304 is further configured to generate control parameters corresponding to each target smart device in the wake-up mode;

[0270] The control module 305 is further configured to control each target smart device to perform a matching operation based on the generated control parameters corresponding to each target smart device.

[0271] It can be seen that implementation Figure 4 The described device can also intelligently control the user's sleep duration so that the user's sleep duration is more compatible with their body parameters and historical sleep records, thereby helping to improve the user's sleep quality.

[0272] In this optional embodiment, as an optional implementation, as Figure 4 As shown, the analysis module 308 analyzes historical sleep records and body parameters to obtain the appropriate sleep duration for the target user in the following manner:

[0273] Determine the target user's current sleep type based on the target user's current sleep onset time;

[0274] Obtain the average sleep duration of all target sleep records that match the sleep type from historical sleep records;

[0275] Analyze sleep types and body parameters to obtain the optimal sleep duration for target users;

[0276] Determine whether the average sleep duration is less than or equal to the optimal sleep duration;

[0277] If the result of the judgment is yes, the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user;

[0278] When the judgment result is no, the average of the average sleep duration and the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user.

[0279] It can be seen that implementation Figure 4 The described device can also gradually adjust the user's sleep duration to the optimal sleep duration when the user's average sleep duration is too long, thereby realizing intelligent control of the user's sleep duration, which is conducive to improving the user's sleep quality.

[0280] Example 4

[0281] See also Figure 5 , Figure 5 This is a structural diagram of another device for controlling a smart device in a sleep state disclosed in an embodiment of the present invention. Figure 5 As shown, the apparatus for controlling the smart device in the sleep state may include:

[0282] A memory 401 storing executable program code;

[0283] a processor 402 coupled to the memory 401;

[0284] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the method for controlling the smart device in the sleep state described in the first embodiment or the second embodiment of the present invention.

[0285] Example 5

[0286] An embodiment of the present invention discloses a computer storage medium storing computer instructions. When the computer instructions are called, they are used to execute the steps of the method for controlling an intelligent device in a sleep state described in Embodiment 1 or Embodiment 2 of the present invention.

[0287] Example 6

[0288] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the steps of the method for controlling a smart device in a sleep state described in Example 1 or Example 2.

[0289] Example 7

[0290] Embodiments of the present invention disclose a wearable device that can be used to perform the steps of the method for controlling a smart device while in sleep mode described in Embodiment 1 or Embodiment 2 of the present invention. Alternatively, the wearable device can include any of the apparatuses for controlling a smart device while in sleep mode described in Embodiment 3 or Embodiment 4. Optionally, the wearable device can be a smart shoe, and further optionally, the smart shoe can be a smart slipper.

[0291] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Those skilled in the art can understand and implement the present invention without inventive effort.

[0292] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by means of hardware. Based on this understanding, the above technical solution, in essence, or the portion that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0293] Finally, it should be noted that the method and apparatus for controlling a smart device in a sleep state disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are intended to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may be modified or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for controlling an intelligent device in a sleep state, characterized in that: The method comprises: Based on the wearable device of the target user, collecting the current physical parameters of the target user; determining, based on the body parameters, whether the target user is in a sleeping state; When the target user is in the sleeping state, determining the sleeping state level of the target user according to the body parameters; Determining at least one smart device to be controlled in a target area corresponding to the target user; Generating control parameters corresponding to each of the smart devices based on the sleep state level; Based on the generated control parameters corresponding to each of the smart devices, controlling each of the smart devices to perform a matching operation; The determining of at least one smart device to be controlled in a target area corresponding to the target user includes: determining, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors; Determining a smart device associated with each sleep influencing factor in the sleep influencing factor set, and determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as a smart device to be controlled in a target area corresponding to the target user; Furthermore, when the set of sleep influencing factors includes at least one positive influencing factor and at least one negative influencing factor, before determining the smart device associated with each sleep influencing factor in the set of sleep influencing factors as the smart device to be controlled in the target area corresponding to the target user, the method further includes: Determine whether a certain positive influencing factor in the set of sleep influencing factors has a causal relationship with a certain negative influencing factor. When the judgment result is yes, delete the positive influencing factor from the set of sleep influencing factors, and trigger the execution of the operation of determining the smart device associated with each sleep influencing factor in the set of sleep influencing factors as the smart device to be controlled in the target area corresponding to the target user, wherein the existence of the causal relationship between a certain positive influencing factor and a certain negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

2. The method for controlling a smart device in a sleep state according to claim 1, wherein: The wearable device includes smart shoes; Before collecting the current physical parameters of the target user based on the wearable device of the target user, the method further includes: Detecting whether the wearable device is in a target wearing state, and when the wearable device is in the target wearing state, triggering execution of the operation of collecting the current physical parameters of the target user based on the wearable device of the target user; Furthermore, detecting whether the wearable device is in a target wearing state includes: detecting whether a first shoe and a second shoe included in the smart shoe are both in a worn state; When the detection result is yes, it is determined whether the user parameters of the wearer corresponding to the first shoe collected by the first shoe and the user parameters of the wearer corresponding to the second shoe collected by the second shoe match, wherein the user parameters are parameters that can determine the identity of the wearer; when the judgment result is yes, it is determined that the smart shoe is in the target wearing state, and the wearer corresponding to the first shoe and the wearer corresponding to the second shoe are the same user; When it is detected that there is a target shoe in the wearing state between the first shoe and the second shoe, it is determined whether the body parameter collection type of the target shoe includes a predetermined target parameter type. When it is determined that the body parameter collection type of the target shoe includes the target parameter type, it is determined that the smart shoe is in the target wearing state.

3. The method for controlling a smart device in a sleep state according to claim 2, wherein: The collecting of the target user's current physical parameters based on the target user's wearable device includes: When a first shoe and a second shoe included in the smart shoe are both in a wearing state, collecting a current first body parameter of a target user based on the first shoe, where the target user is a user wearing the first shoe or the second shoe; Based on the second shoe, collecting a current second body parameter of the target user; Determine the current identity parameter of the target user according to the first body parameter and the second body parameter.

4. The method for controlling a smart device in a sleep state according to claim 1, wherein: The wearable device includes smart shoes, and the body parameter includes the foot temperature of the target user; And, the method further comprises: determining whether the foot temperature is greater than a determined maximum comfort temperature or less than a determined minimum comfort temperature; When the foot temperature is greater than the maximum comfortable temperature or less than the minimum comfortable temperature, determining the shoe type of the smart shoe; When the shoe type is a full-cover type, generating a temperature adjustment parameter of the smart shoe according to the foot temperature, and controlling the smart shoe to perform a matching temperature control operation based on the temperature adjustment parameter; When the shoe type is a non-all-inclusive type, determining a temperature adjustment device for controlling the ambient temperature in the sleeping area where the target user is located, generating temperature adjustment parameters for the temperature adjustment device according to the foot temperature, and controlling the temperature adjustment device to perform a matching temperature control operation based on the temperature adjustment parameters; When the foot temperature is greater than the maximum comfortable temperature, the temperature adjustment parameter is a cooling parameter; and when the foot temperature is less than the minimum comfortable temperature, the temperature adjustment parameter is a heating parameter.

5. The method for controlling a smart device in a sleep state according to claim 1, wherein: The method further comprises: When the target user is in the sleeping state, determining a sleeping carrier carrying the target user based on the positioning function of the wearable device, and judging whether the carrier type of the sleeping carrier is a preset type; When the carrier type is the preset type, judging whether the sleep attribute of the target user is an easy-to-wake attribute according to the predetermined user identity of the target user; When the sleep attribute is not the easy-to-wake-up attribute, determining whether the current sleeping posture of the target user is a comfortable sleeping posture based on the target body parameter of the target user collected by the wearable device; When the sleeping posture is not the comfortable sleeping posture, generating a control parameter corresponding to the sleeping carrier based on the sleeping posture; Based on the generated control parameters corresponding to the sleep carrier, the sleep carrier is controlled to perform a matching operation.

6. The method for controlling a smart device in a sleep state according to claim 1, wherein: After controlling the working state of each smart device based on the generated control parameters corresponding to each smart device, the method further includes: Acquire the historical sleep records of the target user from a user database of the target user; Analyzing the historical sleep records and the body parameters to obtain an adapted sleep duration corresponding to the target user; Detecting whether the target user's current sleep duration is greater than or equal to the adapted sleep duration; When the detection result is yes, determining at least one target smart device in the target area that needs to enter the wake-up mode, and generating a control parameter corresponding to each of the target smart devices in the wake-up mode; Based on the generated control parameters corresponding to each of the target smart devices, controlling each of the target smart devices to perform a matching operation; The step of analyzing the historical sleep records and the body parameters to obtain the adapted sleep duration corresponding to the target user includes: determining the sleep type of the target user according to the target user's current sleep falling asleep time; Obtaining, from the historical sleep records, an average sleep duration of all target sleep records matching the sleep type; Analyzing the sleep type and the body parameters to obtain an optimal sleep duration corresponding to the target user; Determining whether the average sleep duration is less than or equal to the optimal sleep duration; When the judgment result is yes, the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user; When the judgment result is no, the average value of the average sleep duration and the optimal sleep duration is determined as the adapted sleep duration corresponding to the target user.

7. A device for controlling a smart device in a sleep state, characterized in that: The device comprises: A collection module, configured to collect the current physical parameters of the target user based on the wearable device of the target user; a judgment module, configured to judge whether the target user is in a sleeping state based on the body parameters; a determination module, configured to, when the determination module determines that the target user is in the sleep state, determine the sleep state level of the target user based on the body parameters, and determine at least one smart device to be controlled in the target area corresponding to the target user; A generating module, configured to generate a control parameter corresponding to each of the smart devices based on the sleep state level; A control module, configured to control each of the smart devices to perform a matching operation based on the generated control parameters corresponding to each of the smart devices; The specific manner in which the determination module determines at least one smart device to be controlled in the target area corresponding to the target user is: determining, based on the body parameters, a set of sleep influencing factors that matches the sleep state level and / or the predetermined user type of the target user, the set of sleep influencing factors including positive influencing factors and / or negative influencing factors; Determining a smart device associated with each sleep influencing factor in the sleep influencing factor set, and determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as a smart device to be controlled in a target area corresponding to the target user; Furthermore, the determination module is further configured to, when the sleep influencing factor set includes at least one positive influencing factor and at least one negative influencing factor, determine whether there is a causal relationship between a certain positive influencing factor and a certain negative influencing factor in the sleep influencing factor set before determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user. If the judgment result is yes, delete the positive influencing factor from the sleep influencing factor set, and trigger the execution of the operation of determining the smart device associated with each sleep influencing factor in the sleep influencing factor set as the smart device to be controlled in the target area corresponding to the target user, wherein the existence of the causal relationship between a certain positive influencing factor and a certain negative influencing factor indicates that the positive influencing factor will cause the negative influencing factor.

8. A wearable device, characterized in that: Used to execute the method for controlling an intelligent device in a sleep state as described in any one of claims 1-6.

9. A device for controlling a smart device in a sleep state, characterized in that: The device comprises: a memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for controlling a smart device in a sleep state according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Auxiliary sleep control method and device based on wearable equipment

    CN113654218A

  • TWS Bluetooth earphone capable of intelligently identifying identity of user

    CN210405609U