WO2024088049A1 - Sleep monitoring method and electronic device - Google Patents

Sleep monitoring method and electronic device Download PDF

Info

Publication number
WO2024088049A1
WO2024088049A1 PCT/CN2023/123527 CN2023123527W WO2024088049A1 WO 2024088049 A1 WO2024088049 A1 WO 2024088049A1 CN 2023123527 W CN2023123527 W CN 2023123527W WO 2024088049 A1 WO2024088049 A1 WO 2024088049A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
time point
bed
user
sleep
Prior art date
Application number
PCT/CN2023/123527
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 WO2024088049A1 publication Critical patent/WO2024088049A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • 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/145Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
    • A61B5/1455Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • G04G21/02Detectors of external physical values, e.g. temperature
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06N20/20Ensemble learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/01Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • the present application relates to the field of terminal technology, and in particular to a sleep monitoring method and electronic equipment.
  • insomnia is a symptom of difficulty in falling asleep naturally, for example, difficulty in falling asleep (or difficulty in falling asleep), or difficulty in maintaining deep sleep for a long time (or difficulty in maintaining sleep). Severe and persistent insomnia not only has chronic and long-term physiological consequences on the human body, but also makes the human mind prone to negative emotions such as anxiety and depression, resulting in serious physical and psychological disease burdens. Therefore, it is necessary to diagnose and treat insomnia in a timely manner.
  • Sleep efficiency is usually used as a reference indicator to analyze the user's sleep quality.
  • Sleep efficiency is the ratio of the user's actual total sleep time to the total time in bed, where the total time in bed is the difference between the time the user gets out of bed and the time he or she goes to bed.
  • current electronic devices are unable to accurately and conveniently identify the user's actual actions of getting in and out of bed, and thus are unable to accurately determine the user's time of going to bed and time of getting out of bed. This may result in an overestimation or underestimation of the user's actual sleep efficiency, making it impossible to accurately monitor the user's sleep and accurately analyze the user's sleep quality.
  • the embodiments of the present application provide a sleep monitoring method and electronic device, which can accurately determine the time when a user goes to bed and gets out of bed, thereby improving the accuracy of sleep monitoring.
  • a sleep monitoring method comprising: an electronic device obtains acceleration data of a first electronic device within a monitoring period.
  • the electronic device determines motion data of a user using the first electronic device based on the acceleration data, wherein the motion data includes at least one of activity data, number of steps, and arm movements, and the activity data is used to characterize the user's exercise intensity.
  • the electronic device determines at least two first time points based on the motion data, and the first time points are suspected time points for the user to get in and out of bed. Further, the electronic device determines the time point for the user to go to bed and the time point for the user to get out of bed based on the at least two first time points.
  • the electronic device monitors the user's sleep based on the time point for going to bed and the time point for the user to get out of bed.
  • the electronic device can determine the user's activity data, step count, and one or more types of motion data of the arm motion based on the acceleration data.
  • the electronic device can identify the user's getting in and out of bed motion based on the motion data and determine the suspected time point of the user getting in and out of bed. Further, the electronic device determines the user's bed time and bed-leaving time based on the suspected bed-leaving time. In this way, the electronic device can accurately and quickly determine the user's bed-leaving time and bed-leaving time, thereby improving the accuracy of sleep monitoring.
  • the above-mentioned monitoring period includes multiple monitoring time points
  • the motion data includes motion data of multiple monitoring time points.
  • the electronic device determines at least two first time points based on the motion data, including: for each monitoring time point in the multiple monitoring time points, the electronic device determines the change data of the motion data within a preset time before the monitoring time point. If the change data meets the preset conditions, the electronic device determines that the monitoring time point is the first time point.
  • the motion data since the motion data is used to characterize the movement of the user using the electronic device, the motion data will change during the user's movement.
  • the electronic device can accurately identify the user's getting in and out of bed actions based on the change data of the motion data, and determine the user's suspected getting in and out of bed time point (i.e., the first time point), so as to further determine the user's going to bed time point and getting out of bed time point.
  • the preset condition when the motion data includes activity data, includes: within a first preset period before the monitoring time point, the change data of the activity data is greater than a first threshold.
  • the preset condition when the motion data includes the number of steps, includes: within a second preset period before the monitoring time point, the change data of the number of steps is greater than a second threshold.
  • the preset conditions include: within a third preset period before the monitoring time point, the number of times the arm movement satisfies the preset movement is greater than a third threshold; the preset movement includes: arm swinging movement and arm vertical downward movement.
  • the electronic device can accurately identify the user's getting in and out of bed movement through the preset conditions corresponding to the activity data, the number of steps, and the arm movement, so as to further determine the suspected time point of the user getting in and out of bed.
  • the monitoring period includes multiple monitoring time points
  • the motion data includes motion data of multiple monitoring time points.
  • the method for an electronic device to determine at least two first time points based on the motion data includes: the electronic device inputs the motion data of multiple monitoring time points into a preset detection model to obtain at least two first time points.
  • the electronic device can quickly determine the suspected time points of the user getting in and out of bed through the detection model based on the motion data, thereby improving the efficiency of the electronic device in determining the suspected time points of the user getting in and out of bed.
  • the detection model is constructed by the following method: the electronic device obtains a sample set, the sample set includes motion data at multiple time points, and multiple time points for getting in and out of bed.
  • the electronic device uses the sample set to train an initial model of the detection model to construct the detection model. In this way, by training the initial model of the detection model with the sample set, the detection accuracy of the constructed detection model can be improved, thereby improving the accuracy of the electronic device in determining the suspected time points of the user getting in and out of bed.
  • the acceleration data includes: a first acceleration, a second acceleration, and a third acceleration, which are perpendicular to each other.
  • the electronic device determines the activity data based on the acceleration data, including: using the following formula (1) to determine the activity data:
  • A is the activity data
  • a1 is the first acceleration
  • a2 is the second acceleration
  • a3 is the third acceleration.
  • the electronic device determines the activity data through the first acceleration, the second acceleration and the third acceleration which are perpendicular to each other, so that the activity data can more truly reflect the user's exercise intensity, thereby improving the accuracy of the electronic device in determining the suspected time points of the user getting in and out of bed based on the activity data.
  • the acceleration data includes: a first acceleration, a second acceleration, and a third acceleration, which are perpendicular to each other.
  • the activity data is the first acceleration in the acceleration data
  • the first acceleration is an acceleration in the same horizontal plane as the raised arm and perpendicular to the direction of the arm.
  • the electronic device uses the acceleration in the direction in which the user has significant movement to characterize the activity data according to the actual application scenario. In this way, the activity data determined by the electronic device can not only truly reflect the user's exercise intensity, but also improve the efficiency of the electronic device in determining the activity data based on the acceleration data.
  • the electronic device determines that the arm action meets the arm swing action.
  • the first dominant feature is used to characterize the intensity of the action that is in the same horizontal plane as the raised arm and perpendicular to the direction of the arm. Specifically, the first dominant feature is determined using the following formula (2):
  • B1 is the first dominant feature
  • ag,X is the acceleration caused by gravity along the arm direction
  • ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction
  • ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
  • the electronic device determines that the arm action meets the arm vertical downward action.
  • the second dominant feature is used to characterize the intensity of the action along the arm direction. Specifically, the second dominant feature is determined using the following formula (3):
  • B2 is the second dominant feature
  • ag,X is the acceleration caused by gravity along the arm direction
  • ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction
  • ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
  • the electronic device determines the user's bedtime based on at least two first time points.
  • the method for determining the time of going to bed and the time of getting out of bed includes: the electronic device obtains the time of falling asleep and the time of waking up of the user. The electronic device determines the first time point before the time of falling asleep and with the smallest time difference with the time of falling asleep as the time of going to bed; the electronic device determines the first time point after the time of waking up and with the smallest time difference with the time of getting out of bed as the time of getting out of bed.
  • the electronic device determines the suspected time of going to bed and getting out of bed that is closest to the time of falling asleep as the time of going to bed, and determines the suspected time of going to bed and getting out of bed that is closest to the time of waking up as the time of getting out of bed. In this way, the time of going to bed and getting out of bed of the user can be truly reflected, and the accuracy of the electronic device in determining the time of going to bed and getting out of bed can be improved.
  • a method for an electronic device to determine a user's bedtime and bed-leaving time based on at least two first time points includes: the electronic device receives a suspected bedtime and bed-leaving time from a second electronic device. The electronic device determines the bedtime and bed-leaving time based on the at least two first time points, the suspected bedtime and bed-leaving time. In this way, the electronic device can determine the bedtime and bed-leaving time in combination with the suspected bedtime and bed-leaving time of the second electronic device, which can improve the accuracy of the electronic device in determining the bedtime and bed-leaving time.
  • the method for an electronic device to determine a bedtime and a getting-out-of-bed time point based on at least two first time points, a suspected bedtime and a suspected getting-out-of-bed time point includes: if there is a first time point among the at least two first time points whose time difference with the suspected bedtime is less than a sixth threshold, the electronic device determines the suspected bedtime as the bedtime. If there is a first time point among the at least two first time points whose time difference with the suspected getting-out-of-bed time point is less than a seventh threshold, the electronic device determines the suspected getting-out-of-bed time point as the getting-out-of-bed time point.
  • the electronic device in combination with the suspected bedtime and suspected getting-out-of-bed time points provided by the second electronic device, can eliminate interference from other users and accurately determine the bedtime and getting-out-of-bed time points of the user using the first electronic device.
  • a method for an electronic device to determine a user's bedtime and bed-leaving time based on at least two first time points includes: the electronic device displays at least two first time points. The electronic device receives a user's selection operation for a second time point and a third time point among the at least two first time points. The electronic device determines the second time point and the third time point as the bedtime and bed-leaving time based on the selection operation. In this implementation manner, the electronic device determines the bedtime and bed-leaving time based on the user's selection operation. That is, the user determines the bedtime and bed-leaving time based on at least two suspected bedtime and bed-leaving time points, which can improve the user experience.
  • the method further includes: the electronic device obtains the user's sleeping time and waking time.
  • the electronic device displays at least two first time points, a first time point before the sleeping time, and a first time point after the waking time.
  • the electronic device receives the user's selection operation for the second time point and the third time point of the at least two first time points. According to the selection operation, the electronic device determines the second time point and the third time point as the bedtime and the bedtime.
  • the electronic device removes the suspected bedtime that may cause interference according to the sleeping time and the bedtime.
  • the electronic device only displays to the user the suspected bedtime before the sleeping time, and the suspected bedtime after the bedtime, so that the user can quickly determine the bedtime and the bedtime, further improving the user's experience.
  • the method further includes: the electronic device determines the accumulated activity data after the first time point according to the acceleration data. If the time when the accumulated activity data is less than the eighth threshold satisfies the preset time, the electronic device obtains the sleeping parameter, and the sleeping parameter is used to characterize the user's sleeping situation. If the sleeping parameter does not meet the ninth threshold, the electronic device displays a first prompt message, and the first prompt message is used for the user to confirm whether to turn on the sleep mode. The electronic device receives the user's confirmation operation to turn on the sleep mode. The electronic device responds to the confirmation operation and turns on the sleep mode.
  • the electronic device after the electronic device determines the suspected time point of the user getting in and out of bed, it can determine whether the user has been in bed for a long time without entering the sleep state according to the accumulated activity data and the sleeping parameter. If the user has been in bed for a long time without entering the sleep state, the electronic device displays a first prompt message to the user for the user to confirm whether to turn on the sleep mode. If the electronic device receives the user's confirmation operation to turn on the sleep mode, the sleep mode is turned on to help the user quickly enter the sleep state, thereby improving the user's user experience.
  • the method further includes: the electronic device responds to the confirmation operation and sends a sleep mode turn-on instruction to a third electronic device, where the sleep mode turn-on instruction is used to trigger the third electronic device to turn on the sleep mode.
  • the electronic device responds to the confirmation operation and can send a sleep mode turn-on instruction to the third electronic device, so that the third electronic device also turns on the sleep mode, thereby jointly helping the user quickly enter the sleep state, further improving the user's experience.
  • the electronic device processes the user's sleep according to the bedtime and the bedtime.
  • the method for monitoring the sleep status of a user includes: the electronic device determines the sleep latency time and the bed rest time according to the time of going to bed and the time of getting out of bed, the sleep latency time is the difference between the time of going to bed and the time of falling asleep, and the bed rest time is the difference between the time of going to bed and the time of getting out of bed.
  • the electronic device displays the sleep analysis result of the user according to the sleep latency time and the bed rest time.
  • the electronic device can determine the sleep latency time and the bed rest time according to the time of going to bed and the time of getting out of bed, so as to further determine and display the sleep analysis result of the user, so as to facilitate the user to find sleep problems in time and improve the user experience.
  • the sleep analysis result when the sleep latency time is greater than the tenth threshold, includes: the sleep latency time, the bed rest time and the second prompt information, and the second prompt information is used to remind the user that the bed rest time is too long.
  • the electronic device can enable the user to promptly discover the problem of lying in bed for too long by displaying the second prompt information, thereby improving the user's use experience.
  • the sleep analysis result when the number of days when the sleep latency duration is greater than the tenth threshold is greater than the day threshold, the sleep analysis result includes: a third prompt information, the third prompt information is used to display the factors causing the sleep latency duration to be greater than the tenth threshold, and/or display sleep improvement suggestions and sleep improvement tasks.
  • the electronic device can enable the user to promptly discover sleep problems by displaying the third prompt information, and can promptly adjust sleep habits and improve sleep quality according to the sleep improvement suggestions and sleep improvement tasks. In this way, the user experience is further improved.
  • an electronic device comprising: an acquisition module and a processing module.
  • the acquisition module is used to acquire acceleration data of a first electronic device during a monitoring period.
  • the processing module is used to determine motion data of a user using the first electronic device based on the acceleration data, the motion data comprising: at least one of activity data, number of steps, and arm movements, and the activity data is used to characterize the user's exercise intensity.
  • the processing module is also used to determine at least two first time points based on the motion data, the first time point being the suspected time point for the user to get in and out of bed.
  • the processing module is also used to determine the user's bedtime and bed-leaving time points based on the at least two first time points.
  • the processing module is also used to monitor the user's sleep based on the bedtime and bed-leaving time points.
  • an electronic device comprising: a memory, and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes any of the methods described in the first aspect.
  • a computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute any of the methods described in the first aspect.
  • a computer program product is provided.
  • an electronic device executes any method described in the first aspect.
  • beneficial effects that can be achieved by the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here.
  • FIG1 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
  • FIG2 is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application.
  • FIG3 is a schematic diagram of a sleep monitoring method according to an embodiment of the present application.
  • FIG4 is a statistical diagram of activity data shown in an embodiment of the present application.
  • FIG5 is a step count diagram shown in an embodiment of the present application.
  • FIG6( a ) is an acceleration waveform diagram 1 shown in an embodiment of the present application.
  • FIG6( b ) is a second acceleration waveform diagram shown in an embodiment of the present application.
  • FIG6( c ) is a third acceleration waveform diagram shown in an embodiment of the present application.
  • FIG. 7 is a flowchart of a method for a smart watch to determine a first time point according to an embodiment of the present application
  • FIG8 is a second flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application
  • FIG9 is a third flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application.
  • FIG10 is a fourth flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application
  • FIG11 is a schematic diagram of an application scenario of a sleep monitoring method according to an embodiment of the present application.
  • FIG12 is a flowchart of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
  • FIG13 is a schematic diagram showing the principle of determining the time to go to bed and the time to get out of bed by a smart watch according to an embodiment of the present application;
  • FIG14 is a second flow chart of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
  • FIG15 is a schematic diagram 1 showing a first time point according to an embodiment of the present application.
  • FIG16 is a second schematic diagram showing a first time point according to an embodiment of the present application.
  • FIG17 is a flowchart diagram of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
  • FIG18 is a fourth flow chart of a method for determining a bedtime and a bedtime by a smartwatch according to an embodiment of the present application
  • FIG19 is a second schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application.
  • FIG20 is a third schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG21 is a fourth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG22 is a flowchart of a method for performing sleep monitoring using a smartwatch according to an embodiment of the present application
  • FIG23 is a fifth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG24 is a second flow chart of a method for performing sleep monitoring using a smartwatch according to an embodiment of the present application.
  • FIG25 is a sixth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG26 is a seventh schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG27 is a third flow chart of a method for performing sleep monitoring by a smartwatch according to an embodiment of the present application.
  • FIG28 is a schematic diagram of an eighth application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG29 is a ninth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application.
  • FIG30 is a schematic diagram of the composition of an electronic device shown in an embodiment of the present application.
  • FIG31 is a schematic diagram of the composition of a chip system shown in an embodiment of the present application.
  • At least one of the following or its similar expressions refers to any combination of these items, including any combination of single items or plural items.
  • at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
  • the words "first”, “second” and the like are used to distinguish the same items or similar items with substantially the same functions and effects.
  • CBTI therapy is a commonly used therapy for insomnia.
  • CBTI therapy mainly adopts the sleep restriction method. Specifically: the sleep restriction method first limits the bed time of insomnia patients to continuously improve the sleep efficiency of insomnia patients. Then, while ensuring sleep efficiency, the bed time of insomnia patients is gradually increased to improve the insomnia of insomnia patients. It can be seen that in the diagnosis and treatment of insomnia problems, in order to analyze the sleep quality of insomnia patients, sleep efficiency is usually used as a reference indicator. Sleep efficiency is the ratio of the actual total sleep time of insomnia patients to the total bed time. Among them, the total bed time is the difference between the time when insomnia patients get out of bed and the time when they go to bed.
  • the total time in bed can be obtained by manually recording the time of getting out of bed and the time of going to bed. Specifically, after the user finishes sleeping every day, he manually records his own time of going to bed and the time of getting out of bed, so as to further determine the total time in bed based on the time of going to bed and the time of getting out of bed.
  • the time of getting out of bed and the time of going to bed cannot be obtained in time, which will affect the timeliness of insomnia detection and treatment.
  • the manual recording method will have recording errors and memory biases, resulting in low accuracy of the recorded time of going to bed and the time of getting out of bed.
  • the total time a user spends in bed can also be determined by electronic devices. For example, the total time a user spends in bed can be determined based on the time the electronic device is used. If a user uses an electronic device (such as a mobile phone) before and after falling asleep, then when the user uses the electronic device, it is determined that the user is not in bed, otherwise it is determined that the user is in bed.
  • the sub-device usage time is essentially not the difference between the user's actual bedtime and bedtime, and cannot truly reflect the user's actual bedtime. Therefore, the accuracy of determining the user's total bedtime based on the electronic device usage time is low.
  • the user's total bed time can also be determined through smart home (such as smart mattress).
  • the smart mattress can detect the user's bed-going and bed-getting actions based on its own force changes. Exemplarily, if the smart mattress detects that the force at a time point becomes larger and meets the preset conditions, it is determined that the user has a bed-going action at that time point, and this time point is the bed-going time point. If the smart mattress detects that the force at a time point becomes smaller and meets the preset conditions, it is determined that the user has a bed-getting action at that time point, and this time point is the bed-getting time point. Then the smart mattress can obtain the total bed time based on the bed-getting time point and the bed-getting time point.
  • the total time a user spends in bed can be determined by image recognition using devices such as cameras and radars.
  • devices such as cameras and radars can obtain the user's motion information (such as the user's motion image), detect the user's actions of getting into bed and getting out of bed, and then determine the time points of getting out of bed and going to bed to obtain the total time spent in bed.
  • the user's posture can be detected by an acceleration sensor to determine the user's total bed time. Specifically, by acquiring the acceleration data of the acceleration sensor worn on the user's arm or chest, the user's postures such as lying, standing, sitting, and walking are detected, and the user's bed-going and bed-out actions are identified in combination with the change of posture. However, by detecting the user's posture by an acceleration sensor, only the user's posture change can be determined, such as the user's transition from a lying position to a standing position, or from a standing position to a lying position.
  • electronic devices cannot accurately and conveniently identify the user's actual actions of getting in and out of bed, and thus cannot accurately determine the time when the user goes to bed and gets out of bed, and further cannot determine the user's accurate bedtime. This may overestimate or underestimate the user's actual sleep efficiency, and cannot accurately monitor the user's sleep and accurately analyze the user's sleep quality.
  • An embodiment of the present application provides a sleep monitoring method, which can be applied to electronic devices.
  • the electronic device can determine the motion data of the user using the electronic device based on the acceleration data of the electronic device, so as to identify the user's getting in and out of bed actions, and determine the suspected time points of the user getting in and out of bed. Further, the electronic device can determine the user's bed time and bed-leaving time based on the suspected bed-leaving time points, so as to monitor the user's sleep. In this way, the electronic device can accurately determine the user's bed time and bed-leaving time based on the acceleration data, thereby improving the accuracy of sleep monitoring.
  • the electronic devices in the embodiments of the present application may be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, as well as cellular phones, personal digital assistants (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, and wearable devices include but are not limited to smart watches, smart bracelets, smart anklets, wireless headphones, smart glasses, smart helmets, etc.
  • PDA personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • wearable devices wearable devices
  • wearable devices include but are not limited to smart watches, smart bracelets, smart anklets, wireless headphones, smart glasses, smart helmets, etc.
  • the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • the electronic device 100 as a wearable device as an example.
  • Fig. 1 shows a schematic diagram of the structure of an electronic device 100, which can be worn on a user's wrist.
  • the electronic device 100 includes a display screen 101 and a fixing strap 102, wherein the display screen 101 is used to display time and other related content when the user touches and clicks, and the fixing strap 102 is used to fix the electronic device 100 on the user's wrist.
  • FIG. 2 shows a schematic diagram of a hardware structure of the electronic device 100 .
  • the electronic device 100 may include a processor 110, 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, a motor 191, an indicator 192, and a display screen 194.
  • the sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a touch sensor 180C, an ambient light sensor 180D, and the like.
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.
  • the components shown 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 (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. 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, etc.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • the power management module 141 is used to connect 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 provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process 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 convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 can be set in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
  • the wireless communication module 160 can provide wireless communication solutions for the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and transmit it via the antenna 2. Converted into electromagnetic waves and radiated out.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 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), wideband 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.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 can be the display screen 101 shown in FIG. 1.
  • the 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 100 can include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
  • the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
  • the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • 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 speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C.
  • the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
  • the gyro sensor 180A can be used to determine the motion posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., the x, y, and z axes
  • the gyro sensor 180A can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180A detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement, thereby achieving Anti-shake.
  • the gyroscope sensor 180A can also be used for navigation and somatosensory gaming scenarios.
  • the acceleration sensor 180B can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the ambient light sensor 180D is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180D can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180D can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the touch sensor 180C is also called a "touch panel”.
  • the touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen”.
  • the touch sensor 180C is used to detect touch operations acting 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 the touch operation can be provided through the display screen 194.
  • the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the key 190 includes a power key, a volume key, etc.
  • the key 190 may be a mechanical key or a touch key.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • Motor 191 can generate vibration prompts.
  • Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the electronic device 100 may also include: an external memory interface, an earphone interface, a camera, and a subscriber identification module (SIM) card interface.
  • SIM subscriber identification module
  • the external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the headphone jack is used to connect a wired headphone.
  • the headphone jack may be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or 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 SIM card interface is used to connect the SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface or pulling it out from the SIM card interface.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface can also be compatible with different types of SIM cards.
  • the SIM card interface can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the wearable device is a smart watch, which is worn on the wrist of the user, and the sleep monitoring of the user is performed by the smart watch as an example to illustrate the sleep monitoring method provided in the embodiment of the present application.
  • the method in the following embodiment can be implemented in an electronic device having the hardware structure shown in Figure 2.
  • Figure 3 is a flow chart of the sleep monitoring method shown in the embodiment of the present application. As shown in Figure 3, the method may include the following S101-S105:
  • the smart watch obtains acceleration data of the smart watch within a monitoring period.
  • the sleep monitoring function of the smart watch can be turned on.
  • the smart watch starts the sleep monitoring function to monitor the sleep of the user.
  • the sleep monitoring function of the smart watch can be turned off.
  • the smart watch can turn off the sleep monitoring function to end the monitoring of the user's sleep.
  • the time period from when the sleep monitoring function of the smart watch is turned on to when the sleep monitoring function is turned off can be the above-mentioned monitoring time period.
  • Smart watches can obtain acceleration data in real time during the monitoring period to further determine the user's motion data.
  • the smart watch can obtain acceleration data through the acceleration sensor 180B shown in FIG. 2.
  • the acceleration sensor 180B can detect the magnitude of the acceleration of the smart watch in different directions to determine the user's motion data. For example, if the smart watch needs to detect the user's arm movement, it can obtain the acceleration along the arm direction, the acceleration in the same horizontal plane as the horizontally raised arm and perpendicular to the arm direction, and the acceleration in the same vertical plane as the horizontally raised arm and perpendicular to the arm direction, so as to accurately identify the user's arm movement.
  • the above acceleration data may include accelerations in three axes (or three directions), for example, may include: a first acceleration, a second acceleration, and a third acceleration whose directions are perpendicular to each other.
  • S102 The smart watch determines the motion data of the user using the smart watch according to the acceleration data.
  • the motion data can be used to characterize the motion of the user using the smart watch, and the motion data can be determined by the smart watch based on the acceleration data. Since the user will generate different accelerations in different directions during the motion, the smart watch can determine the user's motion data based on the acceleration data.
  • the user's activity in bed is less than that out of bed
  • the number of steps of the user will decrease after getting into bed
  • the number of steps of the user will increase after getting out of bed
  • the number of arm swinging movements of the user in bed will be less than the number of arm swinging movements of the user out of bed, etc.
  • the activity data statistics graph shown in the embodiment of the present application as can be seen from FIG4, due to the different motion conditions of the user, the activity of the user is different at different times.
  • the motion data may include: at least one of activity data, step number, and arm movements, wherein the activity data is used to characterize the user's motion intensity.
  • Smart watches can determine activity data, steps, and arm movements based on acceleration data, specifically:
  • the smartwatch can determine the activity data based on accelerations in three directions that are perpendicular to each other.
  • the acceleration data acquired by the smartwatch includes: a first acceleration, a second acceleration, and a third acceleration in directions that are perpendicular to each other. Then the smartwatch can use the following formula (1) to determine the activity data:
  • A is the activity data
  • a1 is the first acceleration
  • a2 is the second acceleration
  • a3 is the third acceleration.
  • the acceleration in this direction can be used to characterize the activity data.
  • the smart watch is worn on the user's wrist. When the user gets in and out of bed, the movement in the direction that is in the same horizontal plane as the raised arm and perpendicular to the arm is more significant. Therefore, the smart watch can also determine the activity data based on the acceleration in this direction, such as using the acceleration in this direction as the user's activity data.
  • the smart watch can determine the number of steps based on the periodic change characteristics of the acceleration data.
  • an acceleration is generated in three directions in space (for example, along the forward direction of the user's movement, in the horizontal plane perpendicular to the forward direction of the user's movement, and in the vertical plane perpendicular to the forward direction of the user's movement).
  • the acceleration in at least one of the three directions changes periodically over time. For example, when the user runs forward in a straight line, as the user's feet are alternately lifted and landed, the acceleration perpendicular to the forward direction in the vertical plane will show periodic changes.
  • the periodically changing acceleration changes with time, with the value of the periodically changing acceleration as the vertical axis and time as the horizontal axis, the curve of the periodically changing acceleration generally presents a sine curve.
  • each step will correspond to a peak in a sine curve, and a peak can be recorded as one step. In this way, the smart watch can determine the number of steps based on the acceleration data.
  • the acceleration data acquired by the smartwatch may include accelerations in multiple directions.
  • the smartwatch may determine the dominant feature in each direction based on the accelerations in multiple directions to determine the user's arm movements, wherein the dominant feature is used to characterize the intensity of the user's movements. If the user's arm movement in one direction is more significant, the intensity of the movement in that direction is greater, i.e., the dominant feature is greater.
  • the smart watch needs to remove the acceleration generated by muscle force from the acceleration in each direction and retain the acceleration caused by gravity.
  • the smart watch can use bandpass filtering
  • the acceleration generated by muscle force in the original acceleration is extracted by the method, and the remaining acceleration in the original acceleration is the acceleration caused by gravity.
  • the waveform shown in Figure 6(a) is the original acceleration waveform in the first direction.
  • the waveform shown in Figure 6(b) is the acceleration waveform in the first direction generated by muscle force extracted by bandpass filtering.
  • the waveform shown in Figure 6(c) is the acceleration waveform in the first direction caused by gravity.
  • the smart watch can determine the acceleration corresponding to the waveform shown in Figure 6(c) as the acceleration caused by gravity in the first direction.
  • the smartwatch can determine the dominant feature of each direction based on the acceleration caused by gravity in different directions. Taking the calculation of the dominant feature of the first direction as an example, the dominant feature of the first direction can be calculated by the following formula (2):
  • B is the dominant feature of the first direction
  • a g,1 is the acceleration caused by gravity in the first direction
  • a g,2 is the acceleration caused by gravity in the second direction
  • a g,3 is the acceleration caused by gravity in the third direction.
  • the first direction, the second direction and the third direction are perpendicular to each other.
  • the smartwatch determines the user's arm movement according to the dominant features in each direction.
  • the direction with the larger dominant feature is the more significant the user's arm movement in that direction. For example, if the dominant feature along the first direction is larger, it can be determined that the user's arm has significant movement along the first direction. In this way, the smartwatch accurately determines the user's arm movement according to the dominant features in different directions.
  • the smart watch determines at least two first time points according to the motion data, where the first time points are suspected time points for the user to get in and out of bed.
  • the smart watch can identify the user's getting in and out of bed actions based on the motion data, thereby determining the user's suspected getting in and out of bed time points.
  • the user has at least one going-in-bed action and one getting-out-of-bed action. Therefore, in order to improve the accuracy of determining the time points of going to bed and getting out of bed, the smart watch can determine at least two first time points (i.e., suspected getting-in-bed time points) based on the motion data, so as to further determine the time points of going to bed and getting out of bed.
  • the smart watch can determine the first time point according to the change of motion data during the monitoring period.
  • the monitoring period includes multiple monitoring time points, and the time intervals between two adjacent monitoring time points may be the same or different, and this application does not make specific limitations on this.
  • the following embodiments are explained by taking the monitoring period including multiple monitoring time points with the same time interval as an example, that is, the smart watch obtains the acceleration data of the smart watch once at the same time interval during the monitoring period, for example, every 1 second (s). In this way, the motion data includes motion data of multiple monitoring time points.
  • the smartwatch determines the change data of the motion data within the preset time before each monitoring time point, and determines the monitoring time point as the first time point if the smartwatch determines that the change data meets the preset conditions.
  • the above-mentioned preset condition includes: within a first preset period before the monitoring time point, the change data of the activity data is greater than a first threshold.
  • the change data of the activity data is one or more of the following: the mean of the activity data, the variance of the activity data, etc.
  • the first threshold can be set according to actual application requirements. The smaller the first threshold, the higher the accuracy of the smart watch in determining the first time point. This application does not specifically limit the first threshold.
  • the preset condition may include: within 30 seconds before the monitoring time point, the mean value of the activity data is greater than 1 meter per square second (m/s 2 ).
  • the method for the smart watch to determine the first time point according to the activity data in the monitoring period includes the following S201-S203:
  • the smart watch determines the average value of the activity data within 30 seconds before each monitoring time point in the monitoring period based on the activity data of multiple monitoring time points in the motion data.
  • S202 The smart watch determines whether the average value of the activity data within 30 seconds before each monitoring time point is greater than 1 m/s 2 .
  • the change data of the activity data can also be the variance of the activity data.
  • the preset condition can include: within 60 seconds before the monitoring time point, the variance of the activity data is greater than 0.5.
  • the method for the smart watch to determine the first time point based on the activity data in the monitoring period includes the following S301-S303:
  • the smart watch determines the variance of the activity data within 60 seconds before each monitoring time point in the monitoring period based on the activity data of multiple monitoring time points in the motion data.
  • S302 The smart watch determines whether the variance of the activity data within 60 seconds before each monitoring time point is greater than 0.5.
  • the smart watch can also determine whether the corresponding monitoring time point is the first time point through the above S201-S203 and the above S301-S303 according to the mean of the activity data and the variance of the activity data, respectively. For example, the smart watch can determine that the monitoring time point is the first time point when the mean of the activity data and the variance of the activity data at the monitoring time point simultaneously meet the corresponding preset conditions (such as being greater than the corresponding threshold). In this way, the accuracy of the smart watch in determining the suspected time point of getting in and out of bed of the user based on the activity data can be further improved.
  • the above-mentioned preset conditions include: within a second preset period before the monitoring time point, the change data of the number of steps is greater than a second threshold.
  • the change data of the number of steps includes one or more of the following: cumulative number of steps, mean number of steps, variance of number of steps, etc.
  • the second threshold can be set according to actual application requirements. The smaller the second threshold, the higher the accuracy of the smart watch in determining the first time point. This application does not specifically limit the second threshold.
  • the preset condition may include: the cumulative number of steps is greater than 100 steps within 15 seconds before the monitoring time point.
  • the method for the smart watch to determine the first time point according to the number of steps in the monitoring period includes the following S401-S403:
  • the smart watch determines the cumulative number of steps within 15 seconds before each monitoring time point in the monitoring period according to the number of steps at multiple monitoring time points in the motion data.
  • S402 The smart watch determines whether the cumulative number of steps within 15 seconds before each monitoring time point is greater than 100 steps.
  • the smart watch can also determine whether the corresponding monitoring time point is the first time point based on one or more data such as the cumulative number of steps, the mean of the number of steps, and the variance of the number of steps. For example, the smart watch can determine that the monitoring time point is the first time point when the cumulative number of steps, the mean of the number of steps, and the variance of the number of steps at the monitoring time point simultaneously meet the corresponding preset conditions (such as being greater than the corresponding threshold). In this way, the accuracy of the smart watch in determining the suspected time point of getting in and out of bed based on the number of steps can be further improved.
  • the above-mentioned preset conditions include: within a third preset period before the monitoring time point, the number of times that the arm movement satisfies the preset movement is greater than a third threshold.
  • the preset movement includes one or more of the following: arm swinging movement and arm vertical downward movement. Since, usually, the arm swinging movement of the user in bed is less than the arm swinging movement of the user under the bed, and there is usually an arm vertical downward movement when the user goes to bed. Therefore, the smart watch can identify the arm swinging movement and/or the arm vertical downward movement to determine whether there is a suspected movement of getting in and out of bed, thereby determining the suspected time point of the user's getting in and out of bed.
  • the third threshold can be set according to the user's habit of arm swinging movement and arm vertical downward movement. If the user's daily arm swinging movement and arm vertical downward movement are less, a smaller third threshold can be set to improve the accuracy of the smart watch in identifying the arm swinging movement and arm vertical downward movement.
  • the third threshold is not specifically limited in this application.
  • the preset condition may include: within 30 seconds before the monitoring time point, the arm action satisfies the arm swinging action and the arm vertical downward action for more than 10 times.
  • the method for the smart watch to determine the first time point according to the arm action in the monitoring period includes the following S501-S503:
  • the smart watch determines the number of times the arm movements satisfy the arm swinging movement and the arm vertical downward movement within 30 seconds before each monitoring time point in the monitoring period according to the arm movements at multiple monitoring time points in the motion data.
  • S502 The smart watch determines whether the number of times within 30 seconds before each monitoring time point is greater than 10 times.
  • the smart watch can determine whether the user's arm movement satisfies the arm swinging movement by calculating the dominant features along the same horizontal plane as the raised arm and perpendicular to the arm direction.
  • the smart watch can determine the first advantage feature of the monitoring time point by using the following formula (3):
  • B1 is the first dominant feature
  • ag,X is the acceleration caused by gravity along the arm direction
  • ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction
  • ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
  • the smart watch determines that the arm movement at the monitoring time point meets the arm swinging movement.
  • the setting method of the fourth threshold and the first preset frequency can refer to the setting method of the first threshold mentioned above, which will not be repeated here.
  • the frequency of the first advantage feature being greater than 1.47 meets 2 times/5s, the smart watch determines that the arm movement at the monitoring time point meets the arm swinging movement.
  • the smart watch can determine whether the user's arm movement satisfies the arm vertical downward movement by calculating the dominant feature along the arm direction.
  • the smart watch can determine the second advantage feature of the monitoring time point by using the following formula (4):
  • B2 is the second dominant feature
  • ag,X is the acceleration caused by gravity along the arm direction
  • ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction
  • ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
  • the smart watch determines that the arm movement at the monitoring time point meets the arm vertical downward movement.
  • the setting method of the fifth threshold and the second preset frequency can refer to the setting method of the first threshold mentioned above, which will not be repeated here.
  • the frequency of the second advantage feature being greater than 1.49 meets 2 times/5s, the smart watch determines that the arm movement at the monitoring time point meets the arm vertical downward movement.
  • the motion data may include at least two of: activity data, number of steps, and arm movements.
  • the smart watch comprehensively determines the suspected time point of the user getting in and out of bed based on the corresponding S201-S203, S301-S303, S401-S403, and S501-S503, that is, determines the above-mentioned first time.
  • the motion data includes: activity data, number of steps, and arm movements.
  • the smart watch can determine whether the activity change data, the number of steps change data, and the number of arm movements that meet the preset actions at the monitoring time point all meet the corresponding preset conditions through the above S201-S203, S301-S303, S401-S403, and S501-S503, respectively. If they all meet the corresponding preset conditions, the monitoring time point is determined to be the first time point.
  • each threshold such as the first threshold, the second threshold and the third threshold
  • each preset time period such as the first preset time period, the second preset time period and the third preset time period
  • the values of each threshold and each preset time period are not limited to the above examples, and their actual values can be pre-set according to actual needs.
  • the smart watch can determine the first time point through a preset detection model based on the motion data in the monitoring period.
  • the monitoring period includes multiple monitoring time points.
  • the motion data includes motion data of multiple monitoring time points.
  • the smart watch can input the motion data of multiple monitoring time points into a preset detection model to obtain at least two first time points.
  • the detection model can determine whether the change data of the motion data at the monitoring time point meets the preset conditions. If the preset conditions are met, the monitoring time point is output as the result of the first time point, wherein the change data of the motion data and the preset conditions, please refer to the relevant description above, which will not be repeated here.
  • the smart watch can also obtain a sample set, which includes multiple time points for getting in and out of bed and change data of motion data at each time point for getting in and out of bed.
  • the smart watch uses the sample set to train an initial model of the detection model to construct the detection model.
  • the smartwatch uses the sample set to train the initial model of the detection model through a random forest training method.
  • the detection model can be composed of multiple decision trees, for example, 100 decision trees.
  • the change data of the motion data includes: the mean of the activity data, the variance of the activity data, the cumulative number of steps, and the arm movement satisfying the arm swing movement.
  • the preset conditions include: (1) within 30 seconds before the monitoring time point, the mean of the activity data is greater than 1m/ s2 , (2) within 60 seconds before the monitoring time point, the variance of the activity data is greater than 0.5, (3) within 15 seconds before the monitoring time point, the cumulative number of steps is greater than 100 steps, (4) within 30 seconds before the monitoring time point, the number of times the arm movement satisfies the arm swinging movement and the arm vertical downward movement is greater than 10 times.
  • each decision tree in the detection model is a 5-layer binary tree, and the branch nodes and root nodes of each decision tree are the above-mentioned change data.
  • the change data meets the corresponding preset conditions. If the change data does not meet the preset conditions, it enters the left subtree at the next layer, otherwise it enters the right subtree.
  • the final leaf node value on each path in the decision tree is the probability value that the monitoring time point is the first time point.
  • Each decision tree in the detection model will obtain a probability value that the monitoring time point is the first time point.
  • multiple decision trees in the detection model determine whether the monitoring time point is the first time point by voting (such as whether the number of statistical probability values greater than the probability threshold meets the threshold condition). If the monitoring time point is the first time point, the monitoring time point is output.
  • Figure 11 is a schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application.
  • the smart watch can also respond to a viewing operation initiated by the user and display the determined at least two first time points (suspected time points for getting in and out of bed) to the user through a display screen, so that the user can check the first time points in time, thereby improving the user's experience.
  • the smart watch can also display the activity data and/or number of steps corresponding to the first time point to the user through the display screen.
  • the user can select one of the first time points, such as “22:08”, and send a viewing operation of viewing the activity data and/or number of steps to the smart watch by clicking the “22:08” area.
  • the smart watch receives and responds to the user’s viewing operation, and displays the activity data and/or number of steps at “22:08” through the display screen. This makes it easier for the user to obtain the activity data, number of steps and other sports data at the first time point, further improving the user’s experience.
  • S104 The smart watch determines the user's bedtime and bedtime based on at least two first time points.
  • At least two first times determined by the smart watch are suspected to be the time for going to bed and getting out of bed, and it is necessary to further determine the accurate time for the user to go to bed and get out of bed based on the at least two first time points.
  • the smartwatch can determine the user's bedtime and bedtime based on at least two first time points in combination with the user's sleep time and wake-up time. Specifically, the following steps S601-S602 are included:
  • the smart watch obtains the user's sleeping time and waking time, wherein the sleeping time is the time when the user enters the sleeping state from the awake state, and the waking time is the time when the user enters the awake state from the sleeping state.
  • the user's physiological characteristics are different when they are asleep and awake. For example, when they are asleep, their pulse rate will slow down, their breathing rate will slow down, and their blood oxygen level will decrease. When the user wakes up from sleep, the above physiological characteristics will also change when they are awake. Therefore, by detecting the user's physiological characteristics, it can be determined whether the user is asleep or awake.
  • a smartwatch can obtain the user's heart rate, blood oxygen and other data through a photoelectric sensor, such as a photoplethysmograph (PPG) sensor.
  • the PPG sensor emits a light beam of a certain wavelength to the user's skin (usually green light is used to measure heart rate and red light is used to measure blood oxygen), and then the PPG sensor receives the transmitted or reflected light beam, and processes the periodic light intensity changes caused by blood circulation detected in this process to obtain the user's heart rate data.
  • the PPG sensor can also obtain the user's blood oxygen data. Since the reflectivity of blood with different oxygen content is different, its changes can also be detected by the PPG sensor, and then processed and estimated by an algorithm to obtain blood oxygen data.
  • the smartwatch can monitor the user's blood oxygen, heart rate, heart rate variability (HRV) and other change trends and absolute values based on the heart rate data to determine the user's awake state and sleep state, and further determine the user's sleep time and wake-up time.
  • HRV heart rate variability
  • the smartwatch determines the first time point before the sleeping time point and with the smallest time difference from the sleeping time point among the at least two first time points as the bedtime point.
  • the smartwatch determines the first time point after the waking up time point and with the smallest time difference from the waking up time point among the at least two first time points as the getting out of bed time.
  • the smart watch can determine the first time point closest to the sleeping time as the bedtime, and the first time point closest to the waking time as the getting out of bed time.
  • FIG13 is a schematic diagram of the principle of a smart watch determining the time to go to bed and the time to get out of bed shown in an embodiment of the present application.
  • the smart watch determines: first time point a, first time point b, first time point c, first time point d, first time point e, first time point f, first time point g and first time point h, a total of 8 first time points.
  • the first time point a, the first time point b and the first time point c are before the time point of falling asleep, but the time difference between the first time point c and the time point of falling asleep is the smallest. Therefore, the first time point c is determined as the time point of going to bed.
  • the first time point f, the first time point g and the first time point h are before the time point of waking up, but the time difference between the first time point f and the time point of waking up is the smallest. Therefore, the first time point f is determined as the time point of getting out of bed.
  • the smart watch can also determine the user's bedtime and bedtime based on at least two first time points and the user's selection operation. Specifically, as shown in FIG14 , the smart watch can determine the user's bedtime and bedtime based on at least two first time points through the following S701-S703:
  • the smart watch displays at least two first time points.
  • the smart watch may display at least two first time points through the display screen 101 , and multiple first time points (i.e., suspected time points for getting in and out of bed) may be displayed on the display screen 101 for the user to view the first time points.
  • first time points i.e., suspected time points for getting in and out of bed
  • the smart watch can also send at least two first time points to a fourth electronic device, which can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device (mobile phone) displays at least two first time points through a display screen.
  • a fourth electronic device can be a large-screen electronic device such as a mobile phone or a tablet computer
  • the fourth electronic device mobile phone
  • S702 The smart watch receives a selection operation from the user.
  • the user selects a second time point and a third time point among the at least two first time points according to the displayed at least two first time points, wherein the second time point is a time point for going to bed determined by the user among the at least two first time points, and the third time point is a time point for getting out of bed determined by the user among the at least two first time points.
  • the user can select the time point by clicking the display area of the first time point displayed, or click the selection control corresponding to the first time point to select the time point. Afterwards, the user can confirm the operation on the corresponding time point by clicking the confirmation control.
  • the selection control and the confirmation control are exemplary names. The embodiments of the present application do not limit the naming of the selection control and the confirmation control, and can also be replaced with other names with the same or similar functions.
  • S703 The smart watch determines the second time point and the third time point as the bedtime and the bedtime, respectively, according to the selection operation.
  • the smart watch in order to facilitate the user to make a quick selection, can improve the efficiency of determining the time of going to bed and the time of getting out of bed.
  • the smart watch can also remove some misjudged first time points according to the time of falling asleep and the time of waking up from bed, for example, remove the first time point between the time of falling asleep and the time of waking up from bed. In this way, the interference to the user can be reduced, allowing the user to quickly select the time of going to bed and getting out of bed.
  • the smart watch can also determine the time of going to bed and the time of getting out of bed according to at least two first times through the following S801-S804:
  • the smart watch obtains the user's sleeping time and waking time.
  • the sleeping time point and the waking time point are used to remove the misjudged first time point.
  • the smart watch displays at least two first time points: a first time point before the time of falling asleep and a first time point after the time of waking up.
  • S802 is similar to the implementation described in S701 above.
  • the smart watch can send the first time point before the time of falling asleep and the first time point after the time of waking up to a fourth electronic device, and the fourth electronic device displays at least two first time points through a display screen, and can also be displayed on the smart watch, which is not repeated here.
  • S803 The smart watch receives a selection operation by the user.
  • the user initiates a selection operation of a second time point and a third time point among the at least two first time points displayed to the smartwatch, wherein the second time point is a time point for going to bed determined by the user among the at least two first time points, and the third time point is a time point for getting out of bed determined by the user among the at least two first time points.
  • S804 The smart watch determines the second time point and the third time point as the bedtime and the bedtime, respectively, according to the selection operation.
  • the smart watch can be implemented through the above S701-S703 and S801-S804 to determine the user's bedtime and bedtime according to at least two first time points and the user's operation.
  • the existing related technologies cannot accurately determine the time when each user goes in and out of bed.
  • the time when a user goes in and out of bed is determined by a smart mattress.
  • the smart mattress can determine the existence of the action of getting in and out of bed based on its force conditions, but it cannot determine which user among the multiple users has the action of getting in and out of bed, resulting in the inability to accurately obtain the time when each user goes in and out of bed. Going to bed and getting out of bed time.
  • the second electronic device (such as a smart mattress) can send the suspected bedtime and suspected bedtime of multiple users (multiple) to the smart watch.
  • the smart watch can determine whether there is a first time point close to the suspected bedtime and suspected bedtime based on at least two first time points. If there is no close first time point, it means that the suspected bedtime and suspected bedtime sent by the second electronic device do not belong to the user using the smart watch, but may belong to other users. If there is a close first time point, it means that the suspected bedtime and suspected bedtime sent by the second electronic device belong to the user using the smart watch. Further, the smart watch can determine the user's bedtime and bedtime based on at least two first time points and the suspected bedtime and suspected bedtime of the second electronic device.
  • the method for the smart watch to determine the user's bedtime and bedtime based on at least two first time points includes:
  • the smart watch receives a suspected bedtime and a suspected bedtime from a second electronic device.
  • the smart watch determines the suspected bedtime point as the bedtime point; if there is a first time point among at least two first time points whose time difference with the suspected getting out of bed time is less than the seventh threshold, the smart watch determines the suspected getting out of bed time as the getting out of bed time.
  • the sixth threshold and the seventh threshold may be the same or different.
  • the sixth threshold and the seventh threshold may be set according to actual application requirements. The smaller the sixth threshold and the seventh threshold, the higher the accuracy of the smart watch in determining the time of going to bed and the time of getting out of bed. This application does not specifically limit the sixth threshold and the seventh threshold.
  • the method for a smartwatch to determine the user's bedtime and bed-out time based on at least two first time points includes: the smartwatch receives a suspected bedtime and bed-out time from a second electronic device. If there is a first time point among the at least two first time points whose time difference with the suspected bedtime is less than a sixth threshold, the smartwatch determines the first time point as the bedtime; if there is a first time point among the at least two first time points whose time difference with the suspected bed-out time is less than a seventh threshold, the smartwatch determines the first time point as the bed-out time.
  • the smartwatch determines that there is a first time point whose time difference with the suspected bedtime is less than the sixth threshold value among at least two first time points, and there is a first time point whose time difference with the suspected bedtime is less than the seventh threshold value among at least two first time points, the following may be displayed to the user: the suspected bedtime, the suspected bedtime, the first time point whose time difference with the suspected bedtime is less than the sixth threshold value, and the first time point whose time difference with the suspected bedtime is less than the seventh threshold value.
  • the smartwatch receives the user's selection operation of the bedtime and bedtime selected for the above-displayed time points. In response to the selection operation, the smartwatch determines the user's bedtime and bedtime.
  • Figure 19 is a second schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application.
  • the smart watch can also respond to the user's viewing operation and display the determined time to go to bed and the time to get out of bed to the user through the display screen, so that the user can check the time to go to bed and the time to get out of bed in time, thereby improving the user's experience.
  • the smart watch monitors the user's sleep according to the time when the user goes to bed and when the user gets out of bed.
  • the smart watch can determine the user's sleep data such as bed time, sleep latency time, sleep efficiency, etc. according to the time the user goes to bed and gets out of bed, and monitor the user's sleep based on the sleep data to analyze the user's sleep quality.
  • the user's sleep data such as bed time, sleep latency time, sleep efficiency, etc. according to the time the user goes to bed and gets out of bed, and monitor the user's sleep based on the sleep data to analyze the user's sleep quality.
  • the smartwatch can determine the sleep latency and bed time according to the time of going to bed and getting out of bed.
  • the sleep latency is the time between the user going to bed and entering the sleep state, and the sleep latency can be obtained by calculating the difference between the time of going to bed and the time of falling asleep.
  • the bed time is the time between the user going to bed and getting out of bed, and the bed time can be obtained by calculating the difference between the time of going to bed and the time of getting out of bed.
  • the smartwatch can analyze the user's sleep according to the sleep latency and bed time, and display the user's sleep analysis results. Exemplarily, as shown in Figure 20, the smartwatch can display the user's sleep efficiency, bed time and sleep latency through the display screen, so that the user can intuitively understand their sleep situation.
  • the smartwatch can combine the sleep parameters with the bedtime and the bedtime to obtain the user's sleep structure diagram. As shown in FIG21 , the smartwatch can display the user's sleep structure diagram through a display screen.
  • the sleep structure diagram can intuitively reflect the user's sleep quality during the monitoring period, and may include data such as the user's bedtime and bedtime.
  • the smartwatch can determine whether the user has stayed in bed too long before going to bed that day based on the sleep latency duration. And send a prompt to the user. As shown in FIG22, it specifically includes the following S1001-S1003:
  • the smart watch determines the sleep latency duration according to the bedtime and sleep onset time.
  • the smart watch determines whether the sleep latency duration is greater than a tenth threshold value.
  • the tenth threshold value is a sleep latency threshold value.
  • the tenth threshold value can be set according to actual application conditions, for example, can be set to 30 minutes (min).
  • the smartwatch may display a second prompt message on the display screen, the second prompt message being used to remind the user that the user has been in bed for too long.
  • the sleep latency and bed rest time of the user are displayed while displaying the second prompt message.
  • the user can clearly and completely browse the sleep latency, bed time and second prompt information to improve the user experience.
  • the smart watch can also send the sleep latency, bed time and second prompt information to the fourth electronic device.
  • the fourth electronic device can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device displays the sleep latency, bed time and second prompt information through the display screen. Taking the fourth electronic device as a mobile phone as an example, as shown in Figure 23, the display interface of the mobile phone display screen displays the sleep latency, bed time and second prompt information.
  • the second prompt information may include: It is detected that you have been in bed for too long, and a long time in bed may be one of the reasons affecting sleep quality.
  • the second prompt information may also include: avoid staying in bed for too long. Staying in bed for too long will weaken the direct connection between the bed and sleep, making it difficult to fall asleep and affecting sleep quality. It is recommended to leave the bed and go to bed when you feel sleepy.
  • the smartwatch can also analyze the user's sleep within a certain period (e.g., 30 days) according to the user's sleep latency within the period, and generate a sleep analysis result for the period. As shown in FIG. 24 , it specifically includes the following S1101-S1103:
  • the smart watch determines the number of days in a preset cycle in which the sleep latency duration is greater than a tenth threshold.
  • the smartwatch determines whether the number of days in which the sleep latency duration is greater than the tenth threshold is greater than the day threshold, where the day threshold may be, for example, 20 days.
  • the day threshold may be set according to actual needs, and this application does not make any specific limitation on this.
  • a third prompt message is displayed, where the third prompt message is used to display factors causing the sleep latency duration to be greater than the tenth threshold, and/or to display sleep improvement suggestions and sleep improvement tasks.
  • factors that cause the sleep latency duration to be greater than the tenth threshold may include one or more of the following: strenuous exercise before bedtime, long naps during the day, naps within 6 hours before bedtime, playing with mobile phones before bedtime, lying in bed for too long, and environmental noise.
  • the smart watch can determine whether the user has strenuous exercise before bedtime based on the amount of activity, and the smart watch can determine whether the user has problems such as long naps during the daytime, naps within 6 hours before bedtime, and lying in bed for too long based on the time of going to bed, getting out of bed, falling asleep, and waking up.
  • the smart watch can determine whether the user plays with the mobile phone before bedtime based on the time the user uses the mobile phone.
  • the smart watch determines whether there is environmental noise by detecting the decibel of the ambient sound.
  • sleep improvement suggestions include one or more of the following: regular user wake-up time, restricting user naps, etc. Sleep improvement includes one or more of the following: relieving stress through mindfulness breathing, playing sleep-aiding music, etc.
  • the user can browse the third prompt information clearly and completely, thereby improving the user's experience.
  • the smart watch can also send the third prompt information to a fourth electronic device, which can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device displays the third prompt information through a display screen.
  • a fourth electronic device can be a large-screen electronic device such as a mobile phone or a tablet computer
  • the fourth electronic device displays the third prompt information through a display screen.
  • the fourth electronic device as a mobile phone as an example, as shown in FIG25, the third prompt information is displayed in the display interface of the mobile phone display screen, and the third prompt information includes factors affecting sleep; as shown in FIG26, the third prompt information is displayed in the display interface of the mobile phone display screen, and the third prompt information includes improvement suggestions.
  • the display content in FIG25 and FIG26 is only an exemplary description, and the specific content of the third prompt information can be set according to actual needs.
  • the display content in FIG25 and FIG26 can be integrated in the same page display interface and displayed to the user at the same time. It can also be divided into multiple pages of display interfaces and displayed to the user in pages, and this application does not make specific limitations on this.
  • the smart watch after determining the first time point, can also determine whether the user has entered a sleeping state. If the user has not entered a sleeping state, the user is prompted whether to turn on the sleeping mode. Specifically, as shown in FIG. 27 , in S103, in the process of the smart watch determining the first time point according to the motion data, after the smart watch determines a first time point, it can also include S1201-S1205:
  • the smart watch determines the accumulated activity data after the first time point based on the acceleration data.
  • the smart watch determines whether the time during which the accumulated activity data is less than an eighth threshold value satisfies a preset time, so as to determine whether the user remains in bed.
  • the smart watch obtains sleeping parameters, which are used to characterize the user's sleeping condition.
  • the sleeping parameters may include, for example, heart rate data, blood oxygen data, etc.
  • S1204 The smart watch determines whether the sleeping parameters meet a ninth threshold.
  • the smart watch can display a first prompt message through the display screen to determine whether the user has turned on the sleep mode. Exemplarily, as shown in FIG28, the display screen of the smart watch displays a first prompt message, and the content of the first prompt message includes "whether to enter the sleep mode".
  • the content of the first prompt message is an exemplary description, and the specific content of the first prompt message can be set according to actual needs, and this application does not make specific limitations.
  • the user wants to turn on the sleep mode, he can click the control for confirmation in the display screen of the smart watch, for example, the "yes" control in Figure 28.
  • the smart watch receives the user's operation on the control and responds to the operation to turn on the sleep mode.
  • the "yes" control is an exemplary name.
  • the embodiment of the present application does not limit the naming of the "yes” control, and it can also be replaced with a name with the same or similar functions such as a confirmation control.
  • the settings of the smartwatch can be adjusted to help the user of the smartwatch quickly fall asleep.
  • the sleep mode may include: the smartwatch turns on the silent mode or the do not disturb mode, the smartwatch reduces the brightness of the display (blue light), the smartwatch plays sleep-inducing music (such as the sound of wind, rain, or gurgling stream), etc.
  • a smart watch in scenarios where a smart watch is used in conjunction with other electronic devices, for example, a smart watch is used in conjunction with a smart home device (such as a smart desk lamp, smart curtains, smart speakers, etc.), in order to enable the user to enter a sleep state more quickly and improve the user's experience, the smart watch can also send instructions to the smart home device to trigger the smart home device to turn on the sleep mode.
  • a smart home device such as a smart desk lamp, smart curtains, smart speakers, etc.
  • the smart watch can also respond to the confirmation operation and send a sleep mode turn-on instruction to the third electronic device, and the sleep mode turn-on instruction is used to trigger the third electronic device to turn on the sleep mode.
  • the third electronic device may include one or more electronic devices. Exemplary, take the joint use of a smart watch with a smart desk lamp, smart curtains and a smart speaker as an example.
  • the smart watch responds to the confirmation operation sent by the user, it can send a sleep mode turn-on instruction to the smart desk lamp, smart curtains and smart speakers.
  • the smart desk lamp can reduce the brightness of the light.
  • the smart curtains can close the curtains to block the light outside the window.
  • the smart speaker can play sleep-aiding music. In this way, it can help users fall asleep quickly.
  • the smart watch determines the accumulated activity data after the first time point according to the acceleration data, and the smart watch will also determine other first time points according to the activity data. If the smart watch determines a new first time point, S1202 is stopped and S1201 is re-executed to determine the accumulated activity data after the first time point most recently determined by the smart watch. In this way, in S1201, the smart watch keeps determining the accumulated activity data after the most recently determined first time point, which can improve the accuracy of the smart watch in determining whether to send the first prompt information.
  • the smartwatch can also recommend a bedtime or a get-out-of-bed time that meets the sleep efficiency for the user based on the planned sleep efficiency and the planned bedtime or get-out-of-bed time input by the user. For example, if the user inputs a planned sleep efficiency of 80% and a planned get-out-of-bed time of 7:30, the smartwatch can calculate the recommended bedtime, as shown in FIG29 , and the smartwatch can display the recommended bedtime as 23:30.
  • the smart watch can determine the user's motion data based on acceleration data, and the motion data includes at least one of activity data, number of steps, and arm movements.
  • the smart watch can identify the user's getting in and out of bed movements based on the motion data and determine the suspected time points of the user getting in and out of bed.
  • the smart watch determines the user's bed time and bed-leaving time based on the suspected bed-leaving time points. In this way, the smart watch can accurately and quickly determine the user's bed time and bed-leaving time, thereby improving the accuracy of sleep monitoring.
  • the sleep monitoring method provided in the embodiment of the present application can also be applied to electronic devices other than wearable devices.
  • the electronic device as a mobile phone as an example, when the mobile phone is always held in the user's hand, the execution subject of the above S101-S105 can be replaced with the mobile phone, and the mobile phone can implement the sleep monitoring method provided in the embodiment of the present application through the above S101-S105.
  • the mobile phone implements the sleep monitoring method provided in the embodiment of the present application through the above S101-S105.
  • the mobile phone can obtain acceleration data through other electronic devices.
  • the mobile phone can obtain the acceleration data of the user during the monitoring period through a wearable device worn on the user's wrist (such as a smart watch, smart bracelet, etc.).
  • the mobile phone can also obtain the time of falling asleep and the time of waking up from sleep through other electronic devices (such as wearable devices) for determining The user's bedtime and bedtime.
  • the remaining S102, S103 and S105 can be replaced by a mobile phone as the execution subject, so that the mobile phone can monitor the user's sleep.
  • the above electronic device includes hardware structures and/or software modules corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
  • the embodiment of the present application can group the functional modules of the electronic device according to the above method example.
  • each functional module can be grouped according to each function, or two or more functions can be integrated into one processing module.
  • the above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the grouping of modules in the embodiment of the present application is schematic and is only a logical functional grouping. There may be other grouping methods in actual implementation.
  • FIG30 is a schematic diagram of the composition of an electronic device provided in the embodiment of the present application.
  • the electronic device may include: an acquisition module 201 and a processing module 202 .
  • the acquisition module 201 is used to acquire acceleration data of the first electronic device within a monitoring period.
  • the processing module 202 is used to determine the motion data of the user using the first electronic device according to the acceleration data, where the motion data includes at least one of activity data, number of steps and arm movements, and the activity data is used to characterize the user's exercise intensity.
  • the processing module 202 is further configured to determine at least two first time points according to the motion data, wherein the first time points are suspected time points when the user gets in and out of bed.
  • the processing module 202 is further configured to determine a bedtime and a bedtime of the user according to the at least two first time points.
  • the processing module 202 is further configured to monitor the user's sleep according to the time when the user goes to bed and the time when the user gets out of bed.
  • the present application also provides a sleep monitoring device, which can be applied to the electronic device in the above embodiment.
  • the device may include: a processor, and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the functions or steps performed by the smart watch in the above method embodiment when executing the instructions.
  • the embodiment of the present application also provides an electronic device, which may include: a display screen, a memory, and one or more processors.
  • the display screen, the memory, and the processor are coupled.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the processor executes the computer instructions, the electronic device can execute the various functions or steps performed by the smart watch in the above method embodiment.
  • the electronic device includes but is not limited to the above display screen, the memory, and one or more processors.
  • the structure of the electronic device can refer to the structure of the electronic device shown in Figure 2.
  • the embodiment of the present application also provides a chip system, which can be applied to the electronic devices in the aforementioned embodiments.
  • the chip system includes at least one processor 301 and at least one interface circuit 302.
  • the processor 301 can be the processor in the above-mentioned electronic device.
  • the processor 301 and the interface circuit 302 can be interconnected through a line.
  • the processor 301 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 302.
  • the electronic device can execute the various steps executed by the smart watch in the above-mentioned embodiment.
  • the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
  • An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned electronic device (such as a smart watch).
  • An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device (such as a smart watch).
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division. There may be other division methods in actual implementation.
  • multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • the coupling between the displayed or discussed Or the direct coupling or communication connection may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Heart & Thoracic Surgery (AREA)
  • General Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Biomedical Technology (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Theoretical Computer Science (AREA)
  • Biophysics (AREA)
  • Software Systems (AREA)
  • Physiology (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Power Engineering (AREA)
  • Cardiology (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Remote Sensing (AREA)
  • Dentistry (AREA)
  • Computational Linguistics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Pulmonology (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Optics & Photonics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The present application relates to the technical field of terminals, and provides a sleep monitoring method and an electronic device. The specific solution comprises: an electronic device acquires acceleration data of a first electronic device within a monitoring period. The electronic device determines, according to the acceleration data, motion data of a user using the first electronic device, wherein the motion data comprises at least one of activity data, a step number and an arm action. The electronic device determines at least two first time points according to the motion data, the first time point being a suspected getting-into-bed and getting-out-of-bed time point of the user. Furthermore, the electronic device determines a getting-into-bed time point and a getting-out-of-bed time point of the user according to the at least two first time points, and can monitor the sleep of the user according to the getting-into-bed time point and the getting-out-of-bed time point. Therefore, the electronic device can accurately and quickly determine the getting-into-bed time point and the getting-out-of-bed time point of the user, so that the accuracy of sleep monitoring is improved.

Description

一种睡眠监测方法及电子设备Sleep monitoring method and electronic device
本申请要求于2022年10月26日提交国家知识产权局、申请号为202211321498.2、申请名称为“一种睡眠监测方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on October 26, 2022, with application number 202211321498.2 and application name “A Sleep Monitoring Method and Electronic Device”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请涉及终端技术领域,尤其涉及一种睡眠监测方法及电子设备。The present application relates to the field of terminal technology, and in particular to a sleep monitoring method and electronic equipment.
背景技术Background technique
随着现代社会日益激烈的工作步伐和生活节奏,使得越来越多高压生活之下的人们出现失眠等睡眠障碍问题。失眠是一种不容易自然地进入睡眠状态的症状,例如,不易入睡(或称为难以入睡),或是很难维持较长时间的深度睡眠(或称为难以维持睡眠)。严重且持续的失眠问题不仅对人体的身体产生慢性且长期的生理后果,另一方面会使得人体心理极易产生焦虑、抑郁等负面情绪,使得生理和心理产生严重的疾病负荷。因此,需要及时地对失眠问题进行诊断和治疗。With the increasingly intense work and life pace in modern society, more and more people living under high pressure have developed sleep disorders such as insomnia. Insomnia is a symptom of difficulty in falling asleep naturally, for example, difficulty in falling asleep (or difficulty in falling asleep), or difficulty in maintaining deep sleep for a long time (or difficulty in maintaining sleep). Severe and persistent insomnia not only has chronic and long-term physiological consequences on the human body, but also makes the human mind prone to negative emotions such as anxiety and depression, resulting in serious physical and psychological disease burdens. Therefore, it is necessary to diagnose and treat insomnia in a timely manner.
在失眠问题的诊断和治疗过程中,为了分析用户的睡眠质量,通常会将睡眠效率作为参考指标。睡眠效率为用户实际的总睡眠时间与总卧床时间的比值,其中,总卧床时间即为用户下床时间点和上床时间点之差。然而,目前电子设备无法准确、便捷的识别出用户真实地上下床动作,从而无法准确确定出用户的上床时间点和下床时间点。由此可能造成高估或低估用户实际的睡眠效率,从而不能准确地对用户进行睡眠监测,精确地分析用户睡眠质量。In the diagnosis and treatment of insomnia, sleep efficiency is usually used as a reference indicator to analyze the user's sleep quality. Sleep efficiency is the ratio of the user's actual total sleep time to the total time in bed, where the total time in bed is the difference between the time the user gets out of bed and the time he or she goes to bed. However, current electronic devices are unable to accurately and conveniently identify the user's actual actions of getting in and out of bed, and thus are unable to accurately determine the user's time of going to bed and time of getting out of bed. This may result in an overestimation or underestimation of the user's actual sleep efficiency, making it impossible to accurately monitor the user's sleep and accurately analyze the user's sleep quality.
发明内容Summary of the invention
本申请实施例提供一种睡眠监测方法及电子设备,能够准确地确定用户的上床时间点和下床时间点,进而提高睡眠监测的准确性。The embodiments of the present application provide a sleep monitoring method and electronic device, which can accurately determine the time when a user goes to bed and gets out of bed, thereby improving the accuracy of sleep monitoring.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,提供了一种睡眠监测方法,该方法包括:电子设备获取监测时段内第一电子设备的加速度数据。电子设备根据加速度数据确定使用第一电子设备的用户的运动数据,其中,运动数据包括:活动量数据、步数以及手臂动作中的至少一项,活动量数据用于表征用户的运动强度。电子设备根据运动数据确定至少两个第一时间点,第一时间点为用户的疑似上下床时间点。进一步的,电子设备根据至少两个第一时间点确定用户的上床时间点和下床时间点。电子设备根据上床时间点和下床时间点,对用户的睡眠进行监测。In a first aspect, a sleep monitoring method is provided, the method comprising: an electronic device obtains acceleration data of a first electronic device within a monitoring period. The electronic device determines motion data of a user using the first electronic device based on the acceleration data, wherein the motion data includes at least one of activity data, number of steps, and arm movements, and the activity data is used to characterize the user's exercise intensity. The electronic device determines at least two first time points based on the motion data, and the first time points are suspected time points for the user to get in and out of bed. Further, the electronic device determines the time point for the user to go to bed and the time point for the user to get out of bed based on the at least two first time points. The electronic device monitors the user's sleep based on the time point for going to bed and the time point for the user to get out of bed.
该方法中,电子设备能够基于加速度数据,确定出用户的活动量数据,步数及手臂动作中的一种或多种运动数据。电子设备可以根据运动数据识别出用户的上下床动作,确定用户的疑似上下床时间点。进一步的,电子设备根据疑似上下床时间点确定用户的上床时间点和下床时间点。这样,电子设备可以准确、快速地确定用户的上床时间点和下床时间点,进而提高睡眠监测的准确性。In this method, the electronic device can determine the user's activity data, step count, and one or more types of motion data of the arm motion based on the acceleration data. The electronic device can identify the user's getting in and out of bed motion based on the motion data and determine the suspected time point of the user getting in and out of bed. Further, the electronic device determines the user's bed time and bed-leaving time based on the suspected bed-leaving time. In this way, the electronic device can accurately and quickly determine the user's bed-leaving time and bed-leaving time, thereby improving the accuracy of sleep monitoring.
在第一方面的一种可实现方式中,上述监测时段包括多个监测时间点,运动数据包括多个监测时间点的运动数据。电子设备根据运动数据确定至少两个第一时间点,包括:针对多个监测时间点中的每个监测时间点,电子设备确定监测时间点前预设时间内运动数据的变化数据。若变化数据满足预设条件,则电子设备确定监测时间点为第一时间点。在本实现方式中,由于运动数据用于表征使用该电子设备的用户的运动情况,用户在运动的过程中运动数据会产生变化。因此,电子设备可以根据运动数据的变化数据,准确地识别用户的上下床动作,并确定用户的疑似上下床时间点(即第一时间点),以用于进一步的确定用户的上床时间点和下床时间点。In an implementable manner of the first aspect, the above-mentioned monitoring period includes multiple monitoring time points, and the motion data includes motion data of multiple monitoring time points. The electronic device determines at least two first time points based on the motion data, including: for each monitoring time point in the multiple monitoring time points, the electronic device determines the change data of the motion data within a preset time before the monitoring time point. If the change data meets the preset conditions, the electronic device determines that the monitoring time point is the first time point. In this implementation manner, since the motion data is used to characterize the movement of the user using the electronic device, the motion data will change during the user's movement. Therefore, the electronic device can accurately identify the user's getting in and out of bed actions based on the change data of the motion data, and determine the user's suspected getting in and out of bed time point (i.e., the first time point), so as to further determine the user's going to bed time point and getting out of bed time point.
在第一方面的一种可实现方式中,在运动数据包括活动量数据的情况下,预设条件包括:在监测时间点前的第一预设时段内,活动量数据的变化数据大于第一阈值。在运动数据包括步数的情况下,预设条件包括:在监测时间点前的第二预设时段内,所述步数的变化数据大于第二阈值。 在运动数据包括手臂动作的情况下,预设条件包括:在监测时间点前的第三预设时段内,手臂动作满足预设动作的次数大于第三阈值;预设动作包括:手臂摆动动作和手臂竖直向下动作。在本实现方式中,电子设备通过活动量数据、步数和手臂动作分别对应的预设条件,可以准确地识别出用户的上下床动作,以便于进一步确定用户的疑似上下床时间点。In an implementation of the first aspect, when the motion data includes activity data, the preset condition includes: within a first preset period before the monitoring time point, the change data of the activity data is greater than a first threshold. When the motion data includes the number of steps, the preset condition includes: within a second preset period before the monitoring time point, the change data of the number of steps is greater than a second threshold. In the case where the motion data includes arm movements, the preset conditions include: within a third preset period before the monitoring time point, the number of times the arm movement satisfies the preset movement is greater than a third threshold; the preset movement includes: arm swinging movement and arm vertical downward movement. In this implementation, the electronic device can accurately identify the user's getting in and out of bed movement through the preset conditions corresponding to the activity data, the number of steps, and the arm movement, so as to further determine the suspected time point of the user getting in and out of bed.
在第一方面的一种可实现方式中,监测时段包括多个监测时间点,运动数据包括多个监测时间点的运动数据。电子设备根据运动数据确定至少两个第一时间点的方法包括:电子设备将多个监测时间点的运动数据输入预设的检测模型,以获得至少两个第一时间点。在本实现方式中,电子设备根据运动数据通过检测模型可以快速地确定用户的疑似上下床时间点,提高了电子设备确定用户疑似上下床时间点的效率。In an implementation of the first aspect, the monitoring period includes multiple monitoring time points, and the motion data includes motion data of multiple monitoring time points. The method for an electronic device to determine at least two first time points based on the motion data includes: the electronic device inputs the motion data of multiple monitoring time points into a preset detection model to obtain at least two first time points. In this implementation, the electronic device can quickly determine the suspected time points of the user getting in and out of bed through the detection model based on the motion data, thereby improving the efficiency of the electronic device in determining the suspected time points of the user getting in and out of bed.
在第一方面的一种可实现方式中,上述检测模型采用以下方法构建:电子设备获取样本集合,样本集合包括多个时间点的运动数据,以及多个上下床时间点。电子设备采用样本集合对检测模型的初始模型进行训练,以构建检测模型。这样,通过样本集合对检测模型的初始模型进行训练,可以提高构建的检测模型的检测精度,进而提高电子设备确定用户疑似上下床时间点的准确性。In an implementation of the first aspect, the detection model is constructed by the following method: the electronic device obtains a sample set, the sample set includes motion data at multiple time points, and multiple time points for getting in and out of bed. The electronic device uses the sample set to train an initial model of the detection model to construct the detection model. In this way, by training the initial model of the detection model with the sample set, the detection accuracy of the constructed detection model can be improved, thereby improving the accuracy of the electronic device in determining the suspected time points of the user getting in and out of bed.
在第一方面的一种可实现方式中,加速度数据包括:方向两两垂直的第一加速度、第二加速度和第三加速度。在运动数据包括活动量数据的情况下,电子设备根据加速度数据确定活动量数据,包括:采用如下公式(1),确定活动量数据:
In an implementation of the first aspect, the acceleration data includes: a first acceleration, a second acceleration, and a third acceleration, which are perpendicular to each other. When the motion data includes activity data, the electronic device determines the activity data based on the acceleration data, including: using the following formula (1) to determine the activity data:
其中,A为活动量数据,a1为第一加速度,a2为第二加速度,a3为第三加速度。Wherein, A is the activity data, a1 is the first acceleration, a2 is the second acceleration, and a3 is the third acceleration.
在本实现方式中,电子设备通过方向两两垂直的第一加速度、第二加速度和第三加速度确定活动量数据,可以使活动量数据更真实地反映出用户的运动强度,进而提高电子设备根据活动量数据确定用户疑似上下床时间点的准确性。In this implementation, the electronic device determines the activity data through the first acceleration, the second acceleration and the third acceleration which are perpendicular to each other, so that the activity data can more truly reflect the user's exercise intensity, thereby improving the accuracy of the electronic device in determining the suspected time points of the user getting in and out of bed based on the activity data.
在第一方面的一种可实现方式中,加速度数据包括:方向两两垂直的第一加速度、第二加速度和第三加速度。在运动数据包括活动量数据的情况下,活动量数据为加速度数据中的第一加速度,第一加速度为方向与平举的手臂处于同一水平面,并垂直于手臂方向的加速度。在本实现方式中,电子设备根据实际应用场景,将用户存在显著动作的方向的加速度用于表征活动量数据。这样,电子设备确定的活动量数据不仅可以真实地反映出用户的运动强度,而且可以提高电子设备根据加速度数据确定活动量数据的效率。In an implementable manner of the first aspect, the acceleration data includes: a first acceleration, a second acceleration, and a third acceleration, which are perpendicular to each other. In the case where the motion data includes activity data, the activity data is the first acceleration in the acceleration data, and the first acceleration is an acceleration in the same horizontal plane as the raised arm and perpendicular to the direction of the arm. In this implementation, the electronic device uses the acceleration in the direction in which the user has significant movement to characterize the activity data according to the actual application scenario. In this way, the activity data determined by the electronic device can not only truly reflect the user's exercise intensity, but also improve the efficiency of the electronic device in determining the activity data based on the acceleration data.
在第一方面的一种可实现方式中,在手臂动作的第一优势特征大于第四阈值的频次满足第一预设频次时,电子设备确定手臂动作满足手臂摆动动作。其中,第一优势特征用于表征与平举的手臂处于同一水平面内并垂直于手臂方向的动作强度。具体的,第一优势特征采用如下公式(2)确定:
In an implementation of the first aspect, when the frequency of the first dominant feature of the arm action being greater than the fourth threshold meets the first preset frequency, the electronic device determines that the arm action meets the arm swing action. The first dominant feature is used to characterize the intensity of the action that is in the same horizontal plane as the raised arm and perpendicular to the direction of the arm. Specifically, the first dominant feature is determined using the following formula (2):
其中,B1为第一优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手臂处于同一水平面内,并垂直于手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于手臂方向基于重力引发的加速度。这样,电子设备根据第一优势特征可以判断手臂的动作,以准确地确定手臂动作满足手臂摆动动作。Among them, B1 is the first dominant feature, ag,X is the acceleration caused by gravity along the arm direction, ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction. In this way, the electronic device can judge the movement of the arm according to the first dominant feature to accurately determine whether the arm movement meets the arm swinging movement.
在第一方面的一种可实现方式中,在手臂动作的第二优势特征大于第五阈值的频次满足第二预设频次时,电子设备确定手臂动作满足手臂竖直向下动作。其中,第二优势特征用于表征沿手臂方向的动作强度。具体的,第二优势特征采用如下公式(3)确定:
In an implementation of the first aspect, when the frequency of the second dominant feature of the arm action being greater than the fifth threshold meets the second preset frequency, the electronic device determines that the arm action meets the arm vertical downward action. The second dominant feature is used to characterize the intensity of the action along the arm direction. Specifically, the second dominant feature is determined using the following formula (3):
其中,B2为第二优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手臂处于同一水平面内,并垂直于手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于手臂方向基于重力引发的加速度。这样,电子设备根据第二优势特征可以判断手臂的动作,以准确地确定手臂动作满足手臂竖直向下动作。Among them, B2 is the second dominant feature, ag,X is the acceleration caused by gravity along the arm direction, ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction. In this way, the electronic device can judge the movement of the arm according to the second dominant feature to accurately determine that the arm movement satisfies the vertical downward movement of the arm.
在第一方面的一种可实现方式中,电子设备根据至少两个第一时间点确定用户的上床时间点 和下床时间点的方法包括:电子设备获取用户的入睡时间点和出睡时间点。电子设备将至少两个第一时间点中,在入睡时间点之前,并且与入睡时间点时间差最小的第一时间点,确定为上床时间点;电子设备将至少两个第一时间点中,在出睡时间点之后,并且与出睡时间点时间差最小的第一时间点,确定为下床时间点。在本实现方式中,电子设备将入睡时间点之前最接近的用户疑似上下床时间点确定为上床时间点,将出睡时间点之后最接近的用户疑似上下床时间点确定为下床时间点。这样,可以真实地反映出用户的上下床时间,提高电子设备确定上床时间点和下床时间点的准确性。In an implementation of the first aspect, the electronic device determines the user's bedtime based on at least two first time points. The method for determining the time of going to bed and the time of getting out of bed includes: the electronic device obtains the time of falling asleep and the time of waking up of the user. The electronic device determines the first time point before the time of falling asleep and with the smallest time difference with the time of falling asleep as the time of going to bed; the electronic device determines the first time point after the time of waking up and with the smallest time difference with the time of getting out of bed as the time of getting out of bed. In this implementation, the electronic device determines the suspected time of going to bed and getting out of bed that is closest to the time of falling asleep as the time of going to bed, and determines the suspected time of going to bed and getting out of bed that is closest to the time of waking up as the time of getting out of bed. In this way, the time of going to bed and getting out of bed of the user can be truly reflected, and the accuracy of the electronic device in determining the time of going to bed and getting out of bed can be improved.
在第一方面的一种可实现方式中,电子设备根据至少两个第一时间点确定用户的上床时间点和下床时间点的方法包括:电子设备接收来自第二电子设备的疑似上床时间点和疑似下床时间点。电子设备根据至少两个第一时间点、疑似上床时间点和疑似下床时间点,确定上床时间点和下床时间点。这样,电子设备可以结合第二电子设备的疑似上床时间点和疑似下床时间点,确定上床时间点和下床时间点,可以提高电子设备确定上床时间点和下床时间点的准确性。In an implementable manner of the first aspect, a method for an electronic device to determine a user's bedtime and bed-leaving time based on at least two first time points includes: the electronic device receives a suspected bedtime and bed-leaving time from a second electronic device. The electronic device determines the bedtime and bed-leaving time based on the at least two first time points, the suspected bedtime and bed-leaving time. In this way, the electronic device can determine the bedtime and bed-leaving time in combination with the suspected bedtime and bed-leaving time of the second electronic device, which can improve the accuracy of the electronic device in determining the bedtime and bed-leaving time.
在第一方面的一种可实现方式中,电子设备根据至少两个第一时间点、疑似上床时间点和疑似下床时间点,确定上床时间点和下床时间点的方法包括:若至少两个第一时间点中存在与疑似上床时间点的时间差小于第六阈值的第一时间点,则电子设备将疑似上床时间点确定为上床时间点。若至少两个第一时间点中存在与疑似下床时间点的时间差小于第七阈值的第一时间点,则电子设备将疑似下床时间点确定为下床时间点。这样,电子设备结合第二电子设备提供的疑似上床时间点和疑似下床时间点,可以排除其他用户的干扰,准确地确定使用第一电子设备的用户的上床时间点和下床时间点。In an implementable manner of the first aspect, the method for an electronic device to determine a bedtime and a getting-out-of-bed time point based on at least two first time points, a suspected bedtime and a suspected getting-out-of-bed time point includes: if there is a first time point among the at least two first time points whose time difference with the suspected bedtime is less than a sixth threshold, the electronic device determines the suspected bedtime as the bedtime. If there is a first time point among the at least two first time points whose time difference with the suspected getting-out-of-bed time point is less than a seventh threshold, the electronic device determines the suspected getting-out-of-bed time point as the getting-out-of-bed time point. In this way, the electronic device, in combination with the suspected bedtime and suspected getting-out-of-bed time points provided by the second electronic device, can eliminate interference from other users and accurately determine the bedtime and getting-out-of-bed time points of the user using the first electronic device.
在第一方面的一种可实现方式中,电子设备根据至少两个第一时间点确定用户的上床时间点和下床时间点的方法包括:电子设备显示至少两个第一时间点。电子设备接收用户对至少两个第一时间点中的第二时间点和第三时间点的选择操作。电子设备根据选择操作,将第二时间点和第三时间点确定为上床时间点和下床时间点。在本实现方式中,电子设备根据用户的选择操作,确定上床时间点和下床时间点。即由用户根据至少两个疑似上下床时间点确定上床时间点和下床时间点,这样,可以提高用户的使用体验。In an implementable manner of the first aspect, a method for an electronic device to determine a user's bedtime and bed-leaving time based on at least two first time points includes: the electronic device displays at least two first time points. The electronic device receives a user's selection operation for a second time point and a third time point among the at least two first time points. The electronic device determines the second time point and the third time point as the bedtime and bed-leaving time based on the selection operation. In this implementation manner, the electronic device determines the bedtime and bed-leaving time based on the user's selection operation. That is, the user determines the bedtime and bed-leaving time based on at least two suspected bedtime and bed-leaving time points, which can improve the user experience.
在第一方面的一种可实现方式中,该方法还包括:电子设备获取用户的入睡时间点和出睡时间点。电子设备显示至少两个第一时间点中,入睡时间点之前的第一时间点,和出睡时间点之后的第一时间点。电子设备接收用户对至少两个第一时间点中的第二时间点和第三时间点的选择操作。电子设备根据选择操作,将第二时间点和第三时间点确定为上床时间点和下床时间点。在本实现方式中,电子设备根据入睡时间点和出睡时间点去除了会造成干扰的疑似上下床时间点。电子设备仅向用户显示入睡时间点之前的用户疑似上下床时间点,和出睡时间点之后的用户疑似上下床时间点,便于用户快速确定上床时间点和下床时间点,进一步提高了用户的使用体验。In an implementable manner of the first aspect, the method further includes: the electronic device obtains the user's sleeping time and waking time. The electronic device displays at least two first time points, a first time point before the sleeping time, and a first time point after the waking time. The electronic device receives the user's selection operation for the second time point and the third time point of the at least two first time points. According to the selection operation, the electronic device determines the second time point and the third time point as the bedtime and the bedtime. In this implementation, the electronic device removes the suspected bedtime that may cause interference according to the sleeping time and the bedtime. The electronic device only displays to the user the suspected bedtime before the sleeping time, and the suspected bedtime after the bedtime, so that the user can quickly determine the bedtime and the bedtime, further improving the user's experience.
在第一方面的一种可实现方式中,该方法还包括:电子设备根据加速度数据,确定第一时间点之后的累计活动量数据。若活动量累计数据小于第八阈值的时间满足预设时间,电子设备获取入睡参数,入睡参数用于表征用户的入睡情况。若入睡参数不满足第九阈值,电子设备则显示第一提示信息,第一提示信息用于用户确认是否开启睡眠模式。电子设备接收用户的开启睡眠模式的确认操作。电子设备响应确认操作,开启睡眠模式。在本实现方式中,电子设备确定用户的疑似上下床时间点之后,可以根据活动量累计数据和入睡参数,判断用户是否卧床较长时间没有进入睡眠状态。若用户卧床较长时间没有进入睡眠状态,则电子设备向用户显示第一提示信息,以用于用户确认是否开启睡眠模式。如果电子设备接收用户的开启睡眠模式的确认操作,则开启睡眠模式,帮助用户快速进入睡眠状态,提高了用户的使用体验。In an implementable manner of the first aspect, the method further includes: the electronic device determines the accumulated activity data after the first time point according to the acceleration data. If the time when the accumulated activity data is less than the eighth threshold satisfies the preset time, the electronic device obtains the sleeping parameter, and the sleeping parameter is used to characterize the user's sleeping situation. If the sleeping parameter does not meet the ninth threshold, the electronic device displays a first prompt message, and the first prompt message is used for the user to confirm whether to turn on the sleep mode. The electronic device receives the user's confirmation operation to turn on the sleep mode. The electronic device responds to the confirmation operation and turns on the sleep mode. In this implementation, after the electronic device determines the suspected time point of the user getting in and out of bed, it can determine whether the user has been in bed for a long time without entering the sleep state according to the accumulated activity data and the sleeping parameter. If the user has been in bed for a long time without entering the sleep state, the electronic device displays a first prompt message to the user for the user to confirm whether to turn on the sleep mode. If the electronic device receives the user's confirmation operation to turn on the sleep mode, the sleep mode is turned on to help the user quickly enter the sleep state, thereby improving the user's user experience.
在第一方面的一种可实现方式中,电子设备在接收用户的开启睡眠模式的确认操作之后,该方法还包括:电子设备响应确认操作,向第三电子设备发送开启睡眠模式指令,开启睡眠模式指令用于触发第三电子设备开启睡眠模式。在本实现方式中,电子设备响应确认操作,可以向第三电子设备发送开启睡眠模式指令,以使第三电子设备也开启睡眠模式,共同帮助用户快速进入睡眠状态,进一步提高了用户的使用体验。In an implementation of the first aspect, after the electronic device receives a confirmation operation of the user to turn on the sleep mode, the method further includes: the electronic device responds to the confirmation operation and sends a sleep mode turn-on instruction to a third electronic device, where the sleep mode turn-on instruction is used to trigger the third electronic device to turn on the sleep mode. In this implementation, the electronic device responds to the confirmation operation and can send a sleep mode turn-on instruction to the third electronic device, so that the third electronic device also turns on the sleep mode, thereby jointly helping the user quickly enter the sleep state, further improving the user's experience.
在第一方面的一种可实现方式中,电子设备根据上床时间点和下床时间点,对用户的睡眠进 行监测的方法包括:电子设备根据上床时间点和下床时间点,确定睡眠潜伏时长和卧床时长,睡眠潜伏时长为上床时间点与入睡时间点的差值,卧床时长为上床时间点和下床时间点的差值。电子设备根据睡眠潜伏时长和卧床时长显示用户的睡眠分析结果。在本实现方式中,电子设备根据上床时间点和下床时间点,可以确定睡眠潜伏时长和卧床时长,以进一步的确定并显示用户的睡眠分析结果,便于用户及时发现睡眠问题,提高了用户的使用体验。In one implementation of the first aspect, the electronic device processes the user's sleep according to the bedtime and the bedtime. The method for monitoring the sleep status of a user includes: the electronic device determines the sleep latency time and the bed rest time according to the time of going to bed and the time of getting out of bed, the sleep latency time is the difference between the time of going to bed and the time of falling asleep, and the bed rest time is the difference between the time of going to bed and the time of getting out of bed. The electronic device displays the sleep analysis result of the user according to the sleep latency time and the bed rest time. In this implementation, the electronic device can determine the sleep latency time and the bed rest time according to the time of going to bed and the time of getting out of bed, so as to further determine and display the sleep analysis result of the user, so as to facilitate the user to find sleep problems in time and improve the user experience.
在第一方面的一种可实现方式中,在睡眠潜伏时长大于第十阈值的情况下,睡眠分析结果包括:睡眠潜伏时长、卧床时长及第二提示信息,第二提示信息用于提醒用户卧床时间过长。这样,电子设备通过显示第二提示信息,可以使用户及时发现存在卧床时间过长的问题,提高了用户的使用体验。In an implementation of the first aspect, when the sleep latency time is greater than the tenth threshold, the sleep analysis result includes: the sleep latency time, the bed rest time and the second prompt information, and the second prompt information is used to remind the user that the bed rest time is too long. In this way, the electronic device can enable the user to promptly discover the problem of lying in bed for too long by displaying the second prompt information, thereby improving the user's use experience.
在第一方面的一种可实现方式中,在睡眠潜伏时长大于第十阈值的天数大于天数阈值的情况下,睡眠分析结果包括:第三提示信息,第三提示信息用于展示导致睡眠潜伏时长大于第十阈值的因素,和/或展示睡眠改善建议和睡眠改善任务。在本实现方式中,电子设备通过显示第三提示信息,可以使用户及时发现睡眠问题,并可以根据睡眠改善建议和睡眠改善任务及时调整睡眠习惯,提高睡眠质量。这样,进一步提高了用户的使用体验。In an implementation of the first aspect, when the number of days when the sleep latency duration is greater than the tenth threshold is greater than the day threshold, the sleep analysis result includes: a third prompt information, the third prompt information is used to display the factors causing the sleep latency duration to be greater than the tenth threshold, and/or display sleep improvement suggestions and sleep improvement tasks. In this implementation, the electronic device can enable the user to promptly discover sleep problems by displaying the third prompt information, and can promptly adjust sleep habits and improve sleep quality according to the sleep improvement suggestions and sleep improvement tasks. In this way, the user experience is further improved.
第二方面,提供了一种电子设备,包括:获取模块和处理模块。获取模块用于获取监测时段内第一电子设备的加速度数据。处理模块用于根据加速度数据确定使用第一电子设备的用户的运动数据,运动数据包括:活动量数据、步数以及手臂动作中的至少一项,活动量数据用于表征用户的运动强度。处理模块还用于根据运动数据确定至少两个第一时间点,第一时间点为用户的疑似上下床时间点。处理模块还于根据至少两个第一时间点确定用户的上床时间点和下床时间点。处理模块还于根据上床时间点和下床时间点,对用户的睡眠进行监测。In a second aspect, an electronic device is provided, comprising: an acquisition module and a processing module. The acquisition module is used to acquire acceleration data of a first electronic device during a monitoring period. The processing module is used to determine motion data of a user using the first electronic device based on the acceleration data, the motion data comprising: at least one of activity data, number of steps, and arm movements, and the activity data is used to characterize the user's exercise intensity. The processing module is also used to determine at least two first time points based on the motion data, the first time point being the suspected time point for the user to get in and out of bed. The processing module is also used to determine the user's bedtime and bed-leaving time points based on the at least two first time points. The processing module is also used to monitor the user's sleep based on the bedtime and bed-leaving time points.
第三方面,提供了一种电子设备,包括:存储器、一个或多个处理器;存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行上述第一方面任一项所述的方法。In a third aspect, an electronic device is provided, comprising: a memory, and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes any of the methods described in the first aspect.
第四方面,提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项所述的方法。In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions, which, when executed on an electronic device, causes the electronic device to execute any of the methods described in the first aspect.
第五方面,提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得电子设备执行上述第一方面任一项所述的方法。In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, an electronic device executes any method described in the first aspect.
可以理解地,上述第三方面的电子设备,第四方面的计算机可读存储介质,第五方面的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the beneficial effects that can be achieved by the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例示出的一种电子设备的结构示意图;FIG1 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application;
图2为本申请实施例示出的一种电子设备的硬件结构示意图;FIG2 is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application;
图3为本申请实施例示出的一种睡眠监测方法的流程示意图;FIG3 is a schematic diagram of a sleep monitoring method according to an embodiment of the present application;
图4为本申请实施例示出的活动量数据统计图;FIG4 is a statistical diagram of activity data shown in an embodiment of the present application;
图5为本申请实施例示出的步数统计图;FIG5 is a step count diagram shown in an embodiment of the present application;
图6(a)为本申请实施例示出的加速度波形图一;FIG6( a ) is an acceleration waveform diagram 1 shown in an embodiment of the present application;
图6(b)为本申请实施例示出的加速度波形图二;FIG6( b ) is a second acceleration waveform diagram shown in an embodiment of the present application;
图6(c)为本申请实施例示出的加速度波形图三;FIG6( c ) is a third acceleration waveform diagram shown in an embodiment of the present application;
图7为本申请实施例示出的一种智能手表确定第一时间点的方法流程示意图一;FIG. 7 is a flowchart of a method for a smart watch to determine a first time point according to an embodiment of the present application;
图8为本申请实施例示出的一种智能手表确定第一时间点的方法流程示意图二;FIG8 is a second flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application;
图9为本申请实施例示出的一种智能手表确定第一时间点的方法流程示意图三;FIG9 is a third flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application;
图10为本申请实施例示出的一种智能手表确定第一时间点的方法流程示意图四;FIG10 is a fourth flow chart of a method for a smart watch to determine a first time point according to an embodiment of the present application;
图11为本申请实施例示出的睡眠监测方法的应用场景示意图一;FIG11 is a schematic diagram of an application scenario of a sleep monitoring method according to an embodiment of the present application;
图12为本申请实施例示出的智能手表确定上床时间点和下床时间点的方法流程示意图一;FIG12 is a flowchart of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
图13为本申请实施例示出的智能手表确定上床时间点和下床时间点的原理示意图;FIG13 is a schematic diagram showing the principle of determining the time to go to bed and the time to get out of bed by a smart watch according to an embodiment of the present application;
图14为本申请实施例示出的智能手表确定上床时间点和下床时间点的方法流程示意图二; FIG14 is a second flow chart of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
图15为本申请实施例示出的显示第一时间点的示意图一;FIG15 is a schematic diagram 1 showing a first time point according to an embodiment of the present application;
图16为本申请实施例示出的显示第一时间点的示意图二;FIG16 is a second schematic diagram showing a first time point according to an embodiment of the present application;
图17为本申请实施例示出的智能手表确定上床时间点和下床时间点的方法流程示意图三;FIG17 is a flowchart diagram of a method for determining a time to go to bed and a time to get out of bed by a smart watch according to an embodiment of the present application;
图18为本申请实施例示出的智能手表确定上床时间点和下床时间点的方法流程示意图四;FIG18 is a fourth flow chart of a method for determining a bedtime and a bedtime by a smartwatch according to an embodiment of the present application;
图19为本申请实施例示出的睡眠监测方法的应用场景示意图二;FIG19 is a second schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application;
图20为本申请实施例示出的睡眠监测方法的应用场景示意图三;FIG20 is a third schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图21为本申请实施例示出的睡眠监测方法的应用场景示意图四;FIG21 is a fourth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图22为本申请实施例示出的智能手表进行睡眠监测的方法流程示意图一;FIG22 is a flowchart of a method for performing sleep monitoring using a smartwatch according to an embodiment of the present application;
图23为本申请实施例示出的睡眠监测方法的应用场景示意图五;FIG23 is a fifth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图24为本申请实施例示出的智能手表进行睡眠监测的方法流程示意图二;FIG24 is a second flow chart of a method for performing sleep monitoring using a smartwatch according to an embodiment of the present application;
图25为本申请实施例示出的睡眠监测方法的应用场景示意图六;FIG25 is a sixth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图26为本申请实施例示出的睡眠监测方法的应用场景示意图七;FIG26 is a seventh schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图27为本申请实施例示出的智能手表进行睡眠监测的方法流程示意图三;FIG27 is a third flow chart of a method for performing sleep monitoring by a smartwatch according to an embodiment of the present application;
图28为本申请实施例示出的睡眠监测方法的应用场景示意图八;FIG28 is a schematic diagram of an eighth application scenario of the sleep monitoring method according to an embodiment of the present application;
图29为本申请实施例示出的睡眠监测方法的应用场景示意图九;FIG29 is a ninth schematic diagram of an application scenario of the sleep monitoring method according to an embodiment of the present application;
图30为本申请实施例示出的一种电子设备的组成示意图;FIG30 is a schematic diagram of the composition of an electronic device shown in an embodiment of the present application;
图31为本申请实施例示出的一种芯片系统的组成示意图。FIG31 is a schematic diagram of the composition of a chip system shown in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, "/" indicates that the objects associated before and after are in an "or" relationship, for example, A/B can represent A or B; "and/or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for easy understanding.
目前,人们对失眠等睡眠障碍问题越来越重视。其中,睡眠认知行为(cognitive behavioral therapy for insomnia,CBTI)疗法是一种常用的治疗失眠的疗法。CBTI疗法主要采用睡眠限制方法,具体的:睡眠限制方法首先通过限制失眠患者的卧床时间,不断提升失眠患者的睡眠效率。然后,在保障睡眠效率的同时,逐渐增加失眠患者的卧床时间,以改善失眠患者的失眠情况。可见,在失眠问题的诊断和治疗过程中,为了分析失眠患者的睡眠质量,通常会将睡眠效率作为参考指标。睡眠效率为失眠患者实际的总睡眠时间与总卧床时间的比值。其中,总卧床时间即为失眠患者的下床时间点和上床时间点之差。At present, people pay more and more attention to sleep disorders such as insomnia. Among them, cognitive behavioral therapy for insomnia (CBTI) therapy is a commonly used therapy for insomnia. CBTI therapy mainly adopts the sleep restriction method. Specifically: the sleep restriction method first limits the bed time of insomnia patients to continuously improve the sleep efficiency of insomnia patients. Then, while ensuring sleep efficiency, the bed time of insomnia patients is gradually increased to improve the insomnia of insomnia patients. It can be seen that in the diagnosis and treatment of insomnia problems, in order to analyze the sleep quality of insomnia patients, sleep efficiency is usually used as a reference indicator. Sleep efficiency is the ratio of the actual total sleep time of insomnia patients to the total bed time. Among them, the total bed time is the difference between the time when insomnia patients get out of bed and the time when they go to bed.
通常,可采用人工手动记录下床时间点和上床时间点的方式获取总卧床时间。具体的,用户每日睡眠完成后,手动记录自身的上床时间点和下床时间点,以进一步根据上床时间点和下床时间点确定总卧床时间。但是,由于需要用户每次睡眠完成后再进行记录,不能及时的获取下床时间点和上床时间点,将影响失眠问题检测和治疗的及时性。并且,人工手动记录的方式,会存在记录误差和记忆偏差,从而导致记录的上床时间点和下床时间点的准确性较低。Usually, the total time in bed can be obtained by manually recording the time of getting out of bed and the time of going to bed. Specifically, after the user finishes sleeping every day, he manually records his own time of going to bed and the time of getting out of bed, so as to further determine the total time in bed based on the time of going to bed and the time of getting out of bed. However, since the user needs to record after each sleep, the time of getting out of bed and the time of going to bed cannot be obtained in time, which will affect the timeliness of insomnia detection and treatment. In addition, the manual recording method will have recording errors and memory biases, resulting in low accuracy of the recorded time of going to bed and the time of getting out of bed.
在相关技术中,还可以通过电子设备确定用户的总卧床时间。例如,可以根据电子设备的使用时间确定用户的总卧床时间。如果用户在入睡前和出睡后使用电子设备(例如手机),则当用户使用电子设备时,确定该用户处于未卧床状态,否则确定该用户处于卧床状态。但是,由于电 子设备使用时间本质上并非用户实际的上床时间点和下床时间点之差,并不能真实地反映出用户实际的卧床时间。因此,根据电子设备使用时间确定用户的总卧床时间的准确性较低。In the related art, the total time a user spends in bed can also be determined by electronic devices. For example, the total time a user spends in bed can be determined based on the time the electronic device is used. If a user uses an electronic device (such as a mobile phone) before and after falling asleep, then when the user uses the electronic device, it is determined that the user is not in bed, otherwise it is determined that the user is in bed. The sub-device usage time is essentially not the difference between the user's actual bedtime and bedtime, and cannot truly reflect the user's actual bedtime. Therefore, the accuracy of determining the user's total bedtime based on the electronic device usage time is low.
又例如,还可以通过智能家居(例如智能床垫)确定用户的总卧床时间。具体的,智能床垫可以根据自身的受力变化,检测用户的上床动作和下床动作。示例性的,智能床垫若检测到在一个时间点的受力变大并满足预设条件时,则确定该时间点用户存在上床动作,该时间点即为上床时间点。智能床垫若检测到在一个时间点的受力变小并满足预设条件时,则确定该时间点用户存在下床动作,该时间点即为下床时间点。进而智能床垫可以根据下床时间点和上床时间点,得到总卧床时间。For another example, the user's total bed time can also be determined through smart home (such as smart mattress). Specifically, the smart mattress can detect the user's bed-going and bed-getting actions based on its own force changes. Exemplarily, if the smart mattress detects that the force at a time point becomes larger and meets the preset conditions, it is determined that the user has a bed-going action at that time point, and this time point is the bed-going time point. If the smart mattress detects that the force at a time point becomes smaller and meets the preset conditions, it is determined that the user has a bed-getting action at that time point, and this time point is the bed-getting time point. Then the smart mattress can obtain the total bed time based on the bed-getting time point and the bed-getting time point.
再例如,还可以通过摄像头和雷达等装置通过图像识别确定用户的总卧床时间。具体的,摄像头和雷达等装置可以通过获取用户的动作信息(例如用户的动作图像),检测用户的上床动作和下床动作,进而确定下床时间点和上床时间点,得到总卧床时间。For another example, the total time a user spends in bed can be determined by image recognition using devices such as cameras and radars. Specifically, devices such as cameras and radars can obtain the user's motion information (such as the user's motion image), detect the user's actions of getting into bed and getting out of bed, and then determine the time points of getting out of bed and going to bed to obtain the total time spent in bed.
但是,上述智能床垫、摄像头和雷达等设备的成本较高,普及性较差。并且,在多用户的应用场景下,无法分别准确地确定出每一个用户的下床时间点和上床时间点,从而导致对于每个用户确定的总卧床时间的准确性较低。However, the above-mentioned smart mattresses, cameras, radars and other equipment are expensive and not widely available. Moreover, in multi-user application scenarios, it is impossible to accurately determine the time for each user to get out of bed and the time for going to bed, resulting in low accuracy in the total bed time determined for each user.
又例如,还可以通过加速度传感器检测用户的姿态以确定用户的总卧床时间。具体的,通过获取佩戴于用户手臂或胸部的加速度传感器的加速度数据,检测用户的躺、站、坐、走等姿态,结合姿态的变化,来识别用户的上床动作和下床动作。但是,通过加速度传感器检测用户的姿态,仅能确定用户的姿态变化,如用户从躺姿转换至站姿、或者站姿转换至躺姿等。并无法确定在躺姿状态下,用户实际是躺在床上睡觉,还是躺在沙发上看电视,从而无法准确地识别出用户的上床动作和下床动作。并且,在实际应用中,由于用户的佩戴、生活习惯不同,不同用户的姿态差异较大。因此,通过加速度传感器的加速度数据进行姿态识别的难度较大,准确性较低。For another example, the user's posture can be detected by an acceleration sensor to determine the user's total bed time. Specifically, by acquiring the acceleration data of the acceleration sensor worn on the user's arm or chest, the user's postures such as lying, standing, sitting, and walking are detected, and the user's bed-going and bed-out actions are identified in combination with the change of posture. However, by detecting the user's posture by an acceleration sensor, only the user's posture change can be determined, such as the user's transition from a lying position to a standing position, or from a standing position to a lying position. It is not possible to determine whether the user is actually lying on the bed to sleep, or lying on the sofa to watch TV in the lying position, so that the user's bed-going and bed-out actions cannot be accurately identified. Moreover, in actual applications, due to different users' wearing and living habits, the postures of different users vary greatly. Therefore, it is difficult to perform posture recognition through the acceleration data of the acceleration sensor, and the accuracy is low.
综上,上述相关技术中,电子设备均无法准确、便捷的识别出用户真实地上下床动作,从而无法准确确定出用户的上床时间点和下床时间点,进而无法确定用户准确地卧床时间。由此可能造成高估或低估用户实际的睡眠效率,不能准确地对用户进行睡眠监测,精确地分析用户睡眠质量。In summary, in the above-mentioned related technologies, electronic devices cannot accurately and conveniently identify the user's actual actions of getting in and out of bed, and thus cannot accurately determine the time when the user goes to bed and gets out of bed, and further cannot determine the user's accurate bedtime. This may overestimate or underestimate the user's actual sleep efficiency, and cannot accurately monitor the user's sleep and accurately analyze the user's sleep quality.
本申请实施例提供一种睡眠监测方法,该方法可以应用于电子设备。采用本实施例提供的方法,电子设备可以基于电子设备的加速度数据,确定使用该电子设备的用户的运动数据,以识别出用户的上下床动作,并确定用户的疑似上下床时间点。进一步的电子设备可以根据疑似上下床时间点确定用户的上床时间点和下床时间点,以用于对用户的睡眠进行监测。这样,电子设备基于加速度数据可以准确地确定用户的上床时间点和下床时间点,进而提高睡眠监测的准确性。An embodiment of the present application provides a sleep monitoring method, which can be applied to electronic devices. Using the method provided in this embodiment, the electronic device can determine the motion data of the user using the electronic device based on the acceleration data of the electronic device, so as to identify the user's getting in and out of bed actions, and determine the suspected time points of the user getting in and out of bed. Further, the electronic device can determine the user's bed time and bed-leaving time based on the suspected bed-leaving time points, so as to monitor the user's sleep. In this way, the electronic device can accurately determine the user's bed time and bed-leaving time based on the acceleration data, thereby improving the accuracy of sleep monitoring.
示例性的,本申请实施例中的电子设备可以为手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴设备,可穿戴设备包括但不限于智能手表、智能手环、智能脚环、无线耳机、智能眼镜、智能头盔等。本申请实施例对电子设备的具体类型不作任何限制。Exemplarily, the electronic devices in the embodiments of the present application may be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, as well as cellular phones, personal digital assistants (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, and wearable devices include but are not limited to smart watches, smart bracelets, smart anklets, wireless headphones, smart glasses, smart helmets, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
下面以电子设备100为可穿戴设备为例进行说明。The following description will be given by taking the electronic device 100 as a wearable device as an example.
示例性的,图1示出了电子设备100的一种结构示意图,该电子设备100可佩带在用户的手腕上。该电子设备100包括显示屏101以及固定带102,显示屏101用于显示时间以及用户触摸点击以显示其他相关内容,固定带102用于将电子设备100固定于用户手腕。For example, Fig. 1 shows a schematic diagram of the structure of an electronic device 100, which can be worn on a user's wrist. The electronic device 100 includes a display screen 101 and a fixing strap 102, wherein the display screen 101 is used to display time and other related content when the user touches and clicks, and the fixing strap 102 is used to fix the electronic device 100 on the user's wrist.
示例性的,图2示出了电子设备100的一种硬件结构示意图。Exemplarily, FIG. 2 shows a schematic diagram of a hardware structure of the electronic device 100 .
电子设备100可以包括处理器110,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,传感器模块180,按键190,马达191,指示器192,以及显示屏194等。其中传感器模块180可以包括陀螺仪传感器180A,加速度传感器180B,触摸传感器180C,环境光传感器180D等。The electronic device 100 may include a processor 110, 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, a motor 191, an indicator 192, and a display screen 194. The sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a touch sensor 180C, an ambient light sensor 180D, and the like.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另 一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understandable that the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In some embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown 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 (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. 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, etc.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a 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 a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect 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 provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination 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 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process 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 convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
无线通信模块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 can provide wireless communication solutions for the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and transmit it via the antenna 2. Converted into electromagnetic waves and radiated out.
在一些实施例中,电子设备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 electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 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), wideband 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. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。在本实施例中,显示屏194可以为图1中所示的显示屏101。显示屏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的正整数。The display screen 194 is used to display images, videos, etc. In this embodiment, the display screen 194 can be the display screen 101 shown in FIG. 1. The 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 can include 1 or N display screens 194, where N is a positive integer greater than 1.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。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 speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
陀螺仪传感器180A可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180A确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180A可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180A检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现 防抖。陀螺仪传感器180A还可以用于导航,体感游戏场景。The gyro sensor 180A can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyro sensor 180A. The gyro sensor 180A can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180A detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement, thereby achieving Anti-shake. The gyroscope sensor 180A can also be used for navigation and somatosensory gaming scenarios.
加速度传感器180B可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180B can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
环境光传感器180D用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180D也可用于拍照时自动调节白平衡。环境光传感器180D还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180D is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180D can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180D can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting 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 the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
在一些实施例中,如果电子设备100为手机,则电子设备100还可以包括:外部存储器接口,耳机接口,摄像头,以及用户标识模块(subscriber identification module,SIM)卡接口。In some embodiments, if the electronic device 100 is a mobile phone, the electronic device 100 may also include: an external memory interface, an earphone interface, a camera, and a subscriber identification module (SIM) card interface.
其中,外部存储器接口可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
耳机接口用于连接有线耳机。耳机接口可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone jack is used to connect a wired headphone. The headphone jack may be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
SIM卡接口用于连接SIM卡。SIM卡可以通过插入SIM卡接口,或从SIM卡接口拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口也可以兼容不同类型的SIM卡。SIM卡接口也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface is used to connect the SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface or pulling it out from the SIM card interface. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards can be the same or different. The SIM card interface can also be compatible with different types of SIM cards. The SIM card interface can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
以下以电子设备为可穿戴设备为例,具体的,以可穿戴设备为智能手表,该智能手表佩带在用户的手腕上,通过该智能手表对用户进行睡眠监测为例,对本申请实施例提供的睡眠监测方法进行说明。以下实施例中的方法可以在具有图2所示硬件结构的电子设备中实现。图3为本申请实施例示出的睡眠监测方法的流程示意图,如图3所示,该方法可以包括如下S101-S105:The following takes the electronic device as a wearable device as an example, specifically, the wearable device is a smart watch, which is worn on the wrist of the user, and the sleep monitoring of the user is performed by the smart watch as an example to illustrate the sleep monitoring method provided in the embodiment of the present application. The method in the following embodiment can be implemented in an electronic device having the hardware structure shown in Figure 2. Figure 3 is a flow chart of the sleep monitoring method shown in the embodiment of the present application. As shown in Figure 3, the method may include the following S101-S105:
S101、智能手表获取监测时间段内该智能手表的加速度数据。S101. The smart watch obtains acceleration data of the smart watch within a monitoring period.
具体的,在用户想要进行睡眠监测时,可开启智能手表的睡眠监测功能。智能手表响应于该开启操作,启动睡眠监测功能,以对用户进行睡眠监测。在用户想要结束睡眠监测时,可关闭智能手表的睡眠监测功能。智能手表响应于该关闭操作,可关闭睡眠监测功能,以结束对用户睡眠的监测。智能手表从启动睡眠监测功能到关闭睡眠监测功能之间的时间段可以为上述监测时间段。 智能手表可以实时获取监测时间段内的加速度数据,以用于进一步确定用户的运动数据。Specifically, when the user wants to perform sleep monitoring, the sleep monitoring function of the smart watch can be turned on. In response to the turn-on operation, the smart watch starts the sleep monitoring function to monitor the sleep of the user. When the user wants to end the sleep monitoring, the sleep monitoring function of the smart watch can be turned off. In response to the turn-off operation, the smart watch can turn off the sleep monitoring function to end the monitoring of the user's sleep. The time period from when the sleep monitoring function of the smart watch is turned on to when the sleep monitoring function is turned off can be the above-mentioned monitoring time period. Smart watches can obtain acceleration data in real time during the monitoring period to further determine the user's motion data.
在一种实现方式中,智能手表可以通过如图2所示的加速度传感器180B获取加速度数据。加速度传感器180B可以检测智能手表在不同方向上加速度的大小,以用于确定用户的运动数据。例如,智能手表需要检测用户的手臂动作,则可以获取沿手臂方向的加速度、在与平举手臂处于同一水平面并垂直于手臂的方向的加速度以及在与平举手臂处于同一竖直面并垂直于手臂的方向的加速度,这样,以便于准确地识别出用户的手臂动作。In one implementation, the smart watch can obtain acceleration data through the acceleration sensor 180B shown in FIG. 2. The acceleration sensor 180B can detect the magnitude of the acceleration of the smart watch in different directions to determine the user's motion data. For example, if the smart watch needs to detect the user's arm movement, it can obtain the acceleration along the arm direction, the acceleration in the same horizontal plane as the horizontally raised arm and perpendicular to the arm direction, and the acceleration in the same vertical plane as the horizontally raised arm and perpendicular to the arm direction, so as to accurately identify the user's arm movement.
在本申请实施例中,上述加速度数据可以包括三轴(或称为三个方向)的加速度,例如可以包括:方向两两垂直的第一加速度、第二加速度和第三加速度。In the embodiment of the present application, the above acceleration data may include accelerations in three axes (or three directions), for example, may include: a first acceleration, a second acceleration, and a third acceleration whose directions are perpendicular to each other.
S102、智能手表根据加速度数据确定使用该智能手表的用户的运动数据。S102: The smart watch determines the motion data of the user using the smart watch according to the acceleration data.
在本申请实施例中,运动数据可以用于表征使用该智能手表的用户的运动情况,运动数据可以由智能手表根据加速度数据确定得到。由于用户在运动的过程中,在不同的方向会产生不同的加速度。因此,智能手表可以根据加速度数据,确定用户的运动数据。In the embodiment of the present application, the motion data can be used to characterize the motion of the user using the smart watch, and the motion data can be determined by the smart watch based on the acceleration data. Since the user will generate different accelerations in different directions during the motion, the smart watch can determine the user's motion data based on the acceleration data.
在一些实施例中,由于用户在床上和床下的运动情况不同,例如,用户在床上的活动量小于在床下的活动量、用户在上床之后步数会减小、用户在下床之后步数会增加以及用户在床上的手臂摆动动作的次数会小于用户在床下的手臂摆动动作的次数等。示例性的,如图4所示,本申请实施例示出的活动量数据统计图,由图4可见,由于用户的运动情况不同,不同时间用户的活动量不同。如图5所示,本申请实施例示出的步数统计图,由图5可见,由于用户的运动情况不同,不同时间用户的步数也不同。因此,在本实施例中,为了智能手表准确地识别用户的上下床动作,运动数据可以包括:活动量数据、步数以及手臂动作中的至少一项,其中,活动量数据用于表征用户的运动强度。In some embodiments, due to the different motion conditions of the user in bed and out of bed, for example, the user's activity in bed is less than that out of bed, the number of steps of the user will decrease after getting into bed, the number of steps of the user will increase after getting out of bed, and the number of arm swinging movements of the user in bed will be less than the number of arm swinging movements of the user out of bed, etc. Exemplarily, as shown in FIG4, the activity data statistics graph shown in the embodiment of the present application, as can be seen from FIG4, due to the different motion conditions of the user, the activity of the user is different at different times. As shown in FIG5, the step statistics graph shown in the embodiment of the present application, as can be seen from FIG5, due to the different motion conditions of the user, the number of steps of the user is also different at different times. Therefore, in this embodiment, in order for the smart watch to accurately identify the user's getting in and out of bed movements, the motion data may include: at least one of activity data, step number, and arm movements, wherein the activity data is used to characterize the user's motion intensity.
智能手表可以根据加速度数据分别确定活动量数据、步数以及手臂动作,具体的:Smart watches can determine activity data, steps, and arm movements based on acceleration data, specifically:
在运动数据包括活动量数据的情况下,在一种实现方式中,智能手表可以根据三个方向两两垂直的加速度,确定活动量数据。示例性的,智能手表获取的加速度数据包括:方向两两垂直的第一加速度、第二加速度和第三加速度。则智能手表可采用如下公式(1),确定活动量数据:
In the case where the motion data includes activity data, in one implementation, the smartwatch can determine the activity data based on accelerations in three directions that are perpendicular to each other. Exemplarily, the acceleration data acquired by the smartwatch includes: a first acceleration, a second acceleration, and a third acceleration in directions that are perpendicular to each other. Then the smartwatch can use the following formula (1) to determine the activity data:
其中,A为活动量数据,a1为第一加速度,a2为第二加速度,a3为第三加速度。Wherein, A is the activity data, a1 is the first acceleration, a2 is the second acceleration, and a3 is the third acceleration.
在又一种实现方式中,如果在实际应用中,用户沿一个方向的动作更加显著,则可以使用该方向的加速度表征活动量数据。在本申请实施例的应用场景中,智能手表佩带在用户的手腕上,用户在上下床的过程中,在沿与平举的手臂处于同一水平面并垂直于手臂的方向的动作更加显著,因此智能手表还可以根据该方向的加速度确定活动量数据,如将该方向的加速作为用户的活动量数据。In another implementation, if in actual application, the user's movements in one direction are more significant, the acceleration in this direction can be used to characterize the activity data. In the application scenario of the embodiment of the present application, the smart watch is worn on the user's wrist. When the user gets in and out of bed, the movement in the direction that is in the same horizontal plane as the raised arm and perpendicular to the arm is more significant. Therefore, the smart watch can also determine the activity data based on the acceleration in this direction, such as using the acceleration in this direction as the user's activity data.
在运动数据包括步数的情况下,智能手表可以根据加速度数据的周期性变化特征确定步数。具体的,用户在运动时,会在空间的三个方向(例如,沿用户运动的前进方向、在水平面内垂直于用户运动的前进方向的方向以及在竖直面内垂直于用户运动的前进方向的方向)分别产生一个加速度。用户在运动的过程中,三个方向中至少有一个方向的加速度是随着时间变化呈现周期性变化的。例如,用户沿直线向前奔跑时,随着用户双脚的交替抬起和落地,在竖直面内垂直于前进方向的加速度均会呈现周期性变化。周期性变化的加速度随着时间的变化而变化,以周期性变化的加速度的数值为纵轴,以时间为横轴,则该周期性变化的加速度的曲线总体呈现为一个正弦曲线。在用户运动过程中,每一次步伐都会对应一个正弦曲线中的峰值,可以把一次峰值记为一步。这样,智能手表可以实现根据加速度数据确定步数。In the case where the motion data includes the number of steps, the smart watch can determine the number of steps based on the periodic change characteristics of the acceleration data. Specifically, when the user is exercising, an acceleration is generated in three directions in space (for example, along the forward direction of the user's movement, in the horizontal plane perpendicular to the forward direction of the user's movement, and in the vertical plane perpendicular to the forward direction of the user's movement). During the user's movement, the acceleration in at least one of the three directions changes periodically over time. For example, when the user runs forward in a straight line, as the user's feet are alternately lifted and landed, the acceleration perpendicular to the forward direction in the vertical plane will show periodic changes. The periodically changing acceleration changes with time, with the value of the periodically changing acceleration as the vertical axis and time as the horizontal axis, the curve of the periodically changing acceleration generally presents a sine curve. During the user's movement, each step will correspond to a peak in a sine curve, and a peak can be recorded as one step. In this way, the smart watch can determine the number of steps based on the acceleration data.
在运动数据包括手臂动作的情况下,智能手表获取的加速度数据中可以包括多个方向的加速度,智能手表可以根据多个方向的加速度,确定每个方向的优势特征,以用于确定用户的手臂动作,其中优势特征用于表征用户的动作强度。如果用户的手臂在一个方向上的动作越显著,则在该方向的动作强度越大,即优势特征越大。In the case where the motion data includes arm movements, the acceleration data acquired by the smartwatch may include accelerations in multiple directions. The smartwatch may determine the dominant feature in each direction based on the accelerations in multiple directions to determine the user's arm movements, wherein the dominant feature is used to characterize the intensity of the user's movements. If the user's arm movement in one direction is more significant, the intensity of the movement in that direction is greater, i.e., the dominant feature is greater.
由于每个方向的原始加速度中均包括了基于重力引发的加速度和基于肌肉力量产生的加速度两部分。为了智能手表可以准确地判断用户的手臂动作,智能手表需要在每个方向的加速度中去除基于肌肉力量产生的加速度,保留基于重力引发的加速度。例如,智能手表可以通过带通滤波 的方法提取原始加速度中基于肌肉力量产生的加速度,原始加速度中剩余部分的加速度即为基于重力引发的加速度。如图6(a)所示的波形图为第一方向的原始加速度波形图。如图6(b)所示的波形图为通过带通滤波提取的第一方向的基于肌肉力量产生的加速度波形图。如图6(c)所示的波形图为第一方向的基于重力引发的加速度波形图。智能手表可将如图6(c)所示的波形图对应的加速度确定为第一方向的基于重力引发的加速度。Since the original acceleration in each direction includes the acceleration caused by gravity and the acceleration generated by muscle force, in order for the smart watch to accurately judge the user's arm movement, the smart watch needs to remove the acceleration generated by muscle force from the acceleration in each direction and retain the acceleration caused by gravity. For example, the smart watch can use bandpass filtering The acceleration generated by muscle force in the original acceleration is extracted by the method, and the remaining acceleration in the original acceleration is the acceleration caused by gravity. The waveform shown in Figure 6(a) is the original acceleration waveform in the first direction. The waveform shown in Figure 6(b) is the acceleration waveform in the first direction generated by muscle force extracted by bandpass filtering. The waveform shown in Figure 6(c) is the acceleration waveform in the first direction caused by gravity. The smart watch can determine the acceleration corresponding to the waveform shown in Figure 6(c) as the acceleration caused by gravity in the first direction.
在一种实现方式中,智能手表根据不同方向基于重力引发的加速度可以确定每个方向的优势特征。以计算第一方向的优势特征为例,第一方向的优势特征可通过以下公式(2)计算得到:
In one implementation, the smartwatch can determine the dominant feature of each direction based on the acceleration caused by gravity in different directions. Taking the calculation of the dominant feature of the first direction as an example, the dominant feature of the first direction can be calculated by the following formula (2):
其中,B为第一方向的优势特征,ag,1为第一方向基于重力引发的加速度,ag,2为第二方向基于重力引发的加速度,ag,3为第三方向基于重力引发的加速度。其中,第一方向、第二方向与第三方向两两垂直。Wherein, B is the dominant feature of the first direction, a g,1 is the acceleration caused by gravity in the first direction, a g,2 is the acceleration caused by gravity in the second direction, and a g,3 is the acceleration caused by gravity in the third direction. The first direction, the second direction and the third direction are perpendicular to each other.
进一步的,智能手表根据各个方向的优势特征确定用户的手臂动作,优势特征越大的方向,用户的手臂在该方向的动作越显著。例如,如果沿第一方向的优势特征较大,则可确定用户的手臂沿第一方向存在显著动作。这样,智能手表根据不同方向的优势特征准确地确定用户的手臂动作。Furthermore, the smartwatch determines the user's arm movement according to the dominant features in each direction. The direction with the larger dominant feature is the more significant the user's arm movement in that direction. For example, if the dominant feature along the first direction is larger, it can be determined that the user's arm has significant movement along the first direction. In this way, the smartwatch accurately determines the user's arm movement according to the dominant features in different directions.
S103、智能手表根据运动数据确定至少两个第一时间点,该第一时间点为用户的疑似上下床时间点。S103. The smart watch determines at least two first time points according to the motion data, where the first time points are suspected time points for the user to get in and out of bed.
在本申请实施例中,由于运动数据用于表征使用该智能手表的用户的运动情况,因此,智能手表可以根据运动数据,识别用户的上下床动作,从而确定用户的疑似上下床时间点。通常,在一个监测时段内,用户至少存在一个上床动作和一个下床动作。因此,为了提高确定上床时间点和下床时间点的准确性,智能手表可以根据运动数据确定至少两个第一时间点(即疑似上下床时间点),以用于进一步确定用户的上床时间点和下床时间点。In the embodiment of the present application, since the motion data is used to characterize the motion of the user using the smart watch, the smart watch can identify the user's getting in and out of bed actions based on the motion data, thereby determining the user's suspected getting in and out of bed time points. Usually, within a monitoring period, the user has at least one going-in-bed action and one getting-out-of-bed action. Therefore, in order to improve the accuracy of determining the time points of going to bed and getting out of bed, the smart watch can determine at least two first time points (i.e., suspected getting-in-bed time points) based on the motion data, so as to further determine the time points of going to bed and getting out of bed.
在一些实施例中,智能手表可以根据监测时段内运动数据的变化情况,确定第一时间点。具体的,在本实施例中,监测时段包括多个监测时间点,相邻两个监测时间点的时间间隔可以相同,也可以不相同,本申请对此不做具体限定。以下实施例以监测时段包括多个相同时间间隔的监测时间点为例进行说明,即智能手表在监测时段内以相同时间间隔,例如每隔1秒(s),获取一次智能手表的加速度数据。这样,运动数据中包括多个监测时间点的运动数据。In some embodiments, the smart watch can determine the first time point according to the change of motion data during the monitoring period. Specifically, in this embodiment, the monitoring period includes multiple monitoring time points, and the time intervals between two adjacent monitoring time points may be the same or different, and this application does not make specific limitations on this. The following embodiments are explained by taking the monitoring period including multiple monitoring time points with the same time interval as an example, that is, the smart watch obtains the acceleration data of the smart watch once at the same time interval during the monitoring period, for example, every 1 second (s). In this way, the motion data includes motion data of multiple monitoring time points.
智能手表针对每一个监测时间点,确定该监测时间点前预设时间内运动数据的变化数据。若智能手表判断该变化数据满足预设条件,则确定该监测时间点为第一时间点。The smartwatch determines the change data of the motion data within the preset time before each monitoring time point, and determines the monitoring time point as the first time point if the smartwatch determines that the change data meets the preset conditions.
在一种实现方式中,在运动数据包括活动量数据的情况下,上述预设条件包括:在监测时间点前的第一预设时段内,活动量数据的变化数据大于第一阈值。其中,活动量数据的变化数据以下一种或多种:活动量数据的均值、活动量数据的方差等。第一阈值可以根据实际应用需求进行设置,第一阈值越小,智能手表确定第一时间点的精度越高,本申请对第一阈值不做具体限定。In one implementation, when the motion data includes activity data, the above-mentioned preset condition includes: within a first preset period before the monitoring time point, the change data of the activity data is greater than a first threshold. The change data of the activity data is one or more of the following: the mean of the activity data, the variance of the activity data, etc. The first threshold can be set according to actual application requirements. The smaller the first threshold, the higher the accuracy of the smart watch in determining the first time point. This application does not specifically limit the first threshold.
在一种示例中,以活动量数据的变化数据为活动量数据的均值为例,预设条件可以包括:在监测时间点前30s内,活动量数据的均值大于1米每平方秒(m/s2)。具体的,如图7所示,智能手表根据监测时段内的活动量数据,确定第一时间点的方法包括以下S201-S203:In one example, taking the change data of the activity data as the mean value of the activity data as an example, the preset condition may include: within 30 seconds before the monitoring time point, the mean value of the activity data is greater than 1 meter per square second (m/s 2 ). Specifically, as shown in FIG7 , the method for the smart watch to determine the first time point according to the activity data in the monitoring period includes the following S201-S203:
S201、智能手表根据运动数据中多个监测时间点的活动量数据,确定监测时段内每一个监测时间点前30s内,活动量数据的均值。S201. The smart watch determines the average value of the activity data within 30 seconds before each monitoring time point in the monitoring period based on the activity data of multiple monitoring time points in the motion data.
S202、智能手表判断每一个监测时间点前30s内的活动量数据的均值是否大于1m/s2S202: The smart watch determines whether the average value of the activity data within 30 seconds before each monitoring time point is greater than 1 m/s 2 .
S203、智能手表如果判断监测时间点前30s内的活动量数据的均值大于1m/s2,则确定该监测时间点为第一时间点。S203: If the smart watch determines that the average value of the activity data within 30 seconds before the monitoring time point is greater than 1 m/s 2 , the monitoring time point is determined to be the first time point.
在又一种示例中,为了更真实地反映出活动量的变化情况,提高智能手表确定用户的疑似上下床时间点的准确性,活动量数据的变化数据还可以为活动量数据的方差。则预设条件可以包括:在监测时间点前60s内,活动量数据的方差大于0.5。具体的,如图8所示,智能手表根据监测时段内的活动量数据,确定第一时间点的方法包括以下S301-S303:In another example, in order to more realistically reflect the change in activity and improve the accuracy of the smart watch in determining the suspected time point of the user getting in and out of bed, the change data of the activity data can also be the variance of the activity data. The preset condition can include: within 60 seconds before the monitoring time point, the variance of the activity data is greater than 0.5. Specifically, as shown in FIG8 , the method for the smart watch to determine the first time point based on the activity data in the monitoring period includes the following S301-S303:
S301、智能手表根据运动数据中多个监测时间点的活动量数据,确定监测时段内每一个监测时间点前60s内,活动量数据的方差。 S301. The smart watch determines the variance of the activity data within 60 seconds before each monitoring time point in the monitoring period based on the activity data of multiple monitoring time points in the motion data.
S302、智能手表判断每一个监测时间点前60s内的活动量数据的方差是否大于0.5。S302: The smart watch determines whether the variance of the activity data within 60 seconds before each monitoring time point is greater than 0.5.
S303、智能手表如果判断监测时间点前60s内的活动量数据的方差大于0.5,则确定该监测时间点为第一时间点。S303: If the smart watch determines that the variance of the activity data within 60 seconds before the monitoring time point is greater than 0.5, the monitoring time point is determined to be the first time point.
在另一种示例中,智能手表还可以分别根据活动量数据的均值和活动量数据的方差,通过上述S201-S203和上述S301-S303确定对应监测时间点是否为第一时间点。如,智能手表可以在监测时间点的活动量数据的均值和活动量数据的方差同时满足各自对应的预设条件(如大于对应阈值)的情况下,确定该监测时间点为第一时间点。这样,可以进一步提高智能手表根据活动量数据,确定用户的疑似上下床时间点的准确性。In another example, the smart watch can also determine whether the corresponding monitoring time point is the first time point through the above S201-S203 and the above S301-S303 according to the mean of the activity data and the variance of the activity data, respectively. For example, the smart watch can determine that the monitoring time point is the first time point when the mean of the activity data and the variance of the activity data at the monitoring time point simultaneously meet the corresponding preset conditions (such as being greater than the corresponding threshold). In this way, the accuracy of the smart watch in determining the suspected time point of getting in and out of bed of the user based on the activity data can be further improved.
在一种实现方式中,在运动数据包括步数的情况下,上述预设条件包括:在监测时间点前的第二预设时段内,步数的变化数据大于第二阈值。其中,步数的变化数据包括以下一种或多种:累计步数、步数的均值、步数的方差等。与第一阈值的设置方式相似,第二阈值可以根据实际应用需求进行设置,第二阈值越小,智能手表确定第一时间点的精度越高,本申请对第二阈值不做具体限定。In one implementation, when the motion data includes the number of steps, the above-mentioned preset conditions include: within a second preset period before the monitoring time point, the change data of the number of steps is greater than a second threshold. The change data of the number of steps includes one or more of the following: cumulative number of steps, mean number of steps, variance of number of steps, etc. Similar to the setting method of the first threshold, the second threshold can be set according to actual application requirements. The smaller the second threshold, the higher the accuracy of the smart watch in determining the first time point. This application does not specifically limit the second threshold.
在一种示例中,以活动量数据的变化数据为累计步数为例,预设条件可以包括:在监测时间点前15s内,累计步数大于100步。具体的,如图9所示,智能手表根据监测时段内的步数,确定第一时间点的方法包括以下S401-S403:In one example, taking the cumulative number of steps as the change data of the activity data, the preset condition may include: the cumulative number of steps is greater than 100 steps within 15 seconds before the monitoring time point. Specifically, as shown in FIG9 , the method for the smart watch to determine the first time point according to the number of steps in the monitoring period includes the following S401-S403:
S401、智能手表根据运动数据中多个监测时间点的步数,确定监测时段内每一个监测时间点前15s内的累计步数。S401. The smart watch determines the cumulative number of steps within 15 seconds before each monitoring time point in the monitoring period according to the number of steps at multiple monitoring time points in the motion data.
S402、智能手表判断每一个监测时间点前15s内的累计步数是否大于100步。S402: The smart watch determines whether the cumulative number of steps within 15 seconds before each monitoring time point is greater than 100 steps.
S403、智能手表如果判断监测时间点前15s内的累计步数大于100步,则确定该监测时间点为第一时间点。S403: If the smart watch determines that the cumulative number of steps within 15 seconds before the monitoring time point is greater than 100 steps, the monitoring time point is determined to be the first time point.
需要说明的是,智能手表还可以根据累计步数、步数的均值、步数的方差等中的一个或多个数据来确定对应监测时间点是否为第一时间点。如,智能手表可以在监测时间点的累计步数、步数的均值和步数的方差同时满足各自对应的预设条件(如大于对应阈值)的情况下,确定该监测时间点为第一时间点。这样,可以进一步提高智能手表根据步数,确定用户的疑似上下床时间点的准确性。It should be noted that the smart watch can also determine whether the corresponding monitoring time point is the first time point based on one or more data such as the cumulative number of steps, the mean of the number of steps, and the variance of the number of steps. For example, the smart watch can determine that the monitoring time point is the first time point when the cumulative number of steps, the mean of the number of steps, and the variance of the number of steps at the monitoring time point simultaneously meet the corresponding preset conditions (such as being greater than the corresponding threshold). In this way, the accuracy of the smart watch in determining the suspected time point of getting in and out of bed based on the number of steps can be further improved.
在一种实现方式中,在运动数据包括手臂动作的情况下,上述预设条件包括:在监测时间点前的第三预设时段内,手臂动作满足预设动作的次数大于第三阈值。其中,预设动作包括以下一种或多种:手臂摆动动作和手臂竖直向下动作。由于,通常用户在床上的手臂摆动动作会少于用户在床下的手臂摆动动作,并且在用户上床时通常会存在手臂竖直向下动作。因此,智能手表可以通过识别手臂摆动动作和/或手臂竖直向下动作,以确定是否存在疑似上下床动作,从而确定用户的疑似上下床时间点。可以理解的是,在一些应用场景中,还可以结合用户的上下床习惯动作,设置不同的预设动作,例如手臂抬起预设角度的动作等。第三阈值可以根据用户的手臂摆动动作和手臂竖直向下动作的习惯进行设置。如果用户日常的手臂摆动动作和手臂竖直向下动作较少,则可以设置较小的第三阈值,以提高智能手表识别手臂摆动动作和手臂竖直向下动作的准确性。本申请对第三阈值不做具体限定。In one implementation, when the motion data includes arm movements, the above-mentioned preset conditions include: within a third preset period before the monitoring time point, the number of times that the arm movement satisfies the preset movement is greater than a third threshold. Wherein, the preset movement includes one or more of the following: arm swinging movement and arm vertical downward movement. Since, usually, the arm swinging movement of the user in bed is less than the arm swinging movement of the user under the bed, and there is usually an arm vertical downward movement when the user goes to bed. Therefore, the smart watch can identify the arm swinging movement and/or the arm vertical downward movement to determine whether there is a suspected movement of getting in and out of bed, thereby determining the suspected time point of the user's getting in and out of bed. It is understandable that in some application scenarios, different preset movements can also be set in combination with the user's habitual movements of getting in and out of bed, such as the movement of raising the arm at a preset angle. The third threshold can be set according to the user's habit of arm swinging movement and arm vertical downward movement. If the user's daily arm swinging movement and arm vertical downward movement are less, a smaller third threshold can be set to improve the accuracy of the smart watch in identifying the arm swinging movement and arm vertical downward movement. The third threshold is not specifically limited in this application.
在一种示例中,以预设动作包括手臂摆动动作和手臂竖直向下动作为例,预设条件可以包括:在监测时间点前30s内,手臂动作满足手臂摆动动作和手臂竖直向下动作的次数大于10次。具体的,如图10所示,智能手表根据监测时段内的手臂动作,确定第一时间点的方法包括以下S501-S503:In an example, taking the preset action including the arm swinging action and the arm vertical downward action as an example, the preset condition may include: within 30 seconds before the monitoring time point, the arm action satisfies the arm swinging action and the arm vertical downward action for more than 10 times. Specifically, as shown in FIG10 , the method for the smart watch to determine the first time point according to the arm action in the monitoring period includes the following S501-S503:
S501、智能手表根据运动数据中多个监测时间点的手臂动作,确定监测时段内每一个监测时间点前30s内的手臂动作满足手臂摆动动作和手臂竖直向下动作的次数。S501. The smart watch determines the number of times the arm movements satisfy the arm swinging movement and the arm vertical downward movement within 30 seconds before each monitoring time point in the monitoring period according to the arm movements at multiple monitoring time points in the motion data.
S502、智能手表判断每一个监测时间点前30s内的次数是否大于10次。S502: The smart watch determines whether the number of times within 30 seconds before each monitoring time point is greater than 10 times.
S503、智能手表如果判断监测时间点前30s内的次数大于10次,则确定该监测时间点为第一时间点。S503: If the smart watch determines that the number of times within 30 seconds before the monitoring time point is greater than 10 times, the monitoring time point is determined to be the first time point.
在一些实施例中,由于用户的手臂在进行摆动动作时,手臂会沿与平举的手臂处于同一水平面内并垂直于手臂的方向运动,在该方向上会具有较大的加速度,则该方向上的优势特征也更大。 因此,在上述S501中,智能手表可以通过计算沿与平举的手臂处于同一水平面内并垂直于手臂方向的优势特征,以确定用户的手臂动作是否满足手臂摆动动作。In some embodiments, because the user's arms move in the same horizontal plane as the raised arms and perpendicular to the arms when they are swinging, there will be a greater acceleration in this direction, and the advantageous characteristics in this direction will also be greater. Therefore, in the above S501, the smart watch can determine whether the user's arm movement satisfies the arm swinging movement by calculating the dominant features along the same horizontal plane as the raised arm and perpendicular to the arm direction.
具体的,智能手表可以通过采用如下公式(3)确定监测时间点的第一优势特征:
Specifically, the smart watch can determine the first advantage feature of the monitoring time point by using the following formula (3):
其中,B1为第一优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手臂处于同一水平面内,并垂直于手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于手臂方向基于重力引发的加速度。Among them, B1 is the first dominant feature, ag,X is the acceleration caused by gravity along the arm direction, ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
如果在监测时间点前,第一优势特征大于第四阈值的频次满足第一预设频次时,则智能手表确定在该监测时间点手臂动作满足手臂摆动动作。其中,第四阈值和第一预设频次的设置方式可参阅上述第一阈值的设置方式,在此不做赘述。示例性的,如果在监测时间点前,第一优势特征大于1.47的频次满足2次/5s时,则智能手表确定在该监测时间点手臂动作满足手臂摆动动作。If before the monitoring time point, the frequency of the first advantage feature being greater than the fourth threshold meets the first preset frequency, the smart watch determines that the arm movement at the monitoring time point meets the arm swinging movement. Among them, the setting method of the fourth threshold and the first preset frequency can refer to the setting method of the first threshold mentioned above, which will not be repeated here. Exemplarily, if before the monitoring time point, the frequency of the first advantage feature being greater than 1.47 meets 2 times/5s, the smart watch determines that the arm movement at the monitoring time point meets the arm swinging movement.
在一些实施例中,由于用户的手臂在进行竖直向下动作时,在沿手臂的方向上会具有较大的加速度,在该方向上的优势特征也更大。因此,在上述S501中,智能手表可以通过计算沿手臂方向的优势特征,以确定用户的手臂动作是否满足手臂竖直向下动作。In some embodiments, since the user's arm will have a larger acceleration in the direction along the arm when performing a vertical downward movement, the dominant feature in this direction is also greater. Therefore, in the above S501, the smart watch can determine whether the user's arm movement satisfies the arm vertical downward movement by calculating the dominant feature along the arm direction.
具体的,智能手表可以通过采用如下公式(4)确定监测时间点的第二优势特征:
Specifically, the smart watch can determine the second advantage feature of the monitoring time point by using the following formula (4):
其中,B2为第二优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手臂处于同一水平面内,并垂直于手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于手臂方向基于重力引发的加速度。Among them, B2 is the second dominant feature, ag,X is the acceleration caused by gravity along the arm direction, ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the arm direction, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the arm direction.
如果在监测时间点前,第二优势特征大于第五阈值的频次满足第二预设频次时,则智能手表确定在该监测时间点手臂动作满足手臂竖直向下动作。其中,第五阈值和第二预设频次的设置方式可参阅上述第一阈值的设置方式,在此不做赘述。示例性的,如果在监测时间点前,第二优势特征大于1.49的频次满足2次/5s时,则智能手表确定在该监测时间点手臂动作满足手臂竖直向下动作。If before the monitoring time point, the frequency of the second advantage feature being greater than the fifth threshold meets the second preset frequency, the smart watch determines that the arm movement at the monitoring time point meets the arm vertical downward movement. Among them, the setting method of the fifth threshold and the second preset frequency can refer to the setting method of the first threshold mentioned above, which will not be repeated here. Exemplarily, if before the monitoring time point, the frequency of the second advantage feature being greater than 1.49 meets 2 times/5s, the smart watch determines that the arm movement at the monitoring time point meets the arm vertical downward movement.
在一些实施例中,为进一步提高智能手表根据运动数据确定用户的疑似上下床时间点的准确性,运动数据可以包括:活动量数据、步数以及手臂动作中的至少两项,智能手表根据对应的上述S201-S203、S301-S303、S401-S403和S501-S503,综合确定用户的疑似上下床时间点,即确定上述第一时间。例如,运动数据包括:活动量数据、步数以及手臂动作。智能手表可分别通过上述S201-S203、S301-S303、S401-S403和S501-S503,判断监测时间点的活动量变化数据、步数变化数据以及手臂动作满足预设动作的次数是否均满足对应的预设条件,如果均满足对应的预设条件,则确定该监测时间点为第一时间点。In some embodiments, in order to further improve the accuracy of the smart watch in determining the suspected time point of the user getting in and out of bed based on the motion data, the motion data may include at least two of: activity data, number of steps, and arm movements. The smart watch comprehensively determines the suspected time point of the user getting in and out of bed based on the corresponding S201-S203, S301-S303, S401-S403, and S501-S503, that is, determines the above-mentioned first time. For example, the motion data includes: activity data, number of steps, and arm movements. The smart watch can determine whether the activity change data, the number of steps change data, and the number of arm movements that meet the preset actions at the monitoring time point all meet the corresponding preset conditions through the above S201-S203, S301-S303, S401-S403, and S501-S503, respectively. If they all meet the corresponding preset conditions, the monitoring time point is determined to be the first time point.
另外,需要说明的是,上述示例中对于各个阈值(如第一阈值,第二阈值及第三阈值)及各个预设时段(如,第一预设时段,第二预设时段及第三预设时段)的举例,仅仅是一种示例,本实施例中对各阈值及各预设时段的取值并不限于上述举例,其实际取值可根据实际需求预先设置。In addition, it should be noted that the examples for each threshold (such as the first threshold, the second threshold and the third threshold) and each preset time period (such as the first preset time period, the second preset time period and the third preset time period) in the above examples are merely examples. In this embodiment, the values of each threshold and each preset time period are not limited to the above examples, and their actual values can be pre-set according to actual needs.
在一些实施例中,智能手表可以根据监测时段内运动数据,通过预设的检测模型确定第一时间点。具体的,在本实施例中,监测时段包括多个监测时间点。运动数据中包括多个监测时间点的运动数据。智能手表可以将多个监测时间点的运动数据输入预设的检测模型,以获得至少两个第一时间点。该检测模型可以判断监测时间点的运动数据的变化数据是否满足预设条件,如果满足预设条件,则输出该监测时间点作为第一时间点的结果,其中,运动数据的变化数据和预设条件,请参阅上文的相关描述,在此不做赘述。In some embodiments, the smart watch can determine the first time point through a preset detection model based on the motion data in the monitoring period. Specifically, in the present embodiment, the monitoring period includes multiple monitoring time points. The motion data includes motion data of multiple monitoring time points. The smart watch can input the motion data of multiple monitoring time points into a preset detection model to obtain at least two first time points. The detection model can determine whether the change data of the motion data at the monitoring time point meets the preset conditions. If the preset conditions are met, the monitoring time point is output as the result of the first time point, wherein the change data of the motion data and the preset conditions, please refer to the relevant description above, which will not be repeated here.
在一些实施例中,智能手表还可以获取样本集合,样本集合中包括多个上下床时间点,以及每个上下床时间点的运动数据的变化数据。智能手表使用样本集合对检测模型的初始模型进行训练,以构建所述检测模型。In some embodiments, the smart watch can also obtain a sample set, which includes multiple time points for getting in and out of bed and change data of motion data at each time point for getting in and out of bed. The smart watch uses the sample set to train an initial model of the detection model to construct the detection model.
示例性的,智能手表使用样本集合通过随机森林(random forest)的训练方式对检测模型的初始模型进行训练,检测模型可以由多个决策树组成,例如由100个决策树组成。以运动数据的变化数据包括:活动量数据的均值、活动量数据的方差、累计步数以及手臂动作满足手臂摆动动作 和手臂竖直向下动作的次数为例,预设条件包括:(1)在监测时间点前30s内,活动量数据的均值大于1m/s2,(2)在监测时间点前60s内,活动量数据的方差大于0.5,(3)在监测时间点前15s内,累计步数大于100步,(4)在监测时间点前30s内,手臂动作满足手臂摆动动作和手臂竖直向下动作的次数大于10次。则检测模型中的每个决策树都是一个5层的二叉树,每个决策树的分支节点和根节点均为上述变化数据,在分支节点和根节点对该变化数据是否满足对应的预设条件进行判断。若变化数据不满足预设条件,则在下一层进入左子树,否则进入右子树。决策树中每一个路径上最终的叶子结点数值即为监测时间点是第一时间点的概率值。检测模型中的每个决策树均会得到一个监测时间点是第一时间点的概率值。最后,检测模型中的多个决策树通过投票(如统计概率值大于概率阈值的数量是否满足阈值条件),确定该监测时间点是否是第一时间点,如果该监测时间点是第一时间点,则输出该监测时间点。Exemplarily, the smartwatch uses the sample set to train the initial model of the detection model through a random forest training method. The detection model can be composed of multiple decision trees, for example, 100 decision trees. The change data of the motion data includes: the mean of the activity data, the variance of the activity data, the cumulative number of steps, and the arm movement satisfying the arm swing movement. Taking the number of times the arm moves vertically downward as an example, the preset conditions include: (1) within 30 seconds before the monitoring time point, the mean of the activity data is greater than 1m/ s2 , (2) within 60 seconds before the monitoring time point, the variance of the activity data is greater than 0.5, (3) within 15 seconds before the monitoring time point, the cumulative number of steps is greater than 100 steps, (4) within 30 seconds before the monitoring time point, the number of times the arm movement satisfies the arm swinging movement and the arm vertical downward movement is greater than 10 times. Then each decision tree in the detection model is a 5-layer binary tree, and the branch nodes and root nodes of each decision tree are the above-mentioned change data. At the branch nodes and root nodes, it is judged whether the change data meets the corresponding preset conditions. If the change data does not meet the preset conditions, it enters the left subtree at the next layer, otherwise it enters the right subtree. The final leaf node value on each path in the decision tree is the probability value that the monitoring time point is the first time point. Each decision tree in the detection model will obtain a probability value that the monitoring time point is the first time point. Finally, multiple decision trees in the detection model determine whether the monitoring time point is the first time point by voting (such as whether the number of statistical probability values greater than the probability threshold meets the threshold condition). If the monitoring time point is the first time point, the monitoring time point is output.
在一些实施例中,图11为本申请实施例示出的睡眠监测方法的应用场景示意图一,如图11所示,智能手表确定至少两个第一时间点后,智能手表还可以响应于用户发起的查看操作,通过显示屏向用户显示确定的至少两个第一时间点(疑似上下床时间点),以便于用户及时的查看第一时间点,提高了用户的使用体验。In some embodiments, Figure 11 is a schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application. As shown in Figure 11, after the smart watch determines at least two first time points, the smart watch can also respond to a viewing operation initiated by the user and display the determined at least two first time points (suspected time points for getting in and out of bed) to the user through a display screen, so that the user can check the first time points in time, thereby improving the user's experience.
在一些实施例中,智能手表还可以通过显示屏向用户显示第一时间点对应的活动量数据和/或步数。具体的,继续参见图11,用户可以选择其中一个第一时间点,例如“22:08”,通过点击“22:08”的区域向智能手表发送查看活动量数据和/或步数的查看操作,智能手表接收并响应于用户的查看操作,通过显示屏显示“22:08”时的活动量数据和/或步数,这样可以便于用户获取在第一时间点的活动量数据、步数等运动数据,进一步提高了用户的使用体验。In some embodiments, the smart watch can also display the activity data and/or number of steps corresponding to the first time point to the user through the display screen. Specifically, referring to FIG. 11 , the user can select one of the first time points, such as “22:08”, and send a viewing operation of viewing the activity data and/or number of steps to the smart watch by clicking the “22:08” area. The smart watch receives and responds to the user’s viewing operation, and displays the activity data and/or number of steps at “22:08” through the display screen. This makes it easier for the user to obtain the activity data, number of steps and other sports data at the first time point, further improving the user’s experience.
S104、智能手表根据至少两个第一时间点确定用户的上床时间点和下床时间点。S104: The smart watch determines the user's bedtime and bedtime based on at least two first time points.
在本申请实施例中,上述S103中,智能手表确定的至少两个第一时间为疑似上下床时间,还需要根据至少两个第一时间点,进一步的确定得到用户准确地上床时间点和下床时间点。In the embodiment of the present application, in the above S103, at least two first times determined by the smart watch are suspected to be the time for going to bed and getting out of bed, and it is necessary to further determine the accurate time for the user to go to bed and get out of bed based on the at least two first time points.
在一些实施例中,如图12所示,智能手表可以根据至少两个第一时间点,结合用户的入睡时间点和出睡时间点,确定用户的上床时间点和下床时间点。具体的,包括以下S601-S602:In some embodiments, as shown in FIG12 , the smartwatch can determine the user's bedtime and bedtime based on at least two first time points in combination with the user's sleep time and wake-up time. Specifically, the following steps S601-S602 are included:
S601、智能手表获取用户的入睡时间点和出睡时间点,其中入睡时间点为用户由清醒状态进入睡眠状态的时间点,出睡时间点为用户由睡眠状态进入清醒状态的时间点。S601. The smart watch obtains the user's sleeping time and waking time, wherein the sleeping time is the time when the user enters the sleeping state from the awake state, and the waking time is the time when the user enters the awake state from the sleeping state.
由于用户在睡眠状态和清醒状态下,表现出的生理特征是存在区别的。例如在睡眠状态时,脉搏跳动速度将减缓、呼吸频率将减缓、血氧降低。而当用户从睡眠状态中醒来时,在清醒状态下,上述生理特征也将出现变化。因此,通过检测用户的生理特征,可以判断用户是处于睡眠状态和清醒状态。Because the user's physiological characteristics are different when they are asleep and awake. For example, when they are asleep, their pulse rate will slow down, their breathing rate will slow down, and their blood oxygen level will decrease. When the user wakes up from sleep, the above physiological characteristics will also change when they are awake. Therefore, by detecting the user's physiological characteristics, it can be determined whether the user is asleep or awake.
示例性的,智能手表可以通过光电传感器,例如光电容积脉搏波描记技术(photo plethysmo graphy,PPG)传感器,获取用户的心率、血氧等数据。具体的,PPG传感器通过向用户皮肤发射一定波长的光束(通常测心率用绿光,测血氧用红光),随后PPG传感器再接收透射或反射的光束,将这一过程中检测到的由于血液循环产生的周期性光强度变化进行处理,得到用户的心率数据。PPG传感器还可以获取用户的血氧数据,由于含氧量不同的血液反射率不同,同样可以通过PPG传感器检测其变化,再通过算法进行处理和估算,血氧数据。智能手表可以根据心率数据监测用户的血氧、心率、心率变异性(heart rate variability,HRV)等变化趋势和绝对数值,以判断用户的清醒状态和睡眠状态,并进一步确定用户的入睡时间点和出睡时间点。For example, a smartwatch can obtain the user's heart rate, blood oxygen and other data through a photoelectric sensor, such as a photoplethysmograph (PPG) sensor. Specifically, the PPG sensor emits a light beam of a certain wavelength to the user's skin (usually green light is used to measure heart rate and red light is used to measure blood oxygen), and then the PPG sensor receives the transmitted or reflected light beam, and processes the periodic light intensity changes caused by blood circulation detected in this process to obtain the user's heart rate data. The PPG sensor can also obtain the user's blood oxygen data. Since the reflectivity of blood with different oxygen content is different, its changes can also be detected by the PPG sensor, and then processed and estimated by an algorithm to obtain blood oxygen data. The smartwatch can monitor the user's blood oxygen, heart rate, heart rate variability (HRV) and other change trends and absolute values based on the heart rate data to determine the user's awake state and sleep state, and further determine the user's sleep time and wake-up time.
S602、智能手表将至少两个第一时间点中,在入睡时间点之前,并且与入睡时间点时间差最小的第一时间点,确定为上床时间点。将至少两个第一时间点中,在出睡时间点之后,并且与出睡时间点时间差最小的第一时间点,确定为下床时间点。S602: The smartwatch determines the first time point before the sleeping time point and with the smallest time difference from the sleeping time point among the at least two first time points as the bedtime point. The smartwatch determines the first time point after the waking up time point and with the smallest time difference from the waking up time point among the at least two first time points as the getting out of bed time.
由于通常用户上床之后会进入睡眠状态,用户由睡眠状态进入清醒状态后会下床。因此,智能手表可以将在入睡时间点之前最接近的第一时间点确定为上床时间点,将出睡时间点之后最接近的第一时间点确定为下床时间点。Since the user usually goes to sleep after going to bed, and gets out of bed after waking up from sleep, the smart watch can determine the first time point closest to the sleeping time as the bedtime, and the first time point closest to the waking time as the getting out of bed time.
图13为本申请实施例示出的一种智能手表确定上床时间点和下床时间点的原理示意图,如图13所示,智能手表确定有:第一时间点a、第一时间点b、第一时间点c、第一时间点d、第一时间点e、第一时间点f、第一时间点g和第一时间点h,共8个第一时间点。其中,第一时间点 a、第一时间点b和第一时间点c在入睡时间点之前,但第一时间点c与入睡时间点时间差最小。因此,将第一时间点c确定为上床时间点。第一时间点f、第一时间点g和第一时间点h在出睡时间点之前,但第一时间点f与出睡时间点时间差最小,因此,将第一时间点f确定为下床时间点。FIG13 is a schematic diagram of the principle of a smart watch determining the time to go to bed and the time to get out of bed shown in an embodiment of the present application. As shown in FIG13 , the smart watch determines: first time point a, first time point b, first time point c, first time point d, first time point e, first time point f, first time point g and first time point h, a total of 8 first time points. Among them, the first time point a, the first time point b and the first time point c are before the time point of falling asleep, but the time difference between the first time point c and the time point of falling asleep is the smallest. Therefore, the first time point c is determined as the time point of going to bed. The first time point f, the first time point g and the first time point h are before the time point of waking up, but the time difference between the first time point f and the time point of waking up is the smallest. Therefore, the first time point f is determined as the time point of getting out of bed.
在一些实施例中,智能手表还可以根据至少两个第一时间点和用户的选择操作,确定用户的上床时间点和下床时间点。具体的,如图14所示,智能手表可以根据至少两个第一时间,通过以下S701-S703确定用户的上床时间点和下床时间点:In some embodiments, the smart watch can also determine the user's bedtime and bedtime based on at least two first time points and the user's selection operation. Specifically, as shown in FIG14 , the smart watch can determine the user's bedtime and bedtime based on at least two first time points through the following S701-S703:
S701、智能手表显示至少两个第一时间点。S701. The smart watch displays at least two first time points.
在一种实现方式中,如图15所示,智能手表可以通过显示屏101显示至少两个第一时间点,在显示屏101中显示有多个第一时间点(即疑似上下床时间点),以供用户查看第一时间点。In one implementation, as shown in FIG. 15 , the smart watch may display at least two first time points through the display screen 101 , and multiple first time points (i.e., suspected time points for getting in and out of bed) may be displayed on the display screen 101 for the user to view the first time points.
在另一种实现方式中,如图16所示,智能手表还可以将至少两个第一时间点发送至第四电子设备,第四电子设备例如可以为手机、平板电脑等大屏电子设备,由第四电子设备(手机)通过显示屏显示至少两个第一时间点。这样,在智能手表在S103中确定了较多的第一时间点的情况下,可以一次性向用户展示更多第一时间点,使用户可以快速浏览第一时间点,提高用户的使用体验。In another implementation, as shown in FIG16 , the smart watch can also send at least two first time points to a fourth electronic device, which can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device (mobile phone) displays at least two first time points through a display screen. In this way, when the smart watch determines more first time points in S103, more first time points can be displayed to the user at one time, so that the user can quickly browse the first time points, thereby improving the user's experience.
S702、智能手表接收用户的选择操作。S702: The smart watch receives a selection operation from the user.
在一些实施例中,用户根据显示的至少两个第一时间点,对至少两个第一时间点中的第二时间点和第三时间点执行选择操作。其中,第二时间点为在至少两个第一时间点中用户确定的上床时间点,第三时间点为在至少两个第一时间点中用户确定的下床时间点。In some embodiments, the user selects a second time point and a third time point among the at least two first time points according to the displayed at least two first time points, wherein the second time point is a time point for going to bed determined by the user among the at least two first time points, and the third time point is a time point for getting out of bed determined by the user among the at least two first time points.
示例性的,如图15和图16所示,用户可以通过点击显示的第一时间点的显示区域选中该时间点,或者点击第一时间点对应的选中控件选中该时间点。之后,用户可通过点击确认控件,以确认对对应时间点的操作。可以理解的是,选中控件、确认控件为示例性命名。本申请实施例对选中控件、确认控件的命名不做限定,还可以替换成其他具备相同或相似功能的名称。Exemplarily, as shown in Figures 15 and 16, the user can select the time point by clicking the display area of the first time point displayed, or click the selection control corresponding to the first time point to select the time point. Afterwards, the user can confirm the operation on the corresponding time point by clicking the confirmation control. It is understandable that the selection control and the confirmation control are exemplary names. The embodiments of the present application do not limit the naming of the selection control and the confirmation control, and can also be replaced with other names with the same or similar functions.
S703、智能手表根据该选择操作,将第二时间点和第三时间点分别确定为上床时间点和下床时间点。S703: The smart watch determines the second time point and the third time point as the bedtime and the bedtime, respectively, according to the selection operation.
在一些实施例中,为了便于用户快速地进行选择,从而提高智能手表确定上床时间点和下床时间点效率。智能手表还可以根据用户的入睡时间点和出睡时间点,去除一些误判的第一时间点,例如,去除入睡时间点和出睡时间点之间的第一时间点。这样,可以降低对用户的干扰,使用户快速选择出上下床时间点。具体的,如图17所示,智能手表根据至少两个第一时间,还可以通过以下S801-S804确定用户的上床时间点和下床时间点:In some embodiments, in order to facilitate the user to make a quick selection, the smart watch can improve the efficiency of determining the time of going to bed and the time of getting out of bed. The smart watch can also remove some misjudged first time points according to the time of falling asleep and the time of waking up from bed, for example, remove the first time point between the time of falling asleep and the time of waking up from bed. In this way, the interference to the user can be reduced, allowing the user to quickly select the time of going to bed and getting out of bed. Specifically, as shown in Figure 17, the smart watch can also determine the time of going to bed and the time of getting out of bed according to at least two first times through the following S801-S804:
S801、智能手表获取用户的入睡时间点和出睡时间点。S801. The smart watch obtains the user's sleeping time and waking time.
其中,入睡时间点和出睡时间点用于去除误判的第一时间点。Among them, the sleeping time point and the waking time point are used to remove the misjudged first time point.
S802、智能手表显示至少两个第一时间点中,在入睡时间点之前的第一时间点,和在出睡时间点之后的第一时间点。S802: The smart watch displays at least two first time points: a first time point before the time of falling asleep and a first time point after the time of waking up.
在一种实现方式中,S802与上述S701中描述的实现方式相似,智能手表可以将入睡时间点之前的第一时间点,和出睡时间点之后的第一时间点发送至第四电子设备,由第四电子设备通过显示屏显示至少两个第一时间点,也可以在智能手表中显示,在此不做赘述。In one implementation, S802 is similar to the implementation described in S701 above. The smart watch can send the first time point before the time of falling asleep and the first time point after the time of waking up to a fourth electronic device, and the fourth electronic device displays at least two first time points through a display screen, and can also be displayed on the smart watch, which is not repeated here.
S803、智能手表接收用户的选择操作。S803: The smart watch receives a selection operation by the user.
在一些实施例中,用户根据显示的至少两个第一时间点,向智能手表发起对至少两个第一时间点中的第二时间点和第三时间点的选择操作。其中,第二时间点为在至少两个第一时间点中用户确定的上床时间点,第三时间点为在至少两个第一时间点中用户确定的下床时间点。In some embodiments, the user initiates a selection operation of a second time point and a third time point among the at least two first time points displayed to the smartwatch, wherein the second time point is a time point for going to bed determined by the user among the at least two first time points, and the third time point is a time point for getting out of bed determined by the user among the at least two first time points.
S804、智能手表根据该选择操作,将第二时间点和第三时间点分别确定为上床时间点和下床时间点。S804: The smart watch determines the second time point and the third time point as the bedtime and the bedtime, respectively, according to the selection operation.
这样,智能手表通过上述S701-S703和S801-S804均可以实现,根据至少两个第一时间点和用户的操作,确定用户的上床时间点和下床时间点。In this way, the smart watch can be implemented through the above S701-S703 and S801-S804 to determine the user's bedtime and bedtime according to at least two first time points and the user's operation.
在一些多用户的应用场景中,如果在一个床上有多个用户存在上下床动作,那么现有的相关技术无法准确地确定每一个用户的上床时间点和下床时间点。例如,通过智能床垫确定用户的上床时间点和下床时间点。智能床垫根据其受力情况,可以判断出存在上床动作和下床动作,但无法确定是多用户中的哪一个用户存在上床动作和下床动作,从而导致无法准确地获取每一个用户 的上床时间点和下床时间点。In some multi-user application scenarios, if there are multiple users getting in and out of bed on a bed, the existing related technologies cannot accurately determine the time when each user goes in and out of bed. For example, the time when a user goes in and out of bed is determined by a smart mattress. The smart mattress can determine the existence of the action of getting in and out of bed based on its force conditions, but it cannot determine which user among the multiple users has the action of getting in and out of bed, resulting in the inability to accurately obtain the time when each user goes in and out of bed. Going to bed and getting out of bed time.
为了解决上述问题,在一些实施例中,第二电子设备(如智能床垫)可以将确定的多用户(多个)的疑似上床时间点和疑似下床时间点发送给智能手表。智能手表可以根据至少两个第一时间点,分别判断是否存在与疑似上床时间点和疑似下床时间点接近的第一时间点。如果不存在接近的第一时间点,则说明第二电子设备发送的疑似上床时间点和疑似下床时间点不属于使用该智能手表的用户,可能属于其他用户。如果存在接近的第一时间点,则说明第二电子设备发送的疑似上床时间点和疑似下床时间点属于使用该智能手表的用户。进一步的,智能手表可以根据至少两个第一时间点和第二电子设备的疑似上床时间点和疑似下床时间点,确定该用户的上床时间点和下床时间点。In order to solve the above problems, in some embodiments, the second electronic device (such as a smart mattress) can send the suspected bedtime and suspected bedtime of multiple users (multiple) to the smart watch. The smart watch can determine whether there is a first time point close to the suspected bedtime and suspected bedtime based on at least two first time points. If there is no close first time point, it means that the suspected bedtime and suspected bedtime sent by the second electronic device do not belong to the user using the smart watch, but may belong to other users. If there is a close first time point, it means that the suspected bedtime and suspected bedtime sent by the second electronic device belong to the user using the smart watch. Further, the smart watch can determine the user's bedtime and bedtime based on at least two first time points and the suspected bedtime and suspected bedtime of the second electronic device.
具体的,如图18所示,在一些实现方式中,智能手表根据至少两个第一时间点确定用户的上床时间点和下床时间点的方法包括:Specifically, as shown in FIG. 18 , in some implementations, the method for the smart watch to determine the user's bedtime and bedtime based on at least two first time points includes:
S901、智能手表接收来自第二电子设备的疑似上床时间点和疑似下床时间点。S901. The smart watch receives a suspected bedtime and a suspected bedtime from a second electronic device.
S902、若至少两个第一时间点中存在与疑似上床时间点的时间差小于第六阈值的第一时间点,则智能手表将疑似上床时间点确定为上床时间点;若至少两个第一时间点中存在与疑似下床时间点的时间差小于第七阈值的第一时间点,则智能手表将疑似下床时间点确定为下床时间点。S902. If there is a first time point among at least two first time points whose time difference with the suspected bedtime point is less than the sixth threshold, the smart watch determines the suspected bedtime point as the bedtime point; if there is a first time point among at least two first time points whose time difference with the suspected getting out of bed time is less than the seventh threshold, the smart watch determines the suspected getting out of bed time as the getting out of bed time.
其中,第六阈值和第七阈值可以相同,也可以不相同。第六阈值和第七阈值可以根据实际应用需求进行设置,第六阈值和第七阈值越小,智能手表确定上床时间点和下床时间点的精度越高,本申请对第六阈值和第七阈值不做具体限定。The sixth threshold and the seventh threshold may be the same or different. The sixth threshold and the seventh threshold may be set according to actual application requirements. The smaller the sixth threshold and the seventh threshold, the higher the accuracy of the smart watch in determining the time of going to bed and the time of getting out of bed. This application does not specifically limit the sixth threshold and the seventh threshold.
在另一种实现方式中,智能手表根据至少两个第一时间点确定所述用户的上床时间点和下床时间点的方法包括:智能手表接收来自第二电子设备的疑似上床时间点和疑似下床时间点。若至少两个第一时间点中存在与疑似上床时间点的时间差小于第六阈值的第一时间点,则智能手表将该第一时间点确定为上床时间点;若至少两个第一时间点中存在与疑似下床时间点的时间差小于第七阈值的第一时间点,则智能手表将该第一时间点确定为下床时间点。In another implementation, the method for a smartwatch to determine the user's bedtime and bed-out time based on at least two first time points includes: the smartwatch receives a suspected bedtime and bed-out time from a second electronic device. If there is a first time point among the at least two first time points whose time difference with the suspected bedtime is less than a sixth threshold, the smartwatch determines the first time point as the bedtime; if there is a first time point among the at least two first time points whose time difference with the suspected bed-out time is less than a seventh threshold, the smartwatch determines the first time point as the bed-out time.
在又一种实现方式中,在智能手表确定至少两个第一时间点中存在与疑似上床时间点的时间差小于第六阈值的第一时间点,以及至少两个第一时间点中存在与疑似下床时间点的时间差小于第七阈值的第一时间点之后,可以向用户显示:疑似上床时间点、疑似下床时间点、与疑似上床时间点的时间差小于第六阈值的第一时间点、以及与疑似下床时间点的时间差小于第七阈值的第一时间点。智能手表接收用户对上述显示的时间点选择的上床时间点和下床时间点的选择操作。智能手表响应于该选择操作,确定该用户的上床时间点和下床时间点。In another implementation, after the smartwatch determines that there is a first time point whose time difference with the suspected bedtime is less than the sixth threshold value among at least two first time points, and there is a first time point whose time difference with the suspected bedtime is less than the seventh threshold value among at least two first time points, the following may be displayed to the user: the suspected bedtime, the suspected bedtime, the first time point whose time difference with the suspected bedtime is less than the sixth threshold value, and the first time point whose time difference with the suspected bedtime is less than the seventh threshold value. The smartwatch receives the user's selection operation of the bedtime and bedtime selected for the above-displayed time points. In response to the selection operation, the smartwatch determines the user's bedtime and bedtime.
在一些实施例中,图19为本申请实施例示出的睡眠监测方法的应用场景示意图二,如图19所示,智能手表确定上床时间点和下床时间点后,智能手表还可以响应于用户的查看操作,通过显示屏向用户显示确定的上床时间点和下床时间点,以便于用户及时的查看上床时间点和下床时间点,提高了用户的使用体验。In some embodiments, Figure 19 is a second schematic diagram of an application scenario of the sleep monitoring method shown in an embodiment of the present application. As shown in Figure 19, after the smart watch determines the time to go to bed and the time to get out of bed, the smart watch can also respond to the user's viewing operation and display the determined time to go to bed and the time to get out of bed to the user through the display screen, so that the user can check the time to go to bed and the time to get out of bed in time, thereby improving the user's experience.
S105、智能手表根据上床时间点和下床时间点,对用户的睡眠进行监测。S105. The smart watch monitors the user's sleep according to the time when the user goes to bed and when the user gets out of bed.
具体的,智能手表可以根据上床时间点和下床时间点,确定用户的卧床时长、睡眠潜伏时长、睡眠效率等睡眠数据,并根据睡眠数据对用户的睡眠进行监测,以分析用户的睡眠质量。Specifically, the smart watch can determine the user's sleep data such as bed time, sleep latency time, sleep efficiency, etc. according to the time the user goes to bed and gets out of bed, and monitor the user's sleep based on the sleep data to analyze the user's sleep quality.
在一些实施例中,智能手表可以根据上床时间点和下床时间点,确定睡眠潜伏时长和卧床时长。其中,睡眠潜伏时长为用户上床之后到进入睡眠状态之间的时长,睡眠潜伏时长可以通过计算上床时间点与入睡时间点的差值得到。卧床时长为用户从上床到下床之间的时长,卧床时长可以通过计算上床时间点和下床时间点的差值得到。智能手表可以根据睡眠潜伏时长和卧床时长对用户的睡眠进行分析,并显示用户的睡眠分析结果。示例性的,如图20所示,智能手表可以通过显示屏显示用户的睡眠效率、卧床时长和睡眠潜伏期,以便于用户直观的了解其睡眠情况。In some embodiments, the smartwatch can determine the sleep latency and bed time according to the time of going to bed and getting out of bed. Among them, the sleep latency is the time between the user going to bed and entering the sleep state, and the sleep latency can be obtained by calculating the difference between the time of going to bed and the time of falling asleep. The bed time is the time between the user going to bed and getting out of bed, and the bed time can be obtained by calculating the difference between the time of going to bed and the time of getting out of bed. The smartwatch can analyze the user's sleep according to the sleep latency and bed time, and display the user's sleep analysis results. Exemplarily, as shown in Figure 20, the smartwatch can display the user's sleep efficiency, bed time and sleep latency through the display screen, so that the user can intuitively understand their sleep situation.
在一些实施例中,智能手表可以根据上床时间点和下床时间点结合睡眠参数,得到用户的睡眠结构图。如图21所示,智能手表可以通过显示屏显示用户的睡眠结构图。该睡眠结构图可以直观的反映出用户在监测时段内的睡眠质量情况,并可以包括用户的上床时间点、下床时间点等数据。In some embodiments, the smartwatch can combine the sleep parameters with the bedtime and the bedtime to obtain the user's sleep structure diagram. As shown in FIG21 , the smartwatch can display the user's sleep structure diagram through a display screen. The sleep structure diagram can intuitively reflect the user's sleep quality during the monitoring period, and may include data such as the user's bedtime and bedtime.
在一些实施例中,智能手表可以根据睡眠潜伏时长判断用户当天的睡前卧床时间是否过长, 并向用户发出提示。如图22所示,具体包括以下S1001-S1003:In some embodiments, the smartwatch can determine whether the user has stayed in bed too long before going to bed that day based on the sleep latency duration. And send a prompt to the user. As shown in FIG22, it specifically includes the following S1001-S1003:
S1001、智能手表根据上床时间点和入睡时间点,确定睡眠潜伏时长。S1001. The smart watch determines the sleep latency duration according to the bedtime and sleep onset time.
S1002、智能手表判断睡眠潜伏时长是否大于第十阈值,第十阈值为睡眠潜伏期阈值,第十阈值可根据实际应用情况进行设置,例如可以设置为30分钟(min)。S1002. The smart watch determines whether the sleep latency duration is greater than a tenth threshold value. The tenth threshold value is a sleep latency threshold value. The tenth threshold value can be set according to actual application conditions, for example, can be set to 30 minutes (min).
S1003、若睡眠潜伏时长大于第十阈值,则智能手表可以通过显示屏显示第二提示信息,第二提示信息用于提醒用户卧床时间过长。为了使用户更详细的了解睡眠情况,在显示第二提示信息的同时,显示用户的睡眠潜伏时长和卧床时长。S1003: If the sleep latency is greater than the tenth threshold, the smartwatch may display a second prompt message on the display screen, the second prompt message being used to remind the user that the user has been in bed for too long. In order to enable the user to understand the sleep condition in more detail, the sleep latency and bed rest time of the user are displayed while displaying the second prompt message.
在一种实现方式中,使用户可以清晰完整的浏览睡眠潜伏时长、卧床时长及第二提示信息,提高用户的使用体验。智能手表还可以将睡眠潜伏时长、卧床时长及第二提示信息发送至第四电子设备,第四电子设备例如可以为手机、平板电脑等大屏电子设备,由第四电子设备通过显示屏显示睡眠潜伏时长、卧床时长及第二提示信息。以第四电子设备为手机为例,如图23所示,在手机显示屏的显示界面中显示有睡眠潜伏时长、卧床时长及第二提示信息,第二提示信息可以包括:检测到您卧床时间过长,较长的卧床时间可能是影响睡眠质量的原因之一。第二提示信息还可以包括:避免卧床时间过长。卧床时间过长,会削弱床和睡眠的直接联系,使得入睡变得困难,影响睡眠质量,建议离开床,待感到困意时上床入睡。In one implementation, the user can clearly and completely browse the sleep latency, bed time and second prompt information to improve the user experience. The smart watch can also send the sleep latency, bed time and second prompt information to the fourth electronic device. The fourth electronic device can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device displays the sleep latency, bed time and second prompt information through the display screen. Taking the fourth electronic device as a mobile phone as an example, as shown in Figure 23, the display interface of the mobile phone display screen displays the sleep latency, bed time and second prompt information. The second prompt information may include: It is detected that you have been in bed for too long, and a long time in bed may be one of the reasons affecting sleep quality. The second prompt information may also include: avoid staying in bed for too long. Staying in bed for too long will weaken the direct connection between the bed and sleep, making it difficult to fall asleep and affecting sleep quality. It is recommended to leave the bed and go to bed when you feel sleepy.
在一些实施例中,智能手表还可以根据用户在一定周期内(例如30天内)的睡眠潜伏时长,对用户在该周期内的睡眠进行分析,并生成针对该周期的睡眠分析结果。如图24所示,具体包括以下S1101-S1103:In some embodiments, the smartwatch can also analyze the user's sleep within a certain period (e.g., 30 days) according to the user's sleep latency within the period, and generate a sleep analysis result for the period. As shown in FIG. 24 , it specifically includes the following S1101-S1103:
S1101、智能手表确定在预设周期内,睡眠潜伏时长大于第十阈值的天数。S1101. The smart watch determines the number of days in a preset cycle in which the sleep latency duration is greater than a tenth threshold.
S1102、智能手表判断睡眠潜伏时长大于第十阈值的天数是否大于天数阈值,天数阈值例如可以为20天。天数阈值可根据实际需求进行设置,本申请对此不做具体限定。S1102: The smartwatch determines whether the number of days in which the sleep latency duration is greater than the tenth threshold is greater than the day threshold, where the day threshold may be, for example, 20 days. The day threshold may be set according to actual needs, and this application does not make any specific limitation on this.
S1103、智能手表若判断睡眠潜伏时长大于第十阈值的天数大于天数阈值,则显示第三提示信息,第三提示信息用于展示导致睡眠潜伏时长大于第十阈值的因素,和/或展示睡眠改善建议和睡眠改善任务。S1103. If the smart watch determines that the number of days when the sleep latency duration is greater than the tenth threshold is greater than the day threshold, a third prompt message is displayed, where the third prompt message is used to display factors causing the sleep latency duration to be greater than the tenth threshold, and/or to display sleep improvement suggestions and sleep improvement tasks.
示例性的,导致睡眠潜伏时长大于第十阈值的因素例如可以包括以下一种或多种:睡前剧烈运动、日间小睡时间过长、睡前6小时内小睡、睡前玩手机、卧床时间过长、环境噪声等。其中,智能手表可以根据活动量判断用户是否存在睡前剧烈运动,智能手表可以根据上床时间点、下床时间点、入睡时间点、出睡时间点等,确定用户是否存在日间小睡时间过长、睡前6小时内小睡、卧床时间过长等问题。智能手表可以根据用户使用手机的时间确定用户是否睡前玩手机。智能手表通过检测环境声音的分贝确定是否存在环境噪声。睡眠改善建议例如包括以下一种或多种:规律用户的起床时间、限制用户小睡等。睡眠改善包括以下一种或多种:通过正念呼吸舒展压力、播放助眠音乐等。Exemplarily, factors that cause the sleep latency duration to be greater than the tenth threshold may include one or more of the following: strenuous exercise before bedtime, long naps during the day, naps within 6 hours before bedtime, playing with mobile phones before bedtime, lying in bed for too long, and environmental noise. Among them, the smart watch can determine whether the user has strenuous exercise before bedtime based on the amount of activity, and the smart watch can determine whether the user has problems such as long naps during the daytime, naps within 6 hours before bedtime, and lying in bed for too long based on the time of going to bed, getting out of bed, falling asleep, and waking up. The smart watch can determine whether the user plays with the mobile phone before bedtime based on the time the user uses the mobile phone. The smart watch determines whether there is environmental noise by detecting the decibel of the ambient sound. For example, sleep improvement suggestions include one or more of the following: regular user wake-up time, restricting user naps, etc. Sleep improvement includes one or more of the following: relieving stress through mindfulness breathing, playing sleep-aiding music, etc.
在一种实现方式中,使用户可以清晰完整的浏览第三提示信息,提高用户的使用体验。智能手表还可以将第三提示信息发送至第四电子设备,第四电子设备例如可以为手机、平板电脑等大屏电子设备,由第四电子设备通过显示屏显示第三提示信息。示例性的,以第四电子设备为手机为例,如图25所示,在手机显示屏的显示界面中显示第三提示信息,第三提示信息中包括影响睡眠的因素;如图26所示,在手机显示屏的显示界面中显示第三提示信息,第三提示信息中包括改善建议。可以理解的是,图25和图26中的显示内容仅为示例性说明,第三提示信息的具体内容可根据实际需求进行设置。图25和图26中的显示内容可以整合在同一页显示界面中,同时向用户显示。还可以分成多页显示界面,分页向用户进行显示,本申请对此不做具体限定。In one implementation, the user can browse the third prompt information clearly and completely, thereby improving the user's experience. The smart watch can also send the third prompt information to a fourth electronic device, which can be a large-screen electronic device such as a mobile phone or a tablet computer, and the fourth electronic device displays the third prompt information through a display screen. Exemplarily, taking the fourth electronic device as a mobile phone as an example, as shown in FIG25, the third prompt information is displayed in the display interface of the mobile phone display screen, and the third prompt information includes factors affecting sleep; as shown in FIG26, the third prompt information is displayed in the display interface of the mobile phone display screen, and the third prompt information includes improvement suggestions. It can be understood that the display content in FIG25 and FIG26 is only an exemplary description, and the specific content of the third prompt information can be set according to actual needs. The display content in FIG25 and FIG26 can be integrated in the same page display interface and displayed to the user at the same time. It can also be divided into multiple pages of display interfaces and displayed to the user in pages, and this application does not make specific limitations on this.
在一些实施例中,智能手表在确定第一时间点后,还可以判断用户是否进入睡眠状态。如果用户没有进入睡眠状态,则提示用户是否开启睡眠模式。具体的,如图27所示,在S103、智能手表根据运动数据确定第一时间点的过程中,当智能手表确定一个第一时间点之后还可以包括S1201-S1205:In some embodiments, after determining the first time point, the smart watch can also determine whether the user has entered a sleeping state. If the user has not entered a sleeping state, the user is prompted whether to turn on the sleeping mode. Specifically, as shown in FIG. 27 , in S103, in the process of the smart watch determining the first time point according to the motion data, after the smart watch determines a first time point, it can also include S1201-S1205:
S1201、智能手表根据加速度数据确定该第一时间点之后的累计活动量数据。S1201. The smart watch determines the accumulated activity data after the first time point based on the acceleration data.
S1202、智能手表判断累计活动量数据小于第八阈值的时间是否满足预设时间,以判断用户是否保持在床上的状态。 S1202. The smart watch determines whether the time during which the accumulated activity data is less than an eighth threshold value satisfies a preset time, so as to determine whether the user remains in bed.
S1203、若累计活动量数据小于第八阈值的时间满足预设时间,则智能手表获取入睡参数,该入睡参数用于表征用户的入睡情况,该入睡参数例如可以包括:心率数据、血氧数据等。S1203. If the time during which the accumulated activity data is less than the eighth threshold value satisfies the preset time, the smart watch obtains sleeping parameters, which are used to characterize the user's sleeping condition. The sleeping parameters may include, for example, heart rate data, blood oxygen data, etc.
S1204、智能手表判断入睡参数是否满足第九阈值。S1204: The smart watch determines whether the sleeping parameters meet a ninth threshold.
S1205、若入睡参数不满足第九阈值,则确定用户没有进入睡眠状态。智能手表可以通过显示屏显示第一提示信息,以用于确定用户是否开启睡眠模式。示例性的,如图28所示,智能手表的显示屏显示有第一提示信息,第一提示信息的内容包括“是否进入睡眠模式”,该第一提示信息的内容为示例性说明,第一提示信息的具体内容可根据实际需求进行设置,本申请不做具体限定。S1205. If the sleeping parameter does not meet the ninth threshold, it is determined that the user has not entered the sleep state. The smart watch can display a first prompt message through the display screen to determine whether the user has turned on the sleep mode. Exemplarily, as shown in FIG28, the display screen of the smart watch displays a first prompt message, and the content of the first prompt message includes "whether to enter the sleep mode". The content of the first prompt message is an exemplary description, and the specific content of the first prompt message can be set according to actual needs, and this application does not make specific limitations.
在用户想要开启睡眠模式时,可通过点击智能手表的显示屏中用于确认的控件,例如,图28中的“是”控件。智能手表接收用户对该控件的操作,并响应该操作,开启睡眠模式。可以理解的是,“是”控件为示例性命名。本申请实施例对“是”控件的命名不做限定,还可以替换成确认控件等具备相同或相似功能的名称。When the user wants to turn on the sleep mode, he can click the control for confirmation in the display screen of the smart watch, for example, the "yes" control in Figure 28. The smart watch receives the user's operation on the control and responds to the operation to turn on the sleep mode. It can be understood that the "yes" control is an exemplary name. The embodiment of the present application does not limit the naming of the "yes" control, and it can also be replaced with a name with the same or similar functions such as a confirmation control.
智能手表开启睡眠模式后,可以通过调整智能手表的设置,以帮助使用该智能手表的用户快速进入睡眠状态。例如,睡眠模式可以包括:智能手表开启静音模式或勿扰模式、智能手表降低显示屏的亮度(蓝光)、智能手表播放助眠音乐(如有风声、雨声、小溪潺潺流水之声)等。After the smartwatch turns on the sleep mode, the settings of the smartwatch can be adjusted to help the user of the smartwatch quickly fall asleep. For example, the sleep mode may include: the smartwatch turns on the silent mode or the do not disturb mode, the smartwatch reduces the brightness of the display (blue light), the smartwatch plays sleep-inducing music (such as the sound of wind, rain, or gurgling stream), etc.
在一些实施例中,在智能手表与其他电子设备联合使用的场景中。例如,智能手表与智能家居设备(例如智能台灯、智能窗帘、智能音响等)联合使用的场景中,为了使用户更快速地进入睡眠状态,提高用户的使用体验,智能手表还可以向智能家居设备发送指令,以触发智能家居设备开启睡眠模式。In some embodiments, in scenarios where a smart watch is used in conjunction with other electronic devices, for example, a smart watch is used in conjunction with a smart home device (such as a smart desk lamp, smart curtains, smart speakers, etc.), in order to enable the user to enter a sleep state more quickly and improve the user's experience, the smart watch can also send instructions to the smart home device to trigger the smart home device to turn on the sleep mode.
具体的,智能手表在接收用户的开启睡眠模式的确认操作之后,还可以响应该确认操作,向第三电子设备发送开启睡眠模式指令,该开启睡眠模式指令用于触发第三电子设备开启睡眠模式。其中,第三电子设备可以包括一个或多个电子设备。示例性的,以智能手表与智能台灯、智能窗帘和智能音响联合使用为例。智能手表响应用户发送的确认操作之后,可以向智能台灯、智能窗帘和智能音响发送开启睡眠模式指令。智能台灯响应于该开启睡眠模式指令,可以降低灯光的亮度。智能窗帘响应于该开启睡眠模式指令,可以关闭窗帘以遮挡窗外的光线。智能音响响应于该开启睡眠模式指令,可以播放助眠音乐。这样,可以有助于用户快速地进入睡眠状态。Specifically, after receiving the user's confirmation operation to turn on the sleep mode, the smart watch can also respond to the confirmation operation and send a sleep mode turn-on instruction to the third electronic device, and the sleep mode turn-on instruction is used to trigger the third electronic device to turn on the sleep mode. Among them, the third electronic device may include one or more electronic devices. Exemplary, take the joint use of a smart watch with a smart desk lamp, smart curtains and a smart speaker as an example. After the smart watch responds to the confirmation operation sent by the user, it can send a sleep mode turn-on instruction to the smart desk lamp, smart curtains and smart speakers. In response to the sleep mode turn-on instruction, the smart desk lamp can reduce the brightness of the light. In response to the sleep mode turn-on instruction, the smart curtains can close the curtains to block the light outside the window. In response to the sleep mode turn-on instruction, the smart speaker can play sleep-aiding music. In this way, it can help users fall asleep quickly.
在一些实施例中,在上述S1201、智能手表根据加速度数据确定该第一时间点之后的累计活动量数据的过程中,智能手表会同时根据活动量数据确定其他第一时间点。如果智能手表确定出新的第一时间点,则停止执行S1202,重新执行S1201,确定智能手表最新确定出的第一时间点之后的累计活动量数据。这样,在S1201中,智能手表保持确定最新确定的第一时间点之后的累计活动量数据,可以提高智能手表判断是否发送第一提示信息的准确性。In some embodiments, in the above S1201, the smart watch determines the accumulated activity data after the first time point according to the acceleration data, and the smart watch will also determine other first time points according to the activity data. If the smart watch determines a new first time point, S1202 is stopped and S1201 is re-executed to determine the accumulated activity data after the first time point most recently determined by the smart watch. In this way, in S1201, the smart watch keeps determining the accumulated activity data after the most recently determined first time point, which can improve the accuracy of the smart watch in determining whether to send the first prompt information.
在一些实施例中,智能手表还可以根据用户输入的计划睡眠效率及计划的上床时间点或下床时间点,为用户推荐符合睡眠效率的上床时间点或下床时间点。例如用户输入的计划睡眠效率80%,计划下床时间为7:30,智能手表可以通过计算得到推荐的上床时间点,如图29所示,智能手表可以显示推荐的上床时间点为23:30。In some embodiments, the smartwatch can also recommend a bedtime or a get-out-of-bed time that meets the sleep efficiency for the user based on the planned sleep efficiency and the planned bedtime or get-out-of-bed time input by the user. For example, if the user inputs a planned sleep efficiency of 80% and a planned get-out-of-bed time of 7:30, the smartwatch can calculate the recommended bedtime, as shown in FIG29 , and the smartwatch can display the recommended bedtime as 23:30.
采用本实施例提供的技术方案,智能手表能够基于加速度数据,确定用户的运动数据,该运动数据包括:活动量数据、步数以及手臂动作中的至少一项。智能手表可以根据运动数据识别出用户的上下床动作,确定用户的疑似上下床时间点。进一步的,智能手表根据疑似上下床时间点确定用户的上床时间点和下床时间点。这样,智能手表可以准确、快速地确定用户的上床时间点和下床时间点,进而提高睡眠监测的准确性。By adopting the technical solution provided in this embodiment, the smart watch can determine the user's motion data based on acceleration data, and the motion data includes at least one of activity data, number of steps, and arm movements. The smart watch can identify the user's getting in and out of bed movements based on the motion data and determine the suspected time points of the user getting in and out of bed. Furthermore, the smart watch determines the user's bed time and bed-leaving time based on the suspected bed-leaving time points. In this way, the smart watch can accurately and quickly determine the user's bed time and bed-leaving time, thereby improving the accuracy of sleep monitoring.
需要说明的是,本申请实施例提供的睡眠监测方法还可以应用于除可穿戴设备以外的电子设备中。以电子设备是手机为例,在手机始终被握持在用户的手中的情况下,可将上述S101-S105的执行主体替换为手机,手机可通过上述S101-S105实现本申请实施例提供的睡眠监测方法。It should be noted that the sleep monitoring method provided in the embodiment of the present application can also be applied to electronic devices other than wearable devices. Taking the electronic device as a mobile phone as an example, when the mobile phone is always held in the user's hand, the execution subject of the above S101-S105 can be replaced with the mobile phone, and the mobile phone can implement the sleep monitoring method provided in the embodiment of the present application through the above S101-S105.
在无法保证手机始终被握持在用户的手中的情况下,即在手机中的加速度数据无法真实地反应用户的运动情况时,则在手机通过上述S101-S105实现本申请实施例提供的睡眠监测方法时。在S101中,手机可以通过其他电子设备获取加速度数据。例如,手机可以通过佩戴在用户手腕处的可穿戴设备(如智能手表、智能手环等)获取监测时间段内用户的加速度数据。另外,在S104中,手机还可通过其他电子设备(例如可穿戴设备)获取入睡时间点和出睡时间点,以用于确定 用户的上床时间点和下床时间点。其余S102、S103和S105可将执行主体替换为手机,这样,手机可以实现对用户的睡眠监测。When it is impossible to ensure that the mobile phone is always held in the user's hand, that is, when the acceleration data in the mobile phone cannot truly reflect the user's movement, the mobile phone implements the sleep monitoring method provided in the embodiment of the present application through the above S101-S105. In S101, the mobile phone can obtain acceleration data through other electronic devices. For example, the mobile phone can obtain the acceleration data of the user during the monitoring period through a wearable device worn on the user's wrist (such as a smart watch, smart bracelet, etc.). In addition, in S104, the mobile phone can also obtain the time of falling asleep and the time of waking up from sleep through other electronic devices (such as wearable devices) for determining The user's bedtime and bedtime. The remaining S102, S103 and S105 can be replaced by a mobile phone as the execution subject, so that the mobile phone can monitor the user's sleep.
可以理解的是,上述电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to realize the above functions, the above electronic device includes hardware structures and/or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能模块的分组,例如,可以对应各个功能分组各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的分组是示意性的,仅仅为一种逻辑功能分组,实际实现时可以有另外的分组方式。The embodiment of the present application can group the functional modules of the electronic device according to the above method example. For example, each functional module can be grouped according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the grouping of modules in the embodiment of the present application is schematic and is only a logical functional grouping. There may be other grouping methods in actual implementation.
在一种实施例中,请参考图30,为本申请实施例提供一种电子设备的组成示意图。如图30所示,该电子设备可以包括:获取模块201和处理模块202。In one embodiment, please refer to FIG30 , which is a schematic diagram of the composition of an electronic device provided in the embodiment of the present application. As shown in FIG30 , the electronic device may include: an acquisition module 201 and a processing module 202 .
获取模块201,用于获取监测时段内第一电子设备的加速度数据。The acquisition module 201 is used to acquire acceleration data of the first electronic device within a monitoring period.
处理模块202,用于根据加速度数据确定使用第一电子设备的用户的运动数据,运动数据包括:活动量数据、步数以及手臂动作中的至少一项,活动量数据用于表征用户的运动强度。The processing module 202 is used to determine the motion data of the user using the first electronic device according to the acceleration data, where the motion data includes at least one of activity data, number of steps and arm movements, and the activity data is used to characterize the user's exercise intensity.
处理模块202,还用于根据运动数据确定至少两个第一时间点,第一时间点为用户的疑似上下床时间点。The processing module 202 is further configured to determine at least two first time points according to the motion data, wherein the first time points are suspected time points when the user gets in and out of bed.
处理模块202,还于根据至少两个第一时间点确定用户的上床时间点和下床时间点。The processing module 202 is further configured to determine a bedtime and a bedtime of the user according to the at least two first time points.
处理模块202,还于根据上床时间点和下床时间点,对用户的睡眠进行监测。The processing module 202 is further configured to monitor the user's sleep according to the time when the user goes to bed and the time when the user gets out of bed.
本申请实施例还提供一种睡眠监测装置,该装置可以应用于上述实施例中的电子设备。该装置可以包括:处理器,以及用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令时实现上述方法实施例中智能手表执行的各个功能或者步骤。The present application also provides a sleep monitoring device, which can be applied to the electronic device in the above embodiment. The device may include: a processor, and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the functions or steps performed by the smart watch in the above method embodiment when executing the instructions.
本申请实施例还提供一种电子设备,该电子设备可以包括:显示屏、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中智能手表执行的各个功能或者步骤。当然,该电子设备包括但不限于上述显示屏、存储器和一个或多个处理器。例如,该电子设备的结构可以参考图2所示的电子设备的结构。The embodiment of the present application also provides an electronic device, which may include: a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps performed by the smart watch in the above method embodiment. Of course, the electronic device includes but is not limited to the above display screen, the memory, and one or more processors. For example, the structure of the electronic device can refer to the structure of the electronic device shown in Figure 2.
本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的电子设备。如图31所示,该芯片系统包括至少一个处理器301和至少一个接口电路302。该处理器301可以是上述电子设备中的处理器。处理器301和接口电路302可通过线路互联。该处理器301可以通过接口电路302从上述电子设备的存储器接收并执行计算机指令。当计算机指令被处理器301执行时,可使得电子设备执行上述实施例中智能手表执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, which can be applied to the electronic devices in the aforementioned embodiments. As shown in Figure 31, the chip system includes at least one processor 301 and at least one interface circuit 302. The processor 301 can be the processor in the above-mentioned electronic device. The processor 301 and the interface circuit 302 can be interconnected through a line. The processor 301 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 302. When the computer instructions are executed by the processor 301, the electronic device can execute the various steps executed by the smart watch in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
本申请实施例还提供一种计算机可读存储介质,用于存储上述电子设备(如智能手表)运行的计算机指令。An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned electronic device (such as a smart watch).
本申请实施例还提供一种计算机程序产品,包括上述电子设备(如智能手表)运行的计算机指令。An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device (such as a smart watch).
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合 或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling between the displayed or discussed Or the direct coupling or communication connection may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

  1. 一种睡眠监测方法,其特征在于,所述方法包括:A sleep monitoring method, characterized in that the method comprises:
    获取监测时段内第一电子设备的加速度数据;Acquiring acceleration data of the first electronic device during a monitoring period;
    根据所述加速度数据确定使用所述第一电子设备的用户的运动数据,所述运动数据包括:活动量数据、步数以及手臂动作中的至少一项,所述活动量数据用于表征用户的运动强度;determining motion data of a user using the first electronic device according to the acceleration data, the motion data comprising at least one of activity data, number of steps, and arm movements, the activity data being used to characterize the user's exercise intensity;
    根据所述运动数据确定至少两个第一时间点,所述第一时间点为所述用户的疑似上下床时间点;Determine at least two first time points according to the motion data, where the first time points are suspected time points for the user to get in and out of bed;
    根据所述至少两个第一时间点确定所述用户的上床时间点和下床时间点;Determine a bedtime and a bedtime of the user according to the at least two first time points;
    根据所述上床时间点和所述下床时间点,对所述用户的睡眠进行监测。The user's sleep is monitored according to the going to bed time and the getting out of bed time.
  2. 根据权利要求1所述的方法,其特征在于,所述监测时段包括多个监测时间点,所述运动数据包括所述多个监测时间点的运动数据;The method according to claim 1, characterized in that the monitoring period includes multiple monitoring time points, and the motion data includes motion data of the multiple monitoring time points;
    所述根据所述运动数据确定至少两个第一时间点,包括:The determining at least two first time points according to the motion data includes:
    针对所述多个监测时间点中的每个监测时间点,确定所述监测时间点前预设时间内运动数据的变化数据;For each of the multiple monitoring time points, determining change data of the motion data within a preset time before the monitoring time point;
    若所述变化数据满足预设条件,则确定所述监测时间点为所述第一时间点。If the change data meets a preset condition, the monitoring time point is determined to be the first time point.
  3. 根据权利要求2所述的方法,其特征在于,The method according to claim 2, characterized in that
    在所述运动数据包括所述活动量数据的情况下,所述预设条件包括:在所述监测时间点前的第一预设时段内,所述活动量数据的变化数据大于第一阈值;In the case where the motion data includes the activity amount data, the preset condition includes: within a first preset period before the monitoring time point, the change data of the activity amount data is greater than a first threshold;
    在所述运动数据包括所述步数的情况下,所述预设条件包括:在所述监测时间点前的第二预设时段内,所述步数的变化数据大于第二阈值;In the case where the motion data includes the number of steps, the preset condition includes: within a second preset period before the monitoring time point, the change data of the number of steps is greater than a second threshold;
    在所述运动数据包括所述手臂动作的情况下,所述预设条件包括:在所述监测时间点前的第三预设时段内,所述手臂动作满足预设动作的次数大于第三阈值;所述预设动作包括:手臂摆动动作和手臂竖直向下动作。When the motion data includes the arm movement, the preset condition includes: within a third preset time period before the monitoring time point, the number of times the arm movement satisfies the preset movement is greater than a third threshold; the preset movement includes: arm swinging movement and arm vertical downward movement.
  4. 根据权利要求1所述的方法,其特征在于,所述监测时段包括多个监测时间点,所述运动数据包括所述多个监测时间点的运动数据;The method according to claim 1, characterized in that the monitoring period includes multiple monitoring time points, and the motion data includes motion data of the multiple monitoring time points;
    所述根据所述运动数据确定至少两个第一时间点,包括:The determining at least two first time points according to the motion data includes:
    将所述多个监测时间点的运动数据输入预设的检测模型,以获得所述至少两个第一时间点。The motion data of the multiple monitoring time points are input into a preset detection model to obtain the at least two first time points.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述加速度数据包括:方向两两垂直的第一加速度、第二加速度和第三加速度;The method according to any one of claims 1 to 4, characterized in that the acceleration data comprises: a first acceleration, a second acceleration and a third acceleration whose directions are perpendicular to each other;
    在所述运动数据包括所述活动量数据的情况下,根据所述加速度数据确定所述活动量数据,包括:In a case where the motion data includes the activity amount data, determining the activity amount data according to the acceleration data includes:
    采用如下公式(1),确定所述活动量数据:
    The activity data is determined using the following formula (1):
    其中,A为所述活动量数据,a1为所述第一加速度,a2为所述第二加速度,a3为所述第三加速度。Wherein, A is the activity data, a1 is the first acceleration, a2 is the second acceleration, and a3 is the third acceleration.
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述加速度数据包括:方向两两垂直的第一加速度、第二加速度和第三加速度;The method according to any one of claims 1 to 4, characterized in that the acceleration data comprises: a first acceleration, a second acceleration and a third acceleration whose directions are perpendicular to each other;
    在所述运动数据包括所述活动量数据的情况下,所述活动量数据为所述加速度数据中的所述第一加速度,所述第一加速度为方向与平举的手臂处于同一水平面,并垂直于所述手臂方向的加速度。In the case where the motion data includes the activity volume data, the activity volume data is the first acceleration in the acceleration data, and the first acceleration is an acceleration whose direction is in the same horizontal plane as the raised arm and is perpendicular to the direction of the arm.
  7. 根据权利要求3所述的方法,其特征在于,在所述手臂动作的第一优势特征大于第四阈值的频次满足第一预设频次时确定所述手臂动作满足所述手臂摆动动作,所述第一优势特征用于表征与平举的手臂处于同一水平面内并垂直于所述手臂方向的动作强度;The method according to claim 3 is characterized in that the arm action satisfies the arm swing action when the frequency at which the first dominant feature of the arm action is greater than a fourth threshold satisfies a first preset frequency, and the first dominant feature is used to characterize the intensity of the action that is in the same horizontal plane as the raised arm and perpendicular to the direction of the arm;
    所述第一优势特征采用如下公式(2)确定:
    The first advantageous feature is determined by the following formula (2):
    其中,B1为所述第一优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手 臂处于同一水平面内,并垂直于所述手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于所述手臂方向基于重力引发的加速度。Wherein, B1 is the first advantageous feature, ag,X is the acceleration caused by gravity along the arm direction, ag,Y is the acceleration relative to the horizontally raised hand. The arms are in the same horizontal plane and perpendicular to the direction of the arm based on the acceleration caused by gravity, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the direction of the arm.
  8. 根据权利要求3所述的方法,其特征在于,在所述手臂动作的第二优势特征大于第五阈值的频次满足第二预设频次时确定所述手臂动作满足所述手臂竖直向下动作,所述第二优势特征用于表征沿手臂方向的动作强度;The method according to claim 3 is characterized in that when the frequency at which the second dominant feature of the arm motion is greater than a fifth threshold satisfies a second preset frequency, it is determined that the arm motion satisfies the arm vertical downward motion, and the second dominant feature is used to characterize the motion intensity along the arm direction;
    所述第二优势特征采用如下公式(3)确定:
    The second advantageous feature is determined by the following formula (3):
    其中,B2为所述第二优势特征,ag,X为沿手臂方向基于重力引发的加速度,ag,Y为与平举的手臂处于同一水平面内,并垂直于所述手臂方向基于重力引发的加速度,ag,Z为与平举的手臂处于同一竖直面内,并垂直于所述手臂方向基于重力引发的加速度。Among them, B2 is the second advantageous feature, ag,X is the acceleration caused by gravity along the direction of the arm, ag,Y is the acceleration caused by gravity in the same horizontal plane as the raised arm and perpendicular to the direction of the arm, and ag,Z is the acceleration caused by gravity in the same vertical plane as the raised arm and perpendicular to the direction of the arm.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述根据所述至少两个第一时间点确定所述用户的上床时间点和下床时间点的方法包括:The method according to any one of claims 1 to 8, characterized in that the method of determining the user's bedtime and bedtime according to the at least two first time points comprises:
    获取所述用户的入睡时间点和出睡时间点;Obtaining the user's sleep onset and wake-up time;
    根据所述至少两个第一时间点、所述入睡时间点和所述出睡时间点,确定所述上床时间点和所述下床时间点。The going-to-bed time point and the getting-out-of-bed time point are determined according to the at least two first time points, the falling-to-sleep time point and the waking-up time point.
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述至少两个第一时间点、所述入睡时间点和所述出睡时间点,确定所述上床时间点和所述下床时间点所述上床时间点的方法包括:The method according to claim 9, characterized in that the method of determining the bedtime and the bed-leaving time according to the at least two first time points, the sleep onset time point and the sleep-out time point comprises:
    将所述至少两个第一时间点中,在所述入睡时间点之前,并且与所述入睡时间点时间差最小的所述第一时间点,确定为所述上床时间点;Determine the first time point, among the at least two first time points, which is before the sleeping time point and has the smallest time difference with the sleeping time point as the bedtime point;
    将所述至少两个第一时间点中,在所述出睡时间点之后,并且与所述出睡时间点时间差最小的所述第一时间点,确定为所述下床时间点。The first time point among the at least two first time points, which is after the sleeping time point and has the smallest time difference with the sleeping time point, is determined as the getting out of bed time point.
  11. 根据权利要求1-8任一项所述的方法,其特征在于,所述根据所述至少两个第一时间点确定所述用户的上床时间点和下床时间点的方法包括:The method according to any one of claims 1 to 8, characterized in that the method of determining the user's bedtime and bedtime according to the at least two first time points comprises:
    接收来自第二电子设备的疑似上床时间点和疑似下床时间点;receiving a suspected bedtime and a suspected bedtime from a second electronic device;
    根据所述至少两个第一时间点、所述疑似上床时间点和所述疑似下床时间点,确定所述上床时间点和所述下床时间点。The bedgoing time point and the getting out of bed time point are determined according to the at least two first time points, the suspected bedgoing time point and the suspected getting out of bed time point.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述至少两个第一时间点、所述疑似上床时间点和所述疑似下床时间点,确定所述上床时间点和所述下床时间点的方法包括:The method according to claim 11, characterized in that the method of determining the bedgoing time point and the getting out of bed time point according to the at least two first time points, the suspected bedgoing time point and the suspected getting out of bed time point comprises:
    若所述至少两个第一时间点中存在与所述疑似上床时间点的时间差小于第六阈值的第一时间点,则将所述疑似上床时间点确定为所述上床时间点;If there is a first time point among the at least two first time points whose time difference with the suspected bedtime point is less than a sixth threshold, the suspected bedtime point is determined as the bedtime point;
    若所述至少两个第一时间点中存在与所述疑似下床时间点的时间差小于第七阈值的第一时间点,则将所述疑似下床时间点确定为所述下床时间点。If there is a first time point among the at least two first time points whose time difference with the suspected getting out of bed time point is less than a seventh threshold, the suspected getting out of bed time point is determined as the getting out of bed time point.
  13. 根据权利要求1-8任一项所述的方法,其特征在于,所述根据所述至少两个第一时间点确定所述用户的上床时间点和下床时间点的方法包括:The method according to any one of claims 1 to 8, characterized in that the method of determining the user's bedtime and bedtime according to the at least two first time points comprises:
    显示所述至少两个第一时间点;displaying the at least two first time points;
    接收用户对所述至少两个第一时间点中的第二时间点和第三时间点的选择操作;receiving a user's selection operation on a second time point and a third time point among the at least two first time points;
    根据所述选择操作,将所述第二时间点和所述第三时间点确定为所述上床时间点和所述下床时间点。According to the selection operation, the second time point and the third time point are determined as the bed-going time point and the bed-getting-out time point.
  14. 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the method further comprises:
    获取所述用户的入睡时间点和出睡时间点;Obtaining the user's sleep onset and wake-up time;
    显示所述至少两个第一时间点中,所述入睡时间点之前的第一时间点,和所述出睡时间点之后的第一时间点;Displaying, among the at least two first time points, a first time point before the sleeping time point and a first time point after the waking time point;
    接收用户对所述至少两个第一时间点中的第二时间点和第三时间点的选择操作;receiving a user's selection operation on a second time point and a third time point among the at least two first time points;
    根据所述选择操作,将所述第二时间点和所述第三时间点确定为所述上床时间点和所述下床时间点。According to the selection operation, the second time point and the third time point are determined as the bed-going time point and the bed-getting-out time point.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 14, characterized in that the method further comprises:
    根据所述加速度数据,确定所述第一时间点之后的累计活动量数据; Determining, based on the acceleration data, accumulated activity data after the first time point;
    若所述累计活动量数据小于第八阈值的时间满足预设时间,获取入睡参数,所述入睡参数用于表征用户的入睡情况;If the time during which the accumulated activity data is less than the eighth threshold value satisfies a preset time, a sleeping parameter is obtained, where the sleeping parameter is used to characterize the sleeping condition of the user;
    若所述入睡参数不满足第九阈值,则显示第一提示信息,所述第一提示信息用于用户确认是否开启睡眠模式;If the sleeping parameter does not meet the ninth threshold, displaying a first prompt message, wherein the first prompt message is used for the user to confirm whether to turn on the sleep mode;
    接收用户的开启所述睡眠模式的确认操作;Receiving a confirmation operation from a user to start the sleep mode;
    响应所述确认操作,开启所述睡眠模式。In response to the confirmation operation, the sleep mode is activated.
  16. 根据权利要求15所述的方法,其特征在于,在所述接收用户的开启所述睡眠模式的确认操作之后,所述方法还包括:The method according to claim 15, characterized in that after receiving the user's confirmation operation of turning on the sleep mode, the method further comprises:
    响应所述确认操作,向第三电子设备发送开启睡眠模式指令,所述开启睡眠模式指令用于触发所述第三电子设备开启所述睡眠模式。In response to the confirmation operation, a sleep mode activation instruction is sent to the third electronic device, where the sleep mode activation instruction is used to trigger the third electronic device to activate the sleep mode.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述根据所述上床时间点和所述下床时间点,对所述用户的睡眠进行监测的方法包括:The method according to any one of claims 1 to 16, characterized in that the method of monitoring the sleep of the user according to the going to bed time and the getting out of bed time comprises:
    根据所述上床时间点和所述下床时间点,确定睡眠潜伏时长和卧床时长,所述睡眠潜伏时长为所述上床时间点与入睡时间点的差值,所述卧床时长为所述上床时间点和所述下床时间点的差值;Determine the sleep latency duration and bed rest duration according to the bed-going time and the bed-getting time, wherein the sleep latency duration is the difference between the bed-going time and the sleeping time, and the bed rest duration is the difference between the bed-going time and the bed-getting time;
    根据所述睡眠潜伏时长和所述卧床时长显示所述用户的睡眠分析结果。The sleep analysis result of the user is displayed according to the sleep latency duration and the bed rest duration.
  18. 根据权利要求17所述的方法,其特征在于,在所述睡眠潜伏时长大于第十阈值的情况下,所述睡眠分析结果包括:The method according to claim 17, characterized in that, when the sleep latency duration is greater than a tenth threshold, the sleep analysis result includes:
    所述睡眠潜伏时长、所述卧床时长及第二提示信息,所述第二提示信息用于提醒用户卧床时间过长。The sleep latency duration, the bed rest duration and second prompt information, wherein the second prompt information is used to remind the user that the bed rest time is too long.
  19. 根据权利要求17或18所述的方法,其特征在于,在所述睡眠潜伏时长大于第十阈值的天数大于天数阈值的情况下,所述睡眠分析结果包括:The method according to claim 17 or 18, characterized in that, when the number of days during which the sleep latency duration is greater than the tenth threshold is greater than a day threshold, the sleep analysis result includes:
    第三提示信息,所述第三提示信息用于展示导致所述睡眠潜伏时长大于第十阈值的因素,和/或展示睡眠改善建议和睡眠改善任务。The third prompt information is used to display factors causing the sleep latency duration to be greater than a tenth threshold, and/or to display sleep improvement suggestions and sleep improvement tasks.
  20. 一种电子设备,其特征在于,包括:存储器、一个或多个处理器;所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-19任一项所述的方法。An electronic device, characterized in that it comprises: a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-19.
  21. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-19任一项所述的方法。A computer-readable storage medium, characterized in that it includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 19.
  22. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述电子设备执行如权利要求1-19任一项所述的方法。 A computer program product, characterized in that when the computer program product is run on a computer, the electronic device executes the method according to any one of claims 1 to 19.
PCT/CN2023/123527 2022-10-26 2023-10-09 Sleep monitoring method and electronic device WO2024088049A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211321498.2 2022-10-26
CN202211321498.2A CN117958746A (en) 2022-10-26 2022-10-26 Sleep monitoring method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024088049A1 true WO2024088049A1 (en) 2024-05-02

Family

ID=90829995

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/123527 WO2024088049A1 (en) 2022-10-26 2023-10-09 Sleep monitoring method and electronic device

Country Status (2)

Country Link
CN (1) CN117958746A (en)
WO (1) WO2024088049A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017158761A (en) * 2016-03-09 2017-09-14 公立大学法人奈良県立医科大学 Apparatus and method for blood pressure measurement, and apparatus and method for sleeping state measurement
CN107184217A (en) * 2017-07-06 2017-09-22 深圳市新元素医疗技术开发有限公司 A kind of circadian rhythm analysis method
CN108523899A (en) * 2018-04-23 2018-09-14 深圳市友宏科技有限公司 Method, storage medium and device for monitoring out-of-bed state in sleeping process
US20180338717A1 (en) * 2016-03-28 2018-11-29 Fujitsu Limited Information processing device, information processing method, and recording medium
JP2019058418A (en) * 2017-09-27 2019-04-18 富士通株式会社 Sleep discrimination program, sleep discrimination method, and sleep discrimination system
CN114027667A (en) * 2021-12-01 2022-02-11 慕思健康睡眠股份有限公司 Method and device for judging bed leaving state, intelligent mattress and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017158761A (en) * 2016-03-09 2017-09-14 公立大学法人奈良県立医科大学 Apparatus and method for blood pressure measurement, and apparatus and method for sleeping state measurement
US20180338717A1 (en) * 2016-03-28 2018-11-29 Fujitsu Limited Information processing device, information processing method, and recording medium
CN107184217A (en) * 2017-07-06 2017-09-22 深圳市新元素医疗技术开发有限公司 A kind of circadian rhythm analysis method
JP2019058418A (en) * 2017-09-27 2019-04-18 富士通株式会社 Sleep discrimination program, sleep discrimination method, and sleep discrimination system
CN108523899A (en) * 2018-04-23 2018-09-14 深圳市友宏科技有限公司 Method, storage medium and device for monitoring out-of-bed state in sleeping process
CN114027667A (en) * 2021-12-01 2022-02-11 慕思健康睡眠股份有限公司 Method and device for judging bed leaving state, intelligent mattress and medium

Also Published As

Publication number Publication date
CN117958746A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
WO2021057873A1 (en) Human body temperature measurement method, electronic device, and computer-readable storage medium
CN108429972B (en) Music playing method, device, terminal, earphone and readable storage medium
CN110489215A (en) The treating method and apparatus of scene is waited in a kind of application program
EP3968134A1 (en) Fall detection-based call-for-help method and electronic device
WO2021213151A1 (en) Display control method and wearable device
CN113827185A (en) Method and device for detecting wearing tightness degree of wearable equipment and wearable equipment
CN109561219A (en) Music adjusting method, device, mobile terminal and readable storage medium storing program for executing
WO2021238460A1 (en) Risk pre-warning method, risk behavior information acquisition method, and electronic device
CN106453867A (en) Alarm clock control method and device
CN109222927A (en) A kind of processing method based on health status, intelligent wearable device and storage medium
CN110448779A (en) A kind of method and device adjusting biological rhythm
CN113691271B (en) Data transmission method and wearable device
WO2022100407A1 (en) Intelligent eye mask, terminal device, and health management method and system
WO2022037555A1 (en) Physiological data acquisition method and apparatus, and wearable device
CN113996046B (en) Warming-up judgment method and device and electronic equipment
WO2024088049A1 (en) Sleep monitoring method and electronic device
WO2023001165A1 (en) Exercise guidance method and related apparatus
WO2022237598A1 (en) Sleep state testing method and electronic device
WO2022089101A1 (en) Pwv measurement method and apparatus based on portable electronic device
CN113509145B (en) Sleep risk monitoring method, electronic device and storage medium
CN113539487A (en) Data processing method and device and terminal equipment
WO2021233018A1 (en) Method and apparatus for measuring muscle fatigue degree after exercise, and electronic device
WO2023197957A1 (en) Age-determination method and wearable device
WO2022083363A1 (en) Method for periodically measuring blood oxygen, and electronic device
WO2024066962A1 (en) Respiratory health detection method and wearable electronic device

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: 23881628

Country of ref document: EP

Kind code of ref document: A1