WO2022105830A1 - Sleep evaluation method, electronic device, and storage medium - Google Patents

Sleep evaluation method, electronic device, and storage medium Download PDF

Info

Publication number
WO2022105830A1
WO2022105830A1 PCT/CN2021/131469 CN2021131469W WO2022105830A1 WO 2022105830 A1 WO2022105830 A1 WO 2022105830A1 CN 2021131469 W CN2021131469 W CN 2021131469W WO 2022105830 A1 WO2022105830 A1 WO 2022105830A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
sleep
time
mobile terminal
wearable device
Prior art date
Application number
PCT/CN2021/131469
Other languages
French (fr)
Chinese (zh)
Inventor
李坤阳
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022105830A1 publication Critical patent/WO2022105830A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02438Detecting, measuring or recording pulse rate or heart rate with portable devices, e.g. worn by the patient
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1116Determining posture transitions
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1126Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb using a particular sensing technique
    • A61B5/1128Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb using a particular sensing technique using image analysis
    • 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

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a sleep assessment method, an electronic device, and a storage medium.
  • Sleep latency refers to the time a user experiences from going to bed to falling asleep, which is an effective indicator for evaluating sleep disorders.
  • going to bed mainly refers to the stage in which the user lies on the bed after turning off the lights and has the intention to sleep
  • falling asleep mainly refers to the stage in which the user actually enters a sleep state. If the sleep-onset stage exceeds 30 minutes, the user is clinically considered to have a sleep disorder.
  • the above-mentioned sleep latency is usually used as a reference index.
  • the sleep latency is currently measured, the user's sleep latency cannot be accurately calculated, which may lead to overestimation or underestimation of the user's actual sleep latency, so that the user's sleep quality cannot be accurately evaluated.
  • Embodiments of the present application provide a sleep assessment method, an electronic device, and a storage medium, so as to provide a method for measuring sleep latency.
  • an embodiment of the present application provides a sleep evaluation method, which is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
  • the first information may include information such as the user's heart rate and environmental status.
  • the sleep onset time may be the start time of the calculation of the sleep latency.
  • Send a first instruction to the mobile terminal where the first instruction is used to instruct the mobile terminal to monitor the user's action event; specifically, the first instruction is used to instruct the mobile terminal to monitor the user's action event, so that the moment of the user's action event can be recorded , and then the duration of the user's action event can be calculated.
  • the second information is acquired, and the time of falling asleep of the user is determined based on the second information; specifically, the second information may include information such as the user's physical activity status and the change of the user's heart rate.
  • the sleep latency is determined based on the sleep onset time and sleep onset time. Specifically, a mathematical calculation can be performed based on the sleep start time and the sleep onset time, so that the sleep latency can be obtained. Exemplarily, the sleep latency can be determined according to the difference between the time of falling asleep and the time of starting.
  • the sleep start time is determined by monitoring the user's physical state and the surrounding environment state, and the sleep start time is further determined by monitoring the user's physical state. Since the sleep latency is determined based on the sleep start time and the sleep time, it can be more Accurately measure sleep latency.
  • the first information includes the user's heart rate and the environmental state, obtaining the first information, and determining the user's sleep start time based on the first information includes:
  • the environmental status may include a lights-off situation, exemplarily, the lights-off situation may include lights-off or no lights-off, so that whether the user has sleep intentions can be more accurately determined.
  • the preset condition of the heart rate may be whether the user's heart rate satisfies the resting heart rate interval.
  • the preset condition of the environmental state may be whether the surrounding environment is in a light-off state.
  • the moment is determined to be the sleep start moment. Specifically, when both preset conditions are satisfied at any moment, it can be determined that the moment is the start moment of sleep. Exemplarily, at a certain time t, the user's heart rate satisfies the resting heart rate interval, and the surrounding environment is in a light-off state, at this time, the time t is determined as the sleep start time.
  • the second information includes the user's physical activity status and the user's heart rate change
  • determining the user's sleep time based on the second information includes:
  • the user's body movement status and the change of the user's heart rate are continuously monitored; specifically, the user's body movement status is used to identify the user's body movement, and the user's heart rate change is used to characterize the user's heart rate slope characteristics.
  • the preset condition of the user's body movement condition may be a critical threshold. Exemplarily, if the user's body movement amount reaches the critical threshold, it may be determined that the user's body movement condition satisfies the preset condition.
  • the moment is a potential time to fall asleep; specifically, the potential time to fall asleep can be a reference point of the time to fall asleep, and the potential time to fall asleep can be further verified by changes in the user's heart rate Then, determine the real time to fall asleep.
  • the heart rate slope time series is obtained based on the user's heart rate change, and the heart rate slope time series includes one or more heart rate slope moments; specifically, the user's heart rate at each moment can be obtained from the user's heart rate change curve, and the user's heart rate can be calculated. Multiple heart rate slippage moments.
  • the potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result. Specifically, since there may be multiple heart rate slippage moments, each heart rate slippage time may be compared with the potential sleep time, so that the sleep fall time may be obtained according to the comparison result.
  • the reference point of the time to fall asleep is obtained according to the user's body movement status
  • the time of the user's heart rate slope is obtained according to the change of the user's heart rate
  • the reference point of the sleep time and the time of falling asleep are obtained.
  • the method before acquiring the second information, the method further includes:
  • the user action information includes an action event time sequence
  • the action event time sequence includes a plurality of action event moments, each of which corresponds to a user's action event one-to-one.
  • the action events include a pick-up action event and a drop action event, wherein the pick-up action corresponds to the drop action, and the duration of the action event can be obtained through the moment of a pick-up action event and the moment of a drop action event, which is understandable
  • a user can have multiple action events, and therefore, there can be multiple durations of action events.
  • the duration of the user's action event can be calculated, thereby eliminating the duration in the sleep latency, thereby improving the accuracy of the sleep latency measurement.
  • determining the sleep latency based on the sleep start time and the sleep onset time includes:
  • the sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
  • the action event duration is determined by the action event time, so that the ineffective duration in the sleep latency can be more accurately calculated, thereby improving the accuracy of the sleep latency measurement.
  • the user activity information further includes the interruption duration
  • determining the sleep latency based on the sleep start time and the sleep-onset time includes:
  • the sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by multiple action event moments and interruption durations in the action event time sequence.
  • the ineffective duration of the sleep latency can be calculated more accurately, thereby improving the accuracy of the sleep latency measurement.
  • the method further includes:
  • the prompt may include a voice prompt, a vibration prompt, or a single prompt or a timing prompt, which is not particularly limited in this embodiment of the present application.
  • the sleep quality of the user is determined by judging the sleep latency, and the user is prompted accordingly, the sleep quality of the user can be improved, and the user experience can be improved.
  • the embodiment of the present application also provides a sleep evaluation method, which is applied to a mobile terminal, and the mobile terminal establishes a communication connection with the wearable device, including:
  • the wearable device receives a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the user's action event; specifically, the first instruction can be used to instruct the mobile terminal to record the moment of the user's action event, the mobile terminal It may be a terminal device such as a mobile phone and a tablet, or other mobile devices, which are not particularly limited in this embodiment of the present application.
  • the user's action events are monitored, the time corresponding to the action events is recorded, and the action event time sequence is generated, wherein the action event time sequence includes multiple action event moments; the action event time sequence is sent to the wearable device.
  • the wearable device can calculate the action duration based on the above time, thereby improving the accuracy of the sleep latency measurement .
  • One of the possible implementations also includes:
  • the interruption event may include events such as the user getting up to drink water, going to the bathroom, etc., and may also include other interruption events, which are not particularly limited in this embodiment of the present application.
  • the interruption duration is sent to the wearable device, thereby improving the accuracy of the sleep latency measurement.
  • One of the possible implementations further includes: before the mobile terminal establishes a communication connection with the smart lighting device, and before monitoring the user's action event, the method further includes:
  • Detecting the user's operation of turning off the smart lighting device in response to the detected operation, recognizing the user's gesture; specifically, the user's gesture can be recognized through the camera of the mobile terminal, exemplarily, an image can be captured by the camera, and Perform image recognition on this image to recognize the user's gesture.
  • the complete moment of the user's action event can be obtained, thereby improving the accuracy of the measurement of the sleep latency.
  • an embodiment of the present application provides a sleep evaluation device, which is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
  • a first obtaining module configured to obtain first information, and determine the sleep start time of the user based on the first information
  • a sending module configured to send a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
  • a second obtaining module configured to obtain second information, and determine the user's sleep time based on the second information
  • the computing module is used to determine the sleep latency based on the sleep start time and the sleep onset time.
  • the first information includes the user's heart rate and the environmental state
  • the above-mentioned first acquisition module includes:
  • a first monitoring unit for continuously monitoring the user's heart rate and environmental status
  • a first judging unit for judging whether the user's heart rate and environmental state meet preset conditions
  • the first acquiring unit is configured to determine the time as the sleep start time when the user's heart rate and the environmental state at any time meet the preset conditions.
  • the second information includes the user's physical activity status and the change of the user's heart rate
  • the above-mentioned second obtaining module includes:
  • the second monitoring unit is used to continuously monitor the user's body movement status and the change of the user's heart rate
  • a second judging unit configured to judge whether the user's body movement condition satisfies a preset condition
  • the second obtaining unit is configured to determine the time as a potential sleep time when the user's body movement condition meets the preset condition at any time; obtain the heart rate slippage time series based on the user's heart rate change, and the heart rate slippage time series includes one or more heart rate slippage moments ; Compare the potential sleep time with one or more heart rate slide times in the heart rate slide time series, and determine the sleep time according to the comparison result.
  • the above-mentioned device further includes:
  • the receiving module is used for receiving user action information sent by the mobile terminal.
  • the user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
  • the above-mentioned computing module is also used to determine the sleep latency based on the sleep start time, the time of falling asleep and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
  • the user activity information further includes the interruption duration
  • the above calculation module is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by the action event time sequence The time and interruption duration of multiple action events are determined.
  • the above-mentioned device further includes:
  • the cue module is used for sleep cues based on sleep latency.
  • the embodiment of the present application also provides a sleep evaluation device, which is applied to a mobile terminal, and the mobile terminal establishes a communication connection with the wearable device, including:
  • a receiving module configured to receive a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
  • the first recording module is used to monitor the action events of the user, record the moments corresponding to the action events, and generate the action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
  • the first sending module is used for sending the action event time sequence to the wearable device.
  • the above-mentioned device further includes:
  • the second recording module is used to monitor the activity event of the user, record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
  • the second sending module is used for sending the interruption duration to the wearable device.
  • the mobile terminal establishes a communication connection with the intelligent lighting device, and the above-mentioned apparatus further includes:
  • the detection module is used to detect the operation of the user to turn off the smart lighting device
  • an identification module for identifying the user's gesture in response to the detected operation
  • the starting module is used for starting the monitoring of the user's action event based on the identification result.
  • an embodiment of the present application provides a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
  • Memory the memory is used to store computer program code, and the computer program code includes instructions.
  • the wearable device reads the instructions from the memory, the wearable device performs the following steps:
  • the sleep latency is determined based on the sleep onset time and sleep onset time.
  • the first information includes the user's heart rate and environmental status
  • the above-mentioned instruction is executed by the above-mentioned wearable device
  • the above-mentioned wearable device is executed to obtain the first information
  • the user's sleep start is determined based on the first information.
  • the steps of the moment include:
  • the determined time is the sleep start time.
  • the second information includes the user's body movement status and the change of the user's heart rate
  • the above-mentioned step of making the above-mentioned wearable device to determine the user's falling asleep time based on the second information includes: :
  • the heart rate landslide time series based on the user's heart rate change, and the heart rate landslide time series includes one or more heart rate landslide moments;
  • the potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result.
  • the above-mentioned wearable device when the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned wearable device further performs the following steps before executing the step of acquiring the second information:
  • the user action information sent by the mobile terminal is received.
  • the user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
  • the steps include:
  • the sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
  • the user activity information further includes the interruption duration.
  • the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned step of determining the sleep latency based on the sleep start time and the sleep-onset time on the above-mentioned wearable device includes:
  • the sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by multiple action event moments and interruption durations in the action event time sequence.
  • An embodiment of the present application further provides a mobile terminal, which establishes a communication connection with a wearable device, including: a memory, where the memory is used to store computer program codes, and the computer program codes include instructions. Read the above instruction, so that the above mobile terminal performs the following steps:
  • the above-mentioned mobile terminal when executed by the above-mentioned mobile terminal, the above-mentioned mobile terminal further performs the following steps:
  • Monitor the user's activity event record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
  • the mobile terminal establishes a communication connection with the intelligent lighting device, and when the above-mentioned instruction is executed by the above-mentioned mobile terminal, the above-mentioned mobile terminal also performs the following steps:
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
  • an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • FIG. 1 is an application scenario architecture diagram of a sleep assessment method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a wearable device provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of an embodiment of a sleep assessment method provided by the present application.
  • FIG. 5 is a schematic diagram of an embodiment of a heart rate landslide moment calculation method provided by the present application.
  • FIG. 6 is a schematic diagram of another embodiment of a heart rate landslide moment calculation method provided by the present application.
  • FIG. 7 is a schematic diagram of the calculation of sleep latency provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of another embodiment of a sleep assessment method provided by the present application.
  • FIG. 9 is a schematic structural diagram of an embodiment of a sleep assessment device provided by the present application.
  • FIG. 10 is a schematic structural diagram of another embodiment of a sleep assessment device provided by the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • the smart wearable device can recognize the user's awake or sleep state based on body motion, and has been widely used.
  • some products identify whether the user is lying down by classifying heart rate or heart rate variability, and use the difference between the relatively quiet moment after the user lay down and the moment he falls asleep as the sleep latency.
  • electronic products such as smart terminals
  • the correlation between lying in bed and sleep is weakening. That is to say, most users often use electronic products to read novels after lying in bed with lights out.
  • the duration of using electronic products is not very short, and the posture may remain unchanged for a long time.
  • the user puts down the electronic product it may only take a short period of time to fall asleep.
  • the measurement of sleep latency based on the above scheme usually overestimates the length of the sleep latency, which will bring errors to the measurement of sleep latency. .
  • they may be mistakenly identified as having fallen asleep when they are trying to fall asleep quietly on the bed, resulting in an underestimation of their actual sleep latency, which will give a negative impact on the sleep latency. Measurement introduces error.
  • an embodiment of the present application proposes a sleep evaluation method.
  • FIG. 1 is an example diagram of an application scenario provided by the embodiment of the present application.
  • the above-mentioned application scenario includes a mobile terminal 100, a smart wearable device 200 (for example, a smart watch), a smart wearable device 201 (eg, smart glasses), and a smart home device 300.
  • a smart wearable device 200 For example, a smart watch
  • a smart wearable device 201 eg, smart glasses
  • a smart home device 300 e.g., a smart home device.
  • a connection between the smart wearable device 200 and the mobile terminal 100 can be established wirelessly, and the above wireless method may include wireless communication methods such as WIFI, Bluetooth, and cellular mobile networks (eg, 4G, 5G, etc.), which are not specifically limited in this application.
  • the connection between the mobile terminal 100 and the smart home device 300 and the smart wearable device 201 may also be established wirelessly, and the above-mentioned methods may include wireless communication methods such as WIFI, which are not specifically limited in this application.
  • the smart wearable device 200 may be a wearable device with a wireless communication function and a display screen, such as a smart watch.
  • the smart wearable device 201 may be a wearable device with a wireless communication function, for example, smart glasses.
  • the mobile terminal 100 may also be referred to as terminal equipment, user equipment (UE), access terminal, subscriber unit, mobile station, remote terminal, mobile device, user terminal, terminal, wireless communication device, or user equipment.
  • the mobile terminal 100 may be a cellular telephone, a cordless telephone, a Personal Digital Assistant (PDA) device, a handheld or handheld communication device with wireless communication capabilities and/or other devices for communicating over a wireless system and Next-generation communication systems, such as mobile terminals in a 5G network or mobile terminals in a future evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc., such as mobile phones and tablets.
  • the smart home device 300 may be a home device with a wireless communication function, for example, a smart lamp, a smart switch, a smart socket, and the like.
  • FIG. 2 shows a schematic structural diagram of the mobile terminal 100 .
  • the mobile terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile terminal 100 .
  • the mobile terminal 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different 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, for example, 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), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface 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 transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the mobile terminal 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the mobile terminal 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the mobile terminal 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the mobile terminal 100, and can also be used to transmit data between the mobile terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile terminal 100 .
  • the mobile terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the mobile terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile terminal 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • 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 to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator 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 passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 may provide applications on the mobile terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the mobile terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile terminal 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the mobile terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the mobile terminal 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the mobile terminal 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile terminal 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the user's posture can be recognized by capturing an image of the user through the camera, and thus the user's sleeping intention can be determined.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and the like.
  • Video codecs are used to compress or decompress digital video.
  • the mobile terminal 100 may support one or more video codecs.
  • the mobile terminal 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the mobile terminal 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile terminal 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the mobile terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the mobile terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the mobile terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the mobile terminal 100 may be provided with at least one microphone 170C.
  • the mobile terminal 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
  • the mobile terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the mobile terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the mobile terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the mobile terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the mobile terminal 100 .
  • the angular velocity of the mobile terminal 100 about three axes ie, x, y and z axes
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the mobile terminal 100 shakes, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shake of the mobile terminal 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile terminal 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the mobile terminal 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile terminal 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the mobile terminal 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In this embodiment of the present application, the acceleration sensor 180E can identify the action event of the user.
  • the action event may include: an event of the user picking up the mobile terminal and an event of the user picking up the mobile terminal.
  • the mobile terminal 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the mobile terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the mobile terminal 100 emits infrared light to the outside through the light emitting diode.
  • the mobile terminal 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near the mobile terminal 100 . When insufficient reflected light is detected, the mobile terminal 100 may determine that there is no object near the mobile terminal 100 .
  • the mobile terminal 100 can use the proximity light sensor 180G to detect that the user holds the mobile terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the mobile terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile terminal 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the mobile terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile terminal 100 performs performance reduction of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the mobile terminal 100 when the temperature is lower than another threshold, the mobile terminal 100 heats the battery 142 to avoid abnormal shutdown of the mobile terminal 100 caused by the low temperature.
  • the mobile terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the mobile terminal 100 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M may also be disposed in the earphone, in conjunction with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the mobile terminal 100 may receive key inputs and generate key signal inputs related to user settings and function control of the mobile terminal 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the mobile terminal 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the mobile terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the mobile terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the mobile terminal 100 employs an eSIM, ie an embedded SIM card.
  • the eSIM card can be embedded in the mobile terminal 100 and cannot be separated from the mobile terminal 100 .
  • the smart wearable device 200 may include a heart rate sensor 210 , a body motion sensor 220 , an ambient light sensor 230 , a processor 240 , a memory 250 , a power supply unit 260 and a wireless communication module 270 .
  • the heart rate sensor 210 , the body motion sensor 220 , the ambient light sensor 230 , the processor 240 , the memory 250 , the power supply unit 260 and the wireless communication module 270 can communicate with each other through an internal connection path to transmit control and/or data signals.
  • the heart rate sensor 210 is used to monitor the user's heart rate to determine the current posture of the user and whether the user is in a sleep state.
  • the body motion sensor 220 is used to monitor the body motion status of the user to determine whether the user has a sleep intention and assist in determining whether the user is in a sleep state, and the body motion status can be used to identify the user's body motion amount.
  • the ambient light sensor 230 is used to monitor the intensity of the current ambient light to determine whether the current environment is in a lights-off environment, thereby further determining whether the user has sleep intentions.
  • the memory 250 can be used to store a computer program, and the processor 240 can be used to call and run the computer program from the memory 250; in a specific implementation, the processor 240 can be a Micro-Controller Unit (MCU),
  • the memory 250 may be a buffer, and the memory 250 may also be used to store monitored data (eg, the user's heart rate) and data sent by the mobile terminal 100 (eg, the moment of the user's action event).
  • the power supply unit 260 is used to provide power to various devices or circuits in the smart wearable device 200 .
  • the wireless communication module 270 can provide applications on the smart wearable device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation Satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module 270 may be one or more devices integrating at least one communication processing module.
  • the above-mentioned memory 250 can be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or may also be capable of carrying or storing desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, etc.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • CD-ROM storage including compact discs, laser discs, optical discs, digital versatile discs, blu-ray
  • the above-mentioned processor 240 may be combined with the memory 250 to form a processing device, more commonly, components independent of each other, and the processor 240 may be used to execute the program codes stored in the memory 250 to realize the above-mentioned functions.
  • the memory 250 may also be integrated in the processor 240 , or be independent of the processor 240 .
  • the smart wearable device 200 may further include one or more of an audio circuit 280 and a vibrator 290, and the audio circuit 280 may further include a speaker 281, wherein the The audio circuit 280 and the speaker 281 can be used for voice broadcast to prompt the user to change their work and rest habits to improve sleep quality; the vibrator 290 can be used to vibrate to prompt the user to change their work and rest habits to improve sleep quality.
  • the processor 240 in the smart wearable device 200 shown in FIG. 3 may be a system-on-chip SOC, and the processor 240 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of For example: Graphics Processing Unit (Graphics Processing Unit; hereinafter referred to as: GPU), etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the smart wearable device 201 includes at least the above-mentioned ambient light sensor 230 .
  • FIG. 4 is a schematic flowchart of an embodiment of a sleep assessment method provided by an embodiment of the present application, including:
  • Step 101 the smart wearable device 200 monitors the user's heart rate.
  • the smart wearable device 200 can monitor the user's heart rate through the heart rate sensor 210, thereby determining whether the user is in a sleep state.
  • the smart wearable device 200 can classify the monitored heart rate by monitoring the user's heart rate.
  • the smart wearable device 200 may classify the heart rate into two categories, the resting heart rate and the falling asleep heart rate.
  • the above-mentioned resting heart rate and falling asleep heart rate indicate a heart rate interval.
  • the resting heart rate may correspond to a heart rate interval of 64-78
  • the falling asleep heart rate may correspond to a heart rate interval of 56-63.
  • the numerical values are only examples, and may also be other numerical values, which are not particularly limited in the embodiments of the present application. If the detected heart rate matches the above interval, the detected heart rate is classified into the corresponding heart rate category.
  • the resting heart rate is used to identify that the user is in a resting state but has not entered a sleep state; the sleep-onset heart rate is used to identify that the user has entered a sleep state.
  • Step 102 the smart wearable device 200 monitors the current environment state.
  • the current environmental state may include a light-off state and a light-off state.
  • the non-light-off state is used to identify that the current user's environment is the light-on-off state, from which it can be inferred that the user may still be active.
  • the light-off state is used to identify that the current environment the user is in is the light-off state, so that it can be determined that the user is ready to sleep.
  • the detection of the current environment state may be performed by the ambient light sensor 230 in the smart wearable device 200 .
  • the ambient light intensity threshold can be preset to 15 lux. If the ambient light intensity monitored by the ambient light sensor 230 is greater than or equal to the ambient light intensity threshold, it can be considered that the current environment state is not extinguished. If the ambient light sensor 230 If the monitored ambient light intensity is less than the ambient light intensity threshold, it can be considered that the current environmental state is the extinguished state. It can be understood that the above-mentioned ambient light intensity threshold may be any other value, which is not particularly limited in this embodiment of the present application.
  • the current environment state may also correspond to the light-on and light-off operations of the mobile terminal 100 .
  • the above-mentioned non-light-off state may correspond to a user's light-on operation.
  • the user may perform a light-on operation on the display interface of the mobile terminal 100 to turn on the smart home device 300 (eg, a smart lamp).
  • the mobile terminal 100 may determine that the current environmental state is a non-light-off state.
  • the above-described light-off state may correspond to a user's light-off operation.
  • the user may perform a light-off operation on the display interface of the mobile terminal 100 to turn off the smart home device 300 (eg, smart lamps).
  • the mobile terminal 100 may determine that the current environmental state is the light-off state. After the mobile terminal 100 acquires the current environment state, the current environment state may be sent to the smart wearable device 200 .
  • step 102 and step 101 are executed in no particular order, that is, this step 102 can be executed before step 101, can be executed after step 101, or can be executed simultaneously with step 101.
  • This application implements This example does not make any special restrictions.
  • Step 103 the smart wearable device 200 determines the sleep start time T start based on the above-mentioned user's heart rate and the current environment state, and starts sleep onset detection.
  • the smart wearable device 200 can make a comprehensive judgment on the above-mentioned user's heart rate and the current environment state.
  • the smart wearable device 200 may record the sleep start time T start .
  • Step 104 the smart wearable device 200 may also send instruction information to the mobile terminal 100 .
  • the indication information is used to instruct the mobile terminal 100 to start monitoring the user action event.
  • step 105 the mobile terminal 100 receives the indication information sent by the smart wearable device 200, and monitors the action events of the user.
  • the action event may include a pick-up event and a put-down event.
  • the event is a pick-up event; if the user puts down the mobile terminal 100, the event is a put-down event.
  • the pick-up event can be used to identify that the user is active, that is, the user has no sleep intention temporarily; the put-down event can be used to identify that the user is about to fall asleep, that is, the user has a sleep intention.
  • the above-mentioned action events may be identified by the acceleration sensor 180E in the mobile terminal 100 .
  • the above-mentioned action event may also correspond to a screen unlocking event and a screen locking event of the mobile terminal 100 .
  • the unlocking event may correspond to a pick-up event, and the unlocking event may be triggered by a user's unlocking operation.
  • the user may perform an unlocking operation on the screen of the mobile terminal 100 , for example, by entering a password or fingerprint to unlock.
  • the mobile terminal 100 triggers an unlocking event to unlock the screen, so that it can be determined that the user has picked up the mobile terminal 100 .
  • the screen lock event may correspond to a drop event, and the screen lock event may be triggered by a user's screen lock operation.
  • the user may also perform a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key.
  • a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key.
  • the mobile terminal 100 triggers a screen-locking event to lock the screen, whereby it can be determined that the user has put down the mobile terminal 100 .
  • the above-mentioned action event may also be identified by the smart wearable device 201 .
  • the smart wearable device 201 may be smart glasses. Through the smart glasses, the light of the mobile terminal 100 can be detected, and the above-mentioned action events can be corresponding to the light. If the smart glasses detect the presence of light from the mobile terminal 100, it can be determined that the current event is a pick-up event, that is, the mobile terminal 100 is in a bright screen state and the user is using the mobile terminal 100; if the smart glasses detect the mobile terminal 100 If the light disappears, it can be determined that the current event is a drop event, that is, the mobile terminal 100 is in a screen-off state, and the user is putting down the mobile terminal 100 . After acquiring the pick-up event or the put-down event, the smart wearable device 201 can send the pick-up event information and the put-down event information to the mobile terminal 100 .
  • Step 106 the mobile terminal 100 records the time corresponding to the action event, and generates a time series of the action event.
  • the user may have actions to pick up and put down the mobile terminal 100 multiple times, that is, there are multiple pick up events and put down events. Therefore, after the mobile terminal 100 monitors the pick-up event or the drop event, it can record the time corresponding to the pick-up event or the drop event, thereby obtaining two action event time series, for example, the pick-up event time series and the Drop the event time series.
  • the above pick-up event time sequence includes all the moments corresponding to the pick-up event.
  • the above-mentioned drop event time series includes all the moments corresponding to the drop events.
  • the pick-up event time series may include two moments of 23:37 and 0:10
  • the drop event time series may include two moments of 23:57 and 0:20.
  • Step 107 the mobile terminal 100 sends the above two action event time series to the smart wearable device 200 .
  • step 108 the smart wearable device 200 monitors the physical movement status of the user, and determines the potential time to fall asleep.
  • the smart wearable device 200 may monitor the user's body movement status through the body movement sensor 220 .
  • the body movement status may reflect the user's body momentum.
  • the smart wearable device 200 can judge the user's body momentum through the body motion sensor 220. If the smart wearable device 200 judges that the user's body momentum is less than or equal to the preset body momentum threshold, it can record the moment and use the moment as The potential sleep time T sleep1 , where the potential sleep time T sleep1 is used to identify the user's potential sleep time. It should be noted that the potential sleep time T sleep1 does not indicate that the user has actually fallen asleep. Therefore, further judgment can be made to determine the real sleep time.
  • Step 109 the smart wearable device 200 monitors the change of the user's heart rate, and determines the heart rate slope time T sleep2 .
  • the heart rate will drop sharply. Therefore, by monitoring the user's heart rate, the moment at which the user's heart rate slips can be found, and the moment when the user's heart rate slips can be used as a reference time for the user to fall asleep.
  • the smart wearable device 200 can use the heart rate sensor 210 to monitor the heart rate value at any two moments before and after, thereby calculating the difference between the heart rates corresponding to the two moments before and after, and can use the difference with the
  • the preset difference threshold is compared, and if the difference is greater than or equal to the preset difference threshold, it can be considered that the user's heart rate has dropped sharply, and thus the next time can be recorded as the heart rate landslide time T sleep2 .
  • the heart rate value at any two time points can be monitored, wherein the time T can be the sleep start time T start , or it can be the sleep start time Any time after T start is not specifically limited in this embodiment of the present application.
  • Tm is monitored from time T
  • the time period from T to Tm includes time T1, T2, T3, and T4
  • the heart rate difference between T1 and T2 and the heart rate difference between T2 and T3 can be calculated respectively.
  • the heart rate difference between T3 and T4 so that the heart rate slope time T sleep2 in T1, T2, T3 and T4 can be determined. For example, if the heart rate difference between T1 and T2 is greater than or equal to a preset difference threshold, T2 is the heart rate landslide time T sleep2 .
  • the smart wearable device 200 can also monitor the average heart rate of the two time periods before and after, thereby calculating the difference between the average heart rate values corresponding to the two time periods before and after, and can compare the difference with the preset value.
  • the difference threshold is compared. If the difference is greater than or equal to the preset difference threshold, it can be considered that the user's heart rate has dropped sharply, so the first moment of the next time period can be recorded as the heart rate slip time T sleep2 , and any time in the latter time period may also be recorded as the heart rate landslide time T sleep2 , which is not particularly limited in this embodiment of the present application.
  • the preset monitoring time span is Td, assuming that Tm is monitored from time T, the above-mentioned time period from T to Tm includes Td1, Td2, Td3 and sub-periods such as Td4; wherein, the sub-periods such as Td1, Td2, Td3, and Td4 respectively include multiple times. Therefore, the average heart rate of the sub-periods such as Td1, Td2, Td3 and Td4 can be calculated respectively.
  • Td1 and Td2 calculate the difference between the mean heart rate between Td1 and Td2, the difference between the mean heart rate between Td2 and Td3, and the difference between the mean heart rate between Td3 and Td4, so that Td1, Td2, Td3 and Td4 can be determined.
  • Td1, Td2, Td3 and Td4 can be determined.
  • the landslide time T sleep2 is not particularly limited in this embodiment of the present application.
  • the smart wearable device 200 may store the heart rate slippage time series, wherein the heart rate slippage time series may include one or more heart rate slippage time T sleep2. .
  • step 110 the smart wearable device 200 determines the time to fall asleep based on the potential time to sleep T sleep1 and the time T sleep2 of the heart rate slope.
  • the smart wearable device 200 can compare the potential sleep time T sleep1 with each heart rate slippage time T sleep2 in the heart rate slippage time series.
  • the smart wearable device 200 determines that the difference between the potential sleep time T sleep1 and the heart rate slippage time T sleep2 is greater than or equal to the preset difference threshold, it can be considered that the heart rate slippage time T sleep2 is invalid.
  • the heart rate slippage time T sleep2 is significantly earlier than the potential sleep time T sleep1 (for example, more than 3 minutes), it can be considered that the heart rate slippage time T sleep2 is an invalid time, and you can continue to search for the heart rate slippage time sequence in the above.
  • the other heart rate slope time T sleep2 is used to determine the sleep falling time T sleep .
  • the search may be performed in the order of time from first to last. For example, first compare the earliest heart rate decline time T sleep2 with the potential sleep time T sleep1 , and if the earliest heart rate decline time T sleep2 does not meet the conditions, continue to compare the next earliest heart rate decline time T sleep2 with the potential sleep time T sleep1 The comparison is performed until a heart rate slippage time T sleep2 that satisfies the condition is found to appear, and the heart rate slippage time T sleep2 that satisfies the condition can be taken as the sleep-onset time T sleep .
  • Step 111 the smart wearable device 200 determines the sleep latency based on the sleep start time T start , the sleep time T sleep and the action event time sequence.
  • the smart wearable device 200 can further determine whether there is a time corresponding to the action event.
  • the smart wearable device 200 receives the action event time sequence sent by the mobile terminal 100, it can determine that there is a time corresponding to the action event, and thus can be based on the sleep start time T start , the sleep time T sleep and the above action event time sequence
  • the T active may be determined by the time corresponding to the action event in the above-mentioned action event time sequence.
  • the user turns off the lights at 00:31 and prepares to start sleeping, and the 00:31 time corresponds to T start . 10 minutes later, that is, 00:41, the user picks up the phone again and starts reading the novel.
  • the 00:41 time corresponds to the pickup event 1 time T pickup1 .
  • the 00:56 time corresponds to the time T putdown1 of the drop event 1.
  • the 01:04 time corresponds to the time T pickup2 of the pick-up event 2.
  • Step 112 the smart wearable device 200 performs a sleep reminder based on the sleep latency.
  • the smart wearable device 200 may compare the sleep latency with a preset sleep latency threshold.
  • the calculated sleep latency is greater than the preset sleep latency threshold, it can be considered that the user has a sleep disorder, and relevant prompts can be displayed on the display screen of the smart wearable device 200 to remind the user that there is a sleep disorder, and the existing work and rest habits can be changed. , to improve sleep quality.
  • the smart wearable device 200 can also send an indication message to the mobile terminal 100, so that the mobile terminal 100 can wake up the corresponding application after receiving the indication message, for example, health APP, so that the application can push relevant health knowledge to the user, such as work and rest habits, diet and sleeping position, etc.
  • the indication message for example, health APP
  • the smart wearable device 200 can also adjust the user's living environment to create a good sleeping environment for the user. Sleep, you can adjust the light to the preset brightness at the sleep moment (for example, adjust the brightness of the smart lamp), or you can lower or turn off the volume of the current sound source, for example, lower the volume of the smart speaker or turn off the smart speaker , thereby creating a good sleeping atmosphere, helping the user to fall asleep as soon as possible, thereby improving the user's sleep quality.
  • the user's action event is monitored by the mobile terminal, so that the moment of the user's action is recorded, the duration of the user's action event is determined from the action moment, and the sleep latency is estimated based on the duration of the action event. Improve the accuracy of sleep latency calculations.
  • FIG. 8 is a schematic flowchart of another embodiment of the sleep assessment method provided by the embodiment of the present application, including:
  • Step 201 in response to the user's operation, the mobile terminal 100 turns off the smart home device 300.
  • the user may perform a light-off operation on the display interface of the mobile terminal 100 to turn off the smart home device 300 (eg, smart lamps).
  • the mobile terminal 100 may turn off the smart home device 300 .
  • the current environment can be turned off, which is beneficial for the user to go to sleep as soon as possible.
  • step 202 the mobile terminal 100 turns on the camera 193, and acquires an image, so as to recognize the gesture of the user.
  • the camera 193 can be turned on to obtain an image of the user, thereby identifying the user's posture, for example, whether the user is in a lying posture, and then It can be determined whether the user is ready to sleep.
  • the mobile terminal 100 may also continuously acquire images of the user. For example, the mobile terminal 100 may acquire the user's posture within a preset time period (eg, 5 minutes) through the camera 193 . If the mobile terminal 100 determines that the user has been in a still-lying position within the preset time period, the mobile terminal 100 may record the start time of the user lying down, that is, the sleep start time T start .
  • the sleep start time T start may be the time when the mobile terminal 100 recognizes the user's gesture.
  • Step 203 the mobile terminal 100 monitors the user's action event.
  • the action event may include a pick-up event and a put-down event.
  • the event is a pick-up event; if the user puts down the mobile terminal 100, the event is a put-down event.
  • the pick-up event can be used to identify that the user is active, that is, the user has no sleep intention temporarily; the put-down event can be used to identify that the user is about to fall asleep, that is, the user has a sleep intention.
  • the above-mentioned action events may be identified by the acceleration sensor 180E in the mobile terminal 100 .
  • the above-mentioned action event may also correspond to a screen unlocking event and a screen locking event of the mobile terminal 100 .
  • the unlocking event may correspond to a pick-up event, and the unlocking event may be triggered by a user's unlocking operation.
  • the user may perform an unlocking operation on the screen of the mobile terminal 100, for example, by entering a password or fingerprint to unlock.
  • the mobile terminal 100 triggers an unlocking event to unlock the screen, so that it can be determined that the user has picked up the mobile terminal 100 .
  • the screen lock event may correspond to a drop event, and the screen lock event may be triggered by a user's screen lock operation.
  • the user may also perform a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key.
  • a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key.
  • the mobile terminal 100 triggers a screen-locking event to lock the screen, whereby it can be determined that the user has put down the mobile terminal 100 .
  • the above-mentioned action event may also be identified by the smart wearable device 201 .
  • the smart wearable 201 may be smart glasses.
  • the light of the mobile terminal 100 can be detected by the smart glasses, and the action event can be corresponding to the light. If the smart glasses detect that the light of the mobile terminal 100 exists, it can be determined that the current event is a pick-up event, that is, the user is using the mobile terminal 100; if the smart glasses detect that the light of the mobile terminal 100 disappears, it can be determined that the current event is For a drop event, that is, the user is dropping the mobile terminal 100 . After acquiring the pick-up event or the put-down event, the smart wearable device 201 can send the pick-up event information and the put-down event information to the mobile terminal 100 .
  • Step 204 the mobile terminal 100 records the time corresponding to the action event, and generates a time series of the action event.
  • the user may have actions to pick up and put down the mobile terminal 100 multiple times, that is, there are multiple pick up events and put down events. Therefore, after the mobile terminal 100 monitors the pick-up event or the drop event, it can record the time corresponding to the pick-up event or the drop event, thereby obtaining two action event time series, for example, the pick-up event time series and the Drop the event time series.
  • the above pick-up event time sequence includes all the moments corresponding to the pick-up event.
  • the above-mentioned drop event time series includes all the moments corresponding to the drop events.
  • step 205 the mobile terminal 100 monitors the interruption event and determines the interruption duration.
  • the interruption event may include activities such as the user getting up, drinking water, and turning on the light.
  • the user can be identified through the image obtained by the camera of the mobile terminal 100 when he wakes up, and the light can be identified through the user's operation of turning on the light on the display interface of the mobile terminal 100, or through the ambient light sensor in the smart wearable device 200. identify.
  • the interruption time of the first interruption event is T pause1
  • the interruption recovery time of the first interruption event is T resume1
  • the interruption time of the second interruption event is T pause2
  • the interruption restoration time of the second interruption event The time is T resume2
  • the interruption duration T interrupt (T resume1 -T pause1 )+
  • the mobile terminal 100 can also compare the interruption duration with a preset duration threshold, and if the interruption duration is greater than or equal to the preset duration threshold, it can be considered that the user's sleep has been interrupted, and the sleep start time needs to be re-determined. T start .
  • the sleep start time T start may be the last interrupt recovery time T resume .
  • the pick-up event time series and the drop event time series recorded in step 204 can be cleared, and steps 203 to 205 are further performed to obtain the pick-up event time series and the drop event time series again.
  • Step 206 the mobile terminal 100 sends the above-mentioned pick-up event time sequence, drop event time sequence, and interruption duration T interrupt to the smart wearable device 200 .
  • Step 207 the smart wearable device 200 monitors the physical movement status of the user, and determines the time to fall asleep T sleep .
  • the smart wearable device 200 can monitor the user's body movement status through the body movement sensor 220 .
  • the body movement status may reflect the user's body momentum.
  • the smart wearable device 200 can judge the user's body momentum through the body motion sensor 220. If the smart wearable device 200 judges that the user's body momentum is less than or equal to the preset body momentum threshold, the time can be recorded, and the time As sleep time T sleep .
  • Step 208 the smart wearable device 200 determines the sleep latency based on the sleep start time T start , the sleep time T sleep , the action event time sequence and the interruption duration T interrupt .
  • the smart wearable device 200 can further determine whether there is a time corresponding to the action event and the interruption duration.
  • the smart wearable device 200 receives the action event time sequence and the interruption duration sent by the mobile terminal 100, it can determine that there is a time corresponding to the action event, and there is an interruption duration . .
  • Step 209 the smart wearable device 200 performs a sleep reminder based on the sleep latency.
  • the smart wearable device 200 may compare the sleep latency with a preset sleep latency threshold.
  • the calculated sleep latency is greater than the preset sleep latency threshold, it can be considered that the user has a sleep disorder, and relevant prompts can be displayed on the display screen of the smart wearable device 200 to remind the user that there is a sleep disorder, and the existing work and rest habits can be changed. , to improve sleep quality.
  • the smart wearable device 200 can also send an indication message to the mobile terminal 100, so that the mobile terminal 100 can wake up the corresponding application after receiving the indication message, for example, health APP, so that the application can push relevant health knowledge to the user, such as work and rest habits, diet and sleeping position, etc.
  • the indication message for example, health APP
  • the smart wearable device 200 can also adjust the user's living environment to create a good sleeping environment for the user. Sleep, you can adjust the light to the preset brightness at the sleep moment (for example, adjust the brightness of the smart lamp), or you can lower or turn off the volume of the current sound source, for example, lower the volume of the smart speaker or turn off the smart speaker , thereby creating a good sleeping atmosphere, helping the user to fall asleep as soon as possible, thereby improving the user's sleep quality.
  • the user's action event and activity time are monitored by the mobile terminal, thereby recording the user's action time and activity time, the action time determines the user's action event duration, and the activity time determines the user's
  • the sleep latency is estimated based on the duration of the above-mentioned action event and the interruption duration, which can improve the accuracy of the calculation of the sleep latency.
  • FIG. 9 is a schematic structural diagram of an embodiment of a sleep evaluation device of the present application. As shown in FIG. 9 , the above-mentioned sleep evaluation device 900 is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, which may include: a first acquisition module 910, a sending module 920, a second obtaining module 930, and a computing module 940;
  • a first obtaining module 910 configured to obtain first information, and determine the user's sleep start time based on the first information
  • a sending module 920 configured to send a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
  • the second obtaining module 930 is configured to obtain second information, and determine the user's sleep time based on the second information
  • the computing module 940 is configured to determine the sleep latency based on the sleep start time and the sleep onset time.
  • the first information includes the user's heart rate and the environmental state
  • the first obtaining module 910 includes: a first monitoring unit 911 , a first judging unit 912 , and a first obtaining unit 913 ;
  • the first monitoring unit 911 is used to continuously monitor the user's heart rate and environmental status
  • the first judgment unit 912 is used for judging whether the user's heart rate and the environmental state meet the preset conditions
  • the first obtaining unit 913 is configured to determine the time as the sleep start time when the user's heart rate and the environmental state at any time meet the preset conditions.
  • the second information includes the user's body movement status and the change of the user's heart rate
  • the second obtaining module 930 includes: a second monitoring unit 931 , a second judging unit 932 , and a second obtaining unit 933 ;
  • the second monitoring unit 931 is used to continuously monitor the user's body movement status and the change of the user's heart rate
  • a second judgment unit 932 configured to judge whether the user's body movement condition satisfies a preset condition
  • the second obtaining unit 933 is configured to determine that the moment is a potential sleep moment when the user's body movement condition satisfies a preset condition at any moment; and obtain a heart rate slope time series based on the change of the user's heart rate, where the heart rate slope time series includes one or more heart rate slopes time; compare the potential sleep time with one or more heart rate landslide times in the heart rate landslide time series, and determine the sleep time according to the comparison result.
  • the above-mentioned apparatus 900 further includes: a receiving module 950;
  • the receiving module 950 is configured to receive user action information sent by the mobile terminal, the user action information includes an action event time sequence, the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
  • the above-mentioned calculation module 940 is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence .
  • the user activity information further includes the interruption duration
  • the above-mentioned calculation module 940 is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by the action event time sequence The time and interruption duration of multiple action events in are determined.
  • the above-mentioned apparatus 900 further includes: a prompting module 960;
  • the prompting module 960 is configured to perform sleep prompting based on the sleep latency.
  • FIG. 10 is a schematic structural diagram of another embodiment of the sleep evaluation apparatus of the present application.
  • the above-mentioned sleep evaluation apparatus 1000 is applied to a mobile terminal, and the mobile terminal establishes a communication connection with a wearable device, and may include: a receiving module 1010, a first recording module 1020 and a first sending module 1030;
  • a receiving module 1010 configured to receive a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the user's action event;
  • the first recording module 1020 is used to monitor the action events of the user, record the moments corresponding to the action events, and generate an action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
  • the first sending module 1030 is configured to send the action event time sequence to the wearable device.
  • the above-mentioned apparatus 1000 further includes: a second recording module 1040 and a second sending module 1050;
  • the second recording module 1040 is used to monitor the activity event of the user, record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
  • the second sending module 1050 is configured to send the interruption duration to the wearable device.
  • the mobile terminal establishes a communication connection with the intelligent lighting device, and the above-mentioned apparatus 1000 further includes: a detection module 1060, an identification module 1070, and a startup module 1080;
  • a detection module 1060 configured to detect the operation of the user to turn off the smart lighting device
  • a recognition module 1070 configured to recognize the gesture of the user in response to the detected operation
  • the starting module 1080 is configured to start monitoring the action event of the user based on the identification result.
  • each module of the sleep evaluation apparatus shown in FIG. 9 and FIG. 10 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation on the mobile terminal 100 and the wearable device 200 .
  • the mobile terminal 100 and the wearable device 200 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the above-mentioned mobile terminal 100 and the wearable device 200 etc. include corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

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

