WO2021204036A1 - Sleep risk monitoring method, electronic device and storage medium - Google Patents

Sleep risk monitoring method, electronic device and storage medium Download PDF

Info

Publication number
WO2021204036A1
WO2021204036A1 PCT/CN2021/084204 CN2021084204W WO2021204036A1 WO 2021204036 A1 WO2021204036 A1 WO 2021204036A1 CN 2021084204 W CN2021084204 W CN 2021084204W WO 2021204036 A1 WO2021204036 A1 WO 2021204036A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
user
sleep
altitude
monitoring model
Prior art date
Application number
PCT/CN2021/084204
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
Priority claimed from CN202011455211.6A external-priority patent/CN113509145B/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021204036A1 publication Critical patent/WO2021204036A1/en

Links

Images

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/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

Definitions

  • This application relates to the field of artificial intelligence technology, in particular to a sleep risk monitoring method, electronic equipment and storage medium.
  • the user's sleep risk level can be determined by monitoring the user's physiological information (for example, blood oxygen, pulse, snoring, etc.).
  • physiological information for example, blood oxygen, pulse, snoring, etc.
  • the inventor found when analyzing the prior art that environmental factors will have a certain impact on physiological information. If only the physiological information of the user is monitored during sleep risk monitoring, the accuracy of sleep risk monitoring will be affected.
  • the present application provides a sleep risk monitoring method, electronic equipment and storage medium, which can improve the accuracy of sleep risk monitoring.
  • an embodiment of the present application provides a sleep risk monitoring method, including: obtaining physiological information of a user and altitude information of the user currently located; determining a sleep monitoring model according to the altitude information of the user currently located, wherein The sleep monitoring model is obtained after training with preset physiological information in a preset altitude area and corresponding risk information as training samples; inputting the user physiological information into the sleep monitoring model to obtain the output of the sleep monitoring model Sleep risk information.
  • the sleep monitoring model is determined according to the user's current altitude information.
  • the sleep monitoring model is based on the preset physiological information of the preset altitude area and the corresponding sleep
  • the risk information is obtained after training as a training sample; the user's physiological information is input into the sleep monitoring model to obtain the sleep risk information output by the sleep monitoring model.
  • the air pressure and the concentration of oxygen in the air will change accordingly. Therefore, the physiological information of users in different altitude areas is different.
  • the sleep monitoring model is determined according to the current altitude information of the user, and the current A more reasonable sleep monitoring model that matches the physiological information of users in the altitude area can realize sleep risk monitoring of users in different regions, improve the accuracy of sleep risk monitoring, and enhance product coverage.
  • the physiological information of the user includes the physiological information of the user in a first predetermined period of time
  • the physiological information of the user is input into the sleep monitoring model to obtain the sleep monitoring model
  • the output sleep risk information includes: inputting physiological information of the user during the first predetermined period of time into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
  • the sleep monitoring model is obtained by training the physiological information and corresponding risk information of the user in the preset altitude area during the first predetermined time period. Since the user's physiological information during the first predetermined period can better reflect the user's sleep status, the user's physiological information during the first predetermined period is input into the sleep monitoring model to output the user's sleep risk and improve the accuracy of sleep risk monitoring.
  • the determining a sleep monitoring model according to the altitude information where the user is currently located includes:
  • the altitude interval corresponding to the altitude information where the user is currently located determines a sleep monitoring model according to the altitude interval and the blood oxygen statistical value corresponding to the first predetermined time period.
  • the blood oxygen statistical value corresponding to the first predetermined time period is obtained by collecting blood oxygen information of different users in different altitude areas during the first predetermined time period.
  • the blood oxygen statistical value corresponding to the first predetermined time period is the average value of the blood oxygen of the user in the current altitude interval in the first predetermined time period, reflecting the blood oxygen level of the user in the current altitude interval in the first predetermined time period, according to the altitude
  • the interval and the preset nighttime blood oxygen statistical value determine the sleep monitoring model, which can determine the sleep monitoring model that more closely matches the physiological information of the user in the current altitude area.
  • the determining a sleep monitoring model according to the altitude information where the user is currently located includes:
  • the sleep monitoring model determines the sleep monitoring model according to the blood oxygen statistical value corresponding to the altitude interval and the second predetermined time period, wherein the second predetermined time period refers to the first A time period outside the predetermined time period.
  • the blood oxygen statistical value corresponding to the second predetermined time period is obtained after statistics of blood oxygen information of different users in different altitude areas during the second predetermined time period.
  • the blood oxygen statistical value corresponding to the second predetermined period is the average value of blood oxygen of the user in the current altitude range during the day, reflecting the blood oxygen level of the user in the current altitude range in the second predetermined period, based on the altitude range and preset daytime values.
  • the blood oxygen statistical value determines the sleep monitoring model, which can determine the sleep monitoring model that more closely matches the physiological information of the user in the current altitude area.
  • the sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located. , A sleep monitoring model that matches the physiological information of the user in the current altitude area can be determined.
  • the physiological information of the first predetermined period of time collected by the electronic device includes blood oxygen information of the user during the first predetermined period of time, according to the user's physiological information
  • Determining a sleep monitoring model with the altitude information of the user currently located includes: determining the blood oxygen interval corresponding to the blood oxygen information of the first predetermined time period, and determining the altitude interval corresponding to the altitude information of the user currently located;
  • a sleep monitoring model is determined according to the blood oxygen interval and the altitude interval. Since the blood oxygen information in the physiological information changes most significantly when the altitude information of the user is changed, the sleep monitoring model determined by the blood oxygen information of the user in the first predetermined period of time is more compatible with the physiological information of the user.
  • the user physiological information also includes the user’s second predetermined time period.
  • the physiological information of the time period, the physiological information of the user in the second predetermined time period includes the blood oxygen information of the user in the second predetermined time period
  • the sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located , Including: determining the blood oxygen interval corresponding to the blood oxygen information of the second predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located; determining sleep monitoring according to the blood oxygen interval and the altitude interval Model.
  • the sleep monitoring model is divided according to the blood oxygen information of different users in the second predetermined time period, It can ensure the stability of the data of each training sample used to train the sleep monitoring model, ensure the accuracy of the sleep monitoring model, and then determine the corresponding sleep monitoring model based on the user's blood oxygen information and altitude information, which improves the sleep risk monitoring performance Accuracy.
  • an embodiment of the present application provides a sleep risk monitoring device, including:
  • the obtaining module is used to obtain the user's physiological information and the altitude information of the user's current location;
  • the determining module is configured to determine a sleep monitoring model according to the altitude information of the user currently located, wherein the sleep monitoring model is obtained after training with preset physiological information and corresponding risk information in a preset altitude area as a training sample of;
  • the output module is used to input the physiological information of the user into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
  • the physiological information of the user includes the physiological information of the user in the first predetermined time period
  • the output module is specifically configured to:
  • the physiological information of the user during the first predetermined period of time is input into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
  • the determining module is specifically configured to:
  • a sleep monitoring model is determined according to the altitude interval and the blood oxygen statistical value corresponding to the first predetermined time period.
  • the blood oxygen statistical value corresponding to the first predetermined time period is obtained after statistics of blood oxygen information of different users in different altitude areas during the first predetermined time period.
  • the determining module is specifically configured to:
  • the sleep monitoring model is determined according to the blood oxygen statistical value corresponding to the altitude interval and the second predetermined time period, where the second predetermined time period refers to a time period outside the first predetermined time period.
  • the determining module is specifically configured to:
  • the sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located.
  • the physiological information of the first predetermined time period includes blood oxygen information of the user in the first predetermined time period
  • the determining module is specifically configured to:
  • a sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
  • the physiological information of the user further includes the physiological information of the user in a second predetermined period of time, and the physiological information of the user in the second predetermined period includes the user's blood in the second predetermined period of time.
  • Oxygen information the determining module is specifically used for:
  • a sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
  • an embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program Time to realize the sleep risk monitoring method as described in the first aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the sleep risk as described in the first aspect is realized. Monitoring method.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the sleep risk monitoring method described in the first aspect.
  • Figure 1 is a schematic diagram of a sleep risk monitoring method provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a sleep risk monitoring method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a sleep risk monitoring method in an application scenario according to an embodiment of the present application
  • FIG. 5 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • the monitored user’s physiological information (such as blood oxygen, pulse, snoring, etc.) can be input into the sleep monitoring model, and the user can be determined according to the output result of the sleep monitoring model Of sleep risk information.
  • physiological information such as blood oxygen, pulse, snoring, etc.
  • this application provides a sleep risk monitoring method, which corrects the sleep monitoring model according to the user’s current altitude information to obtain the corrected sleep monitoring model, and then inputs the user’s physiological information into the corrected sleep monitoring model , To obtain the sleep risk information output by the revised sleep monitoring model to improve the accuracy of sleep risk monitoring.
  • the sleep monitoring model can be corrected according to the user’s current altitude information and the user’s physiological information to obtain the corrected sleep monitoring model, and then the user’s physiological information is input into the corrected sleep
  • the monitoring model obtains the sleep risk information output by the revised sleep monitoring model to further improve the accuracy of sleep risk monitoring.
  • the user’s physiological information includes pulse information, heart rate information, snoring information, body movement information, and blood oxygen information. Sleep can be monitored based on the blood oxygen information in the user’s physiological information and the user’s current altitude information.
  • the model is revised to obtain a revised sleep monitoring model, and then the user's physiological information is input into the revised sleep monitoring model to obtain sleep risk information output by the revised sleep monitoring model to improve the accuracy of sleep risk monitoring.
  • the sleep risk information may be a sleep risk level, and the sleep risk level includes a normal level, a low level, a medium level, and a high level, and the user can determine his/her physical state according to the sleep risk level.
  • the sleep risk monitoring method provided in the embodiments of the present application is applied to electronic devices.
  • the electronic devices may be wearable devices, computers, medical devices, etc., and the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • the wearable device can also be a general term for using wearable technology to intelligently design daily wear and develop wearable devices, such as watches, jewelry, etc. .
  • a wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories.
  • Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-sized, complete or partial functions that can be implemented without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to be used in conjunction with other devices such as smart phones. , Such as all kinds of smart bracelets and smart jewelry for physical sign monitoring.
  • the electronic device includes an altitude/atmospheric pressure sensor 10, a pulse oximetry sensor 20, other biosensors 30, a data storage unit 40, a sleep risk monitoring module 50 and a display unit 60.
  • the altitude/atmospheric pressure sensor 10 is used to collect altitude information or atmospheric pressure information where the user is located.
  • the pulse oximetry sensor 20 is used to collect the user's pulse information, heart rate information, and blood oxygen information.
  • the other biological sensor 30 may be a radar wave sensor, an acceleration sensor, or a sound pickup device, and is used to collect the user's snoring information and body motion information.
  • the data storage unit 40 is used to store altitude information or atmospheric pressure information, pulse information, heart rate information, blood oxygen information, snoring information and body movement information where the user is located, and send it to the sleep risk monitoring module 50, which is used for
  • the user's sleep risk information is determined according to the altitude information or atmospheric pressure information, pulse information, heart rate information, blood oxygen information, snoring information, and body motion information of the user, and the display unit 60 is used to display the sleep risk information of the user.
  • the sleep risk monitoring method provided by the embodiment of the present application will be described below in conjunction with the electronic device shown in FIG. 2.
  • the sleep risk monitoring method provided by the embodiment of the present application includes:
  • S101 Acquire physiological information of the user and altitude information of the user currently located.
  • the user's physiological information includes blood oxygen information, heart rate information, pulse information, etc.
  • the electronic device obtains the user's physiological information from the pulse oximetry sensor and/or other biosensors.
  • the user's physiological information can be the user's physiological information in the second predetermined period of time, or the user's physiological information in the first predetermined period of time, and it can also include the user's physiological information in the second predetermined period of time and the user's physiological information in the first predetermined period.
  • the first predetermined time period and the second predetermined time period are different time periods. For example, the first predetermined time period is a night time period, and the second predetermined time period is a day time period.
  • the night time period may be a fixed time period, for example, 23:00-6:00, or a fixed time period after detecting that the user enters the sleep state, for example, 4 hours after the user enters the sleep state.
  • the daytime period can be a fixed time period or a fixed time period after detecting that the user is awake.
  • the blood oxygen information is the percentage of the volume of oxygen-bound oxyhemoglobin in the blood to the total volume of hemoglobin that can be bound, that is, the concentration of blood oxygen in the blood.
  • the altitude information where the user is currently located is obtained from the altitude/atmospheric pressure sensor. If the user's current altitude information is obtained from an altitude sensor, the altitude information is the altitude. If the user's current altitude information is obtained from an atmospheric pressure sensor, the electronic device calculates the altitude according to the atmospheric pressure collected by the atmospheric pressure sensor.
  • S102 Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset physiological information of a preset altitude area and corresponding sleep risk information as training samples.
  • multiple sleep monitoring models are first trained. Specifically, the physiological information of different users in different altitude areas is collected to obtain collected samples, where the physiological information of different users may be the physiological information of the second predetermined period of time, or may be the physiological information of the first predetermined period of time.
  • the samples are collected according to different altitude intervals to obtain multiple samples corresponding to the altitude intervals, and then each sample corresponding to the altitude interval is divided according to the physiological information interval to obtain multiple samples corresponding to the physiological information interval.
  • the physiological information interval may be the user's blood oxygen interval, the user's heart rate interval, or the user's pulse interval.
  • the samples corresponding to the altitude interval may be divided according to the physiological information interval of the user in the second predetermined time period, and the samples corresponding to the altitude interval may also be divided according to the physiological information interval of the user in the first predetermined time period.
  • the range of the altitude in the collected sample is 1000-4000
  • the range of blood oxygen in the physiological information of the user in the second predetermined period of time is 80%-90%
  • There are 3 altitude intervals in 4000 and samples are collected according to the altitude interval division, and the samples corresponding to the altitude interval 1000-2000, the samples corresponding to the altitude interval 2000-3000, and the samples corresponding to the altitude interval 3000-4000 are obtained, a total of 3 samples.
  • the blood oxygen interval 80%-85%, 85% to 90%
  • each sample gets the blood oxygen interval 80%-85% and There are 2 sub-samples corresponding to the blood oxygen interval of 85% to 90%, thereby dividing the collected sample into 6 sub-samples.
  • Use the physiological information of each user in each sub-sample and the corresponding sleep risk information as the training sample, and use the machine learning algorithm to train the classification model to obtain the optimal parameters of the classification model corresponding to each sub-sample, according to the optimal parameters Generate a corresponding sleep monitoring model, that is, a sleep monitoring model corresponding to each sub-sample.
  • the sleep risk information may be sleep risk level, sleep state, and so on.
  • the physiological information of the users in the training samples may be the physiological information of different users in the second predetermined time period, or the physiological information of different users in the first predetermined time period, and may also include the physiological information and the first predetermined time period of different users in the second predetermined time period. Physiological information for a predetermined period of time.
  • the sleep risk information corresponding to the physiological information of the user in the training sample can be all normal, for example, all are risk-free levels; it can also be partly normal and partly abnormal, for example, including high-risk levels, low-risk levels, and no-risk levels. Risk level.
  • the sleep monitoring model corresponding to the altitude range After obtaining multiple sleep monitoring models, determine the sleep monitoring model corresponding to the altitude range according to the altitude range where the user’s current altitude information is located, and the sleep monitoring model corresponding to the altitude range is the revised sleep Monitoring model.
  • the statistical average value of the physiological information of different users close to the current altitude of the user is obtained, the physiological information interval of the statistical average value of the physiological information is determined, and then the physiological information interval with the altitude is determined. Sleep monitoring model corresponding to interval and physiological information interval.
  • a sleep monitoring model corresponding to the physiological information interval and the altitude interval is determined according to the physiological information interval in which the acquired physiological information of the user is located.
  • the threshold for determining sleep risk information in the sleep monitoring model is determined according to the user’s current altitude information and/or the user’s physiological information, so as to improve the follow-up Determine the accuracy of sleep risk information.
  • S103 Input the physiological information of the user into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
  • the user's physiological information is input into the sleep monitoring model, and the sleep monitoring model outputs corresponding sleep risk information according to the set threshold.
  • the output sleep risk information may be information such as sleep risk level or sleep state.
  • output sleep risk level which can be normal, high risk, low risk, or no risk
  • output sleep risk assessment score which corresponds to the risk level
  • output sleep state which can be excellent, good, medium, or poor.
  • the sleep risk information such as the risk information of obstructive sleep apnea and hypopnea syndrome, is mainly determined according to the physiological information of the user in the first predetermined period of time, and the user is determined in the first predetermined period of time. Input the determined sleep monitoring model of physiological information to output sleep risk information, which can improve the accuracy of sleep risk monitoring.
  • the sleep monitoring model can be determined according to the physiological information of the user in the second predetermined period and the altitude information of the user’s current location, the physiological information of the user in the first predetermined period is input into the determined sleep monitoring model, and the sleep risk is output. information. It is also possible to determine the sleep monitoring model according to the physiological information of the user in the second predetermined period and the altitude information of the user's current location, input the physiological information of the user in the second predetermined period into the determined sleep monitoring model, and output sleep risk information. It is also possible to determine the sleep monitoring model according to the physiological information of the user during the first predetermined period and the altitude information of the user's current location, input the physiological information of the user during the first predetermined period into the determined sleep monitoring model, and output sleep risk information.
  • the sleep risk that needs to be monitored is the risk of obstructive sleep apnea and hypopnea syndrome
  • the user's nose and mouth airflow information, snoring information, and ECG signal Information, body movement information, etc. are input into the sleep monitoring model.
  • the sleep monitoring model is determined according to the user's current altitude information, where the sleep monitoring model is based on the preset physiological information and the corresponding preset altitude area.
  • the sleep risk information is obtained after training as a training sample, that is, the determined sleep monitoring model matches the preset physiological information of the preset altitude area; therefore, the sleep monitoring model can be determined according to the altitude information of the user’s current location.
  • a more reasonable sleep monitoring model that matches the physiological information of the user in the current altitude area is developed; after the sleep monitoring model is determined, the user’s physiological information is input into the determined sleep monitoring model to obtain the sleep risk information output by the sleep monitoring model.
  • the monitoring accuracy of sleep risks of users in different altitude areas can be improved, and the coverage of products can be enhanced.
  • the user only wears or uses the electronic device during the first predetermined period of time, that is, at night, and the physiological information collected by the electronic device does not include the user's blood oxygen information.
  • sleep risk monitoring methods include:
  • S201 Acquire physiological information of the user during the first predetermined period and altitude information of the user currently located, where the physiological information of the user during the first predetermined period includes pulse information and/or heart rate information, and the altitude information of the user currently located is the user The altitude of the area.
  • the information acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time, where the snoring information and body motion information are collected by an acceleration sensor.
  • S202 Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset blood oxygen information and corresponding sleep risk information in a preset altitude area as a training sample .
  • the physiological information of different users in different altitude areas during the first predetermined period of time is collected to obtain collected samples.
  • the blood oxygen information of the corresponding user in the first predetermined time period is calculated, for example, according to the preset correspondence relationship between heart rate information and blood oxygen information and the user’s
  • the heart rate information of the time period is calculated, and the blood oxygen information of the corresponding user in the first predetermined time period is calculated.
  • the collected sample is divided into a plurality of sub-samples. Taking the physiological information of each user in the first predetermined period of time and the corresponding sleep risk information in each sub-sample as the training sample, the classification model is trained by the machine learning algorithm, and the sleep monitoring model corresponding to each sub-sample is obtained.
  • obtain the blood oxygen statistical value corresponding to the first predetermined time period specifically, perform statistics on blood oxygen information of different users in different altitude areas during the first predetermined time period, Obtain the mapping relationship between altitude and blood oxygen information of the first predetermined time period, and obtain the blood oxygen statistical value corresponding to the first predetermined time period according to the mapping relationship, where the blood oxygen statistical value corresponding to the first predetermined time period may be related to the user The average value of blood oxygen in the first predetermined period of time for different users in the altitude area close to the altitude.
  • the blood oxygen interval corresponding to the blood oxygen statistical value and the altitude interval corresponding to the altitude information of the user's current location are determined, and the corresponding sleep monitoring model is determined according to the altitude interval and the blood oxygen interval. Since blood oxygen is an important indicator for evaluating sleep risk information, and the blood oxygen information of different users in the same area has certain differences, the sleep monitoring model determined according to the blood oxygen interval where the blood oxygen statistical value is located can better reflect the current situation. The blood oxygen level of users in the region, thereby obtaining a more accurate sleep monitoring model suitable for current users.
  • the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen statistical value of the first predetermined time period, In order to improve the accuracy of subsequent determination of sleep risk information.
  • S203 Input the physiological information of the user in the first predetermined period of time into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
  • the sleep monitoring model is determined according to the user’s current altitude information and the blood oxygen statistical value corresponding to the first predetermined time period, and the sleep monitoring model that matches the physiological information of the user in the current altitude area can be determined, and then according to The physiological information of the user in the first predetermined period of time and the determined sleep monitoring model output sleep risk information to improve the accuracy of sleep risk monitoring.
  • the user only wears or uses the electronic device during the first predetermined period of time, and the physiological information collected by the electronic device includes blood oxygen information.
  • sleep risk monitoring methods include:
  • S301 Acquire physiological information of the user in the first predetermined time period and altitude information of the user currently located.
  • the physiological information of the user in the first predetermined period of time includes blood oxygen information, heart rate information, pulse information, and the like.
  • the data acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time.
  • S302 Determine a sleep monitoring model according to the blood oxygen information of the user in the first predetermined time period and the altitude information where the user is currently located, where the sleep monitoring model is based on preset blood oxygen information in a preset altitude area and a corresponding sleep risk The information is obtained after training as a training sample.
  • the physiological information of different users in different altitude areas during the first predetermined period of time is collected to obtain collected samples.
  • the collected sample is divided into a plurality of sub-samples.
  • the physiological information and corresponding sleep risk information of each user in each group of sub-samples in the first predetermined period are used as training samples, and machine learning algorithms are used to train the classification model to obtain a sleep monitoring model corresponding to each sub-sample.
  • the sleep monitoring model corresponding to the blood oxygen interval, and the sleep monitoring model corresponding to the altitude interval and blood oxygen interval are also the revised sleep monitoring model.
  • the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen information of the first predetermined period of time, to Improve the accuracy of subsequent determination of sleep risk information.
  • S303 Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
  • the sleep monitoring model is determined according to the user's blood oxygen information in the first predetermined period of time and the user's current altitude information, and the sleep monitoring that matches the user's altitude area and the user's blood oxygen information can be determined
  • the model then outputs sleep risk information according to the physiological information of the user in the first predetermined period of time and the determined sleep monitoring model, so as to improve the accuracy of sleep risk monitoring.
  • the user wears or uses the electronic device in both the first predetermined time period and the second predetermined time period, that is, the user wears or uses the electronic device during the day and night, and the physiological information collected by the electronic device in the second predetermined time period
  • the blood oxygen information of the user in the second predetermined period of time is not included.
  • sleep risk monitoring methods include:
  • S401 Acquire physiological information of the user and altitude information of the user currently located.
  • the physiological information of the user includes the physiological information of the user in the first predetermined time period and the physiological information of the user in the second predetermined time period
  • the physiological information of the user in the first predetermined time period includes blood oxygen information, heart rate information and/or pulse information
  • the user includes pulse information and/or heart rate information.
  • S402 Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset blood oxygen information and corresponding sleep risk information in a preset altitude area as training samples .
  • the physiological information of different users in different altitude areas during the second predetermined time period and the first predetermined time period is collected to obtain the collected samples.
  • the blood oxygen information of the corresponding user in the second predetermined time period is calculated according to the physiological information of different users in different altitude areas in the second predetermined time period.
  • the collected sample is divided into a plurality of sub-samples.
  • the physiological information and corresponding sleep risk information of each user in each sub-sample at the first predetermined time period are used as training samples, and the classification model is trained using a machine learning algorithm to obtain a sleep monitoring model corresponding to each sub-sample.
  • the blood oxygen statistical value corresponding to the second predetermined time period is obtained, specifically, the blood oxygen information of different users in different altitude areas in the second predetermined time period is collected, Obtain the mapping relationship between altitude and blood oxygen information in the second predetermined time period, and obtain the blood oxygen statistical value corresponding to the second predetermined time period according to the mapping relationship, where the blood oxygen statistical value may be an altitude area close to the altitude where the user is located The average value of blood oxygen of different users in the second predetermined period of time.
  • the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen statistical value corresponding to the second predetermined time period , In order to improve the accuracy of subsequent determination of sleep risk information.
  • S403 Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
  • the sleep monitoring model is determined according to the user’s current altitude information and the blood oxygen statistical value corresponding to the second predetermined time period, and the sleep monitoring model that matches the user’s physiological information in the current altitude area can be determined, and then according to the user
  • the physiological information in the first predetermined period of time and the determined sleep monitoring model output sleep risk information, which improves the accuracy of sleep risk monitoring.
  • the user wears or uses the electronic device in both the first predetermined period and the second predetermined period, and the physiological information collected by the electronic device in the second predetermined period includes blood oxygen information of the user in the second predetermined period.
  • sleep risk monitoring methods include:
  • S501 Acquire physiological information of the user and altitude information of the user currently located.
  • the physiological information of the user includes the physiological information of the user in the second predetermined period and the physiological information of the first predetermined period
  • the physiological information of the user in the second predetermined period includes blood oxygen information
  • the physiological information of the user in the first predetermined period includes Blood oxygen information, heart rate information and/or pulse information.
  • the data acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time.
  • S502 Determine a sleep monitoring model according to the blood oxygen information of the user in the second predetermined time period and the altitude information where the user is currently located, where the sleep monitoring model is based on preset blood oxygen information in a preset altitude area and a corresponding sleep risk The information is obtained after training as a training sample.
  • the physiological information of different users in different altitude areas during the second predetermined time period and the first predetermined time period is collected to obtain the collected samples.
  • the collected sample is divided into a plurality of sub-samples. Taking the physiological information of each user in the first predetermined period of time and the corresponding sleep risk information in each sub-sample as the training sample, the classification model is trained by the machine learning algorithm, and the sleep monitoring model corresponding to each sub-sample is obtained.
  • the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen information of the second predetermined period of time, so as to Improve the accuracy of subsequent determination of sleep risk information.
  • S503 Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
  • the blood oxygen information of users in different altitude areas is different, the blood oxygen information of users whose sleep risk is at the same risk level is also different, and the blood oxygen information of the user in the second predetermined time period is relative to the blood oxygen information of the user in the first predetermined time period.
  • Information is more stable. For example, for a user who has a sleep risk problem, his blood oxygen information during the first predetermined period of time fluctuates greatly.
  • samples are collected according to the blood oxygen interval and altitude interval of the user in the second predetermined period of time, and the sleep monitoring model is trained to make the training data of the sleep monitoring model more stable, so that a more accurate model can be trained.
  • the physiological information of the user in the first predetermined period of time and the determined sleep monitoring model output sleep risk information to improve the accuracy of sleep risk monitoring.
  • FIG. 8 is a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, and a universal serial bus (USB).
  • USB universal serial bus
  • Interface 130 charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D,
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated 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 those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDL) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used 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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like 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), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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), broadband Code division multiple access (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, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used 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, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may 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 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • a touch operation acts on the display screen 194
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various 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 electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
  • the electronic device 100 can measure the distance by radar, infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing. In some embodiments, the electronic device 100 may also use the distance sensor 180F to measure the distance and speed of the obstacle.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L 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 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • 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 photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K 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.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • 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.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, 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 change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, 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 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 computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include at least: any entity or device capable of carrying computer program code to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the disclosed apparatus/network equipment and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Abstract

Disclosed are a sleep risk monitoring method, an electronic device and a storage medium, which relate to the technical field of artificial intelligence. The sleep risk monitoring method comprises: acquiring physiological information of a user and information regarding the altitude of the area where the user is currently located (S401); determining a sleep monitoring model according to the information regarding the altitude of the place where the user is currently located (S402), wherein the sleep monitoring model is obtained by means of training by taking preset physiological information and corresponding risk information in a preset altitude area as training samples, so that a more reasonable sleep monitoring model matching the physiological information of the user in the current altitude area can be determined; and then, inputting the physiological information of the user into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model (S403). In this way, the sleep risk monitoring of users in different areas can be achieved, and the accuracy of the sleep risk monitoring can be improved.

Description

睡眠风险监测方法、电子设备及存储介质Sleep risk monitoring method, electronic equipment and storage medium
本申请要求于2020年4月10日提交国家知识产权局、申请号为202010279993.6、申请名称为“睡眠风险监测方法、电子设备及存储介质”的中国专利申请的优先权,以及,2020年12月10日提交国家知识产权局、申请号为202011455211.6、申请名称为“睡眠风险监测方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on April 10, 2020, the application number is 202010279993.6, and the application name is "Sleep Risk Monitoring Methods, Electronic Equipment and Storage Media", and December 2020 The priority of the Chinese patent application filed with the State Intellectual Property Office on the 10th with the application number 202011455211.6 and the application name "Sleep Risk Monitoring Method, Electronic Equipment and Storage Medium", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及人工智能技术领域,尤其涉及睡眠风险监测方法、电子设备及存储介质。This application relates to the field of artificial intelligence technology, in particular to a sleep risk monitoring method, electronic equipment and storage medium.
背景技术Background technique
现有技术可以通过监测用户的生理信息(例如血氧、脉搏、鼾声等)来确定用户的睡眠风险等级。然而,发明人在分析现有技术时发现,环境因素会对生理信息产生一定的影响,如果在睡眠风险监测时仅监测用户的生理信息,会影响到睡眠风险监测的准确率。In the prior art, the user's sleep risk level can be determined by monitoring the user's physiological information (for example, blood oxygen, pulse, snoring, etc.). However, the inventor found when analyzing the prior art that environmental factors will have a certain impact on physiological information. If only the physiological information of the user is monitored during sleep risk monitoring, the accuracy of sleep risk monitoring will be affected.
发明内容Summary of the invention
本申请提供一种睡眠风险监测方法、电子设备及存储介质,可以提高睡眠风险监测的准确率。The present application provides a sleep risk monitoring method, electronic equipment and storage medium, which can improve the accuracy of sleep risk monitoring.
第一方面,本申请实施例提供了一种睡眠风险监测方法,包括:获取用户生理信息和用户当前所处的海拔信息;根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设生理信息及对应的风险信息作为训练样本进行训练后得到的;将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。In the first aspect, an embodiment of the present application provides a sleep risk monitoring method, including: obtaining physiological information of a user and altitude information of the user currently located; determining a sleep monitoring model according to the altitude information of the user currently located, wherein The sleep monitoring model is obtained after training with preset physiological information in a preset altitude area and corresponding risk information as training samples; inputting the user physiological information into the sleep monitoring model to obtain the output of the sleep monitoring model Sleep risk information.
上述实施例中,通过获取用户生理信息和用户当前所处的海拔信息,根据用户当前所处的海拔信息确定睡眠监测模型,睡眠监测模型是以预设海拔地区的预设生理信息及对应的睡眠风险信息作为训练样本进行训练后得到的;将用户生理信息输入睡眠监测模型,获得睡眠监测模型输出的睡眠风险信息。由于随着海拔高度的变化,气压及空气中氧气的浓度会随着变化,因此不同海拔地区的用户的生理信息不同,因此根据用户当前所处的海拔信息确定睡眠监测模型,可以选择出与当前海拔区域的用户生理信息相匹配的更合理的睡眠监测模型,从而可以实现不同地区的用户的睡眠风险监测,提高睡眠风险监测的准确率,增强产品的覆盖度。In the above-mentioned embodiment, by obtaining the user's physiological information and the user's current altitude information, the sleep monitoring model is determined according to the user's current altitude information. The sleep monitoring model is based on the preset physiological information of the preset altitude area and the corresponding sleep The risk information is obtained after training as a training sample; the user's physiological information is input into the sleep monitoring model to obtain the sleep risk information output by the sleep monitoring model. As the altitude changes, the air pressure and the concentration of oxygen in the air will change accordingly. Therefore, the physiological information of users in different altitude areas is different. Therefore, the sleep monitoring model is determined according to the current altitude information of the user, and the current A more reasonable sleep monitoring model that matches the physiological information of users in the altitude area can realize sleep risk monitoring of users in different regions, improve the accuracy of sleep risk monitoring, and enhance product coverage.
在第一方面的一种可能的实现方式中,所述用户生理信息包括用户在第一预定时段的生理信息,所述将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息,包括:将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。其中,睡眠监测模型是以预设海拔地区的用户在第一预定时段的生理信息及对应的风险信息训练得到的。由于用户在第一预定时段的生理信息更能反映用户的睡眠状况,将用户在第一预定时段的 生理信息输入睡眠监测模型,输出用户的睡眠风险性,提高睡眠风险的监测精度。In a possible implementation of the first aspect, the physiological information of the user includes the physiological information of the user in a first predetermined period of time, and the physiological information of the user is input into the sleep monitoring model to obtain the sleep monitoring model The output sleep risk information includes: inputting physiological information of the user during the first predetermined period of time into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model. Wherein, the sleep monitoring model is obtained by training the physiological information and corresponding risk information of the user in the preset altitude area during the first predetermined time period. Since the user's physiological information during the first predetermined period can better reflect the user's sleep status, the user's physiological information during the first predetermined period is input into the sleep monitoring model to output the user's sleep risk and improve the accuracy of sleep risk monitoring.
在第一方面的一种可能的实现方式中,所述根据所述用户当前所处的海拔信息确定睡眠监测模型,包括:In a possible implementation manner of the first aspect, the determining a sleep monitoring model according to the altitude information where the user is currently located includes:
确定所述用户当前所处的海拔信息对应的海拔区间;根据所述海拔区间和所述第一预定时段对应的血氧统计值确定睡眠监测模型。其中,所述第一预定时段对应的血氧统计值是对不同海拔地区的不同用户在第一预定时段的血氧信息进行统计后得到的。例如,所述第一预定时段对应的血氧统计值是当前海拔区间的用户在第一预定时段的血氧的平均值,反映当前海拔区间的用户在第一预定时段的血氧水平,根据海拔区间和预设的夜间血氧统计值确定睡眠监测模型,可以确定出与当前海拔地区的用户的生理信息更匹配的睡眠监测模型。Determine the altitude interval corresponding to the altitude information where the user is currently located; determine a sleep monitoring model according to the altitude interval and the blood oxygen statistical value corresponding to the first predetermined time period. Wherein, the blood oxygen statistical value corresponding to the first predetermined time period is obtained by collecting blood oxygen information of different users in different altitude areas during the first predetermined time period. For example, the blood oxygen statistical value corresponding to the first predetermined time period is the average value of the blood oxygen of the user in the current altitude interval in the first predetermined time period, reflecting the blood oxygen level of the user in the current altitude interval in the first predetermined time period, according to the altitude The interval and the preset nighttime blood oxygen statistical value determine the sleep monitoring model, which can determine the sleep monitoring model that more closely matches the physiological information of the user in the current altitude area.
在第一方面的一种可能的实现方式中,所述根据所述用户当前所处的海拔信息确定睡眠监测模型,包括:In a possible implementation manner of the first aspect, the determining a sleep monitoring model according to the altitude information where the user is currently located includes:
确定所述用户当前所处的海拔信息对应的海拔区间;根据所述海拔区间和第二预定时段对应的血氧统计值确定睡眠监测模型,其中,所述第二预定时段是指所述第一预定时段之外的时段。其中,第二预定时段对应的血氧统计值是对不同海拔地区的不同用户在第二预定时段的血氧信息进行统计后得到的。例如,第二预定时段对应的血氧统计值是当前海拔区间的用户在白天血氧的平均值,反映当前海拔区间的用户在第二预定时段的血氧水平,根据海拔区间和预设的白天血氧统计值确定睡眠监测模型,可以确定出与当前海拔地区的用户的生理信息更匹配的睡眠监测模型。Determine the altitude interval corresponding to the altitude information where the user is currently located; determine the sleep monitoring model according to the blood oxygen statistical value corresponding to the altitude interval and the second predetermined time period, wherein the second predetermined time period refers to the first A time period outside the predetermined time period. Wherein, the blood oxygen statistical value corresponding to the second predetermined time period is obtained after statistics of blood oxygen information of different users in different altitude areas during the second predetermined time period. For example, the blood oxygen statistical value corresponding to the second predetermined period is the average value of blood oxygen of the user in the current altitude range during the day, reflecting the blood oxygen level of the user in the current altitude range in the second predetermined period, based on the altitude range and preset daytime values. The blood oxygen statistical value determines the sleep monitoring model, which can determine the sleep monitoring model that more closely matches the physiological information of the user in the current altitude area.
进一步地,由于同一海拔地区的用户的生理信息不同,睡眠风险处于同一风险等级的用户的生理信息也不同,根据所述用户生理信息和所述用户当前所处的海拔信息确定所述睡眠监测模型,可以确定出与当前海拔地区用户的生理信息匹配的睡眠监测模型。Further, because the physiological information of users in the same altitude area is different, the physiological information of users whose sleep risk is at the same risk level is also different, and the sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located. , A sleep monitoring model that matches the physiological information of the user in the current altitude area can be determined.
示例性地,对于用户只有第一预定时段佩戴或使用电子设备的场景,电子设备采集的第一预定时段的生理信息包括用户在第一预定时段的血氧信息,所述根据所述用户生理信息和所述用户当前所处的海拔信息确定睡眠监测模型,包括:确定所述第一预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处的海拔信息对应的海拔区间;根据所述血氧区间和所述海拔区间确定睡眠监测模型。由于当用户所处的海拔信息发生变化时,生理信息中的血氧信息的变化最为显著,通过用户在第一预定时段的血氧信息确定出的睡眠监测模型,与用户的生理信息更加匹配。Exemplarily, for a scenario where the user only wears or uses the electronic device for a first predetermined period of time, the physiological information of the first predetermined period of time collected by the electronic device includes blood oxygen information of the user during the first predetermined period of time, according to the user's physiological information Determining a sleep monitoring model with the altitude information of the user currently located includes: determining the blood oxygen interval corresponding to the blood oxygen information of the first predetermined time period, and determining the altitude interval corresponding to the altitude information of the user currently located; A sleep monitoring model is determined according to the blood oxygen interval and the altitude interval. Since the blood oxygen information in the physiological information changes most significantly when the altitude information of the user is changed, the sleep monitoring model determined by the blood oxygen information of the user in the first predetermined period of time is more compatible with the physiological information of the user.
若第一预定时段为夜间时段,第二预定时段为白天时段,对于用户在第一预定时段和第二预定时段均佩戴或使用电子设备的场景,所述用户生理信息还包括用户在第二预定时段的生理信息,所述用户在第二预定时段的生理信息包括用户在第二预定时段的血氧信息,所述根据所述用户生理信息和所述用户当前所处的海拔信息确定睡眠监测模型,包括:确定所述第二预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处的海拔信息对应的海拔区间;根据所述血氧区间和所述海拔区间确定睡眠监测模型。由于存在睡眠风险的用户在第一预定时段的血氧信息不稳定,而在第二预定时段的血氧信息相对稳定,因此根据不同用户在第二预定时段的血氧信息划分的睡眠监测模型,可以保证每个用于训练睡眠监测模型的训练样本的数据的稳定性,保 证睡眠监测模型的准确度,再根据用户的血氧信息和海拔信息确定对应的睡眠监测模型,提高了睡眠风险监测的准确度。If the first predetermined time period is the night time period and the second predetermined time period is the day time period, for a scenario where the user wears or uses the electronic device during both the first predetermined time period and the second predetermined time period, the user physiological information also includes the user’s second predetermined time period. The physiological information of the time period, the physiological information of the user in the second predetermined time period includes the blood oxygen information of the user in the second predetermined time period, and the sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located , Including: determining the blood oxygen interval corresponding to the blood oxygen information of the second predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located; determining sleep monitoring according to the blood oxygen interval and the altitude interval Model. Since the blood oxygen information of users at risk of sleep during the first predetermined time period is unstable, while the blood oxygen information during the second predetermined time period is relatively stable, the sleep monitoring model is divided according to the blood oxygen information of different users in the second predetermined time period, It can ensure the stability of the data of each training sample used to train the sleep monitoring model, ensure the accuracy of the sleep monitoring model, and then determine the corresponding sleep monitoring model based on the user's blood oxygen information and altitude information, which improves the sleep risk monitoring performance Accuracy.
第二方面,本申请实施例提供了一种睡眠风险监测装置,包括:In the second aspect, an embodiment of the present application provides a sleep risk monitoring device, including:
获取模块,用于获取用户生理信息和用户当前所处的海拔信息;The obtaining module is used to obtain the user's physiological information and the altitude information of the user's current location;
确定模块,用于根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设生理信息及对应的风险信息作为训练样本进行训练后得到的;The determining module is configured to determine a sleep monitoring model according to the altitude information of the user currently located, wherein the sleep monitoring model is obtained after training with preset physiological information and corresponding risk information in a preset altitude area as a training sample of;
输出模块,用于将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。The output module is used to input the physiological information of the user into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
在第二方面的一种可能的实现方式中,所述用户生理信息包括用户在第一预定时段的生理信息,所述输出模块具体用于:In a possible implementation of the second aspect, the physiological information of the user includes the physiological information of the user in the first predetermined time period, and the output module is specifically configured to:
将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。The physiological information of the user during the first predetermined period of time is input into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
在第二方面的一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner of the second aspect, the determining module is specifically configured to:
确定所述用户当前所处的海拔信息对应的海拔区间;Determine the altitude interval corresponding to the altitude information where the user is currently located;
根据所述海拔区间和所述第一预定时段对应的血氧统计值确定睡眠监测模型。A sleep monitoring model is determined according to the altitude interval and the blood oxygen statistical value corresponding to the first predetermined time period.
在第二方面的一种可能的实现方式中,所述第一预定时段对应的血氧统计值是对不同海拔地区的不同用户在所述第一预定时段的血氧信息进行统计后得到的。In a possible implementation manner of the second aspect, the blood oxygen statistical value corresponding to the first predetermined time period is obtained after statistics of blood oxygen information of different users in different altitude areas during the first predetermined time period.
在第二方面的一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner of the second aspect, the determining module is specifically configured to:
确定所述用户当前所处的海拔信息对应的海拔区间;Determine the altitude interval corresponding to the altitude information where the user is currently located;
根据所述海拔区间和第二预定时段对应的血氧统计值确定睡眠监测模型,其中,所述第二预定时段是指所述第一预定时段之外的时段。The sleep monitoring model is determined according to the blood oxygen statistical value corresponding to the altitude interval and the second predetermined time period, where the second predetermined time period refers to a time period outside the first predetermined time period.
在第二方面的一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner of the second aspect, the determining module is specifically configured to:
根据所述用户生理信息和所述用户当前所处的海拔信息确定所述睡眠监测模型。The sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located.
在第二方面的一种可能的实现方式中,所述第一预定时段的生理信息包括用户在第一预定时段的血氧信息,所述确定模块具体用于:In a possible implementation of the second aspect, the physiological information of the first predetermined time period includes blood oxygen information of the user in the first predetermined time period, and the determining module is specifically configured to:
确定所述第一预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处的海拔信息对应的海拔区间;Determining the blood oxygen interval corresponding to the blood oxygen information of the first predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located;
根据所述血氧区间和所述海拔区间确定睡眠监测模型。A sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
在第二方面的一种可能的实现方式中,所述用户生理信息还包括用户在第二预定时段的生理信息,所述用户在第二预定时段的生理信息包括用户在第二预定时段的血氧信息,所述确定模块具体用于:In a possible implementation of the second aspect, the physiological information of the user further includes the physiological information of the user in a second predetermined period of time, and the physiological information of the user in the second predetermined period includes the user's blood in the second predetermined period of time. Oxygen information, the determining module is specifically used for:
确定所述第二预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处的海拔信息对应的海拔区间;Determining the blood oxygen interval corresponding to the blood oxygen information of the second predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located;
根据所述血氧区间和所述海拔区间确定睡眠监测模型。A sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
第三方面,本申请实施例提供了一种电子设备,包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的睡眠风险监测方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program Time to realize the sleep risk monitoring method as described in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储 介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的睡眠风险监测方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the sleep risk as described in the first aspect is realized. Monitoring method.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面所述的睡眠风险监测方法。In a fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the sleep risk monitoring method described in the first aspect.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It is understandable that, for the beneficial effects of the second aspect to the fifth aspect described above, reference may be made to the relevant description in the first aspect described above, and details are not repeated here.
附图说明Description of the drawings
图1是本申请实施例提供的睡眠风险监测方法的示意图;Figure 1 is a schematic diagram of a sleep risk monitoring method provided by an embodiment of the present application;
图2是本申请实施例提供的电子设备的示意图;Figure 2 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图3是本申请实施例提供的睡眠风险监测方法的流程示意图;FIG. 3 is a schematic flowchart of a sleep risk monitoring method provided by an embodiment of the present application;
图4是本申请实施例在一种应用场景下的睡眠风险监测方法的流程示意图;4 is a schematic flowchart of a sleep risk monitoring method in an application scenario according to an embodiment of the present application;
图5是本申请实施例在另一应用场景下的睡眠风险监测方法的流程示意图;FIG. 5 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application;
图6是本申请实施例在又一应用场景下的睡眠风险监测方法的流程示意图;FIG. 6 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application;
图7是本申请实施例在又一应用场景下的睡眠风险监测方法的流程示意图;FIG. 7 is a schematic flowchart of a sleep risk monitoring method in another application scenario according to an embodiment of the present application;
图8是本申请实施例提供的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定***结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的***、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the description of this application and the appended claims, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。The reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
为了监测用户的睡眠风险信息,在一种可能的实现方式中,可以将监测到的用户的生理信息(例如血氧、脉搏、鼾声等)输入睡眠监测模型,根据睡眠监测模型的输出结果确定用户的睡眠风险信息。但是,仅通过监测用户的生理信息来确定用户的睡 眠风险信息,会影响睡眠风险监测的准确率。In order to monitor the user’s sleep risk information, in a possible implementation, the monitored user’s physiological information (such as blood oxygen, pulse, snoring, etc.) can be input into the sleep monitoring model, and the user can be determined according to the output result of the sleep monitoring model Of sleep risk information. However, determining the user's sleep risk information only by monitoring the user's physiological information will affect the accuracy of sleep risk monitoring.
为此,本申请提供了一种睡眠风险监测方法,根据用户当前所处的海拔信息对睡眠监测模型进行修正,得到修正后的睡眠监测模型,再将用户的生理信息输入修正后的睡眠监测模型,获取修正后的睡眠监测模型输出的睡眠风险信息,以提高睡眠风险监测的准确率。To this end, this application provides a sleep risk monitoring method, which corrects the sleep monitoring model according to the user’s current altitude information to obtain the corrected sleep monitoring model, and then inputs the user’s physiological information into the corrected sleep monitoring model , To obtain the sleep risk information output by the revised sleep monitoring model to improve the accuracy of sleep risk monitoring.
在另一种可能的实现方式中,可以根据用户当前所处的海拔信息和用户的生理信息对睡眠监测模型进行修正,得到修正后的睡眠监测模型,再将用户的生理信息输入修正后的睡眠监测模型,获取修正后的睡眠监测模型输出的睡眠风险信息,以进一步提高睡眠风险监测的准确率。In another possible implementation, the sleep monitoring model can be corrected according to the user’s current altitude information and the user’s physiological information to obtain the corrected sleep monitoring model, and then the user’s physiological information is input into the corrected sleep The monitoring model obtains the sleep risk information output by the revised sleep monitoring model to further improve the accuracy of sleep risk monitoring.
例如,如图1所示,用户生理信息包括脉搏信息、心率信息、鼾声信息、身体动作信息和血氧信息,可以根据用户生理信息中的血氧信息和用户当前所处的海拔信息对睡眠监测模型进行修正,得到修正后的睡眠监测模型,再将用户的生理信息输入修正后的睡眠监测模型,获取修正后的睡眠监测模型输出的睡眠风险信息,以提高睡眠风险监测的准确率。其中,睡眠风险信息可以是睡眠风险级别,睡眠风险级别包括正常级别、低级别、中级别以及高级别,用户根据睡眠风险级别可以确定自身的身体状态。For example, as shown in Figure 1, the user’s physiological information includes pulse information, heart rate information, snoring information, body movement information, and blood oxygen information. Sleep can be monitored based on the blood oxygen information in the user’s physiological information and the user’s current altitude information. The model is revised to obtain a revised sleep monitoring model, and then the user's physiological information is input into the revised sleep monitoring model to obtain sleep risk information output by the revised sleep monitoring model to improve the accuracy of sleep risk monitoring. Among them, the sleep risk information may be a sleep risk level, and the sleep risk level includes a normal level, a low level, a medium level, and a high level, and the user can determine his/her physical state according to the sleep risk level.
下面对本申请提供的睡眠风险监测方法进行示例性描述。The following is an exemplary description of the sleep risk monitoring method provided in the present application.
本申请实施例提供的睡眠风险监测方法应用于电子设备,电子设备可以为可穿戴设备、电脑、医疗设备等,本申请实施例对电子设备的具体类型不作任何限制。The sleep risk monitoring method provided in the embodiments of the present application is applied to electronic devices. The electronic devices may be wearable devices, computers, medical devices, etc., and the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
作为示例而非限定,当所述电子设备为可穿戴设备时,该可穿戴设备还可以是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如手表、首饰等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,如智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。As an example and not a limitation, when the electronic device is a wearable device, the wearable device can also be a general term for using wearable technology to intelligently design daily wear and develop wearable devices, such as watches, jewelry, etc. . A wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Wearable devices are not only a kind of hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include full-featured, large-sized, complete or partial functions that can be implemented without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to be used in conjunction with other devices such as smart phones. , Such as all kinds of smart bracelets and smart jewelry for physical sign monitoring.
如图2所示,本申请实施例提供的电子设备包括海拔/大气压传感器10、脉搏血氧传感器20、其他生物传感器30、数据存储单元40、睡眠风险监测模块50以及显示单元60。海拔/大气压传感器10用于采集用户所处的海拔信息或者大气压信息。脉搏血氧传感器20用于采集用户的脉搏信息、心率信息以及血氧信息。其他生物传感器30可以是雷达波传感器、加速度传感器或者拾音设备,用于采集用户的鼾声信息和身体动作信息。数据存储单元40用于存储用户所处的海拔信息或者大气压信息、脉搏信息、心率信息、血氧信息、鼾声信息和身体动作信息,并发送至睡眠风险监测模块50,睡眠风险监测模块50用于根据用户所处的海拔信息或者大气压信息、脉搏信息、心率信息、血氧信息、鼾声信息和身体动作信息确定出用户的睡眠风险信息,显示单元60用于显示用户的睡眠风险信息。下面结合图2所示的电子设备,对本申请实施例提供的睡眠风险监测方法进行描述。As shown in FIG. 2, the electronic device provided by the embodiment of the present application includes an altitude/atmospheric pressure sensor 10, a pulse oximetry sensor 20, other biosensors 30, a data storage unit 40, a sleep risk monitoring module 50 and a display unit 60. The altitude/atmospheric pressure sensor 10 is used to collect altitude information or atmospheric pressure information where the user is located. The pulse oximetry sensor 20 is used to collect the user's pulse information, heart rate information, and blood oxygen information. The other biological sensor 30 may be a radar wave sensor, an acceleration sensor, or a sound pickup device, and is used to collect the user's snoring information and body motion information. The data storage unit 40 is used to store altitude information or atmospheric pressure information, pulse information, heart rate information, blood oxygen information, snoring information and body movement information where the user is located, and send it to the sleep risk monitoring module 50, which is used for The user's sleep risk information is determined according to the altitude information or atmospheric pressure information, pulse information, heart rate information, blood oxygen information, snoring information, and body motion information of the user, and the display unit 60 is used to display the sleep risk information of the user. The sleep risk monitoring method provided by the embodiment of the present application will be described below in conjunction with the electronic device shown in FIG. 2.
请参阅图3,本申请实施例提供的睡眠风险监测方法包括:Referring to FIG. 3, the sleep risk monitoring method provided by the embodiment of the present application includes:
S101:获取用户生理信息和用户当前所处的海拔信息。S101: Acquire physiological information of the user and altitude information of the user currently located.
具体地,用户生理信息包括血氧信息、心率信息和脉搏信息等,电子设备从脉搏血氧传感器和/其他生物传感器获取用户生理信息。其中,用户生理信息可以是用户在第二预定时段的生理信息,也可以是用户在第一预定时段的生理信息,也可以既包括用户在第二预定时段的生理信息,也包括用户在第一预定时段的生理信息。第一预定时段和第二预定时段为不同的时段,示例性地,第一预定时段为夜间时段,第二预定时段为白天时段。其中,夜间时段可以是固定的时段,例如,23:00-6:00,也可以是在检测到用户进入睡眠状态后的固定时长,例如,用户进入睡眠状态后的4个小时。同理,白天时段可以是固定的时段,也可以是检测到用户为清醒状态后的固定时长。血氧信息是血液中被氧结合的氧合血红蛋白的容量占全部可结合的血红蛋白容量的百分比,即血液中血氧的浓度。Specifically, the user's physiological information includes blood oxygen information, heart rate information, pulse information, etc., and the electronic device obtains the user's physiological information from the pulse oximetry sensor and/or other biosensors. Among them, the user's physiological information can be the user's physiological information in the second predetermined period of time, or the user's physiological information in the first predetermined period of time, and it can also include the user's physiological information in the second predetermined period of time and the user's physiological information in the first predetermined period. Physiological information for a predetermined period of time. The first predetermined time period and the second predetermined time period are different time periods. For example, the first predetermined time period is a night time period, and the second predetermined time period is a day time period. The night time period may be a fixed time period, for example, 23:00-6:00, or a fixed time period after detecting that the user enters the sleep state, for example, 4 hours after the user enters the sleep state. In the same way, the daytime period can be a fixed time period or a fixed time period after detecting that the user is awake. The blood oxygen information is the percentage of the volume of oxygen-bound oxyhemoglobin in the blood to the total volume of hemoglobin that can be bound, that is, the concentration of blood oxygen in the blood.
用户当前所处的海拔信息从海拔/大气压传感器获取。若用户当前所处的海拔信息从海拔传感器获取,海拔信息是海拔高度,若用户当前所处的海拔信息从大气压传感器获取,电子设备根据大气压传感器采集的大气压计算出海拔高度。The altitude information where the user is currently located is obtained from the altitude/atmospheric pressure sensor. If the user's current altitude information is obtained from an altitude sensor, the altitude information is the altitude. If the user's current altitude information is obtained from an atmospheric pressure sensor, the electronic device calculates the altitude according to the atmospheric pressure collected by the atmospheric pressure sensor.
S102:根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设生理信息及对应的睡眠风险信息作为训练样本进行训练后得到的。S102: Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset physiological information of a preset altitude area and corresponding sleep risk information as training samples.
在一种可能的实现方式中,首先训练出多个睡眠监测模型。具体地,采集不同海拔地区的不同用户的生理信息,得到采集样本,其中,不同用户的生理信息可以是第二预定时段的生理信息,也可以是第一预定时段的生理信息。按照不同海拔区间划分采集样本,得到多个与海拔区间对应的样本,再按照生理信息区间对每个与海拔区间对应的样本进行划分,得到多个与生理信息区间对应的样本。其中,生理信息区间可以是用户的血氧区间,也可以是用户的心率区间,也可以是用户的脉搏区间。可以根据用户在第二预定时段的生理信息区间来划分与海拔区间对应的样本,也可以根据用户在第一预定时段的生理信息区间来划分与海拔区间对应的样本。例如,采集样本中的海拔高度的范围为1000~4000,用户在第二预定时段的生理信息中的血氧的范围为80%~90%,则设定1000~2000、2000~3000和3000~4000共3个海拔区间,根据海拔区间划分采集样本,得到与海拔区间1000~2000对应的样本、海拔区间2000~3000对应的样本、海拔区间3000~4000对应的样本,共3个样本。再设定血氧区间为80%~85%、85%~90%,根据血氧区间对每个与海拔区间对应的样本进行划分,每个样本又得到与血氧区间80%~85%以及血氧区间85%~90%对应的2个子样本,从而将采集样本划分为6个子样本。将每个子样本中各用户的生理信息及对应的睡眠风险信息作为训练样本,采用机器学习的算法对分类模型进行训练,得到与每个子样本对应的分类模型的最优参数,根据各最优参数生成对应的睡眠监测模型,即与每个子样本对应的睡眠监测模型。其中,睡眠风险信息可以是睡眠风险等级、睡眠状态等。In a possible implementation, multiple sleep monitoring models are first trained. Specifically, the physiological information of different users in different altitude areas is collected to obtain collected samples, where the physiological information of different users may be the physiological information of the second predetermined period of time, or may be the physiological information of the first predetermined period of time. The samples are collected according to different altitude intervals to obtain multiple samples corresponding to the altitude intervals, and then each sample corresponding to the altitude interval is divided according to the physiological information interval to obtain multiple samples corresponding to the physiological information interval. Among them, the physiological information interval may be the user's blood oxygen interval, the user's heart rate interval, or the user's pulse interval. The samples corresponding to the altitude interval may be divided according to the physiological information interval of the user in the second predetermined time period, and the samples corresponding to the altitude interval may also be divided according to the physiological information interval of the user in the first predetermined time period. For example, the range of the altitude in the collected sample is 1000-4000, and the range of blood oxygen in the physiological information of the user in the second predetermined period of time is 80%-90%, then set 1000-2000, 2000-3000, and 3000- There are 3 altitude intervals in 4000, and samples are collected according to the altitude interval division, and the samples corresponding to the altitude interval 1000-2000, the samples corresponding to the altitude interval 2000-3000, and the samples corresponding to the altitude interval 3000-4000 are obtained, a total of 3 samples. Then set the blood oxygen interval to 80%-85%, 85% to 90%, and divide each sample corresponding to the altitude interval according to the blood oxygen interval, and each sample gets the blood oxygen interval 80%-85% and There are 2 sub-samples corresponding to the blood oxygen interval of 85% to 90%, thereby dividing the collected sample into 6 sub-samples. Use the physiological information of each user in each sub-sample and the corresponding sleep risk information as the training sample, and use the machine learning algorithm to train the classification model to obtain the optimal parameters of the classification model corresponding to each sub-sample, according to the optimal parameters Generate a corresponding sleep monitoring model, that is, a sleep monitoring model corresponding to each sub-sample. Among them, the sleep risk information may be sleep risk level, sleep state, and so on.
需要说明的是,也可以仅按照海拔区间划分采集样本,得到与海拔区间对应的子样本,将每个子样本中各用户的生理信息及对应的睡眠风险信息作为训练样本,训练得到与每个子样本对应的睡眠监测模型。训练样本中的用户的生理信息可以是不同用户在第二预定时段的生理信息,也可以是不同用户在第一预定时段的生理信息,也可以包括不同用户在第二预定时段的生理信息和第一预定时段的生理信息。训练样本中 的用户的生理信息对应的睡眠风险信息可以全部是正常的,例如,全部是无风险等级;也可以是部分正常、部分不正常的,例如,包括高风险等级、低风险等级和无风险等级。It should be noted that it is also possible to divide the collection samples according to the altitude interval only to obtain the sub-samples corresponding to the altitude interval, and use the physiological information of each user in each sub-sample and the corresponding sleep risk information as the training sample, and the training obtains the same as each sub-sample Corresponding sleep monitoring model. The physiological information of the users in the training samples may be the physiological information of different users in the second predetermined time period, or the physiological information of different users in the first predetermined time period, and may also include the physiological information and the first predetermined time period of different users in the second predetermined time period. Physiological information for a predetermined period of time. The sleep risk information corresponding to the physiological information of the user in the training sample can be all normal, for example, all are risk-free levels; it can also be partly normal and partly abnormal, for example, including high-risk levels, low-risk levels, and no-risk levels. Risk level.
得到多个睡眠监测模型后,根据获取的用户当前所处的海拔信息所在的海拔区间,确定出与该海拔区间对应的睡眠监测模型,与该海拔区间对应的睡眠监测模型也即修正后的睡眠监测模型。After obtaining multiple sleep monitoring models, determine the sleep monitoring model corresponding to the altitude range according to the altitude range where the user’s current altitude information is located, and the sleep monitoring model corresponding to the altitude range is the revised sleep Monitoring model.
在一种可能的实现方式中,获取与用户当前所处的海拔高度接近的不同用户的生理信息的统计平均值,确定该生理信息的统计平均值所在的生理信息区间,再确定出与该海拔区间和生理信息区间对应的睡眠监测模型。In a possible implementation manner, the statistical average value of the physiological information of different users close to the current altitude of the user is obtained, the physiological information interval of the statistical average value of the physiological information is determined, and then the physiological information interval with the altitude is determined. Sleep monitoring model corresponding to interval and physiological information interval.
在另一种可能的实现方式中,根据获取的用户的生理信息所在的生理信息区间,确定出与该生理信息区间和海拔区间对应的睡眠监测模型。In another possible implementation manner, a sleep monitoring model corresponding to the physiological information interval and the altitude interval is determined according to the physiological information interval in which the acquired physiological information of the user is located.
在另一种可能的实现方式中,在确定出睡眠监测模型后,根据用户当前所处的海拔信息和/或用户的生理信息确定睡眠监测模型中用于判定睡眠风险信息的阈值,以提高后续判定睡眠风险信息的准确率。In another possible implementation manner, after the sleep monitoring model is determined, the threshold for determining sleep risk information in the sleep monitoring model is determined according to the user’s current altitude information and/or the user’s physiological information, so as to improve the follow-up Determine the accuracy of sleep risk information.
S103:将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。S103: Input the physiological information of the user into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
具体地,将用户生理信息输入睡眠监测模型,睡眠监测模型根据设定的阈值,输出对应的睡眠风险信息。输出的睡眠风险信息可以是睡眠风险等级或睡眠状态等信息。例如输出睡眠风险等级,可以是正常、高风险、低风险、无风险;或者输出睡眠风险评估分数,评估分数与风险等级对应;或者输出睡眠状态,可以是优、良好、中等、差。在一种可能的实现方式中,睡眠风险信息,例如阻塞性睡眠呼吸暂停与低通气综合征的风险信息,主要是根据用户在第一预定时段的生理信息来确定,将用户在第一预定时段的生理信息输入确定出的睡眠监测模型,以输出睡眠风险信息,可以提高睡眠风险监测的准确率。Specifically, the user's physiological information is input into the sleep monitoring model, and the sleep monitoring model outputs corresponding sleep risk information according to the set threshold. The output sleep risk information may be information such as sleep risk level or sleep state. For example, output sleep risk level, which can be normal, high risk, low risk, or no risk; or output sleep risk assessment score, which corresponds to the risk level; or output sleep state, which can be excellent, good, medium, or poor. In a possible implementation, the sleep risk information, such as the risk information of obstructive sleep apnea and hypopnea syndrome, is mainly determined according to the physiological information of the user in the first predetermined period of time, and the user is determined in the first predetermined period of time. Input the determined sleep monitoring model of physiological information to output sleep risk information, which can improve the accuracy of sleep risk monitoring.
需要说明的是,可以按照用户在第二预定时段的生理信息和用户当前所处的海拔信息确定睡眠监测模型,将用户在第一预定时段的生理信息输入确定出的睡眠监测模型,输出睡眠风险信息。也可以按照用户在第二预定时段的生理信息和用户当前所处的海拔信息确定睡眠监测模型,将用户在第二预定时段的生理信息输入确定出的睡眠监测模型,输出睡眠风险信息。也可以按照用户在第一预定时段的生理信息和用户当前所处的海拔信息确定睡眠监测模型,将用户在第一预定时段的生理信息输入确定出的睡眠监测模型,输出睡眠风险信息。It should be noted that the sleep monitoring model can be determined according to the physiological information of the user in the second predetermined period and the altitude information of the user’s current location, the physiological information of the user in the first predetermined period is input into the determined sleep monitoring model, and the sleep risk is output. information. It is also possible to determine the sleep monitoring model according to the physiological information of the user in the second predetermined period and the altitude information of the user's current location, input the physiological information of the user in the second predetermined period into the determined sleep monitoring model, and output sleep risk information. It is also possible to determine the sleep monitoring model according to the physiological information of the user during the first predetermined period and the altitude information of the user's current location, input the physiological information of the user during the first predetermined period into the determined sleep monitoring model, and output sleep risk information.
可选的,若需要监测的睡眠风险为阻塞性睡眠呼吸暂停与低通气综合征的风险,除了将用户生理信息输入睡眠监测模型外,还将用户的口鼻气流信息、鼾声信息、心电信号信息、身体动作信息等输入睡眠监测模型,同理,在睡眠监测模型的训练过程中,也需要将不同用户的口鼻气流信息、鼾声信息、心电信号信息、身体动作信息等加入训练样本,以提高睡眠风险的监测准确率。Optionally, if the sleep risk that needs to be monitored is the risk of obstructive sleep apnea and hypopnea syndrome, in addition to inputting the user's physiological information into the sleep monitoring model, the user's nose and mouth airflow information, snoring information, and ECG signal Information, body movement information, etc. are input into the sleep monitoring model. In the same way, in the training process of the sleep monitoring model, it is also necessary to add different users’ mouth and nose airflow information, snoring information, ECG signal information, body movement information, etc. to the training samples. To improve the accuracy of sleep risk monitoring.
上述实施例中,通过获取用户生理信息和用户当前所处的海拔信息;根据用户当前所处的海拔信息确定睡眠监测模型,其中,睡眠监测模型是以预设海拔地区的预设生理信息及对应的睡眠风险信息作为训练样本进行训练后得到的,即确定出的睡眠监测 模型与预设海拔地区的预设生理信息相匹配;因此,根据用户当前所处的海拔信息确定睡眠监测模型,可以确定出与当前海拔区域的用户的生理信息相匹配的更合理的睡眠监测模型;确定出睡眠监测模型后,再将用户生理信息输入确定出的睡眠监测模型,获得睡眠监测模型输出的睡眠风险信息,可以提高不同海拔地区的用户的睡眠风险的监测精度,增强产品的覆盖度。In the foregoing embodiment, the user's physiological information and the user's current altitude information are acquired; the sleep monitoring model is determined according to the user's current altitude information, where the sleep monitoring model is based on the preset physiological information and the corresponding preset altitude area. The sleep risk information is obtained after training as a training sample, that is, the determined sleep monitoring model matches the preset physiological information of the preset altitude area; therefore, the sleep monitoring model can be determined according to the altitude information of the user’s current location. A more reasonable sleep monitoring model that matches the physiological information of the user in the current altitude area is developed; after the sleep monitoring model is determined, the user’s physiological information is input into the determined sleep monitoring model to obtain the sleep risk information output by the sleep monitoring model. The monitoring accuracy of sleep risks of users in different altitude areas can be improved, and the coverage of products can be enhanced.
下面结合具体的应用场景,进一步介绍本申请实施例提供的睡眠风险监测方法的具体流程。The specific process of the sleep risk monitoring method provided by the embodiments of the present application will be further introduced below in conjunction with specific application scenarios.
在一种应用场景下,用户仅在第一预定时段,即夜间佩戴或使用电子设备,且电子设备采集的生理信息不包括用户的血氧信息。In an application scenario, the user only wears or uses the electronic device during the first predetermined period of time, that is, at night, and the physiological information collected by the electronic device does not include the user's blood oxygen information.
请参阅图4,该应用场景下,睡眠风险监测方法包括:Please refer to Figure 4. In this application scenario, sleep risk monitoring methods include:
S201:获取用户在第一预定时段的生理信息和用户当前所处的海拔信息,其中,用户在第一预定时段的生理信息包括脉搏信息和/或心率信息,用户当前所处的海拔信息为用户所在地区的海拔高度。S201: Acquire physiological information of the user during the first predetermined period and altitude information of the user currently located, where the physiological information of the user during the first predetermined period includes pulse information and/or heart rate information, and the altitude information of the user currently located is the user The altitude of the area.
在一种可能的实现方式中,电子设备获取的信息还包括用户在第一预定时段的鼾声信息和身体动作信息,其中,鼾声信息和身体动作信息由加速度传感器采集。In a possible implementation manner, the information acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time, where the snoring information and body motion information are collected by an acceleration sensor.
S202:根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设血氧信息及对应的睡眠风险信息作为训练样本进行训练后得到的。S202: Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset blood oxygen information and corresponding sleep risk information in a preset altitude area as a training sample .
具体地,在确定睡眠监测模型之前,采集不同海拔地区的不同用户在第一预定时段的生理信息,得到采集样本。根据不同海拔地区的不同用户在第一预定时段的生理信息计算出对应用户在第一预定时段的血氧信息,例如,根据预设的心率信息与血氧信息的对应关系和用户在第一预定时段的心率信息,计算出对应用户在第一预定时段的血氧信息。按照海拔区间和第一预定时段的血氧区间,将采集样本划分为多个子样本。将每个子样本中各用户在第一预定时段的生理信息及对应的睡眠风险信息作为训练样本,采用机器学习的算法对分类模型进行训练,得到与每个子样本对应的睡眠监测模型。Specifically, before determining the sleep monitoring model, the physiological information of different users in different altitude areas during the first predetermined period of time is collected to obtain collected samples. According to the physiological information of different users in different altitude areas in the first predetermined time period, the blood oxygen information of the corresponding user in the first predetermined time period is calculated, for example, according to the preset correspondence relationship between heart rate information and blood oxygen information and the user’s The heart rate information of the time period is calculated, and the blood oxygen information of the corresponding user in the first predetermined time period is calculated. According to the altitude interval and the blood oxygen interval of the first predetermined time period, the collected sample is divided into a plurality of sub-samples. Taking the physiological information of each user in the first predetermined period of time and the corresponding sleep risk information in each sub-sample as the training sample, the classification model is trained by the machine learning algorithm, and the sleep monitoring model corresponding to each sub-sample is obtained.
在得到与每个子样本对应的睡眠监测模型之后,确定用户当前所处的海拔信息对应的海拔区间,再确定与该海拔区间对应的睡眠监测模型。After obtaining the sleep monitoring model corresponding to each sub-sample, determine the altitude interval corresponding to the altitude information where the user is currently located, and then determine the sleep monitoring model corresponding to the altitude interval.
在一种可能的实现方式中,在确定睡眠监测模型前,获取第一预定时段对应的血氧统计值,具体地,对不同海拔地区的不同用户在第一预定时段的血氧信息进行统计,得到海拔和第一预定时段的血氧信息的映射关系,根据该映射关系得到与第一预定时段对应的血氧统计值,其中,第一预定时段对应的血氧统计值,可以是与用户所处海拔高度接近的海拔区域的不同用户,在第一预定时段的血氧的平均值。得到血氧统计值后,确定血氧统计值对应的血氧区间,及用户当前所处的海拔信息对应的海拔区间,根据海拔区间和血氧区间确定出对应的睡眠监测模型。由于血氧是评价睡眠风险信息的重要指标,且同一地区的不同用户的血氧信息具有一定的差异,因此,根据血氧统计值所在的血氧区间确定出的睡眠监测模型,更能反映当前地区的用户的血氧水平,从而得到适合当前用户的更加准确的睡眠监测模型。In a possible implementation manner, before determining the sleep monitoring model, obtain the blood oxygen statistical value corresponding to the first predetermined time period, specifically, perform statistics on blood oxygen information of different users in different altitude areas during the first predetermined time period, Obtain the mapping relationship between altitude and blood oxygen information of the first predetermined time period, and obtain the blood oxygen statistical value corresponding to the first predetermined time period according to the mapping relationship, where the blood oxygen statistical value corresponding to the first predetermined time period may be related to the user The average value of blood oxygen in the first predetermined period of time for different users in the altitude area close to the altitude. After the blood oxygen statistical value is obtained, the blood oxygen interval corresponding to the blood oxygen statistical value and the altitude interval corresponding to the altitude information of the user's current location are determined, and the corresponding sleep monitoring model is determined according to the altitude interval and the blood oxygen interval. Since blood oxygen is an important indicator for evaluating sleep risk information, and the blood oxygen information of different users in the same area has certain differences, the sleep monitoring model determined according to the blood oxygen interval where the blood oxygen statistical value is located can better reflect the current situation. The blood oxygen level of users in the region, thereby obtaining a more accurate sleep monitoring model suitable for current users.
在一种可能的实现方式中,在确定出睡眠监测模型后,根据海拔区间和第一预定 时段的血氧统计值对应的血氧区间,确定睡眠监测模型中用于判定睡眠风险信息的阈值,以提高后续判定睡眠风险信息的准确率。In a possible implementation manner, after the sleep monitoring model is determined, the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen statistical value of the first predetermined time period, In order to improve the accuracy of subsequent determination of sleep risk information.
S203:将用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。S203: Input the physiological information of the user in the first predetermined period of time into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
上述实施例中,根据用户当前所处的海拔信息和第一预定时段对应的血氧统计值确定睡眠监测模型,可以确定出与当前海拔区域的用户的生理信息相匹配的睡眠监测模型,再根据用户在第一预定时段的生理信息和确定出的睡眠监测模型输出睡眠风险信息,提高睡眠风险的监测准确率。In the above embodiment, the sleep monitoring model is determined according to the user’s current altitude information and the blood oxygen statistical value corresponding to the first predetermined time period, and the sleep monitoring model that matches the physiological information of the user in the current altitude area can be determined, and then according to The physiological information of the user in the first predetermined period of time and the determined sleep monitoring model output sleep risk information to improve the accuracy of sleep risk monitoring.
在另一应用场景下,用户仅在第一预定时段佩戴或使用电子设备,电子设备采集的生理信息中包括血氧信息。In another application scenario, the user only wears or uses the electronic device during the first predetermined period of time, and the physiological information collected by the electronic device includes blood oxygen information.
请参阅图5,该应用场景下,睡眠风险监测方法包括:Please refer to Figure 5. In this application scenario, sleep risk monitoring methods include:
S301:获取用户在第一预定时段的生理信息和用户当前所处的海拔信息。S301: Acquire physiological information of the user in the first predetermined time period and altitude information of the user currently located.
具体地,用户在第一预定时段的生理信息包括血氧信息、心率信息和脉搏信息等。Specifically, the physiological information of the user in the first predetermined period of time includes blood oxygen information, heart rate information, pulse information, and the like.
在一种可能的实现方式中,电子设备获取的数据还包括用户在第一预定时段的鼾声信息和身体动作信息。In a possible implementation manner, the data acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time.
S302:根据用户在第一预定时段的血氧信息和用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设血氧信息及对应的睡眠风险信息作为训练样本进行训练后得到的。S302: Determine a sleep monitoring model according to the blood oxygen information of the user in the first predetermined time period and the altitude information where the user is currently located, where the sleep monitoring model is based on preset blood oxygen information in a preset altitude area and a corresponding sleep risk The information is obtained after training as a training sample.
具体地,在确定睡眠监测模型之前,采集不同海拔地区的不同用户在第一预定时段的生理信息,得到采集样本。按照海拔区间和第一预定时段的血氧区间,将采集样本划分为多个子样本。将每组子样本中各用户在第一预定时段的生理信息及对应的睡眠风险信息作为训练样本,采用机器学习的算法对分类模型进行训练,得到与每个子样本对应的睡眠监测模型。Specifically, before determining the sleep monitoring model, the physiological information of different users in different altitude areas during the first predetermined period of time is collected to obtain collected samples. According to the altitude interval and the blood oxygen interval of the first predetermined time period, the collected sample is divided into a plurality of sub-samples. The physiological information and corresponding sleep risk information of each user in each group of sub-samples in the first predetermined period are used as training samples, and machine learning algorithms are used to train the classification model to obtain a sleep monitoring model corresponding to each sub-sample.
在得到与每个子样本对应的睡眠监测模型之后,确定用户当前所处的海拔信息对应的海拔区间,以及确定用户在第一预定时段的血氧信息对应的血氧区间,再确定与该海拔区间和血氧区间对应的睡眠监测模型,与该海拔区间和血氧区间对应的睡眠监测模型也即修正后的睡眠监测模型。After obtaining the sleep monitoring model corresponding to each sub-sample, determine the altitude interval corresponding to the altitude information of the user currently located, and determine the blood oxygen interval corresponding to the blood oxygen information of the user in the first predetermined period of time, and then determine the altitude interval The sleep monitoring model corresponding to the blood oxygen interval, and the sleep monitoring model corresponding to the altitude interval and blood oxygen interval are also the revised sleep monitoring model.
在一种可能的实现方式中,在确定出睡眠监测模型后,根据海拔区间和第一预定时段的血氧信息对应的血氧区间,确定睡眠监测模型中用于判定睡眠风险信息的阈值,以提高后续判定睡眠风险信息的准确率。In a possible implementation manner, after the sleep monitoring model is determined, the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen information of the first predetermined period of time, to Improve the accuracy of subsequent determination of sleep risk information.
S303:将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。S303: Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
由于不同海拔地区的用户的血氧信息不同,睡眠呼吸风险处于同一个风险等级的用户的血氧信息也不同。上述实施例中,根据用户在第一预定时段的血氧信息和用户当前所处的海拔信息确定睡眠监测模型,可以确定出与用户所处的海拔区域和用户的血氧信息相匹配的睡眠监测模型,再根据用户在第一预定时段的生理信息和确定出的睡眠监测模型输出睡眠风险信息,提高睡眠风险的监测准确率。Since the blood oxygen information of users in different altitude areas is different, the blood oxygen information of users whose sleep breathing risk is at the same risk level is also different. In the above embodiment, the sleep monitoring model is determined according to the user's blood oxygen information in the first predetermined period of time and the user's current altitude information, and the sleep monitoring that matches the user's altitude area and the user's blood oxygen information can be determined The model then outputs sleep risk information according to the physiological information of the user in the first predetermined period of time and the determined sleep monitoring model, so as to improve the accuracy of sleep risk monitoring.
在又一应用场景下,用户在第一预定时段和第二预定时段均佩戴或使用电子设备,即用户在白天和夜间均佩戴或使用电子设备,且电子设备在第二预定时段采集的生理 信息不包括用户在第二预定时段的血氧信息。In another application scenario, the user wears or uses the electronic device in both the first predetermined time period and the second predetermined time period, that is, the user wears or uses the electronic device during the day and night, and the physiological information collected by the electronic device in the second predetermined time period The blood oxygen information of the user in the second predetermined period of time is not included.
请参阅图6,该应用场景下,睡眠风险监测方法包括:Please refer to Figure 6. In this application scenario, sleep risk monitoring methods include:
S401:获取用户的生理信息和用户当前所处的海拔信息。S401: Acquire physiological information of the user and altitude information of the user currently located.
其中,用户的生理信息包括用户在第一预定时段的生理信息和用户在第二预定时段的生理信息,用户在第一预定时段的生理信息包括血氧信息、心率信息和/或脉搏信息;用户在第二预定时段的生理信息包括脉搏信息和/或心率信息。Wherein, the physiological information of the user includes the physiological information of the user in the first predetermined time period and the physiological information of the user in the second predetermined time period, and the physiological information of the user in the first predetermined time period includes blood oxygen information, heart rate information and/or pulse information; the user; The physiological information in the second predetermined time period includes pulse information and/or heart rate information.
S402:根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设血氧信息及对应的睡眠风险信息作为训练样本进行训练后得到的。S402: Determine a sleep monitoring model according to the altitude information where the user is currently located, where the sleep monitoring model is obtained after training with preset blood oxygen information and corresponding sleep risk information in a preset altitude area as training samples .
具体地,在确定睡眠监测模型之前,采集不同海拔地区的不同用户在第二预定时段和第一预定时段的生理信息,得到采集样本。根据不同海拔地区的不同用户在第二预定时段的生理信息计算出对应用户在第二预定时段的血氧信息。按照海拔区间和第二预定时段的血氧区间,将采集样本划分为多个子样本。将每个子样本中各用户在第一预定时段的生理信息及对应的睡眠风险信息作为训练样本,采用机器学习的算法对分类模型进行训练,得到与每个子样本对应的睡眠监测模型。Specifically, before determining the sleep monitoring model, the physiological information of different users in different altitude areas during the second predetermined time period and the first predetermined time period is collected to obtain the collected samples. The blood oxygen information of the corresponding user in the second predetermined time period is calculated according to the physiological information of different users in different altitude areas in the second predetermined time period. According to the altitude interval and the blood oxygen interval of the second predetermined time period, the collected sample is divided into a plurality of sub-samples. The physiological information and corresponding sleep risk information of each user in each sub-sample at the first predetermined time period are used as training samples, and the classification model is trained using a machine learning algorithm to obtain a sleep monitoring model corresponding to each sub-sample.
在得到与每个子样本对应的睡眠监测模型之后,根据用户当前所处的海拔信息确定对应的海拔区间,再确定与该海拔区间对应的睡眠监测模型。After obtaining the sleep monitoring model corresponding to each sub-sample, determine the corresponding altitude interval according to the altitude information where the user is currently located, and then determine the sleep monitoring model corresponding to the altitude interval.
在一种可能的实现方式中,在确定睡眠监测模型前,获取第二预定时段对应的血氧统计值,具体地,对不同海拔地区的不同用户在第二预定时段的血氧信息进行统计,得到海拔和第二预定时段的血氧信息的映射关系,根据该映射关系得到第二预定时段对应的血氧统计值,其中,血氧统计值,可以是与用户所处海拔高度接近的海拔区域的不同用户,在第二预定时段的血氧的平均值。得到第二预定时段对应的血氧统计值后,确定第二预定时段对应的血氧统计值对应的血氧区间,及用户当前所处的海拔信息对应的海拔区间,根据海拔区间和血氧区间确定出对应的睡眠监测模型。In a possible implementation manner, before the sleep monitoring model is determined, the blood oxygen statistical value corresponding to the second predetermined time period is obtained, specifically, the blood oxygen information of different users in different altitude areas in the second predetermined time period is collected, Obtain the mapping relationship between altitude and blood oxygen information in the second predetermined time period, and obtain the blood oxygen statistical value corresponding to the second predetermined time period according to the mapping relationship, where the blood oxygen statistical value may be an altitude area close to the altitude where the user is located The average value of blood oxygen of different users in the second predetermined period of time. After obtaining the blood oxygen statistical value corresponding to the second predetermined time period, determine the blood oxygen interval corresponding to the blood oxygen statistical value corresponding to the second predetermined time period, and the altitude interval corresponding to the altitude information the user is currently at, according to the altitude interval and blood oxygen interval Determine the corresponding sleep monitoring model.
在一种可能的实现方式中,在确定出睡眠监测模型后,根据海拔区间和第二预定时段对应的血氧统计值对应的血氧区间,确定睡眠监测模型中用于判定睡眠风险信息的阈值,以提高后续判定睡眠风险信息的准确率。In a possible implementation manner, after the sleep monitoring model is determined, the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen statistical value corresponding to the second predetermined time period , In order to improve the accuracy of subsequent determination of sleep risk information.
S403:将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。S403: Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
上述实施例中,根据用户当前所处的海拔信息和第二预定时段对应的血氧统计值确定睡眠监测模型,可以确定出与当前海拔区域的用户生理信息相匹配的睡眠监测模型,再根据用户在第一预定时段的生理信息和确定出的睡眠监测模型输出睡眠风险信息,提高了睡眠风险的监测准确率。In the above embodiment, the sleep monitoring model is determined according to the user’s current altitude information and the blood oxygen statistical value corresponding to the second predetermined time period, and the sleep monitoring model that matches the user’s physiological information in the current altitude area can be determined, and then according to the user The physiological information in the first predetermined period of time and the determined sleep monitoring model output sleep risk information, which improves the accuracy of sleep risk monitoring.
在又一应用场景下,用户在第一预定时段和第二预定时段均佩戴或使用电子设备,且电子设备在第二预定时段采集的生理信息包括用户在第二预定时段的血氧信息。In yet another application scenario, the user wears or uses the electronic device in both the first predetermined period and the second predetermined period, and the physiological information collected by the electronic device in the second predetermined period includes blood oxygen information of the user in the second predetermined period.
请参阅图7,该应用场景下,睡眠风险监测方法包括:Refer to Figure 7. In this application scenario, sleep risk monitoring methods include:
S501:获取用户的生理信息和用户当前所处的海拔信息。S501: Acquire physiological information of the user and altitude information of the user currently located.
具体地,用户的生理信息包括用户在第二预定时段的生理信息和第一预定时段的生理信息,用户在第二预定时段的生理信息包括血氧信息,用户在第一预定时段的生 理信息包括血氧信息、心率信息和/或脉搏信息。Specifically, the physiological information of the user includes the physiological information of the user in the second predetermined period and the physiological information of the first predetermined period, the physiological information of the user in the second predetermined period includes blood oxygen information, and the physiological information of the user in the first predetermined period includes Blood oxygen information, heart rate information and/or pulse information.
在一种可能的实现方式中,电子设备获取的数据还包括用户在第一预定时段的鼾声信息和身体动作信息。In a possible implementation manner, the data acquired by the electronic device further includes snoring information and body motion information of the user during the first predetermined period of time.
S502:根据用户在第二预定时段的血氧信息和用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设血氧信息及对应的睡眠风险信息作为训练样本进行训练后得到的。S502: Determine a sleep monitoring model according to the blood oxygen information of the user in the second predetermined time period and the altitude information where the user is currently located, where the sleep monitoring model is based on preset blood oxygen information in a preset altitude area and a corresponding sleep risk The information is obtained after training as a training sample.
具体地,在确定睡眠监测模型之前,采集不同海拔地区的不同用户在第二预定时段和第一预定时段的生理信息,得到采集样本。按照海拔区间和第二预定时段的血氧区间,将采集样本划分为多个子样本。将每个子样本中各用户在第一预定时段的生理信息及对应的睡眠风险信息作为训练样本,采用机器学习的算法对分类模型进行训练,得到与每个子样本对应的睡眠监测模型。Specifically, before determining the sleep monitoring model, the physiological information of different users in different altitude areas during the second predetermined time period and the first predetermined time period is collected to obtain the collected samples. According to the altitude interval and the blood oxygen interval of the second predetermined time period, the collected sample is divided into a plurality of sub-samples. Taking the physiological information of each user in the first predetermined period of time and the corresponding sleep risk information in each sub-sample as the training sample, the classification model is trained by the machine learning algorithm, and the sleep monitoring model corresponding to each sub-sample is obtained.
在得到与每个子样本对应的睡眠监测模型之后,确定用户当前所处的海拔信息对应的海拔区间,确定用户在第二预定时段的血氧信息对应的血氧区间,再确定与该海拔区间和血氧区间对应的睡眠监测模型。After obtaining the sleep monitoring model corresponding to each sub-sample, determine the altitude interval corresponding to the altitude information the user is currently at, determine the blood oxygen interval corresponding to the user's blood oxygen information in the second predetermined period, and then determine the sum of the altitude interval and the altitude interval. Sleep monitoring model corresponding to blood oxygen zone.
在一种可能的实现方式中,在确定出睡眠监测模型后,根据海拔区间和第二预定时段的血氧信息对应的血氧区间,确定睡眠监测模型中用于判定睡眠风险信息的阈值,以提高后续判定睡眠风险信息的准确率。In a possible implementation manner, after the sleep monitoring model is determined, the threshold for determining sleep risk information in the sleep monitoring model is determined according to the altitude interval and the blood oxygen interval corresponding to the blood oxygen information of the second predetermined period of time, so as to Improve the accuracy of subsequent determination of sleep risk information.
S503:将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。S503: Input the physiological information of the user during the first predetermined time period into the sleep monitoring model, and obtain sleep risk information output by the sleep monitoring model.
由于不同海拔地区的用户的血氧信息不同,睡眠风险处于同一个风险等级的用户的血氧信息也不同,且用户在第二预定时段的血氧信息相对于用户在第一预定时段的血氧信息更加稳定。例如,对于存在睡眠风险问题的用户,其在第一预定时段的血氧信息波动较大。上述实施例中,根据用户在第二预定时段的血氧区间和海拔区间划分采集样本,进行睡眠监测模型的训练,使得睡眠监测模型的训练数据更加稳定,从而可以训练出更准确的模型。再根据用户在第二预定时段的血氧信息和用户当前所处的海拔信息确定睡眠监测模型,可以确定出与用户所处的海拔区域和用户的血氧信息相匹配的睡眠监测模型,再根据用户在第一预定时段的生理信息和确定出的睡眠监测模型输出睡眠风险信息,提高睡眠风险的监测准确率。Since the blood oxygen information of users in different altitude areas is different, the blood oxygen information of users whose sleep risk is at the same risk level is also different, and the blood oxygen information of the user in the second predetermined time period is relative to the blood oxygen information of the user in the first predetermined time period. Information is more stable. For example, for a user who has a sleep risk problem, his blood oxygen information during the first predetermined period of time fluctuates greatly. In the above embodiment, samples are collected according to the blood oxygen interval and altitude interval of the user in the second predetermined period of time, and the sleep monitoring model is trained to make the training data of the sleep monitoring model more stable, so that a more accurate model can be trained. Then determine the sleep monitoring model based on the user’s blood oxygen information during the second predetermined period of time and the user’s current altitude information, and determine a sleep monitoring model that matches the user’s altitude area and the user’s blood oxygen information. The physiological information of the user in the first predetermined period of time and the determined sleep monitoring model output sleep risk information to improve the accuracy of sleep risk monitoring.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
图8是本申请实施例提供的电子设备100的结构框图,如图8所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传 感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 8 is a structural block diagram of an electronic device 100 provided by an embodiment of the present application. As shown in FIG. 8, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, and a universal serial bus (USB). ) Interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, The sensor module 180, the buttons 190, the motor 191, the indicator 192, the camera 193, the display screen 194, and the subscriber identification module (SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can 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 processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDL)和一根串行时钟线(serial clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDL) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used 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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by 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复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In 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 a wireless communication solution including 2G/3G/4G/5G and the like 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), and the like. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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), broadband Code division multiple access (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, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶 显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may 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 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理 器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. 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 magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据 磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various 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 electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on.
距离传感器180F,用于测量距离。电子设备100可以通过雷达、红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。在一些实施例中,电子设备100也可以利用距离传感器180F测量障碍物的距离和速度。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by radar, infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing. In some embodiments, the electronic device 100 may also use the distance sensor 180F to measure the distance and speed of the obstacle.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L 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 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器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 photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K 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. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. 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也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时***多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述***中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。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 computer readable storage medium. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in the present application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. For example, U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electrical carrier signals and telecommunication signals.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network equipment and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (10)

  1. 一种睡眠风险监测方法,其特征在于,包括:A method for monitoring sleep risk, which is characterized in that it comprises:
    获取用户生理信息和用户当前所处的海拔信息;Obtain the user's physiological information and the altitude information of the user's current location;
    根据所述用户当前所处的海拔信息确定睡眠监测模型,其中,所述睡眠监测模型是以预设海拔地区的预设生理信息及对应的睡眠风险信息作为训练样本进行训练后得到的;Determining a sleep monitoring model according to the altitude information where the user is currently located, wherein the sleep monitoring model is obtained after training with preset physiological information in a preset altitude area and corresponding sleep risk information as training samples;
    将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。The user's physiological information is input into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
  2. 如权利要求1所述的睡眠风险监测方法,其特征在于,所述用户生理信息包括用户在第一预定时段的生理信息,所述将所述用户生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息,包括:The sleep risk monitoring method according to claim 1, wherein the physiological information of the user includes the physiological information of the user during the first predetermined period of time, and the physiological information of the user is input into the sleep monitoring model to obtain the physiological information of the user. The sleep risk information output by the sleep monitoring model includes:
    将所述用户在第一预定时段的生理信息输入所述睡眠监测模型,获得所述睡眠监测模型输出的睡眠风险信息。The physiological information of the user during the first predetermined period of time is input into the sleep monitoring model to obtain sleep risk information output by the sleep monitoring model.
  3. 如权利要求2所述的睡眠风险监测方法,其特征在于,所述根据所述用户当前所处的海拔信息确定睡眠监测模型,包括:The sleep risk monitoring method according to claim 2, wherein the determining a sleep monitoring model according to the altitude information of the user currently located comprises:
    确定所述用户当前所处的海拔信息对应的海拔区间;Determine the altitude interval corresponding to the altitude information where the user is currently located;
    根据所述海拔区间和所述第一预定时段对应的血氧统计值确定睡眠监测模型。A sleep monitoring model is determined according to the altitude interval and the blood oxygen statistical value corresponding to the first predetermined time period.
  4. 如权利要求3所述的睡眠风险监测方法,其特征在于,所述第一预定时段对应的血氧统计值是对不同海拔地区的不同用户在所述第一预定时段的血氧信息进行统计后得到的。The sleep risk monitoring method according to claim 3, wherein the blood oxygen statistical value corresponding to the first predetermined time period is obtained by collecting blood oxygen information of different users in different altitude areas during the first predetermined time period. owned.
  5. 如权利要求2所述的睡眠风险监测方法,其特征在于,所述根据所述用户当前所处的海拔信息确定睡眠监测模型,包括:The sleep risk monitoring method according to claim 2, wherein the determining a sleep monitoring model according to the altitude information of the user currently located comprises:
    确定所述用户当前所处的海拔信息对应的海拔区间;Determine the altitude interval corresponding to the altitude information where the user is currently located;
    根据所述海拔区间和第二预定时段对应的血氧统计值确定睡眠监测模型,其中,所述第二预定时段是指所述第一预定时段之外的时段。The sleep monitoring model is determined according to the blood oxygen statistical value corresponding to the altitude interval and the second predetermined time period, where the second predetermined time period refers to a time period outside the first predetermined time period.
  6. 如权利要求2所述的睡眠风险监测方法,其特征在于,所述根据所述用户当前所处的海拔信息确定睡眠监测模型,包括:The sleep risk monitoring method according to claim 2, wherein the determining a sleep monitoring model according to the altitude information of the user currently located comprises:
    根据所述用户生理信息和所述用户当前所处的海拔信息确定睡眠监测模型。A sleep monitoring model is determined according to the physiological information of the user and the altitude information where the user is currently located.
  7. 如权利要求6所述的睡眠风险监测方法,其特征在于,所述第一预定时段的生理信息包括用户在所述第一预定时段的血氧信息,所述根据所述用户生理信息和所述用户当前所处的海拔信息确定睡眠监测模型,包括:The sleep risk monitoring method according to claim 6, wherein the physiological information of the first predetermined time period includes blood oxygen information of the user during the first predetermined time period, and the physiological information according to the user’s physiological information and the The user’s current altitude information determines the sleep monitoring model, including:
    确定所述第一预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处的海拔信息对应的海拔区间;Determining the blood oxygen interval corresponding to the blood oxygen information of the first predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located;
    根据所述血氧区间和所述海拔区间确定睡眠监测模型。A sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
  8. 如权利要求6所述的睡眠风险监测方法,其特征在于,所述用户生理信息还包括用户在第二预定时段的生理信息,所述用户在第二预定时段的生理信息包括用户在所述第二预定时段的血氧信息,所述根据所述用户生理信息和所述用户当前所处的海拔信息确定睡眠监测模型,包括:The sleep risk monitoring method according to claim 6, wherein the physiological information of the user further includes the physiological information of the user in the second predetermined period of time, and the physiological information of the user in the second predetermined period of time includes the user’s physiological information in the second predetermined period of time. 2. Blood oxygen information for a predetermined period of time, the determining a sleep monitoring model based on the physiological information of the user and the altitude information of the user currently located includes:
    确定所述第二预定时段的血氧信息对应的血氧区间,以及确定所述用户当前所处 的海拔信息对应的海拔区间;Determining the blood oxygen interval corresponding to the blood oxygen information of the second predetermined time period, and determining the altitude interval corresponding to the altitude information where the user is currently located;
    根据所述血氧区间和所述海拔区间确定睡眠监测模型。A sleep monitoring model is determined according to the blood oxygen interval and the altitude interval.
  9. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8任一项所述的睡眠风险监测方法。An electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 8. The sleep risk monitoring method of any one of them.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述的睡眠风险监测方法。A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the sleep risk monitoring method according to any one of claims 1 to 8 .
PCT/CN2021/084204 2020-04-10 2021-03-30 Sleep risk monitoring method, electronic device and storage medium WO2021204036A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202010279993 2020-04-10
CN202010279993.6 2020-04-10
CN202011455211.6 2020-12-10
CN202011455211.6A CN113509145B (en) 2020-04-10 2020-12-10 Sleep risk monitoring method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2021204036A1 true WO2021204036A1 (en) 2021-10-14

Family

ID=78024007

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084204 WO2021204036A1 (en) 2020-04-10 2021-03-30 Sleep risk monitoring method, electronic device and storage medium

Country Status (1)

Country Link
WO (1) WO2021204036A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114767064A (en) * 2022-03-23 2022-07-22 中国科学院苏州生物医学工程技术研究所 Child sleep monitoring method and system and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130096843A1 (en) * 2010-09-30 2013-04-18 Fitbit, Inc. Portable Monitoring Devices and Methods of Operating Same
CN205411148U (en) * 2015-12-09 2016-08-03 深圳市新元素医疗技术开发有限公司 Sleep guardianship device
US20170136348A1 (en) * 2014-01-17 2017-05-18 Nintendo Co., Ltd. Information processing system, information processing device, storage medium storing information processing program, and information processing method
CN107260178A (en) * 2013-01-15 2017-10-20 飞比特公司 Portable monitoring device and its operating method
CN109528183A (en) * 2019-01-15 2019-03-29 浙江强脑科技有限公司 Human body abnormality monitoring method, equipment and computer readable storage medium
CN110602982A (en) * 2018-08-17 2019-12-20 高驰运动科技(深圳)有限公司 Plateau risk early warning method and device, electronic device, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130096843A1 (en) * 2010-09-30 2013-04-18 Fitbit, Inc. Portable Monitoring Devices and Methods of Operating Same
CN107260178A (en) * 2013-01-15 2017-10-20 飞比特公司 Portable monitoring device and its operating method
US20170136348A1 (en) * 2014-01-17 2017-05-18 Nintendo Co., Ltd. Information processing system, information processing device, storage medium storing information processing program, and information processing method
CN205411148U (en) * 2015-12-09 2016-08-03 深圳市新元素医疗技术开发有限公司 Sleep guardianship device
CN110602982A (en) * 2018-08-17 2019-12-20 高驰运动科技(深圳)有限公司 Plateau risk early warning method and device, electronic device, and computer-readable storage medium
CN109528183A (en) * 2019-01-15 2019-03-29 浙江强脑科技有限公司 Human body abnormality monitoring method, equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114767064A (en) * 2022-03-23 2022-07-22 中国科学院苏州生物医学工程技术研究所 Child sleep monitoring method and system and electronic device
CN114767064B (en) * 2022-03-23 2024-01-23 中国科学院苏州生物医学工程技术研究所 Child sleep monitoring method, system and electronic device

Similar Documents

Publication Publication Date Title
WO2021213165A1 (en) Multi-source data processing method, electronic device and computer-readable storage medium
WO2021169515A1 (en) Method for data exchange between devices, and related device
WO2020015144A1 (en) Photographing method and electronic device
WO2021213151A1 (en) Display control method and wearable device
WO2021068926A1 (en) Model updating method, working node, and model updating system
WO2022007720A1 (en) Wearing detection method for wearable device, apparatus, and electronic device
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
CN113676339B (en) Multicast method, device, terminal equipment and computer readable storage medium
WO2022042768A1 (en) Index display method, electronic device, and computer readable storage medium
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
WO2021204036A1 (en) Sleep risk monitoring method, electronic device and storage medium
CN113467735A (en) Image adjusting method, electronic device and storage medium
CN113645622A (en) Device authentication method, electronic device, and storage medium
WO2020078267A1 (en) Method and device for voice data processing in online translation process
CN115665632B (en) Audio circuit, related device and control method
CN113129916A (en) Audio acquisition method, system and related device
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
EP4307692A1 (en) Method and system for adjusting volume, and electronic device
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN114698078A (en) Transmission power adjustment method, electronic device, and storage medium
CN113509145B (en) Sleep risk monitoring method, electronic device and storage medium
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
WO2023237087A1 (en) Method for predicting fertile window, apparatus and electronic device
WO2021063156A1 (en) Method for adjusting folding angle of electronic device, and electronic device
CN114125144B (en) Method, terminal and storage medium for preventing false touch

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21783852

Country of ref document: EP

Kind code of ref document: A1