Blood oxygen heart rate detection method, terminal device and storage medium

By dynamically adjusting the light intensity bias value and reverse splicing mechanism of the close-light sensor, the problems of high module composition cost and large noise floor integral value of traditional PPG sensors are solved, and low-cost and accurate blood oxygen heart rate detection is achieved.

CN118452860BActive Publication Date: 2025-04-29HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311254344.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-04-29
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

The traditional PPG sensor module has high composition cost and large volume, which affects the production cost and structural design of terminal equipment. At the same time, there is a large basic noise floor integral value in the absence of occlusion, affecting the detection accuracy.

Method used

By dynamically adjusting the light intensity bias value close to the light sensor, the light intensity value is output within the preset range, and the PPG waveform of the human body is accurately detected through the reverse splicing mechanism, realizing the detection of blood oxygen heart rate.

Benefits of technology

It reduces the hardware cost of terminal equipment, reduces the size of equipment, and at the same time realizes accurate blood oxygen heart rate detection, and the signal is continuous and faultless.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118452860B_ABST
    Figure CN118452860B_ABST
Patent Text Reader

Abstract

The present application provides a blood oxygen heart rate detection method, a terminal device and a computer-readable storage medium, the method comprising: obtaining a light intensity value and a light intensity bias value sensed by a proximity light sensor in the terminal device; determining whether the light intensity value is within a preset range; in response to the light intensity value not being within the preset range, adjusting the light intensity bias value so that the light intensity value is within the preset range; in response to the light intensity value being within the preset range, obtaining a light intensity report value according to the light intensity value and the light intensity bias value, and drawing a photoelectric volume pulse wave (PPG) waveform according to the light intensity report value. The present application can realize functions such as blood oxygen heart rate detection of terminal devices based on low-cost hardware conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminals, and in particular relates to a blood oxygen heart rate detection method, a terminal device and a storage medium. Background Art

[0002] Blood oxygen heart rate is an important vital sign parameter in the human body. The terminal device can detect blood oxygen heart rate based on photoplethysmograph (PPG). Usually, the terminal device can be configured with a PPG sensor module for detecting the PPG waveform. The traditional PPG sensor module includes a light emitter, a photodetector and an analog front end (Analog Front End, AFE). The light-emitting diode (LED) of the light emitter shines light waves into the human skin, the photodetector detects the light signal reflected by the human body, and the analog front end can obtain the PPG waveform based on the light signal reflected back, and detect blood oxygen and heart rate based on the obtained PPG signal. The traditional PPG sensor module has a large ADC detection range for the PPG signal, and does not need to be processed otherwise to calculate the blood oxygen heart rate. However, the traditional PPG sensor module is expensive and large in size, which increases the production cost of the terminal device and affects the overall structural design of the terminal device. Summary of the invention

[0003] The embodiments of the present application disclose a blood oxygen and heart rate detection method, a terminal device and a storage medium. The present application realizes detection functions such as human blood oxygen and heart rate on the terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0004] Proximity Sensors (PS) are widely used in various electronic devices to detect whether there are objects approaching in a specific direction. However, the light intensity reporting range of conventional proximity light sensors is small, and due to the reflection and diffraction of infrared light caused by the terminal device's own structural parts (that is, infrared light leakage), or the influence of the infrared component of the terminal device's ambient light, the proximity light sensor may have a large basic noise floor integral value in an unobstructed state. In order to increase the adaptability of the entire machine and ensure the consistency of multiple machines, the OFFSET mechanism of the proximity light sensor is introduced at the device level, so that the entire machine in an unobstructed state can output a proximity light noise floor value within a certain range after startup.

