WO2022083363A1 - 周期性测量血氧的方法及电子设备 - Google Patents
周期性测量血氧的方法及电子设备 Download PDFInfo
- Publication number
- WO2022083363A1 WO2022083363A1 PCT/CN2021/118373 CN2021118373W WO2022083363A1 WO 2022083363 A1 WO2022083363 A1 WO 2022083363A1 CN 2021118373 W CN2021118373 W CN 2021118373W WO 2022083363 A1 WO2022083363 A1 WO 2022083363A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- light
- blood oxygen
- electronic device
- oxygen measurement
- power
- Prior art date
Links
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 title claims abstract description 280
- 229910052760 oxygen Inorganic materials 0.000 title claims abstract description 280
- 239000001301 oxygen Substances 0.000 title claims abstract description 280
- 239000008280 blood Substances 0.000 title claims abstract description 278
- 210000004369 blood Anatomy 0.000 title claims abstract description 278
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000005259 measurement Methods 0.000 claims abstract description 241
- 230000004044 response Effects 0.000 claims abstract description 31
- 238000013186 photoplethysmography Methods 0.000 claims description 252
- 238000005070 sampling Methods 0.000 claims description 22
- 230000000737 periodic effect Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 11
- 238000004891 communication Methods 0.000 description 32
- 230000006854 communication Effects 0.000 description 32
- 239000010410 layer Substances 0.000 description 31
- 230000006870 function Effects 0.000 description 29
- 238000007726 management method Methods 0.000 description 15
- 201000002859 sleep apnea Diseases 0.000 description 14
- 230000005236 sound signal Effects 0.000 description 13
- 210000000988 bone and bone Anatomy 0.000 description 11
- 238000010586 diagram Methods 0.000 description 11
- 238000010295 mobile communication Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 238000001514 detection method Methods 0.000 description 10
- 238000009532 heart rate measurement Methods 0.000 description 7
- 206010021143 Hypoxia Diseases 0.000 description 6
- 230000007954 hypoxia Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000007704 transition Effects 0.000 description 5
- 206010062519 Poor quality sleep Diseases 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000005265 energy consumption Methods 0.000 description 4
- 230000010412 perfusion Effects 0.000 description 4
- 210000001519 tissue Anatomy 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 108010054147 Hemoglobins Proteins 0.000 description 3
- 102000001554 Hemoglobins Human genes 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000036772 blood pressure Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 108010064719 Oxyhemoglobins Proteins 0.000 description 2
- 208000037656 Respiratory Sounds Diseases 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000031700 light absorption Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 208000000044 Amnesia Diseases 0.000 description 1
- 208000019901 Anxiety disease Diseases 0.000 description 1
- 206010019280 Heart failures Diseases 0.000 description 1
- 208000026139 Memory disease Diseases 0.000 description 1
- 230000036506 anxiety Effects 0.000 description 1
- 210000001367 artery Anatomy 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000017531 blood circulation Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 210000005013 brain tissue Anatomy 0.000 description 1
- 208000030303 breathing problems Diseases 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 210000001736 capillary Anatomy 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 210000003169 central nervous system Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000004087 circulation Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 208000002173 dizziness Diseases 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 210000003734 kidney Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 210000004185 liver Anatomy 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 235000013372 meat Nutrition 0.000 description 1
- 230000006984 memory degeneration Effects 0.000 description 1
- 208000023060 memory loss Diseases 0.000 description 1
- 230000004060 metabolic process Effects 0.000 description 1
- 230000017074 necrotic cell death Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000036284 oxygen consumption Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 208000024891 symptom Diseases 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 210000003462 vein Anatomy 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, 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/0205—Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q9/00—Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, 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/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02416—Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, 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/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02416—Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
- A61B5/02427—Details of sensor
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, 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/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02416—Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
- A61B5/02427—Details of sensor
- A61B5/02433—Details of sensor for infrared radiation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, 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/024—Detecting, measuring or recording pulse rate or heart rate
- A61B5/02438—Detecting, measuring or recording pulse rate or heart rate with portable devices, e.g. worn by the patient
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/14542—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue for measuring blood gases
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/1455—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters
- A61B5/14551—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using optical sensors, e.g. spectral photometrical oximeters for measuring blood gases
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4809—Sleep detection, i.e. determining whether a subject is asleep or not
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4812—Detecting sleep stages or cycles
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/48—Other medical applications
- A61B5/4806—Sleep evaluation
- A61B5/4818—Sleep apnoea
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
- A61B5/681—Wristwatch-type devices
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/724094—Interfacing with a device worn on the user's body to provide access to telephonic functionalities, e.g. accepting a call, reading or composing a message
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B2560/00—Constructional details of operational features of apparatus; Accessories for medical measuring apparatus
- A61B2560/02—Operational features
- A61B2560/0204—Operational features of power management
- A61B2560/0209—Operational features of power management adapted for power saving
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q2209/00—Arrangements in telecontrol or telemetry systems
- H04Q2209/40—Arrangements in telecontrol or telemetry systems using a wireless architecture
Definitions
- the invention relates to the field of computer technology, and in particular, to a method and electronic device for periodically measuring blood oxygen.
- Blood oxygen saturation refers to the percentage of oxygen-bound oxyhemoglobin (HbO2) capacity in the blood to the total bindable hemoglobin capacity, that is, the concentration of blood oxygen in the blood, but also the blood oxygen content and the blood oxygen content.
- the percentage of blood oxygen capacity which reflects the ability of hemoglobin to combine with oxygen, is an important physiological parameter of respiration and circulation.
- hypoxia is the imbalance between the body's oxygen supply and oxygen consumption, and the metabolism of tissue cells is in a state of hypoxia.
- Hypoxia is the imbalance between the body's oxygen supply and oxygen consumption, and the metabolism of tissue cells is in a state of hypoxia.
- Short-term hypoxia can lead to inattention, memory loss, dizziness, anxiety and other symptoms; severe or long-term hypoxia can lead to myocardial failure, blood pressure drop, blood circulation failure, and even degeneration and necrosis of brain tissue. Therefore, performing periodic blood oxygen measurement is very important for users to understand their own blood oxygen conditions.
- nighttime blood oxygen can make users aware of their own sleep breathing problems, and can detect and solve problems in time.
- the embodiments of the present application provide a method for periodically measuring blood oxygen and an electronic device, which can perform dimming only once when a user is in a sleep state, and do not perform dimming during sleep, so as to reduce the power consumption of the electronic device .
- the embodiments of the present application provide a method for periodically measuring blood oxygen, which is applied to electronic equipment.
- the electronic equipment includes a red light R path and an infrared light IR path, and the R path and the IR path are both.
- the light-emitting source of the R-path is used to emit red light to the user
- the photo-detector of the R-path is used to convert the red light reflected by the user into a red light photoplethysmography PPG
- the light source of the IR circuit is used to emit infrared light to the user
- the photodetector of the IR circuit is used to convert the infrared light reflected by the user into an infrared photoplethysmography PPG signal;
- the method includes:
- the electronic device receives a first instruction, where the first instruction is used to instruct to periodically measure the blood oxygen saturation;
- the electronic device In response to the first instruction, in the first blood oxygen measurement cycle, if the user changes from a non-sleep state to a sleep state, the electronic device performs dimming, and the dimming is used to determine the The light-emitting power of the light-emitting source of the R path and the light-emitting power of the light-emitting source of the IR path are the first power and the second power, respectively;
- the electronic device controls the light source of the R path to emit red light at the first power, and the IR path emits red light at the first power.
- the light source emits infrared light with the second power, and the second blood oxygen measurement period and the first blood oxygen measurement period are the same blood oxygen measurement period or the second period is the first blood oxygen measurement period. the next blood oxygen measurement cycle;
- the red light PPG signal and the infrared PPG signal are collected by the photodetector of the R circuit and the photodetector of the IR circuit, respectively, and the red light PPG signal and the infrared PPG signal are used to calculate the blood oxygen saturation.
- the above method only performs dimming once when the user is in a sleep state, and does not perform dimming during the sleep process, so as to reduce the power consumption of the electronic device.
- the second blood oxygen measurement cycle and the first blood oxygen measurement cycle are the same blood oxygen measurement cycle, and during the first blood oxygen measurement cycle, if the user is not sleeping When the state transitions to the sleep state, dimming is performed, including:
- the electronic device detects the current sleep state of the user
- the electronic device When the current sleep state is a sleep state and the user is in a non-sleep state in a previous blood oxygen measurement cycle of the first blood oxygen measurement cycle, the electronic device performs dimming.
- the method further includes:
- the non-blood oxygen measurement time the light-emitting source of the R circuit, the light-emitting source of the IR circuit, the photodetector of the R circuit and the photodetector of the IR circuit are turned off, and the non-blood oxygen measurement time is: A time period outside the blood oxygen measurement time in the blood oxygen measurement period, so as to further reduce the power consumption of the electronic device.
- the method before the light-emitting source of the R path is controlled to emit red light with the first power, and the light-emitting source of the IR path emits infrared light with the second power, the method further includes: include:
- the electronic device receives a second instruction, where the second instruction is used to instruct to continuously acquire the PPG signal.
- the electronic device further includes a PPG manager; the PPG manager of the electronic device is configured to perform the following steps:
- a control signal is generated according to the first instruction and the second instruction, the first instruction comes from the first application, the second instruction comes from the second application, and the control signal is used to drive the light source of the R channel emit red light with the first power and the light-emitting source of the IR path emits infrared light with the second power;
- the red light PPG signal and the infrared PPG signal are sent to the first application, and the PPG signal obtained by the second instruction instruction is sent to the second application.
- the above method can realize that the R path and the IR path of the electronic device are called by multiple applications at the same time, so as to measure the blood oxygen saturation, heart rate and the like at the same time.
- the method when the second instruction indicates that the acquired PPG signal is a red light PPG signal, the method further includes:
- the light-emitting source of the R channel is kept controlled to emit red light at the first power and the photodetector of the R channel is kept to collect the red light PPG signal, and the non-blood oxygen measurement time is: a time period other than the blood oxygen measurement time in the second blood oxygen measurement period;
- the light-emitting source of the IR circuit and the photodetector of the IR circuit are turned off.
- the method when the second instruction indicates that the acquired PPG signal is an infrared PPG signal, the method further includes:
- the non-blood oxygen measurement time keeps controlling the light-emitting source of the IR circuit to emit red light with the second power and keep collecting the infrared light PPG signal through the photodetector of the IR circuit, and the non-blood oxygen measurement time is: a time period other than the blood oxygen measurement time in the second blood oxygen measurement period;
- the light-emitting source of the R channel and the photodetector of the R channel are turned off.
- the method when the second instruction indicates that the acquired PPG signal is a red light PPG signal and an infrared PPG signal, the method further includes:
- non-blood oxygen measurement time keep controlling the light-emitting source of the R channel to emit red light at the first power, keep the light-emitting source of the IR channel to emit infrared light at the second power, keep passing the R channel
- the photodetector collects the red light PPG signal and the photodetector that maintains the IR circuit collects the infrared light PPG signal, and the non-blood oxygen measurement time is outside the blood oxygen measurement time in the second blood oxygen measurement period time period.
- the method further includes:
- the electronic device When the user is in a non-sleep state during the blood oxygen measurement time, the electronic device performs dimming, and the dimming is used to determine the luminous power of the light-emitting source of the R path and the light-emitting power of the light-emitting source of the IR path are the first power and the second power, respectively.
- the electronic device when the user is in a non-sleep state during the blood oxygen measurement time, performs dimming, specifically including:
- the electronic device When the user is in a non-sleep state during the blood oxygen measurement time, the electronic device obtains its motion data from the last dimming time to the current time;
- the electronic device adjusts the luminous power of the luminous source of the R channel and all The light-emitting powers of the light-emitting sources of the IR path are the first power and the second power, respectively.
- the first power is the emission power of the light-emitting source of the R path when the output current of the photodetector of the R path is equal to or greater than the first target current;
- the second power In order to make the output current of the photodetector of the IR circuit equal to or greater than the second target current, the emission power of the light-emitting source of the IR circuit.
- the sampling frequency of the photodetector of the R channel when the user is in a sleep state is lower than the sampling frequency of the photodetector of the R channel when the user is in a non-sleep state; the user In the sleep state, the sampling frequency of the photodetector of the IR circuit is lower than the sampling frequency of the photodetector of the IR circuit when the user is in the non-sleep state.
- the light-emitting source of the R circuit and the light-emitting source of the IR circuit are the same light-emitting source, and the photodetector of the R circuit and the photodetector of the IR circuit are the same photoelectric detector.
- an embodiment of the present application further provides an electronic device, the electronic device includes a photoplethysmography PPG controller, a memory, a red light R path, an infrared light IR path, the R path and the IR path Both include a light-emitting source and a photodetector, the light-emitting source of the R-path is used to emit red light to the user, and the photo-detector of the R-path is used to convert the red light reflected by the user into a red-light photoplethysmography wave PPG signal, the light-emitting source of the IR circuit is used to emit infrared light to the user, and the photodetector of the IR circuit is used to convert the infrared light reflected by the user into an infrared photoplethysmography PPG signal; the The PPG controller executes the computer instructions stored in the memory for implementing the method implemented by the electronic device in the first aspect or any possible implementation of the first aspect.
- the embodiments of the present application further provide a computer program product including instructions, when the computer program product is run on an electronic device, the electronic device is made to implement the first aspect or any one of the first aspect possible implementations of the methods described in.
- embodiments of the present application further provide a computer-readable storage medium, including instructions, wherein when the instructions are executed on an electronic device, the electronic device is made to implement the first aspect or the first The method described in any of the possible implementations of the aspect.
- FIG. 1A is a schematic structural diagram of a control system provided by an embodiment of the present application.
- FIG. 1B is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 2A is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- 2B is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- 3A-3H are schematic explanatory diagrams of some user interfaces provided by embodiments of the present application.
- FIG. 4 is a schematic explanatory diagram of a software architecture of an electronic device provided by an embodiment of the present application.
- FIG. 5 is a schematic flowchart of a method for periodically measuring blood oxygen provided by an embodiment of the present application
- FIG. 6 is a schematic flowchart of a method for periodically measuring blood oxygen provided by an embodiment of the present application.
- FIG. 7A is a schematic flowchart of another method for periodically measuring blood oxygen provided by an embodiment of the present application.
- FIG. 7B is a schematic flowchart of another method for periodically measuring blood oxygen provided by an embodiment of the present application.
- FIG. 8 is a schematic flowchart of another method for periodically measuring blood oxygen provided by an embodiment of the present application.
- PPG is a signal obtained by photoplethysmography.
- Photoplethysmography is a non-invasive detection method for detecting SpO2 based on the principle that the absorption of light by arterial blood varies with arterial fluctuations. Specifically, oxyhemoglobin HbO2 and hemoglobin Hb have different light absorption characteristics at wavelengths of 600 to 1000 nm. The absorption coefficient of Hb is higher between wavelengths of 600 to 800 nm, and the absorption coefficient of HbO2 is higher between wavelengths of 800 to 1000. Therefore, using red light (600-800nm) and infrared light (800-1000nm) to detect the PPG signals of HbO2 and Hb respectively, and then calculate the corresponding ratio through program processing, thus obtaining SpO2.
- red light 600-800nm
- infrared light 800-1000nm
- the blood oxygen value is calculated based on the ratio of the perfusion index of the red PPG signal of the wrist and the perfusion index of the infrared PPG signal.
- the perfusion index of the red PPG signal is the collected red light.
- the perfusion index of the infrared PPG signal is the ratio of the AC signal to the DC signal of the collected infrared light.
- the electronic device in the present application may include at least one light-emitting source and at least one photodetector, and may be used to measure SpO2, heart rate and heart rate related parameters, and the like.
- the at least one light-emitting source is used to emit red light and infrared light, and the light emitted by the light-emitting source is received by a photodetector after reflection, and the photodetector is used to convert the received red light into red light PPG signal, which converts the received infrared light into an infrared PPG signal.
- the light emitting source may be a light emitting diode (Light emitting diode, LED), and the photodetector may be a photodiode (photodiode, PD).
- LED Light emitting diode
- PD photodiode
- the embodiments of the present application take LED and PD as examples to illustrate.
- an LED and a PD form an optical path, wherein the LED emitting red light and the PD receiving the red light form an R path, and the LED emitting infrared light and the PD receiving the infrared light form an IR path. It should be understood that the LED that emits red light and the LED that emits infrared light can be the same LED, which can be implemented by time-division multiplexing. Similarly, the PD that receives the red light and the PD that receives the infrared light can be the same PD.
- the electronic equipment turns on the R path, that is, the LED and PD corresponding to the R path of the electronic equipment are turned on, the R path LED emits red light, and the R path PD receives the red light to generate a red light PPG signal; when the electronic equipment turns on the IR When the circuit is on, the LED and PD corresponding to the IR circuit of the electronic device are turned on, the LED of the IR circuit emits infrared light, and the PD of the IR circuit receives the infrared light to generate an infrared PPG signal.
- the system may include a first electronic device 11 and a second electronic device 12 , wherein the first electronic device 11 may be a smart watch, a smart hand A wearable device such as a ring can realize blood oxygen measurement, and the second electronic device 12 can be a mobile phone, a tablet computer, a cloud, or other devices.
- the first electronic device 11 may be a smart watch, a smart hand A wearable device such as a ring can realize blood oxygen measurement
- the second electronic device 12 can be a mobile phone, a tablet computer, a cloud, or other devices.
- the first electronic device 11 can include at least one light-emitting source and at least one photodetector, and can realize the collection of PPG signals.
- the PPG signals can include the above-mentioned red light PPG signals, infrared PPG signals, etc. Calculated SpO2. Heart rate and heart rate related parameters can also be calculated from the PPG signal.
- the first electronic device 11 may periodically measure blood oxygen in response to the first instruction.
- the first instruction may be an instruction generated by the electronic device after receiving the input user operation and used to instruct the electronic device 11 to periodically measure blood oxygen; it may also be sent by the second electronic device 11 and used to instruct the electronic device 11 to periodically measure the blood oxygen. Instructions for measuring blood oxygen.
- the second electronic device 12 may communicate with the first electronic device 11 and send an instruction to the first electronic device 111 to control the first electronic device 11 .
- the second electronic device 12 sends a first instruction to the first electronic device 11 , so that the first electronic device 11 periodically measures SpO2 in response to the first instruction, and sends the measured SpO2 to the second electronic device 12 .
- the second electronic device 12 sends an instruction for instructing to measure the heart rate to the first electronic device 11, so that the first electronic device 11 measures the heart rate after receiving the instruction, and sends the measured heart rate to the first electronic device 11.
- Two electronic devices 12 Two electronic devices 12 .
- the electronic device may be an electronic device that can measure SpO2, such as a smart watch, a smart bracelet, or the like.
- FIG. 1B is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may be the first electronic device 11 in the above-mentioned FIG. 1A , or may be the second electronic device in FIG. 1A .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, and a battery 142, Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light.
- the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software or a combination of software and hardware.
- the second electronic device 12 may not include the heart rate sensor 180N, the blood oxygen sensor 180O, and the like.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processor
- graphics processor graphics processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the controller may be the nerve center and command center of the electronic device 100 .
- the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- one or more processors may include a PPG controller, and may implement the functions implemented by the PPG controller in this application.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may contain multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
- the I2S interface can be used for audio communication.
- the processor 110 may contain multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit the audio signal to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
- the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
- the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
- the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is used to receive charging input from the charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through a 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 for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110 .
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
- the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays pictures or videos through the display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared technology
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
- the antenna 1 of the 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 (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 (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system, GLONASS
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quadsi -zenith satellite system, QZSS
- 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 a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 194 is used to display pictures, videos, and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the electronic device 100 may implement the acquisition function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc., to implement the image acquisition module of the HAL layer in the embodiment of the present application.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into a picture or video visible to the naked eye.
- ISP can also perform algorithm optimization on the noise, brightness and skin tone of the picture.
- 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 pictures or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital picture or video signal.
- ISP outputs digital picture or video signal to DSP for processing.
- DSP converts digital pictures or video signals into standard RGB, YUV and other formats of pictures or video signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- a digital signal processor is used to process digital signals, in addition to digital picture or video signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG Moving Picture Experts Group
- MPEG2 moving picture experts group
- MPEG3 MPEG4
- MPEG4 Moving Picture Experts Group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the 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 to save files like music, video etc in external memory card.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, a picture or video playback function, etc.), and the like.
- the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
- the voice can be answered by placing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
- the 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 a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
- the earphone jack 170D is used to connect wired earphones.
- the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the 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.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
- the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the orientation sensor 180D may be a compass and/or a magnetometer, and is used to measure the included angles between the electronic device 100 and the four directions of south, east, and northwest, so as to locate the electronic device 100 .
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the electronic device 100 emits infrared light to the outside through the light emitting diode.
- Electronic device 100 uses photodiodes 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 may 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 ambient light sensor 180L is used to sense ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
- the temperature sensor 180J is used to detect the 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 in order to reduce power consumption and implement thermal protection.
- the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the electronic device 100 may be a smart watch or a smart bracelet, and the temperature sensor 180J may be disposed on the skin-contacting side of the electronic device 100 to measure the temperature of the user's skin.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
- the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
- the heart rate sensor 180N is used to detect the user's heart rate.
- the heart rate sensor may employ the principles of photoplethysmography to measure heart rate and heart rate related parameters.
- the measurement principle is as follows: the reflection of light by the human skin, bones, meat, fat and other tissues is fixed; while the capillaries, arteries, veins, etc., due to the regular change of the pulse volume of the beating heart, the reflection of light is The fluctuation value, the frequency of this fluctuation is the heart rate.
- the heart rate sensor may include an emitting light source and a photodetector, the heart rate sensor obtains a PPG signal by detecting the reflection amount of the light emitted by the light source by the photodetector, and detects heart rate related parameters through the PPG signal.
- the light used to detect the heart rate and the parameters related to the heart rate may be red light, infrared light, green light and the like.
- the blood oxygen sensor 1800 may include at least one light-emitting source and at least one photodetector, wherein the at least one light-emitting source may emit red light and infrared light, and the emitted red light and infrared light are reflected by human tissue, and the at least one photodetector may The reflected light is received and converted into a red light PPG signal and an infrared PPG signal, respectively.
- the red light PPG signal and the infrared PPG signal were used to calculate SpO2.
- a blood oxygen sensor includes 2 LEDs and 2 PDs, where one LED can emit red light, one LED can emit near-infrared light, one PD is used to detect red light, and one PD is used to detect near-infrared light.
- heart rate sensor 180N and the blood oxygen sensor 180O may share a light-emitting source and a photodetector.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 100 employs an eSIM, ie: 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 PPG manager and the heart rate sensor and the blood oxygen sensor of the electronic device may be located on one chip.
- the electronic device may be the first electronic device 11 in FIG. 1A above, including a first LED, a second LED, and a first PD. , a second PD, a processor and a memory (not shown in the figure), etc., wherein the first LED is used to emit red light according to the control signal sent by the received processor, and the red light emitted by the first LED is reflected by the first LED.
- the first PD converts the received red light into a red light PPG signal, which is the R path;
- the second LED is used to emit infrared light according to the control signal sent by the received processor, and the infrared light emitted by the second LED is used.
- the light is received by the second PD after reflection, and the second PD converts the received infrared light into an infrared light PPG signal, which is an IR path.
- the electronic device may also include a PD, which can convert the received red light into a red light PPG signal, and convert the received infrared light into an infrared PPG signal.
- a PD which can convert the received red light into a red light PPG signal, and convert the received infrared light into an infrared PPG signal.
- the first LED and the second LED Can not emit light at the same time, the first LED and PD form an R path, and the second LED and PD form an IR path.
- the electronic device may be the first electronic device 11 in FIG. 1A above, including a first LED, a first PD, a processor and Memory (not shown in the figure), etc.
- the first LED, the first PD can be used in a multiplexed manner (in different sampling stages) to monitor different parameters.
- the first LED can emit red light and/or infrared light based on the control signal, and the light emitted by the first LED is received by the first PD after reflection. It can convert the received red light into a red light PPG signal, and convert the received infrared light into an infrared PPG signal.
- the user's SpO2, heart rate and heart rate-related parameters, etc. are measured, and further, the user's sleep situation can be detected according to the measured SpO2, heart rate and heart rate-related parameters, etc.
- first LED, the second LED, the first PD, and the second PD in FIG. 2A and the first LED and the first PD in FIG. 2B are all disposed on the side of the electronic device that contacts human tissue.
- FIG. 2A and FIG. 2B may be a PPG controller, so as to implement the functions implemented by the PPG controller in the present application.
- the first electronic device alone may implement periodic measurement of blood oxygen.
- the first electronic device may also interact with the user through the user interface to trigger the first electronic device to periodically measure SpO2.
- the first electronic device may display a user interface 300a as shown in FIG. 3A, which may be a main interface, also known as a launcher, including an icon and/or logo of at least one application, eg, sleep settings , icons and/or logos to periodically measure blood oxygen, heart rate, training status, etc.
- a user interface 300a may be a main interface, also known as a launcher, including an icon and/or logo of at least one application, eg, sleep settings , icons and/or logos to periodically measure blood oxygen, heart rate, training status, etc.
- the first application is "periodic measurement of blood oxygen”
- the second application is "sleep setting" as an example for description.
- the first electronic device may display a user interface 300b as shown in FIG. 3B , which may include a first control 301 and a second control 304, in response to a user operation of an icon and/or a logo input for periodically measuring blood oxygen.
- the first electronic device receives a user operation input on the first control 301, in response to the user operation, the first electronic device can generate and execute a first instruction, where the first instruction is used to instruct to periodically measure blood oxygen. saturation.
- the first electronic device receives a user operation input for the second control 302
- the first electronic device can generate and execute a second instruction, where the second instruction is used to instruct to stop periodic blood measurement. oxygen saturation.
- the user interface 300 may further include a first input box 303 , and the first electronic device performs periodic measurement of blood oxygen saturation with the cycle/frequency in response to the cycle/frequency input by the user in the first input box 303 .
- the first electronic device performs periodic measurement of blood oxygen saturation with the cycle/frequency in response to the cycle/frequency input by the user in the first input box 303 .
- the first electronic device may display a user interface 300c as shown in FIG. 3C in response to a user operation for the "sleep setting" icon and/or logo input, the user interface 300c may include a third control 304, a fourth control 305, a third control Five controls 306, etc., wherein the third control 304 can be used to indicate that the mode is set to scientific sleep, the fourth control 305 can be used to indicate that the mode is set to normal sleep, and the fifth control 306 can be used to indicate that the mode is set to sleep apnea sleep mode.
- the first electronic device When the first electronic device receives a user operation input for the third control 304, in response to the user operation, the first electronic device can open the R path or the IR path, and detect the PPG signal based on the measurement of the R path or the IR path.
- the user's heart rate and/or heart rate-related parameters, and the user's sleep situation is evaluated through the detected heart rate and/or heart rate-related parameters, such as deep sleep period, deep sleep period, light sleep period, light sleep period, etc.
- the first electronic device When the first electronic device receives a user operation input on the fourth control 305, in response to the user operation, the first electronic device may not open the R path and neither open the IR path.
- the first electronic device When the first electronic device receives a user operation input for the fifth control 306, in response to the user operation, the first electronic device can turn on the R path and the IR path, and detect the PPG signal based on the measurement of the R path or the IR path.
- the user's heart rate and/or heart rate-related parameters, and the user's sleep situation is evaluated through the detected heart rate and/or heart rate-related parameters, such as deep sleep period, deep sleep period, light sleep period, light sleep period, etc., and based on
- the red PPG signal measured by the R channel and the infrared PPG signal measured by the IR channel are calculated to calculate SpO2, and to detect whether the user has sleep apnea through the calculated SpO2.
- the first electronic device when the first electronic device detects that SpO2 is less than a preset value (such as 90%, 70%), it indicates that the user has a risk of sleep apnea, and at this time, the first electronic device can display the display as shown in FIG. 3D .
- the user interface 300d, the 300d may include first information 307 and second information 308, the first information 307 is used to prompt the user to have a risk of sleep apnea, and the second information 308 is used to prompt the user to wear a sleep apnea support A wearable device for monitoring, or a sleep mode that prompts the user to turn on sleep apnea monitoring.
- the second electronic device and the first electronic device may cooperate to periodically measure blood oxygen.
- the second electronic device is used as a device for controlling the first electronic device
- the second electronic device can run an application program for controlling the first electronic device 11, and display a user interface 300e as shown in FIG. 3E, the user interface 300e is a control
- the user interface of the first electronic device (such as a watch) may include at least one display area for indicating the control of at least one function that can be implemented, such as the first display area 309, the second display area 310, the third display area 311, The fourth display area 312 .
- the second electronic device can enter a setting interface of the sleep mode, such as the user interface 300f shown in FIG. 3F, the user interface 300f can be used to set the operable At least one sleep mode, for example, three sleep modes such as scientific sleep, normal sleep, and sleep apnea.
- the user interface 300f may include at least one control corresponding to each sleep mode, such as a sixth control 313, a seventh control 314, an eighth control 315, and may also include a ninth control.
- the second electronic device selects the sleep mode corresponding to the sixth control 313 in response to the user operation input to the sixth control 313 , that is, selects scientific sleep; similarly, the second electronic device responds to the input to the seventh control 314 the user operation, select the sleep mode corresponding to the seventh control 314, that is, select normal sleep; the second electronic device responds to the user operation input for the eighth control 315, select the sleep mode corresponding to the eighth control 315, that is, select the sleep mode corresponding to the eighth control 315. Determine sleep apnea.
- the second electronic device sends the first electronic device instruction information for instructing to turn on the selected sleep mode. As shown in FIG. 3F, the instruction information for instructing to turn on scientific sleep is sent to the first electronic device. The information is sent to the first electronic device.
- the second electronic device may enter a setting interface for blood oxygen saturation, such as the user interface 300g shown in FIG. 3G, the user interface 300g may include a tenth control 317 and a second control Input box 318.
- the second electronic device generates and sends a first instruction to the first electronic device in response to a user operation input on the tenth control 317, where the first instruction is used to instruct to periodically measure the blood oxygen saturation.
- the second electronic device sends the input cycle/frequency to the first electronic device to instruct the first electronic device to perform a cycle of blood oxygen saturation at the cycle/frequency sex measurement.
- the second electronic device may enter a heart rate setting interface, so as to detect and analyze the heart rate through the first electronic device.
- a setting interface for exercise can be entered, so as to realize the setting interface for detecting the user's exercise condition, heart rate, exercise, etc. through the first electronic device, which can have various implementation forms, which are not described here. limited.
- the first electronic device can send the PPG signal to the second electronic device, and the second electronic device analyzes the PPG signal to obtain SpO2, Heart rate, heart rate-related parameters and other information, and further, sleep conditions can also be analyzed based on the obtained SpO2, heart rate, heart rate-related parameters and other information.
- the PPG signal can also be analyzed by the first electronic device to obtain information such as SpO2, heart rate, and heart rate-related parameters, and the analyzed SpO2, heart rate, and heart rate-related parameters are sent to the second electronic device.
- the second electronic device analyzes the sleep situation based on the obtained information such as SpO2, heart rate, and heart rate-related parameters.
- the first electronic device may send indication information to the second electronic device for indicating that the user has a risk of sleep apnea, and the second electronic device
- the device may display a user interface 300h as shown in FIG. 3H , and the user interface 300h may include the first information 319 and the second information 320.
- the first information and the second information please refer to the above shown in FIG. 3D
- the second electronic device may open a purchase webpage of the wearable device.
- the above-mentioned user operations may include, but are not limited to, clicks, double-clicks, long-press operations, short-press operations, and the like.
- the software system of the electronic device may adopt a layered architecture, such as an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- a layered architecture such as an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- FIG. 4 shows a software structural block diagram of a first electronic device exemplarily provided by an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the software system is divided into three layers, from top to bottom, they are: an application layer and a kernel layer.
- the hardware layer may include at least one LED and at least one PD, for example, the first LED and the first PD shown in FIG. 2A above, or the first LED, the second LED, the first PD and the second PD shown in FIG. 2B above PD.
- the hardware layer may also include a display and a blood oxygen sensor for acquiring red light PPG signals and near IR PPG signals.
- the kernel layer is the layer between the hardware layer and the software layer.
- the kernel layer can include a sensor driver and a PPG manager.
- the sensor driver is used to drive the LED of the hardware layer to emit light of a specific wavelength according to the received control signal; when the sensor driver detects the PPG signal, the corresponding hardware interrupt is sent to the kernel. layer.
- the kernel layer sends the detected PPG signal to the PPG manager in the kernel layer.
- the kernel layer may also include display drivers, camera drivers, audio drivers, and so on.
- the PPG manager is used to obtain the PPG signal and send the PPG signal to the application layer; it is also used to generate a control signal according to the instructions issued by the application framework layer, and send the control signal to the sensor driver, so that the sensor driver can control the The signal controls the LED to emit light.
- the application layer includes a series of application packages, such as the application "periodic measurement of blood oxygen” that can implement periodic blood oxygen measurement, the application “heart rate” that can implement heart rate measurement, and the application “sleep settings” that can implement sleep detection. It is not limited to the above-mentioned applications, but can also include some other applications, such as heart rate, exercise, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, SMS and other applications.
- the first application is "periodic measurement of blood oxygen”
- the second application is “sleep setting" as an example for description.
- the application “periodic measurement of blood oxygen” at the application layer may include a SpO2 measurement unit
- the application “heart rate” may include a heart rate measurement unit and a heart rate-related parameter measurement unit
- the application “sleep settings” may include a SpO2 measurement unit , heart rate measurement unit and heart rate related parameter measurement unit, etc.
- the SpO2 measurement unit is used to calculate SpO2 according to the red light PPG signal and the infrared PPG signal
- the heart rate measurement unit is used to calculate the heart rate according to the red light PPG signal or the infrared PPG signal and other PPG signals
- the SpO2 heart rate measurement unit is based on the red light PPG signal or infrared PPG signal.
- PPG signals such as PPG signals calculate heart rate related parameters.
- the application may send an instruction to the PPG manager, for example, the first application "periodically measure blood oxygen” sends a first instruction to the PPG manager for instructing to periodically measure SpO2; for another example, the second application “sleep setting” ” can send a second instruction to PPG, where the second instruction is used to indicate the sleep mode, and can also be used to indicate the PPG signal that needs to be acquired.
- the PPG manager After receiving the first instruction sent by the application, the PPG manager periodically measures SpO2 in response to the first instruction. In each blood oxygen measurement cycle, before the blood oxygen measurement is performed, the PPG determines whether dimming is required according to the user's sleep condition. When dimming is required, PPG implements dimming by sending a dimming command to the sensor driver, so that the sensor driver drives the LED and PD to perform dimming according to the dimming command. When dimming is not required, a control signal is sent to the sensor driver for instructing the opening of the R channel and the IR channel, so as to realize the collection of PPG data.
- One implementation for the PPG manager to determine whether dimming is required may be: in this blood oxygen measurement cycle, if it is detected that the user has changed from a non-sleep state to a sleep state, the dimming is performed; During the blood oxygen measurement time of the measurement cycle, if it is detected that the user is in a non-sleep state, the light will be dimmed; however, if it is detected that the user is in a sleep state during the blood oxygen measurement time of this blood oxygen measurement cycle, the current blood oxygen The measurement period does not require dimming, and the PPG data can be directly obtained during the blood oxygen measurement time.
- the second instruction may have different forms.
- the second instruction is generated by the application after a specified sleep mode selected by the user, and is used to instruct the acquisition of the PPG signal required for the specified sleep mode.
- the application sends the instruction S1 to the PPG manager to instruct the acquisition of a continuous red light PPG signal or an infrared PPG signal, and the application at the application layer can send to the PPG manager
- the instruction S1 correspondingly, the PPG manager sends a control signal to the sensor driver to instruct the continuous opening of the R or IR path according to the instruction S1; Control of duration, luminous wavelength, luminous power, etc.
- the sensor driver can receive the PPG signal detected by the PD, including red light PPG signal and infrared PPG signal, and send it to the PPG manager.
- the PPG manager can select the required PPG signal according to the control signal, so as to send the required PPG signal to the application of the application layer and the like.
- the application sends an instruction S2 to the PPG manager for instructing to obtain continuous red light PPG signals and infrared PPG signals, and the PPG manager sends the sensor to the sensor according to the instruction S2.
- the driver sends a control signal for instructing the continuous opening of the R and IR paths.
- the PPG manager After the PPG manager receives the instruction S1, if it receives the first instruction, it sends an instruction to the sensor driver for indicating the one channel that is not currently open; after the PPG manager receives the instruction S2, if it receives For the first instruction, there is no need to send a control signal to the sensor driver for instructing to continuously turn on the R path and the IR path.
- the PPG manager collects the PPG signal, it can obtain the red light PPG signal and the infrared PPG signal required for periodic blood oxygen measurement from the PPG signal based on the control signal, obtain the PPG signal indicated by the second instruction, and convert the periodic
- the red light PPG signal and the infrared PPG signal required for the blood oxygen measurement are sent to the first application, and the PPG signal corresponding to the second instruction is sent to the second application.
- the software system may further include an application architecture layer, which provides an application programming interface (API) and a programming framework for applications of the application layer.
- the application framework layer includes some pre-defined functions, for example, including the functions used to implement the functions of the above SpO2 measurement unit, heart rate measurement unit and heart rate related parameter measurement unit.
- the application of the application can call the application architecture layer.
- the function of the implements the measurement of SpO2, heart rate and heart rate related parameters.
- the SpO2 measurement unit receives the red light PPG signal and infrared PPG signal from the PPG manager, calculates SpO2 according to the received red light PPG signal and infrared PPG signal, and reports the calculated SpO2 to the application program in the application layer,
- the application “periodically measure blood oxygen", “sleep setting”, etc.
- the heart rate measurement unit receives the PPG signal from the PPG manager (can be red light PPG signal, infrared PPG signal or green light PPG signal), according to the received PPG signal The signal calculates the heart rate, and reports the calculated heart rate to the application in the application layer, such as the application "heart rate", "sleep setting", etc.
- the heart rate related parameter measurement unit receives the PPG signal (which can be red light) from the PPG manager PPG signal, infrared PPG signal or green light PPG signal), calculate the heart rate related parameters according to the received PPG signal, and report the calculated heart rate related parameters to the application in the application layer, such as
- an application can call an application interface formed by the application framework to obtain SpO2, heart rate, heart rate related parameters, and the like.
- the PPG manager in response to the first instruction, when the user transitions from a non-sleep state to a sleep state, sends a message to the The sensor driver sends a dimming command, so that the sensor driver performs dimming according to the dimming command; after the user enters the sleep state, the dimming is no longer performed; and if the user is in a non-sleep state, when the current time is the blood oxygen measurement time , and send a dimming command to the sensor driver, so that the sensor driver at the core layer performs dimming according to the dimming command.
- the PPG manager may determine the measurement mode of the PPG according to the detected state of the user (such as sleep state, motion state, etc.) and the setting information of the R channel and the IR channel, and perform dimming based on the determined mode , R road and IR road control, etc.
- the functional architecture of the first electronic device shown in FIG. 4 is only an implementation of the embodiments of the present application. In practical applications, the first electronic device may further include more or less software modules, which are not described here. limit.
- the electronic device may also display a corresponding user interface according to the operation of each software module.
- the user interface displayed by the first electronic device reference may be made to FIG. 3A to FIG. 3D , which will not be repeated here.
- FIG. 5 shows a schematic flowchart of a periodic blood oxygen measurement provided by an embodiment of the present application.
- the application interface involved in this method can refer to FIG. 3A-FIG. 3H.
- steps S501 to S511 in FIG. 5 reference may be made to the related description in FIG. 4 , and details are not repeated here.
- first application and the second application may also be two applications on the second electronic device.
- a schematic flowchart of a method for periodically measuring blood oxygen provided by an embodiment of the present application can be implemented by the above-mentioned first electronic device, or by the first electronic device and a second electronic device that is communicatively connected to it.
- the method may include, but is not limited to, some or all of the following steps.
- the first electronic device receives a first instruction, where the first instruction is used to instruct to periodically measure the blood oxygen saturation.
- the first electronic device may generate the first instruction in response to a user operation input by the user with respect to the first control in the user interface shown in FIG. 3B .
- the first electronic device can receive the first instruction sent by the second electronic device, and the second electronic device can be a device that establishes a communication connection with the first electronic device, such as a mobile phone, a tablet computer, etc., and the second electronic device
- the first instruction may be sent to the first electronic device in response to a user operation input by the user for instructing to periodically measure the blood oxygen saturation.
- the first electronic device may perform the following steps S602-S606 or perform the operations of S602-S606 in each blood oxygen measurement cycle.
- the following takes the first blood oxygen measurement cycle as an example for description.
- the periodic measurement of the blood oxygen saturation means that the blood oxygen saturation is measured once every interval of a measurement period T.
- the blood oxygen measurement cycle is a blood oxygen measurement process, including blood oxygen measurement time and non-blood oxygen measurement time, wherein the blood oxygen measurement time is the time period during which blood oxygen measurement is performed in the blood oxygen measurement cycle, and the non-blood oxygen measurement time Time is the time period in the blood oxygen measurement cycle excluding the blood oxygen measurement time.
- S602 During the first blood oxygen measurement cycle, the first electronic device determines whether the current time is the blood oxygen measurement time. If yes, execute S603, otherwise execute S602 repeatedly.
- the blood oxygen measurement time is the time determined by the periodic blood oxygen measurement for the blood oxygen measurement. For example, if the blood oxygen measurement period T is 10 minutes, the first measurement time of blood oxygen is 20:00, then the second time The time for the measurement was 20:10, and the time for the third measurement was 20:10.
- the time to start measuring blood oxygen is theoretically required, if the user is in an exercise state, the time when the user transitions to a stationary state is the actual time to start blood oxygen measurement, and the next theoretical need to start measuring.
- the blood oxygen time is: a time point obtained by adding the measurement period T to the last theoretically required time to start blood oxygen measurement or the last actual time to start blood oxygen measurement.
- the first electronic device may analyze the motion state of the user based on motion data acquired through an acceleration sensor, a gyroscope, and the like.
- the first instruction may carry the measurement period T of the blood oxygen to determine the blood oxygen measurement time based on the period.
- the first instruction may also not carry the measurement period T of blood oxygen, and the measurement period T may be a preset duration.
- the blood oxygen measurement time is not one time, but a plurality of periodic time points or time periods, the period of which is the measurement period T.
- S603 The first electronic device detects whether the user is in a sleep state at the current time. If yes, the user is in a sleep state, the first electronic device may perform S604; otherwise, if the user is in a non-sleep state, the first electronic device may perform S605.
- the detection of the sleep state may include but not limited to the following implementations:
- Embodiment 1 The first electronic device can detect the user's posture through a motion sensor. When the user's posture changes continuously, it is determined that the user is in a non-sleep state; on the contrary, when the user's posture is static or unchanged, it is determined that the user is in a non-sleep state. in sleep state.
- the first electronic device may collect sound information of the current environment through a microphone, and then extract breathing sounds in the sound information, and identify whether the user is in a sleep state according to the extracted breathing sounds.
- the first electronic device can control the first LED to emit green light to the user, the green light emitted by the first LED is reflected by the user and then received by the first light detector, and the first light detector converts the received green light is a green light PPG signal; further, the first electronic device may detect the user's heart rate and/or heart rate related parameters according to the green light PPG signal, so as to detect the user's sleep state through the user's heart rate and/or heart rate related parameters. It should be understood that the heart rate in the sleep state is lower than the heart rate in the non-sleep state for the same person.
- the first electronic device may also control the first LED to emit red light or infrared light to the user, and accordingly, detect the user's heart rate and/or heart rate related parameters through the red light PPG signal or the infrared light PPG signal.
- the first electronic device may also combine the above three embodiments to detect whether the user is in a sleep state, so as to obtain a more accurate detection result.
- the first electronic device can send the gesture detected by the motion sensor, the sound information collected by the microphone, the PPG signal collected by the first light detector, etc. to the second electronic device;
- the electronic device detects whether the user is in a sleep state, and sends the detection result to the first electronic device.
- the first electronic device determines whether the sleep state detected by the user in the previous blood oxygen measurement cycle of the first blood oxygen measurement cycle is a non-sleep state, if so, dimming needs to be performed, and the first electronic device can execute S605 ; otherwise, the first electronic device does not need to perform dimming, and the first electronic device may execute S606-S607.
- the sleep state detected in the previous blood oxygen measurement cycle of the first blood oxygen measurement cycle is a non-sleep state and the first blood oxygen measurement cycle detects that the user is in a sleep state, it means that the user transitions from the non-sleep state In the sleep state, dimming needs to be performed at this time, and the first electronic device may execute S605, and execute S606-S607 after the dimming is completed.
- the sleep state detected in the previous blood oxygen measurement cycle of the first blood oxygen measurement cycle is also the sleep state, it is determined that the transition from the non-sleep state to the sleep state has not occurred, and the first electronic device does not need to perform dimming. S606-S607 can be executed.
- S605 The first electronic device performs dimming.
- the purpose of dimming is to obtain a stable and effective PPG signal.
- the luminous power of the LED can be adjusted so that the electrical signal obtained by the light conversion detected by the PD is greater than the set specific PD target current to ensure the quality of the PPG signal.
- the actual adjustment process is to detect whether the output current of the PD reaches the target current by adjusting the LED drive current. If not, continue to increase the LED drive current. If the output current of the PD has reached the target current, the dimming ends. The whole dimming process is a negative feedback process.
- the luminous power of the LED of the R channel and the luminous power of the LED of the IR channel are adjusted to be the first power and the second power, respectively, and the first power is when the output current of the PD of the R channel is equal to or greater than the first target current.
- the emission power of the LED of the R path; the second power is the emission power of the LED of the IR path when the output current of the PD of the IR path is equal to or greater than the second target current.
- first target current and the second target current may be the same or different.
- the first target current when the user is in a sleep state and the first target current when the user is in a non-sleep state may be the same or different, and the first target current when the user is in a sleep state may be smaller than the first target current when the user is in a non-sleep state ;
- the second target current when the user is in a sleep state and the second target current when the user is in a non-sleep state may be the same or different, and the second target current when the user is in a sleep state may be smaller than that when the user is in a non-sleep state.
- the second target current may be the same or different.
- the first electronic device when the user is in a non-sleep state, when the current time is the blood oxygen measurement time, the first electronic device needs to perform dimming before acquiring the PPG signal to acquire optimal data.
- the first electronic device may acquire its motion data from the last dimming to the current time, and the first electronic device can obtain the motion data from the last dimming to the current time.
- the first electronic device may not perform dimming, and execute S605-S606; otherwise, the first electronic device executes S604, and performs dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device can open the R path and the IR path to collect the red light PPG signal and the infrared PPG signal. Specifically include
- the first electronic device controls the LEDs of the R road to emit red light with the first power, and the LEDs of the IR road to emit infrared light with the second power; further, the red light PPG signal and the infrared PPG signal are collected by the PD of the R road and the PD of the IR road respectively. Signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- the first electronic device can separately collect a red light PPG signal with a duration of t1 and an infrared light PPG signal with a duration of t1, where the duration t1 is greater than the heart rate cycle, optionally, the duration t1 is greater than a plurality of heart rate cycles, so as to improve the SpO2 Accuracy.
- the first electronic device may turn off the LED of the R channel, the LED of the IR channel, the PD of the R channel, and the PD of the IR channel during the non-blood oxygen measurement time, so as to further reduce the number of the first electronic device. energy consumption.
- the method can be implemented by the above-mentioned first electronic device alone, or can be implemented by the first electronic device and a device communicatively connected to it.
- the method may include, but is not limited to, some or all of the following steps.
- the first electronic device receives a first instruction, where the first instruction is used to instruct to periodically measure the blood oxygen saturation.
- the first electronic device may perform the following steps S702-S705 or perform the operations of S702-S706 in each blood oxygen measurement cycle.
- S702 The first electronic device detects whether the user enters a sleep state. If yes, the first electronic device executes S703-S704; otherwise, the first electronic device executes S704 and then executes S703.
- the detection by the first electronic device whether the user enters the sleep state means that the user changes from the non-sleep state to the sleep state.
- detecting whether the user is in a sleep state reference may be made to the relevant description in step S603 in the embodiment shown in FIG. 6 , which will not be repeated here.
- S703 The first electronic device performs dimming.
- S704 The first electronic device determines whether the current time is the blood oxygen measurement time.
- the first electronic device may execute S705-S706.
- the detection result of S702 is that the user is in a non-sleep state
- the first electronic device determines that the current time is the blood oxygen measurement time
- the first electronic device executes S703 to perform dimming, and after the dimming is completed, S705- S706.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- the LED and PD of the first electronic device can be used as both a blood oxygen sensor and a heart rate sensor, and can also be used by multiple application call.
- FIG. 7B which is a schematic flowchart of another method for periodically measuring blood oxygen saturation provided by an embodiment of the present application, the first application and the second application may respectively send the first application to the PPG controller of the first electronic device.
- the instruction and the second instruction can receive a second instruction, the second instruction is used to instruct the continuous acquisition of the PPG signal, wherein the PPG signal indicated by the second instruction may include red light PPG signal, infrared PPG signal, red light PPG signal and infrared PPG signal Four cases such as PPG signal, other signal, etc.
- the method shown in FIG. 6 and FIG. 7A may be executed, and in response to the second instruction, the optical path corresponding to the second instruction may also be turned on.
- FIG. 7B is illustrated by performing the method shown in FIG. 7A as an example.
- the R or IR path of the first electronic device may be set or may be required to continuously open the R path, continuously open the IR path, and continuously open the R path and the IR path.
- the four cases such as the R road and the IR road, are not continuously turned on. The four cases are described separately:
- the first electronic device When the first electronic device is set to continuously turn on the R channel, for example, when the first electronic device is in the "scientific sleep” sleep mode, the first electronic device needs to continuously collect the red light PPG signal when the user is in the sleep state, so as to Detecting the sleep state of the user, that is, after the first electronic device detects that the user enters the sleep state, the R channel needs to be continuously turned on. At this time, after executing S606 or S705, that is, after collecting the PPG signal for periodically measuring SpO2, the first electronic device enters the non-blood oxygen measurement time. At this time, the first electronic device can keep the R circuit open and close the IR circuit.
- the first electronic device can open the unopened one, that is, the IR circuit, and after acquiring the infrared PPG signal, close the IR circuit to save the energy consumption of the first electronic device.
- the first electronic device When the first electronic device is set to continuously turn on the IR circuit, for example, when the first electronic device is in the sleep mode of "scientific sleep", the first electronic device needs to continuously collect infrared PPG signals when the user is in the sleep state, and pass the infrared PPG signal.
- the PPG signal detects the sleep state of the user, that is, the first electronic device needs to continuously open the IR circuit after detecting that the user enters the sleep state.
- S606 or S705 that is, after collecting the PPG signal for periodically measuring SpO2
- the first electronic device enters the non-blood oxygen measurement time. At this time, the first electronic device can keep the IR circuit open and close the R circuit.
- the first electronic device can open the unopened channel, that is, the R channel, and after acquiring the red light PPG signal, close the R channel to save the energy consumption of the first electronic device.
- the first electronic device When the first electronic device is set to continuously turn on the R channel and the IR channel, for example, when the first electronic device is in the sleep mode of "sleep apnea", the first electronic device needs to continuously collect red light when the user is in the sleep state
- the PPG signal and the infrared PPG signal are used to detect the user's sleep condition through the red light PPG signal and the infrared PPG signal. That is, the first electronic device needs to continuously open the R path and the IR path after detecting that the user enters the sleep state.
- the first electronic device After performing S606 or S705, that is, after collecting the PPG signal for periodically measuring SpO2, the first electronic device enters the non-blood oxygen measurement time, and at this time, the first electronic device can keep both the R path and the IR path turned on, That is, keep controlling the LED of the R channel to emit red light with the first power and keep the PD of the R channel to collect the red light PPG signal, keep controlling the LED of the IR channel to emit red light with the second power and keep the PD of the IR channel to collect the infrared light PPG signal.
- the first electronic device can directly acquire the red light PPG signal and the infrared PPG signal.
- the blood oxygen measurement time refers to the time determined by the periodic blood oxygen measurement.
- the first electronic device when the first electronic device is in the sleep mode of “sleep apnea”, the first electronic device needs to monitor SpO2 in real time, so it needs to monitor SpO2 in real time.
- the R path and the IR path are continuously turned on to obtain the red light PPG signal and the infrared PPG signal, but the time period for collecting the PPG signal at this time is not the blood oxygen measurement time referred to in this application.
- the non-blood oxygen measurement time refers to a time other than the above-described blood oxygen measurement time.
- the first electronic device When the first electronic device is set to not turn on the R channel and the IR channel continuously, for example, when the first electronic device is in the "normal sleep" sleep mode, when the user is in a non-sleep state, or when the current time is daytime, The first electronic device does not need to continuously collect the red light PPG signal and the infrared PPG signal. At this time, after performing S606 or S705, that is, after collecting the PPG signal for periodically measuring SpO2, the first electronic device enters the non-blood oxygen measurement time.
- the R path and the IR path can be turned off, that is, the LED of the R path, the LED of the IR path, the PD of the R path, and the PD of the IR path can be turned off, so as to reduce the energy consumption of the first electronic device.
- the first electronic device needs to turn on the R path and the IR path again.
- FIG. 8 a schematic flowchart of another method for periodically measuring blood oxygen provided by an embodiment of the present application is provided.
- the method may include but not limited to some or all of the following steps.
- the first electronic device receives a first instruction, where the first instruction is used to instruct to periodically measure the blood oxygen saturation.
- the first electronic device may perform the following step S802 in each blood oxygen measurement cycle, and a method flow corresponding to one of the modes 1-5.
- the first electronic device identifies the measurement mode according to the user's state and the settings of the R channel and the IR channel.
- the first electronic device can identify the state of the user, which includes a sleep state and a non-sleep state.
- the specific implementation of identifying the sleep state of the user may refer to step S603 in the embodiment shown in FIG. 6 , which will not be repeated here.
- the setting information of the PPG may include four types: the R and IR paths are not continuously turned on, the R path is turned on continuously, the IR path is turned on continuously, and the R and IR paths are turned on continuously.
- the R and IR paths are not continuously turned on, the R path is turned on continuously, the IR path is turned on continuously, and the R and IR paths are turned on continuously.
- Table 1 four measurement modes as shown in Table 1 can be obtained:
- the first electronic device may execute different method flows for different measurement modes. They are introduced separately below.
- S803a Determine whether the current time is the blood oxygen measurement time, if so, execute S803b, otherwise, execute S802.
- S803b Determine whether the user is in a sleep state for the first time, if so, execute S803c, and if not, execute S803d-803g. Wherein, in the previous blood oxygen measurement cycle of the current blood oxygen measurement cycle, the state of the user includes a non-sleep state, and it is determined that the user is in the sleep state for the first time.
- S803c The first electronic device turns on the R path and the IR path to perform dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- S803f The first electronic device closes the R path and the IR path.
- the first electronic device may also execute S803b first, execute S803c when the user is in the sleep state for the first time, execute S803a when the user is not in the sleep state for the first time, and the current time is the blood oxygen measurement time , execute S803d-803f, and when the current time is the non-blood oxygen measurement time, execute S802.
- S804a Determine whether the current time is the blood oxygen measurement time, and if so, execute S804b, otherwise, execute S802.
- S804b Determine whether the user is in a sleep state for the first time, if so, execute S804c, and if not, execute S804d-804f.
- S804c The first electronic device turns on the IR circuit to perform dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- S804f The first electronic device closes the IR circuit.
- the first electronic device may also execute S804b first, execute S804c when the user is in the sleep state for the first time, execute S804a when the user is not in the sleep state for the first time, and the current time is the blood oxygen measurement time , execute S804d-804f, and when the current time is the non-blood oxygen measurement time, execute S802.
- S805a Determine whether the current time is the blood oxygen measurement time, if so, execute S805b, otherwise, execute S802.
- S805b Determine whether the user is in a sleep state for the first time, if so, execute S805c, and if not, execute S805d-805f.
- S805c The first electronic device turns on the R path and performs dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- the first electronic device may also execute S805b first, execute S805c when the user is in the sleep state for the first time, execute S805a when the user is not in the sleep state for the first time, and determine whether the blood oxygen measurement is performed at the current time. When it is time, execute S805d-805ef, and when whether the current time is the non-blood oxygen measurement time, execute S802.
- S806a Determine whether the current time is the blood oxygen measurement time, and if so, execute S806b, otherwise, execute S802.
- S806b Determine whether the user is in a sleep state for the first time, and if so, execute S806c, and if not, execute S805d-805f.
- S806c The first electronic device performs dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- the first electronic device may also execute S806b first, execute S806c when the user is in the sleep state for the first time, execute S806a when the user is not in the sleep state for the first time, and determine whether the blood oxygen measurement is performed at the current time.
- execute S806d-806e executes S802.
- S807a Determine whether the current time is the blood oxygen measurement time, and if so, execute S805b-S805f, otherwise, execute S802.
- S807b The first electronic device turns on the R path and the IR path to perform dimming.
- the first electronic device collects the red light PPG signal and the infrared PPG signal.
- the first electronic device calculates SpO2 according to the red light PPG signal and the infrared light PPG signal.
- S807e The first electronic device closes the R path and the IR path.
- the first electronic device may acquire its motion data from the last dimming to the current time, and the motion amplitude of the first electronic device from the last dimming to the current time is equal to When the value is less than the preset value, the first electronic device may not perform dimming, and execute S805c-S805e.
- the first electronic device can also send the collected red light PPG signal and infrared PPG signal to the second electronic device
- the second electronic device can send the collected red light PPG signal and infrared PPG signal to the second electronic device according to the red light PPG signal and the infrared PPG signal.
- SpO2 was calculated from the infrared light PPG signal.
- the period of blood oxygen measurement may be fixed or dynamically set.
- the period when the user is in a sleep state may be greater than the period when the user is in a non-sleep state
- the period when the user is in a stationary state may be greater than the period when the user is in an active state.
- the sampling frequency of the PPG signal may be different for different users' sleep states, motion states or measurement modes.
- the sampling frequency of the photodetector of the R channel when the user is in the sleep state is lower than the sampling frequency of the photodetector of the R channel when the user is in the non-sleep state; similarly, the sampling frequency of the photodetector of the IR channel when the user is in the sleep state It can be smaller than the sampling frequency of the photodetector of the IR circuit when the user is in a non-sleep state.
- the sampling frequency when the user is in a stationary state may be greater than the sampling frequency when the user is in an active state.
- the sampling frequency when the test mode is Mode 1, Mode 2, Mode 3, and Mode 4 is greater than the sampling frequency when the test mode is Mode 5.
- the method may further include: when the SpO2 calculated by the first electronic device or the second electronic device is less than the first threshold, outputting first information, the first information using The prompt information to prompt the user that there is a risk of sleep apnea; or the SpO2 calculated by the electronic device within the first time period (such as one or more days, etc.) is less than the second threshold or the probability of being less than the second threshold is greater than the third threshold.
- the second information output, the second information outputs prompt information for prompting the user that there is a risk of sleep apnea and prompting the user to seek medical treatment.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Surgery (AREA)
- Public Health (AREA)
- Pathology (AREA)
- Veterinary Medicine (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Cardiology (AREA)
- Physiology (AREA)
- Optics & Photonics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Anesthesiology (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Pulmonology (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
一种周期性测量血氧饱和度的方法,应用于电子设备,电子设备包括红光R路和红外光IR路,R路和IR路均包括发光源和光电探测器,方法包括:电子设备接收用于指示进行周期性测量血氧饱和度的第一指令,响应于第一指令,在第一血氧测量周期内,若用户由非睡眠状态转变为睡眠状态的情况下,进行调光,调光用于确定R路的发光源的发光功率和IR路的发光源的发光功率分别为第一功率和第二功率;在第一血氧测量周期的血氧测量时间或下一个血氧测量周期的血氧测量时间,若用户处于睡眠状态,则电子设备控制R路的发光源以第一功率发射红光,IR路的发光源以第二功率发射红外光,采集R路的红光PPG信号和IR路的红外PPG信号,以计算SpO2。周期性测量血氧饱和度的方法,在用户处于睡眠状态时,仅进行一次调光,在睡眠过程中都不进行调光,可减少电子设备的功耗。
Description
本申请要求于2020年10月21日提交国家知识产权局、申请号为202011133857.2、申请名称为“周期性测量血氧的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及计算机技术领域,尤其涉及一种周期性测量血氧的方法及电子设备。
血氧饱和度(blood oxygen saturation,SpO2)是指血液中被氧结合的氧合血红蛋白(HbO2)的容量占全部可结合的血红蛋白容量的百分比,即血液中血氧的浓度,也是血氧含量和血氧容量的百分比,它能体现血红蛋白与氧气结合的能力,是呼吸循环的重要生理参数。
一般人的SpO2正常应不低于94%,在94%以下为供氧不足,即缺氧。缺氧是机体氧供与氧耗之间出现的不平衡,组织细胞代谢处于亏氧状态。机体缺氧有很多危害,对中枢神经系统、肝、肾等功能均会造成很大的影响。短时间低血氧会导致注意力不集中、记忆力减退、头晕目眩、焦虑等症状;严重或长期低血氧,会导致心肌衰竭、血压下降、血循环衰竭,甚至会造成脑组织的变性和坏死。因此,进行周期血氧测量对于用户了解自身的血氧情况十分重要,特别地,夜间血氧可以使用户了解自身睡眠呼吸问题,可以及时发现并解决问题。
然而,每次测量血氧之前都需要进行调光,增加电子设备的功耗。
发明内容
本申请实施例提供了一种周期性测量血氧的方法及电子设备,可以在用户处于睡眠状态时,仅进行一次调光,在睡眠过程中都不进行调光,以减少电子设备的功耗。
第一方面,本申请实施例提供了一种周期性测量血氧的方法,应用于电子设备,所述电子设备包括红光R路和红外光IR路,所述R路和所述IR路均包括发光源和光电探测器,所述R路的发光源用于向用户发射红光,所述R路的光电探测器用于将经过所述用户反射的红光转变为红光光电容积脉搏波PPG信号,所述IR路的发光源用于向所述用户发射红外光,所述IR路的光电探测器用于将经过所述用户反射的红外光转变为红外光电容积脉搏波PPG信号;
所述方法包括:
所述电子设备接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度;
所述电子设备响应于所述第一指令,在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,所述调光用于确定所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率;
在第二血氧测量周期内的血氧测量时间,若所述用户处于睡眠状态,所述电子设备控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期或所述第二周期为 所述第一血氧测量周期的下一个血氧测量周期;
通过所述R路的光电探测器和所述IR路的光电探测器分别采集红光PPG信号和红外PPG信号,所述红光PPG信号和所述红外PPG信号用于计算血氧饱和度。
上述方法在用户处于睡眠状态时,仅进行一次调光,在睡眠过程中都不进行调光,以减少电子设备的功耗。
在一种可能的实现中,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期,所述在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,包括:
在当前时间为所述血氧测量时间时,所述电子设备检测所述用户的当前睡眠状态;
在所述当前睡眠状态为睡眠状态且所述第一血氧测量周期的上一个血氧测量周期时所述用户处于非睡眠状态的情况下,所述电子设备进行调光。
在一种可能的实现中,所述方法还包括:
在非血氧测量时间,关闭所述R路的发光源、所述IR路的发光源、所述R路的光电探测器和所述IR路的光电探测器,所述非血氧测量时间为所述血氧测量周期内所述血氧测量时间之外的时间段,以进一步减少电子设备的能耗。
在一种可能的实现中,所述控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光之前,所述方法还包括:
所述电子设备接收第二指令,所述第二指令用于指示连续获取PPG信号。
在一种可能的实现中,所述电子设备还包括PPG管理器;所述电子设备的PPG管理器用于执行如下步骤:
根据所述第一指令和所述第二指令生成控制信号,所述第一指令来自第一应用,所述第二指令来自第二应用,所述控制信号用于驱动所述R路的发光源以所述第一功率发射红光和所述IR路的发光源以所述第二功率发射红外光;
向所述第一应用发送所述红光PPG信号和所述红外PPG信号,向所述第二应用发送所述第二指令指示获取的PPG信号。
上述方法,可以实现电子设备的R路和IR路被多个应用同时调用,以同时测量血氧饱和度、心率等。
在一种可能的实现中,在所述第二指令指示获取的PPG信号为红光PPG信号时,所述方法还包括:
在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光和保持通过所述R路的光电探测器采集红光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;
在所述非血氧测量时间,关闭所述IR路的发光源和所述IR路的光电探测器。
在一种可能的实现中,在所述第二指令指示获取的PPG信号为红外PPG信号时,所述方法还包括:
在非血氧测量时间,保持控制所述IR路的发光源以所述第二功率发射红光和保持通过所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;
在所述非血氧测量时间,关闭所述R路的发光源和所述R路的光电探测器。
在一种可能的实现中,在所述第二指令指示获取的PPG信号为红光PPG信号和红外PPG信号时,所述方法还包括:
在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光,保持所述IR路的发光源以所述第二功率发射红外光、保持通过所述R路的光电探测器采集红光PPG信号和保持所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段。
在一种可能的实现中,所述方法还包括:
在血氧测量时间用户处于非睡眠状态时,所述电子设备,进行调光,所述调光用于确定节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率。
在一种可能的实现中,所述在血氧测量时间用户处于非睡眠状态时,所述电子设备进行调光,具体包括:
在血氧测量时间用户处于非睡眠状态时,所述电子设备获取其从上一次调光时至当前时间内的运动数据;
在根据所述运动数据识别到所述从上一次调光时至当前时间内所述用户的运动幅度均小于预设值时,所述电子设备调节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为所述第一功率和所述第二功率。
在一种可能的实现中,所述第一功率为使得所述R路的光电探测器的输出电流等于或大于第一目标电流时所述R路的发光源的发射功率;所述第二功率为使得所述IR路的光电探测器的输出电流等于或大于第二目标电流时所述IR路的发光源的发射功率。
在一种可能的实现中,所述用户处于睡眠状态下所述R路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述R路的光电探测器的采样频率;所述用户处于睡眠状态下所述IR路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述IR路的光电探测器的采样频率。
在一种可能的实现中,所述R路的发光源与所述IR路的发光源为同一个发光源,所述R路的光电探测器与所述IR路的光电探测器为同一个光电探测器。
第二方面,本申请实施例还提供了一种电子设备,所述电子设备包括光电容积脉搏波PPG控制器、存储器、红光R路、红外光IR路,所述R路和所述IR路均包括发光源和光电探测器,所述R路的发光源用于向用户发射红光,所述R路的光电探测器用于将经过所述用户反射的红光转变为红光光电容积脉搏波PPG信号,所述IR路的发光源用于向所述用户发射红外光,所述IR路的光电探测器用于将经过所述用户反射的红外光转变为红外光电容积脉搏波PPG信号;所述PPG控制器运行所述存储器存储的计算机指令,用于实现如第一方面或第一方面任意一种可能的实现中电子设备所实现的方法。
第三方面,本申请实施例还提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备实现如第一方面或第一方面任意一种可能的实现中所述的方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备实现如第一方面或第一方面任意一种可能的实现中所述的方法。
图1A是本申请实施例提供的一种控制系统的架构示意图;
图1B是本申请实施例提供的一种电子设备的结构示意图;
图2A是本申请实施例提供的另一种电子设备的结构示意图;
图2B是本申请实施例提供的又一种电子设备的结构示意图;
图3A-图3H是本申请实施例提供的一些用户界面的示意说明图;
图4是本申请实施例提供的一种电子设备的软件架构的示意说明图;
图5是本申请实施例提供的一种周期性测量血氧的方法的流程示意图;
图6是本申请实施例提供的一种周期性测量血氧的方法的流程示意图;
图7A是本申请实施例提供的另一种周期性测量血氧的方法的流程示意图;
图7B是本申请实施例提供的另一种周期性测量血氧的方法的流程示意图;
图8是本申请实施例提供的又一种周期性测量血氧的方法的流程示意图。
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请实施例的限制。如在本申请实施例的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请实施例中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
下面介绍本申请实施例涉及的概念。
(1)光电容积脉搏波(photoplethysmography,PPG)
PPG是通过光电容积脉搏波描记法得到的信号,光电容积脉搏波描记法是基于动脉血液对光的吸收量随动脉波动而变化的原理检测SpO2的一种无创检测方法。具体来说,氧合血红蛋白HbO2和血红蛋白Hb对波长600~1000nm的光吸收特性不同,在波长600~800nm之间Hb的吸收系数更高,在波长800~1000之间HbO2的吸收系数更高。因此,利用红光(600~800nm)和红外光(800~1000nm)的光分别检测HbO2和Hb的PPG信号,然后通过程序处理算出相应的比值,这样就得到了SpO2。
对于使用穿戴设备进行的血氧测量,是基于腕部红光PPG信号的灌注指数及红外PPG信号的灌注指数的比值,计算得到血氧值,红光PPG信号的灌注指数是采集到的红光的交流信号与直流信号的比值,同理,红外PPG信号的灌注指数是采集到的红外光的交流信号与直流信号的比值。
(2)红光(red,R)路和红外光(infrared,IR)路
本申请中的电子设备可以包括至少一个发光源和至少一个光电探测器,可以用于测量SpO2、心率和心率相关参数等。其中,在进行SpO2测量时,该至少一个发光源用于发射红光和红外光,发光源发射的光经过反射被光电探测器接收,光电探测器用于将接收到的红光转变为红光PPG信号,将接收到的红外光转变为红外PPG信号。其中,发光源可以是发光二极管(Light emitting diode,LED),光电探测器可以是光电二极管(photodiode,PD),本申请实施例以LED和PD为例来说明。
应理解,一个LED和一个PD组成一个光路,其中,发射的红光的LED和接收该红光的PD组成R路,发射的红外光的LED和接收该红外光的PD组成IR路。应理解,发射的 红光的LED和发射的红外光的LED可以是同一个LED,其可以通过分时复用来实现,同理,接收该红光的PD和接收该红外光的PD可以是同一个PD。
应理解,当电子设备开启R路时,即电子设备的R路对应的LED和PD开启,R路的LED发射红光,R路的PD接收红光产生红光PPG信号;当电子设备开启IR路时,即电子设备的IR路对应的LED和PD开启,IR路的LED发射红外光,IR路的PD接收红外光产生红外PPG信号。
还应理解,关闭R路是指,R路的LED不再发射红光,R路的PD也不再产生红光PPG信号;关闭IR路是指,IR路的LED不再发射红外光,IR路的PD也不再产生红外光PPG信号。
下面首先介绍本申请实施例提供的一种控制系统,如图1A所示,该系统可以包括第一电子设备11和第二电子设备12,其中,第一电子设备11可以是智能手表、智能手环等可实现血氧测量的可穿戴设备,第二电子设备12可以是手机、平板电脑、云端等设备。
第一电子设备11可以包括至少一个发光源和至少一个光电探测器,可以实现PPG信号的采集,PPG信号可以包括上述红光PPG信号、红外PPG信号等,通过红光PPG信号和红外PPG信号可以计算得到SpO2。通过PPG信号还可以计算心率和心率相关参数。
第一电子设备11可以响应于第一指令,周期性测量血氧。其中,第一指令可以是电子设备在接收输入的用户操作后生成的用于指示电子设备11周期性测量血氧的指令;也可以接收第二电子设备11发送的用于指示电子设备11周期性测量血氧的指令。
第二电子设备12可以与第一电子设备11进行通信连接,向第一电子设备111发送指令,以实现对第一电子设备11的控制。例如,第二电子设备12向第一电子设备11发送第一指令,以使第一电子设备11响应于第一指令,周期性测量SpO2,以及将测量得到的SpO2发送至第二电子设备12。又例如,第二电子设备12向第一电子设备11发送用于指示测量心率的指令,以使第一电子设备11在接收到该指令后,进行心率测量,并将测量得到的心率发送至第二电子设备12。
下面首先介绍本申请实施例提供的示例性电子设备。该电子设备可以是智能手表、智能手环等可测量SpO2的电子设备。如图1B所示,图1B是本申请实施例提供的一种电子设备的结构示意图,该电子设备100可以是上述图1A中的第一电子设备11,也可以是图1A中第二电子设备12,可以包括:电子设备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,心率传感器180N,血氧传感器180O等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组 合实现。
需要说明的是,在电子设备100为图1A中第二电子设备12时,该第二电子设备12可以不包括心率传感器180N,血氧传感器180O等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在本申请中,一个或多个处理器可以包括PPG控制器,可以实现本申请中PPG控制器所实现的功能。
在一些实施例中,处理器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)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向 无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解 调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图片或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块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转为电磁波辐射出去。
在一些实施例中,电子设备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)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏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的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现采集功能,以实现本申请实施例中HAL层的图像采集模块。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图片或视频。ISP还可以对图片的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图片或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体 (complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图片或视频信号。ISP将数字图片或视频信号输出到DSP加工处理。DSP将数字图片或视频信号转换成标准的RGB,YUV等格式的图片或视频信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图片或视频信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图片或视频播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
方位传感器180D可以是指南针和/或磁力计,用于测量电子设备100与东南西北四个方向上的夹角,以定位电子设备100。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子 设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。在又一些实施例中,电子设备100可以是智能手表或智能手环,温度传感器180J可以设置于电子设备100接触皮肤的一面,以测量用户的皮肤的温度。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
心率传感器180N用于检测用户的心率。在一些实施例中,心率传感器可以采用光体积扫描法的原理来测量心率和心率相关参数。其测量原理为:人体的皮肤、骨骼、肉、脂肪等组织对光的反射是固定的;而毛细血管、动脉、静脉等由于随着心脏的跳动脉搏容积规律的变化,因此对光的反射是波动值,这个波动的频率即为心率。可选地,该心率传感器可以包括可发射发光源和光电探测器,心率传感器通过光电探测器检测发光源发射的光的反射量得到PPG信号,通过该PPG信号来检测心率相关参数。应理解,检测心率和心率相关参数采用的光可以是红光、红外光、绿光等。
血氧传感器180O可以包括至少一个发光源和至少一个光电探测器,其中,该至少一个发光源可以发射红光和红外光,发射的红光和红外光经人体组织反射,至少一个光电探测器可以接收该反射的光并将其分别转变为红光PPG信号及红外PPG信号。红光PPG信号及红外PPG信号用于计算SpO2。例如,血氧传感器包括2个LED和2个PD,其中,一个LED可以发射红光,一个LED可以发射近红外光,一个PD用于检测红光,一个PD用于检测近红外光。
应理解,心率传感器180N和血氧传感器180O可以共用发光源和光电探测器。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
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分离。
在另一种实现中,电子设备的PPG管理器和心率传感器、血氧传感器可以位于用一个芯片上。
如图2A所示,为本申请实施例提供的另一种电子设备的结构示意图,该电子设备可以是上述图1A中的第一电子设备11,包括第一LED、第二LED、第一PD、第二PD、处理器和存储器(图中未示出)等,其中,第一LED用于根据接收到的处理器发送的控制信号发射红光,第一LED发射的红光经过反射被第一PD接收,第一PD将接收到的红光转变为红光PPG信号,即为R路;第二LED用于根据接收到的处理器发送的控制信号发射红外光,第二LED发射的红外光经过反射被第二PD接收,第二PD器将接收到的红外光转变为红外光PPG信号,即为IR路。
应理解,电子设备也可以包括一个PD,该PD可以将接收到的红光转变为红光PPG信号,将接收到的红光外转变为红外PPG信号,此时,第一LED和第二LED可以不同时发光,第一LED和PD组成R路,第二LED和PD组成IR路。
如图2B所示,为本申请实施例提供的另一种电子设备的结构示意图,该电子设备可以是上述图1A中的第一电子设备11,包括第一LED、第一PD、处理器和存储器(图中未示出)等,第一LED、第一PD可以以多路复用的方式(在不同的采样阶段)使用,以监控不同的参数。具体的,该第一LED能够在接收到处理器发送的控制信号后,可以基于控制信号发射红光和/或红外光,第一LED发射的光经过反射被第一PD接收,该第一PD能够将接收到的红光转变为红光PPG信号,将接收到的红外光转变为红外PPG信号。
进一步地,基于上述红光PPG信号、红外PPG信号等测量用户的SpO2、心率和心率相关参数等,进而,还可以根据测量得到的SpO2、心率和心率相关参数等检测用户的睡眠情况。
应理解,上述图2A中的第一LED、第二LED、第一PD、第二PD和图2B中的第一LED、第一PD均设置于电子设备接触人体组织的一侧。
还应理解,上述图2A和图2B中的处理器可以为PPG控制器,以实现本申请中PPG控制器所实现的功能。
下面介绍本申请实施例涉及的用户界面。
在一些实施例中,第一电子设备单独可以实现周期性测量血氧。第一电子设备也可以通过用户界面与用户进行交互,以触发第一电子设备周期性测量SpO2。
第一电子设备可以显示如图3A所示的用户界面300a,该用户界面300a可以是主界面,也称为发射台(launcher),包括至少一个应用程序的图标和/或标识,例如,睡眠设置、周期性测量血氧、心率、训练状态等的图标和/或标识。本申请实施例中,以第一应用为“周期性测量血氧”,第二应用为“睡眠设置”为例来说明。
第一电子设备响应于针对周期性测量血氧的图标和/或标识输入的用户操作可以显示如图3B所示的用户界面300b,该用户界面300b可以包括第一控件301和第二控件304。第一 电子设备在接收到针对该第一控件301输入的用户操作时,响应于该用户操作,第一电子设备可以生成并执行第一指令,该第一指令用于指示进行周期性测量血氧饱和度。第一电子设备在接收到针对该第二控件302输入的用户操作时,响应于该用户操作,第一电子设备可以生成并执行第二指令,该第二指令用于指示进行停止周期性测量血氧饱和度。可选地,用户界面300还可以包括第一输入框303,第一电子设备响应于用户在第一输入框303输入的周期/频率,以该周期/频率进行血氧饱和度的周期性测量。关于第一电子设备进行周期性测量血氧饱和度的方法可以参见下述方法实施例中相关描述,这里不再赘述。
第一电子设备响应于针对“睡眠设置”的图标和/或标识输入的用户操作可以显示如图3C所示的用户界面300c,该用户界面300c可以包括第三控件304、第四控件305、第五控件306等,其中,第三控件304可以用于指示设置为科学睡眠的模式,第四控件305可以用于指示设置为普通睡眠的模式,第五控件306可以用于指示设置为睡眠呼吸暂停的睡眠模式。
第一电子设备在接收到针对该第三控件304输入的用户操作时,响应于该用户操作,第一电子设备可以开启R路或者IR路,并基于R路或者IR路测量得到的PPG信号检测用户的心率和/或心率相关参数,通过检测到的心率和/或心率相关参数来评估用户的睡眠情况,如深睡眠时间段、深睡眠时长、浅睡眠时长、浅睡眠时间段等。
第一电子设备在接收到针对该第四控件305输入的用户操作时,响应于该用户操作,第一电子设备可以不开启R路,也不开启IR路。
第一电子设备在接收到针对该第五控件306输入的用户操作时,响应于该用户操作,第一电子设备可以开启R路和IR路,并基于R路或者IR路测量得到的PPG信号检测用户的心率和/或心率相关参数,通过检测到的心率和/或心率相关参数来评估用户的睡眠情况,如深睡眠时间段、深睡眠时长、浅睡眠时长、浅睡眠时间段等,以及基于R路测量得到的红光PPG信号和IR路测量得到的红外PPG信号,计算SpO2,通过计算得到的SpO2检测用户是否发生睡眠呼吸暂停。
可选地,在第一电子设备检测到SpO2小于预设值(如90%、70%)时,则说明用户具有睡眠呼吸暂停的风险,此时,第一电子设备可以显示如图3D所示的用户界面300d,该300d可以包括第一信息307和第二信息308,该第一信息307用于提示用户具有睡眠呼吸暂停的风险,该第二信息308用于提示用户佩戴支持睡眠呼吸暂停的监测的可穿戴设备,或用于提示用户开启睡眠呼吸暂停监测的睡眠模式。
在一些实施例中,第二电子设备与第一电子设备可以协同实现周期性测量血氧。其中,第二电子设备作为控制第一电子设备的设备,第二电子设备可以运行用于控制第一电子设备11的应用程序,显示如图3E所示的用户界面300e,该用户界面300e为控制第一电子设备(如手表)的用户界面,可以包括至少一个显示区域,用于指示可实现的至少一个功能的控制,例如第一显示区域309、第二显示区域310、第三显示区域311、第四显示区域312。
第二电子设备响应于针对第一显示区域309输入的用户操作,可以进入睡眠模式的设置界面,如图3F所示的用户界面300f,该用户界面300f可以用于设置第一电子设备可运行的至少一个睡眠模式,例如,科学睡眠、普通睡眠、睡眠呼吸暂停等三个睡眠模式。该用户界面300f可以包括各个睡眠模式分别对应的至少一个控件,如第六控件313、第七控件314、第八控件315,还可以包括第九控件。其中,第二电子设备响应于针对第六控件313输入的用户操作,选中该第六控件313对应的睡眠模式,即选定科学睡眠;同理,第二电子设备响应于针对第七控件314输入的用户操作,选中该第七控件314对应的睡眠模式,即选定普通睡眠;第二电子设备响应于针对第八控件315输入的用户操作,选中该第八控件315对应的 睡眠模式,即选定睡眠呼吸暂停。第二电子设备响应于针对第九控件316输入的用户操作,向第一电子设备发送用于指示开启选定的睡眠模式的指示信息,如图3F所示,将用于指示开启科学睡眠的指示信息发送至第一电子设备。
第二电子设备响应于针对第二显示区域310输入的用户操作,可以进入血氧饱和度的设置界面,如图3G所示的用户界面300g,该用户界面300g可以包括第十控件317和第二输入框318。第二电子设备在响应于针对该第十控件317输入的用户操作时,生成并向第一电子设备发送第一指令,该第一指令用于指示进行周期性测量血氧饱和度。第二电子设备响应于用户在第二输入框318输入的周期/频率,向第一电子设备发送该输入的周期/频率,以指示第一电子设备以该周期/频率进行血氧饱和度的周期性测量。关于第一电子设备进行周期性测量血氧饱和度的方法可以参见下述方法实施例中相关描述,这里不再赘述。
可选地,第二电子设备响应于针对第三显示区域311输入的用户操作,可以进入心率的设置界面,以实现通过第一电子设备进行心率的检测、分析等。响应于针对第四显示区域312输入的用户操作,可以进入运动的设置界面,以实现通过第一电子设备检测用户的运动情况,心率、运动等的设置界面,可以具有多种实现形式,这里不作限定。
在一些实施例中,第一电子设备可以在检测到用于测量SpO2、心率等的PPG信号后,可以此向第二电子设备发送该PPG信号,第二电子设备分析该PPG信号,得到SpO2、心率、心率相关参数等信息,进一步地,还可以基于得到的SpO2、心率、心率相关参数等信息分析睡眠情况。
在另一些实施例中,也可以由第一电子设备可以分析该PPG信号,得到SpO2、心率、心率相关参数等信息,将分析得到的SpO2、心率、心率相关参数发送至第二电子设备,由第二电子设备基于得到的SpO2、心率、心率相关参数等信息分析睡眠情况。
可选地,第一电子设备在检测到SpO2小于预设值(如90%、70%)时,可以向第二电子设备发送用于指示用户具有睡眠呼吸暂停的风险的指示信息,第二电子设备在接收到该指示信息后可以显示如图3H所示用户界面300h,该用户界面300h可以包括第一信息319和第二信息320,关于第一信息和第二信息可以参见上述图3D所示中相关描述;进一步地,响应于针对第二信息中的可穿戴设备的标识或图标输入的用户操作,第二电子设备可以打开该可穿戴设备的购买网页。
上述用户操作可以包括但不限于点击、双击、长按操作、短按操作等。
在本申请实施例中,电子设备的软件系统可以采用分层架构,如事件驱动架构,微核架构,微服务架构,或云架构。
请参见图4,图4示出了本申请实施例示例性提供的第一电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。
如图4所示,软件系统分为三层,从上至下分别为:应用程序层及内核层(kernel)。
硬件层可以至少包括至少一个LED和至少一个PD,例如,上述图2A所示的第一LED和第一PD,或上述图2B所示的第一LED、第二LED、第一PD和第二PD。硬件层还可以包括显示器、血氧传感器,用于获取红光的PPG信号和接近IR的PPG信号。
内核层是硬件层和软件层之间的层。内核层可包含传感器驱动和PPG管理器,传感器驱动用于根据接收到的控制信号后,驱动硬件层的LED发射特定波长的光;当传感器驱动检测到PPG信号,相应的硬件中断被发给内核层。内核层将检测到的PPG信号发送给内核层中的PPG管理器。
不限于上述驱动,内核层还可包含显示驱动,摄像头驱动,音频驱动等等。
PPG管理器,用于获取PPG信号,将PPG信号发送至应用程序层;还用于根据应用程序框架层下发的指令生成控制信号,将该控制信号发送给传感器驱动,以使传感器驱动根据控制信号控制LED发射光。
应用程序层包括一系列应用程序包,例如包含可实现周期性测量血氧的应用“周期性测量血氧”、可实现测量心率的应用“心率”、可实现检测睡眠的应用“睡眠设置”。不限于上述应用,还可以包含其他一些应用,例如心率,锻炼,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,短信息等应用程序。本申请实施例中,以第一应用为“周期性测量血氧”,第二应用为“睡眠设置”为例来说明。
如图4所示,应用程层的应用“周期性测量血氧”可以包括SpO2测量单元,应用“心率”可以包括心率测量单元和心率相关参数测量单元,应用“睡眠设置”可以包括SpO2测量单元、心率测量单元和心率相关参数测量单元等。其中,SpO2测量单元用于根据红光PPG信号和红外PPG信号计算SpO2;心率测量单元用于根据红光PPG信号或红外PPG信号等PPG信号计算心率;SpO2心率测量单元根据红光PPG信号或红外PPG信号等PPG信号计算心率相关参数。
其中,应用程序可以向PPG管理器发送指令,例如,第一应用“周期性测量血氧”向PPG管理器发送用于指示周期性测量SpO2的第一指令;又例如,第二应用“睡眠设置”可以向PPG发送第二指令,该第二指令用于指示睡眠模式,也可以用于指示需要获取的PPG信号。
PPG管理器在接收到应用程序发送的第一指令后,响应于该第一指令,周期性测量SpO2。在每个血氧测量周期,进行血氧测量之前,PPG根据用户的睡眠情况判断是否需要调光。在需要调光,PPG进行通过向传感器驱动发送调光指令,以使传感器驱动根据调光指令驱动LED和PD进行调光,来实现调光。在不需要调光时,向传感器驱动发送用于指示R路和IR路开启的控制信号,以实现PPG数据的采集。
其中,PPG管理器判断是否需要调光的一种实现可以是:在本次血氧测量周期内,若检测到用户从非睡眠状态转变为睡眠状态,则进行调光;若在本次血氧测量周期的血氧测量时间,检测到用户处于非睡眠状态,则进行调光;而,若在本次血氧测量周期的血氧测量时间,检测到用户保持睡眠状态,则该本次血氧测量周期不需要进行调光,在血氧测量时间可以直接获取PPG数据。
第二指令可以具有不同的形式,在一些实施例中,该第二指令是应用程序是在用户选定的指定的睡眠模式后生成的,用于指示获取该指定的睡眠模式需要的PPG信号。
例如,在指定的睡眠模式为“科学睡眠”时,应用程序向PPG管理器发送用于指示获取连续的红光PPG信号或红外PPG信号的指令S1,应用程序层的应用可以向PPG管理器发送该指令S1,对应地,PPG管理器根据该指令S1向传感器驱动发送用于指示连续开启R路或IR路的控制信号;传感器驱动可以根据该控制信号对LED进行发光控制,包括发光时间、发光时长、发光波长、发光功率等的控制。在LED发光的过程中,传感器驱动可以接收到PD检测到的PPG信号,包括红光PPG信号和红外PPG信号,将其发送至PPG管理器。PPG管理器可以根据控制信号选择需要的PPG信号,以向应用程序层的应用等发送其所需要的PPG信号。
又例如,在指定的睡眠模式为“睡眠呼吸暂停”时,应用程序向PPG管理器发送用于指示获取连续的红光PPG信号和红外PPG信号的指令S2,PPG管理器根据该指令S2向传感器驱动发送用于指示连续开启R路和IR路的控制信号。
可选地,PPG管理器在接收到指令S1后,若接收到第一指令,则向传感器驱动发送用于指示当前未开启的一路的指令;PPG管理器在接收到指令S2后,若接收到第一指令,则不需要向传感器驱动发送用于指示连续开启R路和IR路的控制信号。
进一步地,在PPG管理器采集到PPG信号后,可以基于控制信号从PPG信号中获取周期性测量血氧所需要的红光PPG信号和红外PPG信号,获取第二指令指示的PPG信号,将周期性测量血氧所需要的红光PPG信号和红外PPG信号发送至第一应用,以及,将第二指令对应的PPG信号发送至第二应用。
在一些实施例中,软件系统还可以包括应用程序架构层,该应用程序架构层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数,例如,包括用于实现上述SpO2测量单元、心率测量单元和心率相关参数测量单元的功能的函数,此时,应用程的应用可以通过调用应用程序架构层的函数实现SpO2、心率和心率相关参数的测量。
其中,SpO2测量单元接收来自PPG管理器的红光PPG信号和红外PPG信号,根据接收到的红光PPG信号和红外PPG信号计算SpO2,将计算得到的SpO2上报给应用程序层中的应用程序,应用程序“周期性测量血氧”、“睡眠设置”等;心率测量单元接收来自PPG管理器的PPG信号(可以是红光PPG信号、红外PPG信号或绿光PPG信号),根据接收到的PPG信号计算心率,将计算得到的心率上报给应用程序层中的应用程序,如应用程序“心率”、“睡眠设置”等;心率相关参数测量单元接收来自PPG管理器的PPG信号(可以是红光PPG信号、红外PPG信号或绿光PPG信号),根据接收到的PPG信号计算心率相关参数,将计算得到的心率相关参数上报给应用程序层中的应用程序,如应用程序“心率”、“睡眠设置”等。
在一些实施例中,应用程序可以调用应用程序框架成的应用程序接口以得到SpO2、心率、心率相关参数等。
在另一种实现中,在一个血氧测量周期中,PPG管理器在接收到应用程序发送的第一指令后,响应于该第一指令,在用户由非睡眠状态转变为睡眠状态时,向传感器驱动发送调光指令,以使传感器驱动根据调光指令进行调光;在用户进入睡眠状态后,不再进行调光;而若用户处于非睡眠状态,则在当前时间为血氧测量时间时,向传感器驱动发送调光指令,以使内核层的传感器驱动根据调光指令进行调光。
在又一种实现中,PPG管理器可以根据检测到的用户的状态(如睡眠状态、运动状态等)、R路和IR路的设置信息确定PPG的测量模式,基于确定的模式来执行调光、R路和IR路控制等。
需要说明的,图4所示的第一电子设备的功能架构仅仅是本申请实施例的一种实现方式,实际应用中,第一电子设备还可以包括更多或更少的软件模块,这里不作限制。
在本申请实施例中,电子设备在如图4所示的软件结构的基础上,还可以根据各个软件模块的运行而显示对应的用户界面。该第一电子设备显示的用户界面可参照图3A~图3D,这里不再赘述。
基于图4所示的软件架构图,下面以一个具体的例子说明本申请实施例提供的周期性测量血氧的方法。图5示出了本申请实施例提供的一种周期性测量血氧流程示意图。该方法所涉及的应用界面可参考图3A-图3H。图5中步骤S501~S511的实现可参照图4的相关描述,这里不再赘述。
还需要说明的是,在另一些实施例中,第一应用和第二应用还可以是第二电子设备上的两个应用。
下面结合图6-图8介绍本申请实施例涉及的周期性测量血氧的方法。
如图6所示的本申请实施例提供的一种周期性测量血氧的方法的流程示意图,该方法可以由上述第一电子设备实现,也可以由第一电子设备和与其通信连接的第二电子设备组成的系统实现,该方法可以包括但不限于如下部分或全部步骤。
S601:第一电子设备接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度。
在一种实现中,第一电子设备可以响应于用户针对上述图3B所示的用户界面中第一控件输入的用户操作,生成第一指令。
在另一种实现中,第一电子设备可以接收第二电子设备发送的第一指令,该第二电子设备可以是手机、平板电脑等与第一电子设备建立通信连接的设备,第二电子设备可以响应于用户输入的用于指示进行周期性测量血氧饱和度的用户操作,向第一电子设备发送第一指令。
进一步地,第一电子设备响应于该第一指令,在每一个血氧测量周期可以执行如下步骤S602-S606或执行S602-S606的操作。下面以第一血氧测量周期内为例来说明。其中,周期性测量血氧饱和度是指,每间隔一个测量周期T,测量一次血氧饱和度。这里,血氧测量周期即一次血氧测量过程,包括血氧测量时间和非血氧测量时间,其中,血氧测量时间是血氧测量周期内,进行血氧测量的时间段,非血氧测量时间是血氧测量周期中除血氧测量时间外的时间段。
S602:第一电子设备在第一血氧测量周期,判断当前时间是否为血氧测量时间。如果是,则执行S603,否则重复执行S602。
其中,血氧测量时间为周期性血氧测量确定的需要进行血氧测量的时间,例如,血氧的测量周期T为10min,则在首次测量血氧的时间为20:00,则第二次测量的时间为20:10,第三次测量的时间为20:10。
可选地,当理论需要开始进行测量血氧的时间时,若用户处于运动状态,则在用户转变为静止状态时的时间作为实际的开始血氧测量时间,其下一次的理论需要开始进行测量血氧的时间是:在上一次理论需要开始进行测量血氧的时间或上一次实际的开始血氧测量的时间的基础上增加测量周期T所得到的时间点。应理解,第一电子设备可以基于通过加速度传感器、陀螺仪等获取到的运动数据来分析用户的运动状态。
应理解,第一指令可以携带血氧的测量周期T,以基于该周期确定血氧测量时间。第一指令也可以不携带血氧的测量周期T,测量周期T可以是预设时长。
还应理解,血氧测量时间不是一个时间,而是周期性的多个时间点或时间段,其周期为测量周期T。
S603:第一电子设备检测用户在当前时间是否处于睡眠状态。如果是,用户处于睡眠状态,第一电子设备可以执行S604;否则,用户处于非睡眠状态,第一电子设备执行S605。
其中,睡眠状态的检测可以包括但不限于如下实施方式:
实施方式1:第一电子设备可以通过运动传感器检测用户的姿态,当用户的姿态不断变化时,则判断为用户处于非睡眠状态;反之,当用户的姿态静止或不变时,则判断为用户处于睡眠状态。
实施方式2:第一电子设备可以通过麦克风采集当前环境的声音信息,进而提取该声音信息中的呼吸声,根据提取到的呼吸声识别用户是否处于睡眠状态。
实施方式3:第一电子设备可以控制第一LED向用户发射绿光,第一LED发射的绿光经过用户反射后被第一光探测器接收,第一光探测器将接收到的绿光转变为绿光PPG信号;进 一步地,第一电子设备可以根据绿光PPG信号检测该用户的心率和/或心率相关参数,以通过用户的心率和/或心率相关参数检测用户的睡眠状态。应理解,针对同一个人,在睡眠状态的心率低于非睡眠状态的心率。
在一些实施例中,第一电子设备也可以控制第一LED向用户发射红光或红外光,相应地,通过红光PPG信号或红外光PPG信号检测该用户的心率和/或心率相关参数。
需要说明的是,第一电子设备也可以结合上述三种实施方式,检测用户是否处于睡眠状态,以得到更加准确的检测结果。
还需要说明的是,第一电子设备可以将通过运动传感器检测到的姿态、通过麦克风采集到的声音信息、通过第一光探测器采集到的PPG信号等发送给第二电子设备;由第二电子设备来检测用户是否处于睡眠状态,并将检测结果发送给第一电子设备。
S604:第一电子设备判断用户在该第一血氧测量周期的上一个血氧测量周期检测到的睡眠状态是否为非睡眠状态,如果是,则需要进行调光,第一电子设备可以执行S605;否则,第一电子设备不需要进行调光,第一电子设备可以执行S606-S607。
具体地,在该第一血氧测量周期的上一个血氧测量周期检测到的睡眠状态为非睡眠状态且第一血氧测量周期检测到用户处于睡眠状态时,则说明用户由非睡眠状态转变为睡眠状态,此时需要进行调光,第一电子设备可以执行S605,调光完成后执行S606-S607。在该第一血氧测量周期的上一个血氧测量周期检测到的睡眠状态也为睡眠状态时,则判断为未发生由非睡眠状态转变为睡眠状态,不需要进行调光,第一电子设备可以执行S606-S607。
S605:第一电子设备进行调光。
调光的目的是获取稳定有效的PPG信号,具体实现中,可以调节LED的发光功率,以使得PD检测到的光转换得到的电信号大于设定特定的PD目标电流,保证PPG信号质量。实际调节的过程是通过调节LED驱动电流,检测PD的输出电流是否达到目标电流,如果没有达到,就继续增大LED驱动电流,如果PD的输出电流已经达到目标电流,则调光结束。整个调光过程是一个负反馈过程。
具体的,调节R路的LED的发光功率和IR路的LED的发光功率分别为第一功率和第二功率,该第一功率为使得R路的PD的输出电流等于或大于第一目标电流时R路的LED的发射功率;该第二功率为使得IR路的PD的输出电流等于或大于第二目标电流时IR路的LED的发射功率。
应理解,第一目标电流与第二目标电流可以相同或不同。用户处于睡眠状态下的第一目标电流与用户处于非睡眠状态下的第一目标电流可以相同或不同,用户处于睡眠状态下的第一目标电流可以小于用户处于非睡眠状态下的第一目标电流;同理,用户处于睡眠状态下的第二目标电流与用户处于非睡眠状态下的第二目标电流可以相同或不同,用户处于睡眠状态下的第二目标电流可以小于用户处于非睡眠状态下的第二目标电流。
在一些实施例中,在用户处于非睡眠状态时,在当前时间为血氧测量时间时,第一电子设备在获取PPG信号之前均需要进行调光,以获取最佳数据。
在一些实施例中,在用户处于非睡眠状态时,S604之前,第一电子设备可以获取其从上一次调光时至当前时间内的运动数据,在第一电子设备在上一次调光时至当前时间内运动幅度均小于预设值时,则第一电子设备可以不进行调光,执行S605-S606;否则,第一电子设备进行执行S604,进行调光。
S606:第一电子设备采集红光PPG信号和红外PPG信号。
第一电子设备可以开启R路和IR路,以采集红光PPG信号和红外PPG信号。具体包括
第一电子设备控制R路的LED以第一功率发射红光,IR路的LED以第二功率发射红外光;进而,通过R路的PD和IR路的PD分别采集红光PPG信号和红外PPG信号。
S607:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
具体地,第一电子设备可以分别采集时长t1的红光PPG信号和时长t1的红外光PPG信号,其中,时长t1大于心率周期,可选地,时长t1大于多个心率周期,以提高SpO2的准确度。
在一些实施例中,S607之后,第一电子设备可以在非血氧测量时间,关闭R路的LED、IR路的LED、R路的PD和IR路的PD,以进一步地减少第一电子设备的能耗。
如图7A所示的本申请实施例提供的另一种周期性测量血氧的方法的流程示意图,该方法可以由上述第一电子设备单独实现,也可以由第一电子设备和与其通信连接的第二电子设备组成的系统实现,该方法可以包括但不限于如下部分或全部步骤。
S701:第一电子设备接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度。
响应于第一指令,第一电子设备可以在每一个血氧测量周期可以执行如下步骤S702-S705或执行S702-S706的操作。
S702:第一电子设备检测用户是否进入睡眠状态。如果是,则第一电子设备执行S703-S704;否则,第一电子设备执行S704再执行S703。
其中,第一电子设备检测用户是否进入睡眠状态是指,用户由非睡眠状态转变为睡眠状态。其中,检测用户是否处于睡眠状态的具体实现可以参见上述图6所示的实施例中步骤S603中相关描述,这里不再赘述。
S703:第一电子设备进行调光。
S704:第一电子设备判断当前时间是否为血氧测量时间。
当S702检测结果为用户进入睡眠状态的情况下,若第一电子设备判断当前时间为血氧测量时间,则第一电子设备可以执行S705-S706。当S702检测结果为用户处于非睡眠状态的情况下,若第一电子设备判断当前时间为血氧测量时间,则第一电子设备执行S703,进行调光,在调光完成后,可以执行S705-S706。
S705:第一电子设备采集红光PPG信号和红外PPG信号。
S706:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
上述步骤S701-S706的具体实现,可以参见上述图6所示的实施例中相关描述,这里不再赘述。
结合上述图6和图7A所示的周期性测量血氧的方法,在一些实施例中,第一电子设备的LED和PD既可以作为血氧传感器,也可以作为心率传感器,还可以被多个应用调用。如图7B所示,为本申请实施例提供的另一种周期性测量血氧饱和度的方法的流程示意图,第一应用和第二应用可以分别向第一电子设备的PPG控制器发送第一指令和第二指令,可以接收第二指令,该第二指令用于指示连续获取PPG信号,其中,第二指令指示的PPG信号可以包括红光PPG信号,红外PPG信号,红光PPG信号和红外PPG信号,其他信号等四种情况。第一电子设备的PPG在介绍到第一指令和第二指令后,可以执行如图6和图7A所示的方法,响应于第二指令,还可以在开启第二指令对应的光路。图7B以执行图7A所示的方法为例来说明,进一步地,由于上一个血氧测量周期中存在一路或多路光路开启,在调光之前,可以仅开启未开启的光路,而在采集完本次血氧测量周期需要的PPG数据后,可以关闭调光之前所开启的光路。进一步地,可以向第一应用发送本次血氧测量周期需要的红光PPG信号 和红外PPG信号,向第二应用发送第二指令指示的PPG信号。关于图7B中,各个步骤的具体实现可以参见上述图4和图7A中相关描述,这里不再赘述。对应于第二指令指示的PPG信号的四种情况,第一电子设备的R路或IR路可能被设置为或者可能被要求为连续开启R路,连续开启IR路,连续开启R路和IR路,均不连续开启R路和IR路等四种情况。针对该四种情况,分别描述:
当第一电子设备设置为连续开启R路的情况下,例如,第一电子设备处于“科学睡眠”的睡眠模式时,第一电子设备在用户处于睡眠状态时需要连续采集红光PPG信号,以检测用户的睡眠情况,即第一电子设备在检测到用户进入睡眠状态后,需要连续开启R路。此时,在执行S606或S705后,即采集用于周期性测量SpO2的PPG信号后,第一电子设备进入非血氧测量时间,此时第一电子设备可以保持R路开启,关闭IR路,即保持控制R路的LED以第一功率发射红光和保持通过R路的PD采集红光PPG信号,关闭IR路的LED和IR路的PD。而在下一次血氧测量时间时,第一电子设备可以开启未开启的一路,即IR路,并在获取到红外PPG信号后,关闭该IR路,以节约第一电子设备的能耗。
当第一电子设备设置为连续开启IR路的情况下,例如,第一电子设备处于“科学睡眠”的睡眠模式时,第一电子设备在用户处于睡眠状态时需要连续采集红外PPG信号,通过红外PPG信号检测用户的睡眠情况,即,第一电子设备在检测到用户进入睡眠状态后,需要连续开启IR路。此时,在执行S606或S705后,即采集用于周期性测量SpO2的PPG信号后,第一电子设备进入非血氧测量时间,此时第一电子设备可以保持IR路开启,关闭R路,即保持控制IR路的LED以第二功率发射红光和保持通过IR路的PD采集红外光PPG信号,关闭R路的LED和R路的PD。而在下一次血氧测量时间时,第一电子设备可以开启未开启的一路,即R路,并在获取到红光PPG信号后,关闭该R路,以节约第一电子设备的能耗。
当第一电子设备设置为连续开启R路和IR路的情况下,例如,第一电子设备处于“睡眠呼吸暂停”的睡眠模式时,第一电子设备在用户处于睡眠状态时需要连续采集红光PPG信号和红外PPG信号,通过红光PPG信号和红外PPG信号检测用户的睡眠情况,即,第一电子设备在检测到用户进入睡眠状态后,需要连续开启R路和IR路。此时,在执行S606或S705后,即采集用于周期性测量SpO2的PPG信号后,第一电子设备进入非血氧测量时间,此时第一电子设备可以保持R路和IR路均开启,即保持控制R路的LED以第一功率发射红光和保持通过R路的PD采集红光PPG信号,保持控制IR路的LED以第二功率发射红光和保持通过IR路的PD采集红外光PPG信号。而在下一次血氧测量时间时,第一电子设备可以直接获取红光PPG信号和红外PPG信号。
需要说明的是,血氧测量时间是指周期性血氧测量所确定的时间,然而,在第一电子设备处于“睡眠呼吸暂停”的睡眠模式时,第一电子设备需要实时监测SpO2,因此需要连续开启R路和IR路,以获得红光PPG信号和红外PPG信号,但此时的采集PPG信号的时间段不是本申请中所指的血氧测量时间。非血氧测量时间是指除上述血氧测量时间之外的时间。
当第一电子设备设置为均不连续开启R路和IR路的情况下,例如,第一电子设备处于“普通睡眠”的睡眠模式时、当用户处于非睡眠状态时或当前时间为白天时,第一电子设备不需要连续采集红光PPG信号和红外PPG信号,此时,在执行S606或S705后,即采集用于周期性测量SpO2的PPG信号后,第一电子设备进入非血氧测量时间,可以关闭R路和IR路,即关闭R路的LED、IR路的LED、R路的PD和所述IR路的PD,以降低第一电子设备的能耗。而在下一次血氧测量时间时,第一电子设备需要再次开启R路和IR路。
如图8所示的本申请实施例提供的又一种周期性测量血氧的方法的流程示意图,该方法可以由上述第一电子设备实现,也可以由第一电子设备和与其通信连接的第二电子设备组成的系统实现,该方法可以包括但不限于如下部分或全部步骤。
S801:第一电子设备接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度。
响应于第一指令,第一电子设备可以在每一个血氧测量周期可以执行如下步骤S802,以及模式1-5中一个模式对应方法流程。
S802:第一电子设备根据用户的状态和R路和IR路的设置,识别测量模式。
具体的,第一电子设备可以识别用户的状态,用户的状态包括睡眠状态和非睡眠状态,识别用户的睡眠状态具体实现可以参见上述图6所示的实施例中步骤S603,这里不再赘述。
其中,PPG的设置信息可以包括:均不连续开启R路和IR路、连续开启R路、连续开启IR路,连续开启R路和IR路等四种。示例性地,可以得到如表1所示的4中测量模式:
表1
进一步地,第一电子设备针对不同的测量模式,可以执行不同的方法流程。下面分别进行介绍。
模式1:
S803a:判断当前时间是否为血氧测量时间,如果是,执行S803b,否则,执行S802。
S803b:判断用户是否首次处于睡眠状态,如果是,则执行S803c,如果否,则进行执行S803d-803g。其中,在本次血氧测量周期的上一个血氧测量周期时用户的状态包括非睡眠状态,则判断为用户首次处于睡眠状态。
S803c:第一电子设备开启R路和IR路,进行调光。
S803d:第一电子设备采集红光PPG信号和红外PPG信号。
S803e:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
S803f:第一电子设备关闭R路和IR路。
在另一种实现中,第一电子设备也可以先执行S803b,在用户首次处于睡眠状态时,执行S803c,在用户非首次处于睡眠状态时,则进行执行S803a,在当前时间为血氧测量时间时,执行S803d-803f,在当前时间是否为非血氧测量时间时,可以执行S802。
模式2:
S804a:判断当前时间是否为血氧测量时间,如果是,执行S804b,否则,执行S802。
S804b:判断用户是否首次处于睡眠状态,如果是,则执行S804c,如果否,则进行执行S804d-804f。
S804c:第一电子设备开启IR路,进行调光。
S804d:第一电子设备采集红光PPG信号和红外PPG信号。
S804e:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
S804f:第一电子设备关闭IR路。
在另一种实现中,第一电子设备也可以先执行S804b,在用户首次处于睡眠状态时,执行S804c,在用户非首次处于睡眠状态时,则进行执行S804a,在当前时间为血氧测量时间时, 执行S804d-804f,在当前时间为非血氧测量时间时,可以执行S802。
模式3:
S805a:判断当前时间是否为血氧测量时间,如果是,执行S805b,否则,执行S802。
S805b:判断用户是否首次处于睡眠状态,如果是,则执行S805c,如果否,则进行执行S805d-805f。
S805c:第一电子设备开启R路,进行调光。
S805d:第一电子设备采集红光PPG信号和红外PPG信号。
S805e:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
S805f:第一电子设备关闭R路。
在另一种实现中,第一电子设备也可以先执行S805b,在用户首次处于睡眠状态时,执行S805c,在用户非首次处于睡眠状态时,则进行执行S805a,在当前时间是否为血氧测量时间时,执行S805d-805ef,在当前时间是否为非血氧测量时间时,可以执行S802。
模式4:
S806a:判断当前时间是否为血氧测量时间,如果是,执行S806b,否则,执行S802。
S806b:判断用户是否首次处于睡眠状态,如果是,则执行S806c,如果否,则进行执行S805d-805f。
S806c:第一电子设备进行调光。
S806d:第一电子设备采集红光PPG信号和红外PPG信号。
S806e:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
在另一种实现中,第一电子设备也可以先执行S806b,在用户首次处于睡眠状态时,执行S806c,在用户非首次处于睡眠状态时,则进行执行S806a,在当前时间是否为血氧测量时间时,执行S806d-806e,在当前时间是否为非血氧测量时间时,可以执行S802。
模式5:
S807a:判断当前时间是否为血氧测量时间,如果是,执行S805b-S805f,否则,执行S802。
S807b:第一电子设备开启R路和IR路,进行调光。
S807c:第一电子设备采集红光PPG信号和红外PPG信号。
S807d:第一电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
S807e:第一电子设备关闭R路和IR路。
在另一种实现中,在S805b之前,第一电子设备可以获取其从上一次调光时至当前时间内的运动数据,在第一电子设备在上一次调光时至当前时间内运动幅度均小于预设值时,则第一电子设备可以不进行调光,执行S805c-S805e。
在上述图6-图8所示的实施例中,第一电子设备也可以将采集到的红光PPG信号和红外PPG信号发送至第二电子设备,由第二电子设备根据红光PPG信号和红外光PPG信号计算SpO2。
在上述图6-图8所示的实施例中,血氧测量的周期可以固定不变,也可以动态设置。例如,用户处于睡眠状态时的周期可以大于用户处于非睡眠状态时的周期,用户处于静止状态时的周期可以大于在用户处于活动状态时的周期。
可选地,针对不同的用户的睡眠状态、运动状态或测量模式,PPG信号的采样频率可以不同。例如,用户处于睡眠状态下R路的光电探测器的采样频率小于用户处于非睡眠状态下R路的光电探测器的采样频率;同理,用户处于睡眠状态下IR路的光电探测器的采样频率可以小于用户处于非睡眠状态下IR路的光电探测器的采样频率。又例如,用户处于静止状态时 的采样频率可以大于在用户处于活动状态时的采样频率。又例如,在测试模式为模式1、模式2、模式3、模式4时的采样频率大于在测试模式为模式5时的采样频率。
在上述图6-图8所示的实施例中,该方法还可以包括:在第一电子设备或第二电子设备计算得到的SpO2小于第一阈值时,输出第一信息,该第一信息用于提示用户存在睡眠呼吸暂停风险的提示信息;或者在电子设备在第一时间段内(如一天或多天等)计算得到的SpO2均小于第二阈值或小于第二阈值的概率大于第三阈值时,输出第二信息,该第二信息输出用于提示用户存在睡眠呼吸暂停风险的提示信息、用于提示用户就医。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (28)
- 一种周期性测量血氧饱和度的方法,其特征在于,应用于电子设备,所述电子设备包括红光R路和红外光IR路,所述R路和所述IR路均包括发光源和光电探测器,所述R路的发光源用于向用户发射红光,所述R路的光电探测器用于将经过所述用户反射的红光转变为红光光电容积脉搏波PPG信号,所述IR路的发光源用于向所述用户发射红外光,所述IR路的光电探测器用于将经过所述用户反射的红外光转变为红外光电容积脉搏波PPG信号;所述方法包括:所述电子设备接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度;所述电子设备响应于所述第一指令,在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,所述调光用于确定所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率;在第二血氧测量周期内的血氧测量时间,若所述用户处于睡眠状态,所述电子设备控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期或所述第二周期为所述第一血氧测量周期的下一个血氧测量周期;通过所述R路的光电探测器和所述IR路的光电探测器分别采集红光PPG信号和红外PPG信号,所述红光PPG信号和所述红外PPG信号用于计算血氧饱和度。
- 根据权利要求1所述的方法,其特征在于,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期,所述在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,包括:在当前时间为所述血氧测量时间时,所述电子设备检测所述用户的当前睡眠状态;在所述当前睡眠状态为睡眠状态且所述第一血氧测量周期的上一个血氧测量周期时所述用户处于非睡眠状态的情况下,所述电子设备进行调光。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:在非血氧测量时间,关闭所述R路的发光源、所述IR路的发光源、所述R路的光电探测器和所述IR路的光电探测器,所述非血氧测量时间为所述血氧测量周期内所述血氧测量时间之外的时间段。
- 根据权利要求1或2所述的方法,其特征在于,所述控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光之前,所述方法还包括:所述电子设备接收第二指令,所述第二指令用于指示连续获取PPG信号。
- 根据权利要求4所述的方法,其特征在于,所述电子设备还包括PPG管理器;所述电子设备的PPG管理器用于执行如下步骤:根据所述第一指令和所述第二指令生成控制信号,所述第一指令来自第一应用,所述第 二指令来自第二应用,所述控制信号用于驱动所述R路的发光源以所述第一功率发射红光和所述IR路的发光源以所述第二功率发射红外光;向所述第一应用发送所述红光PPG信号和所述红外PPG信号,向所述第二应用发送所述第二指令指示获取的PPG信号。
- 根据权利要求4所述的方法,其特征在于,在所述第二指令指示获取的PPG信号为红光PPG信号时,所述方法还包括:在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光和保持通过所述R路的光电探测器采集红光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;在所述非血氧测量时间,关闭所述IR路的发光源和所述IR路的光电探测器。
- 根据权利要求4所述的方法,其特征在于,在所述第二指令指示获取的PPG信号为红外PPG信号时,所述方法还包括:在非血氧测量时间,保持控制所述IR路的发光源以所述第二功率发射红光和保持通过所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;在所述非血氧测量时间,关闭所述R路的发光源和所述R路的光电探测器。
- 根据权利要求4所述的方法,其特征在于,在所述第二指令指示获取的PPG信号为红光PPG信号和红外PPG信号时,所述方法还包括:在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光,保持所述IR路的发光源以所述第二功率发射红外光、保持通过所述R路的光电探测器采集红光PPG信号和保持所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:在血氧测量时间用户处于非睡眠状态时,所述电子设备,进行调光,所述调光用于确定节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率。
- 根据权利要求9所述的方法,其特征在于,所述在血氧测量时间用户处于非睡眠状态时,所述电子设备进行调光,具体包括:在血氧测量时间用户处于非睡眠状态时,所述电子设备获取其从上一次调光时至当前时间内的运动数据;在根据所述运动数据识别到所述从上一次调光时至当前时间内所述用户的运动幅度均小于预设值时,所述电子设备调节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为所述第一功率和所述第二功率。
- 根据权利要求1-10任一项所述的方法,其特征在于,所述第一功率为使得所述R路的光电探测器的输出电流等于或大于第一目标电流时所述R路的发光源的发射功率;所述第 二功率为使得所述IR路的光电探测器的输出电流等于或大于第二目标电流时所述IR路的发光源的发射功率。
- 根据权利要求1-11任一项所述的方法,其特征在于,所述用户处于睡眠状态下所述R路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述R路的光电探测器的采样频率;所述用户处于睡眠状态下所述IR路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述IR路的光电探测器的采样频率。
- 根据权利要求1-12任一项所述的方法,其特征在于,所述R路的发光源与所述IR路的发光源为同一个发光源,所述R路的光电探测器与所述IR路的光电探测器为同一个光电探测器。
- 一种电子设备,其特征在于,所述电子设备包括光电容积脉搏波PPG控制器、存储器、红光R路、红外光IR路,所述R路和所述IR路均包括发光源和光电探测器,所述R路的发光源用于向用户发射红光,所述R路的光电探测器用于将经过所述用户反射的红光转变为红光光电容积脉搏波PPG信号,所述IR路的发光源用于向所述用户发射红外光,所述IR路的光电探测器用于将经过所述用户反射的红外光转变为红外光电容积脉搏波PPG信号;所述PPG控制器运行所述存储器存储的计算机指令,执行:接收第一指令,所述第一指令用于指示进行周期性测量血氧饱和度;响应于所述第一指令,在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,所述调光用于确定所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率;在第二血氧测量周期内的血氧测量时间,若所述用户处于睡眠状态,控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期或所述第二周期为所述第一血氧测量周期的下一个血氧测量周期;通过所述R路的光电探测器和所述IR路的光电探测器分别采集红光PPG信号和红外PPG信号,所述红光PPG信号和所述红外PPG信号用于计算血氧饱和度。
- 根据权利要求14所述的电子设备,其特征在于,所述第二血氧测量周期与所述第一血氧测量周期为同一血氧测量周期,所述PPG控制器执行所述在第一血氧测量周期内,若所述用户由非睡眠状态转变为睡眠状态的情况下,进行调光,包括执行:在当前时间为所述血氧测量时间时,检测所述用户的当前睡眠状态;在所述当前睡眠状态为睡眠状态且所述第一血氧测量周期的上一个血氧测量周期时所述用户处于非睡眠状态的情况下,进行调光。
- 根据权利要求14或15所述的电子设备,其特征在于,所述PPG控制器还用于执行:在非血氧测量时间,关闭所述R路的发光源、所述IR路的发光源、所述R路的光电探测器和所述IR路的光电探测器,所述非血氧测量时间为所述血氧测量周期内所述血氧测量时间之外的时间段。
- 根据权利要求14或15所述的电子设备,其特征在于,在所述PPG管理器执行所述控制所述R路的发光源以所述第一功率发射红光,所述IR路的发光源以所述第二功率发射红外光之前,所述PPG控制器还用于执行:接收第二指令,所述第二指令用于指示连续获取PPG信号。
- 根据权利要求17所述的电子设备,其特征在于,所述PPG管理器用于执行如下步骤:根据所述第一指令和所述第二指令生成控制信号,所述第一指令来自第一应用,所述第二指令来自第二应用,所述控制信号用于驱动所述R路的发光源以所述第一功率发射红光和所述IR路的发光源以所述第二功率发射红外光;向所述第一应用发送所述红光PPG信号和所述红外PPG信号,向所述第二应用发送所述第二指令指示获取的PPG信号。
- 根据权利要求17所述的电子设备,其特征在于,在所述第二指令指示获取的PPG信号为红光PPG信号时,所述PPG管理器还用于执行:在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光和保持通过所述R路的光电探测器采集红光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;在所述非血氧测量时间,关闭所述IR路的发光源和所述IR路的光电探测器。
- 根据权利要求17所述的电子设备,其特征在于,在所述第二指令指示获取的PPG信号为红外PPG信号时,所述PPG管理器还用于执行:在非血氧测量时间,保持控制所述IR路的发光源以所述第二功率发射红光和保持通过所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段;在所述非血氧测量时间,关闭所述R路的发光源和所述R路的光电探测器。
- 根据权利要求17所述的电子设备,其特征在于,在所述第二指令指示获取的PPG信号为红光PPG信号和红外PPG信号时,所述PPG管理器还用于执行:在非血氧测量时间,保持控制所述R路的发光源以所述第一功率发射红光,保持所述IR路的发光源以所述第二功率发射红外光、保持通过所述R路的光电探测器采集红光PPG信号和保持所述IR路的光电探测器采集红外光PPG信号,所述非血氧测量时间为所述第二血氧测量周期内所述血氧测量时间之外的时间段。
- 根据权利要求14-21任一项所述的电子设备,其特征在于,所述PPG管理器还用于执行:在血氧测量时间用户处于非睡眠状态时,进行调光,所述调光用于确定节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为第一功率和第二功率。
- 根据权利要求22所述的电子设备,其特征在于,所述PPG管理器执行所述在血氧测量时间用户处于非睡眠状态时,进行调光,具体包括执行:在血氧测量时间用户处于非睡眠状态时,获取其从上一次调光时至当前时间内的运动数据;在根据所述运动数据识别到所述从上一次调光时至当前时间内所述用户的运动幅度均小于预设值时,调节所述R路的发光源的发光功率和所述IR路的发光源的发光功率分别为所述第一功率和所述第二功率。
- 根据权利要求14-23任一项所述的电子设备,其特征在于,所述第一功率为使得所述R路的光电探测器的输出电流等于或大于第一目标电流时所述R路的发光源的发射功率;所述第二功率为使得所述IR路的光电探测器的输出电流等于或大于第二目标电流时所述IR路的发光源的发射功率。
- 根据权利要求14-24任一项所述的电子设备,其特征在于,所述用户处于睡眠状态下所述R路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述R路的光电探测器的采样频率;所述用户处于睡眠状态下所述IR路的光电探测器的采样频率小于所述用户处于非睡眠状态下所述IR路的光电探测器的采样频率。
- 根据权利要求14-25任一项所述的方法,其特征在于,所述R路的发光源与所述IR路的发光源为同一个发光源,所述R路的光电探测器与所述IR路的光电探测器为同一个光电探测器。
- 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1至14中任一项所述的方法。
- 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至14中任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP21881782.3A EP4209174A4 (en) | 2020-10-21 | 2021-09-15 | METHOD FOR PERIODIC MEASUREMENT OF OXYGEN IN BLOOD, AND ELECTRONIC DEVICE |
US18/250,028 US20230389832A1 (en) | 2020-10-21 | 2021-09-15 | Method for periodically measuring blood oxygen and electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011133857.2 | 2020-10-21 | ||
CN202011133857.2A CN114376538A (zh) | 2020-10-21 | 2020-10-21 | 周期性测量血氧的方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022083363A1 true WO2022083363A1 (zh) | 2022-04-28 |
Family
ID=81193985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/118373 WO2022083363A1 (zh) | 2020-10-21 | 2021-09-15 | 周期性测量血氧的方法及电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20230389832A1 (zh) |
EP (1) | EP4209174A4 (zh) |
CN (1) | CN114376538A (zh) |
WO (1) | WO2022083363A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220257132A1 (en) * | 2021-02-16 | 2022-08-18 | Radio Systems Corporation | System and apparatus for measurement of physiological data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150342477A1 (en) * | 2014-05-30 | 2015-12-03 | Microsoft Corporation | Dynamic operation of optical heart rate sensors |
US20160193442A1 (en) * | 2015-01-05 | 2016-07-07 | Intelclinic LLC | System, apparatus and method for treating sleep disorder symptoms |
US20180110450A1 (en) * | 2015-12-07 | 2018-04-26 | Marcelo Malini Lamego | Wireless, disposable, extended use pulse oximeter apparatus and methods |
CN109924987A (zh) * | 2019-03-14 | 2019-06-25 | 浙江荷清柔性电子技术有限公司 | 反射式血氧仪的标定方法、系统和可读存储介质 |
CN110393514A (zh) * | 2019-06-24 | 2019-11-01 | 华为技术有限公司 | 可穿戴设备及光电式脉搏传感组件 |
CN211187269U (zh) * | 2019-01-09 | 2020-08-07 | 中国航天员科研训练中心 | 一种睡眠监测仪的脉搏波驱动电路 |
CN111800134A (zh) * | 2020-06-30 | 2020-10-20 | 青岛歌尔智能传感器有限公司 | 信号处理方法、装置、电子设备及计算机可读存储介质 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100552681B1 (ko) * | 2003-04-25 | 2006-02-20 | 삼성전자주식회사 | 수면 무호흡 진단 장치 및 방법 |
JP2015125544A (ja) * | 2013-12-26 | 2015-07-06 | 株式会社東芝 | 電子機器、方法およびプログラム |
-
2020
- 2020-10-21 CN CN202011133857.2A patent/CN114376538A/zh active Pending
-
2021
- 2021-09-15 WO PCT/CN2021/118373 patent/WO2022083363A1/zh unknown
- 2021-09-15 EP EP21881782.3A patent/EP4209174A4/en active Pending
- 2021-09-15 US US18/250,028 patent/US20230389832A1/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150342477A1 (en) * | 2014-05-30 | 2015-12-03 | Microsoft Corporation | Dynamic operation of optical heart rate sensors |
US20160193442A1 (en) * | 2015-01-05 | 2016-07-07 | Intelclinic LLC | System, apparatus and method for treating sleep disorder symptoms |
US20180110450A1 (en) * | 2015-12-07 | 2018-04-26 | Marcelo Malini Lamego | Wireless, disposable, extended use pulse oximeter apparatus and methods |
CN211187269U (zh) * | 2019-01-09 | 2020-08-07 | 中国航天员科研训练中心 | 一种睡眠监测仪的脉搏波驱动电路 |
CN109924987A (zh) * | 2019-03-14 | 2019-06-25 | 浙江荷清柔性电子技术有限公司 | 反射式血氧仪的标定方法、系统和可读存储介质 |
CN110393514A (zh) * | 2019-06-24 | 2019-11-01 | 华为技术有限公司 | 可穿戴设备及光电式脉搏传感组件 |
CN111800134A (zh) * | 2020-06-30 | 2020-10-20 | 青岛歌尔智能传感器有限公司 | 信号处理方法、装置、电子设备及计算机可读存储介质 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4209174A4 |
Also Published As
Publication number | Publication date |
---|---|
US20230389832A1 (en) | 2023-12-07 |
EP4209174A4 (en) | 2024-01-24 |
EP4209174A1 (en) | 2023-07-12 |
CN114376538A (zh) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220342074A1 (en) | Electronic Device and Sensor Control Method | |
WO2020173394A1 (zh) | 一种录像帧率的控制方法及相关装置 | |
WO2021169515A1 (zh) | 一种设备间数据交互的方法及相关设备 | |
WO2021036785A1 (zh) | 一种消息提醒方法及电子设备 | |
CN111202955A (zh) | 运动数据处理方法及电子设备 | |
WO2021213151A1 (zh) | 显示控制方法和可穿戴设备 | |
WO2020015144A1 (zh) | 一种拍照方法及电子设备 | |
WO2020015142A1 (zh) | 一种色素检测方法及电子设备 | |
WO2020056684A1 (zh) | 通过转发模式连接的多tws耳机实现自动翻译的方法及装置 | |
CN111522425A (zh) | 一种电子设备的功耗控制方法及电子设备 | |
WO2022100407A1 (zh) | 智能眼罩、终端设备、健康管理方法与系统 | |
CN113744874A (zh) | 风险预警方法、风险行为信息获取方法和电子设备 | |
EP4374936A1 (en) | Exercise guidance method and related apparatus | |
WO2022135144A1 (zh) | 自适应显示方法、电子设备及存储介质 | |
WO2022105830A1 (zh) | 睡眠评估方法、电子设备及存储介质 | |
CN113509145B (zh) | 睡眠风险监测方法、电子设备及存储介质 | |
WO2022083363A1 (zh) | 周期性测量血氧的方法及电子设备 | |
WO2021139588A1 (zh) | 电子设备以及控制电子设备进行ppg检测的方法和介质 | |
CN115022807A (zh) | 快递信息提醒方法和电子设备 | |
WO2024078163A9 (zh) | 一种屏幕显示的方法、装置、设备及存储介质 | |
WO2022111593A1 (zh) | 一种用户图形界面显示方法及其装置 | |
WO2021204036A1 (zh) | 睡眠风险监测方法、电子设备及存储介质 | |
CN114431891B (zh) | 监测睡眠的方法和相关电子设备 | |
CN113918003A (zh) | 检测皮肤接触屏幕时长的方法、装置及电子设备 | |
CN113496766A (zh) | 用户健康管理方法及装置 |
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: 21881782 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2021881782 Country of ref document: EP Effective date: 20230404 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |