Sleep state detection method, electronic device and system
By combining data from ACC and PPG sensors in wearable devices, and using the display status to judge user behavior, the problem of misjudgment in sleep state detection in the existing technology is solved, and the accuracy of sleep data and the power consumption of the device are improved. efficiency.
Patent Information
- Application Number
- CN202211103847.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-09-09
AI Technical Summary
Algorithms used by existing wearable devices to detect users' sleep status often misjudge, resulting in low accuracy of sleep data.
By combining the data from the ACC sensor and the PPG sensor, the display status of the electronic device is used to indirectly determine the user's behavior, reducing misjudgments, improving the accuracy of sleep state judgment, and reducing device power consumption.
It effectively reduces the probability of misjudgment of the user's sleep state, improves the accuracy of sleep data acquisition, and reduces the power consumption of electronic devices.
Smart Images

Figure CN117678970B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a sleep state detection method, electronic device and system. Background Art
[0002] With the 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 can often use wearable devices to detect their own physiological conditions to understand whether their bodies are healthy. For example, users can use smart watches to monitor their sleep status based on the physiological data detected by them (for example, heart rate, acceleration values during physical activities, etc.). Based on the above-detected physiological data of the user, the smart watch can analyze the time occupied by each sleep state, such as light sleep, deep sleep, and rapid eye movement, during the entire sleep period of the user, as well as the sleep data such as the proportion of each sleep state in the sleep period. Users can control their physical health based on the sleep data analyzed above.
[0003] However, the algorithms currently used by wearable devices to detect the user's sleep status often cause the electronic devices to misjudge the user's sleep status, resulting in large errors between the sleep data obtained by the wearable device and the actual sleep data, and low accuracy of the sleep data. Summary of the invention
[0004] The present application provides a sleep state detection method, electronic device and system, which can indirectly determine the user's behavior (for example, whether the electronic device 100 is used) through the display screen state of the electronic device 100, and detect the user's sleep data in combination with the data information obtained by the ACC sensor and the PPG sensor. In this way, the probability of misjudging the user's sleep state can be reduced, and the accuracy of judging the user's sleep state can be improved. At the same time, the power consumption of the electronic device 200 can be reduced, and the accuracy of obtaining the user's sleep data can be improved.
[0005] In a first aspect, an embodiment of the present application provides a detection system, comprising: a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection, wherein: the second electronic device is used to send a display screen state detection instruction to the first electronic device when the second electronic device determines that the user is in a suspected sleeping state through an acceleration ACC sensor. The first electronic device is used to obtain the display screen state of the first electronic device every first time period in response to the display screen state detection instruction. The first electronic device is also used 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 state obtained every first time period. The first status information is used to indicate that the first electronic device is in a non-use state. The second electronic device is also used to detect the user's sleep data through a photoplethysmography (PPG) sensor when the second electronic device receives the first status information.
[0006] In a possible implementation, when the electronic device determines that the user is in a suspected sleeping state, the second electronic device is specifically used for: the second electronic device is used to detect the acceleration values on the x-axis, y-axis and z-axis in real time through the ACC sensor. The second electronic device is also used to store 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. The second electronic device is also used to determine that the user is in a suspected sleeping 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 in a second time period. Wherein, the first time period includes the second time period.
[0007] In a possible implementation, when the first electronic device determines that the first electronic device is in a non-use state based on the display screen state acquired every first time period, the first electronic device is specifically used to: the first electronic device is used to record the display screen state acquired every first time period. The first electronic device is also used to determine that the first electronic device is in a non-use state when the first electronic device determines that within a third time period, the display screen state of the first electronic device is in a bright screen state for a time greater than a second time period.
[0008] In a possible implementation, the first electronic device is used to, in response to the display screen state detection instruction, after acquiring the display screen state of the first electronic device at first intervals, send the display screen state acquired at first intervals to the second electronic device. The second electronic device is used to detect the user's sleep data through a PPG sensor when it is determined that the first electronic device is in a non-use state based on the display screen state acquired at first intervals.
[0009] In a second aspect, an embodiment of the present application provides a sleep state detection method, which is applied to a second electronic device, and the method includes: the second electronic device and the first electronic device establish a communication connection. When the second electronic device determines through the ACC sensor that the user is in a suspected sleeping state, the second electronic device sends a display state detection instruction to the first electronic device. The second electronic device receives the first state information sent by the first electronic device. The first state information is used to indicate that the first electronic device is in a non-use state, and the first state information is information determined by the first electronic device based on the display state of the first electronic device obtained at first intervals. When the second electronic device receives the first state information, the second electronic device detects the user's sleep data through the PPG sensor.
[0010] In a possible implementation, when the second electronic device determines that the user is in a suspected sleeping 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 the acceleration values on the x-axis, y-axis and 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 all less than the first threshold value in a 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.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, which is a second electronic device, comprising one or more processors, one or more memories, and a display screen. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method in any possible implementation of the second aspect.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the second aspect.
[0013] In a fifth aspect, an embodiment of the present application provides a chip or a chip system, comprising a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions to execute the method in any possible implementation of the second aspect above.
[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute a method in any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0017] Figure 3 A schematic diagram of the hardware structure of an electronic device 200 provided in an embodiment of the present application;
[0018] Figure 4 A schematic diagram of a specific process of a sleep state detection method provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of a specific process of another sleep state detection method provided in an embodiment of the present application;
[0020] Figure 6 A schematic diagram of a software architecture applied to a communication system 10 provided in an embodiment of the present application;
[0021] Figure 7 A schematic diagram of another software architecture applied to a communication system 10 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the attached claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in its context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed striking ones. In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.
[0023] First, a communication system 10 provided in an embodiment of the present application is introduced.
[0024] Please refer to Figure 1 , Figure 1 The schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application is exemplified.
[0025] like Figure 1 As shown, the communication system 10 may include: an electronic device 100 and an electronic device 200 .
[0026] The electronic device 100 (also referred to as the first electronic device) may be a mobile phone, a tablet computer, a PC, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The present application does not impose any restrictions on the specific type of the electronic device 100.
[0027] The electronic device 200 (also referred to as the second electronic device) may be a wearable device such as a smart watch or a smart bracelet, a portable device, an augmented reality (AR) / virtual reality (VR) device, etc. The present application does not impose any restrictions on the specific type of the electronic device 200.
[0028] like Figure 1 As shown, the electronic device 100 can establish a wireless communication connection with the electronic device 200, and the electronic device 100 and the electronic device 200 can transmit data information to each other through the above wireless communication connection. For example, the electronic device 200 can send a display screen state detection instruction to the electronic device 100 through a wireless communication connection, and / or data information such as the user's sleep data, and the electronic device 100 can send a display screen state to the electronic device 200 through a wireless communication connection, and / or data information such as the device state of the electronic device 100. Among them, the sleep data can refer to: the time occupied by each sleep state such as a light sleep state, a deep sleep state, and a rapid eye movement state during the entire sleep period of the user, as well as the proportion of each sleep state in the sleep period. The data information sent between the electronic device 100 and the electronic device 200 will be described in detail in subsequent embodiments, and will not be repeated here. Specifically, the wireless communication connection can be one or more wireless communication connections such as Bluetooth, wireless fidelity direct (wireless fidelity direct, Wi-Fi direct) or wireless fidelity software access point (wireless fidelity software access point, Wi-Fi softAP).
[0029] In a possible implementation, the electronic device 100 can establish a wired communication connection with the electronic device 200 to exchange data. For example, the electronic device 100 can establish a wired connection with the electronic device 200 via a universal serial bus (USB), and transmit data information to each other based on the wired communication connection.
[0030] 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. In other embodiments of the present application, the communication system 10 may include more or fewer electronic devices than shown in the figure, and may also include electronic devices of different types than those shown in the figure. For example, the communication system 10 may also include multiple electronic devices 100 that establish wireless / wired communication connections with the electronic device 200, such as displays with communication functions, and / or tablet computers, and / or PCs, etc., and the present application does not limit this.
[0031] Next, the electronic device 100 provided in the embodiment of the present application is introduced.
[0032] Please refer to Figure 2 , Figure 2 The hardware structure diagram of an electronic device 100 provided in an embodiment of the present application is exemplarily shown.
[0033] like Figure 2 As shown, the electronic device 100 may include: a processor 101 , a memory 102 , a wireless communication module 103 , a display screen 104 , and a sensor module 105 .
[0034] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0035] 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-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0036] The processor 101 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may store instructions or data that the processor 101 has just used or circulated. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
[0037] In some embodiments, the processor 101 may include one or more interfaces. The interface may include an integrated circuit (IC) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface, etc.
[0038] The memory 102 is coupled to the processor 101 and is used to store various software programs and / or multiple groups of instructions. In a specific implementation, the memory 102 may include a volatile memory, such as a random access memory (RAM); it may also include a non-volatile memory, such as a ROM, a flash memory, a hard disk drive (HDD) or a solid state drive (SSD); the memory 102 may also include a combination of the above-mentioned types of memories. The memory 102 may also store some program codes so that the processor 101 calls the program codes stored in the memory 102 to implement the implementation method of the embodiment of the present application in the electronic device 100. The memory 102 may store an operating system, such as an embedded operating system such as uC OS, VxWorks, RTLinux, etc.
[0039] The wireless communication module 103 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 103 can be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module 103 can also receive signals to be sent from the processor 101, modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna. In some embodiments, the electronic device 100 can also communicate with the processor 101 through the Bluetooth module ( Figure 2 Not shown), WLAN module ( Figure 2The device 100 may be connected to the electronic device 100 through a wireless communication module (not shown) to detect or scan devices near the electronic device 100, and establish a wireless communication connection with the nearby devices to transmit data. The Bluetooth module may provide a solution including one or more Bluetooth communications in basic rate / enhanced data rate (BR / EDR) or Bluetooth low energy (BLE), and the WLAN module may provide a solution including one or more WLAN communications in Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
[0040] The display screen 104 can be used to display images, videos, etc. The display screen 104 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 104, where N is a positive integer greater than 1.
[0041] The sensor module 105 may include a plurality of sensor devices, for example, a touch sensor (not shown in the figure). The touch sensor may also be referred to as a "touch control device". The touch sensor may be provided on the display screen 104, and the touch sensor and the display screen 104 form a touch screen, also referred to as a "touch control screen". The touch sensor may be used to detect a touch operation on or near the touch sensor.
[0042] It should be noted that Figure 2 The electronic device 100 shown in the figure is only used to exemplify the hardware structure of the electronic device provided by the present application, and does not constitute a specific limitation to the present application.
[0043] Next, the electronic device 200 provided in the embodiment of the present application is introduced.
[0044] Please refer to Figure 3 , Figure 3 The hardware structure diagram of an electronic device 200 provided in an embodiment of the present application is exemplified.
[0045] like Figure 3 As shown, the electronic device 200 may include: a processor 201, a memory 202, a wireless communication module 203, a power switch 204, a display screen 205, and a sensor module 206. The above modules may be connected via a bus or other means, and the embodiment of the present application has been taken as an example of a bus connection.
[0046] The processor 201 can be used to read and execute computer-readable instructions. In a specific implementation, the processor 201 can mainly include a controller, an arithmetic unit and a register. Among them, the controller is mainly responsible for decoding instructions and sending control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for saving register operands and intermediate operation results temporarily stored during the execution of instructions. In a specific implementation, the hardware architecture of the processor 201 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture or an NP architecture, etc.
[0047] The memory 202 is coupled to the processor 201 and is used to store various software and / or multiple sets of instructions. In a specific implementation, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 202 may also store a communication program, which may be used to communicate with the electronic device 100 or other electronic devices.
[0048] The wireless communication module 203 may include a Bluetooth communication module 203A or others. The electronic device 200 may receive or transmit wireless signals through one or more Bluetooth communication solutions in the Bluetooth communication module 203A to establish a wireless communication connection with the electronic device 100. The electronic device 200 may obtain data information transmitted by the electronic device 100 through the above-mentioned wireless communication connection, and may also send data instructions to the electronic device 100 through the above-mentioned wireless communication connection. Among them, the Bluetooth communication module 203A may provide a solution including one or more Bluetooth communications in BR / EDR or BLE. Optionally, the wireless communication module 203 may also include a WLAN communication module ( Figure 3 (not shown), the WLAN communication module can provide a solution including one or more WLAN communication of Wi-Fidirect, Wi-Fi LAN or Wi-Fi softAP. In some embodiments, the electronic device 200 can establish a wireless communication connection with the electronic device 100 through the wireless communication technology provided by the WLAN module, and perform data exchange with the electronic device 200 based on the wireless communication connection.
[0049] The power switch 204 may be used to control the supply of power to the electronic device 200 .
[0050] For the description of the display screen 205 , reference may be made to the description of the display screen 104 in the aforementioned electronic device 100 , which will not be repeated here.
[0051] The sensor module 206 may include a touch sensor 206A, an acceleration (ACC) sensor 206B, and a photoplethysmography (PPG) sensor 206C, etc. Among them:
[0052] The touch sensor 206A may also be referred to as a “touch control device”. The touch sensor 206A may be disposed on 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 control screen”. The touch sensor 206A may be used to detect a touch operation on or near the touch sensor 206A.
[0053] The ACC sensor 206B can be used to detect the magnitude of acceleration in various directions (generally x, y, and z axes) of the electronic device 200. For example, when the electronic device 200 is stationary, the ACC sensor 206B can detect the magnitude and direction of gravity.
[0054] The PPG sensor 206C can be used to measure the user's heart rate, and / or physiological data of the human body such as blood oxygen saturation. Taking the detection of the user's heart rate as an example, in a specific implementation, the PPG sensor 206C can emit a light signal of a specified wavelength, which can illuminate the arterial blood vessels under the skin tissue and be reflected back to the PPG sensor 206C. When the heart beats, the contraction and expansion of the blood vessels will change the blood volume in the arterial blood vessels, thereby affecting the absorption or attenuation of the light signal by the arterial blood vessels, thereby affecting the reflection of the light signal. The PPG sensor 206C can detect the user's heart rate based on the changes in the reflected light signal. It should be noted that the PPG sensor 206C can also detect the user's heart rate in other ways, and the present application does not constitute a limitation to this.
[0055] Optionally, the electronic device 200 may include one or more physical buttons. The one or more physical buttons may receive an input operation (e.g., pressing the physical button) from a user. In response to the input operation, the electronic device 200 may perform an operation corresponding to the control shown on the display screen corresponding to the physical button.
[0056] Optionally, the electronic device 200 may further include a USB interface, and the electronic device 200 may establish a wired communication connection with the electronic device 100 through the USB interface, and transmit data information to each other through the wired communication connection.
[0057] Understandably, Figure 3The electronic device 200 shown is only an implementation of an embodiment of the present application and does not constitute a specific limitation on the electronic device 200. Preferably, the electronic device 200 may be a smart watch, and the electronic device 200 may also include a strap and a dial. The dial may include a display screen 205 for displaying images, videos, controls, text information, and the like. The strap may be used to fix the electronic device 200 to the limbs of the human body for easy wearing. In practical applications, the electronic device 200 may also include more or fewer components than shown in the figure, which is not limited here.
[0058] Next, a process for detecting whether a user is in a sleeping state provided by an embodiment of the present application is introduced.
[0059] Take the electronic device 200 as an example of a smart watch for illustrative description. In some application scenarios, the electronic device 200 can be fixed on the user's wrist through a watch strap. The electronic device 200 can detect whether the user is in a sleeping state through the ACC sensor and the PPG sensor.
[0060] Specifically, when the electronic device 200 detects through the ACC sensor that the acceleration values on the x-axis, y-axis and z-axis are less than the specified threshold A1, and at the same time, detects through the PPG sensor that the user's heart rate is less than or equal to the specified threshold A2 and maintains a certain length of time (for example, 10 minutes), the electronic device 200 can determine that the user is in a sleeping state.
[0061] However, the above process of detecting whether the user is in a sleeping state often causes the electronic device 200 to misjudge that the user has entered a sleeping state. For example, when a user lies on the sofa for a long time and plays with a mobile phone without moving, the user's body is in a stationary state. The electronic device 200 can detect through the ACC sensor that the acceleration values on the x-axis, y-axis and z-axis are less than the specified threshold value A1, and the user's heart rate is less than or equal to the specified threshold value A2 and maintains for a certain period of time. Therefore, the electronic device 200 determines that the user is in a sleeping state. However, in the actual scenario, the user has not fallen asleep and is still awake. The above misjudgment of the sleep state will cause a large error between the sleep data obtained by the electronic device and the actual sleep data, and the accuracy of the sleep data is low.
[0062] Therefore, an embodiment of the present application provides a sleep state detection method.
[0063] Specifically, the method can be applied to the aforementioned communication system 10.
[0064] First, the electronic device 200 can determine that the user is in a suspected sleeping state through the ACC sensor. Then, the electronic device 200 can send a display screen status detection instruction to the electronic device 100. After receiving the display screen status detection instruction, the electronic device 100 can obtain the display screen status of the electronic device 100. The electronic device 100 or the electronic device 200 can judge the device status of the electronic device 100 based on the display screen status of the electronic device 100. Here, the device status of the electronic device 100 can be divided into: a usage status and a non-usage status. Among them, the usage status refers to that the user is using the electronic device 100, and the non-usage status refers to that the user is not using the electronic device 100.
[0065] When the electronic device 100 or the electronic device 200 determines that the device state of the electronic device 100 is in a non-use state according to the display state of the electronic device 100, the electronic device 200 can detect the user's sleep data through the 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 a use state according to the display state of the electronic device 100, the electronic device 200 will not detect the user's sleep data through the data information of the PPG sensor. In some examples, when the device state of the electronic device 100 is in a use state, the electronic device 200 can clear the acceleration data obtained by the ACC sensor.
[0066] It can be seen from the steps of the above sleep state detection method that the sleep detection method provided in the embodiment of the present application can indirectly determine the user's behavior (for example, whether the electronic device 100 is used) through the display screen state of the electronic device 100, and detect the user's sleep data in combination with the data information obtained by the ACC sensor and the PPG sensor. In this way, the probability of misjudging the user's sleep state can be reduced, and the accuracy of judging the user's sleep state can be improved. At the same time, the power consumption of the electronic device 200 can be reduced, and the accuracy of obtaining the user's sleep data can be improved.
[0067] The following describes a specific process of a sleep state detection method provided in an embodiment of the present application.
[0068] Please refer to Figure 4 , Figure 4 The specific flow chart of a sleep state detection method provided in an embodiment of the present application is exemplified.
[0069] like Figure 4 As shown, the specific process of this implementation mode may be as follows:
[0070] S401. The electronic device 100 and the electronic device 200 establish a wireless communication connection.
[0071] Preferably, the embodiment of the present application takes the wireless communication connection as a Bluetooth connection as an example. The electronic device 100 can 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. Among them, the Bluetooth module can provide a solution including one or more Bluetooth communications in BR / EDR or BLE.
[0072] In some examples, the electronic device 100 may also transmit signals through the WLAN module to detect or scan the electronic device 200, establish a wireless communication connection with the electronic device 200, and transmit data information to each other. The WLAN module may provide a solution for WLAN communication including one or more of Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP.
[0073] In other examples, the electronic device 100 may also establish a wireless communication connection with the electronic device 200 through frequency modulation (FM), near field communication (NFC) or infrared (IR) technology and transmit data information to each other based on the wireless communication connection. This application does not limit this. This application does not limit this.
[0074] S402. The electronic device 200 determines whether the user is in a suspected sleeping state through the ACC sensor.
[0075] Specifically, the electronic device 200 can detect the acceleration values on the x-axis, y-axis and z-axis in real time through the ACC sensor. The electronic device 200 can store the acceleration values of the above three axes in the specified time period C1 (also referred to as the first time period, for example, in the past 30 minutes). When the electronic device 200 detects that in the specified time period C2 (also referred to as the second time period, for example, in the past 10 minutes), the acceleration values of the above three axes are less than the specified threshold value A1 (also referred to as the first threshold value, for example, 1.1m / s2), and in the specified time period C3 (for example, in the past 15 minutes), the acceleration values of the above three axes are greater than the specified threshold value A1 for a time period less than the specified time period B3 (for example, 3 minutes), the electronic device 200 can determine that the user is in a suspected sleeping state. The electronic device 200 can perform the following steps. Otherwise, if the electronic device 200 determines that the user is not in a suspected sleeping state, the electronic device 200 can continue to execute the process of this step.
[0076] In a possible implementation, the electronic device 200 may store the acceleration values of the three axes in a specified time period C1 (e.g., within the last 30 minutes). When the electronic device 200 detects that the acceleration values of the three axes are less than a specified threshold value A1 (e.g., 1.1 m / s2) in a specified time period C2 (e.g., within the last 10 minutes), the electronic device 200 may determine that the user is in a suspected sleeping state.
[0077] S403 . When the electronic device 200 determines that the user is in a suspected sleeping state, the electronic device 200 sends a display screen state detection instruction to the first application in the electronic device 100 .
[0078] Specifically, the electronic device 200 can send the display screen state detection instruction to the first application in the electronic device 100 based on the wireless communication connection established in S401. Preferably, the electronic device 200 can send the display screen state detection instruction to the first application in the electronic device 100 based on the Bluetooth connection.
[0079] S404. After the first application in the electronic device 100 receives the display screen status detection instruction, the electronic device 100 obtains the display screen status of the electronic device 100 through the first application every specified time period B1 (for example, every 3 seconds).
[0080] Specifically, every specified time B1 (for example, every 3 seconds), the specified function / specified service in the display screen state detection module in the electronic device 100 can detect the state of the display screen on the electronic device 100. Then, the first application in the electronic device 100 can obtain the display screen state of the electronic device 100 detected by the above-mentioned specified function / specified service every specified time B1 (also referred to as the first time, for example, every 3 seconds). The display screen state detection module can be located in the application framework layer of the electronic device 100.
[0081] Exemplarily, the electronic device 100 can detect that the display screen is in a light screen state or an off screen state based on the isScreenOn.() function in the power management service (PowerMananger). Among them, the light screen state can refer to the state in which all areas of the display screen on the electronic device 100 are lit and displayed; the off screen state can refer to the state in which the display screen of the electronic device 100 is dormant and becomes a black screen, the display screen does not display interface elements, but other devices and programs work normally. The electronic device 100 can detect that the display screen is in a locked screen state or an unlocked state based on the system broadcast event. Among them, the locked screen state can refer to the state in which some functions in the electronic device 100 are locked, that is, the electronic device 100 does not provide some functions. The functions provided by the electronic device 100 in the locked screen state have low requirements for data security, such as: answering calls, hanging up calls, adjusting the volume of music, starting the camera application, turning on / off the flight mode, etc. In the unlocked state, the electronic device 100 can not only provide the above-mentioned functions with low data security requirements, but also provide functions with high data security requirements, such as: starting some applications (such as WeChat applications), and the functions provided by the application (for example, displaying the WeChat payment interface). That is to say, in the unlocked state, the electronic device 100 can provide all functions that the electronic device 100 can perform.
[0082] It is understandable that the above exemplary description is only used to explain the present application and does not constitute a specific limitation on the present application. The electronic device 100 can also obtain the display screen status of the electronic device 100 in other ways.
[0083] S405 . The first application in the electronic device 100 determines the device state of the electronic device 100 based on the display screen state of the electronic device 100 .
[0084] Specifically, when the electronic device 100 determines through the first application that the display screen on the electronic device 100 is in the first state for a time greater than a specified time length B2 (also referred to as a second time length, for example, 51 seconds) based on the display screen state of the electronic device 100, the electronic device 100 can 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 the non-use state.
[0085] The display screen being in the first state may refer to: the display screen being in a bright screen state and unlocked state, or the display screen being in a bright screen state and whether the display screen is in a locked screen state is not limited. Preferably, the embodiment of the present application takes the display screen being in the first state as the display screen being in a bright screen state and unlocked state as an example to illustrate the process of implementing the present solution.
[0086] For example, when the first application of the electronic device 100 obtains the display screen status of the electronic device 100 every 3 seconds, the first application of the electronic device 100 can record the display screen status. When the first application of the electronic device 100 determines based on the recorded display screen status that the display screen on the electronic device 100 is in the bright screen state and unlocked state for more than 51 seconds within 1 minute, the electronic device 100 can determine that the device status of the electronic device 100 is in the use state.
[0087] When the electronic device 100 determines through the first application based on the state of the display screen that the time that the display screen on the electronic device 100 is in the first state within the specified time period C4 (for example, within 1 minute) is less than or equal to the specified time length B2 (for example, 51 seconds), the electronic device 100 determines that the device state of the electronic device 100 is in a non-use state.
[0088] For example, when the first application of the electronic device 100 obtains the display screen status of the electronic device 100 every 3 seconds, the first application of the electronic device 100 can record the display screen status. When the first application of the electronic device 100 determines based on the recorded display screen status that the display screen on the electronic device 100 is in the bright screen state and unlocked state for less than or equal to 51 seconds within 1 minute, the electronic device 100 determines that the device status of the electronic device 100 is in the non-use state.
[0089] S406. The first application in the electronic device 100 sends the status 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.
[0090] Specifically, the first application in the electronic device 100 can send the status information of the electronic device 100 to the electronic device 200 based on the wireless communication connection established in the aforementioned S401. Preferably, the first application in the electronic device 100 can 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 can be used to indicate the device status of the electronic device 100, for example, indicating that the device status of the electronic device 100 is in use, or indicating that the device status of the electronic device 100 is in non-use. The first status information is used to indicate that the device status of the electronic device 100 is in non-use.
[0091] S407. The electronic device 200 determines whether the device status of the electronic device 100 is in a non-use state based on the received status information of the electronic device 100.
[0092] S408. 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 the user's sleep data through a PPG sensor.
[0093] Specifically, when the electronic device 200 receives status information from the electronic device 100 indicating that the device status of the electronic device 100 is in a non-use state, the electronic device 200 can obtain the user's sleep data through the user's heart rate and / or blood oxygen detected by the PPG sensor.
[0094] In some examples, when the wireless communication connection established between electronic device 100 and electronic device 200 is unstable, or the wireless communication connection established between electronic device 100 and electronic device 200 has been disconnected, electronic device 200 does not receive status information of electronic device 100 within a specified time period C5 (for example, 1.5 minutes, 2 minutes, etc.) after sending a display status detection instruction to electronic device 100. At this time, electronic device 200 can obtain the user's sleep data through the user's heart rate and / or blood oxygen detected by the PPG sensor.
[0095] When the electronic device 200 determines that the device state of the electronic device 100 is in use based on the state information of the electronic device 100 sent by the electronic device 100, that is, the user is using the electronic device 100, indicating that the user is in an active state and not in a sleep state, therefore, the electronic device 200 does not detect the user's sleep data, and the electronic device 200 loops through steps S402-S408. In some examples, when the device state of the electronic device 100 is in use, the electronic device 200 can clear the acceleration data acquired by the ACC sensor.
[0096] Next, the specific process of another sleep state detection method provided in an embodiment of the present application is introduced.
[0097] Please refer to Figure 5 , Figure 5 The specific flow chart of another sleep state detection method provided in an embodiment of the present application is exemplified.
[0098] like Figure 5 As shown, the specific process of this implementation mode may be as follows:
[0099] S501. The electronic device 100 and the electronic device 200 establish a wireless communication connection.
[0100] Specifically, for the description of this step, please refer to the description in S401 above, which will not be repeated here.
[0101] S502. The electronic device 200 determines whether the user is in a suspected sleeping state through the ACC sensor.
[0102] Specifically, for the description of this step, please refer to the description in S402 above, which will not be repeated here.
[0103] S503. When the electronic device 200 determines that the user is in a suspected sleeping state, the electronic device 200 sends a display screen state detection instruction to the display screen state detection module in the electronic device 100.
[0104] Specifically, the electronic device 200 can send a display screen state detection instruction to the display screen state detection module in the electronic device 100 based on the wireless communication connection established in the aforementioned S501. Preferably, the electronic device 200 can send the display screen state detection instruction to the display screen state detection module in the electronic device 100 via a Bluetooth information synchronization service (synergy).
[0105] S504. After the display screen status detection module in the electronic device 100 receives the display screen status detection instruction, the electronic device 100 can detect the display screen status of the electronic device 100 every specified time period B1 (for example, every 3 seconds) through the display screen status detection module.
[0106] Specifically, the display screen state detection module may be located in the application framework layer of the electronic device 100. Regarding the manner in which the electronic device 100 detects the display screen state on the electronic device 100, reference may be made to the description in the aforementioned step S404, which will not be repeated here.
[0107] S505. The electronic device 100 sends the display screen status of the electronic device 100 to the electronic device 200 at specified intervals B1.
[0108] Specifically, the display screen state detection module in the electronic device 100 can send the acquired display screen state of the electronic device 100 to the electronic device 200 via a wireless communication connection. It can be understood that since the display screen state detection module in the electronic device 100 detects the display screen state of the electronic device 100 every specified time length B1 (for example, every 3 seconds), the display screen state detection module in the electronic device 100 can send the display screen state of the electronic device 100 detected this time to the electronic device 200 via a wireless communication connection every specified time length B1 (for example, every 3 seconds). Preferably, the display screen state detection module in the electronic device 100 can send the display screen state of the electronic device 100 to the electronic device 200 via a synergy service.
[0109] S506. The electronic device 200 determines whether the device status of the electronic device 100 is in a non-use state based on the display screen status of the electronic device 100.
[0110] Specifically, when the electronic device 200 determines based on the display screen status of the electronic device 100 that the time when the display screen on the electronic device 100 is in the first state within the specified time period C4 (for example, within 1 minute) is less than or equal to the specified time length B2 (for example, 51 seconds), the electronic device 200 can determine that the electronic device 100 is in a non-use state.
[0111] The description of the display screen being in the first state can refer to the above description, which will not be repeated here. Preferably, the embodiment of the present application takes the display screen being in the first state as: the display screen is in the bright screen state and unlocked state as an example to illustrate the process of implementing this solution.
[0112] Exemplarily, the electronic device 200 may receive the display screen status of the electronic device 100 sent by the electronic device 100 every 3 seconds (that is, every specified time B1). The electronic device 200 may record the display screen 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 unlocked state for less than or equal to 51 seconds (that is, the specified time B2) within 1 minute (that is, within the specified time period C4) based on the display screen status of the electronic device 100 recorded above, the electronic device 200 may determine that the electronic device 100 is in a non-use state.
[0113] Specifically, when the electronic device 200 determines based on the display screen status of the electronic device 100 that the display screen on the electronic device 100 is in the first state for a period of time greater than a specified time length B2 (for example, 51 seconds) within a specified time period C4 (for example, within 1 minute), the electronic device 200 can determine that the electronic device 100 is in use.
[0114] Exemplarily, the electronic device 200 may receive the display screen status of the electronic device 100 sent by the electronic device 100 every 3 seconds (that is, every specified time B1). The electronic device 200 may record the display screen status. Then, when the electronic device 200 determines that the display screen on the electronic device 100 is in the bright screen state and unlocked for more than 51 seconds (that is, the specified time B2) within 1 minute (that is, within the specified time period C4) based on the display screen status of the electronic device 100 recorded above, the electronic device 200 may determine that the electronic device 100 is in use.
[0115] 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 the user's sleep data through the PPG sensor.
[0116] Specifically, for the description of this step, reference may be made to the description in the aforementioned step S408, which will not be repeated here.
[0117] In some examples, when the wireless communication connection (e.g., synergy service) established between electronic device 100 and electronic device 200 is unstable, or the wireless communication connection (e.g., synergy service) established between electronic device 100 and electronic device 200 is disconnected, electronic device 200 cannot receive the display status of electronic device 100 sent by electronic device 100. At this time, electronic device 200 can detect the user's sleep data through the PPG sensor.
[0118] When the electronic device 200 determines that the device state of the electronic device 100 is in use 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, indicating that the user is in an active state and not in a sleep state, therefore, the electronic device 200 does not detect the user's sleep data, and the electronic device 200 loops through the aforementioned Figure 5 In some examples, when the electronic device 100 is in use, the electronic device 200 may clear the acceleration data acquired by the ACC sensor.
[0119] In some examples, when 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 taken by the user is greater than or equal to a specified threshold A3 (for example, 20 steps) based on the gyroscope sensor and the ACC sensor, the electronic device 200 can determine that the user is awake and is not currently in a sleep state.
[0120] Next, a software architecture applied to the communication system 10 provided in an embodiment of the present application is introduced.
[0121] Please refer to Figure 6 , Figure 6 A schematic diagram of a software architecture applied to a communication system 10 provided in an embodiment of the present application is exemplified.
[0122] like Figure 6 As shown, 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 located in the application layer, and a display screen state detection module 604 located in the application framework layer. Among them:
[0123] The sleep state detection module 601 can be used to: 1. Determine whether the user is in a suspected sleeping state through the ACC sensor. When the sleep state detection module 601 determines that the user is in a suspected sleeping state, the sleep state detection module 601 can send the suspected sleeping state information to the wear software module 602; 2. Receive the status information of the electronic device 100 sent by the wear software module 602. When the status information of the electronic device 100 indicates that the electronic device 100 is not in use, the sleep state detection module 601 can detect the user's sleep data through the PPG sensor. In some examples, when the status information of the electronic device 100 indicates that the device status of the electronic device 100 is in use, the sleep state detection module 601 clears the acceleration data acquired by the ACC sensor; 3. In some examples, when the wireless communication connection (for example, 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 cannot receive the status 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 can receive the first indication information sent by the wearable software module 602, and 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 601 can detect the user's sleep data through the PPG sensor. For specific implementation methods, please refer to Figure 4 The description of the illustrated embodiment will not be repeated here.
[0124] The wearable software module 602 can be used to: 1. Receive the suspected sleeping state information sent by the sleep state detection module 601, and then send the display state detection instruction to the first application 603 in the electronic device 100 through a wireless communication connection (for example, a Bluetooth connection); 2. Receive the state information of the electronic device 100 sent by the first application 603 in the electronic device 100 through a wireless communication connection (for example, a Bluetooth connection), and then send the state information of the electronic device 100 to the sleep state detection module 601. For specific implementation methods, please refer to Figure 4 The description of the illustrated embodiment will not be repeated here.
[0125] The first application 603 can be used for: 1. Receive the display status detection instruction sent by the wearable software module 602 in the electronic device 200 through a wireless communication connection (for example, a Bluetooth connection), and then send the display status detection instruction to the display status detection module 604 at a specified time interval B1 (for example, every 3 seconds); 2. Receive the display status of the electronic device 100 sent by the display status detection module 604 at a specified time interval B1 (for example, every 3 seconds), and judge the device status of the electronic device 100 based on the display status of the electronic device 100; 3. Send the status information of the electronic device 100 to the wearable software module 602 in the electronic device 200 through a wireless communication connection (for example, a Bluetooth connection). For specific implementation methods, please refer to Figure 4 The description of the illustrated embodiment will not be repeated here.
[0126] The display screen state detection module 604 can be used to: 1. receive a display screen state detection instruction sent by the first application 603 every specified time B1 (for example, every 3 seconds). In response to the display screen state detection instruction, detect the display screen state of the electronic device 100; 2. send the display screen state of the electronic device 100 to the first application 603 every specified time B1 (for example, every 3 seconds). For specific implementation methods, please refer to Figure 4 The description of the illustrated embodiment will not be repeated here.
[0127] Next, another software architecture applied to the communication system 10 provided in an embodiment of the present application is introduced.
[0128] Please refer to Figure 7 , Figure 7 Another software architecture diagram applied to the communication system 10 provided in an embodiment of the present application is exemplarily shown.
[0129] like Figure 7 As shown, 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: a display screen state detection module 703 located in the application framework layer. Among them:
[0130] The sleep state detection module 701 can be used for: 1. judging whether the user is in a suspected sleeping state through the ACC sensor. When the sleep state detection module 701 determines that the user is in a suspected sleeping state, the sleep state detection module 701 can send the suspected sleeping state information to the wear software module 702; 2. receiving the status information of the electronic device 100 sent by the wear software module 702. When the status information of the electronic device 100 indicates that the device status of the electronic device 100 is in a non-use state, the sleep state detection module 701 can detect the user's sleep data through the PPG sensor. In some examples, when the status information of the electronic device 100 indicates that the device status of the electronic device 100 is in use, the sleep state detection module 701 clears the acceleration data acquired by the ACC sensor; 3. In some examples, when the wireless communication connection (for example, 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 cannot receive the display status of the electronic device 100 sent by the display status detection module 703 in the electronic device 100. At this time, the sleep state detection module 701 can receive the first indication information sent by the wearable software module 702, and 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 can detect the user's sleep data through the PPG sensor. For specific implementation methods, please refer to Figure 5 The description of the illustrated embodiment will not be repeated here.
[0131] The wearable software module 702 can be used for: 1. receiving the suspected sleeping state information sent by the sleep state detection module 701, and then, at specified intervals B1 (for example, every 3 seconds), sending the display state detection instruction to the display state detection module 703 in the electronic device 100 through the synergy service between the electronic device 100 and the electronic device 200; 2. receiving the display state of the electronic device 100 sent by the display state detection module 703 in the electronic device 100 through the synergy service between the electronic device 100 and the electronic device 200 at specified intervals B1 (for example, every 3 seconds), and judging the device state of the electronic device 100 based on the display state of the electronic device 100; 3. sending the status information of the electronic device 100 to the sleep state detection module 701. For specific implementation methods, please refer to Figure 5 The description of the illustrated embodiment will not be repeated here.
[0132] The display screen state detection module 703 can be used to: 1. receive the display screen state detection instruction sent by the wearable software module 702 in the electronic device 100 at a specified time interval B1 (for example, every 3 seconds) through the synergy service between the electronic device 100 and the electronic device 200; 2. detect the display screen state of the electronic device 100 in response to the display screen state detection instruction; 3. send the display screen state of the electronic device 100 to the wearable software module 702 in the electronic device 200 at a specified time interval B1 (for example, every 3 seconds) through the synergy service between the electronic device 100 and the electronic device 200. For specific implementation methods, please refer to Figure 5 The description of the illustrated embodiment will not be repeated here.
[0133] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0134] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can 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 can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0135] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A detection system, characterized in that: include: A first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection, wherein: The second electronic device is used to send a display screen state detection instruction to the first electronic device when the second electronic device determines through the acceleration ACC sensor that the user is in a suspected sleeping state; The first electronic device is used to, in response to the display screen state detection instruction, obtain the display screen state of the first electronic device at a first time interval; 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 state acquired at first time intervals; wherein the first status information is used to indicate that the first electronic device is in a non-use state; The second electronic device is further configured to detect the sleep data of the user through a photoplethysmography (PPG) sensor when the second electronic device receives the first status information; The second electronic device is also used to detect the user's sleep data through a photoplethysmography (PPG) sensor if no status information sent by the first electronic device is received within a preset time period after sending the display screen status detection instruction; wherein the status information is used to indicate whether the first electronic device is in use.
2. The detection system according to claim 1, characterized in that: The second electronic device is specifically used for: The acceleration values on the x-axis, y-axis and z-axis are detected in real time by the ACC sensor; storing the acceleration value of the x-axis, the acceleration value of the y-axis, and the acceleration value of the z-axis within a first time period; When the second electronic device detects that within a second time period, 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, it determines that the user is in a suspected sleeping state; wherein the first time period includes the second time period.
3. The detection system according to claim 1, characterized in that: The first electronic device is specifically used for: Recording the display screen status obtained every first time period; When the first electronic device determines that within the third time period, the time that the display screen of the first electronic device is in the screen-on state is less than or equal to the second time period, it is determined that the first electronic device is in the non-use state.
4. The detection system according to claim 1, characterized in that: The first electronic device is further configured to, in response to the display screen state detection instruction, after acquiring the display screen state of the first electronic device every first time period, send the display screen state acquired every first time period to the second electronic device; The second electronic device is further used to detect the sleep data of the user through a PPG sensor when it is determined that the first electronic device is in a non-use state based on the display screen state acquired every first time period.
5. A sleep state detection method, applied to a second electronic device, characterized in that: include: The second electronic device establishes a communication connection with the first electronic device; When the second electronic device determines through the ACC sensor that the user is in a suspected sleeping state, the second electronic device sends a display screen state detection instruction to the first electronic device; The second electronic device receives first status information sent by the first electronic device; wherein the first status information is used to indicate that the first electronic device is in a non-use state, and the first status information is information determined by the first electronic device based on a display screen state of the first electronic device acquired every first time period; When the second electronic device receives the first state information, the second electronic device detects the sleep data of the user through a PPG sensor; If the second electronic device does not receive the status information sent by the first electronic device within a preset time period after sending the display screen status detection instruction, the second electronic device detects the user's sleep data through a photoplethysmography (PPG) sensor; wherein the status information is used to indicate whether the first electronic device is in use.
6. The method according to claim 5, characterized in that When the second electronic device determines through the acceleration ACC sensor that the user is in a suspected sleeping state, 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 on the x-axis, y-axis and 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 within 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 all less than the first threshold value within a 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.
7. An electronic device, which is a second electronic device, characterized in that: include: One or more processors, one or more memories and a display screen; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 5-6.
8. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 5 to 6.
9. A chip or a chip system, characterized in that: The method comprises a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit the code instructions to the processing circuit, and the processing circuit is used to run the code instructions to execute the method according to any one of claims 5 to 6.
10. A computer program product, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 5 to 6.
Citation Information
Patent Citations
Sleep monitoring system and monitoring method
CN104035370A
Intelligent sleep quality detection apparatus and detection system
CN109528158A
Sleep assisting method, electronic equipment and true wireless stereo headphone
CN113521485A
Electronic apparatus, method for controlling the same, and control program
CN113568477A
Sleep monitoring method and device, electronic equipment and computer readable medium
CN114343587A