[0005] Based on this, the first aspect of the present application provides a blood oxygen heart rate detection method, which is applied to a terminal device, and the method includes: obtaining a light intensity value and a light intensity bias value of a proximity light sensor in the terminal device; determining whether the light intensity value is within a preset range; in response to the light intensity value not being within the preset range, adjusting the light intensity bias value so that the light intensity value is within the preset range; in response to the light intensity value being within the preset range, obtaining a light intensity report value according to the light intensity value and the light intensity bias value, and drawing a photoelectric volume pulse wave PPG waveform according to the light intensity report value. The present application can dynamically adjust the light intensity bias value of the device based on a universal proximity light sensor so that the light intensity value output is within a preset range, so that the PPG waveform of the human body can be accurately detected. The PPG waveform detected by the present application has no faults and continuous signals, and can be used to support the blood oxygen heart rate detection function of the terminal device. The present application realizes the detection functions of human blood oxygen heart rate and the like on the terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0006] As an optional implementation, the determining whether the light intensity value is within a preset range includes: in response to the light intensity value being greater than or equal to a first threshold value or the light intensity value being less than or equal to a second threshold value, determining that the light intensity value is not within the preset range. Based on such a design, the blood oxygen heart rate detection method of the present application can splice normal light intensity values ​​to obtain light intensity reporting values, thereby accurately restoring the human body's PPG waveform.

[0007] As an optional implementation, the determining whether the light intensity value is within a preset range includes: in response to the light intensity value being less than a first threshold value and the light intensity value being greater than a second threshold value, determining that the light intensity value is within a preset range. Based on such a design, the blood oxygen heart rate detection method of the present application can splice normal light intensity values ​​to obtain light intensity reporting values, thereby accurately restoring the human body's PPG waveform.

[0008] As an optional implementation, in response to the light intensity value not being within the preset range, the light intensity bias value is adjusted, including: in response to the light intensity value being greater than a first threshold, the light intensity bias value is increased. Based on such a design, the present application can increase the light intensity bias value when the light intensity value exceeds the first threshold, so that the light intensity value is within the preset range, so that the PPG waveform of the human body can be accurately restored. Based on such a design, the present application can implement detection functions such as human blood oxygen heart rate on a terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0009] As an optional implementation, in response to the light intensity value not being within the preset range, the light intensity bias value is adjusted, including: in response to the light intensity value being less than or equal to a second threshold, the light intensity bias value is reduced. Based on such a design, the present application can reduce the light intensity bias value when the light intensity value is lower than the second threshold, so that the light intensity value is within the preset range, so that the PPG waveform of the human body can be accurately restored. Based on such a design, the present application can implement detection functions such as human blood oxygen heart rate on a terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0010] As an optional implementation, in response to the light intensity value not being within the preset range, the light intensity bias value is adjusted, including: in response to the light intensity value being greater than a first threshold, the light intensity bias value is added with an adjustment value. Based on such a design, the present application can increase the light intensity bias value when the light intensity value exceeds the first threshold, so that the light intensity value is within the preset range, so that the PPG waveform of the human body can be accurately restored. Based on such a design, the present application can implement detection functions such as human blood oxygen heart rate on a terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0011] As an optional implementation, in response to the light intensity value not being within the preset range, the light intensity bias value is adjusted, including: in response to the light intensity value being less than or equal to a second threshold, the light intensity bias value is subtracted from the adjustment value. Based on such a design, the present application can reduce the light intensity bias value when the light intensity value is lower than the second threshold, so that the light intensity value is within the preset range, so that the human body's PPG waveform can be accurately restored. Based on such a design, the present application can implement detection functions such as human blood oxygen heart rate on a terminal device based on low-cost and small-volume hardware conditions (such as proximity light sensors).

[0012] As an optional implementation, the first threshold is greater than the second threshold.

[0013] As an optional implementation, in response to the light intensity value being less than a first threshold value and the light intensity value being greater than a second threshold value, the light intensity reporting value is obtained according to the light intensity value and the light intensity bias value.

[0014] As an optional implementation, the calculation formula for the light intensity reporting value is:

[0015] ADCDATA=PDATA+y(OFFSET);

[0016] Among them, ADCDATA is the light intensity report value, PDATA is the light intensity value, and y(OFFSET) represents a function of the light intensity adjustment value with respect to the light intensity offset value.

[0017] The second aspect of the present application also provides a terminal device, including a processor and a proximity light sensor; wherein the processor is connected to the proximity light sensor; the proximity light sensor is used to sense a light intensity value; and the processor is used to implement the blood oxygen heart rate detection method as described above based on the light intensity value.

[0018] The third aspect of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the blood oxygen heart rate detection method as described above is implemented.

[0019] It should be understood that the terminal device described in the second aspect and the computer-readable storage medium described in the third aspect provided above both correspond to the method of the first aspect described above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 Schematic diagram of the structure of a PPG sensor.

[0022] Figure 2 A schematic diagram of the structure of a proximity light sensor.

[0023] Figure 3 Schematic diagram of the relevant offset value calibration mechanism in the embodiment of the present application.

[0024] Figure 4 This is a diagram of an application scenario of a proximity light sensor.

[0025] Figure 5 A flow chart of a blood oxygen heart rate detection method provided for one embodiment of the present application.

[0026] Figure 6 Schematic diagram of red light PPG waveform and infrared light PPG waveform.

[0027] Figure 7 Schematic diagram for determining the light intensity adjustment value.

[0028] Figure 8 Another schematic diagram for determining the light intensity adjustment value.

[0029] Fig. 9 A schematic diagram showing the light intensity adjustment value as a function of the light intensity bias value.

[0030] Fig.10 It is a curve chart of the collected light intensity values ​​and the light intensity reported values ​​obtained by reverse stitching.

[0031] Fig.11 A flow chart of a blood oxygen heart rate detection method provided for another embodiment of the present application.

[0032] Fig.12 A schematic diagram of the structure of a terminal device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0033] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" is intended to present related concepts in a concrete way.

[0034] In the description of the embodiments of the present application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. "And / or" in the present application is only a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two.

[0035] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0036] At present, with the increasing development of terminal technology, terminal devices have become a part of people's work and life. In order to meet the needs of users for their own health management, most terminal devices can support the user's human body data monitoring function. For example, users can use wearable devices such as smart watches, bracelets or mobile phones to detect human characteristics such as blood oxygen or heart rate.

[0037] Taking the detection of human blood oxygen by terminal equipment as an example, the absorption rates of oxygenated hemoglobin (HbO2) and deoxygenated hemoglobin (Hb) in human blood are different in different light bands, and the incident light is partially absorbed by blood and tissues. The intensity of the absorbed light can be divided into the intensity of light absorbed by other tissue components and the intensity of light absorbed by pulsating arterial blood. For example, the absorption of light by muscles, bones, veins and other connecting tissues is basically unchanged, but blood is different. Due to the flow of blood in the arteries, the absorption of light will change.

[0038] Therefore, it is precisely because the absorption of light by arteries changes while the absorption of light by other tissues remains basically unchanged that the obtained signal can be divided into a direct current (DC) signal and an alternating current (AC) signal. Extracting the AC signal can reflect the characteristics of blood flow. PPG can be understood as a method of irradiating light signals into skin tissue and detecting light signals reflected back through the skin tissue. For example, the PPG signal can be calculated using the blood oxygen saturation calculation formula to obtain the user's blood oxygen saturation.

[0039] In one embodiment, the calculation formula for blood oxygen saturation is:

[0040] SPO2=a*R+b (1)

[0041] Among them, a and b are constants, which can be obtained by calibration of a large number of people. R is the signal ratio of the red light PPG signal to the infrared PPG signal. The specific calculation formula of R is as follows:

[0042] R=PI(RED) / PI(IR) (2)

[0043] Among them, PI(RED) represents the ratio of the AC to DC amount of the red light PPG signal, and PI(IR) represents the ratio of the AC to DC amount of the infrared light PPG signal. The specific calculation formula of PI is as follows:

[0044] PI=AC / DC (3)

[0045] Based on the above formulas (1)-(3), the terminal device can calculate the blood oxygen saturation (SPO2) in the blood through multiple PPG signals of different wavelengths.

[0046] Typically, a PPG sensor for detecting human body characteristics may be configured in a terminal device.

[0047] For example, Figure 1 , which is a schematic diagram of a conventional PPG sensor module. The conventional PPG sensor module may include a light emitter 10, a photodetector 20, an analog front end 30, and a microcontroller unit (MCU) 40. The light emitter 10 may include at least two light emitting diodes (LEDs) with different emission spectra.

[0048] When a user uses a terminal device including the PPG sensor module to monitor human body characteristics (such as blood oxygen and heart rate), a signal can be emitted through the light-emitting diode in the PPG sensor module, and the light signal reflected by human tissue can be received by the photodetector 20. The analog front end 30 can obtain a PPG signal based on the received reflected light signal, and the micro control unit 40 can process the PPG signal to detect the user's blood oxygen and heart rate.

