CN113495609A - Sleep state judgment method and system, wearable device and storage medium - Google Patents

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

Info

Publication number
CN113495609A
CN113495609A CN202010251078.6A CN202010251078A CN113495609A CN 113495609 A CN113495609 A CN 113495609A CN 202010251078 A CN202010251078 A CN 202010251078A CN 113495609 A CN113495609 A CN 113495609A
Authority
CN
China
Prior art keywords
state
user
electronic device
information
user information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010251078.6A
Other languages
Chinese (zh)
Inventor
许德省
李靖
许培达
周林峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010251078.6A priority Critical patent/CN113495609A/en
Priority to PCT/CN2021/079643 priority patent/WO2021196989A1/en
Publication of CN113495609A publication Critical patent/CN113495609A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application is suitable for the field of wearable equipment, and provides a sleep state judgment method, a sleep state judgment system, wearable equipment and a storage medium, wherein the sleep state judgment method comprises the following steps: the electronic equipment sends the user information of the electronic equipment and the state information of the electronic equipment to the wearable equipment, if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the electronic equipment is not used by a user currently, and when the user is determined not to use the electronic equipment, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and the physiological data, so that the state of the user operating the electronic equipment is prevented from being judged to be in the sleep state by mistake, and the accuracy of sleep data acquisition is improved.

Description

