PPG light leakage self-checking method, wearable device and computer readable storage medium

By integrating the ambient light detection device and PPG sensor in the wearable device, the photoelectric data difference value in the light source is turned on and off, high-precision PPG light leakage detection under natural light conditions is achieved, solving the high cost and complex operation problems of detection in traditional dark room environments, and improving the convenience and accuracy of detection.

CN120404066APending Publication Date: 2025-08-01GEER TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510502670.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

Traditional PPG light leakage detection needs to be carried out in a strictly controlled darkroom environment, resulting in high equipment costs, complex operation and inconvenient for daily use.

Method used

By integrating PPG sensors and ambient light detection devices in the wearable device, the fluctuation degree of ambient light data is monitored in real time using the sliding time window, and detection is triggered only when the ambient light is stable. The light leakage signal is extracted through the photoelectric data difference in the light source when the light source is turned on and off, and background noise interference is eliminated, and high-precision light leakage detection under natural light conditions is achieved.

Benefits of technology

Realizing high-precision PPG light leakage detection under natural light conditions reduces hardware cost and operation complexity, improves the convenience and practicality of detection, and ensures the accuracy and reliability of health monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120404066A_ABST
    Figure CN120404066A_ABST
Patent Text Reader

Abstract

The invention discloses a PPG light leakage self-checking method, wearable equipment and a computer readable storage medium, and relates to the technical field of wearable equipment, the PPG light leakage self-checking method is applied to the wearable equipment, and the method comprises the steps that after a PPG light leakage self-checking instruction is received, the PPG light leakage self-checking instruction is sent to the wearable equipment; acquiring ambient light data detected by an ambient light detection device in the sliding time window; determining the fluctuation degree of the ambient light data, and acquiring first photoelectric data detected by the photoelectric detector when the light source is turned on and second photoelectric data detected by the photoelectric detector when the light source is turned off under the condition that the fluctuation degree is a first fluctuation degree; according to the first photoelectric data and the second photoelectric data, PPG light leakage data are determined, and when the PPG light leakage data are larger than a preset threshold value, PPG sensor light leakage is determined. According to the invention, the convenience of PPG light leakage detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of wearable devices, and particularly to a PPG light leakage self-checking method, a wearable device, and a computer-readable storage medium. Background Art

[0002] Currently, most intelligent wearable devices are equipped with PPG (Photoplethysmography) sensors. By measuring the attenuation degree of the light beam passing through or reflected by human tissues, physiological information is obtained, so as to non-invasively measure key health indicators such as blood pressure and heart rate of the human body, and provide real-time health monitoring for users.

[0003] In order to ensure the accuracy and reliability of the data collected by the PPG sensor, it is necessary to perform light leakage detection on the PPG sensor. However, traditional PPG light leakage detection needs to be carried out in a strictly controlled darkroom environment to exclude the interference of natural light and other light sources. The construction of the darkroom environment requires the use of a closed detection box and a special light-shielding structure, with high equipment costs and complex operation processes, which is not conducive to performing light leakage detection on the device during daily use and has great limitations. Summary of the Invention

[0004] The main purpose of this application is to provide a PPG light leakage self-checking method, a wearable device, and a computer-readable storage medium, aiming to solve the technical problem that traditional PPG light leakage detection depends on a strictly controlled darkroom environment and has low convenience.

[0005] To achieve the above object, this application provides a PPG light leakage self-checking method. The PPG light leakage self-checking method is applied to a wearable device. The wearable device is integrated with a PPG sensor and an ambient light detection device. The PPG sensor includes a photodetector and a light source. The method includes:

[0006] After receiving a PPG light leakage self-checking instruction, obtain the ambient light data detected by the ambient light detection device within a sliding time window;

[0007] Determine the fluctuation degree of the ambient light data, and when the fluctuation degree is the first fluctuation degree, obtain the first photoelectric data detected by the photodetector when the light source is turned on, and the second photoelectric data detected when the light source is turned off;

[0008] According to the first photoelectric data and the second photoelectric data, determine the PPG light leakage data, and when the PPG light leakage data is greater than a preset threshold, determine that the PPG sensor leaks light.

[0009] In addition, to achieve the above object, the present application further provides a wearable device, where the wearable device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the PPG light leakage self-checking method as described above are implemented.

[0010] In addition, to achieve the above object, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the PPG light leakage self-checking method as described above are implemented.

[0011] In addition, to achieve the above object, the present application further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the PPG light leakage self-checking method as described above is implemented.

[0012] The embodiments of the present application provide a PPG light leakage self-checking method, a wearable device, and a computer-readable storage medium. The PPG light leakage self-checking method is applied to a wearable device, and the wearable device is integrated with a PPG sensor and an ambient light detection device. The PPG sensor includes a photodetector and a light source. The embodiments of the present application dynamically sense ambient light fluctuations and implement PPG light leakage self-checking under natural light conditions. Specifically, after receiving a PPG light leakage self-checking instruction, the embodiments of the present application use a sliding time window to continuously monitor the fluctuation degree of photoelectric data, and trigger detection only when the ambient light is stable (i.e., the fluctuation degree is the first fluctuation degree). By comparing the difference in photoelectric data in the light source on and off states, a light leakage signal is extracted to eliminate background noise interference. The embodiments of the present application creatively transform the physical light shielding in a dark room detection into a double-layer noise suppression model of dynamic ambient stability judgment and photoelectric signal differential calculation, breaking through the traditional dependence on a dark room, enabling end users to complete high-precision self-checking in daily environments, solving the technical problems that traditional PPG light leakage detection depends on a strictly controlled dark room environment, with high equipment costs and complex operation processes, and being not conducive to light leakage detection in daily use, and significantly improving the convenience of PPG light leakage detection. Description of the Drawings

[0013] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0014] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on the structures shown in these drawings.

[0015] Figure 1 It is a schematic flowchart provided for the first embodiment of the PPG light leakage self-checking method of this application;

[0016] Figure 2 It is a schematic flowchart provided for the second embodiment of the PPG light leakage self-checking method of this application;

[0017] Figure 3 It is a schematic flowchart provided for the third embodiment of the PPG light leakage self-checking method of this application;

[0018] Figure 4 It is a schematic layout diagram of a light source and a photodetector in a specific embodiment of this application;

[0019] Figure 5 It is a schematic diagram of a PPG light leakage self-checking scenario in a specific embodiment of this application;

[0020] Figure 6 It is a schematic diagram of the device structure of the hardware operating environment involved in the PPG light leakage self-checking method in the embodiments of this application.

[0021] The realization of the purpose, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Specific Embodiments

[0022] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0023] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.

[0024] Currently, traditional PPG light leakage detection methods require operation in a strictly controlled darkroom environment. Usually, a closed detection box and a specially designed light-shielding structure are needed to create a completely dark space to ensure that the interference of natural light and other external light sources can be excluded.

[0025] However, this method has significant limitations and challenges. First of all, constructing such a darkroom environment not only incurs high equipment costs, but also requires additional space and resource investment. The hardware cost is relatively high, and these devices are often bulky and difficult to move and deploy. On the other hand, the operation process is complex, including environmental settings, calibration steps, etc. This not only poses high requirements for the professional skills of operators, but also prolongs the test preparation time and reduces the detection efficiency. In addition, in practical applications, especially for end-users, it becomes almost impossible to perform device self-checks during daily use. Since it is impossible to simulate ideal darkroom conditions anytime and anywhere, it is very difficult for end-users to detect the optical path degradation problems caused by long-term use in a timely manner, thus affecting the accuracy and reliability of health monitoring data.

[0026] In response to this, the main solution of the embodiments of this application is a PPG light leakage self-check method. The PPG light leakage self-check method is applied to a wearable device. The wearable device is integrated with a PPG sensor and an ambient light detection device. The PPG sensor includes a photodetector and a light source. The method includes: after receiving a PPG light leakage self-check instruction, obtaining the ambient light data detected by the ambient light detection device within a sliding time window; determining the fluctuation degree of the ambient light data, and when the fluctuation degree is a first fluctuation degree, obtaining the first optoelectronic data detected by the photodetector when the light source is turned on, and the second optoelectronic data detected when the light source is turned off; determining PPG light leakage data according to the first optoelectronic data and the second optoelectronic data, and when the PPG light leakage data is greater than a preset threshold, determining that the PPG sensor leaks light.

[0027] The embodiments of this application achieve PPG light leakage self-check under natural light conditions by dynamically sensing ambient light fluctuations. Specifically, after receiving a PPG light leakage self-check instruction, the embodiments of this application use a sliding time window to continuously monitor the fluctuation degree of optoelectronic data, and trigger detection only when the ambient light is stable (i.e., the fluctuation degree is the first fluctuation degree). By comparing the difference in optoelectronic data in the light source on and off states, the light leakage signal is extracted to eliminate background noise interference. The embodiments of this application creatively transform the physical light shielding in darkroom detection into a double-layer noise suppression model of dynamic ambient stability judgment and optoelectronic signal differential calculation, breaking through the traditional darkroom dependence, enabling end-users to complete high-precision self-checks in daily environments, solving the technical problems that traditional PPG light leakage detection depends on a strictly controlled darkroom environment, has relatively high hardware costs, and has a complex operation process, and is not conducive to light leakage detection during daily use, and significantly improving the convenience of PPG light leakage detection.

[0028] It should be noted that the execution subject of the embodiments of this application is a wearable device, which may include, but is not limited to, smart watches, smart bracelets, smart helmets, smart glasses, smart collars, or any electronic device capable of implementing the above functions. Taking the wearable device as the execution subject as an example, the following embodiments of this application will be described.

[0029] To better understand the technical solution of this application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific implementation manners.

[0030] This application proposes a PPG light leakage self-check method for the first embodiment.

[0031] Please refer to Figure 1 , Figure 1 which is the schematic flowchart provided for the first embodiment of the PPG light leakage self-check method of this application.

[0032] In this embodiment, the PPG light leakage self-check method is applied to a wearable device. The wearable device is integrated with a PPG sensor, and the PPG sensor includes a photodetector and a light source. The method includes steps S100 to S300:

[0033] Step S100, after receiving the PPG light leakage self-check instruction, obtain the ambient light data detected by the photodetector within a sliding time window;

[0034] Those skilled in the art know that a photodetector is a device that can convert an optical signal into an electrical signal. A PPG sensor is an optical sensor used to measure blood volume changes and is usually applied to monitor physiological parameters such as heart rate and blood oxygen saturation. The PPG sensor mainly includes a light source and a photodetector, and works by emitting light of a specific wavelength to human tissue through the light source and detecting the change in light intensity after being absorbed and scattered by human tissue through the photodetector.

[0035] It should be noted that the PPG light leakage self-check instruction is an instruction triggered by a user or a system to start the PPG light leakage self-check function of the wearable device. The PPG light leakage self-check instruction can be triggered manually or automatically under specific conditions, such as being triggered automatically at regular intervals, triggered periodically, or triggered automatically after detecting that the wearable device has remained in a preset stationary state for a certain period of time.

[0036] It should also be noted that the ambient light detection device is a device for detecting ambient light, and the ambient light data refers to the data of the ambient light detected by the ambient light detection device within a sliding time window after the wearable device receives the PPG light leakage self-check instruction, mainly including the light intensity, frequency, etc. of the ambient light within the sliding time window.

[0037] It should be specifically noted that within this sliding time window, various light-emitting components of the wearable device (including but not limited to the display light-emitting module, indicator light, and light source in the PPG sensor) should remain in their original states unchanged. This is because if the states of various light-emitting components of the wearable device continuously change within the sliding time window, it may lead to significant fluctuations in the ambient light data, causing the system to always consider the current ambient light unstable and not suitable for light leakage detection. This will not only reduce the success rate and efficiency of light leakage detection but also increase the algorithm complexity and energy consumption, affecting the user experience and device performance.

[0038] In this embodiment, after receiving the PPG light leakage self-check instruction and before starting the ambient light detection device to detect the ambient light, various light-emitting components inside the wearable device can be controlled to remain in their original states unchanged, so as to avoid introducing additional light interference during the detection process of the ambient light data within the sliding time window, resulting in the inability of the ambient light data to accurately depict the changes in the external ambient light, thereby effectively avoiding misjudgment of the ambient light stability caused by the change of the internal light source, ensuring that the system accurately judges the stability of the ambient light, and further improving the reliability and efficiency of light leakage detection.

[0039] In this embodiment, after receiving the PPG light leakage self-check instruction, the ambient light detection device is started to detect the ambient light. Thus, by obtaining the ambient light data detected by the ambient light detection device within the sliding time window, the fluctuation situation of the ambient light is monitored in real time. Then, according to the fluctuation situation of the ambient light, it is judged whether the current ambient light is stable and suitable for light leakage detection of the PPG sensor, so as to break the dependence on the darkroom environment in the traditional scheme.

[0040] Step S200: Determine the fluctuation degree of the ambient light data, and when the fluctuation degree is the first fluctuation degree, obtain the first optoelectronic data detected by the photodetector when the light source is turned on and the second optoelectronic data detected when the light source is turned off;

[0041] It should be noted that the fluctuation degree refers to the degree of dispersion of the ambient light data, reflecting the stability of the ambient light within the sliding time window. The first fluctuation degree is a preset fluctuation degree range (or called a fluctuation degree interval). When the fluctuation degree of the ambient light falls within the value range of the first fluctuation degree, it indicates that the fluctuation of the ambient light is small and in a relatively stable state, and light leakage detection can be triggered.

[0042] In this embodiment, the fluctuation degree can be determined by statistical quantities such as variance, standard deviation, and range.

[0043] Exemplarily, in a feasible implementation manner, the step of determining the fluctuation degree of the ambient light data in step S200 may include steps S210 to S220:

[0044] Step S210, perform statistical analysis on the ambient light data to obtain the statistic of the ambient light data, where the statistic includes at least one of variance, standard deviation, and range;

[0045] As known to those skilled in the art, a statistic refers to a quantitative index used to describe or summarize the characteristics of a data set in statistics.

[0046] In this embodiment, the statistic mainly refers to an index used to quantify the degree of dispersion of data, that is, parameters such as variance, standard deviation, and range.

[0047] Step S220, determine the degree of fluctuation of the ambient light data based on the statistic.

[0048] In this embodiment, the degree of fluctuation can be pre-divided into multiple levels. The lower the level, the smaller the fluctuation, and specific judgment criteria are set for the degree of fluctuation of each level. Thus, the statistic is compared with the judgment criteria corresponding to each level to determine which level the degree of fluctuation of the ambient light data belongs to.

[0049] Exemplarily, the degree of fluctuation can be divided into two levels, namely the first level and the second level, and the degree of fluctuation of the second level is higher than that of the first level. At this time, if the statistic is the range, the judgment criterion corresponding to the first level can be set as the statistic being less than a preset range threshold, and the judgment criterion corresponding to the second level can be set as the statistic being not less than the preset range threshold. If the statistic is variance and standard deviation, the judgment criterion corresponding to the first level can be set as the variance in the statistic being less than a preset variance threshold and the standard deviation in the statistic being less than a preset standard deviation threshold, and the judgment criterion corresponding to the second level can be set as the variance in the statistic being not less than the preset variance threshold or the standard deviation in the statistic being not less than the preset standard deviation threshold, and so on.

[0050] In this embodiment, by introducing statistics such as variance, standard deviation, and range to quantify the degree of fluctuation of the ambient light data and dividing the degree of fluctuation into multiple levels, each level corresponding to different judgment criteria, the accuracy and adaptability of PPG light leakage self-check are significantly improved. Specifically, in this embodiment, first, through detailed statistical analysis of the ambient light data within the sliding time window, the key statistic reflecting the degree of data dispersion is calculated; then, based on the comparison of these statistics with the preset judgment criteria, it is determined which level the current degree of fluctuation of the ambient light belongs to. This hierarchical fluctuation evaluation mechanism can not only effectively identify the stable lighting conditions most suitable for light leakage detection but also allows the system to flexibly adjust the judgment criteria according to the actual application scenario, greatly improving the reliability and efficiency of the detection.

[0051] It can be understood that when the degree of fluctuation is divided into the first level and the second level, the degree of fluctuation at the first level can be determined as the first degree of fluctuation, indicating that the fluctuation of the ambient light is relatively slight and in a relatively stable state, and leak light detection can be triggered. While the degree of fluctuation at the second level is determined as the second degree of fluctuation, indicating that the fluctuation of the ambient light is relatively obvious and in a state of frequent change, and it is not suitable to trigger leak light detection.

[0052] Correspondingly, when the levels of the degree of fluctuation are divided more finely, the degree of fluctuation below a certain level can be set to belong to the first degree of fluctuation, and the degree of fluctuation of the remaining levels belongs to the second degree of fluctuation.

[0053] In addition, this embodiment can also directly set corresponding judgment criteria for the first degree of fluctuation and the second degree of fluctuation, so as to directly determine whether the degree of fluctuation of the ambient light data is the first degree of fluctuation or the second degree of fluctuation based on the statistic, reducing intermediate links.

[0054] In addition to the method of determining the degree of fluctuation through the statistic, this embodiment can also calculate the change rate of the ambient light data at adjacent time points within the sliding time window, and then determine the degree of fluctuation through parameters such as the average value, maximum value, and minimum value of the change rate.

[0055] Exemplarily, when the maximum value of the change rate is less than 1, the minimum value is greater than -1, and the average value is between -0.3 and 0.3, it is determined that the degree of fluctuation of the ambient light data is the first degree of fluctuation, otherwise it is determined that the degree of fluctuation of the ambient light data is the second degree of fluctuation.

[0056] In this embodiment, after determining that the degree of fluctuation of the ambient light data is the first degree of fluctuation, there are various ways to obtain the data required for leak light detection.

[0057] In one example, the data detected by the photodetector when the light source is turned on can be directly used as the first optoelectronic data, and the data detected by the photodetector when the light source is turned off can be used as the second optoelectronic data.

[0058] This example directly obtains the single - measurement data of the photodetector when the light source is on and off as the first optoelectronic data and the second optoelectronic data, which has significant simplicity and efficiency in operation. First, at the operational level, this example does not require additional data - processing steps such as multiple sampling, removing extreme values, and calculating the average, thus simplifying the algorithm design and reducing the requirements for the processor performance. Second, due to the reduction in the time for data acquisition and processing, this example can greatly improve the speed of the detection process, especially suitable for application scenarios that require rapid feedback. Finally, for situations where the external environmental conditions are extremely stable and there are few interference factors, single - measurement can already provide sufficiently accurate results, enabling the device to achieve an efficient self - inspection process while ensuring a certain level of accuracy. Therefore, this example can demonstrate unique advantages in application scenarios with resource constraints or high real - time requirements.

[0059] In another example, it is also possible to take multiple data detected by the photodetector when the light source is on, remove the maximum and minimum values, then calculate the average, and use the average as the first optoelectronic data. And, take multiple data detected by the photodetector when the light source is off, remove the maximum and minimum values, then calculate the average, and use the average as the second optoelectronic data.

[0060] This example obtains the first optoelectronic data and the second optoelectronic data by taking multiple measurements, removing the maximum and minimum values, and then calculating the average, which can significantly improve the accuracy and stability of the detection results. First, through multiple sampling, this example effectively reduces the influence of accidental errors. Especially in the presence of short - term unpredictable interferences, it can more realistically reflect the changes in the actual optoelectronic signals. Second, the process of removing extreme values and taking the average acts as a simple filtering function, which helps to smooth data fluctuations, suppress random noise, thereby improving the signal - to - noise ratio and enhancing the stability of the output signal. Finally, this example is particularly suitable for application scenarios with high requirements for measurement accuracy, such as ensuring the accuracy of health - monitoring data or excluding various uncertain interference factors in complex and variable environments. In summary, this example provides more reliable and accurate detection results through fine - grained data processing and is very suitable for occasions with high - precision requirements.

[0061] It is worth mentioning that in this embodiment, when the fluctuation degree of the ambient light data is the first fluctuation degree and it is determined that the light leakage detection can be triggered, the ambient light detection device can be turned off and the ambient light data is no longer acquired to reduce energy consumption and extend the battery life of the wearable device. Alternatively, the ambient light detection device can continue to be turned on, and the judgment criterion for the first fluctuation degree can be increased, so as to reduce the influence of the light source on / off in the PPG sensor on the judgment of the ambient light stability during the light leakage detection, ensure that the result of the light leakage detection is determined based on the data detected when the ambient light is in a stable state, prevent inaccurate detection results caused by sudden changes in the ambient light during the light leakage detection, and ensure that the entire light leakage detection process is carried out when the ambient light is in a stable state.

[0062] Step S300: Determine the PPG light leakage data according to the first optoelectronic data and the second optoelectronic data, and determine that the PPG sensor has light leakage when the PPG light leakage data is greater than a preset threshold.

[0063] It should be noted that the PPG light leakage data refers to the result calculated from the difference between the first optoelectronic data and the second optoelectronic data, which reflects whether there is unexpected light leakage into the photodetector in the PPG sensor under the current ambient light conditions. The preset threshold is a preset standard value used to judge whether there is a light leakage problem in the PPG sensor.

[0064] In a feasible implementation manner, the preset threshold is set based on the data detected by the photodetector in a preset lightless environment.

[0065] It should be noted that the preset lightless environment refers to a specially designed and controlled environmental condition in which it is ensured that the photodetector is not affected by any external light, aiming to provide a stable, controllable and interference-free background environment for accurately measuring and calibrating the photodetector of the PPG sensor.

[0066] In this embodiment, before the photodetector leaves the factory or before it is made into a PPG sensor, the photodetector can be placed in the preset lightless environment to obtain the data detected by the photodetector in this preset lightless environment as the reference value of the photodetector. Then, according to the model type of the wearable device in which the photodetector is finally integrated, a certain percentage is increased or decreased on the basis of this reference value to obtain the corresponding preset threshold of the photodetector, which is used to judge whether there is a light leakage problem in the PPG sensor during the PPG light leakage detection process.

[0067] It can be understood that a PPG sensor can include multiple photodetectors. A dedicated preset threshold can be set for each photodetector, or a unified preset threshold (such as the average value of the dedicated preset thresholds of each photodetector) can be set.

[0068] In this embodiment, when it is determined that the ambient light is in a stable state (i.e., the fluctuation degree of the ambient light data is the first fluctuation degree), the first optoelectronic data detected by the photodetector when the light source is turned on and the second optoelectronic data detected when the light source is turned off are respectively obtained, and the influence of the ambient light is excluded by using the differential method, effectively separating the signal change caused by light leakage to obtain the PPG light leakage data. Then, whether there is a light leakage risk in the PPG sensor is judged through a preset threshold, and thus accurate light leakage detection is realized under natural light conditions, breaking through the dependence of traditional PPG light leakage detection on a dark room environment, and greatly improving the convenience and practicability of PPG light leakage detection.

[0069] In this embodiment, by dynamically sensing the ambient light fluctuation, the light leakage detection is triggered only when it is confirmed that the ambient light is stable enough, and differential calculation is used to eliminate the background noise interference. Creatively, the physical light shielding for dark room detection is transformed into a double-layer noise suppression model of dynamic judgment of environmental stability and differential calculation of optoelectronic signals. Thus, it breaks through the dependence of traditional PPG light leakage detection on a dark room environment, and accurate light leakage detection can also be carried out under natural light conditions, without the need to use a closed detection box and a specially designed light shielding structure to create a completely dark room environment, greatly reducing the hardware cost and operation complexity of PPG light leakage detection, significantly improving the convenience and practicability of PPG light leakage detection, ensuring that high-precision detection results can be obtained even in daily environments, enabling end users to timely discover and solve the problem of optical path deterioration caused by long-term use, and guaranteeing the accuracy and reliability of health monitoring data.

[0070] In a feasible implementation manner, the PPG light leakage self-check method may further include step S400:

[0071] Step S400, when the PPG light leakage data is less than or equal to the preset threshold and the PPG light leakage data is not zero, generate PPG calibration data according to the PPG light leakage data, where the PPG calibration data is used to calibrate the PPG sensor.

[0072] In order to further improve the accuracy and reliability of the PPG sensor, in this implementation manner, when it is determined in step S300 that the PPG light leakage data is less than or equal to the preset threshold, that is, on the basis of confirming that there is no obvious light leakage problem in the current PPG sensor, an additional calibration step S400 is introduced. By using the obtained PPG light leakage data to generate specific PPG calibration data, during the subsequent use of this wearable device, the PPG sensor is accurately calibrated through this PPG calibration data to compensate for the slight performance drift or error caused by long-term use or other factors.

[0073] Exemplarily, when the PPG light leakage data is greater than a preset threshold, an alarm message indicating that the detection of the human health monitoring data by the wearable device is inaccurate is output.

[0074] Wherein, the human health monitoring data may be physiological parameters such as heart rate, blood oxygen saturation or sleep, which are not specifically limited in this embodiment.

[0075] When the PPG light leakage data is greater than the preset threshold, it is determined that the PPG sensor has light leakage, or more specifically, the PPG sensor has light leakage that cannot be calibrated. That is, it is determined that the monitoring function of the wearable device for human health indicators is no longer qualified. At this time, even if the PPG sensor is compensated based on the PPG light leakage data, accurate calibration cannot be achieved because too much PPG optoelectronic data is lost due to excessive light leakage data, and a large amount of lost PPG optoelectronic data often contains a lot of detection information for relevant health indicators such as heart rate, blood oxygen or sleep. Therefore, when the PPG light leakage data is greater than the preset threshold, even if PPG calibration data is generated based on the PPG light leakage data to compensate the PPG sensor, effective calibration cannot be achieved, and thus physiological parameters such as heart rate, blood oxygen saturation or sleep cannot be accurately monitored anymore, and the unqualified product needs to be reworked and repaired.

[0076] In a feasible implementation manner, the PPG light leakage self-check method may further include step S500:

[0077] Step S500, when the fluctuation degree is the second fluctuation degree, output a preset ambient light fluctuation prompt, where the second fluctuation degree is higher than the first fluctuation degree.

[0078] It should be noted that the ambient light fluctuation prompt is a notice or warning message sent by the wearable device to the user when it detects that the current ambient light conditions are not suitable for PPG sensor light leakage self-check. This prompt aims to inform the user that the current ambient light changes too frequently or the intensity difference is too large, resulting in the photodetector being unable to accurately detect light leakage. Specifically, when the system analyzes the ambient light data within the sliding time window and finds that its fluctuation degree reaches the preset second fluctuation degree (i.e., large fluctuations, indicating unstable ambient light), this prompt will be triggered. The ambient light fluctuation prompt can be conveyed to the user in various forms such as displaying text information on the device's display screen, emitting a sound alarm or vibrating notification, guiding the user to select a more stable lighting environment to retry the light leakage detection. This not only helps to avoid misjudgment or inaccurate detection results caused by ambient light interference, but also improves the user's experience and understanding of device operation. In this way, it is ensured that the light leakage detection is only performed under ideal environmental conditions, thus guaranteeing the accuracy and reliability of the detection process.

[0079] In this embodiment, when it is detected that the degree of fluctuation of the ambient light data is the second degree of fluctuation (i.e., the ambient light is unstable and the fluctuation is obvious), a preset ambient light fluctuation prompt is output. This step aims to enhance the user experience and improve the reliability of the detection process. By promptly informing the user that the current environment is not suitable for accurate light leakage detection, it avoids misjudgment or inaccurate results caused by unstable external light conditions. Specifically, when the system determines that the ambient light is in a relatively fluctuating state, it will automatically pause the light leakage detection process and display corresponding prompt information through the user interface of the wearable device, informing the user to try again in a more stable light environment. This not only enhances the user's trust and satisfaction but also ensures that the light leakage detection is performed only under ideal conditions, thereby guaranteeing the accuracy and reliability of the detection results.

[0080] In a feasible embodiment, the wearable device is further integrated with an inertial sensor. Before the step of obtaining the ambient light data detected by the photodetector within the sliding time window in step S100, the PPG light leakage self-check method may further include steps S600 to S700:

[0081] Step S600: Determine the motion state of the wearable device according to the data detected by the inertial sensor;

[0082] Step S700: When the motion state is stationary, execute the step of obtaining the ambient light data detected by the ambient light detection device within the sliding time window.

[0083] As known to those skilled in the art, an inertial sensor is a device that can sense changes in the acceleration and angular velocity of an object, usually including components such as an accelerometer and a gyroscope. By analyzing this data, it is possible to accurately determine whether the current motion state of the wearable device is stationary or moving.

[0084] This embodiment uses the data provided by the inertial sensor to evaluate whether the wearable device is in a stationary state, thereby ensuring that the device is stable and motionless before collecting ambient light data. Once it is confirmed that the wearable device is in a stationary state (i.e., there is no obvious displacement or rotation), the system will trigger the execution of the step of obtaining the ambient light data detected by the ambient light detection device within the sliding time window and start collecting ambient light data. This is because when the wearable device is in a motion state, its relative position to the ambient light source may change rapidly, resulting in the data collected by the ambient light detection device containing dynamic interference components, such as high-frequency fluctuations in ambient light intensity caused by arm swinging. Such dynamic interference will significantly increase the degree of fluctuation of the ambient light data within the sliding time window, causing the system to misjudge the ambient light as unstable and frequently abort the light leakage detection process, ultimately leading to an increase in the detection failure rate and energy consumption waste.

[0085] In this embodiment, by strongly correlating the trigger condition for judging the environmental light stability with the stationary state of the device, the transient noise of the environmental light caused by movement is effectively filtered out, so that the fluctuation degree of the environmental light data can truly reflect the stability of the environmental light.

[0086] Based on the above first embodiment, the second embodiment of the PPG light leakage self-checking method of the present application is proposed.

[0087] In the second embodiment of the present application, the same or similar content as the above embodiment can be referred to the above introduction and will not be repeated hereinafter.

[0088] Please refer to Figure 2 , Figure 2 which is a schematic flow chart provided for the second embodiment of the PPG light leakage self-checking method of the present application.

[0089] In this embodiment, the photodetector includes a first photodetector and a second photodetector with different positions. The first photoelectric data includes the third photoelectric data detected by the first photodetector when the light source is turned on and the fourth photoelectric data detected by the second photodetector when the light source is turned on. The second photoelectric data includes the fifth photoelectric data detected by the first photodetector when the light source is turned off and the sixth photoelectric data detected by the second photodetector when the light source is turned off. The preset thresholds include a first preset threshold set based on the data detected by the first photodetector in a preset lightless environment and a second preset threshold set based on the data detected by the second photodetector in a preset lightless environment.

[0090] Step S300 may include steps S310 to S330:

[0091] Step S310, determine the PPG light leakage data corresponding to the first photodetector according to the third photoelectric data and the fifth photoelectric data;

[0092] Step S320, determine the PPG light leakage data corresponding to the second photodetector according to the fourth photoelectric data and the sixth photoelectric data;

[0093] Step S330, when the PPG light leakage data corresponding to the first photodetector is greater than the first preset threshold or the PPG light leakage data corresponding to the second photodetector is greater than the second preset threshold, determine that the PPG sensor leaks light.

[0094] In this embodiment, when there is more than one photoelectric sensor in the PPG sensor, the data detected by each photoelectric sensor when the light source is turned on and off can be obtained respectively, and the influence of the environmental light can be excluded by differential calculation. Then, combined with the preset thresholds set separately for each photodetector, the light leakage situation at each photodetector can be accurately quantified, so as to realize the independent light leakage detection of different photodetectors and improve the sensitivity and adaptability of the PPG light leakage detection.

[0095] It is worth mentioning that after realizing the independent light leakage detection based on the photodetector, it is possible to further determine which photodetector in the PPG sensor has a light leakage phenomenon, thus facilitating targeted repair during subsequent maintenance.

[0096] In addition, when the PPG light leakage data corresponding to each photodetector is less than or equal to its respective preset threshold, the PPG calibration data corresponding to each photodetector can be generated accordingly, so as to achieve the calibration accuracy at the photodetector level when calibrating the PPG sensor.

[0097] Based on the above first embodiment, a PPG light leakage self-checking method according to the third embodiment of the present application is proposed.

[0098] In the third embodiment of the present application, for the content that is the same as or similar to the above embodiment, reference can be made to the above introduction and will not be repeated hereinafter.

[0099] Please refer to Figure 3 , Figure 3 which is a schematic flowchart provided for the third embodiment of the PPG light leakage self-checking method of the present application.

[0100] In this embodiment, the light source includes a first light source and a second light source with different positions. The first optoelectronic data includes the seventh optoelectronic data detected by the photodetector when the first light source is turned on and the second light source is turned off, and the eighth optoelectronic data detected by the photodetector when the second light source is turned on and the first light source is turned off.

[0101] Step S300 may further include steps S340 to S360:

[0102] Step S340, determine the PPG light leakage data corresponding to the first light source according to the seventh optoelectronic data and the second optoelectronic data;

[0103] Step S350, determine the PPG light leakage data corresponding to the second light source according to the eighth optoelectronic data and the second optoelectronic data;

[0104] Step S360, determine that the PPG sensor has a light leakage when the PPG light leakage data corresponding to the first light source is greater than the preset threshold or the PPG light leakage data corresponding to the second light source is greater than the preset threshold.

[0105] In this embodiment, when there is more than one light source in the PPG sensor, the data detected by the photoelectric sensor when different light sources are turned on separately can be obtained respectively, and the influence of ambient light can be excluded through differential calculation, so as to accurately quantify the light leakage situation of each light source in the PPG sensor, thereby realizing the independent light leakage detection of different light sources and improving the sensitivity and adaptability of PPG light leakage detection.

[0106] It is worth mentioning that after implementing independent light leakage detection based on the light source, it is possible to further determine which light source in the PPG sensor has a light leakage phenomenon, facilitating targeted repair during subsequent maintenance.

[0107] In addition, when the PPG light leakage data corresponding to each light source is less than or equal to a preset threshold, PPG calibration data corresponding to each light source can be generated accordingly, thereby achieving calibration accuracy at the light source level when calibrating the PPG sensor.

[0108] To facilitate understanding of the PPG light leakage self-check method provided in the above embodiments of the present application, a specific embodiment is specifically listed:

[0109] As Figure 3 shown, in this specific embodiment, the PPG light leakage self-check mainly involves a wearable device integrated with a PPG sensor, control software (host computer software, mobile phone APP, or internal program of the wearable device), and a cloud device.

[0110] In this specific embodiment, a tester or user can issue a PPG light leakage self-check instruction through the control software, trigger the wearable device to perform PPG light leakage detection, and display the data and results of the PPG light leakage detection. At the same time, the wearable device will also transmit the data and results of the PPG light leakage detection to the cloud device for storage and recording, so as to facilitate real-time monitoring of the defect rate of the PPG sensor.

[0111] As Figure 5 shown, in this specific embodiment, the PPG sensor mainly includes 3 LEDs (Light Emitting Diode, light-emitting diodes, that is, light sources) and 4 PDs (Photo Diode, photodiodes, that is, photodetectors), and there are light-shielding structures such as foam between the LEDs and PDs to block light and prevent the light of the LEDs from directly entering the corresponding PDs. Among them, the 3 LEDs are LED1, LED2, and LED3 respectively, and the 4 PDs are PD1, PD2, PD3, and PD4 respectively. When LED1 emits light, it corresponds to PD1, PD2, PD3, and PD4. When LED2 emits light, it corresponds to PD3 and PD4. When LED3 emits light, it corresponds to PD1 and PD2.

[0112] In this specific embodiment, after receiving the PPG self-check instruction, the wearable device first determines whether the wearable device is stationary and horizontal by reading the data collected by the inertial sensor built into the wearable device. That is, the wearable device is also integrated with an inertial sensor. Before the step of obtaining the ambient light data detected by the photodetector within the sliding time window, the method further includes: determining the motion state of the wearable device according to the data detected by the inertial sensor; and when the motion state is stationary, performing the step of obtaining the ambient light data detected by the ambient light detection device within the sliding time window.

[0113] When the wearable device is stationary and horizontal, in this specific embodiment, the environmental light detection device is first used to determine the current environmental light stability. After determining that the current environmental light is stable, LED1 is controlled to turn on for one second - LED1 is turned off for one second - LED2 is turned on for one second - LED2 is turned off for one second - LED3 is turned on for one second - LED3 is turned off for one second in sequence (initially, all LEDs are in the off state). During the time when the LEDs are on and off, the data detected by the PD corresponding to each LED is read respectively, so as to determine the PD data when each LED is on and off. That is, the fluctuation degree of the environmental light data is determined, and in the case where the fluctuation degree is the first fluctuation degree, the first optoelectronic data detected by the photodetector when the light source is turned on and the second optoelectronic data detected when the light source is turned off are obtained.

[0114] Exemplarily, when LED1 is on, the data detected by PD1, PD2, PD3, and PD4 can be read respectively and averaged, that is, PD(LED1 on) = (PD1 + PD2 + PD3 + PD4) / 4, as the PD data when LED1 is on. To avoid accidental interference, multiple operations can be performed within a specified time to obtain multiple PD(LED1 on), then the highest value and the lowest value are removed, and the average of the remaining data is taken as the final PD(LED1 on). By analogy, the PD data PD(LED1 off) when LED1 is off, the PD data PD(LED2 on) when LED2 is on, the PD data PD(LED2 off) when LED2 is off, the PD data PD(LED3 on) when LED3 is on, and the PD data PD(LED3 off) when LED3 is off can be obtained.

[0115] Next, calculate the PPG light leakage data corresponding to each LED, and the formula is as follows:

[0116] PD(LED1 light leakage) = PD(LED1 on) - PD(LED1 off);

[0117] PD(LED2 light leakage) = PD(LED2 on) - PD(LED2 off);

[0118] PD(LED3 light leakage) = PD(LED3 on) - PD(LED3 off);

[0119] Among them, PD(LED1 light leakage) is the PPG light leakage data corresponding to LED1, PD(LED2 light leakage) is the PPG light leakage data corresponding to LED2, and PD(LED3 light leakage) is the PPG light leakage data corresponding to LED3.

[0120] That is, according to the first optoelectronic data and the second optoelectronic data, the PPG light leakage data is determined.

[0121] After calculating the PPG light leakage data corresponding to each LED in this specific embodiment, the PPG light leakage data corresponding to each LED is sequentially compared with a preset threshold PD (light leakage threshold). If any PD (LED light leakage) > PD (light leakage threshold), it is considered that there is light leakage in the PPG sensor, and the product is determined to be unqualified. At this time, even if the PPG sensor is compensated based on the PPG light leakage data, accurate calibration cannot be achieved because too much PPG optoelectronic data is lost due to a large amount of light leakage data, and a large amount of lost PPG optoelectronic data often contains a lot of detection information for relevant health indicators such as heart rate, blood oxygen, or sleep. Therefore, when the PPG light leakage data is greater than the preset threshold, even if PPG calibration data is generated based on the PPG light leakage data to compensate the PPG sensor, effective calibration cannot be performed, and thus physiological parameters such as heart rate, blood oxygen saturation, or sleep cannot be accurately monitored anymore, and the unqualified product needs to be reworked and repaired; if all PD (LED light leakage) ≤ PD (light leakage threshold), it is considered that the light leakage of the PPG sensor is within an acceptable error range, and it is determined that the product does not need to be reworked and repaired. If the light leakage of the PPG sensor is within an acceptable error range but the light leakage is not 0, only the PPG sensor needs to be calibrated according to the light leakage data of the PPG sensor (that is, when the PPG light leakage data is less than or equal to the preset threshold and the PPG light leakage data is not zero, PPG calibration data is generated according to the PPG light leakage data, where the PPG calibration data is used to optimize the calibration of the PPG sensor, which is okay). That is, when the PPG light leakage data corresponding to the first light source is greater than the preset threshold, or the PPG light leakage data corresponding to the second light source is greater than the preset threshold, it is determined that there is light leakage in the PPG sensor.

[0122] Among them, PD (light leakage threshold) can be set to PD (reference noise) * 1%. PD (reference noise) is the data detected by PD in a pure black environment, which is a characteristic of PD and is related to the selection of PD and the circuit board main board, etc. That is, the preset threshold is set based on the data detected by the photodetector in a preset lightless environment.

[0123] After determining that the light leakage of the PPG sensor is within an acceptable error range in this specific embodiment, it is determined that the PPG sensor has no light leakage, or it can also be said that the PPG sensor belongs to a weak light leakage that can be calibrated (when the PPG light leakage data is not zero). At this time, when the PPG light leakage data is not zero, further data calibration of the PPG sensor needs to be performed based on the PPG light leakage data to eliminate the existing slight light leakage situation, and rework and repair are not required.

[0124] In one example, the calibration method is as follows: save the PPG light leakage data corresponding to each LED into the memory. Each time when acquiring the PPG sensor data subsequently, extract the corresponding PPG light leakage data from the memory according to the currently applied LED and PD. Subtract the corresponding PPG light leakage data from the actually measured PD data to obtain the calibrated PD data. That is, when the PPG light leakage data is less than or equal to a preset threshold and the PPG light leakage data is not zero, generate PPG calibration data according to the PPG light leakage data, where the PPG calibration data is used to calibrate the PPG sensor.

[0125] Exemplarily, PD(LED1 calibration)=PD(LED1 measured)-PD(LED1 light leakage), where PD(LED1 calibration) is the PD data when LED1 is lit after calibration, and PD(LED1 measured) is the actually measured PD data when LED1 is lit.

[0126] Finally, after completing the light leakage detection or calibration, the wearable device or the control software can push the corresponding data to the cloud device for storage, so as to facilitate real-time monitoring of the defect rate of the PPG sensor.

[0127] It should be noted that the above specific embodiments are only used to assist in understanding the present application, and do not constitute a limitation on the PPG light leakage self-check method of the present application. Based on this technical concept, more forms of simple transformations are within the protection scope of the present application.

[0128] In addition, please refer to Figure 6 , Figure 6 which is a schematic diagram of the device structure of the hardware operating environment involved in the PPG light leakage self-check method in the embodiments of the present application.

[0129] The present application also provides a wearable device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the PPG light leakage self-check method in the above embodiments. <9000279>

[0130] Next, refer to Figure 6 which shows a schematic diagram of the structure of a wearable device suitable for implementing the embodiments of the present application. The wearable device in the embodiments of the present application may include, but is not limited to, such as a smart watch, a smart bracelet, a smart helmet, smart glasses, a smart collar, or any electronic device capable of implementing the above functions. Figure 6 The wearable device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present application.

[0131] Such as Figure 6As shown, the wearable device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in the read-only memory 1002 or a program loaded from the storage device 1003 into the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the wearable device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the wearable device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a wearable device with various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be implemented or had alternatively.

[0132] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above functions defined in the method of the embodiments disclosed in the present application are executed.

[0133] The wearable device provided by the present application adopts the PPG light leakage self-check method in the above embodiment, and can solve the technical problem that the traditional PPG light leakage detection depends on a strictly controlled darkroom environment and has low convenience. Compared with the prior art, the beneficial effects of the wearable device provided by the present application are the same as the beneficial effects of the PPG light leakage self-check method provided by the above embodiment, and other technical features in the wearable device are the same as the features disclosed in the above embodiment method, which will not be elaborated here.

[0134] It should be understood that the various parts disclosed in the present application may be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0135] The above is only the specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the above-mentioned claims.

[0136] In addition, the present application also provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the steps of the PPG light leakage self-checking method in the above embodiments.

[0137] The computer-readable storage medium provided by the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical fibers, portable compact disk read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0138] The above computer-readable storage medium can be included in a wearable device; or it can exist alone without being assembled into the wearable device.

[0139] The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed by a wearable device, the wearable device is caused to: after receiving a PPG light leakage self-checking instruction, obtain ambient light data detected by an ambient light detection device within a sliding time window; determine the degree of fluctuation of the ambient light data, and in the case where the degree of fluctuation is a first degree of fluctuation, obtain first optoelectronic data detected by a photodetector when the light source is turned on and second optoelectronic data detected when the light source is turned off; determine PPG light leakage data based on the first optoelectronic data and the second optoelectronic data, and in the case where the PPG light leakage data is greater than a preset threshold, determine that the PPG sensor has light leakage.

[0140] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0142] The modules involved in the embodiments described in this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0143] The computer-readable storage medium provided by this application stores computer-readable program instructions (i.e., computer programs) for performing the steps of the above-mentioned PPG light leakage self-check method, which can solve the technical problem that traditional PPG light leakage detection depends on a strictly controlled darkroom environment and has low convenience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the PPG light leakage self-check method provided by the above embodiments, and will not be elaborated here.

[0144] In addition, an embodiment of the present application further provides a computer program product, including a computer program, which when executed by a processor, implements the steps of the PPG light leakage self-checking method in the above embodiment.

[0145] The computer program product provided by the present application can solve the technical problem that the traditional PPG light leakage detection depends on a strictly controlled darkroom environment and has low convenience. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the PPG light leakage self-checking method provided by the above embodiment, and will not be elaborated here.

[0146] The above are only partial embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the specification and drawings of the present application under the technical concept of the present application, or direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.

Claims

1. A method for self-checking PPG light leakage, characterized in that, The described PPG light leakage self-check method is applied to a wearable device. The wearable device is integrated with a PPG sensor and an ambient light detection device. The PPG sensor includes a photodetector and a light source. The method includes: After receiving a PPG light leakage self-check instruction, obtain the ambient light data detected by the ambient light detection device within a sliding time window; Determine the fluctuation degree of the ambient light data. When the fluctuation degree is the first fluctuation degree, obtain the first photoelectric data detected by the photodetector when the light source is turned on, and the second photoelectric data detected by the photodetector when the light source is turned off; According to the first photoelectric data and the second photoelectric data, determine the PPG light leakage data. When the PPG light leakage data is greater than a preset threshold, determine that the PPG sensor has light leakage.

2. The PPG light leakage self-checking method according to claim 1, wherein The method further includes: When the PPG light leakage data is less than or equal to the preset threshold and the PPG light leakage data is not zero, generate PPG calibration data according to the PPG light leakage data, where the PPG calibration data is used to calibrate the PPG sensor.

3. The PPG light leakage self-checking method according to claim 1, characterized in that The step of determining the fluctuation degree of the ambient light data includes: Perform statistical analysis on the ambient light data to obtain the statistic of the ambient light data, where the statistic includes at least one of variance, standard deviation, and range; Based on the statistic, determine the fluctuation degree of the ambient light data.

4. The PPG light leakage self-checking method according to claim 1, wherein The method further includes: When the fluctuation degree is the second fluctuation degree, output a preset ambient light fluctuation prompt, where the second fluctuation degree is higher than the first fluctuation degree.

5. The PPG light leakage self-checking method according to claim 1, wherein The wearable device is further integrated with an inertial sensor. Before the step of obtaining the ambient light data detected by the photodetector within a sliding time window, the method further includes: Determine the motion state of the wearable device according to the data detected by the inertial sensor; When the motion state is stationary, execute the step of obtaining the ambient light data detected by the ambient light detection device within a sliding time window.

6. The PPG light leakage self-checking method according to any one of claims 1 to 5, characterized in that, The preset threshold is set based on the data detected by the photodetector in a preset lightless environment.

7. The PPG light leakage self-checking method according to claim 6, wherein The photodetector includes a first photodetector and a second photodetector with different positions. The first photoelectric data includes the third photoelectric data detected by the first photodetector when the light source is turned on, and the fourth photoelectric data detected by the second photodetector when the light source is turned on. The second photoelectric data includes the fifth photoelectric data detected by the first photodetector when the light source is turned off, and the sixth photoelectric data detected by the second photodetector when the light source is turned off. The preset threshold includes a first preset threshold set based on the data detected by the first photodetector in a preset lightless environment, and a second preset threshold set based on the data detected by the second photodetector in a preset lightless environment; The step of determining PPG light leakage data according to the first optoelectronic data and the second optoelectronic data, and determining that the PPG sensor has light leakage when the PPG light leakage data is greater than a preset threshold includes: Determining the PPG light leakage data corresponding to the first photodetector according to the third optoelectronic data and the fifth optoelectronic data; Determining the PPG light leakage data corresponding to the second photodetector according to the fourth optoelectronic data and the sixth optoelectronic data; Determining that the PPG sensor has light leakage when the PPG light leakage data corresponding to the first photodetector is greater than the first preset threshold or the PPG light leakage data corresponding to the second photodetector is greater than the second preset threshold.

8. The PPG light leakage self-checking method according to any one of claims 1 to 5, characterized in that The light source includes a first light source and a second light source with different positions, and the first optoelectronic data includes seventh optoelectronic data detected by the photodetector when the first light source is turned on and the second light source is turned off, and eighth optoelectronic data detected by the photodetector when the second light source is turned on and the first light source is turned off; The step of determining PPG light leakage data according to the first optoelectronic data and the second optoelectronic data, and determining that the PPG sensor has light leakage when the PPG light leakage data is greater than a preset threshold includes: Determining the PPG light leakage data corresponding to the first light source according to the seventh optoelectronic data and the second optoelectronic data; Determining the PPG light leakage data corresponding to the second light source according to the eighth optoelectronic data and the second optoelectronic data; Determining that the PPG sensor has light leakage when the PPG light leakage data corresponding to the first light source is greater than a preset threshold or the PPG light leakage data corresponding to the second light source is greater than a preset threshold.

9. A wearable device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the PPG light leakage self-checking method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and the computer program, when executed by the processor, implements the PPG light leakage self-checking method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Human Body Wearable Device And Operation Method Thereof

    CN107635456A

  • Electronic equipment testing method and electronic equipment testing device

    CN115979550A

  • Display method and system of mini-computer host

    CN119182968A

  • High-stability control method, device and equipment for UV light source and storage medium

    CN119729966A

  • Human Body Wearable Device and Operation Method Thereof

    US20180098708A1