Abstract

The present invention relates to the technical field of communications. Provided are a sleep evaluation method, an electronic device, and a storage medium. The method comprises: acquiring first information, and determining a sleep start time point of a user on the basis of the first information; sending a first instruction to a mobile terminal, wherein the first instruction is used to instruct the mobile terminal to monitor for motion events of the user; acquiring second information, and determining an asleep time point of the user on the basis of the second information; and determining a sleep latency duration on the basis of the sleep start time point and the asleep time point. The sleep evaluation method can improve the accuracy of measuring a sleep latency duration.

Description

睡眠评估方法、电子设备及存储介质Sleep assessment method, electronic device and storage medium
本申请要求于2020年11月23日提交中国专利局、申请号为202011322218.0、申请名称为“睡眠评估方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011322218.0 and the application name "Sleep assessment method, electronic device and storage medium" filed with the China Patent Office on November 23, 2020, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及一种睡眠评估方法、电子设备及存储介质。The embodiments of the present application relate to the field of communication technologies, and in particular, to a sleep assessment method, an electronic device, and a storage medium.
背景技术Background technique
睡眠潜伏期指的是用户从就寝到入睡所经历的时间,该时间是评估睡眠障碍的有效指标。其中,就寝主要指用户熄灯后躺在床上且有睡眠意图的阶段,入睡主要指用户实际进入睡眠状态的阶段。若入睡阶段超过30分钟,在临床上会认为用户存在睡眠障碍。Sleep latency refers to the time a user experiences from going to bed to falling asleep, which is an effective indicator for evaluating sleep disorders. Among them, going to bed mainly refers to the stage in which the user lies on the bed after turning off the lights and has the intention to sleep, and falling asleep mainly refers to the stage in which the user actually enters a sleep state. If the sleep-onset stage exceeds 30 minutes, the user is clinically considered to have a sleep disorder.
为了评估用户的睡眠质量,通常会拿上述睡眠潜伏期作为参考指标。然而,目前对睡眠潜伏期进行测量时,无法准确的计算用户的睡眠潜伏期,由此可能造成高估或低估用户实际的睡眠潜伏期,从而不能精确的评估用户睡眠质量。In order to evaluate the user's sleep quality, the above-mentioned sleep latency is usually used as a reference index. However, when the sleep latency is currently measured, the user's sleep latency cannot be accurately calculated, which may lead to overestimation or underestimation of the user's actual sleep latency, so that the user's sleep quality cannot be accurately evaluated.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种睡眠评估方法、电子设备及存储介质,以提供一种测量睡眠潜伏期的方式。Embodiments of the present application provide a sleep assessment method, an electronic device, and a storage medium, so as to provide a method for measuring sleep latency.
第一方面,本申请实施例提供了一种睡眠评估方法,应用于可穿戴设备,该可穿戴设备与移动终端建立通信连接,包括:In a first aspect, an embodiment of the present application provides a sleep evaluation method, which is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
获取第一信息,基于第一信息确定用户的睡眠起始时刻;具体地,该第一信息可以包括用户心率及环境状态等信息。该睡眠起始时刻可以是睡眠潜伏期的计算的起始时刻。Obtain the first information, and determine the user's sleep start time based on the first information; specifically, the first information may include information such as the user's heart rate and environmental status. The sleep onset time may be the start time of the calculation of the sleep latency.
发送第一指令给移动终端,第一指令用于指示移动终端监测用户的动作事件;具体地,该第一指令用于指示移动终端监测用户的动作事件,由此可以记录用户的动作事件的时刻,进而可以计算出用户的动作事件的时长。Send a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the user's action event; specifically, the first instruction is used to instruct the mobile terminal to monitor the user's action event, so that the moment of the user's action event can be recorded , and then the duration of the user's action event can be calculated.
获取第二信息,基于第二信息确定用户的入睡时刻;具体地,该第二信息可以包括用户体动状况及用户心率变化等信息。The second information is acquired, and the time of falling asleep of the user is determined based on the second information; specifically, the second information may include information such as the user's physical activity status and the change of the user's heart rate.
基于睡眠起始时刻及入睡时刻确定睡眠潜伏期。具体地,可以基于睡眠起始时刻及入睡时刻进行数学计算,由此可以得到睡眠潜伏期。示例性的,可以根据入睡时刻与起始时刻之间的差值确定睡眠潜伏期。The sleep latency is determined based on the sleep onset time and sleep onset time. Specifically, a mathematical calculation can be performed based on the sleep start time and the sleep onset time, so that the sleep latency can be obtained. Exemplarily, the sleep latency can be determined according to the difference between the time of falling asleep and the time of starting.
本实施例中,通过监测用户身体状态及周边环境状态确定睡眠起始时刻,并进一步通过监测用户的身体状况确定入睡时刻,由于睡眠潜伏期是基于睡眠起始时刻与入睡时刻确定,由此可以更准确的测量出睡眠潜伏期。In this embodiment, the sleep start time is determined by monitoring the user's physical state and the surrounding environment state, and the sleep start time is further determined by monitoring the user's physical state. Since the sleep latency is determined based on the sleep start time and the sleep time, it can be more Accurately measure sleep latency.
其中一种可能的实现方式中,第一信息包括用户心率和环境状态,获取第一信息,基于第一信息确定用户的睡眠起始时刻包括:In one of the possible implementations, the first information includes the user's heart rate and the environmental state, obtaining the first information, and determining the user's sleep start time based on the first information includes:
持续监测用户心率和环境状态;具体地点,该环境状态可以包括熄灯情况,示例性的,该熄灯情况可以包括熄灯或未熄灯,由此可以更准确的判断出用户是否有睡眠意图。Continuously monitor the user's heart rate and environmental status; in a specific location, the environmental status may include a lights-off situation, exemplarily, the lights-off situation may include lights-off or no lights-off, so that whether the user has sleep intentions can be more accurately determined.
判断用户心率和环境状态是否满足预设条件;具体地,该心率的预设条件可以是用户的心率是否满足静卧心率区间。该环境状态的预设条件可以是周边环境是否处于熄灯状态。It is judged whether the user's heart rate and the environmental state satisfy the preset condition; specifically, the preset condition of the heart rate may be whether the user's heart rate satisfies the resting heart rate interval. The preset condition of the environmental state may be whether the surrounding environment is in a light-off state.
当任一时刻用户心率和环境状态均满足预设条件时,确定该时刻为睡眠起始时刻。具体地,当任一时刻,两个预设条件都满足时,可以确定该时刻为睡眠起始时刻。示例性的,在某一时刻t,用户的心率满足静卧心率区间,且周边环境为熄灯状态,此时,确定该t时刻为睡眠起始时刻。When the user's heart rate and the environmental state at any moment meet the preset conditions, the moment is determined to be the sleep start moment. Specifically, when both preset conditions are satisfied at any moment, it can be determined that the moment is the start moment of sleep. Exemplarily, at a certain time t, the user's heart rate satisfies the resting heart rate interval, and the surrounding environment is in a light-off state, at this time, the time t is determined as the sleep start time.
本实施例中,通过判断用户的心率及周边环境的状态,可以更准确的判断出用户是否有睡眠意图,进而可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by judging the user's heart rate and the state of the surrounding environment, it can be more accurately judged whether the user has sleep intentions, thereby improving the accuracy of the sleep latency measurement.
其中一种可能的实现方式中,第二信息包括用户体动状况及用户心率变化,基于第二信息确定用户的入睡时刻包括:In one possible implementation manner, the second information includes the user's physical activity status and the user's heart rate change, and determining the user's sleep time based on the second information includes:
持续监测用户体动状况及用户心率变化;具体地,该用户体动状况用于标识用户的体动量,该用户心率变化用于表征用户的心率滑坡特征。The user's body movement status and the change of the user's heart rate are continuously monitored; specifically, the user's body movement status is used to identify the user's body movement, and the user's heart rate change is used to characterize the user's heart rate slope characteristics.
判断用户体动状况是否满足预设条件;具体地,该用户体动状况的预设条件可以是一个临界阈值。示例性的,若用户的体动量达到了该临界阈值,则可以确定该用户体动状况满足了预设条件。It is determined whether the user's body movement condition satisfies a preset condition; specifically, the preset condition of the user's body movement condition may be a critical threshold. Exemplarily, if the user's body movement amount reaches the critical threshold, it may be determined that the user's body movement condition satisfies the preset condition.
当任一时刻用户体动状况满足预设条件时,确定该时刻为潜在入睡时刻;具体地,该潜在入睡时刻可以是入睡时刻的参考点,该潜在入睡时刻还可以进一步经用户心率变化的验证后,确定真正的入睡时刻。When the user's body movement condition at any moment meets the preset condition, it is determined that the moment is a potential time to fall asleep; specifically, the potential time to fall asleep can be a reference point of the time to fall asleep, and the potential time to fall asleep can be further verified by changes in the user's heart rate Then, determine the real time to fall asleep.
基于用户心率变化获取心率滑坡时间序列,心率滑坡时间序列包括一个或多个心率滑坡时刻;具体地,在用户的心率变化曲线图上可以获取用户每个时刻的心率,由此可以计算出用户的多个心率滑坡时刻。The heart rate slope time series is obtained based on the user's heart rate change, and the heart rate slope time series includes one or more heart rate slope moments; specifically, the user's heart rate at each moment can be obtained from the user's heart rate change curve, and the user's heart rate can be calculated. Multiple heart rate slippage moments.
将潜在入睡时刻与心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。具体地,由于可能存在多个心率滑坡时刻,因此,可以将每个心率滑坡时刻与该潜在入睡时刻进行比较,由此可以根据比较结果获得入睡时刻。The potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result. Specifically, since there may be multiple heart rate slippage moments, each heart rate slippage time may be compared with the potential sleep time, so that the sleep fall time may be obtained according to the comparison result.
本实施例中,通过对用户的用户体动状况及用户心率变化的监测,根据用户体动状况获取入睡时刻参考点,根据用户心率变化获得用户的心率滑坡时刻,并通过该入睡时刻参考点与用户的心率滑坡时刻的结合,可以更准确的确定用户的入睡时刻,由此可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by monitoring the user's body movement status and the change of the user's heart rate, the reference point of the time to fall asleep is obtained according to the user's body movement status, and the time of the user's heart rate slope is obtained according to the change of the user's heart rate, and the reference point of the sleep time and the time of falling asleep are obtained. The combination of the user's heart rate decline time can more accurately determine the user's time to fall asleep, thereby improving the accuracy of the measurement of the sleep latency.
其中一种可能的实现方式中,获取第二信息之前,还包括:In one of the possible implementation manners, before acquiring the second information, the method further includes:
接收移动终端发送的用户动作信息,用户动作信息包括动作事件时间序列,动作 事件时间序列包括多个动作事件时刻,每个动作事件时刻与用户的动作事件一一对应。具体地,动作事件包括拿起动作事件和放下动作事件,其中拿起动作和放下动作对应,通过一个拿起动作事件的时刻与一个放下动作事件的时刻可以获得该段动作事件的时长,可以理解的是,用户可以有多个动作事件,因此,可以有多段动作事件的时长。Receive user action information sent by the mobile terminal, where the user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, each of which corresponds to a user's action event one-to-one. Specifically, the action events include a pick-up action event and a drop action event, wherein the pick-up action corresponds to the drop action, and the duration of the action event can be obtained through the moment of a pick-up action event and the moment of a drop action event, which is understandable The thing is, a user can have multiple action events, and therefore, there can be multiple durations of action events.
本实施例中,通过接收用户的动作信息,可以计算出用户的动作事件的时长,由此可以在睡眠潜伏期中排除该段时长,进而可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by receiving the user's action information, the duration of the user's action event can be calculated, thereby eliminating the duration in the sleep latency, thereby improving the accuracy of the sleep latency measurement.
其中一种可能的实现方式中,基于睡眠起始时刻及入睡时刻确定睡眠潜伏期包括:In one possible implementation manner, determining the sleep latency based on the sleep start time and the sleep onset time includes:
基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻确定。The sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
本实施例中,通过动作事件时刻确定动作事件时长,由此可以更准确的计算出睡眠潜伏期中的非有效时长,进而可以提高对睡眠潜伏期的测量的准确度。In this embodiment, the action event duration is determined by the action event time, so that the ineffective duration in the sleep latency can be more accurately calculated, thereby improving the accuracy of the sleep latency measurement.
其中一种可能的实现方式中,用户活动信息还包括中断时长,基于睡眠起始时刻及入睡时刻确定睡眠潜伏期包括:In one possible implementation manner, the user activity information further includes the interruption duration, and determining the sleep latency based on the sleep start time and the sleep-onset time includes:
基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻及中断时长确定。The sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by multiple action event moments and interruption durations in the action event time sequence.
本实施例中,通过结合用户的动作时长和活动时长(中断时长),由此可以更准确的计算出睡眠潜伏期中的非有效时长,进而可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by combining the user's action duration and activity duration (interruption duration), the ineffective duration of the sleep latency can be calculated more accurately, thereby improving the accuracy of the sleep latency measurement.
其中一种可能的实现方式中,基于睡眠起始时刻及入睡时刻确定睡眠潜伏期之后,还包括:In one possible implementation manner, after the sleep latency is determined based on the sleep start time and the sleep onset time, the method further includes:
基于睡眠潜伏期进行睡眠提示。具体地,该提示可以包括语音提示、振动提示,也可以包括单次提示或定时提示,本申请实施例对此不作特殊限定。Sleep cueing based on sleep latency. Specifically, the prompt may include a voice prompt, a vibration prompt, or a single prompt or a timing prompt, which is not particularly limited in this embodiment of the present application.
本实施例中,通过对睡眠潜伏期的判断确定用户的睡眠质量,并由此对用户进行提示,可以改善用户的睡眠质量,提高用户的体验。In this embodiment, the sleep quality of the user is determined by judging the sleep latency, and the user is prompted accordingly, the sleep quality of the user can be improved, and the user experience can be improved.
本申请实施例还提供了一种睡眠评估方法,应用于移动终端,该移动终端与可穿戴设备建立通信连接,包括:The embodiment of the present application also provides a sleep evaluation method, which is applied to a mobile terminal, and the mobile terminal establishes a communication connection with the wearable device, including:
接收可穿戴设备发送的第一指令,第一指令用于指示移动终端监测用户的动作事件;具体地,该第一指令可以用于指示移动终端对用户的动作事件的时刻进行记录,该移动终端可以是手机、平板等终端设备,也可以是其他移动设备,本申请实施例对此不作特殊限定。Receive a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the user's action event; specifically, the first instruction can be used to instruct the mobile terminal to record the moment of the user's action event, the mobile terminal It may be a terminal device such as a mobile phone and a tablet, or other mobile devices, which are not particularly limited in this embodiment of the present application.
监测用户的动作事件,记录与动作事件对应的时刻,生成动作事件时间序列,其中,动作事件时间序列包括多个动作事件时刻;将动作事件时间序列发送给可穿戴设备。The user's action events are monitored, the time corresponding to the action events is recorded, and the action event time sequence is generated, wherein the action event time sequence includes multiple action event moments; the action event time sequence is sent to the wearable device.
本实施例中,通过记录用户的动作事件的时刻,并将上述时刻发送给可穿戴设备,由此可以使得可穿戴设备基于上述时刻计算得到动作时长,进而可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by recording the time of the user's action event and sending the above time to the wearable device, the wearable device can calculate the action duration based on the above time, thereby improving the accuracy of the sleep latency measurement .
其中一种可能的实现方式中,还包括:One of the possible implementations also includes:
监测用户的活动事件,记录与活动事件对应的时刻,基于与活动时间对应的时刻确定中断时长;将中断时长发送给可穿戴设备。具体地,该中断事件可以包括用户起床喝水、上卫生间等事件,也可以包括其他中断事件,本申请实施例对此不作特殊限 定。Monitor the user's activity event, record the time corresponding to the activity event, determine the interruption duration based on the time corresponding to the activity time; and send the interruption duration to the wearable device. Specifically, the interruption event may include events such as the user getting up to drink water, going to the bathroom, etc., and may also include other interruption events, which are not particularly limited in this embodiment of the present application.
本实施例中,通过记录用户的活动事件的时刻,并由此计算出活动时长,也就是中断时长,将该中断时长发送给可穿戴设备,由此可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by recording the time of the user's activity event, and calculating the activity duration, that is, the interruption duration, the interruption duration is sent to the wearable device, thereby improving the accuracy of the sleep latency measurement.
其中一种可能的实现方式中,还包括:移动终端与智能照明设备建立通信连接,监测用户的动作事件之前,还包括:One of the possible implementations further includes: before the mobile terminal establishes a communication connection with the smart lighting device, and before monitoring the user's action event, the method further includes:
检测到用户关闭智能照明设备的操作;响应于检测到的操作,对用户的姿势进行识别;具体地,用户的姿势可以通过移动终端的摄像头进行识别,示例性的,可以通过摄像头拍摄图像,并对该图像进行图像识别,以识别用户的姿势。Detecting the user's operation of turning off the smart lighting device; in response to the detected operation, recognizing the user's gesture; specifically, the user's gesture can be recognized through the camera of the mobile terminal, exemplarily, an image can be captured by the camera, and Perform image recognition on this image to recognize the user's gesture.
基于识别结果启动对用户的动作事件的监测。Based on the recognition result, monitoring of the user's action event is initiated.
本实施例中,通过对用户姿势的识别,以启动对用户动作事件的监测,可以获取完整的用户动作事件的时刻,由此可以提高对睡眠潜伏期的测量的准确度。In this embodiment, by recognizing the user's gesture to start the monitoring of the user's action event, the complete moment of the user's action event can be obtained, thereby improving the accuracy of the measurement of the sleep latency.
第二方面,本申请实施例提供一种睡眠评估装置,应用于可穿戴设备,该可穿戴设备与移动终端建立通信连接,包括:In a second aspect, an embodiment of the present application provides a sleep evaluation device, which is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
第一获取模块,用于获取第一信息,基于第一信息确定用户的睡眠起始时刻;a first obtaining module, configured to obtain first information, and determine the sleep start time of the user based on the first information;
发送模块,用于发送第一指令给移动终端,第一指令用于指示移动终端监测用户的动作事件;a sending module, configured to send a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
第二获取模块,用于获取第二信息,基于第二信息确定用户的入睡时刻;a second obtaining module, configured to obtain second information, and determine the user's sleep time based on the second information;
计算模块,用于基于睡眠起始时刻及入睡时刻确定睡眠潜伏期。The computing module is used to determine the sleep latency based on the sleep start time and the sleep onset time.
其中一种可能的实现方式中,第一信息包括用户心率和环境状态,上述第一获取模块包括:In one possible implementation manner, the first information includes the user's heart rate and the environmental state, and the above-mentioned first acquisition module includes:
第一监测单元,用于持续监测用户心率和环境状态;a first monitoring unit for continuously monitoring the user's heart rate and environmental status;
第一判断单元,用于判断用户心率和环境状态是否满足预设条件;a first judging unit for judging whether the user's heart rate and environmental state meet preset conditions;
第一获取单元,用于当任一时刻用户心率和环境状态均满足预设条件时,确定时刻为睡眠起始时刻。The first acquiring unit is configured to determine the time as the sleep start time when the user's heart rate and the environmental state at any time meet the preset conditions.
其中一种可能的实现方式中,第二信息包括用户体动状况及用户心率变化,上述第二获取模块包括:In one possible implementation manner, the second information includes the user's physical activity status and the change of the user's heart rate, and the above-mentioned second obtaining module includes:
第二监测单元,用于持续监测用户体动状况及用户心率变化;The second monitoring unit is used to continuously monitor the user's body movement status and the change of the user's heart rate;
第二判断单元,用于判断用户体动状况是否满足预设条件;a second judging unit, configured to judge whether the user's body movement condition satisfies a preset condition;
第二获取单元,用于当任一时刻用户体动状况满足预设条件时,确定时刻为潜在入睡时刻;基于用户心率变化获取心率滑坡时间序列,心率滑坡时间序列包括一个或多个心率滑坡时刻;将潜在入睡时刻与心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。The second obtaining unit is configured to determine the time as a potential sleep time when the user's body movement condition meets the preset condition at any time; obtain the heart rate slippage time series based on the user's heart rate change, and the heart rate slippage time series includes one or more heart rate slippage moments ; Compare the potential sleep time with one or more heart rate slide times in the heart rate slide time series, and determine the sleep time according to the comparison result.
其中一种可能的实现方式中,上述装置还包括:In one possible implementation manner, the above-mentioned device further includes:
接收模块,用于接收移动终端发送的用户动作信息,用户动作信息包括动作事件时间序列,动作事件时间序列包括多个动作事件时刻,每个动作事件时刻与用户的动作事件一一对应。The receiving module is used for receiving user action information sent by the mobile terminal. The user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
其中一种可能的实现方式中,上述计算模块还用于基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个 动作事件时刻确定。In one of the possible implementations, the above-mentioned computing module is also used to determine the sleep latency based on the sleep start time, the time of falling asleep and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
其中一种可能的实现方式中,用户活动信息还包括中断时长,上述计算模块还用于基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻及中断时长确定。In one possible implementation manner, the user activity information further includes the interruption duration, and the above calculation module is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by the action event time sequence The time and interruption duration of multiple action events are determined.
其中一种可能的实现方式中,上述装置还包括:In one possible implementation manner, the above-mentioned device further includes:
提示模块,用于基于睡眠潜伏期进行睡眠提示。The cue module is used for sleep cues based on sleep latency.
本申请实施例还提供一种睡眠评估装置,应用于移动终端,该移动终端与可穿戴设备建立通信连接,包括:The embodiment of the present application also provides a sleep evaluation device, which is applied to a mobile terminal, and the mobile terminal establishes a communication connection with the wearable device, including:
接收模块,用于接收可穿戴设备发送的第一指令,第一指令用于指示移动终端监测用户的动作事件;a receiving module, configured to receive a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
第一记录模块,用于监测用户的动作事件,记录与动作事件对应的时刻,生成动作事件时间序列,其中,动作事件时间序列包括多个动作事件时刻;The first recording module is used to monitor the action events of the user, record the moments corresponding to the action events, and generate the action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
第一发送模块,用于将动作事件时间序列发送给可穿戴设备。The first sending module is used for sending the action event time sequence to the wearable device.
其中一种可能的实现方式中,上述装置还包括:In one possible implementation manner, the above-mentioned device further includes:
第二记录模块,用于监测用户的活动事件,记录与活动事件对应的时刻,基于与活动时间对应的时刻确定中断时长;The second recording module is used to monitor the activity event of the user, record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
第二发送模块,用于将中断时长发送给可穿戴设备。The second sending module is used for sending the interruption duration to the wearable device.
其中一种可能的实现方式中,移动终端与智能照明设备建立通信连接,上述装置还包括:In one possible implementation manner, the mobile terminal establishes a communication connection with the intelligent lighting device, and the above-mentioned apparatus further includes:
检测模块,用于检测到用户关闭智能照明设备的操作;The detection module is used to detect the operation of the user to turn off the smart lighting device;
识别模块,用于响应于检测到的操作,对用户的姿势进行识别;an identification module for identifying the user's gesture in response to the detected operation;
启动模块,用于基于识别结果启动对用户的动作事件的监测。The starting module is used for starting the monitoring of the user's action event based on the identification result.
第三方面,本申请实施例提供一种可穿戴设备,该可穿戴设备与移动终端建立通信连接,包括:In a third aspect, an embodiment of the present application provides a wearable device, and the wearable device establishes a communication connection with a mobile terminal, including:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述可穿戴设备从上述存储器中读取上述指令,以使得上述可穿戴设备执行以下步骤:Memory, the memory is used to store computer program code, and the computer program code includes instructions. When the wearable device reads the instructions from the memory, the wearable device performs the following steps:
获取第一信息,基于第一信息确定用户的睡眠起始时刻;acquiring first information, and determining the sleep start time of the user based on the first information;
发送第一指令给移动终端,第一指令用于指示移动终端监测用户的动作事件;sending a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
获取第二信息,基于第二信息确定用户的入睡时刻;acquiring second information, and determining the user's sleep time based on the second information;
基于睡眠起始时刻及入睡时刻确定睡眠潜伏期。The sleep latency is determined based on the sleep onset time and sleep onset time.
其中一种可能的实现方式中,第一信息包括用户心率和环境状态,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行获取第一信息,基于第一信息确定用户的睡眠起始时刻的步骤包括:In one possible implementation manner, the first information includes the user's heart rate and environmental status, and when the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned wearable device is executed to obtain the first information, and the user's sleep start is determined based on the first information. The steps of the moment include:
持续监测用户心率和环境状态;Continuously monitor the user's heart rate and environmental status;
判断用户心率和环境状态是否满足预设条件;Determine whether the user's heart rate and environmental status meet the preset conditions;
当任一时刻用户心率和环境状态均满足预设条件时,确定时刻为睡眠起始时刻。When the user's heart rate and the environmental state meet the preset conditions at any time, the determined time is the sleep start time.
其中一种可能的实现方式中,第二信息包括用户体动状况及用户心率变化,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行基于第二信息确定用户的入 睡时刻的步骤包括:In one possible implementation manner, the second information includes the user's body movement status and the change of the user's heart rate, and when the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned step of making the above-mentioned wearable device to determine the user's falling asleep time based on the second information includes: :
持续监测用户体动状况及用户心率变化;Continuously monitor the user's physical activity and changes in the user's heart rate;
判断用户体动状况是否满足预设条件;Determine whether the user's physical activity satisfies a preset condition;
当任一时刻用户体动状况满足预设条件时,确定该时刻为潜在入睡时刻;When the user's body movement condition meets the preset condition at any moment, determine the moment as the potential sleep moment;
基于用户心率变化获取心率滑坡时间序列,心率滑坡时间序列包括一个或多个心率滑坡时刻;Obtain the heart rate landslide time series based on the user's heart rate change, and the heart rate landslide time series includes one or more heart rate landslide moments;
将潜在入睡时刻与心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。The potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result.
其中一种可能的实现方式中,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行获取第二信息的步骤之前,还执行以下步骤:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned wearable device further performs the following steps before executing the step of acquiring the second information:
接收移动终端发送的用户动作信息,用户动作信息包括动作事件时间序列,动作事件时间序列包括多个动作事件时刻,每个动作事件时刻与用户的动作事件一一对应。The user action information sent by the mobile terminal is received. The user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
其中一种可能的实现方式中,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行基于睡眠起始时刻及入睡时刻确定睡眠潜伏期的步骤包括:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned wearable device, causing the above-mentioned wearable device to perform the step of determining the sleep latency based on the sleep start time and the sleep-onset time, the steps include:
基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻确定。The sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
其中一种可能的实现方式中,用户活动信息还包括中断时长,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行基于睡眠起始时刻及入睡时刻确定睡眠潜伏期的步骤包括:In one of the possible implementations, the user activity information further includes the interruption duration. When the above-mentioned instruction is executed by the above-mentioned wearable device, the above-mentioned step of determining the sleep latency based on the sleep start time and the sleep-onset time on the above-mentioned wearable device includes:
基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻及中断时长确定。The sleep latency is determined based on the sleep start time, the sleep onset time, and the user activity duration, wherein the user activity duration is determined by multiple action event moments and interruption durations in the action event time sequence.
其中一种可能的实现方式中,上述指令被上述可穿戴设备执行时,使得上述可穿戴设备执行基于睡眠起始时刻及入睡时刻确定睡眠潜伏期的步骤之后,还执行以下步骤:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned wearable device, after the above-mentioned wearable device performs the step of determining the sleep latency based on the sleep start time and the sleep-onset time, the following steps are also performed:
基于睡眠潜伏期进行睡眠提示。Sleep cueing based on sleep latency.
本申请实施例还提供一种移动终端,该移动终端与可穿戴设备建立通信连接,包括:存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述移动终端从上述存储器中读取上述指令,以使得上述移动终端执行以下步骤:An embodiment of the present application further provides a mobile terminal, which establishes a communication connection with a wearable device, including: a memory, where the memory is used to store computer program codes, and the computer program codes include instructions. Read the above instruction, so that the above mobile terminal performs the following steps:
接收可穿戴设备发送的第一指令,第一指令用于指示移动终端监测用户的动作事件;receiving a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the user's action event;
监测用户的动作事件,记录与动作事件对应的时刻,生成动作事件时间序列,其中,动作事件时间序列包括多个动作事件时刻;Monitoring the user's action events, recording the moments corresponding to the action events, and generating an action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
将动作事件时间序列发送给可穿戴设备。Send motion event time series to wearables.
其中一种可能的实现方式中,上述指令被上述移动终端执行时,使得上述移动终端还执行以下步骤:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned mobile terminal, the above-mentioned mobile terminal further performs the following steps:
监测用户的活动事件,记录与活动事件对应的时刻,基于与活动时间对应的时刻确定中断时长;Monitor the user's activity event, record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
将中断时长发送给可穿戴设备。Send the interruption duration to the wearable.
其中一种可能的实现方式中,移动终端与智能照明设备建立通信连接,上述指令 被上述移动终端执行时,使得上述移动终端还执行以下步骤:In one possible implementation manner, the mobile terminal establishes a communication connection with the intelligent lighting device, and when the above-mentioned instruction is executed by the above-mentioned mobile terminal, the above-mentioned mobile terminal also performs the following steps:
检测到用户关闭智能照明设备的操作;Detecting the user's operation to turn off the smart lighting device;
响应于检测到的操作,对用户的姿势进行识别;In response to the detected operation, recognizing the user's gesture;
基于识别结果启动对用户的动作事件的监测。Based on the recognition result, monitoring of the user's action event is initiated.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
附图说明Description of drawings
图1为本申请实施例提供的睡眠评估方法的应用场景架构图;FIG. 1 is an application scenario architecture diagram of a sleep assessment method provided by an embodiment of the present application;
图2为本申请实施例提供的移动终端结构示意图;FIG. 2 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;
图3为本申请实施例提供的可穿戴设备结构示意图;3 is a schematic structural diagram of a wearable device provided by an embodiment of the present application;
图4为本申请提供的睡眠评估方法一个实施例的流程图;4 is a flowchart of an embodiment of a sleep assessment method provided by the present application;
图5为本申请提供的心率滑坡时刻计算方法一个实施例的示意图;FIG. 5 is a schematic diagram of an embodiment of a heart rate landslide moment calculation method provided by the present application;
图6为本申请提供的心率滑坡时刻计算方法另一个实施例的示意图;6 is a schematic diagram of another embodiment of a heart rate landslide moment calculation method provided by the present application;
图7为本申请实施例提供的睡眠潜伏期的计算示意图;FIG. 7 is a schematic diagram of the calculation of sleep latency provided by an embodiment of the present application;
图8为本申请提供的睡眠评估方法另一个实施例的流程图;8 is a flowchart of another embodiment of a sleep assessment method provided by the present application;
图9为本申请提供的睡眠评估装置一个实施例的结构示意图;FIG. 9 is a schematic structural diagram of an embodiment of a sleep assessment device provided by the present application;
图10为本申请提供的睡眠评估装置另一个实施例的结构示意图。FIG. 10 is a schematic structural diagram of another embodiment of a sleep assessment device provided by the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise stated, “/” means or means, for example, A/B can mean A or B; “and/or” in this document is only a description of the associated object The association relationship of , indicates that there can be three kinds of relationships, for example, A and/or B, can indicate that A exists alone, A and B exist at the same time, and B exists alone.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
现有技术中,智能穿戴设备能够基于体动识别用户醒或睡的状态,得到了广泛使用。在此基础上,部分产品通过对心率或心率变异性分类,识别用户是否躺下,并将用户躺下后相对安静的时刻到其入睡的时刻之间的差值作为睡眠潜伏期。然而在现代社会中,由于电子产品(如智能终端)的普及,躺在床上与睡眠的关联性在减弱,也就是说,大多数用户在熄灯躺在床上后经常会使用电子产品看小说等。此外,在年轻人中,使用电子产品的时长并不会很短,且姿势可能长时间保持不变。然而当用户放下电子产品后,可能只需要很短的一段时间便能够入睡,因此,基于上述方案的睡眠 潜伏期的测量通常会高估睡眠潜伏期的长度,由此会给睡眠潜伏期的测量带来误差。而对于部分具有睡眠障碍的用户,其在床上安静的尝试入睡的过程中,在未入睡的情况下可能会被误识别为已经入睡,导致低估其实际的睡眠潜伏期,由此会给睡眠潜伏期的测量带来误差。In the prior art, the smart wearable device can recognize the user's awake or sleep state based on body motion, and has been widely used. On this basis, some products identify whether the user is lying down by classifying heart rate or heart rate variability, and use the difference between the relatively quiet moment after the user lay down and the moment he falls asleep as the sleep latency. However, in modern society, due to the popularity of electronic products (such as smart terminals), the correlation between lying in bed and sleep is weakening. That is to say, most users often use electronic products to read novels after lying in bed with lights out. In addition, among young people, the duration of using electronic products is not very short, and the posture may remain unchanged for a long time. However, when the user puts down the electronic product, it may only take a short period of time to fall asleep. Therefore, the measurement of sleep latency based on the above scheme usually overestimates the length of the sleep latency, which will bring errors to the measurement of sleep latency. . For some users with sleep disorders, they may be mistakenly identified as having fallen asleep when they are trying to fall asleep quietly on the bed, resulting in an underestimation of their actual sleep latency, which will give a negative impact on the sleep latency. Measurement introduces error.
基于上述问题,本申请实施例提出了一种睡眠评估方法。Based on the above problems, an embodiment of the present application proposes a sleep evaluation method.
现结合图1-图8对本申请实施例提供的睡眠评估方法进行说明,图1为本申请实施例提供的应用场景示例图,参考图1,上述应用场景包括移动终端100、智能穿戴设备200(例如,智能手表)、智能穿戴设备201(例如,智能眼镜)以及智能家居设备300。The sleep assessment method provided by the embodiment of the present application will now be described with reference to FIG. 1 to FIG. 8 . FIG. 1 is an example diagram of an application scenario provided by the embodiment of the present application. Referring to FIG. 1 , the above-mentioned application scenario includes a mobile terminal 100, a smart wearable device 200 ( For example, a smart watch), a smart wearable device 201 (eg, smart glasses), and a smart home device 300.
智能穿戴设备200与移动终端100之间可以通过无线方式建立连接,上述无线方式可以包括WIFI、蓝牙、蜂窝移动网络(例如4G、5G等)等无线通信方式,本申请对此不作特殊限定。移动终端100与智能家居设备300及智能穿戴设备201之间也可以通过无线方式建立连接,上述方式可以包括WIFI等无线通信方式,本申请对此不作特殊限定。A connection between the smart wearable device 200 and the mobile terminal 100 can be established wirelessly, and the above wireless method may include wireless communication methods such as WIFI, Bluetooth, and cellular mobile networks (eg, 4G, 5G, etc.), which are not specifically limited in this application. The connection between the mobile terminal 100 and the smart home device 300 and the smart wearable device 201 may also be established wirelessly, and the above-mentioned methods may include wireless communication methods such as WIFI, which are not specifically limited in this application.
其中,智能穿戴设备200可以是具有无线通信功能以及显示屏的穿戴式设备,例如,智能手表。智能穿戴设备201可以是具有无线通信功能的穿戴式设备,例如,智能眼镜。移动终端100也可以称为终端设备、用户设备(User Equipment,UE)、接入终端、用户单元、移动台、远程终端、移动设备、用户终端、终端、无线通信设备或用户装置。移动终端100可以是蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备或手持式通信设备和/或用于在无线系统上进行通信的其它设备以及下一代通信系统,例如,5G网络中的移动终端或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)网络中的移动终端等,例如,手机,平板。智能家居设备300可以是具有无线通信功能的家居设备,例如,智能灯具、智能开关、智能插座等。The smart wearable device 200 may be a wearable device with a wireless communication function and a display screen, such as a smart watch. The smart wearable device 201 may be a wearable device with a wireless communication function, for example, smart glasses. The mobile terminal 100 may also be referred to as terminal equipment, user equipment (UE), access terminal, subscriber unit, mobile station, remote terminal, mobile device, user terminal, terminal, wireless communication device, or user equipment. The mobile terminal 100 may be a cellular telephone, a cordless telephone, a Personal Digital Assistant (PDA) device, a handheld or handheld communication device with wireless communication capabilities and/or other devices for communicating over a wireless system and Next-generation communication systems, such as mobile terminals in a 5G network or mobile terminals in a future evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc., such as mobile phones and tablets. The smart home device 300 may be a home device with a wireless communication function, for example, a smart lamp, a smart switch, a smart socket, and the like.
图2示出了移动终端100的结构示意图。FIG. 2 shows a schematic structural diagram of the mobile terminal 100 .
移动终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The mobile terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对移动终端100的具体限定。在本申请另一些实施例中,移动终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile terminal 100 . In other embodiments of the present application, the mobile terminal 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理 器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, 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), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface 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 transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现移动终端100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the mobile terminal 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI 接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现移动终端100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现移动终端100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the mobile terminal 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the mobile terminal 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为移动终端100充电,也可以用于移动终端100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the mobile terminal 100, and can also be used to transmit data between the mobile terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对移动终端100的结构限定。在本申请另一些实施例中,移动终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile terminal 100 . In other embodiments of the present application, the mobile terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过移动终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the mobile terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
移动终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。移动终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在移动终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理 器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile terminal 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided 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.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator 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 passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在移动终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 may provide applications on the mobile terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,移动终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得移动终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile terminal 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
移动终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,移动终端100 可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the mobile terminal 100 may include one or N display screens 194 , where N is a positive integer greater than one.
移动终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile terminal 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,移动终端100可以包括1个或N个摄像头193,N为大于1的正整数。在本申请实施例中,通过摄像头捕获用户的影像,可以识别出用户的姿势,由此可以判断用户的睡眠意图。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the mobile terminal 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1. In this embodiment of the present application, the user's posture can be recognized by capturing an image of the user through the camera, and thus the user's sleeping intention can be determined.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当移动终端100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and the like.
视频编解码器用于对数字视频压缩或解压缩。移动终端100可以支持一种或多种视频编解码器。这样,移动终端100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The mobile terminal 100 may support one or more video codecs. In this way, the mobile terminal 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现移动终端100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the mobile terminal 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展移动终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储移动终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行移动终端100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile terminal 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the mobile terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
移动终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。移动终端100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The mobile terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当移动终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the mobile terminal 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。移动终端100可以设置至少一个麦克风170C。在另一些实施例中,移动终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,移动终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The mobile terminal 100 may be provided with at least one microphone 170C. In other embodiments, the mobile terminal 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the mobile terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。移动终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,移动终端100根据压力传感器180A检测所述触摸操作强度。移动终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The mobile terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the mobile terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The mobile terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定移动终端100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定移动终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测移动终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消移动终端100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the mobile terminal 100 . In some embodiments, the angular velocity of the mobile terminal 100 about three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the mobile terminal 100 shakes, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shake of the mobile terminal 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,移动终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。移动终端100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当移动终端100是翻盖机时,移动终端100可以根据 磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The mobile terminal 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the mobile terminal 100 is a flip machine, the mobile terminal 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测移动终端100在各个方向上(一般为三轴)加速度的大小。当移动终端100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。本申请实施例中,通过该加速度传感器180E可以识别出用户的动作事件,例如,该动作事件可以包括:用户拿起移动终端的事件及用户拿起移动终端的事件。The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile terminal 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the mobile terminal 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In this embodiment of the present application, the acceleration sensor 180E can identify the action event of the user. For example, the action event may include: an event of the user picking up the mobile terminal and an event of the user picking up the mobile terminal.
距离传感器180F,用于测量距离。移动终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,移动终端100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The mobile terminal 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the mobile terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。移动终端100通过发光二极管向外发射红外光。移动终端100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定移动终端100附近有物体。当检测到不充分的反射光时,移动终端100可以确定移动终端100附近没有物体。移动终端100可以利用接近光传感器180G检测用户手持移动终端100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The mobile terminal 100 emits infrared light to the outside through the light emitting diode. The mobile terminal 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near the mobile terminal 100 . When insufficient reflected light is detected, the mobile terminal 100 may determine that there is no object near the mobile terminal 100 . The mobile terminal 100 can use the proximity light sensor 180G to detect that the user holds the mobile terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。移动终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测移动终端100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The mobile terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile terminal 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。移动终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The mobile terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
温度传感器180J用于检测温度。在一些实施例中,移动终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,移动终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,移动终端100对电池142加热,以避免低温导致移动终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,移动终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the mobile terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile terminal 100 performs performance reduction of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile terminal 100 heats the battery 142 to avoid abnormal shutdown of the mobile terminal 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the mobile terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于移动终端100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile terminal 100 , which is different from the position where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨 传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M may also be disposed in the earphone, in conjunction with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。移动终端100可以接收按键输入,产生与移动终端100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The mobile terminal 100 may receive key inputs and generate key signal inputs related to user settings and function control of the mobile terminal 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和移动终端100的接触和分离。移动终端100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。移动终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,移动终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在移动终端100中,不能和移动终端100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the mobile terminal 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The mobile terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The mobile terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the mobile terminal 100 employs an eSIM, ie an embedded SIM card. The eSIM card can be embedded in the mobile terminal 100 and cannot be separated from the mobile terminal 100 .
图3为智能穿戴设备200的硬件结构示意图,该智能穿戴设备200可以包括心率传感器210、体动传感器220、环境光传感器230、处理器240、存储器250、供电单元260及无线通信模块270。其中,心率传感器210、体动传感器220、环境光传感器230、处理器240、存储器250、供电单元260及无线通信模块270之间可以通过内部连接通路互相通信,传递控制和/或数据信号。心率传感器210用于监测用户的心率,以确定用户当前所处姿态以及用户是否处于睡眠状态。体动传感器220用于监测用户的体动状况,以确定用户是否有睡眠意向以及辅助确定用户是否处于睡眠状态,该体动状况可以用于标识用户的体动量。环境光传感器230用于监测当前环境光的强度,以确定当前环境是否处于熄灯环境,由此可以进一步确定用户是否有睡眠意向。存储器250可以用于存储计算机程序,处理器240可以用于从该存储器250中调用并运行该计算机程序;在具体实现中,该处理器240可以是微控制单元(Micro-Controller Unit,MCU),该存储器250可以是缓存器(buffer),该存储器250还可以用于存储监测的数据(例如,用户的心率)以及移动终端100发送的数据(例如,用户的动作事件的时刻)。供电单元260用于给智能穿戴设备200中的各种器件或电路提供电源。无线通信模块270可以提供应用在智能穿戴设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication, NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块270可以是集成至少一个通信处理模块的一个或多个器件。3 is a schematic diagram of the hardware structure of the smart wearable device 200 . The smart wearable device 200 may include a heart rate sensor 210 , a body motion sensor 220 , an ambient light sensor 230 , a processor 240 , a memory 250 , a power supply unit 260 and a wireless communication module 270 . The heart rate sensor 210 , the body motion sensor 220 , the ambient light sensor 230 , the processor 240 , the memory 250 , the power supply unit 260 and the wireless communication module 270 can communicate with each other through an internal connection path to transmit control and/or data signals. The heart rate sensor 210 is used to monitor the user's heart rate to determine the current posture of the user and whether the user is in a sleep state. The body motion sensor 220 is used to monitor the body motion status of the user to determine whether the user has a sleep intention and assist in determining whether the user is in a sleep state, and the body motion status can be used to identify the user's body motion amount. The ambient light sensor 230 is used to monitor the intensity of the current ambient light to determine whether the current environment is in a lights-off environment, thereby further determining whether the user has sleep intentions. The memory 250 can be used to store a computer program, and the processor 240 can be used to call and run the computer program from the memory 250; in a specific implementation, the processor 240 can be a Micro-Controller Unit (MCU), The memory 250 may be a buffer, and the memory 250 may also be used to store monitored data (eg, the user's heart rate) and data sent by the mobile terminal 100 (eg, the moment of the user's action event). The power supply unit 260 is used to provide power to various devices or circuits in the smart wearable device 200 . The wireless communication module 270 can provide applications on the smart wearable device 200 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 270 may be one or more devices integrating at least one communication processing module.
上述存储器250可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。The above-mentioned memory 250 can be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or may also be capable of carrying or storing desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, etc.
上述处理器240可以和存储器250合成一个处理装置,更常见的是彼此独立的部件,处理器240可以用于执行存储器250中存储的程序代码来实现上述功能。具体实现时,该存储器250也可以集成在处理器240中,或者,独立于处理器240。The above-mentioned processor 240 may be combined with the memory 250 to form a processing device, more commonly, components independent of each other, and the processor 240 may be used to execute the program codes stored in the memory 250 to realize the above-mentioned functions. During specific implementation, the memory 250 may also be integrated in the processor 240 , or be independent of the processor 240 .
可选地,为了使得智能穿戴设备200的功能更加完善,该智能穿戴设备200还可以包括音频电路280和震动器290中的一个或多个,该音频电路280还可以包括扬声器281,其中,该音频电路280及扬声器281可以用于进行语音播报,提示用户改变作息习惯,以提高睡眠质量;该震动器290可以用于进行震动,提示用户用户改变作息习惯,以提高睡眠质量。Optionally, in order to make the functions of the smart wearable device 200 more complete, the smart wearable device 200 may further include one or more of an audio circuit 280 and a vibrator 290, and the audio circuit 280 may further include a speaker 281, wherein the The audio circuit 280 and the speaker 281 can be used for voice broadcast to prompt the user to change their work and rest habits to improve sleep quality; the vibrator 290 can be used to vibrate to prompt the user to change their work and rest habits to improve sleep quality.
应理解,图3所示的智能穿戴设备200中的处理器240可以是片上系统SOC,该处理器240中可以包括中央处理器(Central Processing Unit;以下简称:CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit;以下简称:GPU)等。It should be understood that the processor 240 in the smart wearable device 200 shown in FIG. 3 may be a system-on-chip SOC, and the processor 240 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of For example: Graphics Processing Unit (Graphics Processing Unit; hereinafter referred to as: GPU), etc.
智能穿戴设备201至少包括上述环境光传感器230。The smart wearable device 201 includes at least the above-mentioned ambient light sensor 230 .
图4为本申请实施例提供的睡眠评估方法一个实施例的流程示意图,包括:4 is a schematic flowchart of an embodiment of a sleep assessment method provided by an embodiment of the present application, including:
步骤101,智能穿戴设备200监测用户心率。Step 101, the smart wearable device 200 monitors the user's heart rate.
具体地,人体处于不同姿势时,由于代谢率不同,会拥有不同的心率。举例来说,人体处于静立状态时的心率比人体处于静坐状态时的心率高,人体处于静坐状态时的心率比人体处于静卧状态时的心率高,人体处于静卧状态时的心率比人体处于熟睡状态时的心率高。因此,智能穿戴设备200可以通过心率传感器210监测用户的心率,由此可以确定用户是否处于睡眠状态。智能穿戴设备200通过对用户心率的监测,可以将监测到的心率进行分类。示例性的,智能穿戴设备200可以将心率分成两类,静卧心率及入睡心率。可以理解的是,上述静卧心率及入睡心率标识的是一个心率区间,示例性的,静卧心率可以对应64-78的心率区间,入睡心率可以对应56-63的心率区间,上述心率区间的数值仅是示例,也可以为其他数值,本申请实施例对此不作特殊限定。若检测到的心率与上述区间匹配,则该检测到的心率归类到对应的心率类别。其中,静卧心率用于标识用户处于静卧状态,但并未进入睡眠状态;入睡心率用于标识用户已进入睡眠状态。Specifically, when the human body is in different postures, it will have different heart rates due to different metabolic rates. For example, the heart rate is higher when the human body is standing than the human body is sitting, the heart rate is higher when the human body is sitting than the human body is in the recumbent state, and the heart rate is higher when the human body is lying down than the human body. High heart rate while asleep. Therefore, the smart wearable device 200 can monitor the user's heart rate through the heart rate sensor 210, thereby determining whether the user is in a sleep state. The smart wearable device 200 can classify the monitored heart rate by monitoring the user's heart rate. Exemplarily, the smart wearable device 200 may classify the heart rate into two categories, the resting heart rate and the falling asleep heart rate. It can be understood that the above-mentioned resting heart rate and falling asleep heart rate indicate a heart rate interval. Exemplarily, the resting heart rate may correspond to a heart rate interval of 64-78, and the falling asleep heart rate may correspond to a heart rate interval of 56-63. The numerical values are only examples, and may also be other numerical values, which are not particularly limited in the embodiments of the present application. If the detected heart rate matches the above interval, the detected heart rate is classified into the corresponding heart rate category. The resting heart rate is used to identify that the user is in a resting state but has not entered a sleep state; the sleep-onset heart rate is used to identify that the user has entered a sleep state.
步骤102,智能穿戴设备200监测当前环境状态。Step 102, the smart wearable device 200 monitors the current environment state.
具体地,当前环境状态可以包括未熄灯状态及熄灯状态。其中,未熄灯状态用于 标识当前用户所处的环境为灯光未熄灭状态,由此可以推断用户可能还在活动中。熄灯状态用于标识当前用户所处的环境为灯光已熄灭状态,由此可以确定用户准备睡眠中。Specifically, the current environmental state may include a light-off state and a light-off state. Among them, the non-light-off state is used to identify that the current user's environment is the light-on-off state, from which it can be inferred that the user may still be active. The light-off state is used to identify that the current environment the user is in is the light-off state, so that it can be determined that the user is ready to sleep.
在具体实现时,当前环境状态的检测可以通过智能穿戴设备200中的环境光传感器230进行。例如,通过环境光传感器230对环境光的强度进行检测,由此可以确定当前环境状态为未熄灯状态或熄灯状态。举例来说,可以预设环境光强度阈值为15lux,若环境光传感器230监测到的环境光强度大于或等于该环境光强度阈值,则可以认为当前环境状态为未熄灭状态,若环境光传感器230监测到的环境光强度小于该环境光强度阈值,则可以认为当前环境状态为已熄灭状态。可以理解的是,上述环境光强度阈值可以是其他任意值,本申请实施例对此不作特殊限定。During specific implementation, the detection of the current environment state may be performed by the ambient light sensor 230 in the smart wearable device 200 . For example, by detecting the intensity of the ambient light by the ambient light sensor 230, it can be determined that the current environmental state is a non-light-off state or a light-off state. For example, the ambient light intensity threshold can be preset to 15 lux. If the ambient light intensity monitored by the ambient light sensor 230 is greater than or equal to the ambient light intensity threshold, it can be considered that the current environment state is not extinguished. If the ambient light sensor 230 If the monitored ambient light intensity is less than the ambient light intensity threshold, it can be considered that the current environmental state is the extinguished state. It can be understood that the above-mentioned ambient light intensity threshold may be any other value, which is not particularly limited in this embodiment of the present application.
可选地,当前环境状态也可以与移动终端100的开灯和关灯操作对应。其中,上述未熄灯状态可以与用户的开灯操作对应。示例性的,用户可以在移动终端100的显示界面上进行开灯操作,以开启智能家居设备300(例如,智能灯具)。响应于用户的开灯操作,移动终端100可以确定当前环境状态为未熄灯状态。上述熄灯状态可以与用户的关灯操作对应。示例性的,用户可以在移动终端100的显示界面上进行关灯操作,以关闭智能家居设备300(例如,智能灯具)。响应于用户的关灯操作,移动终端100可以确定当前环境状态为已熄灯状态。当移动终端100获取到当前环境状态后,可以将该当前环境状态发送给智能穿戴设备200。Optionally, the current environment state may also correspond to the light-on and light-off operations of the mobile terminal 100 . The above-mentioned non-light-off state may correspond to a user's light-on operation. Exemplarily, the user may perform a light-on operation on the display interface of the mobile terminal 100 to turn on the smart home device 300 (eg, a smart lamp). In response to the user's light-on operation, the mobile terminal 100 may determine that the current environmental state is a non-light-off state. The above-described light-off state may correspond to a user's light-off operation. Exemplarily, the user may perform a light-off operation on the display interface of the mobile terminal 100 to turn off the smart home device 300 (eg, smart lamps). In response to the user's light-off operation, the mobile terminal 100 may determine that the current environmental state is the light-off state. After the mobile terminal 100 acquires the current environment state, the current environment state may be sent to the smart wearable device 200 .
需要说明的是,本步骤102与步骤101的执行顺序不分先后,也就是说,本步骤102可以在步骤101之前执行,可以在步骤101之后执行,也可以和步骤101同时执行,本申请实施例对此不作特殊限定。It should be noted that this step 102 and step 101 are executed in no particular order, that is, this step 102 can be executed before step 101, can be executed after step 101, or can be executed simultaneously with step 101. This application implements This example does not make any special restrictions.
步骤103,智能穿戴设备200基于上述用户心率及当前环境状态确定睡眠起始时刻T start,并启动入睡检测。 Step 103 , the smart wearable device 200 determines the sleep start time T start based on the above-mentioned user's heart rate and the current environment state, and starts sleep onset detection.
具体地,智能穿戴设备200在获取到用户心率及当前环境状态后,可以对上述用户心率及当前环境状态进行综合判断。Specifically, after acquiring the user's heart rate and the current environment state, the smart wearable device 200 can make a comprehensive judgment on the above-mentioned user's heart rate and the current environment state.
若智能穿戴设备200判断用户心率处于静卧心率区间,且当前环境状态为熄灯状态,则可以确定用户拥有睡眠意向。此时,智能穿戴设备200可以记录下睡眠起始时刻T startIf the smart wearable device 200 determines that the user's heart rate is in the recumbent heart rate range and the current environment state is the lights-off state, it can be determined that the user has sleep intention. At this time, the smart wearable device 200 may record the sleep start time T start .
步骤104,智能穿戴设备200还可以向移动终端100发送指示信息。其中,该指示信息用于指示移动终端100启动对用户动作事件的监测。Step 104 , the smart wearable device 200 may also send instruction information to the mobile terminal 100 . The indication information is used to instruct the mobile terminal 100 to start monitoring the user action event.
步骤105,移动终端100接收智能穿戴设备200发送的指示信息,监测用户的动作事件。In step 105, the mobile terminal 100 receives the indication information sent by the smart wearable device 200, and monitors the action events of the user.
具体地,该动作事件可以包括拿起事件和放下事件。示例性的,若用户拿起移动终端100,则该事件为拿起事件;若用户放下移动终端100,则该事件为放下事件。其中,该拿起事件可以用于识别用户正在活动中,也就是说,用户暂时没有睡眠意向;该放下事件可以用于识别用户准备入睡,也就是说,用户已有睡眠意向。Specifically, the action event may include a pick-up event and a put-down event. Exemplarily, if the user picks up the mobile terminal 100, the event is a pick-up event; if the user puts down the mobile terminal 100, the event is a put-down event. The pick-up event can be used to identify that the user is active, that is, the user has no sleep intention temporarily; the put-down event can be used to identify that the user is about to fall asleep, that is, the user has a sleep intention.
在具体实现时,上述动作事件可以通过移动终端100中的加速度传感器180E进行识别。During specific implementation, the above-mentioned action events may be identified by the acceleration sensor 180E in the mobile terminal 100 .
可选地,上述动作事件还可以与移动终端100的解屏事件和锁屏事件对应。其中, 解屏事件可以与拿起事件对应,该解屏事件可以由用户的解屏操作触发,示例性的,用户可以在移动终端100的屏幕上进行解锁操作,例如,输入密码或者指纹解锁。响应于用户的解锁操作,移动终端100触发解屏事件,对屏幕进行解锁,由此可以确定用户已拿起移动终端100。锁屏事件可以与放下事件对应,该锁屏事件可以由用户的锁屏操作触发,示例性的,用户也可以在移动终端100的屏幕上进行锁屏操作,例如,按下锁屏键。响应于用户的锁屏操作,移动终端100触发锁屏事件,对屏幕进行锁屏,由此可以确定用户已放下移动终端100。Optionally, the above-mentioned action event may also correspond to a screen unlocking event and a screen locking event of the mobile terminal 100 . The unlocking event may correspond to a pick-up event, and the unlocking event may be triggered by a user's unlocking operation. Exemplarily, the user may perform an unlocking operation on the screen of the mobile terminal 100 , for example, by entering a password or fingerprint to unlock. In response to the user's unlocking operation, the mobile terminal 100 triggers an unlocking event to unlock the screen, so that it can be determined that the user has picked up the mobile terminal 100 . The screen lock event may correspond to a drop event, and the screen lock event may be triggered by a user's screen lock operation. Exemplarily, the user may also perform a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key. In response to the user's screen-locking operation, the mobile terminal 100 triggers a screen-locking event to lock the screen, whereby it can be determined that the user has put down the mobile terminal 100 .
可选地,上述动作事件还可以由智能穿戴设备201进行识别。示例性的,该智能穿戴设备201可以是智能眼镜。通过该智能眼镜可以检测移动终端100的光线,并可以将上述动作事件与光线对应。若智能眼镜检测到存在移动终端100的光线,则可以确定当前事件为拿起事件,也就是说,该移动终端100处于亮屏状态,用户正在使用移动终端100;若智能眼镜检测到移动终端100的光线消失,则可以确定当前事件为放下事件,也就是说,该移动终端100处于熄屏状态,用户正在放下移动终端100。智能穿戴设备201获取到拿起事件或放下事件后,可以将上述拿起事件信息和放下事件信息发送给移动终端100。Optionally, the above-mentioned action event may also be identified by the smart wearable device 201 . Exemplarily, the smart wearable device 201 may be smart glasses. Through the smart glasses, the light of the mobile terminal 100 can be detected, and the above-mentioned action events can be corresponding to the light. If the smart glasses detect the presence of light from the mobile terminal 100, it can be determined that the current event is a pick-up event, that is, the mobile terminal 100 is in a bright screen state and the user is using the mobile terminal 100; if the smart glasses detect the mobile terminal 100 If the light disappears, it can be determined that the current event is a drop event, that is, the mobile terminal 100 is in a screen-off state, and the user is putting down the mobile terminal 100 . After acquiring the pick-up event or the put-down event, the smart wearable device 201 can send the pick-up event information and the put-down event information to the mobile terminal 100 .
步骤106,移动终端100记录与动作事件对应的时刻,生成动作事件时间序列。Step 106, the mobile terminal 100 records the time corresponding to the action event, and generates a time series of the action event.
具体地,用户可能存在多次拿起和放下移动终端100的动作,也就是说,存在多个拿起事件和放下事件。因此,当移动终端100监测到拿起事件或放下事件后,可以记录下与该拿起事件或放下事件对应的时刻,由此可以得到两个动作事件时间序列,例如,拿起事件时间序列及放下事件时间序列。Specifically, the user may have actions to pick up and put down the mobile terminal 100 multiple times, that is, there are multiple pick up events and put down events. Therefore, after the mobile terminal 100 monitors the pick-up event or the drop event, it can record the time corresponding to the pick-up event or the drop event, thereby obtaining two action event time series, for example, the pick-up event time series and the Drop the event time series.
其中,上述拿起事件时间序列包括所有与拿起事件对应的时刻。上述放下事件时间序列包括所有与放下事件对应的时刻。Wherein, the above pick-up event time sequence includes all the moments corresponding to the pick-up event. The above-mentioned drop event time series includes all the moments corresponding to the drop events.
举例来说,若用户分别在23:37拿起移动终端100,在23:57放下移动终端100,在0:10拿起移动终端100,在0:20放下移动终端100。则拿起事件时间序列可以包括23:37及0:10两个时刻,放下事件时间序列可以包括23:57及0:20两个时刻。For example, if the user picks up the mobile terminal 100 at 23:37, puts down the mobile terminal 100 at 23:57, picks up the mobile terminal 100 at 0:10, and puts down the mobile terminal 100 at 0:20. Then the pick-up event time series may include two moments of 23:37 and 0:10, and the drop event time series may include two moments of 23:57 and 0:20.
步骤107,移动终端100将上述两个动作事件时间序列发送给智能穿戴设备200。Step 107 , the mobile terminal 100 sends the above two action event time series to the smart wearable device 200 .
步骤108,智能穿戴设备200监测用户的体动状况,确定潜在入睡时刻。In step 108, the smart wearable device 200 monitors the physical movement status of the user, and determines the potential time to fall asleep.
具体地,智能穿戴设备200可以通过体动传感器220监测用户的体动状况。其中,体动状况可以反映出用户的体动量,示例性的,当用户的体动量达到预设的阈值时,可以初步认为该用户已经入睡。因此,智能穿戴设备200可以通过体动传感器220对用户的体动量进行判断,若智能穿戴设备200判断用户体动量小于或等于预设的体动量阈值,则可以记录下该时刻,将该时刻作为潜在入睡时刻T sleep1,其中,潜在入睡时刻T sleep1用于标识用户的潜在入睡时刻。需要说明的是,该潜在入睡时刻T sleep1并非表明用户已真正入睡,因此,还可以进一步判断,以确定真正的入睡时刻。 Specifically, the smart wearable device 200 may monitor the user's body movement status through the body movement sensor 220 . The body movement status may reflect the user's body momentum. Exemplarily, when the user's body momentum reaches a preset threshold, it may be preliminarily considered that the user has fallen asleep. Therefore, the smart wearable device 200 can judge the user's body momentum through the body motion sensor 220. If the smart wearable device 200 judges that the user's body momentum is less than or equal to the preset body momentum threshold, it can record the moment and use the moment as The potential sleep time T sleep1 , where the potential sleep time T sleep1 is used to identify the user's potential sleep time. It should be noted that the potential sleep time T sleep1 does not indicate that the user has actually fallen asleep. Therefore, further judgment can be made to determine the real sleep time.
步骤109,智能穿戴设备200监测用户心率变化情况,确定心率滑坡时刻T sleep2Step 109 , the smart wearable device 200 monitors the change of the user's heart rate, and determines the heart rate slope time T sleep2 .
具体地,人体从清醒状态到入睡状态,心率会发生骤降。因此,通过对用户心率的监测,找出用户心率滑坡的时刻,由此可以将该心率滑坡的时刻作为用户入睡的参考时间点。Specifically, when the human body goes from being awake to falling asleep, the heart rate will drop sharply. Therefore, by monitoring the user's heart rate, the moment at which the user's heart rate slips can be found, and the moment when the user's heart rate slips can be used as a reference time for the user to fall asleep.
在具体实现时,智能穿戴设备200可以使用心率传感器210监测任意前后两个时 刻的心率值,由此可以计算出该前后两个时刻对应的心率之间的差值,并可以将该差值与预设的差值阈值进行比较,若该差值大于或等于该预设的差值阈值,则可以认为用户的心率发生骤降,由此可以将后一个时刻记录为心率滑坡时刻T sleep2In specific implementation, the smart wearable device 200 can use the heart rate sensor 210 to monitor the heart rate value at any two moments before and after, thereby calculating the difference between the heart rates corresponding to the two moments before and after, and can use the difference with the The preset difference threshold is compared, and if the difference is greater than or equal to the preset difference threshold, it can be considered that the user's heart rate has dropped sharply, and thus the next time can be recorded as the heart rate landslide time T sleep2 .
现结合图5进行说明,如图5所示,从时刻T开始,可以监测任意前后两个时刻的心率值,其中,该时刻T可以是睡眠起始时刻T start,也可以是睡眠起始时刻T start后的任意一个时刻,本申请实施例对此不作特殊限定。假设从时刻T监测到了Tm,上述T到Tm的时间段内包含T1、T2、T3及T4等时刻,则可以分别计算T1和T2之间的心率差值、T2和T3之间的心率差值及T3和T4之间的心率差值,由此可以确定T1、T2、T3及T4等时刻中的心率滑坡时刻T sleep2。例如,若T1和T2之间的心率差值大于或等于预设的差值阈值,则T2为心率滑坡时刻T sleep25, as shown in FIG. 5, starting from time T, the heart rate value at any two time points can be monitored, wherein the time T can be the sleep start time T start , or it can be the sleep start time Any time after T start is not specifically limited in this embodiment of the present application. Assuming that Tm is monitored from time T, and the time period from T to Tm includes time T1, T2, T3, and T4, the heart rate difference between T1 and T2 and the heart rate difference between T2 and T3 can be calculated respectively. and the heart rate difference between T3 and T4, so that the heart rate slope time T sleep2 in T1, T2, T3 and T4 can be determined. For example, if the heart rate difference between T1 and T2 is greater than or equal to a preset difference threshold, T2 is the heart rate landslide time T sleep2 .
可选地,智能穿戴设备200也可以监测前后两个时间段的心率均值,由此可以计算出前后两个时间段对应的心率均值之间的差值,并可以将该差值与预设的差值阈值进行比较,若该差值大于或等于该预设的差值阈值,则可以认为用户的心率发生骤降,由此可以将后一个时间段的首个时刻记录为心率滑坡时刻T sleep2,也可以将后一个时间段的任意一个时刻记录为心率滑坡时刻T sleep2,本申请实施例对此不作特殊限定。 Optionally, the smart wearable device 200 can also monitor the average heart rate of the two time periods before and after, thereby calculating the difference between the average heart rate values corresponding to the two time periods before and after, and can compare the difference with the preset value. The difference threshold is compared. If the difference is greater than or equal to the preset difference threshold, it can be considered that the user's heart rate has dropped sharply, so the first moment of the next time period can be recorded as the heart rate slip time T sleep2 , and any time in the latter time period may also be recorded as the heart rate landslide time T sleep2 , which is not particularly limited in this embodiment of the present application.
现结合图6进行说明,如图6所示,从时刻T开始,预设监测的时间跨度为Td,假设从时刻T监测到了Tm,上述T到Tm的时间段内包含了Td1、Td2、Td3及Td4等子时间段;其中,Td1、Td2、Td3及Td4等子时间段分别包含多个时刻。因此,可以分别计算出Td1、Td2、Td3及Td4等子时间段的心率均值。接着分别计算Td1和Td2之间的心率均值的差值、Td2和Td3之间的心率均值的差值及Td3和Td4之间的心率均值的差值,由此可以确定Td1、Td2、Td3及Td4等时间段中的心率滑坡时刻T sleep2。例如,若Td1和Td2之间的心率均值的差值大于或等于预设的差值阈值,则可以将Td2中的首个时刻作为心率滑坡时刻T sleep2,也可以将Td2中的任意时刻作为心率滑坡时刻T sleep2,本申请实施例对此不作特殊限定。 6 , as shown in FIG. 6 , starting from time T, the preset monitoring time span is Td, assuming that Tm is monitored from time T, the above-mentioned time period from T to Tm includes Td1, Td2, Td3 and sub-periods such as Td4; wherein, the sub-periods such as Td1, Td2, Td3, and Td4 respectively include multiple times. Therefore, the average heart rate of the sub-periods such as Td1, Td2, Td3 and Td4 can be calculated respectively. Then calculate the difference between the mean heart rate between Td1 and Td2, the difference between the mean heart rate between Td2 and Td3, and the difference between the mean heart rate between Td3 and Td4, so that Td1, Td2, Td3 and Td4 can be determined. Wait for the heart rate slope time T sleep2 in the time period. For example, if the difference between the mean heart rate values between Td1 and Td2 is greater than or equal to a preset difference threshold, the first moment in Td2 can be used as the heart rate slippage time T sleep2 , and any time in Td2 can be used as the heart rate The landslide time T sleep2 is not particularly limited in this embodiment of the present application.
可以理解的是,符合上述特征的心率滑坡时刻T sleep2可以包含多个,因此,智能穿戴设备200可以存储心率滑坡时间序列,其中,该心率滑坡时间序列可以包括一个或多个心率滑坡时刻T sleep2It can be understood that the heart rate slippage time T sleep2 that meets the above characteristics may include multiple times. Therefore, the smart wearable device 200 may store the heart rate slippage time series, wherein the heart rate slippage time series may include one or more heart rate slippage time T sleep2. .
步骤110,智能穿戴设备200基于潜在入睡时刻T sleep1及心率滑坡时刻T sleep2,确定入睡时刻。 In step 110, the smart wearable device 200 determines the time to fall asleep based on the potential time to sleep T sleep1 and the time T sleep2 of the heart rate slope.
具体地,智能穿戴设备200在获取到潜在入睡时刻T sleep1及心率滑坡时间序列后,可以将潜在入睡时刻T sleep1与心率滑坡时间序列中的每个心率滑坡时刻T sleep2进行比较。 Specifically, after acquiring the potential sleep time T sleep1 and the heart rate slippage time series, the smart wearable device 200 can compare the potential sleep time T sleep1 with each heart rate slippage time T sleep2 in the heart rate slippage time series.
若智能穿戴设备200判断潜在入睡时刻T sleep1与心率滑坡时刻T sleep2之间的差值大于或等于预设的差值阈值,则可以认为该心率滑坡时刻T sleep2无效。示例性的,若心率滑坡时刻T sleep2明显早于潜在入睡时刻T sleep1(例如,超过3分钟以上),则可以认为该心率滑坡时刻T sleep2为无效时刻,可以继续寻找上述心率滑坡时间序列中的其他心率滑坡时刻T sleep2,以确定入睡时刻T sleepIf the smart wearable device 200 determines that the difference between the potential sleep time T sleep1 and the heart rate slippage time T sleep2 is greater than or equal to the preset difference threshold, it can be considered that the heart rate slippage time T sleep2 is invalid. Exemplarily, if the heart rate slippage time T sleep2 is significantly earlier than the potential sleep time T sleep1 (for example, more than 3 minutes), it can be considered that the heart rate slippage time T sleep2 is an invalid time, and you can continue to search for the heart rate slippage time sequence in the above. The other heart rate slope time T sleep2 is used to determine the sleep falling time T sleep .
其中,在对心率滑坡时刻T sleep2进行查找时,可以以时间从先至后的顺序进行。例如,首先将最早的心率滑坡时刻T sleep2与潜在入睡时刻T sleep1进行比较,若该最早的 心率滑坡时刻T sleep2不满足条件,则继续将次早的心率滑坡时刻T sleep2与潜在入睡时刻T sleep1进行比较,直至找到满足条件的心率滑坡时刻T sleep2出现,并可以将该满足条件的心率滑坡时刻T sleep2作为入睡时刻T sleepWherein, when searching for the heart rate slippage time T sleep2 , the search may be performed in the order of time from first to last. For example, first compare the earliest heart rate decline time T sleep2 with the potential sleep time T sleep1 , and if the earliest heart rate decline time T sleep2 does not meet the conditions, continue to compare the next earliest heart rate decline time T sleep2 with the potential sleep time T sleep1 The comparison is performed until a heart rate slippage time T sleep2 that satisfies the condition is found to appear, and the heart rate slippage time T sleep2 that satisfies the condition can be taken as the sleep-onset time T sleep .
步骤111,智能穿戴设备200基于睡眠起始时刻T start、入睡时刻T sleep及动作事件时间序列确定睡眠潜伏期。 Step 111 , the smart wearable device 200 determines the sleep latency based on the sleep start time T start , the sleep time T sleep and the action event time sequence.
具体地,智能穿戴设备200获取到睡眠起始时刻T start及入睡时刻T sleep后,可以进一步判断是否存在与动作事件对应的时刻。 Specifically, after acquiring the sleep start time T start and the sleep time T sleep , the smart wearable device 200 can further determine whether there is a time corresponding to the action event.
若智能穿戴设备200没有接收到移动终端100发送的动作事件时间序列,则可以判断不存在与动作事件对应的时刻,由此可以基于睡眠起始时刻T start及入睡时刻T sleep确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T startIf the smart wearable device 200 does not receive the action event time sequence sent by the mobile terminal 100, it can be judged that there is no time corresponding to the action event, and thus the sleep latency can be determined based on the sleep start time T start and the sleep time T sleep , for example Sexual, sleep latency = T sleep - T start .
若智能穿戴设备200接收到移动终端100发送的动作事件时间序列,则可以判断存在与动作事件对应的时刻,由此可以基于睡眠起始时刻T start、入睡时刻T sleep及上述动作事件时间序列中的与动作事件对应的时刻确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T start-T active,其中,该T active用于标识用户在睡眠起始时刻与入睡时刻之间的活动时长,该T active可以由上述动作事件时间序列中的与动作事件对应的时刻确定。 If the smart wearable device 200 receives the action event time sequence sent by the mobile terminal 100, it can determine that there is a time corresponding to the action event, and thus can be based on the sleep start time T start , the sleep time T sleep and the above action event time sequence The sleep latency is determined at the time corresponding to the action event, exemplarily, sleep latency=T sleep -T start -T active , where T active is used to identify the user's activity duration between the sleep start time and the sleep time, The T active may be determined by the time corresponding to the action event in the above-mentioned action event time sequence.
现结合图7进行说明,如图7所示,用户在00:31熄灯准备开始睡觉,该00:31时刻对应T start。10分钟后,也就是00:41,用户再次拿起手机开始看小说,该00:41时刻对应拿起事件1时刻T pickup1,15分钟后,也就是00:56,用户放下手机再次尝试入睡,该00:56时刻对应放下事件1时刻T putdown1,8分钟后,也就是01:04,用户再次拿起手机看小说,该01:04时刻对应拿起事件2时刻T pickup2,20分钟后,也就是01:24,用户放下手机再次准备入睡,该01:24时刻对应放下事件2时刻T putdown2,5分钟后,也就是01:29,用户睡着,该01:29时刻对应入睡时刻T sleep。在上述过程中,用户拥有睡眠意图的时间段分别为00:31-00:41、00:56-01:04及01:24-01:29。因此,睡眠潜伏期为T sleep-T start-[(T putdown1-T pickup1)+(T putdown2-T pickup2)],其中,T active=(T putdown1-T pickup1)+(T putdown2-T pickup2)。 Description will now be made with reference to FIG. 7 . As shown in FIG. 7 , the user turns off the lights at 00:31 and prepares to start sleeping, and the 00:31 time corresponds to T start . 10 minutes later, that is, 00:41, the user picks up the phone again and starts reading the novel. The 00:41 time corresponds to the pickup event 1 time T pickup1 . After 15 minutes, that is, 00:56, the user puts down the phone and tries to fall asleep again. The 00:56 time corresponds to the time T putdown1 of the drop event 1. After 8 minutes, that is, 01:04, the user picks up the mobile phone again to read the novel. The 01:04 time corresponds to the time T pickup2 of the pick-up event 2. After 20 minutes, the same At 01:24, the user puts down the mobile phone and prepares to fall asleep again. The 01:24 time corresponds to the time T putdown2 of the drop event 2. After 5 minutes, that is, 01:29, the user falls asleep, and the 01:29 time corresponds to the sleep time T sleep . In the above process, the time periods when the user has the sleep intention are 00:31-00:41, 00:56-01:04, and 01:24-01:29, respectively. Therefore, the sleep latency is T sleep -T start -[(T putdown1 -T pickup1 )+(T putdown2 -T pickup2 )], where T active =(T putdown1 -T pickup1 )+(T putdown2 -T pickup2 ).
步骤112,智能穿戴设备200基于睡眠潜伏期进行睡眠提示。Step 112, the smart wearable device 200 performs a sleep reminder based on the sleep latency.
具体地,智能穿戴设备200获取到睡眠潜伏期后,可以将该睡眠潜伏期与预设的睡眠潜伏期阈值进行比较。Specifically, after acquiring the sleep latency, the smart wearable device 200 may compare the sleep latency with a preset sleep latency threshold.
若计算获得的睡眠潜伏期大于预设的睡眠潜伏期阈值,则可以认为用户存在睡眠障碍,可以在智能穿戴设备200的显示屏上显示相关提示,以提醒用户存在睡眠障碍,可以改变现有的作息习惯,以提高睡眠质量。If the calculated sleep latency is greater than the preset sleep latency threshold, it can be considered that the user has a sleep disorder, and relevant prompts can be displayed on the display screen of the smart wearable device 200 to remind the user that there is a sleep disorder, and the existing work and rest habits can be changed. , to improve sleep quality.
可选地,智能穿戴设备200确定用户存在睡眠障碍后,还可以发送指示消息给移动终端100,由此可以使得移动终端100在收到该指示消息后,可以唤醒对应的应用程序,例如,健康APP,以使得该应用程序可以向用户推送相关的健康知识,例如,作息习惯、饮食及睡姿等。Optionally, after determining that the user has a sleep disorder, the smart wearable device 200 can also send an indication message to the mobile terminal 100, so that the mobile terminal 100 can wake up the corresponding application after receiving the indication message, for example, health APP, so that the application can push relevant health knowledge to the user, such as work and rest habits, diet and sleeping position, etc.
可选地,智能穿戴设备200确定用户存在睡眠障碍后,还可以对用户的居住环境进行调整,以给用户营造良好的睡眠环境,例如,可以预先设置睡眠时刻,在该睡眠时刻提醒用户可以准备睡眠,可以在该睡眠时刻将灯光调整至预设的亮度(例如,智能灯具的亮度进行调整),也可以将当前的声源的音量降低或者关闭,例如,降低智 能音箱的音量或者关闭智能音箱,由此可以营造良好的睡眠氛围,有助用户尽快入睡,进而提高用户的睡眠质量。Optionally, after determining that the user has a sleep disorder, the smart wearable device 200 can also adjust the user's living environment to create a good sleeping environment for the user. Sleep, you can adjust the light to the preset brightness at the sleep moment (for example, adjust the brightness of the smart lamp), or you can lower or turn off the volume of the current sound source, for example, lower the volume of the smart speaker or turn off the smart speaker , thereby creating a good sleeping atmosphere, helping the user to fall asleep as soon as possible, thereby improving the user's sleep quality.
本实施例中,通过移动终端监测用户的动作事件,由此对用户动作的时刻进行记录,由该动作时刻确定用户的动作事件的时长,并基于该动作事件的时长对睡眠潜伏期进行估算,可以提高对睡眠潜伏期计算的准确性。In this embodiment, the user's action event is monitored by the mobile terminal, so that the moment of the user's action is recorded, the duration of the user's action event is determined from the action moment, and the sleep latency is estimated based on the duration of the action event. Improve the accuracy of sleep latency calculations.
如图8所示为本申请实施例提供的睡眠评估方法另一个实施例的流程示意图,包括:FIG. 8 is a schematic flowchart of another embodiment of the sleep assessment method provided by the embodiment of the present application, including:
步骤201,响应于用户的操作,移动终端100关闭智能家居设备300。 Step 201, in response to the user's operation, the mobile terminal 100 turns off the smart home device 300.
具体地,用户可以在移动终端100的显示界面上进行关灯操作,以关闭智能家居设备300(例如,智能灯具)。响应于用户的关灯操作,移动终端100可以关闭智能家居设备300。由此可以让当前环境进入熄灯状态,有利于用户尽快进入睡眠。Specifically, the user may perform a light-off operation on the display interface of the mobile terminal 100 to turn off the smart home device 300 (eg, smart lamps). In response to the user's light-off operation, the mobile terminal 100 may turn off the smart home device 300 . In this way, the current environment can be turned off, which is beneficial for the user to go to sleep as soon as possible.
步骤202,移动终端100开启摄像头193,获取图像,以识别用户的姿势。In step 202, the mobile terminal 100 turns on the camera 193, and acquires an image, so as to recognize the gesture of the user.
具体地,当移动终端100检测到用户关闭智能家居设备300的操作后,可以开启摄像头193,以获取用户的图像,由此可以识别出用户的姿势,例如,用户是否处于躺下的姿势,进而可以确定用户是否准备睡眠。Specifically, when the mobile terminal 100 detects the user's operation of turning off the smart home device 300, the camera 193 can be turned on to obtain an image of the user, thereby identifying the user's posture, for example, whether the user is in a lying posture, and then It can be determined whether the user is ready to sleep.
进一步地,移动终端100还可以持续获取用户的影像,例如,移动终端100可以通过摄像头193获取用户在预设时间段(例如,5分钟)内的姿势。若移动终端100判断用户在该预设时间段内一直处于静卧姿势,则可以记录用户躺下的起始时刻,也就是睡眠起始时刻T start。示例性的,该睡眠起始时刻T start可以是移动终端100识别出用户姿势的时刻。 Further, the mobile terminal 100 may also continuously acquire images of the user. For example, the mobile terminal 100 may acquire the user's posture within a preset time period (eg, 5 minutes) through the camera 193 . If the mobile terminal 100 determines that the user has been in a still-lying position within the preset time period, the mobile terminal 100 may record the start time of the user lying down, that is, the sleep start time T start . Exemplarily, the sleep start time T start may be the time when the mobile terminal 100 recognizes the user's gesture.
步骤203,移动终端100监测用户的动作事件。Step 203, the mobile terminal 100 monitors the user's action event.
具体地,该动作事件可以包括拿起事件和放下事件。示例性的,若用户拿起移动终端100,则该事件为拿起事件;若用户放下移动终端100,则该事件为放下事件。其中,该拿起事件可以用于识别用户正在活动中,也就是说,用户暂时没有睡眠意向;该放下事件可以用于识别用户准备入睡,也就是说,用户已有睡眠意向。Specifically, the action event may include a pick-up event and a put-down event. Exemplarily, if the user picks up the mobile terminal 100, the event is a pick-up event; if the user puts down the mobile terminal 100, the event is a put-down event. The pick-up event can be used to identify that the user is active, that is, the user has no sleep intention temporarily; the put-down event can be used to identify that the user is about to fall asleep, that is, the user has a sleep intention.
在具体实现时,上述动作事件可以通过移动终端100中的加速度传感器180E进行识别。During specific implementation, the above-mentioned action events may be identified by the acceleration sensor 180E in the mobile terminal 100 .
可选地,上述动作事件还可以与移动终端100的解屏事件和锁屏事件对应。其中,解屏事件可以与拿起事件对应,该解屏事件可以由用户的解屏操作触发,示例性的,用户可以在移动终端100的屏幕上进行解锁操作,例如,输入密码或者指纹解锁。响应于用户的解锁操作,移动终端100触发解屏事件,对屏幕进行解锁,由此可以确定用户已拿起移动终端100。锁屏事件可以与放下事件对应,该锁屏事件可以由用户的锁屏操作触发,示例性的,用户也可以在移动终端100的屏幕上进行锁屏操作,例如,按下锁屏键。响应于用户的锁屏操作,移动终端100触发锁屏事件,对屏幕进行锁屏,由此可以确定用户已放下移动终端100。Optionally, the above-mentioned action event may also correspond to a screen unlocking event and a screen locking event of the mobile terminal 100 . The unlocking event may correspond to a pick-up event, and the unlocking event may be triggered by a user's unlocking operation. Exemplarily, the user may perform an unlocking operation on the screen of the mobile terminal 100, for example, by entering a password or fingerprint to unlock. In response to the user's unlocking operation, the mobile terminal 100 triggers an unlocking event to unlock the screen, so that it can be determined that the user has picked up the mobile terminal 100 . The screen lock event may correspond to a drop event, and the screen lock event may be triggered by a user's screen lock operation. Exemplarily, the user may also perform a screen lock operation on the screen of the mobile terminal 100, for example, press a screen lock key. In response to the user's screen-locking operation, the mobile terminal 100 triggers a screen-locking event to lock the screen, whereby it can be determined that the user has put down the mobile terminal 100 .
可选地,上述动作事件还可以由智能穿戴设备201进行识别。示例性的,该智能穿戴201可以是智能眼镜。通过智能眼镜可以检测移动终端100的光线,并可以将动作事件与光线对应。若智能眼镜检测到存在移动终端100的光线,则可以确定当前事件为拿起事件,也就是说,用户正在使用移动终端100;若智能眼镜检测到移动终端 100的光线消失,则可以确定当前事件为放下事件,也就是说,用户正在放下移动终端100。智能穿戴设备201获取到拿起事件或放下事件后,可以将上述拿起事件信息和放下事件信息发送给移动终端100。Optionally, the above-mentioned action event may also be identified by the smart wearable device 201 . Exemplarily, the smart wearable 201 may be smart glasses. The light of the mobile terminal 100 can be detected by the smart glasses, and the action event can be corresponding to the light. If the smart glasses detect that the light of the mobile terminal 100 exists, it can be determined that the current event is a pick-up event, that is, the user is using the mobile terminal 100; if the smart glasses detect that the light of the mobile terminal 100 disappears, it can be determined that the current event is For a drop event, that is, the user is dropping the mobile terminal 100 . After acquiring the pick-up event or the put-down event, the smart wearable device 201 can send the pick-up event information and the put-down event information to the mobile terminal 100 .
步骤204,移动终端100记录与动作事件对应的时刻,生成动作事件时间序列。Step 204, the mobile terminal 100 records the time corresponding to the action event, and generates a time series of the action event.
具体地,用户可能存在多次拿起和放下移动终端100的动作,也就是说,存在多个拿起事件和放下事件。因此,当移动终端100监测到拿起事件或放下事件后,可以记录下与该拿起事件或放下事件对应的时刻,由此可以得到两个动作事件时间序列,例如,拿起事件时间序列及放下事件时间序列。Specifically, the user may have actions to pick up and put down the mobile terminal 100 multiple times, that is, there are multiple pick up events and put down events. Therefore, after the mobile terminal 100 monitors the pick-up event or the drop event, it can record the time corresponding to the pick-up event or the drop event, thereby obtaining two action event time series, for example, the pick-up event time series and the Drop the event time series.
其中,上述拿起事件时间序列包括所有与拿起事件对应的时刻。上述放下事件时间序列包括所有与放下事件对应的时刻。Wherein, the above pick-up event time sequence includes all the moments corresponding to the pick-up event. The above-mentioned drop event time series includes all the moments corresponding to the drop events.
步骤205,移动终端100监测中断事件,确定中断时长。In step 205, the mobile terminal 100 monitors the interruption event and determines the interruption duration.
具体地,中断事件可以包括用户起床、喝水、开灯等活动。示例性的,用户起床可以通过移动终端100的摄像头获取图像进行识别,开灯可以通过用户在移动终端100的显示界面上的开灯操作进行识别,或者通过智能穿戴设备200中的环境光传感器进行识别。Specifically, the interruption event may include activities such as the user getting up, drinking water, and turning on the light. Exemplarily, the user can be identified through the image obtained by the camera of the mobile terminal 100 when he wakes up, and the light can be identified through the user's operation of turning on the light on the display interface of the mobile terminal 100, or through the ambient light sensor in the smart wearable device 200. identify.
若移动终端100监测到中断事件,则可以将中断事件发生的时刻记录为中断时刻T pause,直到用户恢复静卧,例如,通过移动终端100的摄像头识别出用户重新处于静卧状态。此时,可以将用户恢复静卧的时刻记录为中断恢复时刻T resume,则中断时长T interrupt=T resume-T pause。可以理解的是中断事件可以发生多次,因此,可以有多个中断时刻和与其对应的中断恢复时刻。举例来说,假设第一次中断事件的中断时刻为T pause1,第一次中断事件的中断恢复时刻为T resume1,第二次中断事件的中断时刻为T pause2,第二次中断事件的中断恢复时刻为T resume2,则中断时长T interrupt=(T resume1-T pause1)+ If the mobile terminal 100 detects the interruption event, the time when the interruption event occurs may be recorded as the interruption time T pause until the user resumes lying still. For example, the camera of the mobile terminal 100 recognizes that the user is lying still again. At this time, the time when the user resumes to lie still may be recorded as the interruption restoration time T resume , and the interruption duration T interrupt =T resume -T pause . It can be understood that the interruption event may occur multiple times, therefore, there may be multiple interruption moments and corresponding interruption recovery moments. For example, suppose the interruption time of the first interruption event is T pause1 , the interruption recovery time of the first interruption event is T resume1 , the interruption time of the second interruption event is T pause2 , and the interruption restoration time of the second interruption event The time is T resume2 , then the interruption duration T interrupt =(T resume1 -T pause1 )+
(T resume2-T pause2)。 (T resume2 -T pause2 ).
进一步地,移动终端100还可以将中断时长与预设的时长阈值进行比较,若中断时长大于或等于预设的时长阈值,则可以认为用户的睡眠已被打断,需要重新确定睡眠起始时刻T start。示例性的,睡眠起始时刻T start可以为最后一个中断恢复时刻T resume。此时,可以清空步骤204中记录的拿起事件时间序列和放下事件时间序列,并进一步执行步骤203-步骤205,以重新获取拿起事件时间序列和放下事件时间序列。 Further, the mobile terminal 100 can also compare the interruption duration with a preset duration threshold, and if the interruption duration is greater than or equal to the preset duration threshold, it can be considered that the user's sleep has been interrupted, and the sleep start time needs to be re-determined. T start . Exemplarily, the sleep start time T start may be the last interrupt recovery time T resume . At this time, the pick-up event time series and the drop event time series recorded in step 204 can be cleared, and steps 203 to 205 are further performed to obtain the pick-up event time series and the drop event time series again.
步骤206,移动终端100将上述拿起事件时间序列、放下事件时间序列及中断时长T interrupt发送给智能穿戴设备200。 Step 206 , the mobile terminal 100 sends the above-mentioned pick-up event time sequence, drop event time sequence, and interruption duration T interrupt to the smart wearable device 200 .
步骤207,智能穿戴设备200监测用户的体动状况,确定入睡时刻T sleepStep 207 , the smart wearable device 200 monitors the physical movement status of the user, and determines the time to fall asleep T sleep .
具体地,智能穿戴设备200可以通过体动传感器220监测用户的体动状况。其中,体动状况可以反映出用户的体动量,示例性的,当用户的体动量达到预设的阈值时,可以初步认为该用户已经入睡。因此,智能穿戴设备200可以通过体动传感器220对用户的体动量进行判断,若智能穿戴设备200判断用户的体动量小于或等于预设的体动量阈值,则可以记录下该时刻,将该时刻作为入睡时刻T sleepSpecifically, the smart wearable device 200 can monitor the user's body movement status through the body movement sensor 220 . The body movement status may reflect the user's body momentum. Exemplarily, when the user's body momentum reaches a preset threshold, it may be preliminarily considered that the user has fallen asleep. Therefore, the smart wearable device 200 can judge the user's body momentum through the body motion sensor 220. If the smart wearable device 200 judges that the user's body momentum is less than or equal to the preset body momentum threshold, the time can be recorded, and the time As sleep time T sleep .
步骤208,智能穿戴设备200基于睡眠起始时刻T start、入睡时刻T sleep、动作事件时间序列及中断时长T interrupt确定睡眠潜伏期。 Step 208 , the smart wearable device 200 determines the sleep latency based on the sleep start time T start , the sleep time T sleep , the action event time sequence and the interruption duration T interrupt .
具体地,智能穿戴设备200获取到睡眠起始时刻T start及入睡时刻T sleep后,可以进 一步判断是否存在与动作事件对应的时刻及中断时长。 Specifically, after acquiring the sleep start time T start and the sleep time T sleep , the smart wearable device 200 can further determine whether there is a time corresponding to the action event and the interruption duration.
若智能穿戴设备200未接收到移动终端100发送的动作事件时间序列及中断时长,则可以判断不存在与动作事件对应的时刻及中断时长,则可以基于睡眠起始时刻T start及入睡时刻T sleep确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T startIf the smart wearable device 200 does not receive the action event time sequence and the interruption duration sent by the mobile terminal 100, it can be judged that there is no time and interruption duration corresponding to the action event, and it can be determined based on the sleep start time T start and the sleep time T sleep Determine sleep latency, exemplarily, sleep latency = T sleep - T start .
若智能穿戴设备200接收到移动终端100发送的动作事件时间序列,但未接收到中断时长,则可以判断存在与动作事件对应的时刻,但不存在中断时长,则可以基于睡眠起始时刻T start、入睡时刻T sleep及动作事件时间序列中的与动作事件对应的时刻确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T start-T active,其中,该T active用于标识用户在睡眠起始时刻与入睡时刻之间的活动时长。 If the smart wearable device 200 receives the action event time sequence sent by the mobile terminal 100, but does not receive the interruption duration, it can determine that there is a time corresponding to the action event, but there is no interruption duration, then it can be determined based on the sleep start time T start , the time of falling asleep T sleep and the time corresponding to the action event in the action event time sequence to determine the sleep latency, exemplarily, the sleep latency=T sleep -T start -T active , where T active is used to identify the user starting from sleep The duration of the activity between the start time and the sleep time.
若智能穿戴设备200未接收到移动终端100发送的动作事件时间序列,但接收到中断时长,则可以判断不存在与动作事件对应的时刻,但存在中断时长,则可以基于睡眠起始时刻T start、入睡时刻T sleep及中断时长确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T start-T interruptIf the smart wearable device 200 does not receive the action event time sequence sent by the mobile terminal 100, but receives the interruption duration, it can judge that there is no time corresponding to the action event, but there is an interruption duration, then it can be determined based on the sleep start time T start , the sleep time T sleep and the interruption duration determine the sleep latency, exemplarily, the sleep latency=T sleep -T start -T interrupt .
若智能穿戴设备200接收到移动终端100发送的动作事件时间序列及中断时长,则可以判断存在与动作事件对应的时刻,且存在中断时长,则可以基于睡眠起始时刻T start、入睡时刻T sleep、动作事件时间序列中的与动作事件对应的时刻及中断时长确定睡眠潜伏期,示例性的,睡眠潜伏期=T sleep-T start-T active-T interruptIf the smart wearable device 200 receives the action event time sequence and the interruption duration sent by the mobile terminal 100, it can determine that there is a time corresponding to the action event, and there is an interruption duration . . The time corresponding to the action event and the interruption duration in the action event time sequence determine the sleep latency, exemplarily, the sleep latency=T sleep -T start -T active -T interrupt .
步骤209,智能穿戴设备200基于睡眠潜伏期进行睡眠提示。Step 209, the smart wearable device 200 performs a sleep reminder based on the sleep latency.
具体地,智能穿戴设备200获取到睡眠潜伏期后,可以将该睡眠潜伏期与预设的睡眠潜伏期阈值进行比较。Specifically, after acquiring the sleep latency, the smart wearable device 200 may compare the sleep latency with a preset sleep latency threshold.
若计算获得的睡眠潜伏期大于预设的睡眠潜伏期阈值,则可以认为用户存在睡眠障碍,可以在智能穿戴设备200的显示屏上显示相关提示,以提醒用户存在睡眠障碍,可以改变现有的作息习惯,以提高睡眠质量。If the calculated sleep latency is greater than the preset sleep latency threshold, it can be considered that the user has a sleep disorder, and relevant prompts can be displayed on the display screen of the smart wearable device 200 to remind the user that there is a sleep disorder, and the existing work and rest habits can be changed. , to improve sleep quality.
可选地,智能穿戴设备200确定用户存在睡眠障碍后,还可以发送指示消息给移动终端100,由此可以使得移动终端100在收到该指示消息后,可以唤醒对应的应用程序,例如,健康APP,以使得该应用程序可以向用户推送相关的健康知识,例如,作息习惯、饮食及睡姿等。Optionally, after determining that the user has a sleep disorder, the smart wearable device 200 can also send an indication message to the mobile terminal 100, so that the mobile terminal 100 can wake up the corresponding application after receiving the indication message, for example, health APP, so that the application can push relevant health knowledge to the user, such as work and rest habits, diet and sleeping position, etc.
可选地,智能穿戴设备200确定用户存在睡眠障碍后,还可以对用户的居住环境进行调整,以给用户营造良好的睡眠环境,例如,可以预先设置睡眠时刻,在该睡眠时刻提醒用户可以准备睡眠,可以在该睡眠时刻将灯光调整至预设的亮度(例如,智能灯具的亮度进行调整),也可以将当前的声源的音量降低或者关闭,例如,降低智能音箱的音量或者关闭智能音箱,由此可以营造良好的睡眠氛围,有助用户尽快入睡,进而提高用户的睡眠质量。Optionally, after determining that the user has a sleep disorder, the smart wearable device 200 can also adjust the user's living environment to create a good sleeping environment for the user. Sleep, you can adjust the light to the preset brightness at the sleep moment (for example, adjust the brightness of the smart lamp), or you can lower or turn off the volume of the current sound source, for example, lower the volume of the smart speaker or turn off the smart speaker , thereby creating a good sleeping atmosphere, helping the user to fall asleep as soon as possible, thereby improving the user's sleep quality.
本实施例中,通过移动终端监测用户的动作事件及活动时间,由此对用户动作的时刻及活动的时刻进行记录,由该动作时刻确定用户的动作事件的时长,由该活动时刻确定用户的中断时长,基于上述动作事件的时长及中断时长对睡眠潜伏期进行估算,可以提高对睡眠潜伏期计算的准确性。In this embodiment, the user's action event and activity time are monitored by the mobile terminal, thereby recording the user's action time and activity time, the action time determines the user's action event duration, and the activity time determines the user's For the interruption duration, the sleep latency is estimated based on the duration of the above-mentioned action event and the interruption duration, which can improve the accuracy of the calculation of the sleep latency.
图9为本申请睡眠评估装置一个实施例的结构示意图,如图9所示,上述睡眠评估装置900应用于可穿戴设备,该可穿戴设备与移动终端建立通信连接,可以包括: 第一获取模块910、发送模块920、第二获取模块930及计算模块940;FIG. 9 is a schematic structural diagram of an embodiment of a sleep evaluation device of the present application. As shown in FIG. 9 , the above-mentioned sleep evaluation device 900 is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, which may include: a first acquisition module 910, a sending module 920, a second obtaining module 930, and a computing module 940;
第一获取模块910,用于获取第一信息,基于第一信息确定用户的睡眠起始时刻;a first obtaining module 910, configured to obtain first information, and determine the user's sleep start time based on the first information;
发送模块920,用于发送第一指令给移动终端,第一指令用于指示移动终端监测用户的动作事件;a sending module 920, configured to send a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the action event of the user;
第二获取模块930,用于获取第二信息,基于第二信息确定用户的入睡时刻;The second obtaining module 930 is configured to obtain second information, and determine the user's sleep time based on the second information;
计算模块940,用于基于睡眠起始时刻及入睡时刻确定睡眠潜伏期。The computing module 940 is configured to determine the sleep latency based on the sleep start time and the sleep onset time.
其中一种可能的实现方式中,第一信息包括用户心率和环境状态,上述第一获取模块910包括:第一监测单元911、第一判断单元912及第一获取单元913;In one possible implementation manner, the first information includes the user's heart rate and the environmental state, and the first obtaining module 910 includes: a first monitoring unit 911 , a first judging unit 912 , and a first obtaining unit 913 ;
第一监测单元911,用于持续监测用户心率和环境状态;The first monitoring unit 911 is used to continuously monitor the user's heart rate and environmental status;
第一判断单元912,用于判断用户心率和环境状态是否满足预设条件;The first judgment unit 912 is used for judging whether the user's heart rate and the environmental state meet the preset conditions;
第一获取单元913,用于当任一时刻用户心率和环境状态均满足预设条件时,确定时刻为睡眠起始时刻。The first obtaining unit 913 is configured to determine the time as the sleep start time when the user's heart rate and the environmental state at any time meet the preset conditions.
其中一种可能的实现方式中,第二信息包括用户体动状况及用户心率变化,上述第二获取模块930包括:第二监测单元931、第二判断单元932及第二获取单元933;In one possible implementation manner, the second information includes the user's body movement status and the change of the user's heart rate, and the second obtaining module 930 includes: a second monitoring unit 931 , a second judging unit 932 , and a second obtaining unit 933 ;
第二监测单元931,用于持续监测用户体动状况及用户心率变化;The second monitoring unit 931 is used to continuously monitor the user's body movement status and the change of the user's heart rate;
第二判断单元932,用于判断用户体动状况是否满足预设条件;a second judgment unit 932, configured to judge whether the user's body movement condition satisfies a preset condition;
第二获取单元933,用于当任一时刻用户体动状况满足预设条件时,确定时刻为潜在入睡时刻;基于用户心率变化获取心率滑坡时间序列,心率滑坡时间序列包括一个或多个心率滑坡时刻;将潜在入睡时刻与心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。The second obtaining unit 933 is configured to determine that the moment is a potential sleep moment when the user's body movement condition satisfies a preset condition at any moment; and obtain a heart rate slope time series based on the change of the user's heart rate, where the heart rate slope time series includes one or more heart rate slopes time; compare the potential sleep time with one or more heart rate landslide times in the heart rate landslide time series, and determine the sleep time according to the comparison result.
其中一种可能的实现方式中,上述装置900还包括:接收模块950;In one possible implementation manner, the above-mentioned apparatus 900 further includes: a receiving module 950;
接收模块950,用于接收移动终端发送的用户动作信息,用户动作信息包括动作事件时间序列,动作事件时间序列包括多个动作事件时刻,每个动作事件时刻与用户的动作事件一一对应。The receiving module 950 is configured to receive user action information sent by the mobile terminal, the user action information includes an action event time sequence, the action event time sequence includes a plurality of action event moments, and each action event moment corresponds to a user's action event one-to-one.
其中一种可能的实现方式中,上述计算模块940还用于基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻确定。In one possible implementation manner, the above-mentioned calculation module 940 is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence .
其中一种可能的实现方式中,用户活动信息还包括中断时长,上述计算模块940还用于基于睡眠起始时刻、入睡时刻及用户活动时长确定睡眠潜伏期,其中,用户活动时长由动作事件时间序列中的多个动作事件时刻及中断时长确定。In one possible implementation manner, the user activity information further includes the interruption duration, and the above-mentioned calculation module 940 is further configured to determine the sleep latency based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by the action event time sequence The time and interruption duration of multiple action events in are determined.
其中一种可能的实现方式中,上述装置900还包括:提示模块960;In one possible implementation manner, the above-mentioned apparatus 900 further includes: a prompting module 960;
提示模块960,用于基于睡眠潜伏期进行睡眠提示。The prompting module 960 is configured to perform sleep prompting based on the sleep latency.
图10为本申请睡眠评估装置另一个实施例的结构示意图,如图10所示,上述睡眠评估装置1000应用于移动终端,该移动终端与可穿戴设备建立通信连接,可以包括:接收模块1010、第一记录模块1020及第一发送模块1030;FIG. 10 is a schematic structural diagram of another embodiment of the sleep evaluation apparatus of the present application. As shown in FIG. 10 , the above-mentioned sleep evaluation apparatus 1000 is applied to a mobile terminal, and the mobile terminal establishes a communication connection with a wearable device, and may include: a receiving module 1010, a first recording module 1020 and a first sending module 1030;
接收模块1010,用于接收可穿戴设备发送的第一指令,第一指令用于指示移动终端监测用户的动作事件;A receiving module 1010, configured to receive a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor the user's action event;
第一记录模块1020,用于监测用户的动作事件,记录与动作事件对应的时刻,生成动作事件时间序列,其中,动作事件时间序列包括多个动作事件时刻;The first recording module 1020 is used to monitor the action events of the user, record the moments corresponding to the action events, and generate an action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
第一发送模块1030,用于将动作事件时间序列发送给可穿戴设备。The first sending module 1030 is configured to send the action event time sequence to the wearable device.
其中一种可能的实现方式中,上述装置1000还包括:第二记录模块1040及第二发送模块1050;In one possible implementation manner, the above-mentioned apparatus 1000 further includes: a second recording module 1040 and a second sending module 1050;
第二记录模块1040,用于监测用户的活动事件,记录与活动事件对应的时刻,基于与活动时间对应的时刻确定中断时长;The second recording module 1040 is used to monitor the activity event of the user, record the time corresponding to the activity event, and determine the interruption duration based on the time corresponding to the activity time;
第二发送模块1050,用于将中断时长发送给可穿戴设备。The second sending module 1050 is configured to send the interruption duration to the wearable device.
其中一种可能的实现方式中,移动终端与智能照明设备建立通信连接,上述装置1000还包括:检测模块1060、识别模块1070及启动模块1080;In one possible implementation manner, the mobile terminal establishes a communication connection with the intelligent lighting device, and the above-mentioned apparatus 1000 further includes: a detection module 1060, an identification module 1070, and a startup module 1080;
检测模块1060,用于检测到用户关闭智能照明设备的操作;A detection module 1060, configured to detect the operation of the user to turn off the smart lighting device;
识别模块1070,用于响应于检测到的操作,对用户的姿势进行识别;A recognition module 1070, configured to recognize the gesture of the user in response to the detected operation;
启动模块1080,用于基于识别结果启动对用户的动作事件的监测。The starting module 1080 is configured to start monitoring the action event of the user based on the identification result.
应理解以上图9和图10所示的睡眠评估装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of each module of the sleep evaluation apparatus shown in FIG. 9 and FIG. 10 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware. For example, the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, and can also be implemented independently. In the implementation process, each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对移动终端100及可穿戴设备200的结构限定。在本申请另一些实施例中,移动终端100及可穿戴设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation on the mobile terminal 100 and the wearable device 200 . In other embodiments of the present application, the mobile terminal 100 and the wearable device 200 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
可以理解的是,上述移动终端100及可穿戴设备200等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned mobile terminal 100 and the wearable device 200 etc. include corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
本申请实施例可以根据上述方法示例对上述终端设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模 块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, functional modules can be divided into the above-mentioned terminal device and the like according to the above-mentioned method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (22)

  1. 一种睡眠评估方法,应用于可穿戴设备,所述可穿戴设备与移动终端建立通信连接,其特征在于,所述方法包括:A sleep assessment method is applied to a wearable device, and the wearable device establishes a communication connection with a mobile terminal, wherein the method comprises:
    获取第一信息,基于所述第一信息确定用户的睡眠起始时刻;acquiring first information, and determining the sleep start time of the user based on the first information;
    发送第一指令给所述移动终端,所述第一指令用于指示所述移动终端监测用户的动作事件;sending a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the user's action event;
    获取第二信息,基于所述第二信息确定用户的入睡时刻;acquiring second information, and determining the user's sleep time based on the second information;
    基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期。A sleep latency is determined based on the sleep onset time and the sleep onset time.
  2. 根据权利要求1所述的方法,其特征在于,所述第一信息包括用户心率和环境状态,所述获取第一信息,基于所述第一信息确定用户的睡眠起始时刻包括:The method according to claim 1, wherein the first information includes a user's heart rate and an environmental state, and the acquiring the first information and determining the sleep start time of the user based on the first information comprises:
    持续监测所述用户心率和所述环境状态;Continuously monitor the user's heart rate and the environmental state;
    判断所述用户心率和所述环境状态是否满足预设条件;Determine whether the user's heart rate and the environmental state meet preset conditions;
    当任一时刻所述用户心率和所述环境状态均满足预设条件时,确定所述时刻为睡眠起始时刻。When both the user's heart rate and the environmental state at any moment meet the preset conditions, the moment is determined to be the sleep start moment.
  3. 根据权利要求1所述的方法,其特征在于,所述第二信息包括用户体动状况及用户心率变化,所述基于所述第二信息确定用户的入睡时刻包括:The method according to claim 1, wherein the second information includes a user's body movement status and a change in the user's heart rate, and the determining the user's sleep time based on the second information includes:
    持续监测所述用户体动状况及所述用户心率变化;Continuously monitor the user's physical activity status and the user's heart rate change;
    判断所述用户体动状况是否满足预设条件;judging whether the user's body movement status satisfies a preset condition;
    当任一时刻所述用户体动状况满足预设条件时,确定所述时刻为潜在入睡时刻;When the user's body movement condition satisfies a preset condition at any time, determining that the time is a potential time to fall asleep;
    基于所述用户心率变化获取心率滑坡时间序列,所述心率滑坡时间序列包括一个或多个心率滑坡时刻;Obtaining a heart rate landslide time series based on the change in the user's heart rate, where the heart rate landslide time series includes one or more heart rate landslide moments;
    将所述潜在入睡时刻与所述心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。The potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述获取第二信息之前,所述方法还包括:The method according to any one of claims 1-3, wherein before the acquiring the second information, the method further comprises:
    接收所述移动终端发送的用户动作信息,所述用户动作信息包括动作事件时间序列,所述动作事件时间序列包括多个动作事件时刻,每个所述动作事件时刻与用户的动作事件一一对应。Receive user action information sent by the mobile terminal, where the user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, each of which corresponds to a user's action event one-to-one .
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期包括:The method according to claim 4, wherein the determining the sleep latency based on the sleep start time and the sleep onset time comprises:
    基于所述睡眠起始时刻、所述入睡时刻及用户活动时长确定睡眠潜伏期,其中,所述用户活动时长由所述动作事件时间序列中的多个动作事件时刻确定。The sleep latency is determined based on the sleep start time, the sleep-onset time and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
  6. 根据权利要求4所述的方法,其特征在于,所述用户活动信息还包括中断时长,所述基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期包括:The method according to claim 4, wherein the user activity information further comprises an interruption duration, and the determining the sleep latency based on the sleep start time and the sleep onset time comprises:
    基于所述睡眠起始时刻、所述入睡时刻及用户活动时长确定睡眠潜伏期,其中,所述用户活动时长由所述动作事件时间序列中的多个动作事件时刻及中断时长确定。The sleep latency is determined based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments and interruption durations in the action event time sequence.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期之后,所述方法还包括:The method according to any one of claims 1-6, wherein after the sleep latency is determined based on the sleep start time and the sleep onset time, the method further comprises:
    基于所述睡眠潜伏期进行睡眠提示。Sleep cues are made based on the sleep latency.
  8. 一种睡眠评估方法,应用于移动终端,所述移动终端与可穿戴设备建立通信连接,其特征在于,所述方法包括:A sleep assessment method is applied to a mobile terminal, and the mobile terminal establishes a communication connection with a wearable device, wherein the method comprises:
    接收所述可穿戴设备发送的第一指令,所述第一指令用于指示所述移动终端监测用户的动作事件;receiving a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor a user's action event;
    监测用户的动作事件,记录与所述动作事件对应的时刻,生成动作事件时间序列,其中,所述动作事件时间序列包括多个动作事件时刻;Monitoring the user's action event, recording the time corresponding to the action event, and generating an action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
    将所述动作事件时间序列发送给所述可穿戴设备。Sending the action event time series to the wearable device.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    监测用户的活动事件,记录与所述活动事件对应的时刻,基于与所述活动时间对应的时刻确定中断时长;Monitoring the activity event of the user, recording the time corresponding to the activity event, and determining the interruption duration based on the time corresponding to the activity time;
    将所述中断时长发送给所述可穿戴设备。Send the interruption duration to the wearable device.
  10. 根据权利要求8所述的方法,其特征在于,所述移动终端与智能照明设备建立通信连接,所述监测用户的动作事件之前,还包括:The method according to claim 8, wherein the mobile terminal establishes a communication connection with the smart lighting device, and before the monitoring of the user's action event, further comprises:
    检测到用户关闭所述智能照明设备的操作;detecting that the user's operation to turn off the smart lighting device;
    响应于检测到的所述操作,对用户的姿势进行识别;In response to the detected operation, recognizing the gesture of the user;
    基于识别结果启动对用户的动作事件的监测。Based on the recognition result, monitoring of the user's action event is initiated.
  11. 一种可穿戴设备,所述可穿戴设备与移动终端建立通信连接,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述可穿戴设备从所述存储器中读取所述指令,以使得所述可穿戴设备执行以下步骤:A wearable device, wherein the wearable device establishes a communication connection with a mobile terminal, characterized by comprising: a memory, wherein the memory is used for storing computer program code, the computer program code includes instructions, when the wearable device is The instructions are read from the memory to cause the wearable device to perform the following steps:
    获取第一信息,基于所述第一信息确定用户的睡眠起始时刻;acquiring first information, and determining the sleep start time of the user based on the first information;
    发送第一指令给所述移动终端,所述第一指令用于指示所述移动终端监测用户的动作事件;sending a first instruction to the mobile terminal, where the first instruction is used to instruct the mobile terminal to monitor the user's action event;
    获取第二信息,基于所述第二信息确定用户的入睡时刻;acquiring second information, and determining the user's sleep time based on the second information;
    基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期。A sleep latency is determined based on the sleep onset time and the sleep onset time.
  12. 根据权利要求11所述的可穿戴设备,其特征在于,所述第一信息包括用户心率和环境状态,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行获取第一信息,基于所述第一信息确定用户的睡眠起始时刻的步骤包括:The wearable device according to claim 11, wherein the first information includes a user's heart rate and an environmental state, and when the instruction is executed by the wearable device, the wearable device executes to obtain the first information , the step of determining the user's sleep start time based on the first information includes:
    持续监测所述用户心率和所述环境状态;Continuously monitor the user's heart rate and the environmental state;
    判断所述用户心率和所述环境状态是否满足预设条件;Determine whether the user's heart rate and the environmental state meet preset conditions;
    当任一时刻所述用户心率和所述环境状态均满足预设条件时,确定所述时刻为睡眠起始时刻。When both the user's heart rate and the environmental state at any moment meet the preset conditions, the moment is determined to be the sleep start moment.
  13. 根据权利要求11所述的可穿戴设备,其特征在于,所述第二信息包括用户体动状况及用户心率变化,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行基于所述第二信息确定用户的入睡时刻的步骤包括:The wearable device according to claim 11, wherein the second information includes a user's body movement status and a change in the user's heart rate, and when the instruction is executed by the wearable device, the wearable device causes the wearable device to execute based on The step of determining the time of falling asleep of the user by the second information includes:
    持续监测所述用户体动状况及所述用户心率变化;Continuously monitor the user's physical activity status and the user's heart rate change;
    判断所述用户体动状况是否满足预设条件;judging whether the user's body movement status satisfies a preset condition;
    当任一时刻所述用户体动状况满足预设条件时,确定所述时刻为潜在入睡时刻;When the user's body movement condition satisfies a preset condition at any time, determining that the time is a potential time to fall asleep;
    基于所述用户心率变化获取心率滑坡时间序列,所述心率滑坡时间序列包括一个 或多个心率滑坡时刻;Obtaining a heart rate landslide time series based on the change in the user's heart rate, where the heart rate landslide time series includes one or more heart rate landslide moments;
    将所述潜在入睡时刻与所述心率滑坡时间序列中的一个或多个心率滑坡时刻进行比较,根据比较结果确定入睡时刻。The potential sleep time is compared with one or more heart rate slide times in the heart rate slide time series, and the sleep time is determined according to the comparison result.
  14. 根据权利要求11-13任一项所述的可穿戴设备,其特征在于,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行获取第二信息的步骤之前,还执行以下步骤:The wearable device according to any one of claims 11 to 13, wherein when the instruction is executed by the wearable device, the wearable device further executes the following steps before executing the step of acquiring the second information step:
    接收所述移动终端发送的用户动作信息,所述用户动作信息包括动作事件时间序列,所述动作事件时间序列包括多个动作事件时刻,每个所述动作事件时刻与用户的动作事件一一对应。Receive user action information sent by the mobile terminal, where the user action information includes an action event time sequence, and the action event time sequence includes a plurality of action event moments, each of which corresponds to a user's action event one-to-one .
  15. 根据权利要求14所述的可穿戴设备,其特征在于,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期的步骤包括:The wearable device according to claim 14, wherein when the instruction is executed by the wearable device, the wearable device causes the wearable device to perform a sleep latency determination based on the sleep start time and the sleep onset time. Steps include:
    基于所述睡眠起始时刻、所述入睡时刻及用户活动时长确定睡眠潜伏期,其中,所述用户活动时长由所述动作事件时间序列中的多个动作事件时刻确定。The sleep latency is determined based on the sleep start time, the sleep-onset time and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments in the action event time sequence.
  16. 根据权利要求14所述的可穿戴设备,其特征在于,所述用户活动信息还包括中断时长,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期的步骤包括:The wearable device according to claim 14, wherein the user activity information further includes an interruption duration, and when the instruction is executed by the wearable device, the wearable device performs execution based on the sleep start The step of determining the sleep latency at the time and the time of falling asleep includes:
    基于所述睡眠起始时刻、所述入睡时刻及用户活动时长确定睡眠潜伏期,其中,所述用户活动时长由所述动作事件时间序列中的多个动作事件时刻及中断时长确定。The sleep latency is determined based on the sleep start time, the sleep-onset time, and the user activity duration, wherein the user activity duration is determined by a plurality of action event moments and interruption durations in the action event time sequence.
  17. 根据权利要求11-16任一项所述的可穿戴设备,其特征在于,所述指令被所述可穿戴设备执行时,使得所述可穿戴设备执行基于所述睡眠起始时刻及所述入睡时刻确定睡眠潜伏期的步骤之后,还执行以下步骤:The wearable device according to any one of claims 11-16, wherein when the instruction is executed by the wearable device, the wearable device causes the wearable device to execute based on the sleep start time and the sleep onset After the step of determining sleep latency at all times, the following steps are also performed:
    基于所述睡眠潜伏期进行睡眠提示。Sleep cues are made based on the sleep latency.
  18. 一种移动终端,所述移动终端与可穿戴设备建立通信连接,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述移动终端从所述存储器中读取所述指令,以使得所述移动终端执行以下步骤:A mobile terminal, wherein the mobile terminal establishes a communication connection with a wearable device, characterized by comprising: a memory, wherein the memory is used for storing computer program codes, and the computer program codes include instructions, when the mobile terminal from the The instruction is read in the memory, so that the mobile terminal performs the following steps:
    接收所述可穿戴设备发送的第一指令,所述第一指令用于指示所述移动终端监测用户的动作事件;receiving a first instruction sent by the wearable device, where the first instruction is used to instruct the mobile terminal to monitor a user's action event;
    监测用户的动作事件,记录与所述动作事件对应的时刻,生成动作事件时间序列,其中,所述动作事件时间序列包括多个动作事件时刻;Monitoring the user's action event, recording the time corresponding to the action event, and generating an action event time sequence, wherein the action event time sequence includes a plurality of action event moments;
    将所述动作事件时间序列发送给所述可穿戴设备。Sending the action event time series to the wearable device.
  19. 根据权利要求18所述的移动终端,其特征在于,所述指令被所述移动终端执行时,使得所述移动终端还执行以下步骤:The mobile terminal according to claim 18, wherein when the instruction is executed by the mobile terminal, the mobile terminal further performs the following steps:
    监测用户的活动事件,记录与所述活动事件对应的时刻,基于与所述活动时间对应的时刻确定中断时长;Monitoring the activity event of the user, recording the time corresponding to the activity event, and determining the interruption duration based on the time corresponding to the activity time;
    将所述中断时长发送给所述可穿戴设备。Send the interruption duration to the wearable device.
  20. 根据权利要求18所述的移动终端,其特征在于,所述移动终端与智能照明设备建立通信连接,所述指令被所述移动终端执行时,使得所述移动终端还执行以下步骤:The mobile terminal according to claim 18, wherein the mobile terminal establishes a communication connection with the smart lighting device, and when the instruction is executed by the mobile terminal, the mobile terminal further performs the following steps:
    检测到用户关闭所述智能照明设备的操作;detecting that the user's operation to turn off the smart lighting device;
    响应于检测到的所述操作,对用户的姿势进行识别;In response to the detected operation, recognizing the gesture of the user;
    基于识别结果启动对用户的动作事件的监测。Based on the recognition result, monitoring of the user's action event is initiated.
  21. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述可穿戴设备上运行时,使得所述可穿戴设备执行如权利要求1-7中任一项所述睡眠评估的方法。A computer-readable storage medium, characterized by comprising computer instructions, when the computer instructions are executed on the wearable device, the wearable device is made to perform any one of claims 1-7. Methods of sleep assessment.
  22. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述移动终端上运行时,使得所述移动终端执行如权利要求8-10中任一项所述睡眠评估的方法。A computer-readable storage medium, characterized by comprising computer instructions, which, when the computer instructions are executed on the mobile terminal, cause the mobile terminal to perform the sleep assessment according to any one of claims 8-10 Methods.
