WO2021196989A1 - Sleep state determination method and system, wearable device, and storage medium - Google Patents

Sleep state determination method and system, wearable device, and storage medium Download PDF

Info

Publication number
WO2021196989A1
WO2021196989A1 PCT/CN2021/079643 CN2021079643W WO2021196989A1 WO 2021196989 A1 WO2021196989 A1 WO 2021196989A1 CN 2021079643 W CN2021079643 W CN 2021079643W WO 2021196989 A1 WO2021196989 A1 WO 2021196989A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
state
user
information
wearable device
Prior art date
Application number
PCT/CN2021/079643
Other languages
French (fr)
Chinese (zh)
Inventor
许德省
李靖
许培达
周林峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021196989A1 publication Critical patent/WO2021196989A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Definitions

  • This application relates to the field of wearable devices, and in particular to a method, system, wearable device and storage medium for determining a sleep state.
  • Existing wearable devices generally judge whether the user enters the sleep state based on the motion data or physiological data detected by the wearable device.
  • the user plays with the mobile phone and other electronic devices for a long time before going to bed and after being awake, it cannot accurately determine whether the sleep state is the awake state or Sleeping state, so that accurate sleep data cannot be obtained.
  • the present application provides a method, system, wearable device, and storage medium for determining the sleep state, which can improve the accuracy of determining the sleep state, so as to obtain accurate sleep data.
  • a method for determining a sleep state including: an electronic device sends user information of the electronic device and state information of the electronic device to a wearable device; if the user information of the electronic device and the state of the wearable device If the user information is different, and/or the state information of the electronic device is an unused state, the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
  • the electronic device sends its user information and status information to the wearable device. If the user information of the electronic device is different from the user information of the wearable device, and/or the status information of the electronic device is not in use, it means that the current user is not in use.
  • the wearable device determines that the current user is not using the electronic device, it then determines whether the user's state is a sleep state based on the detected motion data and physiological data, so as to avoid misjudged the user's operating electronic device state as the sleep state.
  • a method for determining a sleep state including: a wearable device obtains user information of an electronic device and state information of the electronic device; if the user information of the electronic device is different from the user information of the wearable device, And/or the state information of the electronic device is an unused state, the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
  • the wearable device obtains the user information of the electronic device and the state information of the electronic device. If the user information of the electronic device and the user information of the wearable device are different, and/or the state information of the electronic device is in an unused state, the wearable device is based on The detected motion data and physiological data determine whether the user's state is a sleep state. Since the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, it means that the user is not using the electronic device. At this time, it is determined whether the user's state is based on the detected motion data and physiological data. In the sleep state, the accuracy of sleep state detection can be improved, thereby avoiding misjudgement of the state of the user operating the electronic device as the sleep state, and thus more accurate sleep data can be obtained.
  • the motion data detected by the wearable device is within the preset small motion range, but in some scenarios, when the user operates the electronic device, for example, the user is lying down and playing with the mobile phone before going to bed, the wearable device detects The obtained motion data is also within the preset small motion range. Therefore, it is easy to cause misjudgment to determine whether the user's state is a sleep state only based on whether the motion data is within the preset small motion range. Therefore, when the user state is awake, if the motion data detected by the wearable device is within the preset small motion threshold, the user may be in a sleep state or may be in a state of operating an electronic device.
  • the user information of the device and the state information of the electronic device are used to determine whether the user is operating the electronic device. If it is determined that the user is not operating the electronic device, then it is determined whether the user's state is a sleep state based on the detected motion data and physiological data.
  • the preset duration is to obtain the user information of the electronic device and the state information of the electronic device.
  • the duration of the action data within the preset small action threshold is greater than or equal to the preset duration, the user information of the electronic device and the status information of the electronic device are obtained to avoid the moment when the user's action status changes or the collection of the wearable device When it is error data, the user status is determined, thereby saving computing resources.
  • the acquisition of the user information of the electronic device by the wearable device and the state information of the electronic device includes: if it is detected that the user state is a sleep state, the wearable device acquires the electronic device User information and status information of the electronic device.
  • the sleep state can be switched to the awake state.
  • the method further includes:
  • the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is in the use state, it means that the current user is using the electronic device.
  • the user state is determined to be the sleep state.
  • the method further includes: according to the user information of the electronic device and the state information of the electronic device The state information of the electronic device corrects the user state.
  • the electronic device when the electronic device and the wearable device are not communicatively connected, the electronic device records the user information and status information of the electronic device, and when the electronic device is communicatively connected with the wearable device, the wearable device obtains the user information and status information of the electronic device in the past period , If it is determined that the user uses the electronic device in a certain period of time based on the user information and status information of the electronic device in the past period, and the user state of the period is the sleep state, the sleep state of the period of time is corrected to the awake state, thereby improving sleep Accuracy of data acquisition.
  • a device for determining a sleep state including:
  • the acquisition module is used for the wearable device to acquire the user information of the electronic device and the state information of the electronic device;
  • the judging module is configured to, if the user information of the electronic device and the user information of the wearable device are different, and/or the state information of the electronic device is in an unused state, the wearable device is configured according to the detected action data and The physiological data determines whether the user's state is a sleep state.
  • the acquiring module is specifically configured to:
  • the user state is the awake state
  • the motion data detected by the wearable device is within the preset small motion threshold range
  • the user information of the electronic device and the state information of the electronic device are acquired.
  • the acquiring module is specifically further configured to:
  • the wearable device If the motion data detected by the wearable device is within the preset small motion threshold range, and the time period during which the motion data is within the preset small motion threshold range is greater than or equal to the preset time period, the user information of the electronic device and the Status information of electronic equipment.
  • the acquiring module is specifically further configured to:
  • the wearable device obtains the user information of the electronic device and the state information of the electronic device.
  • the judgment module is further configured to:
  • the user state is set to the awake state.
  • the judgment module is further configured to:
  • the user status is corrected according to the user information of the electronic device and the status information of the electronic device.
  • a wearable device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • a wearable device is provided. The method for judging the sleep state described in the second aspect.
  • a system for determining a sleep state including an electronic device and the wearable device as described in the fourth aspect.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining a sleep state as described in the above-mentioned second aspect is implemented.
  • a computer program product is provided.
  • the terminal device executes the sleep state determination method described in the second aspect.
  • FIG. 1 is an architectural diagram of a system for determining a sleep state provided by an embodiment of the application
  • FIG. 2 is a schematic structural diagram of a wearable device provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of a method for determining a sleep state according to an embodiment of the application
  • FIG. 4 is a schematic flowchart of a method for determining a sleep state in an application scenario according to an embodiment of the application
  • FIG. 5 is a schematic flowchart of another method for determining a sleep state according to an embodiment of the application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the sleep state determination method provided by the embodiment of the application is applied to the sleep state determination system.
  • the sleep state determination system provided by the embodiment of the application includes a wearable device 100 and at least one electronic device 200.
  • the electronic device 200 It can be an electronic device frequently used by the user, which is bound to the wearable device 100.
  • the electronic device 200 sends the user information of the electronic device and the state information of the electronic device to the wearable device 100. If the user information of the electronic device is different from the user information of the wearable device , And/or the state information of the electronic device is an unused state, the wearable device 100 determines whether the user state is a sleep state according to the detected motion data and physiological data.
  • the motion data can be detected by a motion sensor on the wearable device 100, and the physiological data can be detected by a heart rate detection device on the wearable device 100. If the user information of the electronic device is different from the user information of the wearable device, or the state information of the electronic device is in an unused state, it means that the user is not using the electronic device. When it is confirmed that the user is not using the electronic device, it is determined whether the user's state is a sleep state based on the motion data and physiological data detected by the wearable device 100, which can improve the accuracy of sleep state detection, thereby avoiding the user's use of the electronic device. The state is misjudged as a sleep state.
  • the wearable device 100 may be a smart bracelet, a smart watch, etc.
  • the electronic device 200 may be a mobile phone, a tablet computer, etc., and the embodiment of the present application does not impose any restrictions on the specific types of the wearable device 100 and the electronic device 200.
  • the wearable device includes components such as a processor 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless communication module 170, and a power supply 180.
  • a processor 110 a memory 120
  • an input unit 130 a display unit 140
  • a sensor 150 a sensor 150
  • an audio circuit 160 a wireless communication module 170
  • a power supply 180 a power supply 180.
  • FIG. 2 does not constitute a limitation on the wearable device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the processor 110 is the control center of the wearable device. It uses various interfaces and lines to connect the various parts of the entire wearable device, runs or executes software programs and/or modules stored in the memory 120, and calls data stored in the memory 120 , Perform various functions of the wearable device and process data, so as to monitor the wearable device as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs. And so on, the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the memory 120 may be used to store software programs and modules.
  • the processor 110 executes various functional applications and data processing of the wearable device by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of wearable devices, etc.
  • the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 130 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the wearable device.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • the touch panel 131 also known as a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into contact coordinates, and then It is sent to the processor 110, and can receive and execute the commands sent by the processor 110.
  • the touch panel 131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 130 may also include other input devices 132.
  • the other input device 132 may include, but is not limited to, one or more of a crown, a volume control button, a switch button, and the like.
  • the display unit 140 may be used to display information input by the user or information provided to the user and various menus of the wearable device.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (RLED), or the like.
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 responds to the touch event. The type provides corresponding visual output on the display panel 141.
  • the touch panel 131 and the display panel 141 are used as two independent components to implement the input and input functions of the wearable device, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated And realize the input and output functions of the wearable device.
  • the wearable device may also include at least one sensor 150, such as a capacitance sensor, a motion sensor, and other sensors.
  • the capacitance sensor is used to detect the capacitance between the human body and the wearable device, and the capacitance can reflect whether the human body and the wearable device are in good contact.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the wearable device (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for wearable devices, gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors can also be configured, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the wearable device.
  • the audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, and the audio circuit 160 After being received, it is converted into audio data, and then the audio data is input to the processor 110, or the audio data is output to the memory 120 for further processing.
  • the wireless communication module 170 can be used to support wireless communication data between the wearable device and other electronic devices including BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technology exchange.
  • the wearable device also includes a power supply 180 (such as a battery) for supplying power to various components.
  • a power supply 180 (such as a battery) for supplying power to various components.
  • the power supply can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management functions through the power management system .
  • FIG. 3 shows a schematic flowchart of a method for determining a sleep state provided in an embodiment of the present application, and the method is executed by the wearable device 100. As shown in Figure 3, the method includes:
  • the wearable device obtains user information of an electronic device and state information of the electronic device.
  • the user information of the electronic device can be the user's fingerprint, voiceprint, or face.
  • the status information of the electronic device includes the state of use and the unused state.
  • the wearable device can be based on the power information of the electronic device, screen status information, and application programs. One or more pieces of information in the operating state information determine whether the electronic device is in use.
  • the wearable device determines according to the detected motion data and physiological data Whether the user status is sleep status.
  • the user information of the wearable device may be the user's fingerprint, voiceprint, face, or heart rate.
  • the electronic device includes one or more user information such as fingerprints, voiceprints, or facial information of the user, and for the same user, the user information is related to each other.
  • the wearable device includes one or more user information such as the user's fingerprint, voiceprint, face, or heart rate. For the same user, the user information is related to each other. If the user information of the wearable device is the same as the user information of the electronic device, or the user information associated with the current user information of the wearable device is the same as the user information of the electronic device, the user information of the electronic device is the same as the user information of the wearable device.
  • the wearable device detects the user's fingerprint information, and if the fingerprint information is the same, the user information of the electronic device and the user information of the wearable device are the same.
  • the electronic device detects the user’s fingerprint information and the wearable device detects the user’s heart rate information if the fingerprint information associated with the heart rate information is the same as the fingerprint information detected by the electronic device, the user information of the electronic device is the same as that of the wearable device. The user information is the same, otherwise, the user information of the electronic device is different from the user information of the wearable device.
  • the wearable device determines whether the user's state is a sleep state based on the detected motion data and physiological data.
  • the motion data can be acceleration values or motion amplitude values, etc., which can be collected by acceleration sensors, gyroscopes, or pressure sensors on the wearable device, which can characterize the severity of the user's actions.
  • Physiological data can be heart rate, pulse, blood oxygen, etc., and can be collected by a heart rate detection device or a blood oxygen collection device on a wearable device.
  • the wearable device compares the preset motion data and physiological data in the sleep state with the currently detected motion data and physiological data to determine whether the user is in a sleep state.
  • the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, it means that the user is using the electronic device and the user state is set to the awake state.
  • the motion data detected by the wearable device is within the preset small motion threshold range.
  • the motion data detected by the wearable device is generally within the preset small motion threshold range. At this time, if only based on the detected motion data It is easy to cause misjudgment by judging whether the user's state is a sleep state based on physiological data.
  • the wearable device detects the user's motion data. If the current user state is awake, the motion data detected by the wearable device is within the preset small motion threshold range, indicating that the user is likely In the sleep state, the user information of the electronic device and the state information of the electronic device are acquired at this time, and it is determined whether the user uses the electronic device. If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is in an unused state, it is determined that the user is not using the electronic device.
  • the user's state is a sleep state based on the detected motion data and physiological data, which can prevent the user's state of operating the electronic device before going to bed from being misjudged as the sleep state.
  • the current user state is awake, and the motion data detected by the wearable device is within the preset small motion threshold range, then further detecting the length of time that the motion data is within the preset small motion threshold range If the duration of the action data within the preset small action threshold is greater than or equal to the preset duration, then the user information of the electronic device and the state information of the electronic device are obtained to determine whether the user is using the electronic device, which can prevent the wearable device from acting Data measurement errors or other user actions are misjudged as small actions, which improves the accuracy of data analysis.
  • the motion data and physiological data are detected. If the motion data is detected to be within the preset small motion threshold range, the time period during which the motion data is within the preset small motion threshold is counted; if the motion data is in the preset range Set the time within the small motion threshold range to be less than the preset duration, then determine whether the user is in a sleep state based on the motion data and physiological data; if the motion data is within the preset small motion threshold range for the duration greater than or equal to the preset duration, obtain the electronic device User Info.
  • the user information of the electronic device is different from the user information of the wearable device, it is determined whether the user state is a sleep state according to the motion data and physiological data; if the user information of the electronic device is the same as the user information of the wearable device, the state information of the electronic device is obtained. If the state information of the electronic device within the preset time period is not in use, it is determined whether the user state is a sleep state based on the action data and physiological data; if the state information of the electronic device within the preset time period is in use state, keep the user state as Sober state.
  • the wearable device detects the user's action data. If the current user state is a sleep state, the wearable device obtains the user information of the electronic device and the state information of the electronic device, and determines whether the user uses the electronic device. If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, it means that the user uses the electronic device and switches the user state to the awake state.
  • the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, indicating that the user is not using the electronic device, then it is determined whether the user state is sleep based on the detected motion data and physiological data The state prevents the user from erroneously judging the state of operating the electronic device after being awake as the sleeping state.
  • the wearable device obtains the user information of the electronic device and the state information of the electronic device. If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, it means that the user is not in use.
  • the wearable device determines whether the user's state is a sleep state based on the detected motion data and physiological data, so as to avoid misinterpreting the state of the user operating the electronic device as a sleep state, so as to obtain accurate Sleep data.
  • FIG. 5 shows a schematic flow diagram of a method for determining a sleep state provided in an embodiment of the present application. As shown in FIG. 5, the method includes:
  • the electronic device sends the user information of the electronic device and the state information of the electronic device to the wearable device.
  • the electronic device records the state information of the electronic device.
  • the state information of the electronic device includes whether the electronic device is in use and the time the electronic device is in use. If the electronic device and the wearable device are in a communication connection state, When the use state of the electronic device changes, the electronic device sends the state information and user information of the electronic device to the wearable device in real time. If the current electronic device is not connected to the wearable device, the electronic device stores the state information of the electronic device and the corresponding user information. When the electronic device establishes a communication connection with the wearable device, the electronic device will store the state information of the electronic device and the corresponding user information Send to the wearable device.
  • the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
  • the wearable device determines the user based on the detected motion data and physiological data Whether the state is a sleep state.
  • the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is a use state, indicating that the user is operating the electronic device. If the wearable device obtains the current state information and user information of the electronic device, and determines that the user is operating the electronic device according to the current state information and user information of the electronic device, the wearable device directly sets the current user state to the awake state. If the wearable device acquires the state information and user information of the electronic device in a certain period of time in the past, the wearable device corrects the user state of the period according to the state information and user information of the electronic device.
  • the electronic device when the electronic device is not in a communication connection with the wearable device, it records the time period during which the state information of the electronic device is in use, and the user information corresponding to the time period.
  • the electronic device establishes a communication connection with the wearable device, the recorded The status information of the electronic device is the time period of the use state and the corresponding user information is sent to the wearable device. If it is determined that the user is operating the electronic device in the time period based on the use state and user information of the time period, the wearable device will use the time period The state of the user is corrected to the awake state, thereby improving the accuracy of the collected sleep data.
  • the electronic device sends the user information of the electronic device and the state information of the electronic device to the wearable device.
  • the wearable device is used to determine whether the user operates the electronic device according to the user information and state information of the electronic device. Different from the user information of the wearable device, and/or the state information of the electronic device is not in use, indicating that the user is not using the electronic device.
  • the wearable device determines whether the user's state is a sleep state based on the detected motion data and physiological data. Prevent the user from misjudged the state of operating the electronic device as the sleep state.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include at least: any entity or device capable of carrying computer program code to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the disclosed apparatus/network equipment and method may be implemented in other ways.
  • the device/network device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Abstract

Disclosed are a sleep state determination method and system, a wearable device, and a storage medium, wherein same are applicable in the field of wearable devices. The sleep state determination method comprises: a wearable device acquiring user information of an electronic device and state information of the electronic device (S101); and if the user information of the electronic device is different from user information of the wearable device, and/or the state information of the electronic device indicates an unused state, the wearable device further determining, according to detected action data and physiological data, whether the user state is a sleep state (S102), and thereby avoiding erroneously determining the state in which a user operates an electronic device as a sleep state, and improving the accuracy of sleep data collection.

Description

睡眠状态的判断方法、系统、穿戴设备及存储介质Sleep state judgment method, system, wearable device and storage medium
本申请要求于2020年4月1日提交国家知识产权局、申请号为202010251078.6、申请名称为“睡眠状态的判断方法、系统、穿戴设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on April 1, 2020, the application number is 202010251078.6, and the application name is "Methods, systems, wearable devices and storage media for determining sleep state", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及穿戴设备领域,尤其涉及一种睡眠状态的判断方法、系统、穿戴设备及存储介质。This application relates to the field of wearable devices, and in particular to a method, system, wearable device and storage medium for determining a sleep state.
背景技术Background technique
现有的穿戴设备一般根据穿戴设备检测到的运动数据或者生理数据判断用户是否进入睡眠状态,在用户睡前和清醒后长时间玩手机等电子设备时,不能准确判断出睡眠状态是清醒状态或者入睡状态,从而不能获取准确的睡眠数据。Existing wearable devices generally judge whether the user enters the sleep state based on the motion data or physiological data detected by the wearable device. When the user plays with the mobile phone and other electronic devices for a long time before going to bed and after being awake, it cannot accurately determine whether the sleep state is the awake state or Sleeping state, so that accurate sleep data cannot be obtained.
发明内容Summary of the invention
本申请提供一种睡眠状态的判断方法、系统、穿戴设备及存储介质,可以提高睡眠状态的判断准确度,从而获取准确的睡眠数据。The present application provides a method, system, wearable device, and storage medium for determining the sleep state, which can improve the accuracy of determining the sleep state, so as to obtain accurate sleep data.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供一种睡眠状态的判断方法,包括:电子设备将电子设备的用户信息和所述电子设备的状态信息发送至穿戴设备;若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。In a first aspect, a method for determining a sleep state is provided, including: an electronic device sends user information of the electronic device and state information of the electronic device to a wearable device; if the user information of the electronic device and the state of the wearable device If the user information is different, and/or the state information of the electronic device is an unused state, the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
上述实施例中,电子设备将其用户信息和状态信息发送至穿戴设备,若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,说明当前用户未使用电子设备,穿戴设备在确定当前用户未使用电子设备时,再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态,避免将用户操作电子设备的状态误判为睡眠状态。In the above embodiment, the electronic device sends its user information and status information to the wearable device. If the user information of the electronic device is different from the user information of the wearable device, and/or the status information of the electronic device is not in use, it means that the current user is not in use. With electronic equipment, when the wearable device determines that the current user is not using the electronic device, it then determines whether the user's state is a sleep state based on the detected motion data and physiological data, so as to avoid misjudged the user's operating electronic device state as the sleep state.
第二方面,提供一种睡眠状态的判断方法,包括:穿戴设备获取电子设备的用户信息和所述电子设备的状态信息;若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。In a second aspect, a method for determining a sleep state is provided, including: a wearable device obtains user information of an electronic device and state information of the electronic device; if the user information of the electronic device is different from the user information of the wearable device, And/or the state information of the electronic device is an unused state, the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
上述实施例中,穿戴设备获取电子设备的用户信息和电子设备的状态信息,若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。由于电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,表示用户没有使用电子设备,此时再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态,能够提高睡眠状态检测的准确率,从而避免将用户操作电子 设备的状态误判为睡眠状态,进而能够获取更准确的睡眠数据。In the above embodiment, the wearable device obtains the user information of the electronic device and the state information of the electronic device. If the user information of the electronic device and the user information of the wearable device are different, and/or the state information of the electronic device is in an unused state, the wearable device is based on The detected motion data and physiological data determine whether the user's state is a sleep state. Since the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, it means that the user is not using the electronic device. At this time, it is determined whether the user's state is based on the detected motion data and physiological data. In the sleep state, the accuracy of sleep state detection can be improved, thereby avoiding misjudgement of the state of the user operating the electronic device as the sleep state, and thus more accurate sleep data can be obtained.
用户在处于睡眠状态时,穿戴设备检测到的动作数据处于预设的小动作范围内,但是在一些场景下,用户操作电子设备时,例如,用户在睡前躺着玩手机的场景,穿戴设备检测到的动作数据也处于预设的小动作范围内。因此,若仅根据动作数据是否处于预设的小动作范围内,来判断用户状态是否为睡眠状态,容易造成误判。因此,在用户状态为清醒状态时,若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,则用户有可能处于睡眠状态,也可能处于操作电子设备的状态,此时获取电子设备的用户信息和电子设备的状态信息,以判断用户是否操作电子设备,若确定用户未操作电子设备,再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。When the user is asleep, the motion data detected by the wearable device is within the preset small motion range, but in some scenarios, when the user operates the electronic device, for example, the user is lying down and playing with the mobile phone before going to bed, the wearable device detects The obtained motion data is also within the preset small motion range. Therefore, it is easy to cause misjudgment to determine whether the user's state is a sleep state only based on whether the motion data is within the preset small motion range. Therefore, when the user state is awake, if the motion data detected by the wearable device is within the preset small motion threshold, the user may be in a sleep state or may be in a state of operating an electronic device. The user information of the device and the state information of the electronic device are used to determine whether the user is operating the electronic device. If it is determined that the user is not operating the electronic device, then it is determined whether the user's state is a sleep state based on the detected motion data and physiological data.
在第二方面的一种可能的实现方式中,若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,且所述动作数据处于预设的小动作阈值范围内的时长大于或者等于预设时长,获取电子设备的用户信息和所述电子设备的状态信息。在动作数据处于预设的小动作阈值范围内的时长大于或者等于预设时长时,再获取电子设备的用户信息和电子设备的状态信息,避免在用户的动作状态改变的瞬间或者在穿戴设备采集的是误差数据时,进行用户状态的判定,从而节省计算资源。In a possible implementation of the second aspect, if the motion data detected by the wearable device is within the preset small motion threshold range, and the time period during which the motion data is within the preset small motion threshold range is greater than or equal to The preset duration is to obtain the user information of the electronic device and the state information of the electronic device. When the duration of the action data within the preset small action threshold is greater than or equal to the preset duration, the user information of the electronic device and the status information of the electronic device are obtained to avoid the moment when the user's action status changes or the collection of the wearable device When it is error data, the user status is determined, thereby saving computing resources.
在第二方面的一种可能的实现方式中,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息,包括:若检测到用户状态为睡眠状态,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息。当根据电子设备的用户信息和电子设备的状态信息检测到用户使用电子设备时,即可将睡眠状态切换为清醒状态。In a possible implementation of the second aspect, the acquisition of the user information of the electronic device by the wearable device and the state information of the electronic device includes: if it is detected that the user state is a sleep state, the wearable device acquires the electronic device User information and status information of the electronic device. When it is detected that the user uses the electronic device according to the user information of the electronic device and the state information of the electronic device, the sleep state can be switched to the awake state.
在第二方面的一种可能的实现方式中,在所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息之后,所述方法还包括:In a possible implementation of the second aspect, after the wearable device obtains the user information of the electronic device and the state information of the electronic device, the method further includes:
若所述电子设备的用户信息和所述穿戴设备的用户信息相同,且所述电子设备的状态信息为使用状态,说明当前用户在使用电子设备,此时将用户状态置为清醒状态,避免在用户操作电子设备时,将用户状态判定为睡眠状态。If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is in the use state, it means that the current user is using the electronic device. When the user operates the electronic device, the user state is determined to be the sleep state.
在第二方面的一种可能的实现方式中,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息之后,所述方法还包括:根据所述电子设备的用户信息和所述电子设备的状态信息对用户状态进行修正。具体地,在电子设备与穿戴设备未通讯连接时,电子设备记录电子设备的用户信息和状态信息,在电子设备与穿戴设备通讯连接时,穿戴设备获取过去时段的电子设备的用户信息和状态信息,若根据过去时段的电子设备的用户信息和状态信息判定用户在某个时段使用电子设备,且该时段的的用户状态为睡眠状态,则将该时段的睡眠状态修正为清醒状态,从而提高睡眠数据获取的准确性。In a possible implementation of the second aspect, after the wearable device obtains the user information of the electronic device and the state information of the electronic device, the method further includes: according to the user information of the electronic device and the state information of the electronic device The state information of the electronic device corrects the user state. Specifically, when the electronic device and the wearable device are not communicatively connected, the electronic device records the user information and status information of the electronic device, and when the electronic device is communicatively connected with the wearable device, the wearable device obtains the user information and status information of the electronic device in the past period , If it is determined that the user uses the electronic device in a certain period of time based on the user information and status information of the electronic device in the past period, and the user state of the period is the sleep state, the sleep state of the period of time is corrected to the awake state, thereby improving sleep Accuracy of data acquisition.
第三方面,提供一种睡眠状态的判断装置,包括:In a third aspect, a device for determining a sleep state is provided, including:
获取模块,用于穿戴设备获取电子设备的用户信息和所述电子设备的状态信息;The acquisition module is used for the wearable device to acquire the user information of the electronic device and the state information of the electronic device;
判断模块,用于若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。The judging module is configured to, if the user information of the electronic device and the user information of the wearable device are different, and/or the state information of the electronic device is in an unused state, the wearable device is configured according to the detected action data and The physiological data determines whether the user's state is a sleep state.
在第三方面的一种可能的实现方式中,所述获取模块具体用于:In a possible implementation manner of the third aspect, the acquiring module is specifically configured to:
在用户状态为清醒状态时,若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,获取电子设备的用户信息和所述电子设备的状态信息。When the user state is the awake state, if the motion data detected by the wearable device is within the preset small motion threshold range, the user information of the electronic device and the state information of the electronic device are acquired.
在第三方面的一种可能的实现方式中,所述获取模块具体还用于:In a possible implementation manner of the third aspect, the acquiring module is specifically further configured to:
若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,且所述动作数据处于预设的小动作阈值范围内的时长大于或者等于预设时长,获取电子设备的用户信息和所述电子设备的状态信息。If the motion data detected by the wearable device is within the preset small motion threshold range, and the time period during which the motion data is within the preset small motion threshold range is greater than or equal to the preset time period, the user information of the electronic device and the Status information of electronic equipment.
在第三方面的一种可能的实现方式中,所述获取模块具体还用于:In a possible implementation manner of the third aspect, the acquiring module is specifically further configured to:
若检测到用户状态为睡眠状态,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息。If it is detected that the user state is the sleep state, the wearable device obtains the user information of the electronic device and the state information of the electronic device.
在第三方面的一种可能的实现方式中,所述判断模块还用于:In a possible implementation manner of the third aspect, the judgment module is further configured to:
若所述电子设备的用户信息和所述穿戴设备的用户信息相同,且所述电子设备的状态信息为使用状态,将用户状态置为清醒状态。If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, the user state is set to the awake state.
在第三方面的一种可能的实现方式中,所述判断模块还用于:In a possible implementation manner of the third aspect, the judgment module is further configured to:
根据所述电子设备的用户信息和所述电子设备的状态信息对用户状态进行修正。The user status is corrected according to the user information of the electronic device and the status information of the electronic device.
第四方面,提供了一种穿戴设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第二方面所述的睡眠状态的判断方法。In a fourth aspect, a wearable device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, a wearable device is provided. The method for judging the sleep state described in the second aspect.
第五方面,提供了一种睡眠状态的判断系统,包括电子设备以及如上述第四方面所述的穿戴设备。In a fifth aspect, a system for determining a sleep state is provided, including an electronic device and the wearable device as described in the fourth aspect.
第六方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第二方面所述的睡眠状态的判断方法。In a sixth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining a sleep state as described in the above-mentioned second aspect is implemented.
第七方面,提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第二方面中所述的睡眠状态的判断方法。In a seventh aspect, a computer program product is provided. When the computer program product runs on a terminal device, the terminal device executes the sleep state determination method described in the second aspect.
可以理解的是,上述第三方面至第七方面的有益效果可以参见上述第二方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the third aspect to the seventh aspect, reference may be made to the related description in the second aspect, which is not repeated here.
附图说明Description of the drawings
图1为本申请实施例提供的睡眠状态的判断系统的架构图;FIG. 1 is an architectural diagram of a system for determining a sleep state provided by an embodiment of the application;
图2为本申请实施例提供的穿戴设备的结构示意图;FIG. 2 is a schematic structural diagram of a wearable device provided by an embodiment of the application;
图3为本申请实施例提供的一种睡眠状态的判断方法的流程示意图;FIG. 3 is a schematic flowchart of a method for determining a sleep state according to an embodiment of the application;
图4为本申请实施例提供的一种应用场景下的睡眠状态的判定方法的流程示意图;4 is a schematic flowchart of a method for determining a sleep state in an application scenario according to an embodiment of the application;
图5为本申请实施例提供的另一种睡眠状态的判断方法的流程示意图。FIG. 5 is a schematic flowchart of another method for determining a sleep state according to an embodiment of the application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特 征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。The reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
本申请实施例提供的睡眠状态的判断方法应用于睡眠状态的判断系统,如图1所示,本申请实施例提供的睡眠状态的判断系统包括穿戴设备100和至少一个电子设备200,电子设备200可以为用户经常使用的电子设备,与穿戴设备100绑定,电子设备200将电子设备的用户信息和电子设备的状态信息发送至穿戴设备100,若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,则穿戴设备100根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。其中,动作数据可以由穿戴设备100上的运动传感器检测得到,生理数据可以由穿戴设备100上的心率检测设备检测得到。若电子设备的用户信息和穿戴设备的用户信息不同,或者电子设备的状态信息为未使用状态,都说明用户未使用电子设备。在确认用户未使用电子设备的情况下,再根据穿戴设备100所检测到的动作数据和生理数据判断用户状态是否为睡眠状态,能够提高睡眠状态检测的准确度,从而避免将用户使用电子设备的状态误判为睡眠状态。The sleep state determination method provided by the embodiment of the application is applied to the sleep state determination system. As shown in FIG. 1, the sleep state determination system provided by the embodiment of the application includes a wearable device 100 and at least one electronic device 200. The electronic device 200 It can be an electronic device frequently used by the user, which is bound to the wearable device 100. The electronic device 200 sends the user information of the electronic device and the state information of the electronic device to the wearable device 100. If the user information of the electronic device is different from the user information of the wearable device , And/or the state information of the electronic device is an unused state, the wearable device 100 determines whether the user state is a sleep state according to the detected motion data and physiological data. The motion data can be detected by a motion sensor on the wearable device 100, and the physiological data can be detected by a heart rate detection device on the wearable device 100. If the user information of the electronic device is different from the user information of the wearable device, or the state information of the electronic device is in an unused state, it means that the user is not using the electronic device. When it is confirmed that the user is not using the electronic device, it is determined whether the user's state is a sleep state based on the motion data and physiological data detected by the wearable device 100, which can improve the accuracy of sleep state detection, thereby avoiding the user's use of the electronic device. The state is misjudged as a sleep state.
本申请实施例中,穿戴设备100可以为智能手环、智能手表等,电子设备200可以为手机、平板电脑等,本申请实施例对穿戴设备100和电子设备200的具体类型不做任何限制。In the embodiment of the present application, the wearable device 100 may be a smart bracelet, a smart watch, etc., and the electronic device 200 may be a mobile phone, a tablet computer, etc., and the embodiment of the present application does not impose any restrictions on the specific types of the wearable device 100 and the electronic device 200.
为了便于理解,首先介绍本申请实施例所涉及的穿戴设备。请参阅图2,本申请实施例提供的穿戴设备的包括处理器110、存储器120、输入单元130、显示单元140、传感器150、音频电路160、无线通信模块170以及电源180等部件。本领域技术人员可以理解,图2中示出的穿戴设备结构并不构成对穿戴设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。For ease of understanding, first introduce the wearable device involved in the embodiment of the present application. Referring to FIG. 2, the wearable device provided by the embodiment of the present application includes components such as a processor 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless communication module 170, and a power supply 180. Those skilled in the art can understand that the structure of the wearable device shown in FIG. 2 does not constitute a limitation on the wearable device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
下面结合图2对穿戴设备的各个构成部件进行具体的介绍:The following describes the components of the wearable device in detail with reference to Figure 2:
处理器110是穿戴设备的控制中心,利用各种接口和线路连接整个穿戴设备的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行穿戴设备的各种功能和处理数据,从而对穿戴设备进行整 体监控。可选的,处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the wearable device. It uses various interfaces and lines to connect the various parts of the entire wearable device, runs or executes software programs and/or modules stored in the memory 120, and calls data stored in the memory 120 , Perform various functions of the wearable device and process data, so as to monitor the wearable device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs. And so on, the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
存储器120可用于存储软件程序以及模块,处理器110通过运行存储在存储器120的软件程序以及模块,从而执行穿戴设备的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据穿戴设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 may be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the wearable device by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of wearable devices, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元130可用于接收输入的数字或字符信息,以及产生与穿戴设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于表冠、音量控制按键、开关按键等中的一种或多种。The input unit 130 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the wearable device. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into contact coordinates, and then It is sent to the processor 110, and can receive and execute the commands sent by the processor 110. In addition, the touch panel 131 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, the other input device 132 may include, but is not limited to, one or more of a crown, a volume control button, a switch button, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及穿戴设备的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,RLED)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现穿戴设备的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现穿戴设备的输入和输出功能。The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the wearable device. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (RLED), or the like. Further, the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 responds to the touch event. The type provides corresponding visual output on the display panel 141. Although in FIG. 1, the touch panel 131 and the display panel 141 are used as two independent components to implement the input and input functions of the wearable device, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated And realize the input and output functions of the wearable device.
穿戴设备还可包括至少一种传感器150,比如电容传感器、运动传感器以及其他传感器。具体地,电容传感器用于检测人体与穿戴设备之间的电容,该电容可以反映人体与穿戴设备是否接触良好。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别穿戴设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于穿戴设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The wearable device may also include at least one sensor 150, such as a capacitance sensor, a motion sensor, and other sensors. Specifically, the capacitance sensor is used to detect the capacitance between the human body and the wearable device, and the capacitance can reflect whether the human body and the wearable device are in good contact. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the wearable device (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for wearable devices, gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors can also be configured, here No longer.
音频电路160、扬声器161,传声器162可提供用户与穿戴设备之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输入处理器110,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the wearable device. The audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, and the audio circuit 160 After being received, it is converted into audio data, and then the audio data is input to the processor 110, or the audio data is output to the memory 120 for further processing.
无线通信模块170可以用于,支持穿戴设备与其他电子设备之间包括BT,WLAN(如Wi-Fi),Zigbee,FM,NFC,IR,或通用2.4G/5G无线通信技术等无线通信的数据交换。The wireless communication module 170 can be used to support wireless communication data between the wearable device and other electronic devices including BT, WLAN (such as Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technology exchange.
穿戴设备还包括给各个部件供电的电源180(比如电池),可选的,电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The wearable device also includes a power supply 180 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management functions through the power management system .
请参见图3,图3示出了本申请实施例中提供的睡眠状态的判断方法的流程示意图,该方法执行主体为穿戴设备100。如图3所示,该方法包括:Please refer to FIG. 3. FIG. 3 shows a schematic flowchart of a method for determining a sleep state provided in an embodiment of the present application, and the method is executed by the wearable device 100. As shown in Figure 3, the method includes:
S101:穿戴设备获取电子设备的用户信息和所述电子设备的状态信息。S101: The wearable device obtains user information of an electronic device and state information of the electronic device.
其中,电子设备的用户信息可以是用户的指纹、声纹或人脸等信息,电子设备的状态信息包括使用状态和未使用状态,穿戴设备可以根据电子设备的电量信息、屏幕状态信息、应用程序运行状态信息中的一个或多个信息判断电子设备是否处于使用状态。Among them, the user information of the electronic device can be the user's fingerprint, voiceprint, or face. The status information of the electronic device includes the state of use and the unused state. The wearable device can be based on the power information of the electronic device, screen status information, and application programs. One or more pieces of information in the operating state information determine whether the electronic device is in use.
S102:若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。S102: If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is in an unused state, the wearable device determines according to the detected motion data and physiological data Whether the user status is sleep status.
其中,穿戴设备的用户信息可以是用户的指纹、声纹、人脸或心率等信息。在一种可能的实现方式中,电子设备包括用户的指纹、声纹或人脸信息等一个或多个用户信息,对于同一个用户,各用户信息互相关联。穿戴设备包括用户的指纹、声纹、人脸或心率等一个或多个用户信息,对于同一个用户,各用户信息互相关联。若穿戴设备的用户信息与电子设备的用户信息相同,或者与穿戴设备的当前用户信息关联的用户信息与电子设备的用户信息相同,则电子设备的用户信息与穿戴设备的用户信息相同。例如,若电子设备检测到用户的指纹信息,穿戴设备检测到用户的指纹信息,若指纹信息相同,则电子设备的用户信息和穿戴设备的用户信息相同。又例如,若电子设备检测到用户的指纹信息,穿戴设备检测到用户的心率信息,若与心率信息关联的指纹信息与电子设备检测到的指纹信息相同,则电子设备的用户信息与穿戴设备的用户信息相同,否则,电子设备的用户信息与穿戴设备的用户信息不同。Among them, the user information of the wearable device may be the user's fingerprint, voiceprint, face, or heart rate. In a possible implementation manner, the electronic device includes one or more user information such as fingerprints, voiceprints, or facial information of the user, and for the same user, the user information is related to each other. The wearable device includes one or more user information such as the user's fingerprint, voiceprint, face, or heart rate. For the same user, the user information is related to each other. If the user information of the wearable device is the same as the user information of the electronic device, or the user information associated with the current user information of the wearable device is the same as the user information of the electronic device, the user information of the electronic device is the same as the user information of the wearable device. For example, if the electronic device detects the user's fingerprint information, the wearable device detects the user's fingerprint information, and if the fingerprint information is the same, the user information of the electronic device and the user information of the wearable device are the same. For another example, if the electronic device detects the user’s fingerprint information and the wearable device detects the user’s heart rate information, if the fingerprint information associated with the heart rate information is the same as the fingerprint information detected by the electronic device, the user information of the electronic device is the same as that of the wearable device. The user information is the same, otherwise, the user information of the electronic device is different from the user information of the wearable device.
若电子设备的用户信息和穿戴设备的用户信息不同,说明使用电子设备的用户不是当前用户;若电子设备的状态信息为未使用状态,说明电子设备未使用;电子设备满足任意一种状态,均说明用户未使用电子设备。在确定用户未使用电子设备时,穿戴设备再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。其中,动作数据可以是加速度值或者运动幅度值等,可以是由穿戴设备上的加速度传感器、陀螺仪或者压力传感器等采集的,可以表征用户动作的剧烈程度,根据用户的动作数据可以判定用户处于运动状态或者休息状态。生理数据可以是心率、脉搏、血氧等,可 以是由穿戴设备上的心率检测设备或者血氧采集设备采集到的。穿戴设备通过将预设的睡眠状态下的动作数据和生理数据,与当前检测到的动作数据和生理数据进行对比,判定用户是否处于睡眠状态。对应地,若电子设备的用户信息和穿戴设备的用户信息相同,且电子设备的状态信息为使用状态,说明用户在使用电子设备,将用户状态置为清醒状态。If the user information of the electronic device is different from the user information of the wearable device, it means that the user using the electronic device is not the current user; if the state information of the electronic device is unused, it means that the electronic device is not in use; the electronic device meets any state, both Explain that the user is not using electronic equipment. When it is determined that the user is not using the electronic device, the wearable device then determines whether the user's state is a sleep state based on the detected motion data and physiological data. Among them, the motion data can be acceleration values or motion amplitude values, etc., which can be collected by acceleration sensors, gyroscopes, or pressure sensors on the wearable device, which can characterize the severity of the user's actions. According to the user's motion data, it can be determined that the user is in Exercise state or rest state. Physiological data can be heart rate, pulse, blood oxygen, etc., and can be collected by a heart rate detection device or a blood oxygen collection device on a wearable device. The wearable device compares the preset motion data and physiological data in the sleep state with the currently detected motion data and physiological data to determine whether the user is in a sleep state. Correspondingly, if the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, it means that the user is using the electronic device and the user state is set to the awake state.
用户佩戴穿戴设备后,若用户处于睡眠状态,穿戴设备检测到的动作数据处于预设的小动作阈值范围内。但是用户在睡前躺着操作电子设备,或者在清醒后躺着操作电子设备时,穿戴设备检测到的动作数据一般也处于预设的小动作阈值范围内,此时若仅根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态,容易造成误判。After the user wears the wearable device, if the user is in a sleep state, the motion data detected by the wearable device is within the preset small motion threshold range. However, when the user is lying down to operate the electronic device before going to bed, or lying down to operate the electronic device after being awake, the motion data detected by the wearable device is generally within the preset small motion threshold range. At this time, if only based on the detected motion data It is easy to cause misjudgment by judging whether the user's state is a sleep state based on physiological data.
在一种应用场景中,用户佩戴穿戴设备后,穿戴设备检测用户的动作数据,若当前的用户状态为清醒状态,穿戴设备检测到的动作数据处于预设的小动作阈值范围内,说明用户有可能进入睡眠状态,此时获取电子设备的用户信息和电子设备的状态信息,判定用户是否使用电子设备。若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,则判定用户未使用电子设备。此时,再进一步根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态,能够防止将用户睡前操作电子设备的状态误判为睡眠状态。在一种可能的实现方式中,若当前的用户状态为清醒状态,且穿戴设备检测到的动作数据处于预设的小动作阈值范围内,则进一步检测动作数据处于预设的小动作阈值范围内的时长,若动作数据处于预设的小动作阈值范围内的时长大于或者等于预设时长,再获取电子设备的用户信息和电子设备的状态信息,以判定用户是否使用电子设备,能够防止将穿戴设备的动作数据的测量误差或者用户的其他举动误判为小动作,提高了数据分析的准确度。In an application scenario, after the user wears the wearable device, the wearable device detects the user's motion data. If the current user state is awake, the motion data detected by the wearable device is within the preset small motion threshold range, indicating that the user is likely In the sleep state, the user information of the electronic device and the state information of the electronic device are acquired at this time, and it is determined whether the user uses the electronic device. If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is in an unused state, it is determined that the user is not using the electronic device. At this time, it is further determined whether the user's state is a sleep state based on the detected motion data and physiological data, which can prevent the user's state of operating the electronic device before going to bed from being misjudged as the sleep state. In a possible implementation, if the current user state is awake, and the motion data detected by the wearable device is within the preset small motion threshold range, then further detecting the length of time that the motion data is within the preset small motion threshold range If the duration of the action data within the preset small action threshold is greater than or equal to the preset duration, then the user information of the electronic device and the state information of the electronic device are obtained to determine whether the user is using the electronic device, which can prevent the wearable device from acting Data measurement errors or other user actions are misjudged as small actions, which improves the accuracy of data analysis.
下面结合图4,介绍当前的用户状态为清醒状态时,睡眠状态的判断方法的具体流程。In the following, in conjunction with FIG. 4, the specific flow of the method for determining the sleep state when the current user state is the awake state is introduced.
如图4所示,用户佩戴穿戴设备后,检测动作数据和生理数据,若检测到动作数据处于预设小动作阈值范围内,统计动作数据处于预设小动作阈值范围内的时长;若动作数据处于预设小动作阈值范围内的时长小于预设时长,则根据动作数据和生理数据判断用户状态是否为睡眠状态;若动作数据处于预设小动作阈值范围内的时长大于或者等于预设时长,获取电子设备的用户信息。若电子设备的用户信息和穿戴设备的用户信息不同,则根据动作数据和生理数据判断用户状态是否为睡眠状态;若电子设备的用户信息和穿戴设备的用户信息相同,获取电子设备的状态信息。若电子设备在预设时长内的状态信息为未使用状态,则根据动作数据和生理数据判断用户状态是否为睡眠状态;若电子设备在预设时长内的状态信息为使用状态,保持用户状态为清醒状态。As shown in Figure 4, after the user wears the wearable device, the motion data and physiological data are detected. If the motion data is detected to be within the preset small motion threshold range, the time period during which the motion data is within the preset small motion threshold is counted; if the motion data is in the preset range Set the time within the small motion threshold range to be less than the preset duration, then determine whether the user is in a sleep state based on the motion data and physiological data; if the motion data is within the preset small motion threshold range for the duration greater than or equal to the preset duration, obtain the electronic device User Info. If the user information of the electronic device is different from the user information of the wearable device, it is determined whether the user state is a sleep state according to the motion data and physiological data; if the user information of the electronic device is the same as the user information of the wearable device, the state information of the electronic device is obtained. If the state information of the electronic device within the preset time period is not in use, it is determined whether the user state is a sleep state based on the action data and physiological data; if the state information of the electronic device within the preset time period is in use state, keep the user state as Sober state.
在另一种应用场景中,穿戴设备检测用户的动作数据,若当前的用户状态为睡眠状态,穿戴设备获取电子设备的用户信息和电子设备的状态信息,判定用户是否使用电子设备。若电子设备的用户信息和穿戴设备的用户信息相同,且电子设备的状态信息为使用状态,说明用户使用电子设备,将用户状态切换为清醒状态。若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,说明用户未使用电子设备,则根据检测到的动作数据和生理数据判断用户状态是否为睡眠 状态,防止将用户清醒后操作电子设备的状态误判为睡眠状态。In another application scenario, the wearable device detects the user's action data. If the current user state is a sleep state, the wearable device obtains the user information of the electronic device and the state information of the electronic device, and determines whether the user uses the electronic device. If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, it means that the user uses the electronic device and switches the user state to the awake state. If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, indicating that the user is not using the electronic device, then it is determined whether the user state is sleep based on the detected motion data and physiological data The state prevents the user from erroneously judging the state of operating the electronic device after being awake as the sleeping state.
上述实施例中,穿戴设备获取电子设备的用户信息和电子设备的状态信息,若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,说明用户未使用电子设备,确定用户未使用电子设备后,穿戴设备再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态,避免将用户操作电子设备的状态误判为睡眠状态,从而获取准确的睡眠数据。In the above embodiment, the wearable device obtains the user information of the electronic device and the state information of the electronic device. If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, it means that the user is not in use. Using electronic devices, after determining that the user is not using the electronic device, the wearable device determines whether the user's state is a sleep state based on the detected motion data and physiological data, so as to avoid misinterpreting the state of the user operating the electronic device as a sleep state, so as to obtain accurate Sleep data.
请参见图5,图5示出了本申请实施例中提供的睡眠状态的判断方法的具体流程示意图,如图5所示,该方法包括:Please refer to FIG. 5. FIG. 5 shows a schematic flow diagram of a method for determining a sleep state provided in an embodiment of the present application. As shown in FIG. 5, the method includes:
S201:电子设备将电子设备的用户信息和所述电子设备的状态信息发送至穿戴设备。S201: The electronic device sends the user information of the electronic device and the state information of the electronic device to the wearable device.
在一种可能的实现方式中,电子设备记录电子设备的状态信息,电子设备的状态信息包括电子设备是否处于使用状态及电子设备处于使用状态的时间,若电子设备与穿戴设备处于通讯连接状态,则电子设备在电子设备的使用状态发生改变时,实时将电子设备的状态信息和用户信息发送至穿戴设备。若当前电子设备与穿戴设备未连接,电子设备存储电子设备的状态信息及对应的用户信息,当电子设备与穿戴设备建立通讯连接时,电子设备将存储的电子设备的状态信息和对应的用户信息发送至穿戴设备。In a possible implementation, the electronic device records the state information of the electronic device. The state information of the electronic device includes whether the electronic device is in use and the time the electronic device is in use. If the electronic device and the wearable device are in a communication connection state, When the use state of the electronic device changes, the electronic device sends the state information and user information of the electronic device to the wearable device in real time. If the current electronic device is not connected to the wearable device, the electronic device stores the state information of the electronic device and the corresponding user information. When the electronic device establishes a communication connection with the wearable device, the electronic device will store the state information of the electronic device and the corresponding user information Send to the wearable device.
S202:若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,则穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。S202: If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is an unused state, the wearable device determines whether the user state is a sleep state according to the detected motion data and physiological data.
具体地,电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,判定用户未使用电子设备,穿戴设备再根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。Specifically, if the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is not in use, it is determined that the user is not using the electronic device, and the wearable device then determines the user based on the detected motion data and physiological data Whether the state is a sleep state.
S203:若电子设备的用户信息和穿戴设备的用户信息相同,且电子设备的状态信息为使用状态,将用户状态置为清醒状态。S203: If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, set the user state to the awake state.
具体地,电子设备的用户信息和穿戴设备的用户信息相同,且电子设备的状态信息为使用状态,说明用户在操作电子设备。若穿戴设备获取的是电子设备当前的状态信息和用户信息,根据电子设备当前的状态信息和用户信息判定出用户在操作电子设备,则穿戴设备直接将当前的用户状态置为清醒状态。若穿戴设备获取的是电子设备在过去某个时段的状态信息和用户信息,则穿戴设备根据电子设备的状态信息和用户信息修正该时段的用户状态。例如,电子设备在与穿戴设备未进行通讯连接时,记录电子设备的状态信息为使用状态的时间段,及该时间段对应的用户信息,在电子设备与穿戴设备建立通讯连接时,将记录的电子设备的状态信息为使用状态的时间段和对应的用户信息发送至穿戴设备,若根据该时间段的使用状态和用户信息,判定出用户在该时间段操作电子设备,穿戴设备将该时间段的用户状态修正为清醒状态,从而提高了采集的睡眠数据的准确性。Specifically, the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is a use state, indicating that the user is operating the electronic device. If the wearable device obtains the current state information and user information of the electronic device, and determines that the user is operating the electronic device according to the current state information and user information of the electronic device, the wearable device directly sets the current user state to the awake state. If the wearable device acquires the state information and user information of the electronic device in a certain period of time in the past, the wearable device corrects the user state of the period according to the state information and user information of the electronic device. For example, when the electronic device is not in a communication connection with the wearable device, it records the time period during which the state information of the electronic device is in use, and the user information corresponding to the time period. When the electronic device establishes a communication connection with the wearable device, the recorded The status information of the electronic device is the time period of the use state and the corresponding user information is sent to the wearable device. If it is determined that the user is operating the electronic device in the time period based on the use state and user information of the time period, the wearable device will use the time period The state of the user is corrected to the awake state, thereby improving the accuracy of the collected sleep data.
上述实施例中,电子设备将电子设备的用户信息和电子设备的状态信息发送至穿戴设备,穿戴设备用于根据电子设备的用户信息和状态信息判定用户是否操作电子设备,若电子设备的用户信息和穿戴设备的用户信息不同,和/或电子设备的状态信息为未使用状态,说明用户未使用电子设备,此时穿戴设备再根据检测到的动作数据和生 理数据判断用户状态是否为睡眠状态,防止将用户操作电子设备的状态误判为睡眠状态。In the above embodiment, the electronic device sends the user information of the electronic device and the state information of the electronic device to the wearable device. The wearable device is used to determine whether the user operates the electronic device according to the user information and state information of the electronic device. Different from the user information of the wearable device, and/or the state information of the electronic device is not in use, indicating that the user is not using the electronic device. At this time, the wearable device determines whether the user's state is a sleep state based on the detected motion data and physiological data. Prevent the user from misjudged the state of operating the electronic device as the sleep state.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in the present application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. For example, U disk, mobile hard disk, floppy disk or CD-ROM, etc.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network equipment and method may be implemented in other ways. For example, the device/network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功 能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above are only specific implementations of this application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application shall be covered by this application. Within the scope of protection applied for. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (10)

  1. 一种睡眠状态的判断方法,其特征在于,包括:A method for judging sleep state, characterized in that it includes:
    电子设备将电子设备的用户信息和所述电子设备的状态信息发送至穿戴设备;The electronic device sends the user information of the electronic device and the state information of the electronic device to the wearable device;
    若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is in an unused state, the wearable device determines the user state based on the detected motion data and physiological data Whether it is a sleep state.
  2. 一种睡眠状态的判断方法,其特征在于,包括:A method for judging sleep state, characterized in that it includes:
    穿戴设备获取电子设备的用户信息和所述电子设备的状态信息;The wearable device obtains user information of the electronic device and state information of the electronic device;
    若所述电子设备的用户信息和所述穿戴设备的用户信息不同,和/或所述电子设备的状态信息为未使用状态,则所述穿戴设备根据检测到的动作数据和生理数据判断用户状态是否为睡眠状态。If the user information of the electronic device is different from the user information of the wearable device, and/or the state information of the electronic device is in an unused state, the wearable device determines the user state based on the detected motion data and physiological data Whether it is a sleep state.
  3. 如权利要求2所述的睡眠状态的判断方法,其特征在于,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息,包括:The method for determining a sleep state according to claim 2, wherein the acquiring, by the wearable device, the user information of the electronic device and the state information of the electronic device comprises:
    在用户状态为清醒状态时,若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,获取电子设备的用户信息和所述电子设备的状态信息。When the user state is the awake state, if the motion data detected by the wearable device is within the preset small motion threshold range, the user information of the electronic device and the state information of the electronic device are acquired.
  4. 如权利要求3所述的睡眠状态的判断方法,其特征在于,所述若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,获取电子设备的用户信息和所述电子设备的状态信息,包括:The method for determining a sleep state according to claim 3, wherein if the motion data detected by the wearable device is within a preset small motion threshold, the user information of the electronic device and the information of the electronic device are acquired. Status information, including:
    若所述穿戴设备检测到的动作数据处于预设的小动作阈值范围内,且所述动作数据处于预设的小动作阈值范围内的时长大于或者等于预设时长,获取电子设备的用户信息和所述电子设备的状态信息。If the motion data detected by the wearable device is within the preset small motion threshold range, and the time period during which the motion data is within the preset small motion threshold range is greater than or equal to the preset time period, the user information of the electronic device and the Status information of electronic equipment.
  5. 如权利要求2所述的睡眠状态的判断方法,其特征在于,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息,包括:The method for determining a sleep state according to claim 2, wherein the acquiring, by the wearable device, the user information of the electronic device and the state information of the electronic device comprises:
    若检测到用户状态为睡眠状态,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息。If it is detected that the user state is the sleep state, the wearable device obtains the user information of the electronic device and the state information of the electronic device.
  6. 如权利要求2所述的睡眠状态的判断方法,其特征在于,在所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息之后,所述方法还包括:The method for determining a sleep state according to claim 2, wherein after the wearable device obtains user information of the electronic device and state information of the electronic device, the method further comprises:
    若所述电子设备的用户信息和所述穿戴设备的用户信息相同,且所述电子设备的状态信息为使用状态,将用户状态置为清醒状态。If the user information of the electronic device is the same as the user information of the wearable device, and the state information of the electronic device is the use state, the user state is set to the awake state.
  7. 如权利要求2至6任一项所述的睡眠状态的判断方法,其特征在于,所述穿戴设备获取电子设备的用户信息和所述电子设备的状态信息之后,所述方法还包括:The method for determining a sleep state according to any one of claims 2 to 6, wherein after the wearable device obtains the user information of the electronic device and the state information of the electronic device, the method further comprises:
    根据所述电子设备的用户信息和所述电子设备的状态信息对所述用户状态进行修正。The user state is corrected according to the user information of the electronic device and the state information of the electronic device.
  8. 一种穿戴设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求2至7任一项所述的方法。A wearable device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 2 to 7. The method of any one.
  9. 一种睡眠状态的判断系统,其特征在于,包括电子设备以及如权利要求8所述的穿戴设备。A system for judging a sleep state, which is characterized by comprising an electronic device and the wearable device according to claim 8.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在 于,所述计算机程序被处理器执行时实现如权利要求2至7任一项所述的方法。A computer-readable storage medium storing a computer program, which is characterized in that, when the computer program is executed by a processor, the method according to any one of claims 2 to 7 is implemented.
PCT/CN2021/079643 2020-04-01 2021-03-09 Sleep state determination method and system, wearable device, and storage medium WO2021196989A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010251078.6A CN113495609A (en) 2020-04-01 2020-04-01 Sleep state judgment method and system, wearable device and storage medium
CN202010251078.6 2020-04-01

Publications (1)

Publication Number Publication Date
WO2021196989A1 true WO2021196989A1 (en) 2021-10-07

Family

ID=77927720

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079643 WO2021196989A1 (en) 2020-04-01 2021-03-09 Sleep state determination method and system, wearable device, and storage medium

Country Status (2)

Country Link
CN (1) CN113495609A (en)
WO (1) WO2021196989A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114576840A (en) * 2021-11-25 2022-06-03 珠海格力电器股份有限公司 Method, electronic device and medium for shutdown based on WIFI channel state detection
CN117731245A (en) * 2024-02-20 2024-03-22 深圳市星迈科技有限公司 Sleep monitoring method and system based on intelligent watch and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117481614A (en) * 2023-12-26 2024-02-02 荣耀终端有限公司 Sleep state detection method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045386A (en) * 2015-06-30 2015-11-11 广东美的制冷设备有限公司 Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system
CN105897520A (en) * 2015-11-11 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent household control method, intelligent household device and wearable device
CN110151136A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 It has ready conditions with reference to heart rate sleep state monitoring method, device, equipment and medium
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045386A (en) * 2015-06-30 2015-11-11 广东美的制冷设备有限公司 Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system
CN105897520A (en) * 2015-11-11 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent household control method, intelligent household device and wearable device
CN110151136A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 It has ready conditions with reference to heart rate sleep state monitoring method, device, equipment and medium
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114576840A (en) * 2021-11-25 2022-06-03 珠海格力电器股份有限公司 Method, electronic device and medium for shutdown based on WIFI channel state detection
CN114576840B (en) * 2021-11-25 2023-06-23 珠海格力电器股份有限公司 Method, electronic equipment and medium for shutdown based on WIFI channel state detection
CN117731245A (en) * 2024-02-20 2024-03-22 深圳市星迈科技有限公司 Sleep monitoring method and system based on intelligent watch and readable storage medium

Also Published As

Publication number Publication date
CN113495609A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
WO2021196989A1 (en) Sleep state determination method and system, wearable device, and storage medium
US8831240B2 (en) Bluetooth device and audio playing method using the same
US20170255767A1 (en) Identity Authentication Method, Identity Authentication Device, And Terminal
CN109381165B (en) Skin detection method and mobile terminal
CN103976730A (en) Portable physiological parameter measuring instrument and physiological parameter measuring function quick starting method
CN104919396B (en) Shaken hands in head mounted display using body
WO2019218843A1 (en) Key configuration method and device, and mobile terminal and storage medium
WO2015120611A1 (en) Intelligent response method of user equipment, and user equipment
CN109065060B (en) Voice awakening method and terminal
US20170308182A1 (en) Mechanical Detection of a Touch Movement Using a Sensor and a Special Surface Pattern System and Method
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
US10951754B2 (en) Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal
WO2018040009A1 (en) Method, terminal, handwriting stylus, and system for signature verification
KR102422181B1 (en) Method for controling a display of an electronic device and the electronic device thereof
CN109753777B (en) Identity recognition method, identity recognition device, storage medium and mobile terminal
US20190115107A1 (en) Electronic device and method for providing stress index corresponding to activity of user
CN108012026B (en) Eyesight protection method and mobile terminal
WO2021185210A1 (en) Skin quality test method, and electronic device
CN109756626B (en) Reminding method and mobile terminal
WO2015081558A1 (en) Method for controlling terminal device, and wearable electronic device
CN107870674A (en) A kind of program starts method and mobile terminal
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
KR20210041381A (en) Electronic device including a Ultra-wave Sensor And operation method thereof
CN108898000A (en) A kind of method and terminal solving lock screen
CN108874281A (en) A kind of application program launching method and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21781185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21781185

Country of ref document: EP

Kind code of ref document: A1