[0049] For a PPG sensor module equipped with an analog front end, the ADC detection range of the PPG signal is large, and no other processing is required to detect blood oxygen and heart rate. However, the cost of the PPG sensor module is high and the volume is large, which increases the production cost of the terminal device and affects the overall structural design of the terminal device.

[0050] The present application provides a blood oxygen heart rate detection method, a terminal device and a storage medium. The present application is based on a universal proximity light sensor, can realize functions such as blood oxygen heart rate detection of a terminal device, can also reduce the hardware cost of the terminal device, and will not affect the layout of other devices of the terminal device.

[0051] Proximity sensors, such as infrared reflective sensors (also known as proximity light sensors), are widely used in various terminal devices to detect whether there is an object approaching in a specific direction. For example, a proximity sensor installed under the screen of a terminal device can detect whether there is an object approaching the screen of a mobile phone. The following description takes the terminal device as a mobile phone as an example, and the proximity light sensor is arranged under the screen of the mobile phone. The proximity light sensor includes a proximity light transmitting end (such as an infrared light source) and a receiving end (such as an infrared light detector). Black isolation foam is usually used inside the mobile phone to isolate the crosstalk between the infrared light source and the infrared light source. The light source of the proximity light sensor 180G can be used to emit red light and infrared light, and may include an infrared light diode and a red light diode. The red light diode is used to emit red light. The photodetector can receive the red light and infrared light reflected back by the infrared light diode and the red light diode after the object is projected, and calculate the blood oxygen value and heart rate value based on the received red light and infrared light. Therefore, the proximity light sensor can be used as a detection sensor in the embodiment of the present application for detecting blood oxygen and heart rate.

[0052] like Figure 2 , which is a schematic diagram of the structure of a proximity light sensor.

[0053] The working principle of the proximity light sensor is: infrared light is emitted by an infrared light source, such as an infrared light emitting diode or an infrared laser; at the same time, the infrared light reflected by the object is received by the infrared light detector, and the intensity of the reflected infrared light is integrated to obtain the integral value PDATA; the proximity distance of the object is sensed according to the size of the integral value PDATA.

[0054] The infrared light indicated by the integral value of the infrared light detector can be divided into two parts. The first part is emitted by the infrared light source, and is reflected and diffracted by the screen or internal structural parts to reach the infrared light detector. The integral value corresponding to the first part is part of the background noise, which can be reduced by the black isolation foam between the infrared light detector and the infrared light source to improve the signal-to-noise ratio. The second part is emitted by the infrared light source, and is reflected by external obstacles to reach the infrared light detector. The integral value of the second part of the infrared light is the effective part of the proximity light sensor.

[0055] It is understandable that the cost of the proximity light sensor is cheaper than that of the traditional PPG sensor module, and the dynamic range of the light intensity value of the proximity light sensor is also smaller. Due to the reflection and diffraction of infrared light caused by the terminal device's own structural parts (that is, infrared light leakage), or the influence of the infrared component of the terminal device's ambient light, the proximity light sensor may have a large basic noise integral value in the unobstructed state. The basic noise may directly exceed the range of the light intensity report output by the proximity light sensor or the terminal device.

[0056] In order to ensure the adaptability of the proximity light algorithm of the entire machine and the consistency of different machines, the embodiment of the present application introduces an offset value calibration mechanism, that is, the embodiment of the present application introduces an OFFSET mechanism of the proximity light sensor.

[0057] As an example, Figure 3 As shown, it is a schematic diagram of the relevant bias value calibration mechanism in the embodiment of the present application. It can be understood that the working principle of the bias value calibration mechanism is as follows: due to the differences in the overall structural parts of different terminal devices, there are different degrees of infrared light leakage in the proximity light sensor; the infrared light leakage leads to inconsistent background noise integral values ​​of different terminal devices, which affects the proximity light sensor's judgment of the proximity of the object; the current value of the infrared light detector is increased or decreased by the DC bias current source to adjust the light intensity value output by the infrared light detector; thereby adjusting the larger or smaller integral value collected by the infrared light detector in the unobstructed state to the target range value, thereby ensuring the consistency of the light intensity reporting value output by the proximity light sensor. The DC bias current source can generate a light intensity bias value. Increasing or decreasing the current value of the infrared light detector by the DC bias current source can adjust the light intensity value detected by the infrared light detector according to the light intensity bias value.

[0058] Figure 4 A schematic diagram of a use scenario of a proximity light sensor provided in an embodiment of the present application. Figure 4 As shown, the light source can emit light outward, and the light emitted by the light source is reflected after touching the finger. The photodetector can receive the reflected light to detect the user's blood oxygen and heart rate.

[0059] See also Figure 5 , Figure 5 A flow chart of a blood oxygen heart rate detection method provided for one embodiment of the present application. The blood oxygen heart rate detection method can be applied in a terminal device. For example, the terminal device can be, but is not limited to, a handheld device, such as a mobile phone, a tablet, a PDA, a mobile internet device (MID), a virtual reality (VR) device, an augmented reality (AR) device, a smart bracelet, a smart watch and other wearable devices.

[0060] The blood oxygen heart rate detection method may include the following steps:

[0061] Step S51, obtaining the light intensity value and the light intensity bias value in the terminal device.

[0062] It can be understood that in one implementation of the present application, the terminal device can obtain the light intensity value and the light intensity bias value of the infrared light through communication between the processor and the sensor.

[0063] It can be understood that, in combination with the above formulas (1) to (3), the PI value is a key parameter for calculating blood oxygen saturation. In other words, the accuracy of the PI will determine the accuracy of blood oxygen detection.

[0064] like Figure 6 As shown in the figure, it is a schematic diagram of the red light PPG waveform and the infrared light PPG waveform. It can be seen that the light intensity report value ADCDATA includes AC+DC components. Therefore, how to accurately splice the light intensity report value ADCDATA is the key to ensure the accuracy of blood oxygen detection.

[0065] It can be understood that based on the proximity light sensor with OFFSET mechanism, in order to obtain the original ADC signal of PPG, the present application reversely splices the light intensity value PDATA from the proximity light sensor, so as to calculate the light intensity report value ADCDATA. Among them, the specific calculation formula of the light intensity report value ADCDATA is as follows:

[0066] ADCDATA=PDATA+y(OFFSET) (4)

[0067] Although the dynamic range of the light intensity value of the proximity light sensor is small, the proximity light sensor can directionally amplify the AC quantity of the PPG signal with a smaller variation range, wherein PDATA represents the light intensity value (mainly the AC quantity of the PPG signal), y(OFFSET) represents the function of the light intensity adjustment value with respect to the light intensity bias value (marked as OFFSET) (mainly the DC quantity of the PPG signal), and ADCDATA represents the light intensity reporting value (AC+DC quantity of the PPG signal).

[0068] In one embodiment of the present application, the determination process of y(OFFSET) is as follows:

[0069] like Figure 7 As shown, place the gray card measurement tool above the screen of the terminal device and keep a fixed distance from the proximity light sensor, so as to keep the first light intensity report unchanged. The infrared light source emits infrared light, and the infrared light detector receives the infrared light reflected by the object. Please refer to Figure 8, driving the infrared light source in the proximity light sensor with a fixed driving current to emit infrared light; setting the light intensity bias value (marked as OFFSET1) to zero, according to the above calculation formula (4), the initial value of the light intensity value PDATA of the proximity light sensor reaches the maximum; increasing the value of the light intensity bias value OFFSET1 at each preset time interval, the light intensity value PDATA will decrease successively; subtracting the initial value of the light intensity value PDATA from the value of the reduced light intensity value PDATA, and according to the subtraction result, the function y(OFFSET) of the light intensity adjustment value with respect to the light intensity bias value OFFSET can be obtained.

[0070] As an example, Fig. 9 In the embodiment of the present application, the light intensity offset value OFFSET is substituted into the y(OFFSET) function to calculate the light intensity adjustment value of the light intensity offset value OFFSET.

[0071] Based on such a design, the present application can detect an accurate light intensity adjustment value, and on the basis of the light intensity adjustment value, it is helpful to improve the accuracy of the proximity light sensor in the proximity light function and blood oxygen heart rate detection function scenarios.

[0072] Step S52, determine whether the light intensity value is within a preset range. If yes, proceed to step S55, otherwise proceed to step S53.

[0073] It can be understood that the terminal device can determine whether the acquired light intensity value PDATA is within a preset range during the process of calculating the light intensity report value ADCDATA.

[0074] For example, if the obtained light intensity value PDATA is within the preset range, it means that the light intensity value PDATA is a normal light intensity value, so the terminal device can use the light intensity value PDATA to reversely splice the light intensity report value ADCDATA to draw the PPG waveform. If the obtained light intensity value PDATA is not within the preset range, it means that the light intensity value PDATA is not a normal light intensity value, and the light intensity offset value OFFSET needs to be adjusted until the light intensity value PDATA is within the preset range.

[0075] Step S53, adjusting the light intensity bias value.

[0076] In one embodiment of the present application, when the light intensity value PDATA is not within the preset range, it is necessary to adjust the light intensity bias value OFFSET. For example, the light intensity bias value OFFSET may be adjusted by reducing the value of the light intensity bias value OFFSET or increasing the value of the light intensity bias value OFFSET, thereby making the light intensity value PDATA output within the preset range.

[0077] Step S54, recalculating the light intensity value.

[0078] In one embodiment of the present application, the terminal device may recalculate the light intensity value PDATA after adjusting the light intensity offset value OFFSET.

[0079] Step S55, determining that the light intensity value in the terminal device is normal, and calculating the light intensity reporting value according to the light intensity value and the light intensity offset value.

[0080] It can be understood that in one embodiment of the present application, when the light intensity value PDATA is within the preset range, it indicates that the light intensity value PDATA is a normal light intensity value, and the light intensity value PDATA can be used to reversely splice the light intensity reporting value ADCDATA. The terminal device can calculate the light intensity reporting value ADCDATA according to the above formula (4), thereby drawing the PPG waveform.

[0081] like Fig.10 As shown, curve S91 is the curve of PDATA collected by the terminal device, and curve S92 is the original ADCDATA curve after reverse splicing. It can be seen that by adopting the embodiment of the present application, the PPG waveform of the human body can be accurately restored.

[0082] The present application dynamically adjusts the light intensity bias value of the proximity light sensor so that the light intensity value PDATA output is within a preset range, and accurately detects the PPG waveform of the human body through a reverse splicing mechanism. The detected PPG waveform has no discontinuities and the signal is continuous, and the AC+DC components can be completely separated, thereby realizing related functions such as blood oxygen heart rate detection of the terminal device.

[0083] This application realizes human blood oxygen heart rate and other detection functions on the terminal device based on low-cost and small-volume hardware conditions.

[0084] The present application can also be used to detect other human vital signs parameters (such as blood sugar, blood pressure, respiratory rate, pulse variability index, carboxyhemoglobin and other parameters). In addition, the present application is not limited to red light and infrared light, and the wavelength and quantity of the light used are not specifically limited.

[0085] See also Fig.11 , Fig.11 A flow chart of a blood oxygen heart rate detection method provided for another embodiment of the present application. The blood oxygen heart rate detection method may include the following steps:

[0086] Step S101, obtaining a light intensity value and a light intensity bias value in a terminal device.

[0087] Step S102, determining whether the light intensity value is greater than a first threshold value. If yes, proceed to step S103, otherwise proceed to step S104.

[0088] It can be understood that the terminal device can determine whether the acquired light intensity value PDATA is within a preset range during the process of calculating the light intensity report value ADCDATA.

[0089] For example, the first threshold is 1023. If the light intensity value PDATA is greater than 1023, it means that PDATA is too large and the light intensity offset value OFFSET needs to be adjusted.

[0090] Step S103, adding the light intensity offset value OFFSET to the adjustment value.

[0091] For example, when it is determined that the light intensity value PDATA is greater than 1023, the terminal device may add an adjustment value to the light intensity offset value OFFSET. For example, in a specific implementation, the terminal device may add 1 to the light intensity offset value OFFSET.

[0092] Step S104, determining whether the light intensity value is less than or equal to a second threshold value. If yes, proceed to step S105, otherwise proceed to step S107.

[0093] In this embodiment, the second threshold value may be 0. In other words, the light intensity offset value OFFSET is very large, resulting in a very small output light intensity value PDATA. Therefore, the light intensity offset value OFFSET needs to be adjusted to ensure that the light intensity value PDATA is output within a preset range.

[0094] Step S105: subtract the adjustment value from the light intensity offset value OFFSET.

[0095] For example, when the terminal device determines that the light intensity value PDATA is less than or equal to 0, the terminal device subtracts an adjustment value from the light intensity offset value OFFSET. In a specific implementation, the terminal device may subtract 1 from the light intensity offset value OFFSET.

[0096] It can be understood that in some other implementations, the adjustment value may also be 2, 3 or other values, and this application does not make any specific limitation on this.

[0097] Step S106, recalculating the light intensity value PDATA.

[0098] After adjusting the light intensity bias value, the terminal device may recalculate the light intensity value PDATA and confirm whether the light intensity value PDATA is between the first threshold and the second threshold.

[0099] Step S107, determining that the light intensity value in the terminal device is a normal light intensity value, and calculating a light intensity reporting value according to the light intensity value.

[0100] It can be understood that when the light intensity value PDATA is between the first threshold and the second threshold, it indicates that the light intensity value PDATA is a normal light intensity value PDATA. Then, the light intensity value PDATA can be used to reversely splice the light intensity report value ADCDATA. The terminal device can calculate the light intensity report value ADCDATA according to the above formula (4), and thus draw the PPG waveform according to the calculated light intensity report value ADCDATA.

[0101] The blood oxygen heart rate detection method of the present application can be based on a universal proximity light sensor and dynamically adjust the light intensity bias value OFFSET of the device so that the light intensity value PDATA output is within the target range. The PPG waveform of the human body can be accurately detected. The detected PPG waveform has no discontinuities and continuous signals, and the AC+DC components can be completely separated to support the blood oxygen detection function.

[0102] See also Fig.12 , is a schematic diagram of the hardware structure of the terminal device 100 in an embodiment of the present application. The terminal device 100 may include a processor 110, an internal memory 120, an external memory interface 130, a display screen 140, and a sensor module 150. The sensor module 150 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0103] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0104] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0105] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0106] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0107] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0108] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0109] The terminal device 100 implements the display function through a GPU, a display screen 140, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 140 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0110] It is understood that the processor 110 is connected to the proximity light sensor in the sensor module 150, and the proximity light sensor can be used to sense the light intensity value. The terminal device 100 can obtain the light intensity value and the light intensity bias value of the proximity light sensor through communication between the processor 110 and the proximity light sensor.

[0111] The processor 110 may also be configured to determine whether the acquired light intensity value is within a preset range.

[0112] For example, the processor 110 may determine that the light intensity value is not within the preset range when the light intensity value is greater than or equal to the first threshold or the light intensity value is less than or equal to the second threshold. The processor 110 may determine that the light intensity value is within the preset range when the light intensity value is less than the first threshold and the light intensity value is greater than the second threshold. It can be understood that, as an optional example, the first threshold is 1023 and the second threshold is 0.

[0113] In a possible scenario, when the light intensity value is not within a preset range, the processor 110 may adjust the light intensity bias value of the proximity light sensor so that the light intensity value is within the preset range.

[0114] In another possible scenario, the processor 110 can also obtain a light intensity report value according to the light intensity value and the light intensity bias value when the light intensity value is within a preset range, and draw a photoelectric volume pulse wave PPG waveform according to the light intensity report value. Therefore, the present application can realize the detection functions of human blood oxygen heart rate and the like on the terminal device based on a low-cost and small-volume proximity light sensor.

[0115] In a possible scenario, the processor 110 may increase the light intensity bias value when the light intensity value is greater than or equal to the first threshold value. For example, when the light intensity value is greater than or equal to 1023, the processor 110 increases the light intensity bias value by 1 so that the light intensity value output is within a preset range.

[0116] In another possible scenario, the processor 110 may also reduce the light intensity bias value when the light intensity value is less than or equal to the second threshold. For example, when the light intensity value is less than or equal to 0, the processor 110 subtracts 1 from the light intensity bias value so that the light intensity value output is within a preset range. The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 140, where N is a positive integer greater than 1.

[0117] The internal memory 120 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc. The non-volatile memory may include a disk storage device and a flash memory. Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.

