CN117678970A - Sleep state detection method, electronic equipment and system - Google Patents

Sleep state detection method, electronic equipment and system Download PDF

Info

Publication number
CN117678970A
CN117678970A CN202211103847.3A CN202211103847A CN117678970A CN 117678970 A CN117678970 A CN 117678970A CN 202211103847 A CN202211103847 A CN 202211103847A CN 117678970 A CN117678970 A CN 117678970A
Authority
CN
China
Prior art keywords
electronic device
state
display screen
axis
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211103847.3A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211103847.3A priority Critical patent/CN117678970A/en
Priority to PCT/CN2023/117593 priority patent/WO2024051790A1/en
Publication of CN117678970A publication Critical patent/CN117678970A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/145Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
    • A61B5/1455Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Cardiology (AREA)
  • Physiology (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Optics & Photonics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a sleep state detection method, electronic equipment and a system, and relates to the field of terminals, wherein the method comprises the following steps: the electronic device 200 may determine that the user is in a suspected sleep state through the ACC sensor. The electronic device 200 may then send a display screen status detection instruction to the electronic device 100. After receiving the display screen state detection instruction, the electronic device 100 may acquire the display screen state of the electronic device 100. The electronic device 100 or the electronic device 200 may determine the device state of the electronic device 100 according to the display screen state of the electronic device 100. When the electronic device 100 or the electronic device 200 determines that the device state of the electronic device 100 is in the non-use state, the electronic device 200 may detect sleep data of the user through data information of the PPG sensor.

Description

Sleep state detection method, electronic equipment and system
Technical Field
The present disclosure relates to the field of terminals, and in particular, to a sleep state detection method, an electronic device, and a system.
Background
With rapid development of terminal technology, various types of electronic devices, such as mobile phones, tablet computers, and wearable devices represented by smart watches, have become indispensable products in people's lives. In daily use, users often can use wearable devices to detect their physiological condition to see if their body is healthy. For example, a user may use a smart watch to monitor his sleep state based on physiological data that he detects (e.g., heart rate, acceleration values during physical activity, etc.). The smart watch can analyze the time occupied by each sleep state such as the light sleep state, the deep sleep state and the rapid eye movement state in the whole sleep time period of the user and the sleep data such as the duty ratio of each sleep state in the sleep time period based on the detected physiological data of the user. The user can control the physical health condition of the user according to the analyzed sleep data.
However, the current algorithm for detecting the sleep state of the user by the wearable device often causes the situation that the electronic device misjudges the sleep state of the user, so that the sleep data obtained by the wearable device and the real sleep data have larger errors, and the accuracy of the sleep data is lower.
Disclosure of Invention
The application provides a sleep state detection method, an electronic device and a system, which realize that the behavior of a user (for example, whether the electronic device 100 is used or not) is indirectly determined through the display screen state of the electronic device 100, and meanwhile, the sleep data of the user is detected by combining data information acquired by an ACC sensor and a PPG sensor. In this way, the occurrence probability of misjudging the sleep state of the user can be reduced, the accuracy of judging the sleep state of the user can be improved, and meanwhile, the power consumption of the electronic equipment 200 can be reduced, and the accuracy of acquiring the sleep data of the user can be improved.
In a first aspect, embodiments of the present application provide a detection system, including: the electronic device comprises a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish communication connection, and the communication connection comprises: the second electronic device is used for sending a display screen state detection instruction to the first electronic device when the second electronic device determines that the user is in a suspected sleep state through the acceleration ACC sensor. The first electronic device is used for responding to the display screen state detection instruction and acquiring the display screen state of the first electronic device at intervals of a first time. The first electronic device is further configured to send first status information to the second electronic device when the first electronic device determines that the first electronic device is in a non-use state based on the display screen status acquired at the first time intervals. The first state information is used for indicating that the first electronic equipment is in a non-use state. The second electronic device is further configured to detect sleep data of the user through a photoplethysmography PPG sensor when the second electronic device receives the first status information.
In one possible implementation, when the electronic device determines that the user is in a suspected sleep state, the second electronic device is specifically configured to: the second electronic device is configured to detect acceleration values in the x-axis, the y-axis, and the z-axis in real time by the ACC sensor. The second electronic device is further configured to store the acceleration value of the x-axis, the acceleration value of the y-axis, and the acceleration value of the z-axis over a first period of time. The second electronic device is further configured to determine that the user is in a suspected sleep state when the second electronic device detects that the acceleration value of the x-axis, the acceleration value of the y-axis, and the acceleration value of the z-axis are all less than a first threshold value within a second time period. Wherein the first time period includes the second time period.
In one possible implementation manner, when the first electronic device determines that the first electronic device is in a non-use state based on the display screen states acquired at the intervals of the first time period, the first electronic device is specifically configured to: the first electronic device is used for recording the display screen state acquired at intervals of a first time. The first electronic device is further configured to determine that the first electronic device is in a non-use state when the first electronic device determines that the time that the display screen state of the first electronic device is in the bright screen state is greater than a second time period within a third time period.
In one possible implementation manner, the first electronic device is configured to, in response to the display screen state detection instruction, obtain, at intervals of a first time period, a display screen state of the first electronic device, and then send, to the second electronic device, the display screen state obtained at intervals of the first time period. The second electronic device is used for detecting sleep data of the user through the PPG sensor when the first electronic device is determined to be in a non-use state based on the display screen state acquired at intervals of the first time.
In a second aspect, an embodiment of the present application provides a sleep state detection method, applied to a second electronic device, where the method includes: the second electronic device establishes a communication connection with the first electronic device. When the second electronic equipment determines that the user is in a suspected sleep state through the ACC sensor, the second electronic equipment sends a display screen state detection instruction to the first electronic equipment. The second electronic device receives the first state information sent by the first electronic device. The first state information is used for indicating that the first electronic equipment is in a non-use state, and the first state information is determined information based on the display screen state of the first electronic equipment acquired at intervals of a first time. When the second electronic device receives the first status information, the second electronic device detects sleep data of the user through a PPG sensor.
In one possible implementation manner, when the second electronic device determines that the user is in a suspected sleep state through the acceleration ACC sensor, the second electronic device sends a display screen state detection instruction to the first electronic device, which specifically includes: the second electronic device detects acceleration values in the x-axis, the y-axis and the z-axis in real time by the ACC sensor. The second electronic device stores the acceleration value of the x-axis, the acceleration value of the y-axis, and the acceleration value of the z-axis over a first period of time. And when the second electronic device detects that the acceleration value of the x axis, the acceleration value of the y axis and the acceleration value of the z axis are smaller than the first threshold value in the second time period, the second electronic device determines that the user is in a suspected sleeping state. Wherein the first time period includes the second time period. The second electronic device sends a display screen state detection instruction to the first electronic device.
In a third aspect, an embodiment of the present application provides an electronic device, which is a second electronic device, including one or more processors, one or more memories, and a display screen. The one or more memories are coupled with one or more processors, the one or more memories being operable to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of the possible implementations of the second aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium comprising computer instructions that, when run on an electronic device, cause the electronic device to perform the method of any one of the possible implementations of the second aspect described above.
In a fifth aspect, embodiments of the present application provide a chip or chip system, including a processing circuit and an interface circuit, the interface circuit being configured to receive code instructions and transmit the code instructions to the processing circuit, the processing circuit being configured to execute the code instructions to perform the method in any one of the possible implementations of the second aspect.
In a sixth aspect, embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform the method of any one of the possible implementations of the second aspect described above.
Drawings
Fig. 1 is a schematic architecture diagram of a communication system 10 according to an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device 100 according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of an electronic device 200 according to an embodiment of the present application;
fig. 4 is a specific flow chart of a sleep state detection method according to an embodiment of the present application;
Fig. 5 is a specific flowchart of another sleep state detection method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a software architecture applied to the communication system 10 according to an embodiment of the present application;
fig. 7 is a schematic diagram of another software architecture applied to the communication system 10 according to the embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application to the specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this application is meant to encompass any or all possible combinations of one or more of the listed items. In the present embodiments, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
First, a communication system 10 provided in an embodiment of the present application will be described.
Referring to fig. 1, fig. 1 schematically illustrates an architecture of a communication system 10 according to an embodiment of the present application.
As shown in fig. 1, communication system 10 may include: an electronic device 100 and an electronic device 200.
The electronic device 100 (which may also be referred to as a first electronic device) may be an electronic device such as a cell phone, tablet, PC, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (persona ldigital assistant, PDA), or the like. The specific type of the electronic device 100 is not subject to any limitation in this application.
The electronic device 200 (may also be referred to as a second electronic device) may be a wearable device such as a smart watch, a smart bracelet, a portable device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, or other electronic device. The specific type of the electronic device 200 is not limited in this application.
As shown in fig. 1, the electronic apparatus 100 may establish a wireless communication connection with the electronic apparatus 200, and the electronic apparatus 100 and the electronic apparatus 200 may transmit data information to each other through the above wireless communication connection. For example, the electronic device 200 may send a display screen state detection instruction to the electronic device 100 through a wireless communication connection, and/or data information such as sleep data of a user, and the electronic device 100 may send a display screen state to the electronic device 200 through a wireless communication connection, and/or data information such as a device state of the electronic device 100. Wherein, sleep data may refer to: the time occupied by each sleep state such as the light sleep state, the deep sleep state and the rapid eye movement state, and the duty ratio of each sleep state in the sleep period are all the sleep period of the user. The data information transmitted by the electronic device 100 and the electronic device 200 will be described in detail in the following embodiments, and will not be described in detail here. Specifically, the wireless communication connection may be one or more of bluetooth, wi-Fi direct (wireless fidelity direct), or Wi-Fi software access point (wirel essfidelitysoftware access point, wi-Fi softAP), etc.
In one possible implementation, electronic device 100 may establish a wired communication connection with electronic device 200 for data interaction. For example, the electronic device 100 and the electronic device 200 may establish a wired connection through a universal serial bus (uni versalserialbus, USB) and transmit data information to each other based on the wired communication connection.
It should be noted that the exemplary communication system architecture shown in the embodiments of the present application does not constitute a specific limitation on the communication system 10, and in other embodiments of the present application, the communication system 10 may include more or less electronic devices than those illustrated, and may include different types of electronic devices than those illustrated. For example, the communication system 10 may further include a plurality of electronic devices 100 that establish wireless/wired communication with the electronic device 200, such as a display with a communication function, and/or a tablet computer, and/or a PC, etc., which is not limited in this application.
Next, an electronic device 100 provided in an embodiment of the present application is described.
Referring to fig. 2, fig. 2 schematically illustrates a hardware structure of an electronic device 100 according to an embodiment of the present application.
As shown in fig. 2, the electronic device 100 may include: processor 101, memory 102, wireless communication module 103, display 104, and sensor module 105.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may also include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 101 may include one or more processor units, for example, the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GP U), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-netwo rk processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 101 for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may hold instructions or data that has just been used or recycled by the processor 101. If the processor 101 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 101 is reduced, thus improving the efficiency of the system.
In some embodiments, the processor 101 may include one or more interfaces. The interfaces may include an integrated circuit (int-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universalasynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface, among others.
Memory 102 is coupled to processor 101 for storing various software programs and/or sets of instructions. In particular implementations, memory 102 may include volatile memory (RAM), such as random access memory (randoma ccessmemory); non-volatile memory (non-volatile memory) such as ROM, flash memory (flash memory), hard Disk Drive (HDD) or solid state Disk (So lid State Drives, SSD) may also be included; the memory 102 may also include a combination of the types of memory described above. The memory 102 may also store some program code such that the processor 101 invokes the program code stored in the memory 102 to implement the method of implementing the embodiments of the present application in the electronic device 100. The memory 102 may store an operating system, such as an embedded operating system, e.g., uC OS, vxWorks, RTLinux, etc.
The wireless communication module 103 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulati on, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the electronic device 100. The wireless communication module 103 may be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via an antenna, modulates the electromagnetic wave signals, performs filtering processing, and transmits the processed signals to the processor 101. The wireless communication module 103 may also receive a signal to be transmitted from the processor 101, frequency modulate and amplify the signal, and convert the signal into electromagnetic waves to radiate the electromagnetic waves through an antenna. In some embodiments, the electronic device 100 may also probe or scan for devices in the vicinity of the electronic device 100 by transmitting signals through a bluetooth module (not shown in fig. 2), a WLAN module (not shown in fig. 2) in the wireless communication module 103, and establish a wireless communication connection with the nearby devices to transmit data. The bluetooth module may provide a solution including one or more of classical bluetooth (BR/enhanceddat arate) or bluetooth low energy (bluetooth low energy, BLE) communication, and the WLAN module may provide a solution including one or more of Wi-Fi direct, wi-Fi LAN, or Wi-Fi softAP.
The display screen 104 may be used to display images, video, and the like. The display screen 104 may include a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), mini, micro led, micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 104, N being a positive integer greater than 1.
The sensor module 105 may include a plurality of sensing devices, such as a touch sensor (not shown), or the like. Touch sensors may also be referred to as "touch devices". The touch sensor may be disposed on the display screen 104, and the touch sensor and the display screen 104 form a touch screen, which is also referred to as a "touch screen". The touch sensor may be used to detect touch operations acting on or near it.
Note that, the electronic device 100 shown in fig. 2 is merely for exemplarily explaining a hardware structure of the electronic device provided in the present application, and does not constitute a specific limitation of the present application.
Next, an electronic device 200 provided in the embodiment of the present application is described.
Referring to fig. 3, fig. 3 schematically illustrates a hardware structure of an electronic device 200 according to an embodiment of the present application.
As shown in fig. 3, the electronic device 200 may include: processor 201, memory 202, wireless communication module 203, power switch 204, display 205, and sensor module 206, among others. The modules may be connected by a bus or other manner, and the embodiments of the present application have been illustrated by way of example.
Processor 201 may be used to read and execute computer readable instructions. In a specific implementation, the processor 201 may mainly include a controller, an operator, and a register. The controller is mainly responsible for instruction decoding and sending out control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for storing register operands, intermediate operation results and the like temporarily stored in the instruction execution process. In a specific implementation, the hardware architecture of the processor 201 may be an Application Specific Integrated Circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, an NP architecture, or the like.
Memory 202 is coupled to processor 201 for storing various software and/or sets of instructions. In particular implementations, memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. Memory 202 may also store communication programs that may be used to communicate with electronic device 100, or other electronic devices.
The wireless communication module 203 may include a bluetooth communication module 203A or others. The electronic device 200 may establish a wireless communication connection with the electronic device 100 by way of a solution for one or more bluetooth communications in the bluetooth communication module 203A to receive or transmit wireless signals. The electronic device 200 may acquire data information transmitted by the electronic device 100 through the above wireless communication connection, or may send a data instruction to the electronic device 100 through the above wireless communication connection. The bluetooth communication module 203A may provide a solution that includes one or more bluetooth communications of BR/EDR or BLE, among others. Optionally, the wireless communication module 203 may further include a WLAN communication module (not shown in fig. 3) that may provide a solution including one or more WLA N communications of Wi-Fi direct, wi-Fi LAN, or Wi-Fi softAP. In some embodiments, the electronic device 200 may establish a wireless communication connection with the electronic device 100 through the wireless communication technology provided by the WLAN module, and interact data with the electronic device 200 based on the wireless communication connection.
The power switch 204 may be used to control the power supplied by the power source to the electronic device 200.
For the description of the display 205, reference may be made to the description of the display 104 in the foregoing electronic device 100, which is not repeated herein.
The sensor module 206 may include a touch sensor 206A, an Acceleration (ACC) sensor 206B, a photoplethysmography (PPG) sensor 206C, and the like. Wherein:
the touch sensor 206A may also be referred to as a "touch device". The touch sensor 206A may be provided to the display screen 205. The touch screen composed of the touch sensor 206A and the display screen 205 may also be referred to as a "touch screen". The touch sensor 206A may be used to detect touch operations acting on or near it.
The ACC sensor 206B may be used to detect the magnitude of acceleration of the electronic device 200 in various directions (typically x, y, and z axes). For example, when the electronic device 200 is stationary, the ACC sensor 206B may detect the magnitude and direction of gravity.
The PPG sensor 206C may be used to measure heart rate of the user, and/or blood oxygen saturation, etc. physiological data of the human body. Taking the example of detecting the heart rate of the user, in a particular implementation, the PPG sensor 206C may emit a light signal of a specified wavelength that may impinge on arterial blood vessels under skin tissue and be reflected back to the PPG sensor 206C. When the heart beats, the contraction and expansion of the blood vessel changes the volume of blood in the arterial vessel, and thus affects the absorption or attenuation of the optical signal by the arterial vessel, and thus affects the reflection of the optical signal. The PPG sensor 206C may detect the heart rate of the user based on the change in the reflected light signal. It should be noted that, the PPG sensor 206C may also detect the heart rate of the user by other methods, which is not limited in this application.
Optionally, the electronic device 200 may include one or more physical keys. The one or more physical keys may receive input operations by a user acting on the keys (e.g., pressing the physical keys). In response to the input operation, the electronic device 200 may perform an operation corresponding to a control shown on the display screen corresponding to the physical key.
Optionally, the electronic device 200 may further include a USB interface, through which the electronic device 200 may establish a wired communication connection with the electronic device 100, and transmit data information with each other through the wired communication connection.
It should be understood that the electronic device 200 shown in fig. 3 is merely one implementation of the embodiments of the present application and is not intended to limit the electronic device 200 in any way. Preferably, the electronic device 200 may be a smart watch, and the electronic device 200 may further include a watchband and a dial. The dial may include a display 205 for displaying images, videos, controls, text information, and the like. The wristband may be used to secure the electronic device 200 to a person's extremities for ease of donning. In practice, the electronic device 200 may include more or fewer components than shown without limitation.
Next, a process of detecting whether a user is in a sleep state according to the embodiment of the present application will be described.
The exemplary illustration is given taking electronic device 200 as a smart watch. In some application scenarios, the electronic device 200 may secure the electronic device 200 on a wrist of a user through a wristband. The electronic device 200 may detect whether the user is in a sleep state through the ACC sensor and the PPG sensor.
Specifically, when the electronic device 200 detects that the acceleration values in the x-axis, y-axis, and z-axis are smaller than the specified threshold A1 by the ACC sensor, and at the same time, the heart rate of the user is smaller than or equal to the specified threshold A2 by the PPG sensor, and is maintained for a certain period of time (for example, 10 minutes), the electronic device 200 may determine that the user is in a sleep state.
However, the above-mentioned process of detecting whether the user is in the sleep state often causes the electronic device 200 to misjudge that the user has entered the sleep state. For example, when the user lies on a sofa for a long time and plays a cell phone and is not active, the body of the user is in a stationary state, and the electronic apparatus 200 may detect that acceleration values in the x-axis, y-axis, and z-axis are less than the specified threshold A1 and the heart rate of the user is less than or equal to the specified threshold A2 for a certain period of time through the ACC sensor, and thus the electronic apparatus 200 determines that the user is in a sleep state. However, in an actual scenario the user has not yet fallen asleep, and is still awake. The misjudgment of the sleep state can cause the problems that the sleep data obtained by the electronic equipment and the real sleep data have larger errors, the accuracy of the sleep data is lower, and the like.
Accordingly, the embodiment of the application provides a sleep state detection method.
In particular, the method may be applied to the communication system 10 described previously.
First, the electronic apparatus 200 may determine that the user is in a suspected sleep state through the ACC sensor. The electronic device 200 may then send a display screen status detection instruction to the electronic device 100. After receiving the display screen state detection instruction, the electronic device 100 may acquire the display screen state of the electronic device 100. The electronic device 100 or the electronic device 200 may determine the device state of the electronic device 100 according to the display screen state of the electronic device 100. Here, the device state of the electronic device 100 can be divided into: a use state and a non-use state. The use state refers to that the user is using the electronic device 100, and the non-use state refers to that the user is not using the electronic device 100.
When the electronic device 100 or the electronic device 200 determines that the device state of the electronic device 100 is in the non-use state according to the display screen state of the electronic device 100, the electronic device 200 may detect sleep data of the user through data information of the PPG sensor. When the electronic device 100 or the electronic device 200 determines that the device state of the electronic device 100 is in the use state according to the display screen state of the electronic device 100, the electronic device 200 does not detect sleep data of the user through data information of the PPG sensor. In some examples, the electronic device 200 may clear acceleration data acquired by the ACC sensor when the device state of the electronic device 100 is in the use state.
As can be seen from the steps of the sleep state detection method described above, the sleep detection method provided in the embodiment of the present application may indirectly determine the behavior of the user (for example, whether to use the electronic device 100) through the display screen state of the electronic device 100, and detect the sleep data of the user by combining the data information acquired by the ACC sensor and the PPG sensor. In this way, the occurrence probability of misjudging the sleep state of the user can be reduced, the accuracy of judging the sleep state of the user can be improved, and meanwhile, the power consumption of the electronic equipment 200 can be reduced, and the accuracy of acquiring the sleep data of the user can be improved.
Next, a specific flow of a sleep state detection method provided in the embodiments of the present application is described.
Referring to fig. 4, fig. 4 is a schematic flow chart schematically illustrating a sleep state detection method according to an embodiment of the present application.
As shown in fig. 4, the specific flow of this embodiment may be as follows:
s401, the electronic device 100 and the electronic device 200 establish wireless communication connection.
Preferably, the wireless communication connection is exemplified by a bluetooth connection in the embodiments of the present application. The electronic device 100 may detect or scan the electronic device 200 by transmitting a signal through the bluetooth module, establish a wireless communication connection with the electronic device 200, and transmit data information to each other. Wherein the bluetooth module may provide a solution comprising one or more bluetooth communications of BR/EDR or BLE.
In some examples, the electronic device 100 may also detect or scan the electronic device 200 by transmitting signals over the WLAN module, establishing a wireless communication connection with the electronic device 200 and transmitting data information to each other. The WLAN module may provide a solution including one or more WLAN communications among Wi-Fi direct, wi-Fi LAN, or Wi-Fi softAP, among others.
In other examples, the electronic device 100 may also establish a wireless communication connection with the electronic device 200 through frequency modulation (frequency modul ation, FM), near field communication (near field communication, NFC) or Infrared (IR), and transmit data information with each other based on the wireless communication connection. The present application is not limited in this regard. The present application is not limited in this regard.
S402. the electronic device 200 determines, through the ACC sensor, whether the user is in a suspected sleep state.
Specifically, the electronic device 200 may detect acceleration values in the x-axis, the y-axis, and the z-axis in real time through the ACC sensor. The electronic device 200 may store acceleration values for the three axes described above for a specified period of time C1 (which may also be referred to as a first period of time, e.g., approximately 30 minutes). When the electronic apparatus 200 detects that the acceleration values of the three axes are smaller than the specified threshold A1 (may also be referred to as a first threshold, for example, 1.1m/s 2) in the specified period C2 (may also be referred to as a second period, for example, in approximately 10 minutes), and that the time period in which the acceleration values of the three axes are larger than the specified threshold A1 is smaller than the specified time period B3 (for example, 3 minutes) in the specified period C3 (for example, in approximately 15 minutes), the electronic apparatus 200 may determine that the user is in a suspected sleep state. The electronic device 200 may perform the following steps. Otherwise, the electronic device 200 determines that the user is not in the suspected sleep state, and the electronic device 200 may continue to execute the flow of this step.
In one possible implementation, the electronic device 200 may store acceleration values for the three axes over a specified period of time C1 (e.g., approximately 30 minutes). When the electronic device 200 detects that the acceleration values of the above three axes are less than the specified threshold A1 (e.g., 1.1m/s 2) in the specified period C2 (e.g., in approximately 10 minutes), the electronic device 200 may determine that the user is in a suspected sleep state.
S403, when the electronic device 200 determines that the user is in a suspected sleep state, the electronic device 200 sends a display screen state detection instruction to a first application in the electronic device 100.
Specifically, the electronic device 200 may send a display screen state detection instruction to the first application in the electronic device 100 based on the wireless communication connection established in the foregoing S401. Preferably, the electronic device 200 may send the display status detection instruction to the first application in the electronic device 100 based on the bluetooth connection.
S404, after a first application in the electronic device 100 receives the display screen state detection instruction, the electronic device 100 acquires the display screen state of the electronic device 100 through the first application at intervals of a designated duration B1 (for example, at intervals of 3 seconds).
Specifically, the specified function/specified service in the display status detection module in the electronic device 100 may detect the status of the display on the electronic device 100 every specified duration B1 (e.g., every 3 seconds). Then, the first application in the electronic device 100 may acquire the display screen state of the electronic device 100 detected by the above-described designation function/designation service every designated period B1 (may also be referred to as a first period, for example, every 3 seconds). The display status detection module may be located in an application framework layer of the electronic device 100.
For example, the electronic device 100 may detect that the display screen is in a bright screen state or in an off screen state based on an iscorenen ("isscreen") function in a powermanager service. The bright screen state may refer to a state in which all areas of the display screen on the electronic device 100 are lit up for display; the off-screen state may refer to a state in which the display screen of the electronic device 100 is dormant to be a black screen, the display screen does not display interface elements, but other devices and programs normally operate. The electronic device 100 may detect that the display is in a locked state or in an unlocked state based on a system broadcast event. The screen lock state may refer to a state in which a part of functions of the electronic device 100 are locked, that is, the electronic device 100 does not provide a part of functions. The functionality provided by the electronic device 100 in the locked state requires less data security, for example: answering calls, hanging up calls, adjusting the volume of music, starting camera applications, turning on/off flight modes, etc. In the unlocked state, the electronic device 100 can provide not only the above-mentioned functions with low data security requirements, but also functions with high data security requirements, for example: a portion of the application (e.g., a WeChat application) is launched, and the functionality provided by the application (e.g., displaying a WeChat payment interface). That is, in the unlocked state, the electronic device 100 may provide functions that all of the electronic device 100 may perform.
It is to be understood that the above-described exemplary illustrations are for purposes of explanation only and are not to be construed as limiting the present application in any way. The electronic device 100 may also obtain the display status of the electronic device 100 in other ways.
S405, determining the device state of the electronic device 100 by the first application in the electronic device 100 based on the display screen state of the electronic device 100.
Specifically, when the electronic device 100 determines, based on the display screen state of the electronic device 100, by the first application that the display screen on the electronic device 100 is in the first state for a specified period of time C4 (may also be referred to as a third period of time, for example, within 1 minute) is longer than the specified period of time B2 (may also be referred to as a second period of time, for example, 51 seconds), the electronic device 100 may determine that the device state of the electronic device 100 is in the use state. Otherwise, the electronic device 100 determines that the device state of the electronic device 100 is in a non-use state.
Wherein the display screen being in the first state may refer to: the display screen is in a bright screen state and in an unlocked state, or the display screen is in a bright screen state and whether the display screen is in a locked screen state is not limited. Preferably, in the embodiment of the present application, taking an example that the display screen is in the first state, that the display screen is in the bright screen state and that the display screen is in the unlock state as an example, a flow of implementing the present embodiment is described.
For example, when the first application of the electronic device 100 acquires the display status of the electronic device 100 every 3 seconds, the first application of the electronic device 100 may record the display status. When the first application of the electronic device 100 determines that the display screen on the electronic device 100 is in the bright screen state and the time of the unlock state is greater than 51 seconds within 1 minute based on the recorded display screen state, the electronic device 100 may determine that the device state of the electronic device 100 is in the use state.
When the electronic device 100 determines, based on the display screen state, through the first application that the time that the display screen is in the first state on the electronic device 100 is less than or equal to the specified duration B2 (e.g., 51 seconds) within the specified period of time C4 (e.g., within 1 minute), the electronic device 100 determines that the device state of the electronic device 100 is in the non-use state.
For example, when the first application of the electronic device 100 acquires the display status of the electronic device 100 every 3 seconds, the first application of the electronic device 100 may record the display status. When the first application of the electronic device 100 determines that the display screen on the electronic device 100 is in the bright screen state and the time of the unlock state is less than or equal to 51 seconds within 1 minute based on the recorded display screen state, the electronic device 100 determines that the device state of the electronic device 100 is in the non-use state.
S406, the first application in the electronic device 100 sends state information of the electronic device 100 to the electronic device 200. The status information of the electronic device 100 is used to indicate the device status of the electronic device 100.
Specifically, the first application in the electronic device 100 may send the state information of the electronic device 100 to the electronic device 200 based on the wireless communication connection established in S401 described above. Preferably, the first application in the electronic device 100 may send the status information of the electronic device 100 to the electronic device 200 based on the bluetooth connection. The status information of the electronic device 100 may be used to indicate a device status of the electronic device 100, for example, indicate that the device status of the electronic device 100 is in a use state, or indicate that the device status of the electronic device 100 is in a non-use state. The first status information is used to indicate that the device status of the electronic device 100 is in a non-use status.
S407. the electronic device 200 determines, based on the received status information of the electronic device 100, whether the device status of the electronic device 100 is in a non-use state.
S408. when the electronic device 200 determines that the device status of the electronic device 100 is in the non-use status, the electronic device 200 may detect sleep data of the user through the PPG sensor.
Specifically, when the electronic device 200 receives the state information of the electronic device 100 to indicate that the device state of the electronic device 100 is in the non-use state, the electronic device 200 may acquire sleep data of the user through the heart rate and/or blood oxygen of the user detected by the PPG sensor.
In some examples, when the wireless communication connection established between the electronic device 100 and the electronic device 200 is unstable, or the wireless communication connection established between the electronic device 100 and the electronic device 200 has been disconnected, the electronic device 200 does not receive the status information of the electronic device 100 within a specified period C5 (for example, 1.5 minutes, 2 minutes, etc.) after sending the display status detection instruction to the electronic device 100, at this time, the electronic device 200 may acquire sleep data of the user through the heart rate and/or blood oxygen of the user detected by the PPG sensor.
When the electronic device 200 determines that the device state of the electronic device 100 is in the use state based on the state information of the electronic device 100 transmitted by the electronic device 100, that is, the user is using the electronic device 100, which indicates that the user is in an active state but not in a sleep state, therefore, the electronic device 200 does not detect sleep data of the user, and the electronic device 200 circularly performs steps S402 to S408. In some examples, the electronic device 200 may clear acceleration data acquired by the ACC sensor when the device state of the electronic device 100 is in the use state.
Next, a specific flow of another sleep state detection method provided in the embodiments of the present application will be described.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating another sleep state detection method according to an embodiment of the present application.
As shown in fig. 5, the specific flow of this embodiment may be as follows:
s501. the electronic device 100 and the electronic device 200 establish a wireless communication connection.
Specifically, the description of this step may refer to the description in S401, and will not be repeated here.
S502. the electronic device 200 determines whether the user is in a suspected sleep state through the ACC sensor.
Specifically, the description of this step may refer to the description in S402, and will not be repeated here.
S503, when the electronic device 200 determines that the user is in a suspected sleep state, the electronic device 200 sends a display screen state detection instruction to a display screen state detection module in the electronic device 100.
Specifically, the electronic device 200 may send a display status detection instruction to the display status detection module in the electronic device 100 based on the wireless communication connection established in S501. Preferably, the electronic device 200 may send a display status detection instruction to a display status detection module in the electronic device 100 through a bluetooth information synchronization service (sync).
S504, after the display screen state detection module in the electronic device 100 receives the display screen state detection instruction, the electronic device 100 may detect the display screen state of the electronic device 100 through the display screen state detection module at intervals of a specified duration B1 (for example, at intervals of 3 seconds).
Specifically, the display screen status detection module may be located in an application framework layer of the electronic device 100. For the manner in which the electronic device 100 detects the status of the display screen on the electronic device 100, reference may be made to the description in step S404, which is not repeated here.
S505. the electronic device 100 sends the display screen status of the electronic device 100 to the electronic device 200 every a specified period of time B1.
Specifically, the display screen state detection module in the electronic device 100 may send the acquired display screen state of the electronic device 100 to the electronic device 200 through a wireless communication connection. It may be appreciated that, because the display status detection module in the electronic device 100 detects the display status of the electronic device 100 every specified duration B1 (for example, every 3 seconds), the display status detection module in the electronic device 100 may send the detected display status of the electronic device 100 to the electronic device 200 through the wireless communication connection every specified duration B1 (for example, every 3 seconds). Preferably, the display status detection module in the electronic device 100 may send the display status of the electronic device 100 to the electronic device 200 through a syngy service.
S506, the electronic device 200 judges whether the device state of the electronic device 100 is in a non-use state based on the display screen state of the electronic device 100.
Specifically, when the electronic device 200 determines that the time of the display screen on the electronic device 100 in the first state is less than or equal to the specified duration B2 (e.g., 51 seconds) within the specified period of time C4 (e.g., within 1 minute) based on the display screen state of the electronic device 100, the electronic device 200 may determine that the electronic device 100 is in the non-use state.
The description of the display screen in the first state may refer to the foregoing description, and will not be repeated herein. Preferably, in the embodiment of the present application, the display screen is in a first state: the flow of implementing the present embodiment is described by taking the case that the display screen is in the bright screen state and the unlocking state as an example.
For example, the electronic device 200 may receive the display status of the electronic device 100 transmitted by the electronic device 100 every 3 seconds (i.e., every specified duration B1). The electronic device 200 may record the display status. Then, when the electronic device 200 determines that the display screen on the electronic device 100 is in the bright screen state and the time of the unlocked state is less than or equal to 51 seconds (i.e., the specified duration B2) within 1 minute (i.e., within the specified period C4) based on the recorded display screen state of the electronic device 100, the electronic device 200 may determine that the electronic device 100 is in the non-use state.
Specifically, when the electronic device 200 determines that the time of the display screen on the electronic device 100 in the first state is greater than the specified duration B2 (e.g., 51 seconds) within the specified period of time C4 (e.g., within 1 minute) based on the display screen state of the electronic device 100, the electronic device 200 may determine that the electronic device 100 is in the use state.
For example, the electronic device 200 may receive the display status of the electronic device 100 transmitted by the electronic device 100 every 3 seconds (i.e., every specified duration B1). The electronic device 200 may record the display status. Then, when the electronic device 200 determines that the display screen on the electronic device 100 is in the bright screen state and the time of the unlock state is greater than 51 seconds (i.e., the specified duration B2) within 1 minute (i.e., within the specified time period C4) based on the recorded display screen state of the electronic device 100, the electronic device 200 may determine that the electronic device 100 is in the use state.
S507 when the electronic device 200 determines that the device state of the electronic device 100 is in a non-use state, the electronic device 200 may detect sleep data of the user through the PPG sensor.
Specifically, the description of this step may refer to the description in step S408, and will not be repeated here.
In some examples, when the wireless communication connection (e.g., the synergy service) established by the electronic device 100 and the electronic device 200 is unstable, or the wireless communication connection (e.g., the synergy service) established by the electronic device 100 and the electronic device 200 has been disconnected, the electronic device 200 may not receive the display status of the electronic device 100 transmitted by the electronic device 100, at which time the electronic device 200 may detect sleep data of the user through the PPG sensor.
When the electronic device 200 determines that the device state of the electronic device 100 is in the use state based on the display screen state of the electronic device 100 sent by the electronic device 100, that is, the user is using the electronic device 100, which indicates that the user is in an active state and not in a sleep state, therefore, the electronic device 200 does not detect sleep data of the user, and the electronic device 200 performs the specific steps shown in fig. 5 in a circulating manner. In some examples, the electronic device 200 may clear acceleration data acquired by the ACC sensor when the device state of the electronic device 100 is in the use state.
In some examples, after the electronic device 200 is in a sleep state based on the ACC sensor and the PPG sensor, if the electronic device 200 detects that the number of steps the user walks is greater than or equal to a specified threshold A3 (e.g., 20 steps) based on the gyro sensor and the ACC sensor, the electronic device 200 may determine that the user has been awake and is not currently in a sleep state.
Next, a software architecture applied to the communication system 10 provided in the embodiments of the present application is described.
Referring to fig. 6, fig. 6 is a schematic diagram schematically illustrating a software architecture applied to the communication system 10 according to an embodiment of the present application.
As shown in fig. 6, the electronic device 200 may include: a wearable software module 602 located in the application layer, and a sleep state detection module 601 located in the application framework layer. The electronic device 100 may include: a first application 603 in the application layer, a display screen status detection module 604 in the application framework layer. Wherein:
the sleep state detection module 601 may be configured to: 1. and judging whether the user is in a suspected sleep state or not through the ACC sensor. When the sleep state detection module 601 determines that the user is in a suspected sleep state, the sleep state detection module 601 may send information of the suspected sleep state to the wearable software module 602; 2. for receiving status information of the electronic device 100 sent by the wearable software module 602. When the status information of the electronic device 100 indicates that the electronic device 100 is in a non-use state, the sleep state detection module 601 may detect sleep data of the user through the PPG sensor. In some examples, the sleep state detection module 601 clears the acceleration data acquired by the ACC sensor when the state information of the electronic device 100 indicates that the device state of the electronic device 100 is in the use state; 3. in some examples, when the wireless communication connection (e.g., bluetooth connection) established between the electronic device 100 and the electronic device 200 is unstable, or the wireless communication connection established between the electronic device 100 and the electronic device 200 is disconnected, the wearable software module 602 may not receive the state information of the electronic device 100 sent by the first application in the electronic device 100, at this time, the sleep state detection module 601 may receive the first indication information sent by the wearable software module 602, where the first indication information is used to indicate that the device state of the electronic device 100 is unknown. In response to the first indication information, the sleep state detection module 601 may detect sleep data of the user through the PPG sensor. The specific implementation may refer to the description of the embodiment shown in fig. 4, and will not be described herein.
The wearable software module 602 may be configured to: 1. receiving the information of the suspected sleep state sent by the sleep state detection module 601, and then sending a display screen state detection instruction to a first application 603 in the electronic device 100 through a wireless communication connection (for example, a bluetooth connection); 2. the state information of the electronic device 100 transmitted by the first application 603 in the electronic device 100 is received through a wireless communication connection (e.g., bluetooth connection), and then the state information of the electronic device 100 is transmitted to the sleep state detection module 601. The specific implementation may refer to the description of the embodiment shown in fig. 4, and will not be described herein.
The first application 603 may be for: 1. the display screen state detection instructions sent by the wearable software module 602 in the electronic device 200 are received through a wireless communication connection (e.g., a bluetooth connection), and then the display screen state detection instructions may be sent to the display screen state detection module 604 every specified duration B1 (e.g., every 3 seconds); 2. the display status of the electronic device 100 sent by the display status detection module 604 may be received every specified period of time B1 (e.g., every 3 seconds), and the device status of the electronic device 100 may be determined based on the display status of the electronic device 100; 3. the status information of the electronic device 100 is sent to the wearable software module 602 in the electronic device 200 via a wireless communication connection (e.g., a bluetooth connection). The specific implementation may refer to the description of the embodiment shown in fig. 4, and will not be described herein.
The display screen status detection module 604 may be configured to: 1. the display screen state detection instruction transmitted by the first application 603 is received every specified period of time B1 (for example, every 3 seconds). Detecting a display screen state of the electronic device 100 in response to the display screen state detection instruction; 2. the display status of the electronic device 100 is sent to the first application 603 every specified duration B1 (e.g., every 3 seconds). The specific implementation may refer to the description of the embodiment shown in fig. 4, and will not be described herein.
Next, another software architecture applied to the communication system 10 provided in the embodiments of the present application is described.
Referring to fig. 7, fig. 7 schematically illustrates another software architecture applied to the communication system 10 according to the embodiment of the present application.
As shown in fig. 7, the electronic device 200 may include: a wearable software module 702 located in the application layer, and a sleep state detection module 701 located in the application framework layer. The electronic device 100 may include: the display screen status detection module 703 is located in the application framework layer. Wherein:
the sleep state detection module 701 may be configured to: 1. and judging whether the user is in a suspected sleep state or not through the ACC sensor. When the sleep state detection module 701 determines that the user is in a suspected sleep state, the sleep state detection module 701 may send information of the suspected sleep state to the wearable software module 702; 2. for receiving status information of the electronic device 100 sent by the wearable software module 702. When the status information of the electronic device 100 indicates that the device status of the electronic device 100 is in the non-use state, the sleep state detection module 701 may detect sleep data of the user through the PPG sensor. In some examples, the sleep state detection module 701 clears the acceleration data acquired by the ACC sensor when the state information of the electronic device 100 indicates that the device state of the electronic device 100 is in the use state; 3. in some examples, when the wireless communication connection (e.g., the synergy service) established between the electronic device 100 and the electronic device 200 is unstable, or the wireless communication connection established between the electronic device 100 and the electronic device 200 is disconnected, the electronic device 200 may not receive the display screen status of the electronic device 100 sent by the display screen status detection module 703 in the electronic device 100, at this time, the sleep status detection module 701 may receive the first indication information sent by the wearable software module 702, where the first indication information is used to indicate that the device status of the electronic device 100 is unknown. In response to the first indication information, the sleep state detection module 701 may detect sleep data of the user through the PPG sensor. The specific implementation may refer to the description of the embodiment shown in fig. 5, and will not be described herein.
The wearable software module 702 may be used to: 1. receiving the information of the suspected sleep state sent by the sleep state detection module 701, and then sending a display screen state detection instruction to the display screen state detection module 703 in the electronic device 100 through a syngy service between the electronic device 100 and the electronic device 200 at intervals of a specified duration B1 (for example, at intervals of 3 seconds); 2. receiving the display screen state of the electronic device 100 sent by the display screen state detection module 703 in the electronic device 100 at intervals of a specified duration B1 (for example, at intervals of 3 seconds) through a syngy service between the electronic device 100 and the electronic device 200, and judging the device state of the electronic device 100 based on the display screen state of the electronic device 100; 3. the status information of the electronic device 100 is sent to the sleep state detection module 701. The specific implementation may refer to the description of the embodiment shown in fig. 5, and will not be described herein.
The display screen status detection module 703 may be configured to: 1. receiving a display screen state detection instruction sent by the wearable software module 702 in the electronic device 100 at intervals of a designated duration B1 (for example, at intervals of 3 seconds) through a synner gy service between the electronic device 100 and the electronic device 200; 2. detecting a display screen state of the electronic device 100 in response to the display screen state detection instruction; 3. the display status of the electronic device 100 is sent to the wearable software module 702 in the electronic device 200 at specified time intervals B1 (e.g., at 3 seconds intervals) through a syngy service between the electronic device 100 and the electronic device 200. The specific implementation may refer to the description of the embodiment shown in fig. 5, and will not be described herein.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (10)

1. A detection system, comprising: the electronic device comprises a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish communication connection, and the communication connection comprises:
the second electronic device is used for sending a display screen state detection instruction to the first electronic device when the second electronic device determines that the user is in a suspected sleep state through the acceleration ACC sensor;
the first electronic equipment is used for responding to the display screen state detection instruction and acquiring the display screen state of the first electronic equipment at intervals of a first time;
the first electronic device is further configured to send first status information to the second electronic device when the first electronic device determines that the first electronic device is in a non-use state based on the display screen status acquired at intervals of a first time period; the first state information is used for indicating that the first electronic equipment is in a non-use state;
The second electronic device is further configured to detect sleep data of the user through a photoplethysmography PPG sensor when the second electronic device receives the first status information.
2. The detection system according to claim 1, wherein when the electronic device determines that the user is in a suspected sleep state, the second electronic device is specifically configured to:
the second electronic device is used for detecting acceleration values in the x axis, the y axis and the z axis in real time through the ACC sensor;
the second electronic device is further configured to store an acceleration value of the x-axis, an acceleration value of the y-axis, and an acceleration value of the z-axis in a first period of time;
the second electronic device is further configured to determine that the user is in a suspected sleep state when the second electronic device detects that the acceleration value of the x axis, the acceleration value of the y axis, and the acceleration value of the z axis are all less than a first threshold in a second time period; wherein the first time period includes the second time period.
3. The detection system according to claim 1, wherein when the first electronic device determines that the first electronic device is in a non-use state based on the display screen states acquired at the intervals of the first time period, the first electronic device is specifically configured to:
The first electronic equipment is used for recording the display screen state acquired at intervals of a first time;
the first electronic device is further configured to determine that the first electronic device is in a non-use state when the first electronic device determines that the time that the display screen state of the first electronic device is in the bright screen state is longer than a second time period in a third time period.
4. The detection system according to claim 1, wherein the first electronic device is configured to, in response to the display screen status detection instruction, obtain, at intervals of a first time period, a display screen status of the first electronic device, and send the display screen status obtained at intervals of the first time period to the second electronic device;
the second electronic device is used for detecting sleep data of the user through the PPG sensor when the first electronic device is determined to be in a non-use state based on the display screen state acquired at intervals of the first time.
5. A sleep state detection method applied to a second electronic device, comprising:
the second electronic equipment and the first electronic equipment are in communication connection;
When the second electronic equipment determines that the user is in a suspected sleep state through the ACC sensor, the second electronic equipment sends a display screen state detection instruction to the first electronic equipment;
the second electronic equipment receives first state information sent by the first electronic equipment; the first state information is used for indicating that the first electronic equipment is in a non-use state, and the first state information is determined information based on the display screen state of the first electronic equipment obtained at intervals of a first time;
and when the second electronic device receives the first state information, the second electronic device detects sleep data of the user through a PPG sensor.
6. The method according to claim 5, wherein when the second electronic device determines that the user is in a suspected sleep state through the acceleration ACC sensor, the second electronic device sends a display screen state detection instruction to the first electronic device, specifically including:
the second electronic device detects acceleration values in the x axis, the y axis and the z axis in real time through the ACC sensor;
the second electronic device stores the acceleration value of the x axis, the acceleration value of the y axis and the acceleration value of the z axis in a first time period;
When the second electronic device detects that the acceleration value of the x axis, the acceleration value of the y axis and the acceleration value of the z axis are smaller than a first threshold value in a second time period, the second electronic device determines that the user is in a suspected sleep state; wherein the first time period includes the second time period;
and the second electronic equipment sends a display screen state detection instruction to the first electronic equipment.
7. An electronic device, being a second electronic device, comprising: one or more processors, one or more memories, and a display screen; the one or more memories are coupled with one or more processors, the one or more memories being configured to store computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 5-6.
8. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 5-6.
9. A chip or chip system comprising processing circuitry and interface circuitry, the interface circuitry to receive code instructions and to transmit to the processing circuitry, the processing circuitry to execute the code instructions to perform the method of any of claims 5-6.
10. A computer program product, characterized in that the computer program product, when run on an electronic device, causes the electronic device to perform the method of any of claims 5-6.
CN202211103847.3A 2022-09-09 2022-09-09 Sleep state detection method, electronic equipment and system Pending CN117678970A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211103847.3A CN117678970A (en) 2022-09-09 2022-09-09 Sleep state detection method, electronic equipment and system
PCT/CN2023/117593 WO2024051790A1 (en) 2022-09-09 2023-09-08 Sleep state detection method, electronic devices, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211103847.3A CN117678970A (en) 2022-09-09 2022-09-09 Sleep state detection method, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN117678970A true CN117678970A (en) 2024-03-12

Family

ID=90127162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211103847.3A Pending CN117678970A (en) 2022-09-09 2022-09-09 Sleep state detection method, electronic equipment and system

Country Status (2)

Country Link
CN (1) CN117678970A (en)
WO (1) WO2024051790A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105433904A (en) * 2015-11-24 2016-03-30 小米科技有限责任公司 Sleep state detection method, device and system
KR20200113348A (en) * 2019-03-25 2020-10-07 삼성전자주식회사 Electronic device for screening risk degree of obstructive sleep apnea and operating method thereof
CN113545745B (en) * 2020-04-23 2023-03-10 华为技术有限公司 Usage monitoring method and medium for wearable electronic device and electronic device thereof
CN114424927A (en) * 2020-10-29 2022-05-03 华为技术有限公司 Sleep monitoring method and device, electronic equipment and computer readable storage medium
CN114762588A (en) * 2021-01-15 2022-07-19 华为技术有限公司 Sleep monitoring method and related device

Also Published As

Publication number Publication date
WO2024051790A1 (en) 2024-03-14

Similar Documents

Publication Publication Date Title
EP3357421B1 (en) Electronic device for authenticating biometric data and system
KR102561587B1 (en) Electronic apparatus and operating method thereof
KR102534724B1 (en) Electronic apparatus and operating method thereof
US20180235542A1 (en) Electronic device for measuring biometric information
CN113827185B (en) Wearing tightness degree detection method and device for wearing equipment and wearing equipment
CN111819533B (en) Method for triggering electronic equipment to execute function and electronic equipment
KR20180047654A (en) Method for recognizing user activity and electronic device for the same
KR20180088020A (en) Electronic device and operating method thereof
KR20170019127A (en) Method for controlling according to state and electronic device thereof
US10198057B2 (en) Electronic device and method for measuring position change
KR102547054B1 (en) Electronic device and method for controlling activation of camera module
CN111554069B (en) Intelligent alarm method and device
EP3381369B1 (en) Electronic device and method for measuring biometric information
CN108388334B (en) Electronic device and method for preventing electronic device from consuming current
CN115589051A (en) Charging method and terminal equipment
KR20190007634A (en) A wearable device for measuring a biological signal
CN113069089B (en) Electronic device
CN115695648A (en) Interface display method and electronic equipment
CN117678970A (en) Sleep state detection method, electronic equipment and system
KR20170055884A (en) A method for executing a function of an electronic device using a bio-signal and the electronic device therefor
WO2022057476A1 (en) Method for generating calibration signal, electronic device, and computer storage medium
CN113162837B (en) Voice message processing method, device, equipment and storage medium
US11553850B2 (en) Electronic device and method for identifying occurrence of hypotension
CN114690849A (en) Clock skew determination method, device and storage medium
CN116088726B (en) Application icon display method and terminal 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