CN117631738A - Current adjustment method, device, electronic equipment and readable storage medium - Google Patents
Current adjustment method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN117631738A CN117631738A CN202311798656.8A CN202311798656A CN117631738A CN 117631738 A CN117631738 A CN 117631738A CN 202311798656 A CN202311798656 A CN 202311798656A CN 117631738 A CN117631738 A CN 117631738A
- Authority
- CN
- China
- Prior art keywords
- current value
- signal
- acc
- ppg
- ppg signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000005070 sampling Methods 0.000 claims abstract description 79
- 238000012545 processing Methods 0.000 claims description 28
- 230000009471 action Effects 0.000 claims description 19
- 230000001105 regulatory effect Effects 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 13
- 238000005516 engineering process Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 10
- 230000036541 health Effects 0.000 description 8
- 239000008280 blood Substances 0.000 description 6
- 210000004369 blood Anatomy 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000001788 irregular Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 210000001367 artery Anatomy 0.000 description 3
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 229910052760 oxygen Inorganic materials 0.000 description 3
- 239000001301 oxygen Substances 0.000 description 3
- 230000017531 blood circulation Effects 0.000 description 2
- 210000004204 blood vessel Anatomy 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000747 cardiac effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 210000001519 tissue Anatomy 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000009532 heart rate measurement Methods 0.000 description 1
- 230000031700 light absorption Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 210000003205 muscle Anatomy 0.000 description 1
- 238000013186 photoplethysmography Methods 0.000 description 1
- 210000003462 vein Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05F—SYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
- G05F1/00—Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
- G05F1/10—Regulating voltage or current
- G05F1/46—Regulating voltage or current wherein the variable actually regulated by the final control device is DC
- G05F1/56—Regulating voltage or current wherein the variable actually regulated by the final control device is DC using semiconductor devices in series with the load as final control devices
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Automation & Control Theory (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本申请公开了一种电流调节方法、装置、电子设备及可读存储介质,属于电子技术领域。该方法包括:获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。
This application discloses a current adjustment method, device, electronic equipment and readable storage medium, which belongs to the field of electronic technology. The method includes: acquiring the PPG signal collected by the PPG sensor in the wearable electronic device within the first time period, the first ACC signal collected by the ACC sensor within the first time period, and the light emitting element in the PPG sensor collecting the first ACC signal within the first time period. The average current value within the segment, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal meets the first condition, based on the PPG signal and the first ACC signal and an average current value to adjust the current value of the light emitting element; wherein satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range; the PPG signal The number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in is greater than the predetermined quantity threshold.
Description
技术领域Technical field
本申请属于电子技术领域,具体涉及一种电流调节方法、装置、电子设备及可读存储介质。This application belongs to the field of electronic technology, and specifically relates to a current adjustment method, device, electronic equipment and readable storage medium.
背景技术Background technique
在大数据时代,随着穿戴式电子设备的推广和普及,穿戴式电子设备已经成为运动健康领域的重要产品之一。目前,大部分穿戴式电子设备可以通过PPG技术,来帮助用户更好地管理自己的健康状况,其中,PPG技术是一种用于测量用户心率和心血流量的非侵入式光学测量技术。In the era of big data, with the promotion and popularization of wearable electronic devices, wearable electronic devices have become one of the important products in the field of sports and health. Currently, most wearable electronic devices can help users better manage their health conditions through PPG technology, which is a non-invasive optical measurement technology used to measure the user's heart rate and cardiac blood flow.
在相关技术中,穿戴式电子设备通过控制内置的PPG传感器中的光发射元件发射光线,如LED或激光二极管,该光线会穿透皮肤到达血管后再反射出皮肤,然后,PPG传感器中的PPG芯片可以通过将检测到的皮肤表面反射的光线强度和光线波形转换为PPG信号,来计算心率和血氧饱和度等用户生理指标。这些用户生理指标可以通过穿戴式电子设备中的应用程序进行分析和记录,并提供相应的健康建议和运动指导。In related technologies, wearable electronic devices emit light, such as LEDs or laser diodes, by controlling the light-emitting element in the built-in PPG sensor. The light penetrates the skin and reaches the blood vessels and then reflects out of the skin. Then, the PPG in the PPG sensor The chip can calculate user physiological indicators such as heart rate and blood oxygen saturation by converting the detected light intensity and light waveform reflected by the skin surface into PPG signals. These user physiological indicators can be analyzed and recorded through applications in wearable electronic devices, and corresponding health advice and exercise guidance can be provided.
然而,在用户佩戴穿戴式电子设备运动的过程中,由于穿戴式电子设备会随着用户的运动的变化而产生不规律的晃动,使得穿戴式电子设备中PPG芯片所获取的PPG信号的信号波动变化很大,因此,会影响穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。However, when the user wears the wearable electronic device for exercise, the wearable electronic device will sway irregularly as the user's movement changes, causing the PPG signal acquired by the PPG chip in the wearable electronic device to fluctuate. The variation is large, therefore, it will affect the accuracy of wearable electronic devices in measuring user physiological indicators through PPG sensors.
发明内容Contents of the invention
本申请实施例的目的是提供一种电流调节方法、装置、电子设备及可读存储介质,能够减小穿戴式电子设备中PPG芯片所获取的PPG信号的信号波动,以提高穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。The purpose of the embodiments of the present application is to provide a current adjustment method, device, electronic equipment and readable storage medium, which can reduce the signal fluctuation of the PPG signal acquired by the PPG chip in the wearable electronic device, so as to improve the throughput of the wearable electronic device. The accuracy of PPG sensors in measuring user physiological indicators.
第一方面,本申请实施例提供了一种电流调节方法,该电流调节方法包括:获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。In a first aspect, embodiments of the present application provide a current adjustment method. The current adjustment method includes: acquiring a PPG signal collected by a PPG sensor in a wearable electronic device within a first time period, and obtaining a PPG signal collected by an ACC sensor within a first time period. The collected first ACC signal and the average current value of the light emitting element in the PPG sensor during the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; When the PPG signal satisfies the first condition, the current value of the light emitting element is adjusted based on the PPG signal, the first ACC signal and the average current value; wherein satisfying the first condition includes at least one of the following: all samples in the PPG signal The average signal strength of the PPG signal of the point is outside the preset signal strength range; the number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold.
第二方面,本申请实施例提供了一种电流调节装置,该电流调节装置包括:获取模块和处理模块;该获取模块,用于获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值;PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;该处理模块,用于在获取模块获取的PPG信号满足第一条件的情况下,基于获取模块获取的PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。In the second aspect, embodiments of the present application provide a current adjustment device. The current adjustment device includes: an acquisition module and a processing module; the acquisition module is used to acquire the data collected by the PPG sensor in the wearable electronic device within a first time period. The PPG signal, the first ACC signal collected by the ACC sensor in the first time period, and the average current value of the light emitting element in the PPG sensor in the first time period; the PPG signal includes the PPG signal of at least one sampling point, the first The ACC signal includes the ACC signal of at least one sampling point; the processing module is used to adjust the PPG signal, the first ACC signal and the average current value obtained by the acquisition module based on the PPG signal acquired by the acquisition module meeting the first condition. The current value of the light emitting element; wherein, satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range; the average signal strength at all sampling points in the PPG signal The number of sampling points whose amplitude is outside the predetermined amplitude range is greater than the predetermined number threshold.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.
在本申请实施例中,获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。在本方案中,穿戴式电子设备判断PPG信号满足第一条件的情况下,通过结合同一时间段采集的运动产生的ACC信号和光发射元件的平均电流值,自适应的调整光发射元件的电流值,从而避免由于用户运动产生不规律的晃动,使得穿戴式电子设备中PPG芯片所获取的PPG信号的信号波动变化很大的问题,从而提高穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。In the embodiment of the present application, the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the light emitting element in the PPG sensor are obtained. The average current value in the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal satisfies the first condition, based on the PPG signal, the first An ACC signal and an average current value to adjust the current value of the light emitting element; wherein satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range ; The number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold. In this solution, when the wearable electronic device determines that the PPG signal meets the first condition, it adaptively adjusts the current value of the light-emitting element by combining the ACC signal generated by motion collected in the same time period and the average current value of the light-emitting element. , thereby avoiding the problem that the PPG signal obtained by the PPG chip in the wearable electronic device fluctuates greatly due to irregular shaking caused by the user's movement, thus improving the accuracy of the wearable electronic device in measuring the user's physiological indicators through the PPG sensor. .
附图说明Description of drawings
图1是本申请实施例提供的一种电流调节方法的流程示意图之一;Figure 1 is one of the schematic flow diagrams of a current adjustment method provided by an embodiment of the present application;
图2是本申请实施例提供的一种电流调节方法的流程示意图之二;Figure 2 is a second schematic flowchart of a current adjustment method provided by an embodiment of the present application;
图3是本申请实施例提供的一种电流调节方法的流程示意图之三;Figure 3 is the third schematic flowchart of a current adjustment method provided by an embodiment of the present application;
图4是本申请实施例提供的一种电流调节装置的结构示意图;Figure 4 is a schematic structural diagram of a current regulating device provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的硬件结构示意图之一;Figure 5 is one of the schematic diagrams of the hardware structure of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的硬件结构示意图之二。FIG. 6 is a second schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的电流调节方法、装置、电子设备及可读存储介质进行详细地说明。The current adjustment method, device, electronic device and readable storage medium provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
在大数据时代,随着穿戴式电子设备的推广和普及,穿戴式电子设备已经成为运动健康领域的重要产品之一。目前,大部分穿戴式电子设备可以通过PPG技术,来帮助用户更好地管理自己的健康状况,其中,PPG技术是一种用于测量用户心率和心血流量的非侵入式光学测量技术。In the era of big data, with the promotion and popularization of wearable electronic devices, wearable electronic devices have become one of the important products in the field of sports and health. Currently, most wearable electronic devices can help users better manage their health conditions through PPG technology, which is a non-invasive optical measurement technology used to measure the user's heart rate and cardiac blood flow.
在相关技术中,穿戴式电子设备通过控制内置的PPG传感器中的光发射元件发射光线,如LED或激光二极管,该光线会穿透皮肤到达血管后再反射出皮肤,然后,PPG传感器中的PPG芯片可以通过将检测到的皮肤表面反射的光线强度和光线波形转换为PPG信号,来计算心率和血氧饱和度等用户生理指标。这些用户生理指标可以通过穿戴式电子设备中的应用程序进行分析和记录,并提供相应的健康建议和运动指导。In related technologies, wearable electronic devices emit light, such as LEDs or laser diodes, by controlling the light-emitting element in the built-in PPG sensor. The light penetrates the skin and reaches the blood vessels and then reflects out of the skin. Then, the PPG in the PPG sensor The chip can calculate user physiological indicators such as heart rate and blood oxygen saturation by converting the detected light intensity and light waveform reflected by the skin surface into PPG signals. These user physiological indicators can be analyzed and recorded through applications in wearable electronic devices, and corresponding health advice and exercise guidance can be provided.
在相关技术中,光电容积脉搏波描记法所使用的PPG技术是指利用光学心率传感器,穿戴式电子设备通过控制内置的PPG传感器中的光发射元件,例如LED或激光二极管,发射特定颜色波长的光射入进人体表皮皮肤,再根据PPG传感器中的光敏传感器接收对应的反射光或入射光来达到检测脉搏信号的目的。由于除去人体肌肉、骨骼、静脉和其他组织等等对光的吸收基本恒定的区域,流经皮肤下的动脉血管对光的吸收或者衰减是时刻变化的;同时,由于心脏的跳动规律的将血液泵进动脉,动脉的血液容积也是随之改变的,因此,当光照经过皮肤组织然后再反射到接收端的光敏传感器时,获得的光信号强度是会有一定变化的。然后,PPG传感器中的PPG芯片将这种光信号的变化转化成对应电信号,即上述PPG信号,从而使得穿戴式电子设备可以根据该PPG信号来测量用户生理指标。In related technology, the PPG technology used in photoplethysmography refers to the use of optical heart rate sensors. The wearable electronic device emits specific color wavelengths by controlling the light-emitting elements in the built-in PPG sensor, such as LEDs or laser diodes. Light enters the epidermal skin of the human body, and then the photosensitive sensor in the PPG sensor receives the corresponding reflected light or incident light to detect the pulse signal. Except for areas where the absorption of light by human muscles, bones, veins and other tissues is basically constant, the absorption or attenuation of light by arteries flowing under the skin changes all the time; at the same time, due to the regular beating of the heart, the blood is As the blood is pumped into the artery, the blood volume of the artery also changes accordingly. Therefore, when the light passes through the skin tissue and then reflects to the photosensitive sensor at the receiving end, the intensity of the light signal obtained will change to a certain extent. Then, the PPG chip in the PPG sensor converts this change in light signal into a corresponding electrical signal, that is, the above-mentioned PPG signal, so that the wearable electronic device can measure the user's physiological indicators based on the PPG signal.
通常,佩戴穿戴式电子设备,例如智能手表运动时,宽松的佩戴状态会使用户感觉更加舒适,减少用户的束缚感。然而,这样佩戴智能手边会使得智能手表底壳所安装的PPG传感器与皮肤的接触是动态变化,从而导致PPG传感器传感器采集的数据十分不稳定,使得穿戴式电子设备中PPG芯片所获取的PPG信号的信号波动变化很大,进而影响了智能手表计算健康指标的准确性,极大降低了用户运动过程中测量自身健康状况的体验感。Usually, when wearing a wearable electronic device, such as a smart watch, a loose wearing state will make the user feel more comfortable and reduce the user's sense of restraint. However, wearing the smart watch in this way will cause the contact between the PPG sensor installed on the bottom case of the smart watch and the skin to change dynamically, causing the data collected by the PPG sensor to be very unstable, making the PPG signal obtained by the PPG chip in the wearable electronic device very unstable. The signal fluctuations vary greatly, which affects the accuracy of the smart watch's calculation of health indicators and greatly reduces the user's experience of measuring their own health during exercise.
而在本申请实施例提供的电流调节方法中,获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。在本方案中,穿戴式电子设备判断PPG信号满足第一条件的情况下,通过结合同一时间段采集的运动产生的ACC信号和光发射元件的平均电流值,自适应的调整光发射元件的电流值,从而在用户运动产生不规律的晃动的情况下,使得穿戴式电子设备中PPG芯片可以获取到较为稳定PPG信号,从而提高穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。In the current adjustment method provided by the embodiment of the present application, the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the PPG sensor are obtained. The average current value of the light emitting element in the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal meets the first condition , based on the PPG signal, the first ACC signal and the average current value, adjust the current value of the light emitting element; wherein, satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is at Outside the preset signal strength range; the number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold. In this solution, when the wearable electronic device determines that the PPG signal meets the first condition, it adaptively adjusts the current value of the light-emitting element by combining the ACC signal generated by motion collected in the same time period and the average current value of the light-emitting element. , thus allowing the PPG chip in the wearable electronic device to obtain a relatively stable PPG signal when the user's movement causes irregular shaking, thereby improving the accuracy of the wearable electronic device in measuring the user's physiological indicators through the PPG sensor.
本实施例提供的电流调节方法的执行主体可以为电流调节装置,该电流调节装置可以为穿戴式电子设备,也可以为该穿戴式电子设备中的控制模块或处理模块等。以下以穿戴式电子设备为例来对本申请实施例提供的技术方案进行说明。The execution subject of the current adjustment method provided in this embodiment may be a current adjustment device, and the current adjustment device may be a wearable electronic device, or may be a control module or processing module in the wearable electronic device. The following uses a wearable electronic device as an example to describe the technical solutions provided by the embodiments of the present application.
本申请实施例提供一种电流调节方法,图1示出了本申请实施例提供的一种电流调节方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的电流调节方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides a current adjustment method. FIG. 1 shows a flow chart of a current adjustment method provided by an embodiment of the present application. This method can be applied to electronic devices. As shown in Figure 1, the current adjustment method provided by the embodiment of the present application may include the following steps 201 and 202.
步骤201、穿戴式电子设备获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值。Step 201: The wearable electronic device acquires the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the light emitting element in the PPG sensor. The average current value during the first time period.
在本申请一些实施例中,上述第一时间段为可以为任意一段时间,可以是固定的一段时间,也可以为随机的一段时间。例如,1s内,或10ms内等。In some embodiments of the present application, the above-mentioned first time period can be any period of time, it can be a fixed period of time, or it can be a random period of time. For example, within 1s, or within 10ms, etc.
在本申请一些实施例中,上述PPG信号包括至少一个采样点的的PPG信号。In some embodiments of the present application, the above-mentioned PPG signal includes a PPG signal of at least one sampling point.
在本申请一些实施例中,上述第一ACC信号包括至少一个采样点的ACC信。In some embodiments of the present application, the above-mentioned first ACC signal includes the ACC signal of at least one sampling point.
在本申请一些实施例中,PPG传感器会在至少一个采样点中的每个采样点获取PPG信号的信号强度,并基于这些采样点的PPG信号的信号强度,得到一段PPG信号。In some embodiments of the present application, the PPG sensor acquires the signal strength of the PPG signal at each of at least one sampling point, and obtains a segment of the PPG signal based on the signal strength of the PPG signal at these sampling points.
步骤202、穿戴式电子设备在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值。Step 202: When the PPG signal meets the first condition, the wearable electronic device adjusts the current value of the light emitting element based on the PPG signal, the first ACC signal and the average current value.
在本申请一些实施例中,满足第一条件包括以下至少之一:In some embodiments of this application, meeting the first condition includes at least one of the following:
PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;The average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range;
PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。The number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold.
在本申请一些实施例中,上述PPG信号满足第一条件表示该PPG信号的波动变化较大,因此需要通过调整光发射元件的电流值,来减小PPG信号的波动幅度。In some embodiments of the present application, if the above-mentioned PPG signal satisfies the first condition, it means that the fluctuation of the PPG signal changes greatly. Therefore, it is necessary to adjust the current value of the light-emitting element to reduce the fluctuation amplitude of the PPG signal.
在本申请一些实施例中,上述预设信号强度范围可以是穿戴式电子设备默认设置的,也可以是用户自定义设置的。In some embodiments of the present application, the above-mentioned preset signal strength range may be a default setting of the wearable electronic device, or may be a user-defined setting.
在本申请一些实施例中,上述预定幅值范围可以是穿戴式电子设备默认设置的,也可以是用户自定义设置的。In some embodiments of the present application, the above-mentioned predetermined amplitude range may be a default setting of the wearable electronic device, or may be a user-defined setting.
示例性地,上述预定幅值范围可以基于不同的场景,例如佩戴场景、测量心率场景或者测量血氧场景等,通过实验评估确定。For example, the above-mentioned predetermined amplitude range can be determined through experimental evaluation based on different scenarios, such as wearing scenarios, heart rate measurement scenarios, or blood oxygen measurement scenarios.
在本申请一些实施例中,穿戴式电子设备基于PPG信号、穿戴式电子设备中的ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,计算调整光发射元件所需的电流值,并根据该电流值调整光发声元件的电流值。In some embodiments of the present application, the wearable electronic device is based on the PPG signal, the first ACC signal collected by the ACC sensor in the wearable electronic device within the first time period, and the light emitting element in the PPG sensor within the first time period. average current value, calculate the current value required to adjust the light-emitting element, and adjust the current value of the light-emitting element according to this current value.
在本申请实施例提供的电流调节方法中,获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。在本方案中,穿戴式电子设备判断PPG信号满足第一条件的情况下,通过结合同一时间段采集的运动产生的ACC信号和光发射元件的平均电流值,自适应的调整光发射元件的电流值,从而在用户运动产生不规律的晃动的情况下,使得穿戴式电子设备中PPG芯片可以获取到较为稳定PPG信号,从而提高穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。In the current adjustment method provided by the embodiment of the present application, the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the PPG signal collected by the PPG sensor in the first time period are obtained. The average current value of the light emitting element in the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal meets the first condition, Based on the PPG signal, the first ACC signal and the average current value, the current value of the light emitting element is adjusted; wherein satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is at a preset It is assumed that the signal strength is outside the range; the number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold. In this solution, when the wearable electronic device determines that the PPG signal meets the first condition, it adaptively adjusts the current value of the light-emitting element by combining the ACC signal generated by motion collected in the same time period and the average current value of the light-emitting element. , thus allowing the PPG chip in the wearable electronic device to obtain a relatively stable PPG signal when the user's movement causes irregular shaking, thereby improving the accuracy of the wearable electronic device in measuring the user's physiological indicators through the PPG sensor.
可选地,在本申请实施例中,结合图1,如图2所示,上述步骤202具体包括步骤202a至步骤202d:Optionally, in this embodiment of the present application, as shown in Figure 2 in conjunction with Figure 1, the above step 202 specifically includes steps 202a to 202d:
步骤202a、穿戴式电子设备对第一ACC信号进行滑窗运算,得到N个滑窗内的第二ACC信号,N为大于1的整数。Step 202a: The wearable electronic device performs a sliding window operation on the first ACC signal to obtain the second ACC signal within N sliding windows, where N is an integer greater than 1.
在本申请一些实施例中,穿戴式电子设备可以按照预设窗长和预设滑窗距离对第一ACC信号进行滑窗运算,得到N个滑窗内的第二ACC信号。In some embodiments of the present application, the wearable electronic device can perform a sliding window operation on the first ACC signal according to the preset window length and the preset sliding window distance to obtain the second ACC signal within N sliding windows.
示例性地,上述预设窗长可以为穿戴式电子设备默认设置的,也可以是用户自定义设置的。For example, the above-mentioned preset window length may be set by default for the wearable electronic device, or may be customized by the user.
示例性地,上述预设滑窗距离可以为穿戴式电子设备默认设置的,也可以是用户自定义设置的。For example, the above-mentioned preset sliding window distance may be a default setting of the wearable electronic device, or may be a user-defined setting.
举例说明,假设第一ACC信号包括500个采样点的ACC信号,若窗长为300,滑窗距离为100,则可以将第一ACC信号划分为3个第二ACC信号。第一个第二ACC信号包括第1个采样点到第300个采样点的ACC信号;第二个第二ACC信号包括第100个采样点到第400个采样点的ACC信号,第三个第二ACC信号包括第200采样点到第500个采样点的ACC信号。For example, assuming that the first ACC signal includes ACC signals of 500 sampling points, if the window length is 300 and the sliding window distance is 100, the first ACC signal can be divided into three second ACC signals. The first second ACC signal includes the ACC signal from the 1st sampling point to the 300th sampling point; the second second ACC signal includes the ACC signal from the 100th sampling point to the 400th sampling point, and the third second ACC signal includes the ACC signal from the 100th sampling point to the 400th sampling point. The second ACC signal includes the ACC signal from the 200th sampling point to the 500th sampling point.
步骤202b、穿戴式电子设备计算N个第二ACC信号中任意两个第二ACC信号间的相似度。Step 202b: The wearable electronic device calculates the similarity between any two second ACC signals among the N second ACC signals.
在本申请一些实施例中,动态时间规整算法(Dynamic Time Warping,DTW)计算两两第二ACC信号间的自相似度。In some embodiments of the present application, a dynamic time warping algorithm (Dynamic Time Warping, DTW) calculates the self-similarity between two second ACC signals.
在本申请一些实施例中,上述任意两个ACC信号间的自相似度用于表示用户在这两段ACC信号下的动作的一致性。In some embodiments of the present application, the self-similarity between any two ACC signals mentioned above is used to represent the consistency of the user's actions under these two ACC signals.
步骤202c、穿戴式电子设备在第一相似度大于第一阈值、且第一预测电流值和平均电流值间的第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第一电流值,并基于第一电流值,调整光发射元件的电流值。Step 202c: When the first similarity is greater than the first threshold and the first difference between the first predicted current value and the average current value is greater than or equal to the second threshold, the wearable electronic device determines the current value based on the first difference and the average current value, calculate the first current value, and adjust the current value of the light emitting element based on the first current value.
在本申请一些实施例中,上述第一相似度为上述N个第二ACC信号中任意两个第二ACC信号的相似度中的最高相似度。In some embodiments of the present application, the first similarity is the highest similarity among the similarities of any two second ACC signals among the N second ACC signals.
在本申请一些实施例中,上述第一阈值可以为穿戴式电子设备默认设置的,也可以为用户自定义设置的。In some embodiments of the present application, the above-mentioned first threshold may be set by default for the wearable electronic device or may be customized by the user.
在本申请一些实施例中,上述第一预测电流值是基于预设幅值、第一PPG信号的幅值以及第一时间段采集的平均电流值计算得到的。In some embodiments of the present application, the above-mentioned first predicted current value is calculated based on the preset amplitude, the amplitude of the first PPG signal, and the average current value collected in the first time period.
示例性地,上述预设幅值可以为上述预设幅值范围的上限和下限的平均值。For example, the above-mentioned preset amplitude may be an average of the upper limit and the lower limit of the above-mentioned preset amplitude range.
示例性地,上述第一预测电流值可以基于公式1计算得到。For example, the above-mentioned first predicted current value can be calculated based on Formula 1.
示例性地,上述公式1为:Illustratively, the above formula 1 is:
在本申请一些实施例中,上述第二阈值可以为穿戴式电子设备默认设置的,也可以为用户自定义设置的。In some embodiments of the present application, the above-mentioned second threshold may be set by default for the wearable electronic device, or may be customized by the user.
在本申请一些实施例中,上述“基于第一电流值,调整光发射元件的电流值”为穿戴式电子设备可以直接将PPG传感器中的光发射元件的电流值调整为第一电流值。In some embodiments of the present application, the above "adjusting the current value of the light-emitting element based on the first current value" means that the wearable electronic device can directly adjust the current value of the light-emitting element in the PPG sensor to the first current value.
可选地,在本申请一些实施例中,上述步骤202c中的“基于第一差值和平均电流值,计算第一电流值”具体包括步骤202c1:Optionally, in some embodiments of the present application, "calculate the first current value based on the first difference and the average current value" in the above step 202c specifically includes step 202c1:
步骤202c1、穿戴式电子设备将第一预测电流值和平均电流值间的第一差值减半后与平均电流值相加,得到第一电流值。Step 202c1: The wearable electronic device halves the first difference between the first predicted current value and the average current value and adds it to the average current value to obtain the first current value.
在本申请一些实施例中,穿戴式电子设备可以采用公式2计算上述第一电流值。In some embodiments of the present application, the wearable electronic device may use Formula 2 to calculate the above-mentioned first current value.
示例性地,上述公式2为:Illustratively, the above formula 2 is:
步骤202d、穿戴式电子设备在第一相似度小于或等于第一阈值、且第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第二电流值,并基于第二电流值对光发射元件的电流值调整预设次数。Step 202d: When the first similarity is less than or equal to the first threshold and the first difference is greater than or equal to the second threshold, the wearable electronic device calculates the second current value based on the first difference and the average current value, and adjusting the current value of the light emitting element a preset number of times based on the second current value.
在本申请一些实施例中,上述预次数可以为穿戴式电子设备默认设置的,也可以为用户自定义设置的。In some embodiments of the present application, the above-mentioned number of presets may be set by default for the wearable electronic device, or may be customized by the user.
在本申请一些实施例中,穿戴式电子设备在计算得到第二电流值后,根据预设次数,多次叠加第二电流值,以调整光发射元件的电流值。In some embodiments of the present application, after calculating the second current value, the wearable electronic device superimposes the second current value multiple times according to a preset number of times to adjust the current value of the light emitting element.
举例说明,以预设电流调整次数为3次为例,在穿戴式电子设备计算得到第二电流值后,将光发射元件的电流值先调整为第二电流值,然后第二次调整光发射元件的电流值时,将当前电流值加上第二电流值,得到第二次要调整的电流值,第三次调整光发射元件的电流值时,将当前电流值再次加上第二电流值,得到第三次要调整的电流值,以得到最终的光发生元件的电流值。For example, assuming that the preset number of current adjustments is three times, after the wearable electronic device calculates the second current value, it first adjusts the current value of the light-emitting element to the second current value, and then adjusts the light emission for the second time. When adjusting the current value of the component, add the current current value to the second current value to obtain the current value to be adjusted for the second time. When adjusting the current value of the light-emitting component for the third time, add the current current value to the second current value again. , to obtain the current value to be adjusted for the third time to obtain the final current value of the light generating element.
可选地,在本申请一些实施例中,上述步骤202d中的“基于第一差值和平均电流值,计算第一电流值”具体包括步骤202d1:Optionally, in some embodiments of the present application, "calculate the first current value based on the first difference and the average current value" in step 202d above specifically includes step 202d1:
步骤202d1、穿戴式电子设备将第一预测电流值和平均电流值间第一差值的三分之一与平均电流值相加,得到第二电流值。Step 202d1: The wearable electronic device adds one-third of the first difference between the first predicted current value and the average current value to the average current value to obtain a second current value.
在本申请一些实施例中,穿戴式电子设备可以采用公式3计算上述第一电流值。In some embodiments of the present application, the wearable electronic device can use Formula 3 to calculate the above-mentioned first current value.
示例性地,上述公式3为:Illustratively, the above formula 3 is:
如此,穿戴式电子设备可以根据用户动作是否具有规律性,来判断如何调整光发射元件的电流值,以使得PPG传感器可以根据调整后的电流值,得到更为稳定的PPG信号。In this way, the wearable electronic device can determine how to adjust the current value of the light emitting element based on whether the user's movements are regular, so that the PPG sensor can obtain a more stable PPG signal based on the adjusted current value.
在另一种可能的实施例中,穿戴式电子设备在第一预测电流与PPG传感器中的光发射元件在第一时间段内的平均电流值间的差值小于上述第二阈值的情况下,穿戴式电子设备可以直接根据第一预测电流,调整光发射元件的电流值。In another possible embodiment, when the difference between the first predicted current of the wearable electronic device and the average current value of the light emitting element in the PPG sensor within the first time period is less than the above-mentioned second threshold, The wearable electronic device can directly adjust the current value of the light emitting element according to the first predicted current.
如此,穿戴式电子设备在需要调整的电流值与当前电流值差值并不大的情况下,可以直接调整光发射元件的电流值,以使得PPG传感器可以根据调整后的电流值,得到更为稳定的PPG信号。In this way, when the difference between the current value that needs to be adjusted and the current current value is not large, the wearable electronic device can directly adjust the current value of the light-emitting element, so that the PPG sensor can obtain a better value based on the adjusted current value. Stable PPG signal.
可选地,在本申请一些实施例中,结合图1,如图3所示,上述步骤202具体包括步骤202A至步骤202E:Optionally, in some embodiments of the present application, as shown in Figure 3 in conjunction with Figure 1, the above step 202 specifically includes steps 202A to 202E:
步骤202A、穿戴式电子设备获取至少一个运动数据集。Step 202A: The wearable electronic device acquires at least one motion data set.
在本申请一些实施例中,上述至少一个运动数据集中的每个运动数据集对应一种动作。In some embodiments of the present application, each motion data set in the at least one motion data set corresponds to an action.
在本申请一些实施例中,上述至少一个运动数据集可以是从预设数据库中得到的,也可以是用户历史的运动数据中得到的。In some embodiments of the present application, the above-mentioned at least one motion data set may be obtained from a preset database or may be obtained from the user's historical motion data.
在本申请一些实施例中,上述运动数据集包括用户在进行动作的过程中,ACC传感器采集的ACC信号、PPG传感器采集的PPG信号以及光发射元件的平均电流值。In some embodiments of the present application, the above-mentioned motion data set includes the ACC signal collected by the ACC sensor, the PPG signal collected by the PPG sensor, and the average current value of the light emitting element during the user's action.
在本申请一些实施例中,上述动作可以是规律性的动作。例如,步行、室内跑步、室外跑步或者球类运动等。In some embodiments of the present application, the above actions may be regular actions. For example, walking, indoor running, outdoor running or ball games, etc.
步骤202B、穿戴式电子设备计算第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度。Step 202B: The wearable electronic device calculates the similarity between the first ACC signal or the third ACC signal and the ACC signal in each motion data set.
在本申请一些实施例中,上述第三ACC信号为对第一ACC信号进行滑窗运算后得到的ACC信号。In some embodiments of the present application, the third ACC signal is an ACC signal obtained by performing a sliding window operation on the first ACC signal.
在本申请一些实施例中,穿戴式电子设备可以采用动态时间规整算法(DynamicTime Warping,DTW)计算第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度。In some embodiments of the present application, the wearable electronic device can use a dynamic time warping algorithm (Dynamic Time Warping, DTW) to calculate the similarity between the first ACC signal or the third ACC signal and the ACC signal in each motion data set.
在本申请一些实施例中,上述第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度用于表征用户在ACC传感器采集第一ACC信号时进行的动作,与运动数据集所对应的动作的一致性,或相似性。In some embodiments of the present application, the similarity between the above-mentioned first ACC signal or the third ACC signal and the ACC signal in each motion data set is used to characterize the actions performed by the user when the ACC sensor collects the first ACC signal, and is consistent with the motion. The consistency, or similarity, of the actions corresponding to the data set.
可以理解的是,若上述两者间的相似度越高,则表示两个信号段对应的动作越相同。It can be understood that the higher the similarity between the two signal segments, the more similar the actions corresponding to the two signal segments are.
步骤202C、穿戴式电子设备基于第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度,从至少一个运动数据集中确定第一运动数据集。Step 202C: The wearable electronic device determines the first motion data set from at least one motion data set based on the similarity between the first ACC signal or the third ACC signal and the ACC signal in each motion data set.
在本申请一些实施例中,上述第一运动数据集为相似度最高的ACC信号所在的运动数据集。In some embodiments of the present application, the first motion data set is the motion data set in which the ACC signal with the highest similarity is located.
步骤202D、穿戴式电子设备基于第一运动数据集中的PPG信号和平均电流值,以及PPG信号,计算第三电流值。Step 202D: The wearable electronic device calculates a third current value based on the PPG signal and the average current value in the first motion data set, as well as the PPG signal.
在一种可能实施例中,在相似度中的最大相似度大于或等于第一阈值的情况下,穿戴式电子设备基于第一运动数据集中的平均电流值、PPG信号的平均信号强度以及第一运动数据集中的PPG信号的平均信号强度,计算第三电流值。In a possible embodiment, when the maximum similarity among the similarities is greater than or equal to the first threshold, the wearable electronic device is based on the average current value in the first motion data set, the average signal strength of the PPG signal and the first The average signal strength of the PPG signal in the motion data set is used to calculate the third current value.
在本申请一些实施例中,上述穿戴式电子设备可以采用公式4,计算第三电流值。In some embodiments of the present application, the above-mentioned wearable electronic device may use Formula 4 to calculate the third current value.
示例性地,上述公式4为:Illustratively, the above formula 4 is:
在另一种可能的实施例中,在相似度中的最大相似度小于第一阈值的情况下,穿戴式电子设备直接执行上述步骤202a至步骤202d的过程。In another possible embodiment, when the maximum similarity among the similarities is less than the first threshold, the wearable electronic device directly performs the above-mentioned process of steps 202a to 202d.
步骤202E、穿戴式电子设备基于第三电流值和第三电流值与PPG传感器中的光发射元件在第一时间段内的平均电流值间的第二差值,调整光发射元件的电流值。Step 202E: The wearable electronic device adjusts the current value of the light-emitting element based on the third current value and the second difference between the third current value and the average current value of the light-emitting element in the PPG sensor within the first time period.
在本申请一些实施例中,穿戴式电子设备计算第三电流值与PPG传感器中的光发射元件在第一时间段内的平均电流值间的第二差值,并基于该第二差值和第三电流值调整发射元件的电流值。In some embodiments of the present application, the wearable electronic device calculates a second difference between the third current value and the average current value of the light emitting element in the PPG sensor within the first time period, and based on the second difference and The third current value adjusts the current value of the emission element.
在一种可能的示例中,在穿戴式电子设备计算第三电流值与PPG传感器中的光发射元件在第一时间段内的平均电流值间的第二差值小于上述第二阈值的情况下,穿戴式电子设备可以。接根据第三电流值,调整光发射元件的电流值。In a possible example, when the second difference between the third current value calculated by the wearable electronic device and the average current value of the light emitting element in the PPG sensor within the first time period is less than the above-mentioned second threshold. , wearable electronic devices can. Then adjust the current value of the light emitting element according to the third current value.
在另一种可能的实施例中,在穿戴式电子设备计算第三电流值与PPG传感器中的光发射元件在第一时间段内的平均电流值间的第二差值大于或等于上述第二阈值的情况下,穿戴式电子设备根据第三电流值和上述第二差值,计算调整光发射元件的电流值,并根据计算后的电流值,调整光发射元件的电流值。In another possible embodiment, the second difference between the third current value calculated by the wearable electronic device and the average current value of the light emitting element in the PPG sensor within the first time period is greater than or equal to the above-mentioned second In the case of a threshold value, the wearable electronic device calculates and adjusts the current value of the light-emitting element based on the third current value and the above-mentioned second difference value, and adjusts the current value of the light-emitting element based on the calculated current value.
示例性地,穿戴式电子设备根据第三电流值和上述第二差值,采用上述公式2,计算调整光发射元件的电流值。For example, the wearable electronic device uses the above formula 2 to calculate and adjust the current value of the light-emitting element based on the third current value and the above-mentioned second difference value.
如此,穿戴式电子设备可以根据预测的调整电流值和当前电流值间的差值与当前电流值的差值大小,确定如何调整电流值,以使得调整的电流值更为准确,。In this way, the wearable electronic device can determine how to adjust the current value based on the difference between the predicted adjusted current value and the current current value, so as to make the adjusted current value more accurate.
可选地,在本申请实施例中,本申请实施例提供的电流条件方法可以由调光判断模块、动作估计模型已经调光电流预测模型执行。Optionally, in the embodiment of the present application, the current condition method provided by the embodiment of the present application can be executed by the dimming judgment module, the action estimation model, and the dimming current prediction model.
在本申请一些实施例中,上述调光判断模块用于判断上述PPG信号是否满足第一条件,即是否需要调整光发射元件的电流值。In some embodiments of the present application, the above-mentioned dimming determination module is used to determine whether the above-mentioned PPG signal meets the first condition, that is, whether the current value of the light-emitting element needs to be adjusted.
具体地,上述调光判断模块内部处理过程可以参照上述步骤201执行。Specifically, the above-mentioned internal processing process of the dimming judgment module may be executed with reference to the above-mentioned step 201.
在本申请一些实施例中,上述动作估计模型用于判断采集上述第一ACC信号时的用户所进行的动作。In some embodiments of the present application, the above-mentioned action estimation model is used to determine the action performed by the user when the above-mentioned first ACC signal is collected.
具体地,上述动作估计模型内部处理过程可以参照上述步骤202a和步骤202b,以及步骤202A至步骤202C执行。Specifically, the above-mentioned internal processing of the action estimation model may be performed with reference to the above-mentioned steps 202a and 202b, as well as steps 202A to 202C.
在本申请一些实施例中,上述调光电流预测模型用于计算调整上述光发射元件的电流值。In some embodiments of the present application, the above-mentioned dimming current prediction model is used to calculate and adjust the current value of the above-mentioned light-emitting element.
具体地,上调光电流预测模型内部处理过程可以参照上述步骤202c和步骤202d,以及步骤202D和步骤202E执行。Specifically, the internal processing of the up-regulated photocurrent prediction model may be performed with reference to the above-mentioned steps 202c and 202d, as well as steps 202D and 202E.
如此,实现了运动场景下,智能手表自动识别和学习用户的规律性标准运动动作,通过分析标准动作预测PPG芯片的调节电流,极大地提升了运动状态下手表调节电流计算的准确性,可以为健康算法提供更高信号质量的数据。In this way, the smart watch can automatically recognize and learn the user's regular standard movement actions in sports scenes, and predict the regulating current of the PPG chip by analyzing the standard movements, which greatly improves the accuracy of the watch's regulating current calculation in sports conditions, and can provide Healthy algorithms provide higher signal quality data.
需要说明的是,本申请实施例提供的电流调节方法,执行主体可以为电流调节装置,或者穿戴式电子设备,还可以为穿戴式电子设备的功能模块或实体。本申请实施例中以电流调节装置执行电流调节方法为例,说明本申请实施例提供的电流调节装置。It should be noted that, for the current adjustment method provided by the embodiments of the present application, the execution subject may be a current adjustment device, a wearable electronic device, or a functional module or entity of the wearable electronic device. In the embodiment of the present application, the current regulating device performing the current regulating method is taken as an example to illustrate the current regulating device provided by the embodiment of the present application.
图4示出了本申请实施例中涉及的电流调节装置的一种可能的结构示意图。如图4所示,该电流调节装置700可以包括:获取模块701和处理模块702;FIG. 4 shows a possible structural diagram of the current regulating device involved in the embodiment of the present application. As shown in Figure 4, the current regulating device 700 may include: an acquisition module 701 and a processing module 702;
其中,上述获取模块701,用于获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值;PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;上述处理模块702,用于在上述获取模块701获取的PPG信号满足第一条件的情况下,基于上述获取模块701获取的PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。Among them, the above-mentioned acquisition module 701 is used to acquire the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the light emission in the PPG sensor. The average current value of the component in the first time period; the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; the PPG signal includes the PPG signal of at least one sampling point, and the first ACC The signal includes an ACC signal of at least one sampling point; the above-mentioned processing module 702 is used to, when the PPG signal acquired by the above-mentioned acquisition module 701 meets the first condition, based on the PPG signal acquired by the above-mentioned acquisition module 701, the first ACC signal and the average The current value is to adjust the current value of the light emitting element; wherein, satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range; The number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points is greater than the predetermined quantity threshold.
可选地,在本申请一些实施例中,上述处理模块702,具体用于:对第一ACC信号进行滑窗运算,得到N个滑窗内的第二ACC信号,N为大于1的整数;计算N个第二ACC信号中任意两个第二ACC信号间的相似度;在第一相似度大于第一阈值、且第一预测电流值和平均电流值间的第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第一电流值,并基于第一电流值,调整光发射元件的电流值;在第一相似度小于或等于第一阈值、且第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第二电流值,并基于第二电流值对光发射元件的电流值调整预设次数;其中,第一相似度为任意两个第二ACC信号的相似度中的最高相似度,第一预测电流值是基于预设幅值、PPG信号的幅值以及平均电流值计算得到的。Optionally, in some embodiments of the present application, the above-mentioned processing module 702 is specifically used to: perform sliding window operation on the first ACC signal to obtain the second ACC signal within N sliding windows, where N is an integer greater than 1; Calculate the similarity between any two second ACC signals among the N second ACC signals; when the first similarity is greater than the first threshold, and the first difference between the first predicted current value and the average current value is greater than or equal to the first In the case of two thresholds, the first current value is calculated based on the first difference and the average current value, and the current value of the light emitting element is adjusted based on the first current value; when the first similarity is less than or equal to the first threshold, and When the first difference is greater than or equal to the second threshold, the second current value is calculated based on the first difference and the average current value, and the current value of the light emitting element is adjusted a preset number of times based on the second current value; wherein, The first similarity is the highest similarity among the similarities of any two second ACC signals, and the first predicted current value is calculated based on the preset amplitude, the amplitude of the PPG signal, and the average current value.
可选地,在本申请一些实施例中,上述处理模块702,具体用于将第一预测电流值和平均电流值间的第一差值减半后与平均电流值相加,得到第一电流值;或者,上述处理模块702,具体用于将第一预测电流值和平均电流值间第一差值的三分之一与平均电流值相加,得到第二电流值。Optionally, in some embodiments of the present application, the above-mentioned processing module 702 is specifically configured to halve the first difference between the first predicted current value and the average current value and then add it to the average current value to obtain the first current value; or, the above-mentioned processing module 702 is specifically configured to add one-third of the first difference between the first predicted current value and the average current value to the average current value to obtain the second current value.
可选地,在本申请一些实施例中,上述获取模块701,还用于获取至少一个运动数据集,每个运动数据集对应一种动作,运动数据集包括用户在进行预设运动的过程中,ACC传感器采集的ACC信号、PPG传感器采集的PPG信号以及光发射元件的平均电流值;上述处理模块702,还用于计算第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度,第三ACC信号为对第一ACC信号进行滑窗运算后得到的ACC信号;上述处理模块702,还用于基于相似度,从至少一个运动数据集中确定第一运动数据集,第一运动数据集为相似度最高的ACC信号所在的运动数据集;上述处理模块702,具体用于基于第一运动数据集中的PPG信号和平均电流值,以及PPG信号,计算第三电流值;上述处理模块702,具体用于基于第三电流值和第三电流值与平均电流值间的第二差值,调整光发射元件的电流值。Optionally, in some embodiments of the present application, the above-mentioned acquisition module 701 is also used to acquire at least one motion data set, each motion data set corresponds to an action, and the motion data set includes the user's actions during the preset motion. , the ACC signal collected by the ACC sensor, the PPG signal collected by the PPG sensor, and the average current value of the light emitting element; the above-mentioned processing module 702 is also used to calculate the first ACC signal or the third ACC signal, and the ACC in each motion data set. The similarity of the signals, the third ACC signal is the ACC signal obtained by performing a sliding window operation on the first ACC signal; the above-mentioned processing module 702 is also used to determine the first motion data set from at least one motion data set based on the similarity, The first motion data set is the motion data set in which the ACC signal with the highest similarity is located; the above-mentioned processing module 702 is specifically used to calculate the third current value based on the PPG signal and the average current value in the first motion data set, and the PPG signal; The above processing module 702 is specifically configured to adjust the current value of the light emitting element based on the third current value and the second difference between the third current value and the average current value.
可选地,在本申请一些实施例中,上述处理模块702,具体用于在相似度中的最大相似度大于或等于第一阈值的情况下,基于第一运动数据集中的平均电流值、PPG信号的平均信号强度以及第一运动数据集中的PPG信号的平均信号强度,计算第三电流值。Optionally, in some embodiments of the present application, the above-mentioned processing module 702 is specifically configured to, in the case where the maximum similarity among the similarities is greater than or equal to the first threshold, based on the average current value, PPG in the first motion data set The third current value is calculated based on the average signal strength of the signal and the average signal strength of the PPG signal in the first motion data set.
在本申请实施例提供的电流调节装置中,获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。在本方案中,电流调节装置判断PPG信号满足第一条件的情况下,通过结合同一时间段采集的运动产生的ACC信号和光发射元件的平均电流值,自适应的调整光发射元件的电流值,从而在用户运动产生不规律的晃动的情况下,使得电流调节装置中PPG芯片可以获取到较为稳定PPG信号,从而提高电流调节装置通过PPG传感器测量用户生理指标的准确性。In the current regulating device provided by the embodiment of the present application, the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the PPG signal collected by the PPG sensor in the first time period are obtained. The average current value of the light emitting element in the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal meets the first condition, Based on the PPG signal, the first ACC signal and the average current value, the current value of the light emitting element is adjusted; wherein satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is at a preset It is assumed that the signal strength is outside the range; the number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold. In this solution, when the current adjustment device determines that the PPG signal meets the first condition, it adaptively adjusts the current value of the light emitting element by combining the ACC signal generated by motion collected in the same time period and the average current value of the light emitting element. Therefore, when the user's movement causes irregular shaking, the PPG chip in the current regulating device can obtain a relatively stable PPG signal, thereby improving the accuracy of the current regulating device in measuring the user's physiological indicators through the PPG sensor.
本申请实施例中的电流调节装置可以是电子设备,或者穿戴式电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digitalassistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The current regulating device in the embodiment of the present application may be an electronic device, a wearable electronic device, or a component in the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR). ) equipment, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (personal digital assistants, PDA), etc., and can also be servers, network attached storage (Network Attached Storage, NAS) ), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.
本申请实施例中的电流调节装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The current regulating device in the embodiment of the present application may be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
本申请实施例提供的电流调节装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The current regulating device provided by the embodiment of the present application can implement various processes implemented by the method embodiments of Figures 1 to 3. To avoid repetition, they will not be described again here.
可选地,如图5所示,本申请实施例还提供一种电子设备800,包括处理器801和存储器802,存储器802上存储有可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述电流调节方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 5, this embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores programs or instructions that can be run on the processor 801. When the program or instruction is executed by the processor 801, each step of the above current adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图,该电子设备可以为穿戴式电子设备。FIG. 6 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application. The electronic device may be a wearable electronic device.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 6 does not constitute a limitation on the electronic device. The electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
其中,射频单元101,用于获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值;PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;处理器110,用于在射频单元101获取的PPG信号满足第一条件的情况下,基于射频单元101获取的PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。Among them, the radio frequency unit 101 is used to obtain the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the light emitting element in the PPG sensor. The average current value in the first time period; the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal An ACC signal including at least one sampling point; the processor 110 is configured to adjust, based on the PPG signal obtained by the radio frequency unit 101, the first ACC signal and the average current value, if the PPG signal obtained by the radio frequency unit 101 satisfies the first condition. The current value of the light emitting element; wherein, satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is outside the preset signal strength range; the average signal strength at all sampling points in the PPG signal The number of sampling points whose amplitude is outside the predetermined amplitude range is greater than the predetermined number threshold.
可选地,在本申请一些实施例中,处理器110,具体用于:对第一ACC信号进行滑窗运算,得到N个滑窗内的第二ACC信号,N为大于1的整数;计算N个第二ACC信号中任意两个第二ACC信号的相似度;在第一相似度大于第一阈值、且第一预测电流值和平均电流值间的第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第一电流值,并基于第一电流值,调整光发射元件的电流值;在第一相似度小于或等于第一阈值、且第一差值大于或等于第二阈值的情况下,基于第一差值和平均电流值,计算第二电流值,并基于第二电流值和预设电流调整次数,对光发射元件的电流值进行多次调整;其中,第一相似度为任意两个第二ACC信号的相似度中的最高相似度,第一预测电流值是基于预设幅值、PPG信号的幅值以及平均电流值计算得到的。Optionally, in some embodiments of the present application, the processor 110 is specifically configured to: perform a sliding window operation on the first ACC signal to obtain the second ACC signal within N sliding windows, where N is an integer greater than 1; calculate The similarity of any two second ACC signals among the N second ACC signals; when the first similarity is greater than the first threshold, and the first difference between the first predicted current value and the average current value is greater than or equal to the second threshold In the case of , calculate the first current value based on the first difference and the average current value, and adjust the current value of the light emitting element based on the first current value; when the first similarity is less than or equal to the first threshold, and the first When the difference is greater than or equal to the second threshold, the second current value is calculated based on the first difference and the average current value, and the current value of the light emitting element is multiplied based on the second current value and the preset number of current adjustments. Adjustments; wherein, the first similarity is the highest similarity among the similarities of any two second ACC signals, and the first predicted current value is calculated based on the preset amplitude, the amplitude of the PPG signal, and the average current value. .
可选地,在本申请一些实施例中,处理器110,具体用于将第一预测电流值和平均电流值间的第一差值减半后与平均电流值相加,得到第一电流值;或者,处理器110,具体用于将第一预测电流值和平均电流值间第一差值的三分之一与平均电流值相加,得到第二电流值。Optionally, in some embodiments of the present application, the processor 110 is specifically configured to halve the first difference between the first predicted current value and the average current value and then add it to the average current value to obtain the first current value. ; Or, the processor 110 is specifically configured to add one-third of the first difference between the first predicted current value and the average current value to the average current value to obtain the second current value.
可选地,在本申请一些实施例中,射频单元101,还用于获取至少一个运动数据集,每个运动数据集对应一种动作,运动数据集包括用户在进行预设运动的过程中,ACC传感器采集的ACC信号、PPG传感器采集的PPG信号以及光发射元件的平均电流值;处理器110,还用于计算第一ACC信号或第三ACC信号,与每个运动数据集中的ACC信号的相似度,第三ACC信号为对第一ACC信号进行滑窗运算后得到的ACC信号;处理器110,还用于基于相似度,从至少一个运动数据集中确定第一运动数据集,第一运动数据集为相似度最高的ACC信号所在的运动数据集;处理器110,具体用于基于第一运动数据集中的PPG信号和平均电流值,以及PPG信号,计算第三电流值;处理器110,具体用于基于第三电流值和第三电流值与平均电流值间的第二差值,调整光发射元件的电流值。Optionally, in some embodiments of the present application, the radio frequency unit 101 is also used to obtain at least one motion data set. Each motion data set corresponds to an action. The motion data set includes the user's actions during the preset motion. The ACC signal collected by the ACC sensor, the PPG signal collected by the PPG sensor, and the average current value of the light emitting element; the processor 110 is also used to calculate the relationship between the first ACC signal or the third ACC signal and the ACC signal in each motion data set. Similarity, the third ACC signal is an ACC signal obtained by performing a sliding window operation on the first ACC signal; the processor 110 is also configured to determine the first motion data set from at least one motion data set based on the similarity, the first motion The data set is the motion data set in which the ACC signal with the highest similarity is located; the processor 110 is specifically configured to calculate the third current value based on the PPG signal and the average current value in the first motion data set, and the PPG signal; the processor 110, Specifically, it is used to adjust the current value of the light emitting element based on the third current value and the second difference between the third current value and the average current value.
可选地,在本申请一些实施例中,处理器110,具体用于在相似度中的最高相似度大于或等于第一阈值的情况下,基于第一运动数据集中的平均电流值、PPG信号的平均信号强度以及第一运动数据集中的PPG信号的平均信号强度,计算第三电流值。Optionally, in some embodiments of the present application, the processor 110 is specifically configured to, when the highest similarity among the similarities is greater than or equal to the first threshold, based on the average current value and PPG signal in the first motion data set The third current value is calculated as well as the average signal strength of the PPG signal in the first motion data set.
在本申请实施例提供的穿戴式电子设备中,获取穿戴式电子设备中的PPG传感器在第一时间段内采集的PPG信号、ACC传感器在第一时间段内采集的第一ACC信号以及PPG传感器中的光发射元件在第一时间段内的平均电流值,PPG信号包括至少一个采样点的PPG信号,第一ACC信号包括至少一个采样点的ACC信号;在PPG信号满足第一条件的情况下,基于PPG信号、第一ACC信号以及平均电流值,调整光发射元件的电流值;其中,满足第一条件包括以下至少之一:PPG信号的中的所有采样点的PPG信号的平均信号强度处于预设信号强度范围外;PPG信号中的所有采样点的幅值处于预定幅值范围外的采样点数量大于预定数量阈值。在本方案中,穿戴式电子设备判断PPG信号满足第一条件的情况下,通过结合同一时间段采集的运动产生的ACC信号和光发射元件的平均电流值,自适应的调整光发射元件的电流值,从而在用户运动产生不规律的晃动的情况下,使得穿戴式电子设备中PPG芯片可以获取到较为稳定PPG信号,从而提高穿戴式电子设备通过PPG传感器测量用户生理指标的准确性。In the wearable electronic device provided by the embodiment of the present application, the PPG signal collected by the PPG sensor in the wearable electronic device in the first time period, the first ACC signal collected by the ACC sensor in the first time period, and the PPG sensor are obtained The average current value of the light emitting element in the first time period, the PPG signal includes the PPG signal of at least one sampling point, and the first ACC signal includes the ACC signal of at least one sampling point; when the PPG signal meets the first condition , based on the PPG signal, the first ACC signal and the average current value, adjust the current value of the light emitting element; wherein, satisfying the first condition includes at least one of the following: the average signal strength of the PPG signal at all sampling points in the PPG signal is at Outside the preset signal strength range; the number of sampling points whose amplitudes are outside the predetermined amplitude range of all sampling points in the PPG signal is greater than the predetermined quantity threshold. In this solution, when the wearable electronic device determines that the PPG signal meets the first condition, it adaptively adjusts the current value of the light-emitting element by combining the ACC signal generated by motion collected in the same time period and the average current value of the light-emitting element. , thus allowing the PPG chip in the wearable electronic device to obtain a relatively stable PPG signal when the user's movement causes irregular shaking, thereby improving the accuracy of the wearable electronic device in measuring the user's physiological indicators through the PPG sensor.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. The graphics processor 1041 is responsible for the image capture device (such as Process the image data of still pictures or videos obtained by the camera). The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072 . Touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 109 may include volatile memory or nonvolatile memory, or memory 109 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述电流调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above-mentioned current adjustment method embodiment is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述电流调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above current adjustment method embodiment. Each process can achieve the same technical effect. To avoid repetition, it will not be described again here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述电流调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned current adjustment method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311798656.8A CN117631738A (en) | 2023-12-25 | 2023-12-25 | Current adjustment method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311798656.8A CN117631738A (en) | 2023-12-25 | 2023-12-25 | Current adjustment method, device, electronic equipment and readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117631738A true CN117631738A (en) | 2024-03-01 |
Family
ID=90023573
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311798656.8A Pending CN117631738A (en) | 2023-12-25 | 2023-12-25 | Current adjustment method, device, electronic equipment and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117631738A (en) |
-
2023
- 2023-12-25 CN CN202311798656.8A patent/CN117631738A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12004879B2 (en) | Systems and methods for detecting photoplethysmographic device usage | |
| US10524671B2 (en) | Electronic device that computes health data | |
| US10188345B2 (en) | Method and apparatus for providing biofeedback during meditation exercise | |
| US9848823B2 (en) | Context-aware heart rate estimation | |
| EP3248084B1 (en) | Optical detection and analysis of internal body tissues | |
| US10219708B2 (en) | Device and method for calculating cardiorespiratory fitness level and energy expenditure of a living being | |
| US20160058378A1 (en) | System and method for providing an interpreted recovery score | |
| EP4282327A1 (en) | Deep learning-based heart rate measurement method and wearable device | |
| US20170112395A1 (en) | Method and apparatus for estimating blood pressure | |
| CN107466222B (en) | Vital sign monitoring system | |
| CN105636504A (en) | System and method for obtaining bodily function measurements using a mobile device | |
| US20190090756A1 (en) | Technologies for sensing a heart rate of a user | |
| CN105682541A (en) | System and method for obtaining bodily function measurements using a mobile device | |
| JP6608527B2 (en) | Device, terminal and biometric information system | |
| US10004411B2 (en) | Living body determination devices and methods | |
| CN113520333B (en) | Method, device, equipment and readable medium for determining core body temperature | |
| US10448866B1 (en) | Activity tracker | |
| US20160051185A1 (en) | System and method for creating a dynamic activity profile using earphones with biometric sensors | |
| US20140371886A1 (en) | Method and system for managing performance of an athlete | |
| CN115866485A (en) | Play control method, device, equipment and storage medium based on sleep detection | |
| CN117631738A (en) | Current adjustment method, device, electronic equipment and readable storage medium | |
| KR20210024412A (en) | Electronic apparatus and method to provide personalized information based on biometric information | |
| US12097039B2 (en) | Hydration assessment using a sensor | |
| CN119326393B (en) | Blood pressure measurement method, wearable device and cloud device | |
| CN115336980B (en) | A physiological sign detection method for a wristband device and related components |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |