Ppg module test method, device, electronic equipment and readable storage medium

By acquiring optical signal data from the PPG module at different temperatures to generate calibration data, the problem of temperature affecting the detection results of the PPG module was solved, thus improving the accuracy of heart rate and blood oxygen saturation detection.

CN116570261BActive Publication Date: 2026-01-23LUXSHARE ITECH(ZHEJIANG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310489240.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2026-01-23
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

The detection results of the existing PPG module are affected by temperature, resulting in inaccurate heart rate and blood oxygen saturation detection.

Method used

By acquiring optical signal data from the PPG module at different preset temperatures, calibration data is generated and sent to the PPG module to calibrate its light emission operation, ensuring the accuracy of light emission operation at actual temperatures.

Benefits of technology

This improves the detection accuracy of the PPG module at different temperatures, ensuring the precision of heart rate and blood oxygen saturation detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116570261B_ABST
    Figure CN116570261B_ABST
Patent Text Reader

Abstract

The application relates to a PPG module testing method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring first optical signal data of a PPG module at multiple preset temperatures, wherein the values of the multiple preset temperatures are different; for each preset temperature, acquiring first preset signal data corresponding to the preset temperature, and determining first calibration data according to the first preset signal data and the first optical signal data; and sending the first calibration data to the PPG module. The calibration of the PPG module is realized by generating the first calibration data based on the first optical signal data and the first preset signal data at different preset temperatures, so that the PPG module can call the corresponding first calibration data based on the actual temperature to perform accurate light-emitting operation in application, thereby ensuring the accuracy of heart rate and blood oxygen saturation detection.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of wearable devices, and particularly relates to a PPG module testing method and device, an electronic device, and a readable storage medium. BACKGROUND

[0002] Heart rate and blood oxygen saturation are two important parameters reflecting the physiological state of the human body, and are two important indicators that many wearable physiological parameter monitoring devices hope to reflect. For example, a smart watch uses a PPG (Photoplethysmography, photoplethysmogram) module to detect pulse and blood oxygen signals through an optical method to obtain heart rate and blood oxygen saturation. However, in actual applications, the light-emitting device in the PPG module is affected by temperature, which causes the wavelength and light intensity of the generated light to not meet the expected value, thereby affecting the detection accuracy of heart rate and blood oxygen saturation. SUMMARY

[0003] The present application provides a PPG module testing method and device, an electronic device, and a readable storage medium, and aims to solve the technical problem of inaccurate detection results of heart rate and blood oxygen saturation caused by temperature affecting the PPG module in the prior art.

[0004] To solve the above technical problems or at least partially solve the above technical problems, the present application provides a PPG module testing method, which is applied to a PPG module testing device connected to a PPG module. The PPG module testing method comprises the following steps:

[0005] Obtaining first light signal data of the PPG module at a plurality of preset temperatures, wherein the values of the plurality of preset temperatures are different;

[0006] For each of the preset temperatures, obtaining first preset signal data corresponding to the preset temperature, and determining first calibration data according to the first preset signal data and the first light signal data;

[0007] Sending the first calibration data to the PPG module.

[0008] Optionally, the step of obtaining first light signal data of the PPG module at a plurality of preset temperatures comprises:

[0009] Taking the smallest undetected temperature in the plurality of preset temperatures as a target temperature, and sending a first driving signal to the PPG module to enable the PPG module to perform a light-emitting operation according to the first driving signal at a first driving current, wherein the first driving current is a maximum driving current;

[0010] The real-time temperature of the PPG module is obtained, and when the real-time temperature reaches the target temperature, a second driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a second driving current according to the second driving signal.

[0011] Acquire the first optical signal data of the PPG module and correlate the first optical signal data with the target temperature;

[0012] The target temperature is taken as the detected temperature, and the execution steps are returned: the smallest undetected temperature among the multiple preset temperatures is taken as the target temperature, until all the preset temperatures are detected temperatures.

[0013] Optionally, the step of sending the second drive signal to the PPG module includes:

[0014] Generate a second driving signal corresponding to the emitter set in the PPG module, wherein there are multiple emitters and the number of the second driving signals is the same as the number of emitters;

[0015] Multiple second driving signals are sequentially sent to the PPG module at a first preset time interval, so that the light emitter in the PPG module corresponding to the second driving signal performs a light emission operation with the second driving current.

[0016] Optionally, the PPG module testing device includes a spectrometer, and the step of acquiring the first optical signal data of the PPG module includes:

[0017] Obtain the most recent calibration time of the spectrometer and determine whether the difference between the most recent calibration time and the current time is greater than the preset calibration time.

[0018] If the difference between the most recent calibration time and the current time is greater than the preset calibration duration, then the spectrometer is calibrated, and the most recent calibration time is updated based on the calibration operation.

[0019] The first optical signal data of the PPG module is obtained through the spectrometer.

[0020] Optionally, the PPG module testing device includes a laser generator and a light intensity generator, and the step of calibrating the spectrometer includes:

[0021] A calibration signal is sent to the laser generator so that the laser generator or light intensity generator sends a calibration light signal based on the calibration signal;

[0022] The received signal data is obtained by receiving the calibration optical signal through the spectrometer.

[0023] Acquire the preset reference signal data corresponding to the calibration optical signal, and calibrate the spectrometer based on the preset reference signal data and the received signal data.

[0024] Optionally, the PPG module testing device includes a light-shielding plug, and the method further includes:

[0025] The light-blocking plug is controlled to seal the light-transmitting hole of the PPG module;

[0026] A third driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a third driving current according to the third driving signal;

[0027] Acquire the acquisition signal output by the optical acquisition module in the PPG module;

[0028] The PPG module is determined to have light leakage based on the acquired signal.

[0029] Optionally, the method further includes:

[0030] For each of the PPG modules, a plurality of fourth driving signals corresponding to a preset frequency of the light emitter are generated, and each of the fourth driving signals corresponds to a different driving current.

[0031] At each second preset interval, a fourth driving signal is sent to the PPG module, and the light emitter in the PPG module corresponding to the fourth driving signal performs a light emission operation with the corresponding driving current.

[0032] Acquire the second optical signal data of the PPG module corresponding to each driving current, and acquire the second preset signal data corresponding to each driving current;

[0033] The second calibration data is determined based on the second preset signal data and the second optical signal data, and the second calibration data is sent to the PPG module.

[0034] To achieve the above objectives, the present invention also provides a PPG module testing device, which is connected to a PPG module and includes:

[0035] The first acquisition module is used to acquire first optical signal data of the PPG module at multiple preset temperatures, wherein the values ​​of the multiple preset temperatures are different;

[0036] The second acquisition module is used to acquire first preset signal data corresponding to each preset temperature, and determine first calibration data based on the first preset signal data and the first optical signal data.

[0037] The first transmitting module is used to transmit the first calibration data to the PPG module.

[0038] To achieve the above objectives, the present invention also provides an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the PPG module testing method as described above.

[0039] To achieve the above objectives, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the PPG module testing method as described above.

[0040] This invention proposes a PPG module testing method, apparatus, electronic device, and readable storage medium. The method involves acquiring first optical signal data from a PPG module at multiple preset temperatures, wherein the preset temperatures have different values. For each preset temperature, first preset signal data corresponding to that temperature is acquired, and first calibration data is determined based on the first preset signal data and the first optical signal data. The first calibration data is then sent to the PPG module. By generating first calibration data based on the first optical signal data and the first preset signal data at different preset temperatures, the PPG module is calibrated. This allows the PPG module to perform accurate light emission operations in applications by calling the corresponding first calibration data based on the actual temperature, thereby ensuring the accuracy of heart rate and blood oxygen saturation detection. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating the first embodiment of the PPG module testing method of the present invention;

[0044] Figure 2 This is a schematic diagram illustrating the light leakage detection method of the PPG module of the present invention.

[0045] Figure 3 This is a schematic diagram of the structure of an embodiment of the PPG module testing device of the present invention;

[0046] Figure 4 This is a schematic diagram showing the rotational position of a unit module in the PPG module testing device of the present invention.

[0047] Figure 5 This is a schematic diagram of the module structure of the electronic device of the present invention. Detailed Implementation

[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0049] This invention provides a PPG module testing method, applied to a PPG module testing device, with reference to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the PPG module testing method of the present invention. The PPG module testing device is connected to the PPG module, and the PPG module testing method includes:

[0050] Step S10: Obtain first optical signal data of the PPG module at multiple preset temperatures, wherein the values ​​of the multiple preset temperatures are different;

[0051] The specific values ​​and number of preset temperatures can be set based on the actual application scenario. For example, in this embodiment, the minimum preset temperature is set to 20℃, the maximum preset temperature is set to 40℃, and multiple preset temperatures are obtained within the range of 20℃ to 40℃, with a step size of 2℃. In actual implementation, the minimum, maximum, and step size of the preset temperature can all be set according to actual needs.

[0052] The first optical signal data is used to reflect the light emission of the PPG module; the optical signal data includes, but is not limited to, the wavelength and intensity of light; specific devices can be set to collect the first optical signal data based on actual needs, such as a spectrometer.

[0053] The PPG module testing device is connected to the PPG module. The PPG module testing device sends a drive signal to the PPG module to make the PPG module perform a light emission operation. When the PPG module performs a light emission operation, the spectrometer obtains the first light signal data by collecting the light signal.

[0054] Step S20: For each preset temperature, obtain the first preset signal data corresponding to the preset temperature, and determine the first calibration data based on the first preset signal data and the first optical signal data.

[0055] The first preset signal data is used to indicate the expected characteristics of the signal generated by the PPG module during its light emission operation at a preset temperature. It is understood that the tolerances of the emitter in the PPG module, circuit control errors, and other reasons may cause the actual light emitted by the emitter to not match the expected characteristics, such as deviations in wavelength and light intensity. The first optical signal data indicates the characteristics of the light actually emitted by the emitter in the PPG module, while the first preset signal data indicates the characteristics of the light that the PPG module needs to emit at the current preset temperature. Therefore, the first calibration data can be determined by the first optical signal data and the first preset signal data, enabling the PPG module to emit light corresponding to the first preset signal data based on the first calibration data. The first calibration data indicates the difference between the expected characteristics and the actual characteristics of the light emitted by the PPG module.

[0056] Step S30: Send the first calibration data to the PPG module.

[0057] After the first calibration data is sent to the PPG module, the PPG module can use the first calibration data to calibrate the light emission operation at the corresponding preset temperature, enabling accurate generation of light that meets the desired characteristics. Furthermore, after sending the first calibration data to the PPG module, the aforementioned operation can be performed again to determine whether the light emitted by the PPG module meets the desired characteristics under the influence of the first calibration data. If it does, the calibration is complete; if not, the first calibration data is redefined and updated in the PPG module.

[0058] This embodiment calibrates the PPG module by generating first calibration data based on the first optical signal data and the first preset signal data at different preset temperatures. This enables the PPG module to perform accurate light emission operations by calling the corresponding first calibration data based on the actual temperature during application, thereby ensuring the accuracy of heart rate and blood oxygen saturation detection.

[0059] Furthermore, in the second embodiment of the PPG module testing method of the present invention based on the first embodiment, step S10 includes the following steps:

[0060] Step S11: The smallest undetected temperature among the multiple preset temperatures is taken as the target temperature, and a first driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a first driving current according to the first driving signal, wherein the first driving current is the maximum driving current.

[0061] Step S12: Obtain the real-time temperature of the PPG module, and when the real-time temperature reaches the target temperature, send a second driving signal to the PPG module so that the PPG module performs a light emission operation with a second driving current according to the second driving signal.

[0062] Step S13: Obtain the first optical signal data of the PPG module and associate the first optical signal data with the target temperature;

[0063] Step S14: Take the target temperature as the detected temperature and return to the execution step: take the smallest undetected temperature among the multiple preset temperatures as the target temperature until all the preset temperatures are detected temperatures.

[0064] It is understandable that the temperature of the PPG module can be controlled by external heating methods such as a constant temperature chamber. However, this method occupies a large space and is costly. Therefore, in this embodiment, the temperature of the PPG module is controlled by controlling the self-heating of the PPG module.

[0065] It is understandable that when the PPG module operates at its maximum drive current, the temperature of related components, such as the LED junction, rises, leading to an increase in the PPG module temperature. It is also understandable that in practical applications, the requirement for the first drive current is that the temperature of the PPG module operating at the first drive current can cover all target temperatures; that is, the first drive current can be set to be smaller than the maximum drive current. The larger the first drive current, the faster the temperature rises. The specific value of the first drive current can be set based on actual needs.

[0066] Since the PPG module itself generates heat, the temperature gradually increases. To improve testing efficiency, the PPG module temperature can be gradually controlled starting from the minimum target temperature. Once a target temperature is reached, the PPG module is kept at that target temperature. Specifically, the PPG module is controlled to operate with the second drive current. Simultaneously, the first calibration data at that target temperature is determined through the steps described in the previous embodiment. After determining the first calibration data, the PPG module is again controlled to operate with the first drive current until all target temperatures are traversed, obtaining the first calibration data corresponding to all target temperatures. The specific value of the second drive current can be set based on actual application needs; in this embodiment, 20mA is used as an example.

[0067] Further, step S12 includes the following steps:

[0068] Step S121: Generate a second driving signal corresponding to the light emitter set in the PPG module, wherein there are multiple light emitters, and the number of the second driving signals is the same as the number of light emitters;

[0069] Step S122: A plurality of the second driving signals are sequentially sent to the PPG module at a first preset time interval, so that the light emitter in the PPG module corresponding to the second driving signal performs a light emission operation with the second driving current.

[0070] It is understandable that, based on the different functions implemented by the PPG module, the specific light emitters set on the PPG module will also be different. In this embodiment and subsequent embodiments, green LEDs, red LEDs and infrared LEDs are set on the PPG module as examples for illustration.

[0071] Upon reaching each target temperature, the PPG module maintains the current target temperature and acquires the first optical signal data at that temperature. Specifically, second driving signals corresponding to the green LED, red LED, and infrared LED are generated respectively, and a second driving signal is sent to the PPG module at a first preset time interval, so that the PPG module drives the corresponding LED to emit light based on the second driving signal. The specific value of the first preset time interval can be set according to the actual application scenario and needs. In this embodiment, 50ms is used as an example. For example, if the second driving signals corresponding to the green LED, red LED, and infrared LED are sent to the PPG module at 50ms intervals, the PPG module first drives the green LED to emit light with a current of 20mA. After 50ms, it drives the red LED to emit light with a current of 20mA. After 50ms, it drives the infrared LED to emit light with a current of 20mA. After 50ms, the first optical signal data at the target temperature is acquired, and the first driving signal is sent to the PPG module to control the PPG module to heat up.

[0072] Furthermore, the PPG module testing device includes a spectrometer, and step S13 includes the following steps:

[0073] Step S131: Obtain the most recent calibration time of the spectrometer and determine whether the difference between the most recent calibration time and the current time is greater than the preset calibration time.

[0074] Step S132: If the difference between the most recent calibration time and the current time is greater than the preset calibration duration, then perform a calibration operation on the spectrometer and update the most recent calibration time based on the calibration operation.

[0075] Step S133: Obtain the first optical signal data of the PPG module through the spectrometer.

[0076] It is understandable that during large-scale production, the spectrometer operates continuously for extended periods with high testing frequency and intensity. Combined with vibrations and humidity in the measurement environment, inaccurate measurement results may occur after a period of use. To address this issue, this embodiment includes a calibration operation with a preset calibration duration. The preset calibration duration indicates the effective calibration time; that is, the spectrometer's detection is considered accurate within the preset calibration duration after the calibration operation. Once the preset calibration duration is exceeded, the calibration operation needs to be re-executed. The specific value of the preset calibration duration can be set based on the actual application scenario, such as 45 minutes. Specifically, the calibration operation can be:

[0077] The PPG module testing device includes a laser generator and a light intensity generator. Step S132 includes the following steps:

[0078] Step S1321: Send a calibration signal to the laser generator so that the laser generator or light intensity generator sends a calibration light signal based on the calibration signal;

[0079] Step S1322: Receive the calibration light signal through the spectrometer to obtain received signal data;

[0080] Step S1323: Obtain the preset reference signal data corresponding to the calibration optical signal, and calibrate the spectrometer according to the preset reference signal data and the received signal data.

[0081] A laser generator is used to generate monochromatic light of a fixed wavelength; a light intensity generator is used to generate monochromatic light of a fixed intensity. It is understood that the parameters of the light emitted by the laser generator and the light intensity generator, i.e., the calibration light signal, are known. Therefore, the spectrum analyzer can be calibrated by comparing the calibration light signal with the received signal data actually detected by the spectrum analyzer. The specific calibration method can be set based on the actual application scenario. In this embodiment, the least squares method is used as an example. Specifically:

[0082] Understandably, a spectrometer decomposes the composite light emitted by an LED into monochromatic light of different wavelengths. This monochromatic light is then processed by a dispersive grating element, a linear array CCD light acquisition module, and an analog-to-digital converter (A / D converter) to obtain acquired data. This acquired data undergoes signal processing and transformation by a processor, and is then converted using colorimetric formulas to achieve colorimetric measurement of the LED. The image position of the linear array CCD light acquisition module in the spectrometer has a linear relationship with the peak wavelength of the LED. Therefore, the spectrometer can be calibrated by calibrating the linear relationship between the image position of the linear array CCD light acquisition module and the peak wavelength of the LED. Specifically, the linear regression equation of the spectrometer is set as follows:

[0083] λ=A0+Cn

[0084] Where λ is the peak wavelength of the LED, and C n Let A0 be the image position and A0 be the coefficients.

[0085] The laser generator emits four different wavelengths of monochromatic light: 540nm green, 660nm red, 805nm infrared, and 940nm infrared. A spectrometer detects the monochromatic light emitted by the laser generator, obtaining received signal data including the image position C and the LED peak wavelength λ. Since the four different wavelengths of monochromatic light emitted by the laser generator are known calibration wavelengths, the least squares method can be used to determine the measurement error of the spectrometer, thereby determining the values ​​of the coefficients in the linear regression equation, thus obtaining an accurate linear regression equation and completing the calibration. Light intensity calibration follows the same principle and will not be elaborated further.

[0086] This embodiment enables the calibration of the spectrometer to ensure its accuracy.

[0087] Furthermore, in the third embodiment of the PPG module testing method of the present invention based on the first embodiment, the PPG module testing device includes a light-shielding plug, and the method further includes the following steps:

[0088] Step S40: Control the light-blocking plug to seal the light-transmitting hole of the PPG module;

[0089] Step S50: Send a third driving signal to the PPG module so that the PPG module performs a light emission operation with a third driving current according to the third driving signal;

[0090] Step S60: Obtain the acquisition signal output by the optical acquisition module in the PPG module;

[0091] Step S70: Determine whether the PPG module has light leakage based on the acquired signal.

[0092] The light-transmitting aperture includes the light-emitting aperture corresponding to the light emitter and the light-inlet aperture corresponding to the light-collecting module;

[0093] In actual production, gaps may appear in the watch, causing light from the light outlet to leak into the light inlet, affecting the detection of the PPG module. To avoid this problem, a light leakage detection is set up.

[0094] See Figure 2The light-blocking plug is controlled to seal the light-exit and light-inlet holes. Specifically, the movement of the light-blocking plug can be achieved by controlling an electromagnetic pneumatic valve. The electromagnetic pneumatic valve pushes the light-blocking plug to seal the light-transmitting hole, while applying a constant pressure of 15N to ensure that the light-blocking plug completely seals the light-transmitting hole. At this time, the PPG module's light acquisition module cannot detect external light signals. First, the emitter of the PPG module is controlled to not emit light. At this time, the static detection signal of the light acquisition module (taking the current of the photodiode as an example) is acquired. The static detection signal represents the detection signal of the light acquisition module when there is no light. Then, a third drive signal is sent to the PPG module so that the PPG module can detect the light signals according to the third drive signal. The third driving current is used to perform the light-emitting operation. Specifically, the PPG module controls the red LED, green LED, and infrared LED to emit monochromatic light with a frequency of 256Hz and a driving current of 20mA for 10 seconds, according to the third driving signal. The acquisition signal from the light acquisition module is then obtained. When the acquisition signal matches the static detection signal, it indicates that the light entrance aperture remains dark when the PPG module controls the light emitter to emit light according to the third driving signal, confirming that there is no light leakage problem. However, when the acquisition signal does not match the static detection signal, it indicates that light appears in the light entrance aperture when the PPG module controls the light emitter to emit light according to the third driving signal, indicating a light leakage problem. It should be noted that in practical applications, a certain degree of tolerance is allowed. Therefore, a light leakage error threshold can be set. When the difference between the acquisition signal and the static detection signal is less than or equal to the light leakage error threshold, it is considered that there is no light leakage problem. When the difference between the acquisition signal and the static detection signal is greater than the light leakage error threshold, it is considered that a light leakage problem exists.

[0095] This embodiment can detect light leakage in a watch, avoiding the impact of light leakage on the light acquisition module and thus ensuring the accuracy of the detection.

[0096] Furthermore, in the fourth embodiment of the PPG module testing method of the present invention based on the first embodiment, the method further includes the step of:

[0097] Step S80: For each of the PPG modules, generate a plurality of fourth driving signals corresponding to a preset frequency of the light emitter, and each of the fourth driving signals corresponds to a different driving current.

[0098] Step S90: Send a fourth driving signal to the PPG module at every second preset interval, so that the light emitter in the PPG module corresponding to the fourth driving signal can perform a light emission operation with the corresponding driving current;

[0099] Step S100: Obtain the second optical signal data of the PPG module corresponding to each driving current, and obtain the second preset signal data corresponding to each driving current;

[0100] Step S110: Determine the second calibration data based on the second preset signal data and the second optical signal data, and send the second calibration data to the PPG module.

[0101] Since the PPG module needs to control the emitter to emit different lights based on different drive currents during use, it is also necessary to calibrate the PPG module under different drive currents.

[0102] It is understandable that the specific setting of the drive current corresponding to the fourth drive signal can be selected based on actual needs; for example, in this embodiment, the fourth drive signal corresponds to:

[0103] The green LED has a driving current of 10mA, 20mA, 30mA, 40mA, 50mA, 60mA, 70mA, 80mA, 90mA, and 100mA at 128Hz.

[0104] The red LED has a corresponding 256Hz drive current of 10mA, 20mA, 30mA, 40mA, 50mA, 60mA, 70mA, 80mA, 90mA, 100mA, 120mA, 140mA, and 160mA.

[0105] The infrared LED has a corresponding 128Hz drive current of 10mA, 20mA, 35mA, 45mA, 55mA, 65mA, 75mA, 85mA, 95mA, 105mA, and 125mA.

[0106] It should be noted that since the effective spectrum of the PPG module signal is mainly concentrated in the range of 0.8Hz to 8Hz, according to the Nyquist sampling theorem, the sampling frequency should be no less than twice the highest frequency in the analog signal spectrum to ensure that the analog signal is not distorted when recovering it. Therefore, the PPG module mainly uses a sampling rate of 256Hz. However, the emitter often requires tens of mA of drive current to detect the drive signal well. Therefore, in this embodiment, the PPG module adopts a low duty cycle operating mode, using a frequency of 1024Hz or higher. The maximum drive current for the green LED is 100mA, the maximum drive current for the red LED is 160mA, and the maximum drive current for the infrared LED is 125mA. The emitter of the PPG module is controlled by a clock signal with a duty cycle of 1 to 20%, which reduces the power consumption of the light acquisition module in the PPG module while ensuring that the quality of the acquired signal is not degraded.

[0107] When the emitter emits light with the aforementioned fourth driving signal, the spectrometer synchronously acquires the corresponding second optical signal data. It can be understood that one emitter and one driving current correspond to one set of second optical signal data. The second calibration data is determined by comparing the second optical signal data with the corresponding second preset signal data of the emitter under the driving current.

[0108] The specific value of the second preset time interval can be set based on the actual application scenario and needs. In this embodiment, 50ms is used as an example for explanation.

[0109] It should be noted that the calibration based on different drive currents in this embodiment can be performed separately, or it can be combined with the aforementioned target temperature. For example, at each target temperature, the calibration based on different drive currents in this embodiment can be performed, thereby combining the different dimensions of target temperature and drive current for comprehensive calibration.

[0110] This embodiment can calibrate the emitter under different drive currents, ensuring the accuracy of light emission and thus ensuring the accuracy of PPG module detection.

[0111] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0113] This application also provides a PPG module testing device for implementing the above-described PPG module testing method. The PPG module testing device includes a main control board connected to the PPG module. The main control board includes:

[0114] The first acquisition module is used to acquire first optical signal data of the PPG module at multiple preset temperatures, wherein the values ​​of the multiple preset temperatures are different;

[0115] The second acquisition module is used to acquire first preset signal data corresponding to each preset temperature, and determine first calibration data based on the first preset signal data and the first optical signal data.

[0116] The first transmitting module is used to transmit the first calibration data to the PPG module.

[0117] This PPG module testing device calibrates the PPG module by generating first calibration data based on first optical signal data and first preset signal data at different preset temperatures. This enables the PPG module to perform accurate light emission operations by calling the corresponding first calibration data based on the actual temperature during application, thereby ensuring the accuracy of heart rate and blood oxygen saturation detection.

[0118] It should be noted that the first acquisition module in this embodiment can be used to execute step S10 in this application embodiment, the second acquisition module in this embodiment can be used to execute step S20 in this application embodiment, and the first sending module in this embodiment can be used to execute step S30 in this application embodiment.

[0119] join Figure 3 , Figure 3 This is a schematic diagram of an embodiment of the PPG module testing device of the present invention. The PPG module 9 testing device includes a rotary motor 1, a rotating shaft 2, a spectrometer 3, a main control board 11, a light-shielding plug 8, a cylinder 7, and multiple unit modules. The multiple unit modules are connected to the rotating shaft 2, and the rotating shaft 2 is rotated by the rotary motor 1 to make the unit modules rotate around the rotating shaft 2. The unit modules are made of a light-shielding plate 4. It is understood that during the testing process, in order to ensure testing accuracy, it is necessary to avoid the influence of external light; therefore, the light-shielding plate 4 can effectively isolate external light. The unit module includes a spectrometer calibration module and a placement module. The spectrometer calibration module includes a monochromatic light generator 5 and a light intensity generator 6. A light-transmitting hole 10 is opened at the bottom of the placement module. The placement module is connected to the main control board 11. When the PPG module 9 is installed on the placement module, the PPG module 9 establishes a connection with the main control board 11. See also... Figure 4 , Figure 4 The diagram shows the rotational positions corresponding to the unit module. When the module is at its origin, the PPG module 9 can be installed and unloaded. A spectrometer 3 is positioned on the axes at positions A and C. When the spectrometer calibration module is at position A or C, it can calibrate the spectrometer 3 at those positions. Similarly, when the PPG module 9 is at position A or C, it can be calibrated using the spectrometer 3 at those positions. A light-shielding plug 8 is positioned on the axis at position B. When the PPG module 9 is at position B, the cylinder 7 moves the light-shielding plug 8 to close the light-transmitting hole 10 of the PPG module 9, and the aforementioned light leakage detection operation is performed. Positions D and E are waiting positions; the unit module does not perform any related operations when in the waiting positions.

[0120] The test procedure for the PPG module 9 test device based on the above structure is described below:

[0121] 1. Open the light-shielding door and install the PPG module 9 on the placement module. At this time, the PPG module 9 is connected to the main control board 11. Close the light-shielding door.

[0122] 2. The main control board 11 sends a test signal to the PPG module 9, and the PPG module 9 returns information such as the SN serial number based on the test signal;

[0123] 3. The main control board 11 determines whether the time since the last calibration of the spectrometer at position A exceeds 45 minutes. If it exceeds 45 minutes, the spectrometer calibration module is rotated to position A, and the spectrometer is calibrated by the monochromatic light generator 5 and the light intensity generator 6 in the spectrometer calibration module. If it does not exceed 45 minutes, proceed directly to step 4.

[0124] 4. Control the rotary motor 1 to rotate the placement module to position A, and use the spectrometer corresponding to position A to perform calibration operations on the placement module at different target temperatures;

[0125] 5. Control the rotary motor 1 to rotate the placement module to position B, control the light-blocking plug 8 corresponding to position B to move towards the PPG module 9, and block the light-transmitting hole 10 of the PPG module 9 with a pressure of 15N to detect light leakage of the PPG module 9.

[0126] 6. The main control board 11 determines whether the time since the last calibration of the spectrometer at position C exceeds 45 minutes. If it exceeds 45 minutes, the spectrometer calibration module is rotated to position C, and the spectrometer is calibrated by the monochromatic light generator 5 and the light intensity generator 6 in the spectrometer calibration module. If it does not exceed 45 minutes, proceed directly to step 7.

[0127] 7. Control the rotary motor 1 to rotate the placement module to position C, and use the spectral analyzer corresponding to position C to perform calibration operations on the placement module under different drive currents;

[0128] 8. Test complete.

[0129] It should be noted that the structure of the PPG Module 9 test device and the corresponding test procedure described above are only for one scenario. In actual applications, the structure of the PPG Module 9 test device (unit module movement method, spectrometer setting position, etc.) and the test procedure (such as test sequence, specific test parameters, etc.) can be adjusted based on the actual application scenario and needs.

[0130] Furthermore, the first acquisition module includes:

[0131] The first transmitting submodule is used to take the smallest undetected temperature among the multiple preset temperatures as the target temperature and send a first driving signal to the PPG module so that the PPG module performs a light emission operation with a first driving current according to the first driving signal, wherein the first driving current is the maximum driving current.

[0132] The first acquisition submodule is used to acquire the real-time temperature of the PPG module, and when the real-time temperature reaches the target temperature, send a second driving signal to the PPG module so that the PPG module performs a light emission operation with a second driving current according to the second driving signal.

[0133] The second acquisition submodule is used to acquire the first optical signal data of the PPG module and associate the first optical signal data with the target temperature;

[0134] The first execution submodule is used to take the target temperature as the detected temperature and return to the execution step: take the smallest undetected temperature among the multiple preset temperatures as the target temperature, until all the preset temperatures are detected temperatures.

[0135] Furthermore, the first acquisition submodule includes:

[0136] The first generation unit is used to generate a second driving signal corresponding to the light emitter set in the PPG module, wherein there are multiple light emitters and the number of the second driving signals is the same as the number of light emitters.

[0137] The first transmitting unit is used to sequentially transmit a plurality of the second driving signals to the PPG module at a first preset time interval, so that the light emitter in the PPG module corresponding to the second driving signal performs a light emission operation with the second driving current.

[0138] Furthermore, the PPG module testing device includes a spectrometer, and the second acquisition submodule includes:

[0139] The first acquisition unit is used to acquire the most recent calibration time of the spectrometer and determine whether the difference between the most recent calibration time and the current time is greater than a preset calibration duration.

[0140] The first calibration unit is used to perform a calibration operation on the spectrometer if the difference between the most recent calibration time and the current time is greater than a preset calibration duration, and to update the most recent calibration time based on the calibration operation.

[0141] The second acquisition unit is used to acquire the first optical signal data of the PPG module through the spectrometer.

[0142] Furthermore, the PPG module testing device includes a laser generator and a light intensity generator, and the first calibration unit includes:

[0143] The first transmitting subunit is used to transmit a calibration signal to the laser generator, so that the laser generator or light intensity generator transmits a calibration light signal based on the calibration signal;

[0144] The first receiving subunit is used to receive the calibration optical signal through the spectrum analyzer to obtain received signal data;

[0145] The first acquisition subunit is used to acquire the preset reference signal data corresponding to the calibration optical signal, and to calibrate the spectrometer based on the preset reference signal data and the received signal data.

[0146] Furthermore, the PPG module testing device includes a light-shielding plug, and the main control board also includes:

[0147] The first control module is used to control the light-blocking plug to close the light-transmitting hole of the PPG module;

[0148] The second transmitting module is used to send a third driving signal to the PPG module so that the PPG module performs a light emission operation with a third driving current according to the third driving signal.

[0149] The third acquisition module is used to acquire the acquisition signal output by the optical acquisition module in the PPG module;

[0150] The first determining module is used to determine whether the PPG module has light leakage based on the acquired signal.

[0151] Furthermore, the main control board also includes:

[0152] The first generation module is used to generate multiple fourth driving signals corresponding to a preset frequency of the light emitter for each of the PPG modules, and the driving current corresponding to each fourth driving signal is different.

[0153] The third transmitting module is used to send a fourth driving signal to the PPG module at a second preset interval, so that the light emitter in the PPG module corresponding to the fourth driving signal performs a light emission operation with the corresponding driving current.

[0154] The fourth acquisition module is used to acquire the second optical signal data of the PPG module corresponding to each driving current, and to acquire the second preset signal data corresponding to each driving current;

[0155] The second determining module is used to determine the second calibration data based on the second preset signal data and the second optical signal data, and send the second calibration data to the PPG module.

[0156] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should also be noted that the above modules, as part of the device, can be implemented in software or hardware, wherein the hardware environment includes a network environment.

[0157] Reference Figure 5 In terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to both the memory 20 and the communication module 10. The memory 20 stores a computer program, which is executed by the processor 30. When the computer program is executed, it implements the steps of the above-described method embodiments.

[0158] The communication module 10 can connect to external communication devices via a network. The communication module 10 can receive requests from the external communication devices and can also send requests, instructions, and information to the external communication devices. The external communication devices can be other electronic devices, servers, or IoT devices, such as televisions, etc.

[0159] The memory 20 can be used to store software programs and various data. The memory 20 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as acquiring first optical signal data from PPG modules at multiple preset temperatures), etc.; the data storage area may include a database, and may store data or information created based on system usage. Furthermore, the memory 20 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0160] The processor 30 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 20, and by calling data stored in the memory 20, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 30.

[0161] although Figure 5 Not shown, but the above-described electronic device may further include a circuit control module for connecting to a power supply to ensure the normal operation of other components. Those skilled in the art will understand that... Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0162] The present invention also proposes a computer-readable storage medium having a computer program stored thereon. The computer-readable storage medium may be... Figure 5 The memory 20 in the electronic device may also be at least one of ROM (Read-Only Memory) / RAM (Random Access Memory), magnetic disk, optical disk, etc. The computer-readable storage medium includes a number of instructions to cause a terminal device with a processor (which may be a television, automobile, mobile phone, computer, server, terminal, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0163] In this invention, the terms "first," "second," "third," "fourth," and "fifth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0164] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0165] Although embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, and substitutions to the above embodiments within the scope of the present invention, and such changes, modifications, and substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A PPG module testing method, characterized in that, The PPG module testing method is applied to a PPG module testing device, which is connected to a PPG module. The PPG module testing method includes: Acquire first optical signal data of the PPG module at multiple preset temperatures, wherein the values ​​of the multiple preset temperatures are different; For each preset temperature, first preset signal data corresponding to the preset temperature is obtained, and first calibration data is determined based on the first preset signal data and the first optical signal data. Send the first calibration data to the PPG module; The step of acquiring the first optical signal data of the PPG module at multiple preset temperatures includes: The smallest undetected temperature among the multiple preset temperatures is taken as the target temperature, and a first driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a first driving current according to the first driving signal, wherein the first driving current is the maximum driving current. The real-time temperature of the PPG module is obtained, and when the real-time temperature reaches the target temperature, a second driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a second driving current according to the second driving signal. Acquire the first optical signal data of the PPG module and correlate the first optical signal data with the target temperature; The target temperature is taken as the detected temperature, and the execution steps are returned: the smallest undetected temperature among the multiple preset temperatures is taken as the target temperature, until all the preset temperatures are detected temperatures.