Sleep state judgment method and system, wearable device and storage medium
Technical Field
The present application relates to the field of wearable devices, and in particular, to a method and a system for determining a sleep state, a wearable device, and a storage medium.
Background
The existing wearable device generally judges whether a user enters a sleep state according to motion data or physiological data detected by the wearable device, and when the user plays electronic equipment such as a mobile phone before sleeping and after waking for a long time, the sleep state cannot be accurately judged to be a waking state or a falling-asleep state, so that accurate sleep data cannot be acquired.
Disclosure of Invention
The application provides a sleep state judging method, a sleep state judging system, wearable equipment and a storage medium, which can improve the judging accuracy of the sleep state so as to acquire accurate sleep data.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a method for determining a sleep state is provided, including: the electronic equipment sends user information of the electronic equipment and state information of the electronic equipment to the wearable equipment; and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and physiological data.
In the above embodiment, the electronic device sends the user information and the state information of the electronic device to the wearable device, and 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 indicates that the user is not using the electronic device currently, and when the wearable device determines that the user is not using the electronic device currently, the wearable device determines whether the user state is in a sleep state according to the detected motion data and physiological data, so as to avoid misinterpretation of the state of the user operating the electronic device as the sleep state.
In a second aspect, a method for determining a sleep state is provided, including: the wearable device acquires user information of the electronic device and state information of the electronic device; and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action 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, and 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 whether the user state is in a sleep state according to the detected motion data and physiological data. Because the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the fact that the user does not use the electronic equipment is indicated, whether the user state is in a sleep state or not is judged according to the detected action data and the physiological data, the accuracy rate of sleep state detection can be improved, the state of the electronic equipment operated by the user is prevented from being judged to be in the sleep state by mistake, and then more accurate sleep data can be obtained.
When the user is in a sleep state, the motion data detected by the wearable device is within a preset small motion range, but in some scenes, when the user operates the electronic device, for example, when the user lies down before sleeping to play a mobile phone, the motion data detected by the wearable device is also within the preset small motion range. Therefore, if the user state is determined to be the sleep state only according to whether the motion data is within the preset small motion range, the erroneous determination is easily caused. Therefore, when the user state is the waking state, if the motion data detected by the wearable device is within the preset small motion threshold range, the user may be in the sleeping state or the state of operating the electronic device, at this time, the user information of the electronic device and the state information of the electronic device are acquired to determine whether the user operates the electronic device, and if it is determined that the user does not operate the electronic device, whether the user state is the sleeping state is determined according to the detected motion data and the physiological data.
In a possible implementation manner of the second aspect, if the motion data detected by the wearable device is within a preset small motion threshold range, and a duration of the motion data within the preset small motion threshold range is greater than or equal to a preset duration, user information of the electronic device and state information of the electronic device are obtained. When the duration that the action data is in the preset small action threshold range is greater than or equal to the preset duration, the user information of the electronic equipment and the state information of the electronic equipment are obtained, the situation that the user state is judged at the moment that the action state of the user changes or when error data are collected by the wearable equipment is avoided, and therefore computing resources are saved.
In a possible implementation manner of the second aspect, the acquiring, by the wearable device, user information of an electronic device and status information of the electronic device includes: and if the user state is detected to be the sleep state, the wearable device acquires the user information of the electronic device and the state information of the electronic device. When the electronic equipment is detected to be used by the user according to the user information of the electronic equipment and the state information of the electronic equipment, the sleep state can be switched to the waking state.
In a possible implementation manner of the second aspect, after the wearable device acquires 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 the use state, it is indicated that the user uses the electronic device currently, and at the moment, the user state is set to be the waking state, so that the user state is prevented from being judged to be the sleeping state when the user operates the electronic device.
In a possible implementation manner of the second aspect, after the wearable device acquires the user information of the electronic device and the state information of the electronic device, the method further includes: and correcting the user state according to the user information of the electronic equipment and the state information of the electronic equipment. Specifically, when the electronic device is not in communication connection with the wearable device, the electronic device records user information and state information of the electronic device, when the electronic device is in communication connection with the wearable device, the wearable device acquires the user information and the state information of the electronic device in a past period, and if the electronic device is used by a user in a certain period and the user state in the period is a sleep state according to the user information and the state information of the electronic device in the past period, the sleep state in the period is corrected to be a waking state, so that the accuracy of acquiring sleep data is improved.
In a third aspect, an apparatus for determining a sleep state is provided, including:
the wearable device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring user information of the electronic device and state information of the electronic device by the wearable device;
and the judging module is used for judging whether the user state is a sleep state or not according to the detected action data and the physiological data if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state.
In a possible implementation manner of the third aspect, the obtaining module is specifically configured to:
when the user state is the waking state, if the motion data detected by the wearable device is within a preset small motion threshold range, obtaining user information of the electronic device and state information of the electronic device.
In a possible implementation manner of the third aspect, the obtaining module is further specifically configured to:
and if the motion data detected by the wearable device is within a preset small motion threshold range and the duration of the motion data within the preset small motion threshold range is greater than or equal to a preset duration, acquiring user information of the electronic device and state information of the electronic device.
In a possible implementation manner of the third aspect, the obtaining module is further specifically configured to:
and if the user state is detected to be the sleep state, the wearable device acquires 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 determining module is further configured to:
and if the user information of the electronic equipment is the same as the user information of the wearable equipment and the state information of the electronic equipment is a use state, setting the user state to be a waking state.
In a possible implementation manner of the third aspect, the determining module is further configured to:
and correcting the user state according to the user information of the electronic equipment and the state information of the electronic equipment.
In a fourth aspect, there is provided a wearable device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the sleep state determination method according to the second aspect when executing the computer program.
In a fifth aspect, a sleep state determination system is provided, which includes an electronic device and the wearable device as described in the fourth aspect.
In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the sleep state determination method according to the second aspect.
In a seventh aspect, a computer program product is provided, which, when running on a terminal device, causes the terminal device to execute the sleep state determination method described in the second aspect above.
It is to be understood that, the beneficial effects of the third to seventh aspects may be referred to the related description of the second aspect, and are not repeated herein.
Drawings
Fig. 1 is an architecture diagram of a sleep state determination system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a wearable device provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a sleep state determination method according to an embodiment of the present 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 present application;
fig. 5 is a flowchart illustrating another sleep state determination method according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
As shown in fig. 1, the sleep state determination system provided in the embodiment of the present application includes a wearable device 100 and at least one electronic device 200, where the electronic device 200 may be an electronic device frequently used by a user and bound to the wearable device 100, and the electronic device 200 sends user information of the electronic device and state information of the electronic device to the wearable device 100, and 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 100 determines whether the user state is in a sleep state according to detected motion data and physiological data. Wherein, 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 equipment is different from the user information of the wearable equipment or the state information of the electronic equipment is in an unused state, the user does not use the electronic equipment. Under the condition that the user does not use the electronic equipment, whether the user state is the sleep state or not is judged according to the action data and the physiological data detected by the wearable equipment 100, so that the accuracy of sleep state detection can be improved, and the state that the user uses the electronic equipment is prevented from being judged to be the sleep state by mistake.
In this application embodiment, the wearable device 100 may be an intelligent bracelet, an intelligent watch, and the like, and the electronic device 200 may be a mobile phone, a tablet computer, and the like, and this application embodiment does not limit the specific types of the wearable device 100 and the electronic device 200.
For ease of understanding, the wearable device according to the embodiment of the present application will be described first. Referring to fig. 2, the wearable device provided in the embodiment of the present application includes 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, a power supply 180, and an electrode 190. Those skilled in the art will appreciate that the wearable device configuration shown in fig. 1 does not constitute a limitation of the wearable device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The following specifically describes each component of the wearing apparatus with reference to fig. 2:
the processor 110 is a control center of the wearable device, connects various parts of the whole wearable device by using various interfaces and lines, and executes various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring on the wearable device. Alternatively, processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The memory 120 may be used to store software programs and modules, and the processor 110 executes various functional applications and data processing of the wearable device by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the wearable device, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs 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 referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, transmits the touch point coordinates to the processor 110, and can receive and execute commands transmitted from the processor 110. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a crown, volume control keys, switch keys, 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, and 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, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 are two separate components to implement the input and output functions of the wearable device, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the wearable device.
The wearable device may also include at least one sensor 150, such as capacitive sensors, motion sensors, and other sensors. Specifically, the capacitance sensor is used for detecting capacitance between a human body and the wearable device, and the capacitance can reflect whether the human body and the wearable device are in good contact or not. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the wearable device, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be further configured on the wearable device, the description is omitted here.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the wearable device. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then inputs the audio data into the processor 110 or outputs the audio data to the memory 120 for further processing.
The wireless communication module 170 may be configured to support data exchange between the wearable device and other electronic devices, including BT, WLAN (e.g., Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technologies.
The wearable device also includes a power source 180 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 110 via a power management system, such that the power management system may manage charging, discharging, and power consumption.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for determining a sleep state provided in an embodiment of the present application, where an execution subject of the method is a wearable device 100. As shown in fig. 3, the method includes:
s101: the wearable device acquires user information of the electronic device and state information of the electronic device.
The wearable device can judge whether the electronic device is in the use state according to one or more information of the electric quantity information, the screen state information and the application program running state information of the electronic device.
S102: and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and physiological data.
The user information of the wearable device can be information of fingerprints, voiceprints, human faces, heart rates and the like of a user. In a possible implementation manner, the electronic device includes one or more user information such as a fingerprint, a voiceprint, or face information of a user, and for the same user, the user information is associated with each other. The wearable device comprises one or more user information such as fingerprints, voiceprints, human faces or heart rates of users, and for the same user, the user information is associated with 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 fingerprint information of a user, the wearable device detects fingerprint information of the user, and if the fingerprint information is the same, the user information of the electronic device is the same as the user information of the wearable device. For another example, if the electronic device detects fingerprint information of the user, the wearable device detects heart rate information of the user, 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 the user information of the wearable device, 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 equipment is different from the user information of the wearable equipment, the user using the electronic equipment is not the current user; if the state information of the electronic equipment is in the unused state, the electronic equipment is not used; the electronic equipment satisfies any state, and the user does not use the electronic equipment. When the user does not use the electronic equipment, the wearable equipment judges whether the user state is the sleep state according to the detected motion data and the physiological data. The motion data can be an acceleration value, a motion amplitude value or the like, can be acquired by an acceleration sensor, a gyroscope, a pressure sensor or the like on the wearable device, can represent the intensity of the motion of the user, and can judge that the user is in a motion state or a rest state according to the motion data of the user. The physiological data may be heart rate, pulse, blood oxygen, etc., and may be acquired by a heart rate detection device or a blood oxygen acquisition device on the wearable device. The wearable device compares the preset action data and the preset physiological data in the sleep state with the currently detected action data and the currently detected physiological data to judge whether the user is in the 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 is described that the user uses 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 a preset small motion threshold range. However, when the user lies down to operate the electronic device before sleeping or lies down to operate the electronic device after waking, the motion data detected by the wearable device is generally within a preset small motion threshold range, and at this time, if it is determined whether the user state is a sleep state only according to the detected motion data and physiological data, erroneous determination is easily caused.
In an application scenario, after a user wears a wearable device, the wearable device detects motion data of the user, if a current user state is a waking state, the motion data detected by the wearable device is within a preset small motion threshold range, which indicates that the user is likely to enter a sleep state, at this time, user information of an electronic device and state information of the electronic device are acquired, and whether the user uses the electronic device is determined. And if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, judging that the user does not use the electronic equipment. At this time, it is further determined whether the user state is the sleep state based on the detected motion data and physiological data, and it is possible to prevent the state in which the user operates the electronic apparatus before sleeping from being erroneously determined as the sleep state. In a possible implementation manner, if the current user state is the awake state and the motion data detected by the wearable device is within the preset small motion threshold range, the duration that the motion data is within the preset small motion threshold range is further detected, and if the duration that the motion data is within the preset small motion threshold range is greater than or equal to the preset duration, the user information of the electronic device and the state information of the electronic device are obtained again to determine whether the user uses the electronic device, so that the measurement error of the motion data of the wearable device or other behaviors of the user can be prevented from being mistaken for a small motion, and the accuracy of data analysis is improved.
Next, a specific flow of the method for determining the sleep state when the current user state is the awake state will be described with reference to fig. 4.
As shown in fig. 4, after the user wears the wearable device, the motion data and the physiological data are detected, and if the motion data is detected to be within the preset small motion threshold range, the duration of the motion data within the preset small motion threshold range is counted; if the duration of the action data within the preset small action threshold range is less than the preset duration, judging whether the user state is a sleep state or not according to the action data and the physiological data; and if the duration of the action data within the preset small action threshold range is greater than or equal to the preset duration, acquiring user information of the electronic equipment. If the user information of the electronic equipment is different from the user information of the wearable equipment, judging whether the user state is a sleep state or not according to the action data and the physiological data; and if the user information of the electronic equipment is the same as the user information of the wearable equipment, acquiring the state information of the electronic equipment. If the state information of the electronic equipment in the preset duration is in an unused state, judging whether the user state is in a sleep state or not according to the action data and the physiological data; and if the state information of the electronic equipment in the preset time length is the use state, keeping the user state as the waking state.
In another application scenario, the wearable device detects motion data of a user, and if the current user state is a sleep state, the wearable device acquires user information of the electronic device and 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 in the use state, the user uses the electronic device, and the user state is switched to the waking 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 in the unused state, the user is indicated to be not using the electronic device, whether the user state is in the sleep state or not is judged according to the detected motion data and the physiological data, and the state that the user operates the electronic device after waking is prevented from being wrongly judged as the sleep state.
In the above embodiment, the wearable device obtains the user information of the electronic device and the state information of the electronic device, and 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 indicates that the user does not use the electronic device, and after it is determined that the user does not use the electronic device, the wearable device determines whether the user state is in a sleep state according to the detected motion data and physiological data, so as to avoid misinterpreting the state of the user operating the electronic device as the sleep state, and thus obtain accurate sleep data.
Referring to fig. 5, fig. 5 is a schematic specific flowchart illustrating a sleep state determination method provided in an embodiment of the present application, and as shown in fig. 5, the method includes:
s201: the electronic equipment sends the user information of the electronic equipment and the state information of the electronic equipment to the wearable equipment.
In a possible implementation manner, the electronic device records state information of the electronic device, the state information of the electronic device includes whether the electronic device is in a use state and time when the electronic device is in the use state, and if the electronic device and the wearable device are in a communication connection state, the electronic device sends the state information of the electronic device and the user information to the wearable device in real time when the use state of the electronic device changes. If the current electronic equipment is not connected with the wearable equipment, the electronic equipment stores the state information of the electronic equipment and the corresponding user information, and when the electronic equipment is in communication connection with the wearable equipment, the electronic equipment sends the stored state information of the electronic equipment and the corresponding user information to the wearable equipment.
S202: and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and physiological data.
Specifically, 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 does not use the electronic device, and the wearable device determines whether the user state is in a sleep state according to the detected motion data and physiological data.
S203: and if the user information of the electronic equipment is the same as the user information of the wearable equipment and the state information of the electronic equipment is a use state, setting the user state to be a waking 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, which indicates that the user is operating the electronic device. If the wearable device acquires the current state information and the user information of the electronic device, and the wearable device determines that the user operates the electronic device according to the current state information and the user information of the electronic device, the wearable device directly sets the current user state to be the waking state. If the wearable device acquires the state information and the user information of the electronic device in a certain past period, the wearable device corrects the user state in the period according to the state information and the user information of the electronic device. For example, when the electronic device is not in communication connection with the wearable device, a time period when the state information of the electronic device is in the use state and user information corresponding to the time period are recorded, when the electronic device is in communication connection with the wearable device, the recorded time period when the state information of the electronic device is in the use state and the corresponding user information are sent to the wearable device, if it is determined that the user operates the electronic device in the time period according to the use state and the user information of the time period, the wearable device corrects the user state in the time period to be in the awake state, and therefore accuracy of the acquired sleep data is improved.
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 configured to determine whether the user operates the electronic device according to the user information and the state information of the electronic device, and 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 indicates that the user does not use the electronic device, and then the wearable device determines whether the user state is in a sleep state according to the detected motion data and physiological data, so as to prevent the state of the electronic device operated by the user from being erroneously determined as the sleep state.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Finally, it should be noted that: the above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for judging a sleep state, comprising:
the electronic equipment sends user information of the electronic equipment and state information of the electronic equipment to the wearable equipment;
and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and physiological data.
2. A method for judging a sleep state, comprising:
the wearable device acquires user information of the electronic device and state information of the electronic device;
and if the user information of the electronic equipment is different from the user information of the wearable equipment and/or the state information of the electronic equipment is in an unused state, the wearable equipment judges whether the user state is in a sleep state or not according to the detected action data and physiological data.
3. The method for determining a sleep state according to claim 2, wherein the step of acquiring the user information of the electronic device and the state information of the electronic device by the wearable device comprises:
when the user state is the waking state, if the motion data detected by the wearable device is within a preset small motion threshold range, obtaining user information of the electronic device and state information of the electronic device.
4. The method for determining a sleep state according to claim 3, wherein the acquiring the user information of the electronic device and the state information of the electronic device if the motion data detected by the wearable device is within a preset small motion threshold range includes:
and if the motion data detected by the wearable device is within a preset small motion threshold range and the duration of the motion data within the preset small motion threshold range is greater than or equal to a preset duration, acquiring user information of the electronic device and state information of the electronic device.
5. The method for determining a sleep state according to claim 2, wherein the step of acquiring the user information of the electronic device and the state information of the electronic device by the wearable device comprises:
and if the user state is detected to be the sleep state, the wearable device acquires the user information of the electronic device and the state information of the electronic device.
6. The sleep state determination method according to claim 2, wherein after the wearable device acquires the user information of the electronic device and the state information of the electronic device, the method further comprises:
and if the user information of the electronic equipment is the same as the user information of the wearable equipment and the state information of the electronic equipment is a use state, setting the user state to be a waking state.
7. The sleep state determination method according to any one of claims 2 to 6, wherein after the wearable device acquires the user information of the electronic device and the state information of the electronic device, the method further comprises:
and correcting the user state according to the user information of the electronic equipment and the state information of the electronic equipment.
8. A wearable device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 2 to 7 when executing the computer program.
9. A sleep state determination system comprising an electronic device and the wearable device of claim 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 2 to 7.
CN202010251078.6A 2020-04-01 2020-04-01 Sleep state judgment method and system, wearable device and storage medium Pending CN113495609A (en)

Priority Applications (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
PCT/CN2021/079643 WO2021196989A1 (en) 2020-04-01 2021-03-09 Sleep state determination method and system, wearable device, and storage medium

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN113495609A true CN113495609A (en) 2021-10-12

Family

ID=77927720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251078.6A Pending CN113495609A (en) 2020-04-01 2020-04-01 Sleep state judgment 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
CN117481614A (en) * 2023-12-26 2024-02-02 荣耀终端有限公司 Sleep state detection method and related equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117731245A (en) * 2024-02-20 2024-03-22 深圳市星迈科技有限公司 Sleep monitoring method and system based on intelligent watch and readable storage medium

Citations (3)

* 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
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897520A (en) * 2015-11-11 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent household control method, intelligent household device and wearable device

Patent Citations (3)

* 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
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
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

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
CN117481614A (en) * 2023-12-26 2024-02-02 荣耀终端有限公司 Sleep state detection method and related equipment

Also Published As

Publication number Publication date
WO2021196989A1 (en) 2021-10-07

Similar Documents

Publication Publication Date Title
CN113495609A (en) Sleep state judgment method and system, wearable device and storage medium
CN109381165B (en) Skin detection method and mobile terminal
KR20170136317A (en) Electronic apparatus and operating method thereof
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
US11222729B2 (en) Electronic device and method for providing stress index corresponding to activity of user
US10620012B2 (en) Step counting method, device, and terminal
CN107832689B (en) Fingerprint identification method and mobile terminal
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN109065060B (en) Voice awakening method and terminal
CN108962187B (en) Screen brightness adjusting method and mobile terminal
CN108388340B (en) Electronic equipment control method and related product
CN108012026B (en) Eyesight protection method and mobile terminal
CN110908513B (en) Data processing method and electronic equipment
CN111131952A (en) Control method of earphone assembly, earphone assembly and computer readable storage medium
CN109753777A (en) A kind of personal identification method, device, storage medium and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN109164908B (en) Interface control method and mobile terminal
CN113080982B (en) ECG detection method, device, wearable equipment and storage medium
CN112114879A (en) Terminal wake-up method, terminal and storage medium
CN108874281A (en) A kind of application program launching method and terminal device
CN109151203B (en) Information prompting method and mobile terminal
CN108837271B (en) Electronic device, output method of prompt message and related product
CN108958603B (en) Operation mode control method and mobile terminal
CN110672262B (en) Pressure key threshold calibration method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination