CN117481614A - Sleep state detection method and related equipment - Google Patents

Sleep state detection method and related equipment Download PDF

Info

Publication number
CN117481614A
CN117481614A CN202311800704.2A CN202311800704A CN117481614A CN 117481614 A CN117481614 A CN 117481614A CN 202311800704 A CN202311800704 A CN 202311800704A CN 117481614 A CN117481614 A CN 117481614A
Authority
CN
China
Prior art keywords
sleep state
user
electronic device
sleep
behavior information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311800704.2A
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 CN202311800704.2A priority Critical patent/CN117481614A/en
Publication of CN117481614A publication Critical patent/CN117481614A/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
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • A61B5/681Wristwatch-type devices
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/74Details of notification to user or communication with user or patient ; user input means
    • A61B5/746Alarms related to a physiological condition, e.g. details of setting alarm thresholds or avoiding false alarms

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Physiology (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application provides a sleep state detection method and related equipment, and belongs to the technical field of terminals. The method comprises the following steps: acquiring physical index information and/or physical activity information of a user; according to the preliminary sleep state analysis logic, obtaining a preliminary sleep state analysis result of the user according to the body index information and/or the body activities; indicating the preliminary sleep state of the user to a second electronic device; receiving a final sleep state analysis result of the user according to the user behavior information, which is sent by the second electronic equipment, in the timing time; or when the user behavior information sent by the second electronic equipment is not received in the timing time, acquiring a final sleep state analysis result according to the preliminary sleep state analysis logic. The method provided by the application can be used for solving the problem that the electronic identification is inaccurate in detecting the sleep state of the user.

Description

Sleep state detection method and related equipment
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method for detecting a sleep state and related devices.
Background
With the continuous improvement of people's health consciousness and the development of intelligent wearable equipment (hereinafter referred to as wearable equipment), more and more people choose to monitor the sign information such as sleep and heart rate by means of the wearable equipment. The method for monitoring sleep by using the wearable device mainly monitors physical index parameters such as heart rate and physical activity parameters of a user, so that the sleep state of the user is judged.
However, because the activity forms of the users are various, the mode of monitoring the heart rate and the physical activity parameters as the judgment basis is helpful for judging the sleep state, but the judgment result is still inaccurate to a certain extent due to the influence of different activities of the users. For example, when a user performs activities with small movement amplitude, such as reading a book while lying or reading a mobile phone, before sleeping or after waking up, the heart rate parameters and the physical activity parameters of the human body are not significantly changed, which easily causes errors when the intelligent wearable device detects the sleeping state of the user, for example, the state that the user is awake is judged as the sleeping state.
Therefore, how to improve the accuracy of judging the sleep state of the user, and further improve the experience of the user in detecting the sleep state by using the electronic device, becomes a problem to be solved.
Disclosure of Invention
The application provides a sleep state detection method and related equipment, which are used for solving the problem that electronic identification is inaccurate in detecting the sleep state of a user.
In a first aspect, a method for detecting a sleep state is provided, which is applied to a first electronic device, and includes:
acquiring physical index information and/or physical activity information of a user;
according to the preliminary sleep state analysis logic, obtaining a preliminary sleep state analysis result of the user according to the body index information and/or the body activities;
Sending a first notification message to a second electronic device, the first notification message being used to indicate the preliminary sleep state of the user;
when a first response message sent by the second electronic equipment is received in a timing time, acquiring a final sleep state analysis result of the user according to user behavior information included in the first response message; or,
and when the first response message sent by the second electronic equipment is not received in the timing time, acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
With reference to the first aspect, in certain implementation manners of the first aspect, the sending the first notification message to the second electronic device further includes:
and when the preliminary sleep state analysis result meets a first preset result, sending a first notification message to the second electronic equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
receiving a screen state indication message sent by the second electronic equipment, wherein the screen state indication message is used for indicating that the second electronic equipment is in a screen locking state;
and responding to the screen state indication message, and acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
receiving a screen unlocking broadcast message sent by the second electronic equipment, wherein the screen unlocking broadcast message is used for indicating that the second electronic equipment is in an unlocking state;
and responding to the screen unlocking broadcast message, and sending a first request message to the second electronic equipment, wherein the first request message is used for inquiring user behavior information of the user aiming at the second electronic equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
and setting the timing time through a timer in response to the screen unlocking broadcast message.
With reference to the first aspect, in certain implementation manners of the first aspect, the first preset result includes any one of the following:
a suspected sleep state, a suspected sleep-out state, a sleep-in state, a shallow sleep state, and a deep sleep state.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
acquiring the preliminary sleep state analysis result to be a suspected sleep state;
sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state;
Receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in a screen locking state;
and when the second electronic equipment is always in the screen locking state within the preset time, acquiring the final sleep state analysis result of the user as a suspected sleep state according to the preliminary sleep state analysis logic.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
and when the second electronic equipment is in a screen locking state, periodically acquiring screen state information of the second electronic equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
and monitoring the screen unlocking broadcast message sent by the second electronic equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
when the screen unlocking broadcast message sent by the second electronic device is monitored within the preset time, acquiring first user behavior information, wherein the first user behavior information is used by a user for using the second electronic device;
and acquiring the final sleep state analysis result according to the first user behavior information to obtain a sleep-out state.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
acquiring the preliminary sleep state analysis result to be a suspected sleep state;
sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state;
receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in an unlocking state;
monitoring an operation event of the user aiming at the second electronic equipment in the timing time;
acquiring the first user behavior information when the operation event is monitored within the timing time;
acquiring the final sleep state analysis result as a sleep-out state according to the first user behavior information;
when the operation event is not monitored within the timing time, second user behavior information is acquired, wherein the second user behavior information is that the user does not use the second electronic equipment;
and acquiring the final sleep state analysis result as a sleep state according to the second user behavior information.
In a second aspect, there is provided an electronic device comprising:
One or more processors;
one or more memories;
the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of the first aspects above.
In a third aspect, there is provided a computer readable storage medium storing computer executable program instructions which, when run on a computer, cause the computer to perform the method of any one of the first aspects.
In a fourth aspect, there is provided a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method according to any of the preceding implementation forms of the first aspect.
Drawings
Fig. 1 is a schematic diagram of a system architecture to which a sleep state detection method according to an embodiment of the present application is applicable.
Fig. 2 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
Fig. 3 is a software architecture block diagram of the electronic device 100 according to the embodiment of the present application.
Fig. 4 is a schematic flowchart of a method for detecting a sleep state according to an embodiment of the present application.
Fig. 5 is a schematic GUI diagram that may be involved in implementing a sleep state detection method according to an embodiment of the present application.
Fig. 6 is a schematic flow chart of another method for sleep state detection according to an embodiment of the present application.
Fig. 7 is a schematic flowchart for determining a sleep state of a user in still another sleeping scenario according to an embodiment of the present application.
Fig. 8 is a schematic flowchart for judging a sleep state of a user in a sleep scenario according to an embodiment of the present application.
Fig. 9 is a schematic flowchart for determining a sleep state of a user in still another sleeping scenario according to an embodiment of the present application.
Detailed Description
It should be noted that the terms used in the implementation section of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely one association relationship describing an associated obstacle, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, unless otherwise indicated, "a plurality" means two or more, and "at least one", "one or more" means one, two or more.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a definition of "a first", "a second" feature may explicitly or implicitly include one or more of such features.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The technical scheme of the present application is described in detail below with specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Sleep state may refer to the morphology a person exhibits while sleeping. Sleep states may include a fall asleep phase, a shallow sleep phase, a deep sleep phase, and a fall asleep state. Users in sleep state typically maintain a fixed posture for a long period of time or have small amplitude posture changes in the limbs. Also, the heart rate of a user in a sleep state often fluctuates around the resting heart rate. However, the accuracy of the sleep state result judgment by the small-amplitude activity condition of the user is easy to be obtained only by taking the physical index parameters such as heart rate and the physical activity parameters such as activity amplitude as the basis for judging the sleep state of the user.
In view of this, the embodiment of the application provides a method for detecting a sleep state, which combines the physical index parameter and the physical activity parameter of a user to determine the sleep state of the user, and also combines the behavior of the user on a terminal such as a mobile phone, so as to improve the accuracy of determining the sleep state of the user and improve the experience of the user for detecting the sleep state by using an electronic device.
The sleep state detection method provided by the embodiment of the application can be applied to a scene that any user detects the sleep state through electronic equipment such as wearable equipment. The method for detecting the sleep state provided by the embodiment of the application can be executed through the wearable device and the terminal device (such as a mobile phone) in communication connection with the wearable device.
An exemplary system architecture diagram for a sleep state detection method according to an embodiment of the present application is shown in fig. 1. The system architecture 10 may include a first electronic device 101 and a second electronic device 102.
In some embodiments, the first electronic device 101 may be worn by a user, and the first electronic device may be equipped with a variety of sensors capable of acquiring physical index parameters (e.g., heart rate) and physical activity parameters (e.g., amplitude of motion, frequency of motion, etc.) of the user. The first electronic device 101 may be an electronic device, such as a wearable device, for detecting a sleep state of a user. The second electronic device 102 may be an electronic device such as a cell phone, tablet computer, laptop computer, handheld computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (personal digital assistant, PDA), smart glasses, or the like.
In some embodiments, the first electronic device 101 and the second electronic device 102 may establish a communication connection, such as a bluetooth (blue) connection, based on any existing and viable communication protocol. The first electronic device 101 and the second electronic device 102 may interact with data based on a communication connection. The first electronic device 101 may be equipped with a sleep state analysis model capable of analyzing the sleep state of the user from data acquired by itself and data acquired from the second electronic device 102; alternatively, the second electronic device 102 may be equipped with a sleep state analysis model capable of analyzing the sleep state of the user from data acquired by itself and data acquired from the first electronic device 101.
For ease of understanding, the embodiments herein below will be described by taking only the case that the first electronic device 101 is a wearable smart watch, and that the smart watch is equipped with a sleep state analysis model for analyzing the sleep state of the user based on the acquired data. However, in practical applications, the execution body for analyzing the sleep state of the user is not limited to the wearable device, for example, may be a mobile phone, etc., which is not limited in the embodiments of the present application.
Exemplary, as shown in fig. 2, a schematic block diagram of an electronic device 100 according to an embodiment of the present application is provided. The electronic device may correspond to the first electronic device 101 or may correspond to the second electronic device 102.
The electronic device 100 may include a processor 110, a memory 120, an audio module 130, and a display screen 140; optionally, the electronic device 100 may further comprise a camera 150. In addition, the electronic device 100 may further include a subscriber identity module (subscriber identification module, SIM) card interface 160, a location module 170, a sensor module 180, a charge management module 190, a power management module 191, a battery 192, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may 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 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, 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. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. 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 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-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 (universal asynchronous 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 universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
Memory 120 may be used to store computer-executable program code that includes instructions. The memory 120 may include a stored program area and a stored data area. The storage program area may store an operating system, an application (App) required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, image data, etc.), and so on. In addition, the memory 120 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications and data processing of the electronic device 100 by executing instructions stored in the memory 120 and/or instructions stored in a memory provided in the processor 110.
Electronic device 100 may implement audio functionality through audio module 130, speaker 131, receiver 132, microphone 133, and application processors (application processor, AP), etc. Such as music playing, recording, etc. Among them, the speaker 131, also called "horn", is used for calling the audio electric signal as a sound signal. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 131. A microphone 133, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 135 through the mouth, inputting a sound signal to the microphone 133.
The display screen 140 may be used to display images, videos, and the like. When the electronic device 100 is a smart watch, the display screen may be one or more, for example, including a display screen disposed on a front surface of the smart watch and a display screen disposed on a back surface of the smart watch, where the display screen disposed on the front surface of the smart watch may also be referred to as a "main screen", "first display screen"; the display screen disposed on the back of the smart watch may also be referred to as a "secondary screen" or "secondary display screen". Display screen 140 is a library of display panels. 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), a flexible light-emitting diode (flex light-emitting diode), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
Electronic device 100 may implement shooting functions through an ISP, camera 150, video codec, display screen 140, gpu, application processor, and the like.
The SIM card interface 160 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 160 or removed from the SIM card interface 160 to enable contact and separation with the electronic device 100. The SIM card interface 160 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 160 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 160 may also be compatible with different types of SIM cards. The SIM card interface 160 may also be compatible with external memory cards. The electronic device 100 may interact with a network through a SIM card to implement functions such as talking and data communication. In some embodiments, the electronic device 100 may also employ esims, i.e., embedded SIM cards. An eSIM card can be embedded in the electronic device 100.
The sensor module 180 of the electronic device 100 may include an acceleration sensor 180A, a gyroscope 180B, a magnetic induction sensor 180C, a hall sensor 180D, and the like.
The acceleration sensor 180A can detect the magnitude and direction of the acceleration of the electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The method can also be used for identifying the equipment gesture, and is applied to the applications such as horizontal and vertical screen switching, pedometers and the like. Gyroscope 180B may be used to determine a motion gesture of electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope 180B. Magnetic induction sensor 180C, also known as an electronic compass, is used to locate the orientation of the device. In some embodiments, the electronic device 100 may calculate the pose of the electronic device from the acceleration sensor 180A, the gyroscope 180B, and the magnetic induction sensor 180C, for use in pedometer applications. When the electronic device 100 is a smart watch, the hall sensor 180D may be used to detect whether the watch body of the smart watch is facing up or facing up, thereby allowing the processor 110 to determine whether the smart watch enters a no-disturb mode/power saving mode/predefined mode, etc. The hall sensor 180D may also be used to detect whether the body of the smart watch is separated from the housing, and thus for the processor 110 to determine whether to automatically make a call, etc.
Alternatively, the sensor module 180 may also include other sensors, such as pressure sensors, proximity sensors, ambient light sensors, fingerprint sensors, touch sensors, and the like. The pressure sensor is used for sensing a pressure signal and can convert the pressure signal into an electric signal. The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The ambient light sensor is used for sensing ambient light brightness. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The fingerprint sensor is used for collecting fingerprints. The temperature sensor is used for detecting temperature. Touch sensors, also known as "touch panels". The touch sensor may be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, which is also referred to as a "touch screen". The touch sensor is used to detect a touch operation acting on or near it. The bone conduction sensor may acquire a vibration signal.
In addition, the sensor module 180 further includes a barometric pressure sensor and a distance sensor. Wherein, the air pressure sensor is used for measuring air pressure. In some embodiments, the electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensors, aiding in positioning and navigation. And a distance sensor for measuring the distance. The electronic device 100 may measure the distance by infrared or laser.
Of course, the electronic device 100 may also include other sensors, which are not described in detail herein.
The charge management module 190 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 190 may receive a charging input of a wired charger through a USB interface. In some wireless charging embodiments, the charge management module 190 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 190 may also power the device through the power management module 191 while charging the battery 192.
The power management module 191 is used for connecting the battery 192, and the charge management module 190 and the processor 110. The power management module 191 receives input from the battery 192 and/or the charge management module 190 to power the processor 110, the memory 120, the display screen 140, the camera 150, the wireless communication module 160, and the like. The power management module 191 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 191 may also be located in the processor 110. In other embodiments, the power management module 191 and the charge management module 190 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves, perform processes such as filtering, amplifying, etc., on the received electromagnetic waves, and transmit the electromagnetic waves to a modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor and convert the signal into electromagnetic waves to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 131, the receiver 132, etc.), or displays images or videos through the display screen 140. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 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 modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives the electromagnetic wave, modulates the electromagnetic wave signal, filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like. Video codecs are used to compress or decompress digital video. The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning.
For example, the software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application. The electronic device 100 may correspond to the first electronic device 101 and/or the second electronic device 102 described above.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, clone applications, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal vibrates, and an indicator light blinks.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of obstacle life cycle management, stack management, thread management, security and abnormality management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), short-range Wi-Fi module, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The short-range Wi-Fi module is used for establishing a hot spot on a Wi-Fi channel, such as establishing a Wi-Fi hot spot on a 2.4G channel or a 5G channel.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For a better understanding of the method for detecting sleep states provided in the embodiments of the present application, a specific implementation procedure of the method is described below with reference to the accompanying drawings. Exemplary, as shown in fig. 4, a schematic flowchart of a method for detecting a sleep state according to an embodiment of the present application is provided.
It should be noted that, the execution subject of the sleep state detection method provided in the embodiments of the present application may include a smart watch and a mobile phone. The functional modules of the wearable device can be respectively used for acquiring multiple parameters, such as physical index parameters and physical activity parameters, of a user during sleep, acquiring user behavior information of a mobile phone side, and comprehensively analyzing the sleep state of the user according to the user index parameters, the physical activity parameters, the user behavior parameters and the like.
Fig. 4 shows a timing diagram corresponding to the interaction flow between a plurality of functional modules of the smart watch and between the functional modules and the mobile phone for executing the sleep state detection method. The process specifically comprises the following steps:
s401, an algorithm module of the intelligent watch acquires physical index information and physical activity information of a user.
In some embodiments, the physical metric information may include a peer parameter such as a heart rate of the user. Physical activity information may include the type of activity of the user, such as wrist lifting, swing, etc.; but may also include the amplitude of physical activity, frequency of physical activity, etc. of the user. Optionally, the physical activity information may also include a user's posture, such as supine, lying on his side, standing, etc.
In some embodiments, the algorithm module may acquire the user physical index information and the physical activity information by: the intelligent watch monitors and acquires physical index information and physical activity information of a user through a heart rate sensor, an acceleration sensor and the like which are arranged in the intelligent watch; the algorithm module obtains the body index information and the body activity information sent by the sensors.
In some embodiments, the algorithm module may include a sleep state analysis model. The sleep state analysis model may primarily analyze the sleep state of the user, such as suspected to fall asleep, based on the user's physical index information and/or the user's physical activity information. In addition, the sleep state analysis model can also analyze and acquire accurate sleep state analysis results (which can be regarded as final sleep state analysis results/target state analysis results) according to the primarily analyzed sleep state results and the user behavior information.
In some embodiments, the smart watch may collect physical index information of the user for analysis of sleep states and/or physical activity information of the user in time periods rather than uninterrupted throughout the day. For example, the user may collect user body index information and/or user body activity information for the algorithm module to analyze the user's sleep state during a default collection period, which may be, for example, 20:00 pm to 8:00 am the next day. Or, the user can set the acquisition period by himself according to his sleep habit. For example, as shown in fig. 5, the user may set the acquisition period (or the usual sleeping time) in the sleep detection App of the smart watch to 20:00 a day night (or the night of the previous day) of the working day to 8:00 a day the next day, 23:00 a day night (or the night of the previous day) of the rest day to 11:00 a day the next day, etc., which is not limited in this embodiment of the present application.
By setting the data acquisition time period, the intelligent watch is enabled to acquire data for analyzing the sleep state of the user in a specific time period instead of continuously acquiring the data all the day, so that the equipment performance can be saved and the utilization efficiency of computing resources can be improved on the basis of ensuring the accuracy of sleep state analysis.
S402, an algorithm module of the intelligent watch analyzes and acquires the preliminary sleep state of the user according to the physical index information and/or the physical activity information of the user.
In some embodiments, after acquiring information such as heart rate and physical activity of the user, the algorithm module may input the information into a preset sleep state analysis model, and acquire a preliminary sleep state result output by the sleep state analysis model.
The method for primarily analyzing the sleep state of the user according to the physical index information and/or the physical activity information can be various, for example, including: the sleep state analysis model of the mode (1) determines that the sleep state of the user is suspected to fall asleep or suspected to fall asleep according to the physical activity frequency and the physical activity amplitude of the user. For example, if the frequency of physical activity of the user is below a first frequency threshold, the amplitude of physical activity is below a first amplitude threshold, and the duration is equal to or greater than a first time threshold, then the sleep state of the user may be acquired as a suspected sleep state; if the frequency of the physical activity of the user is equal to or higher than the first frequency threshold, the amplitude of the physical activity is equal to or higher than the first amplitude threshold, and the duration is equal to or greater than the second time threshold, then the sleep state of the user may be acquired as a suspected sleep-out state. The first time threshold and the second time threshold may be equal or unequal. The sleep state analysis model in the mode (2) may also determine that the sleep state of the user is suspected to fall asleep or suspected to fall asleep according to the heart rate of the user. For example, if the heart rate of the user decreases from a first heart rate to a second heart rate, and the second heart rate is lower than the first heart rate threshold, the sleep state of the user may be acquired as a suspected sleep state; if the heart rate of the user is increased from the third heart rate to a fourth heart rate, and the fourth heart rate is equal to or higher than the second heart rate threshold, the sleep state of the user may be acquired as a suspected sleep-out state. The first heart rate threshold value and the second heart rate threshold value may be equal or unequal.
In addition, the sleep state analysis model can also integrate physical activity information, heart rate and other physical index information of the user to analyze and obtain a preliminary result of the sleep state of the user. Alternatively, the sleep state analysis model may comprehensively and primarily determine the result of the sleep state of the user according to other information (such as position information, time information, oxygen intake information, etc.) in addition to the physical index information and physical activity information of the user, which is not limited in this embodiment of the present application.
It should be noted that, before the smart watch obtains the final sleep state analysis result, the smart watch performs preliminary analysis on the sleep state of the user based on the information collected by itself, but not obtains the user behavior information from the mobile phone side when the sleep state result is preliminarily analyzed, so that the user information can be obtained from the mobile phone side when necessary (i.e. the preliminary analysis result is suspected to fall asleep or suspected to fall asleep), further a more accurate sleep state analysis result is obtained, invalid communication consumption is reduced, and the efficiency of sleep state analysis is improved.
In addition, it should be noted that, when the sleep state analysis module primarily analyzes the sleep state of the user, only the primary analysis result of the sleep state is taken as the suspected sleep-in and suspected sleep-out as an example to be described, but in practical application, the sleep state is not limited to this, and may include a sleep-in state, a deep sleep state, a light sleep state, etc., and different sleep states may correspond to different judgment criteria, for example, if the physical activity of the user is in a stationary state within 0-4min (e.g., the physical activity frequency is lower than the first frequency threshold, and the physical activity amplitude is lower than the first amplitude threshold), then the sleep state of the user may be primarily judged to be the suspected sleep-in state; if the user has slight physical activity (such as the frequency of the physical activity is equal to the first frequency threshold value and the amplitude of the physical activity is equal to the first amplitude threshold value) in 4-20min, the sleep state of the user can be initially judged to be a suspected sleep state; if the user is still in a stationary state (for example, the frequency of the physical activity is equal to the first frequency threshold and the amplitude of the physical activity is equal to the first amplitude threshold) within 4-20min, the sleep state of the user can be initially judged to be the sleep entering (or shallow sleep) state, and specific judgment standards of different sleep states are not limited in the embodiment of the present application.
S403, when the primary sleep state analysis result of the user is a first preset result, the smart watch sends a first notification message to the mobile phone, wherein the first notification message is used for reporting the primary sleep state analysis result.
The first preset result may be preset according to needs, for example, may include multiple sleep states, including: a suspected sleep state, a suspected sleep state, etc. Optionally, a shallow sleep state, a deep sleep state, etc. may also be included. The first notification message may also be used to request acquisition of user behavior information.
In some embodiments, the user behavior information may include user behavior for the mobile phone, such as user unlocking the mobile phone, clicking/sliding up/down/long pressing the mobile phone screen, pressing a physical key of the mobile phone, and so on.
In some embodiments, the specific process of the smart watch sending the first notification message to the mobile phone may include, for example: when the algorithm module of the smart watch obtains the preliminary sleep state analysis result as a first preset result, a first notification message may be sent to an application processing module of the smart watch (for example, may correspond to an application processor (application processor, AP) of the smart watch), where the first notification message may be used to indicate that the preliminary sleep state analysis result of the user is the first preset result; then, the application processing module of the smart watch may send a first notification message to a communication module (such as a bluetooth module) of the smart watch; after receiving the first notification message, the communication module of the intelligent watch sends the first notification message to the communication module of the mobile phone side; after the communication module at the mobile phone side receives the first notification message, the first notification message may be forwarded to an application processing module (for example, may correspond to an AP of the mobile phone) of the mobile phone; and responding to the first notification message, and acquiring the user behavior information by an application processing module of the mobile phone.
In other embodiments, taking an example that the mobile phone is in a locked state, a manner of acquiring user behavior information by the smart watch may specifically include: after the intelligent watch obtains the primary sleep state analysis result as a first preset result, reporting the result to the mobile phone. The mobile phone is in a screen locking state at the moment, and then the mobile phone responds to the result to send the screen locking state of the mobile phone to the intelligent watch; the sleep state monitoring App of the intelligent watch can send user behavior information of a user who does not use the mobile phone to an application processing module of the intelligent watch according to the mobile phone being in a screen locking state, the application processing module can forward the user behavior information to an algorithm module, so that the algorithm module can acquire a final sleep state analysis result according to a preliminary sleep state analysis result and the user behavior information, and then the algorithm module can continuously analyze the sleep state of the user according to original sleep state analysis logic (namely the preliminary sleep state analysis logic). When the mobile phone is changed from the screen locking state to the unlocking state, the mobile phone can broadcast that the mobile phone is changed to the unlocking state; when the smart watch acquires that the mobile phone is in an unlocking state, a timer can be started, for example, a sleep state App of the smart watch can set timing time through com. Then, in the timing time, the mobile phone can periodically feed back the user behavior information to the smart watch, for example, feed back the user behavior information to the smart watch every 10 s. If the sleep detection App of the intelligent watch acquires the user behavior information in the timing time, the sleep detection App of the intelligent watch can send the user behavior information of the user using the mobile phone to the algorithm module through the application processing module; if the sleep detection App of the smart watch does not acquire the user behavior information in the timing time, or if the sleep detection App of the smart watch acquires the user behavior information which is empty in the timing time, the application processing module can send the user behavior information of the mobile phone which is not used by the user to the algorithm module.
Optionally, after the smart phone obtains that the mobile phone is in the unlocking state, whether the mobile phone is in the unlocking state or not can be continuously inquired within a certain time, if the mobile phone is in the unlocking state within a certain time, a timer can be started, and user behavior information fed back by the mobile phone within a certain time is obtained; if the mobile phone is changed from the unlocking state to the screen locking state within a certain time, the timer can not be started.
In some embodiments, the manner in which the algorithm module obtains the user behavior information may include: the mobile phone monitors and acquires the operation behaviors of a user aiming at the mobile phone, sends the user behavior information corresponding to the operation behaviors to a communication module of the intelligent watch, and transmits the user behavior information to an algorithm module of the intelligent watch through the communication module of the intelligent watch.
S404, determining a sleep state result of the end user according to the user behavior information by an algorithm module of the intelligent watch.
In some embodiments, when the mobile phone acquires that the user behavior exists, the mobile phone may send a first response message to the algorithm module of the smart watch in a preset time according to a reverse path of the first request message, where the first response message is used to indicate behavior information of the user, and for example, the first response message may include the user behavior information. When the mobile phone does not detect the user behavior, the mobile phone can also feed back a first response message to the intelligent watch, and indicate that the current user behavior is absent or indicate that the current mobile phone is in a screen locking state and the like through the first response message. Or optionally, when the mobile phone does not acquire the user behavior, the mobile phone may not feed back the response message to the smart watch, for example, the first response message is not sent to the smart watch in a preset time. Or optionally, when the mobile phone does not acquire the user behavior, the mobile phone may also send a first response message to the smart watch within a preset time, where the information about the user behavior in the first response message is null.
In some embodiments, taking as an example that whether the mobile phone detects the user behavior or not, the mobile phone feeds back the first response message to the smart watch, after the algorithm module of the smart watch obtains the first response message, the sleep state of the user can be further determined according to the user behavior information included in the first response message. Wherein different sleep states correspond to different user behavior information, such as: the user behavior information corresponding to the suspected sleep state, the sleep entering state, the shallow sleep state and the deep sleep state can be: the user does not use the handset. For another example: the user behavior information corresponding to the suspected sleep state may be: the user uses the mobile phone or the mobile phone is in use.
In some embodiments, if the smart watch determines that the acquired user behavior information matches the preliminary sleep state analysis result that it acquired, it may be determined that the final sleep state analysis result is the same as the preliminary sleep state analysis result. If the smart watch determines that the acquired user behavior information does not match the initial sleep state analysis result acquired by the smart watch, it may be determined that the final sleep state analysis result is different from the initial sleep state analysis result.
As an example, for example, in a sleep-out scenario, if the preliminary sleep state analysis result is suspected to fall asleep and the user behavior information fed back by the mobile phone is that the user uses the mobile phone, the smart watch may determine that the sleep state of the user is the sleep-out state according to the user behavior information.
As another example, for example, in a sleep-entering scenario, if the preliminary sleep state analysis result is sleep-entering and the user behavior information fed back by the mobile phone is that the user uses the mobile phone, the smart watch may determine that the sleep state of the user is sleep-exiting according to the user behavior information. In addition, the intelligent watch can count the duration corresponding to the preliminary judgment of the sleep state, and if the sleep state entering duration is smaller than the first duration, the sleep state entering duration can be discarded. Or, alternatively, the smart watch may also count a duration corresponding to the subsequent sleep-out state, and if the duration of the sleep-out state is less than the second duration, the sleep-out state may be discarded as well. Wherein the first time period and the second time period may be equal or unequal.
As yet another example, for example, in a sleep-out scenario, if the preliminary sleep state analysis result is to enter sleep and the user behavior information fed back by the mobile phone is that the user does not use the mobile phone, the smart watch may perform analysis according to the original preliminary sleep state analysis logic, obtain the final sleep state analysis result corresponding to the current time, and analyze the preliminary sleep state analysis result at a subsequent time.
In some embodiments, after obtaining the preliminary sleep state analysis result according to the first preset result, and after the smart watch sends the first request message to the mobile phone, if the smart watch has not received the first response message fed back by the mobile phone within the preset time, the smart watch may continue to analyze the subsequent sleep state according to the original preliminary sleep state analysis logic. Before a new preliminary sleep state analysis result is obtained, the intelligent watch can not request the user behavior information again from the mobile phone; after the smart watch acquires the new preliminary sleep state analysis result, the smart watch can request the user behavior information from the mobile phone again.
Or after the smart watch obtains the preliminary sleep state analysis result conforming to the first preset result, and after the smart watch sends the first request message to the mobile phone, if the smart watch does not receive the first response message fed back by the mobile phone within the preset time, the smart watch can continue to analyze the subsequent sleep state according to the original preliminary sleep state analysis logic, and after the third time, request the user behavior information from the mobile phone again, and if the user behavior information fed back by the mobile phone is obtained, the final sleep state analysis result can be obtained according to the user behavior information and the preliminary sleep state analysis result.
As an example, for example, in a sleep scenario, if the mobile phone does not feedback user behavior information until the smart watch acquires a state that the user is suspected to be asleep until the smart watch acquires the state that the user is asleep, the smart watch may continue to analyze according to the original preliminary sleep state analysis logic, and request the user behavior information again from the mobile phone after acquiring the state that the user is asleep (i.e., enters the sleep state), and determine a final sleep state result according to the acquired user behavior information.
As another example, for example, in a sleep scenario, if the phone does not feedback user behavior information until the smart watch acquires a state that the user is suspected to be asleep until the user is acquired to be asleep, the smart watch may continue to analyze according to the original preliminary sleep state analysis logic and request the user behavior information again from the phone after a certain period of time (e.g., 5 min), and then determine the final sleep state result according to the acquired user behavior information.
It should be noted that, in the embodiment of the present application, the sleep-in scene may not be completely equivalent to the suspected sleep-in state (or the sleep-in state) and the suspected sleep-out state, and the sleep-in scene may include various states from waking up to sleeping, and the sleep-out scene may include various states from sleeping to waking up. Under the scene of falling asleep, if the intelligent watch preliminarily judges that the user is suspected to fall asleep or fall asleep, and the user behavior information fed back by the mobile phone is that the user does not use the mobile phone or the mobile phone does not feed back the user behavior information, the intelligent watch can continue to analyze the next according to the original logic for preliminarily analyzing the sleep state. However, in the case that the mobile phone does not feed back the user behavior information, in order to ensure accuracy of the sleep state analysis result, the smart watch may request to acquire the user behavior information from the mobile phone again, and the timing of performing the request again may include, for example, a third time period (for example, 5 min) after the user behavior information is not received for a preset time period, or after the smart watch initially determines that the user enters a new sleep state according to the original logic, etc., which is not limited in this embodiment of the present application. Under the sleeping scene, if the intelligent watch preliminarily judges that the user is suspected to go to sleep and the user behavior information fed back by the mobile phone is that the user uses the mobile phone, the final sleeping state analysis result can be determined to be the sleeping; if the smart watch preliminarily judges that the user is suspected to go to sleep, and the user behavior information fed back by the mobile phone is that the user does not use the mobile phone or does not feed back the user behavior information within the preset time length, the smart watch can continue to analyze the sleep state according to the original logic of preliminary analysis.
It should be further noted that, by setting the smart watch, the smart watch may not send a suspected sleep state to the mobile phone, but directly report the sleep state, that is, the primary sleep state analysis result of the smart watch does not enter the sleep state (corresponding to the sleep scene in this document). Under the sleep entering scene, if the user behavior information fed back by the mobile phone is that the mobile phone is used by the user, the intelligent watch can determine that the sleep state of the user is a sleep exiting state (or a non-sleep state) according to the user behavior information. And if the preliminary judging time length of entering the sleep state is smaller than the first time length (for example, 1 min), discarding the section of entering the sleep state.
According to the sleep state detection method provided by the embodiment of the application, the sleep state of the user is primarily analyzed according to the information acquired by the intelligent watch, the user behavior information is requested to the mobile phone side when the primary analysis result meets the preset result, and then the primary analysis result is calibrated by combining the user behavior information, so that the accuracy of the sleep state identification result can be improved while the communication resources of the intelligent watch and the mobile phone are saved.
In order to better understand the sleep state detection method provided in the embodiments of the present application, a sleeping scene and a sleeping scene are described below as examples with reference to the accompanying drawings.
Exemplary, as shown in fig. 6, a schematic flow chart of another method for sleep state detection according to an embodiment of the present application is provided.
In a sleeping scenario, the process may include the steps of:
s601, an algorithm module of the intelligent watch sends a first notification message to an application processing module, wherein the first notification message is used for indicating a suspected sleep state.
S602, an application processing module of the smart watch sends a first notification message to a sleep detection App.
S603, the sleep detection App of the smart watch sends a first notification message to the mobile phone through a bluetooth module (not shown in fig. 6).
S604, the sleep detection App of the intelligent watch receives first response information sent by the mobile phone, wherein the first response information is used for indicating that the mobile phone is in a screen locking state.
S605, the sleep detection App of the intelligent watch responds to the first response information and sends user behavior information of the mobile phone which is not used by the user to an application processing module of the intelligent watch.
S606, the application processing module of the smart watch sends user behavior information of the unused mobile phone of the user to the algorithm module.
S607, responding to the user behavior information of the user without using the mobile phone, wherein the suspected sleep-on result output by the algorithm module of the intelligent watch is unchanged, and the user behavior information fed back by the mobile phone side is continuously waited for a preset time.
If the user behavior information fed back again by the mobile phone is not received within the preset time, the algorithm module can determine that the final sleep state result is suspected to fall asleep according to the original sleep state analysis logic.
It should be noted that, in the sleep scene, the final sleep state result may also be obtained according to a procedure corresponding to the sleep scene provided in the embodiment of the present application, and the corresponding procedure in the sleep scene is not described herein.
If the mobile phone state is changed from the screen locking state to the unlocking state, the process can further comprise the following steps:
s608, the sleep detection App of the intelligent watch receives the mobile phone unlocking state broadcasted by the mobile phone.
S609, responding to the unlocking state of the mobile phone, and setting timing time by the sleep detection App of the intelligent watch through a timer.
S610, the sleep detection App of the smart watch sends a first request message to the mobile phone, wherein the first request message is used for requesting to acquire user behavior information.
When the user behavior information fed back by the mobile phone in the timing time is that the user does not use the mobile phone, step S611A to step S614A may be performed next:
S611A, the mobile phone sends indication information that the user does not use the mobile phone in a timing time to a sleep detection App of the smart watch.
S612A, the sleep detection App of the smart watch sends user behavior information of the mobile phone which is not used by the user to the application processing module.
S613A, the application processing module sends user behavior information of the mobile phone which is not used by the user to an algorithm module of the intelligent watch.
S614A, responding to the user behavior information of the user without using the mobile phone, wherein the suspected sleep-on result output by the algorithm module of the intelligent watch is unchanged, and the user behavior information fed back by the mobile phone side is continuously waited for a preset time.
If the user behavior information fed back again by the mobile phone is not received within the preset time, the algorithm module can determine that the final sleep state result is suspected to fall asleep according to the original sleep state analysis logic.
When the mobile phone has no feedback of the user behavior information in the timing time, steps S611B to S613B may be performed next:
S611B, when the mobile phone does not feed back the user behavior information in the timing time, the sleep detection App of the smart watch sends the user behavior information of the mobile phone which is not used by the user to the application processing module.
S612B, the application processing module sends user behavior information of the mobile phone which is not used by the user to an algorithm module of the intelligent watch.
S613B, responding to user behavior information of the user without using the mobile phone, wherein the suspected sleep-on result output by the algorithm module of the intelligent watch is unchanged.
In the sleeping scenario, the process may include the following steps:
s614, the sleep detection App of the smart watch receives the mobile phone unlocking state broadcasted by the mobile phone.
S615, responding to the unlocking state of the mobile phone, and sending user behavior information of the user using the mobile phone to an application processing module by the sleep detection App of the smart watch.
S616B, responding to the user behavior information of the user using the mobile phone, and outputting a sleep-out result by the algorithm module of the intelligent watch.
According to the sleep state detection method provided by the embodiment of the application, the sleep state of the user is primarily analyzed according to the information acquired by the intelligent watch, the user behavior information is requested to the mobile phone side when the primary analysis result meets the preset result, and then the primary analysis result is calibrated by combining the user behavior information, so that the accuracy of the sleep state identification result can be improved while the communication resources of the intelligent watch and the mobile phone are saved.
Exemplary, as shown in fig. 7, a schematic flowchart for determining a sleep state of a user in still another sleeping scenario according to an embodiment of the present application is provided. The execution main body of the process comprises an intelligent watch, and specifically comprises the following steps:
s701, acquiring a mobile phone screen locking state.
S702, judging whether the mobile phone is in a screen locking state.
If the mobile phone is in the screen locking state (i.e., the judgment result is yes), step S703A is executed next; if the mobile phone is not in the locked state (i.e., no, the step S703B is performed next.
S703A, judging whether the broadcast message of unlocking the mobile phone is monitored in the fifth time period.
If the broadcast message for unlocking the mobile phone is not monitored within the fifth time period (i.e., the judgment result is not "no"), step S704A may be executed next, i.e., the user behavior information is obtained as that the mobile phone is not used by the user; if the broadcast message for unlocking the mobile phone is monitored within the fifth time period (i.e., the judgment result is not yes), step S705 may be executed next.
S703B, acquiring an operation event of a user on the mobile phone side for the mobile phone.
The user behavior information may include an operation event of the user for the mobile phone, and the like.
S704B, judging whether an operation event of the user for the mobile phone exists.
Specifically, the smart watch may determine whether an operation event of the mobile phone, which is fed back by the user of the mobile phone, is acquired within a preset time.
If an operation event of the user for the mobile phone is obtained within a preset time (i.e., the judgment result is yes), step S705 may be executed next, that is, the user behavior information is obtained for the user to use the mobile phone; if the operation event of the user for the mobile phone is not acquired within the preset time (i.e. no result of the determination), step S706 may be executed next.
S706, continuously monitoring whether the user operation exists in the timing time.
S707, it is determined whether or not there is a user operation event when the timing time is reached.
If there is no user operation event at all times when the timing time is reached, step S703B may be executed next, that is, the operation event of the user for the mobile phone is repeatedly acquired. If there is a user operation event when the timing time is reached, step S708 may be performed next:
s708, acquiring user behavior information as that the user does not use the mobile phone.
It should be noted that, the embodiment of fig. 7 is described only by taking the case that the user action (or the operation event) is unlocking the mobile phone as an example, and in practical application, the operation event of the user for the mobile phone may be of other types. In addition, the embodiment of fig. 7 only uses the screen locking state as an example that the user does not use the mobile phone, but is not limited to this in practical application, for example, the user may not input any operation to the mobile phone for a certain period of time, which is not limited in the embodiment of the present application.
According to the sleep state detection method provided by the embodiment of the application, the sleep state of the user is primarily analyzed according to the information acquired by the intelligent watch, the user behavior information is requested to the mobile phone side when the primary analysis result meets the preset result, and then the primary analysis result is calibrated by combining the user behavior information, so that the accuracy of the sleep state identification result can be improved while the communication resources of the intelligent watch and the mobile phone are saved.
Exemplary, as shown in fig. 8, a schematic flowchart for determining a sleep state of a user in a sleep scenario is provided in an embodiment of the present application. The execution subject of the process may include an intelligent watch, and specifically may include the following steps:
s801, acquiring a screen locking state of a mobile phone system.
S802, judging whether the hand is in an unlocking state.
If the mobile phone is in the unlocked state (i.e., the determination result is yes), step S803 may be executed next; if the mobile phone is in the unlocked state (in the locked state) (i.e., the determination result is no), step S802 is repeatedly executed.
S803, obtaining user behavior information to use the mobile phone for the user.
According to the sleep state detection method provided by the embodiment of the application, the sleep state of the user is primarily analyzed according to the information acquired by the intelligent watch, the user behavior information is requested to the mobile phone side when the primary analysis result meets the preset result, and then the primary analysis result is calibrated by combining the user behavior information, so that the accuracy of the sleep state identification result can be improved while the communication resources of the intelligent watch and the mobile phone are saved.
Exemplary, as shown in fig. 9, a schematic flow chart of a method for detecting a sleep state according to an embodiment of the present application is provided. The execution body of the process may include a first electronic device, and specifically may include the following steps:
s901, acquiring physical index information and/or physical activity information of a user.
S902, acquiring a preliminary sleep state analysis result of the user according to the body index information and/or the body activities according to the preliminary sleep state analysis logic.
S903, sending a first notification message to the second electronic device, where the first notification message is used to indicate the preliminary sleep state of the user.
S904, when a first response message sent by the second electronic equipment is received in the timing time, acquiring a final sleep state analysis result of the user according to user behavior information included in the first response message; or when the first response message sent by the second electronic equipment is not received in the timing time, acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
In some embodiments, the sending the first notification message to the second electronic device further comprises: and when the preliminary sleep state analysis result meets a first preset result, sending a first notification message to the second electronic equipment.
In some embodiments, the method further comprises: receiving a screen state indication message sent by the second electronic equipment, wherein the screen state indication message is used for indicating that the second electronic equipment is in a screen locking state; and responding to the screen state indication message, and acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
In some embodiments, the method further comprises: receiving a screen unlocking broadcast message sent by the second electronic equipment, wherein the screen unlocking broadcast message is used for indicating that the second electronic equipment is in an unlocking state; and responding to the screen unlocking broadcast message, and sending a first request message to the second electronic equipment, wherein the first request message is used for inquiring user behavior information of the user aiming at the second electronic equipment.
In some embodiments, the method further comprises: and setting the timing time through a timer in response to the screen unlocking broadcast message.
In some embodiments, the first preset result includes any one of the following: a suspected sleep state, a suspected sleep-out state, a sleep-in state, a shallow sleep state, and a deep sleep state.
In some embodiments, the method further comprises: acquiring the preliminary sleep state analysis result to be a suspected sleep state; sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state; receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in a screen locking state; and when the second electronic equipment is always in the screen locking state within the preset time, acquiring the final sleep state analysis result of the user as a suspected sleep state according to the preliminary sleep state analysis logic.
In some embodiments, the method further comprises: and when the second electronic equipment is in a screen locking state, periodically acquiring screen state information of the second electronic equipment.
In some embodiments, the method further comprises: and monitoring the screen unlocking broadcast message sent by the second electronic equipment.
In some embodiments, the method further comprises: when the screen unlocking broadcast message sent by the second electronic device is monitored within the preset time, acquiring first user behavior information, wherein the first user behavior information is used by a user for using the second electronic device; and acquiring the final sleep state analysis result according to the first user behavior information to obtain a sleep-out state.
In some embodiments, the method further comprises: acquiring the preliminary sleep state analysis result to be a suspected sleep state; sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state; receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in an unlocking state; monitoring an operation event of the user aiming at the second electronic equipment in the timing time; acquiring the first user behavior information when the operation event is monitored within the timing time; acquiring the final sleep state analysis result as a sleep-out state according to the first user behavior information; when the operation event is not monitored within the timing time, second user behavior information is acquired, wherein the second user behavior information is that the user does not use the second electronic equipment; and acquiring the final sleep state analysis result as a sleep state according to the second user behavior information.
According to the sleep state detection method provided by the embodiment of the application, the sleep state of the user is primarily analyzed according to the information acquired by the intelligent watch, the user behavior information is requested to the mobile phone side when the primary analysis result meets the preset result, and then the primary analysis result is calibrated by combining the user behavior information, so that the accuracy of the sleep state identification result can be improved while the communication resources of the intelligent watch and the mobile phone are saved.
Based on the same technical concept, the embodiment of the application also provides electronic equipment, which comprises one or more processors; one or more memories; the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the computer or processor to perform one or more steps of any of the methods described above.
Based on the same technical idea, the present application further provides a computer-readable storage medium, in which computer-executable program instructions are stored, which when executed on a computer, cause the computer or processor to perform one or more steps of any one of the methods described above.
Based on the same technical idea, the present application embodiment also provides a computer program product containing instructions, the computer program product comprising computer program code, which when run on a computer, causes the computer or processor to perform one or more steps of any one of the methods described above.
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 or transmitted across a computer-readable storage medium. 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., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
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.
The foregoing is merely a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method of sleep state detection, characterized in that it is applied to a first electronic device, the method comprising:
acquiring physical index information and/or physical activity information of a user;
according to the preliminary sleep state analysis logic, obtaining a preliminary sleep state analysis result of the user according to the body index information and/or the body activities;
Sending a first notification message to a second electronic device, the first notification message being used to indicate the preliminary sleep state of the user;
when a first response message sent by the second electronic equipment is received in a timing time, acquiring a final sleep state analysis result of the user according to user behavior information included in the first response message; or,
and when the first response message sent by the second electronic equipment is not received in the timing time, acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
2. The method of claim 1, wherein the sending the first notification message to the second electronic device further comprises:
and when the preliminary sleep state analysis result meets a first preset result, sending a first notification message to the second electronic equipment.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a screen state indication message sent by the second electronic equipment, wherein the screen state indication message is used for indicating that the second electronic equipment is in a screen locking state;
and responding to the screen state indication message, and acquiring a final sleep state analysis result of the user according to the preliminary sleep state analysis logic.
4. A method according to claim 3, characterized in that the method further comprises:
receiving a screen unlocking broadcast message sent by the second electronic equipment, wherein the screen unlocking broadcast message is used for indicating that the second electronic equipment is in an unlocking state;
and responding to the screen unlocking broadcast message, and sending a first request message to the second electronic equipment, wherein the first request message is used for inquiring user behavior information of the user aiming at the second electronic equipment, and the user behavior information is used for indicating an operation event of the user aiming at the second electronic equipment.
5. The method according to claim 4, wherein the method further comprises:
and setting the timing time through a timer in response to the screen unlocking broadcast message.
6. The method of claim 2, wherein the first preset result comprises any one of:
a suspected sleep state, a suspected sleep-out state, a sleep-in state, a shallow sleep state, and a deep sleep state.
7. The method of claim 6, wherein the method further comprises:
acquiring the preliminary sleep state analysis result to be a suspected sleep state;
Sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state;
receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in a screen locking state;
and when the second electronic equipment is always in the screen locking state within the preset time, acquiring the final sleep state analysis result of the user as a suspected sleep state according to the preliminary sleep state analysis logic.
8. The method of claim 7, wherein the method further comprises:
and when the second electronic equipment is in a screen locking state, periodically acquiring screen state information of the second electronic equipment.
9. The method of claim 8, wherein the method further comprises:
and monitoring the screen unlocking broadcast message sent by the second electronic equipment.
10. The method according to claim 9, wherein the method further comprises:
when the screen unlocking broadcast message sent by the second electronic device is monitored within the preset time, acquiring first user behavior information, wherein the first user behavior information is used by a user for using the second electronic device;
And acquiring the final sleep state analysis result according to the first user behavior information to obtain a sleep-out state.
11. The method of claim 6, wherein the method further comprises:
acquiring the preliminary sleep state analysis result to be a suspected sleep state;
sending the first notification message to the second electronic device, where the first notification message is used to indicate that the preliminary sleep state analysis result of the user is a suspected sleep state;
receiving a first response message sent by the second electronic device, wherein the first response message is used for indicating that the second electronic device is in an unlocking state;
monitoring an operation event of the user aiming at the second electronic equipment in the timing time;
acquiring the first user behavior information when the operation event is monitored within the timing time;
acquiring the final sleep state analysis result as a sleep-out state according to the first user behavior information;
when the operation event is not monitored within the timing time, second user behavior information is acquired, wherein the second user behavior information is that the user does not use the second electronic equipment;
and acquiring the final sleep state analysis result as a sleep state according to the second user behavior information.
12. An electronic device, comprising:
one or more processors;
one or more memories;
the one or more memories store one or more computer programs comprising instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-11.
13. A computer readable storage medium storing computer executable program instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 11.
CN202311800704.2A 2023-12-26 2023-12-26 Sleep state detection method and related equipment Pending CN117481614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311800704.2A CN117481614A (en) 2023-12-26 2023-12-26 Sleep state detection method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311800704.2A CN117481614A (en) 2023-12-26 2023-12-26 Sleep state detection method and related equipment

Publications (1)

Publication Number Publication Date
CN117481614A true CN117481614A (en) 2024-02-02

Family

ID=89683209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311800704.2A Pending CN117481614A (en) 2023-12-26 2023-12-26 Sleep state detection method and related equipment

Country Status (1)

Country Link
CN (1) CN117481614A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110151136A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 It has ready conditions with reference to heart rate sleep state monitoring method, device, equipment and medium
CN113495609A (en) * 2020-04-01 2021-10-12 华为技术有限公司 Sleep state judgment method and system, wearable device and storage medium
CN114343587A (en) * 2020-09-29 2022-04-15 Oppo广东移动通信有限公司 Sleep monitoring method and device, electronic equipment and computer readable medium
CN114521878A (en) * 2020-11-23 2022-05-24 华为技术有限公司 Sleep evaluation method, electronic device and storage medium
CN114762588A (en) * 2021-01-15 2022-07-19 华为技术有限公司 Sleep monitoring method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110151136A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 It has ready conditions with reference to heart rate sleep state monitoring method, device, equipment and medium
CN113495609A (en) * 2020-04-01 2021-10-12 华为技术有限公司 Sleep state judgment method and system, wearable device and storage medium
CN114343587A (en) * 2020-09-29 2022-04-15 Oppo广东移动通信有限公司 Sleep monitoring method and device, electronic equipment and computer readable medium
CN114521878A (en) * 2020-11-23 2022-05-24 华为技术有限公司 Sleep evaluation method, electronic device and storage medium
CN114762588A (en) * 2021-01-15 2022-07-19 华为技术有限公司 Sleep monitoring method and related device

Similar Documents

Publication Publication Date Title
WO2020177619A1 (en) Method, device and apparatus for providing reminder to charge terminal, and storage medium
CN113747374B (en) Message pushing method and device
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN116070035B (en) Data processing method and electronic equipment
CN112527093A (en) Gesture input method and electronic equipment
CN114995715B (en) Control method of floating ball and related device
CN114666694A (en) Bluetooth headset loss prevention method and electronic equipment
EP4273695A1 (en) Service anomaly warning method, electronic device and storage medium
CN117481614A (en) Sleep state detection method and related equipment
CN111339513B (en) Data sharing method and device
CN115706916A (en) Wi-Fi connection method and device based on position information
CN114911400A (en) Method for sharing pictures and electronic equipment
CN115206308A (en) Man-machine interaction method and electronic equipment
CN116382728B (en) Propagation name display method and terminal equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN116095223B (en) Notification display method and terminal device
CN114205318B (en) Head portrait display method and electronic equipment
CN116450026B (en) Method and system for identifying touch operation
CN116708656B (en) Card punching method and card punching system
WO2022052767A1 (en) Method for controlling device, electronic device, and system
WO2023104075A1 (en) Navigation information sharing method, electronic device, and system
CN118072723A (en) Collaborative wake-up method and device and electronic equipment
CN114372220A (en) Method and device for processing webpage access behaviors
CN115792431A (en) Abnormal position detection method and electronic equipment
CN117177216A (en) Information interaction method and device and electronic equipment

Legal Events

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