2. The PPG module testing method as described in claim 1, characterized in that, The step of sending the second drive signal to the PPG module includes: Generate a second driving signal corresponding to the emitter set in the PPG module, wherein there are multiple emitters and the number of the second driving signals is the same as the number of emitters; Multiple second driving signals are sequentially sent to the PPG module at a first preset time interval, so that the light emitter in the PPG module corresponding to the second driving signal performs a light emission operation with the second driving current.

3. The PPG module testing method as described in claim 1, characterized in that, The PPG module testing device includes a spectrometer, and the step of acquiring the first optical signal data of the PPG module includes: Obtain the most recent calibration time of the spectrometer and determine whether the difference between the most recent calibration time and the current time is greater than the preset calibration time. If the difference between the most recent calibration time and the current time is greater than the preset calibration duration, then the spectrometer is calibrated, and the most recent calibration time is updated based on the calibration operation. The first optical signal data of the PPG module is obtained through the spectrometer.

4. The PPG module testing method as described in claim 3, characterized in that, The PPG module testing device includes a laser generator and a light intensity generator. The steps for calibrating the spectrometer include: A calibration signal is sent to the laser generator so that the laser generator or light intensity generator sends a calibration light signal based on the calibration signal; The received signal data is obtained by receiving the calibration optical signal through the spectrometer. Acquire the preset reference signal data corresponding to the calibration optical signal, and calibrate the spectrometer based on the preset reference signal data and the received signal data.

5. The PPG module testing method as described in claim 1, characterized in that, The PPG module testing device includes a light-shielding plug, and the method further includes: The light-blocking plug is controlled to seal the light-transmitting hole of the PPG module; A third driving signal is sent to the PPG module so that the PPG module performs a light emission operation with a third driving current according to the third driving signal; Acquire the acquisition signal output by the optical acquisition module in the PPG module; The PPG module is determined to have light leakage based on the acquired signal.

6. The PPG module testing method as described in claim 1, characterized in that, The method further includes: For each of the PPG modules, a plurality of fourth driving signals corresponding to a preset frequency of the light emitter are generated, and each of the fourth driving signals corresponds to a different driving current. At each second preset interval, a fourth driving signal is sent to the PPG module, and the light emitter in the PPG module corresponding to the fourth driving signal performs a light emission operation with the corresponding driving current. Acquire the second optical signal data of the PPG module corresponding to each driving current, and acquire the second preset signal data corresponding to each driving current; The second calibration data is determined based on the second preset signal data and the second optical signal data, and the second calibration data is sent to the PPG module.

7. A PPG module testing device, characterized in that, The PPG module testing device is connected to the PPG module, and the PPG module testing device includes: The first acquisition module is used to acquire first optical signal data of the PPG module at multiple preset temperatures, wherein the values ​​of the multiple preset temperatures are different; The second acquisition module is used to acquire first preset signal data corresponding to each preset temperature, and determine first calibration data based on the first preset signal data and the first optical signal data. A first transmitting module is used to transmit the first calibration data to the PPG module; The first acquisition module includes: The first transmitting submodule is used to take the smallest undetected temperature among the multiple preset temperatures as the target temperature and send a first driving signal to the PPG module so that the PPG module performs a light emission operation with a first driving current according to the first driving signal, wherein the first driving current is the maximum driving current. The first acquisition submodule is used to acquire the real-time temperature of the PPG module, and when the real-time temperature reaches the target temperature, send a second driving signal to the PPG module so that the PPG module performs a light emission operation with a second driving current according to the second driving signal. The second acquisition submodule is used to acquire the first optical signal data of the PPG module and associate the first optical signal data with the target temperature; The first execution submodule is used to take the target temperature as the detected temperature and return to the execution step: take the smallest undetected temperature among the multiple preset temperatures as the target temperature, until all the preset temperatures are detected temperatures.

8. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the PPG module testing method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the PPG module testing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Physiological parameter measuring device and method

    CN109875572A

  • Light emitting diode control method and system, medical equipment and storage medium

    CN110839312A