PCT/CN2021/131469 2020-11-23 2021-11-18 Sleep evaluation method, electronic device, and storage medium WO2022105830A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011322218.0 2020-11-23
CN202011322218.0A CN114521878A (en) 2020-11-23 2020-11-23 Sleep evaluation method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2022105830A1 true WO2022105830A1 (en) 2022-05-27

Family

ID=81618747

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/131469 WO2022105830A1 (en) 2020-11-23 2021-11-18 Sleep evaluation method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114521878A (en)
WO (1) WO2022105830A1 (en)

Families Citing this family (1)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060019224A1 (en) * 2004-07-23 2006-01-26 Pics, Inc. Insomnia assessment and treatment device and method
WO2008096307A1 (en) * 2007-02-07 2008-08-14 Philips Intellectual Property & Standards Gmbh Sleep management
US20170094046A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Adjusting alarms based on sleep onset latency
US20180344515A1 (en) * 2017-06-05 2018-12-06 Parker-Hannifin Corporation Thermoregulatory glove and method for producing a convergence in body temperature
CN109328034A (en) * 2016-06-27 2019-02-12 皇家飞利浦有限公司 For determining the determination system and method for the sleep stage of object
CN110584666A (en) * 2019-09-24 2019-12-20 喜临门家具股份有限公司 Sleep latency refining and classifying system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016187429A (en) * 2015-03-30 2016-11-04 パイオニア株式会社 Sleeping guiding device
US10561362B2 (en) * 2016-09-16 2020-02-18 Bose Corporation Sleep assessment using a home sleep system
US10939866B2 (en) * 2017-12-12 2021-03-09 Koninklijke Philips N.V. System and method for determining sleep onset latency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060019224A1 (en) * 2004-07-23 2006-01-26 Pics, Inc. Insomnia assessment and treatment device and method
WO2008096307A1 (en) * 2007-02-07 2008-08-14 Philips Intellectual Property & Standards Gmbh Sleep management
US20170094046A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Adjusting alarms based on sleep onset latency
CN109328034A (en) * 2016-06-27 2019-02-12 皇家飞利浦有限公司 For determining the determination system and method for the sleep stage of object
US20180344515A1 (en) * 2017-06-05 2018-12-06 Parker-Hannifin Corporation Thermoregulatory glove and method for producing a convergence in body temperature
CN110584666A (en) * 2019-09-24 2019-12-20 喜临门家具股份有限公司 Sleep latency refining and classifying system

Also Published As

Publication number Publication date
CN114521878A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
JP7426470B2 (en) Voice activation method and electronic device
CN110989852B (en) Touch screen, electronic equipment and display control method
WO2021213151A1 (en) Display control method and wearable device
CN113691271B (en) Data transmission method and wearable device
WO2022089000A1 (en) File system check method, electronic device, and computer readable storage medium
WO2022156555A1 (en) Screen brightness adjustment method, apparatus, and terminal device
WO2020019355A1 (en) Touch control method for wearable device, and wearable device and system
WO2022151887A1 (en) Sleep monitoring method and related apparatus
WO2022105830A1 (en) Sleep evaluation method, electronic device, and storage medium
WO2023005706A1 (en) Device control method, electronic device, and storage medium
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
CN115022807B (en) Express information reminding method and electronic equipment
WO2022105674A1 (en) Incoming call answering method, electronic device, and storage medium
WO2021204036A1 (en) Sleep risk monitoring method, electronic device and storage medium
CN113918003A (en) Method and device for detecting time length of skin contacting screen and electronic equipment
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
CN113838478A (en) Abnormal event detection method and device and electronic equipment
CN114125144B (en) Method, terminal and storage medium for preventing false touch
CN113364067B (en) Charging precision calibration method and electronic equipment
WO2024055881A1 (en) Clock synchronization method, electronic device, system, and storage medium
CN113509145B (en) Sleep risk monitoring method, electronic device and storage medium
CN114115513B (en) Key control method and key device
WO2023237087A1 (en) Method for predicting fertile window, apparatus and electronic device
CN113380374B (en) Auxiliary motion method based on motion state perception, electronic equipment and storage medium
WO2022105670A1 (en) Display method and terminal

Legal Events

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

Ref document number: 21893977

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21893977

Country of ref document: EP

Kind code of ref document: A1