[0118] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.

[0119] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0120] The external memory interface 130 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 130 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.

[0121] The internal memory 120 or the external memory interface 130 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the blood oxygen heart rate detection method executed on the terminal device 100 in the above embodiment can be implemented to implement the functions of blood oxygen heart rate detection and the like of the terminal device 100.

[0122] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer executes the above-mentioned related steps to implement the blood oxygen heart rate detection method in the above-mentioned embodiment.

[0123] In addition, some embodiments of the present application also provide a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the blood oxygen heart rate detection method in the above-mentioned method embodiments.

[0124] Among them, the terminal device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0125] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0127] The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated in a processing unit, or each unit may exist physically separately, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of some embodiments of the present application are essentially or partly contributed to the prior art or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of some embodiments of the present application and are not limiting. Although some embodiments of the present application are described in detail with reference to the preferred embodiments, ordinary technicians in this field should understand that the technical solutions of some implementation examples of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of some embodiments of the present application.

Claims

1. A blood oxygen heart rate detection method, applied to a terminal device, characterized in that: The method comprises: Obtaining a light intensity value and a light intensity bias value of a proximity light sensor in the terminal device; Determining whether the light intensity value is within a preset range; In response to the light intensity value not being within the preset range, adjusting the light intensity bias value so that the light intensity value is within the preset range; In response to the light intensity value being within the preset range, obtaining a light intensity report value according to the light intensity value and the light intensity bias value, and drawing a photoplethysmogram (PPG) waveform according to the light intensity report value; The calculation formula of the light intensity reporting value is: ADCDATA = PDATA + y(OFFSET); Among them, ADCDATA is the light intensity report value, PDATA is the light intensity value, and y(OFFSET) represents a function of the light intensity adjustment value with respect to the light intensity offset value.

2. The blood oxygen heart rate detection method according to claim 1, characterized in that: Determining whether the light intensity value is within a preset range includes: In response to the light intensity value being greater than or equal to a first threshold or the light intensity value being less than or equal to a second threshold, it is determined that the light intensity value is not within the preset range.

3. The blood oxygen heart rate detection method according to claim 1, characterized in that: Determining whether the light intensity value is within a preset range includes: In response to the light intensity value being less than a first threshold and the light intensity value being greater than a second threshold, it is determined that the light intensity value is within the preset range.

4. The blood oxygen heart rate detection method according to claim 1, characterized in that: In response to the light intensity value not being within the preset range, adjusting the light intensity bias value comprises: In response to the light intensity value being greater than or equal to a first threshold, the light intensity bias value is increased.

5. The blood oxygen heart rate detection method according to claim 1, characterized in that: In response to the light intensity value not being within the preset range, adjusting the light intensity bias value comprises: In response to the light intensity value being less than or equal to a second threshold, the light intensity bias value is decreased.

6. The blood oxygen heart rate detection method according to claim 4, characterized in that: In response to the light intensity value not being within the preset range, adjusting the light intensity bias value comprises: In response to the light intensity value being greater than or equal to the first threshold, an adjustment value is added to the light intensity offset value.

7. The blood oxygen heart rate detection method according to claim 5, characterized in that: In response to the light intensity value not being within the preset range, adjusting the light intensity bias value comprises: In response to the light intensity value being less than or equal to the second threshold, the light intensity offset value is reduced by an adjustment value.

8. The blood oxygen heart rate detection method according to claim 2 or 3, characterized in that: The first threshold is greater than the second threshold.

9. The blood oxygen heart rate detection method according to claim 1, characterized in that: In response to the light intensity value being less than a first threshold and the light intensity value being greater than a second threshold, the light intensity reporting value is obtained according to the light intensity value and the light intensity offset value.

10. A terminal device, characterized in that: It includes a processor and a proximity light sensor; wherein the processor is connected to the proximity light sensor; The proximity light sensor is used to sense the light intensity value; The processor is used to implement the blood oxygen heart rate detection method as described in any one of claims 1 to 9 based on the light intensity value.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the blood oxygen heart rate detection method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Method and device for measuring hypoperfusion oxyhemoglobin saturation and storage medium

    CN113017623A

  • Blood oxygen and heart rate measuring method, terminal equipment and storage medium

    CN116746891A