Heart rate detection method and related equipment
By calculating the ratio of the photoplethysmographic signal and obtaining relevant detection data, the reference heart rate is adjusted, which solves the problem of inaccurate heart rate measurement in photoplethysmography technology and improves the accuracy and reliability of heart rate detection.
Patent Information
- Application Number
- CN202310423018.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-18
AI Technical Summary
When using photoplethysmography technology, terminal vasoconstriction results in less blood, and the photoplethysmographic pulse wave signal is weak, resulting in inaccurate heart rate measurement.
By calculating the ratio of the AC component and the DC component of the photoplethysmogram signal, if the ratio is less than the preset threshold, relevant detection data, such as activity duration, temperature, etc., are obtained, and the base heart rate is adjusted to improve the accuracy of heart rate measurement.
It improves the accuracy and reliability of heart rate detection, ensuring that heart rate can still be accurately measured when blood vessel volume decreases, and is suitable for various scenarios such as diving and low-temperature environments.
Smart Images

Figure CN118787328A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular, to a heart rate detection method and related equipment. Background Art
[0002] Heart rate is of great significance in measuring the health of a person's heart. At present, photoplethysmography (PPG) technology is mainly used to detect heart rate. Photoplethysmography technology is an organ volume tracing obtained optically, which is generally achieved by illuminating the skin with a pulse oximeter and measuring the change in the amount of light absorption by the blood. However, in some scenarios, such as when the terminal blood vessels contract and the blood in the blood vessels become less, the photoplethysmography signal measured by the photoplethysmography technology is weak, which may make it impossible to measure the heart rate. At this time, it is difficult to accurately measure the heart rate. Summary of the invention
[0003] The embodiments of the present application provide a heart rate detection method and related equipment, which can calculate the user's heart rate when the photoplethysmographic signal measured by the photoplethysmography technology is weak, which may make it impossible to measure the heart rate, and improve the accuracy of the heart rate measurement to ensure that the calculated heart rate can truly reflect the user's heart rate.
[0004] The present application provides a heart rate detection method, which is applied to an electronic device, and includes: obtaining a user's baseline heart rate; obtaining a photoplethysmogram signal of the user, and calculating a ratio of an AC component to a DC component of the photoplethysmogram signal; in response to the ratio being less than a preset threshold, obtaining detection data, wherein the detection data includes first data for indicating an activity performed by the user and / or second data for indicating a physical condition of the user; and obtaining the user's heart rate based on the detection data and the user's baseline heart rate.
[0005] The embodiment of the present application determines the signal quality of the photoelectric volumetric pulse wave signal by comparing the ratio with the preset threshold. When the ratio is less than the preset threshold, it is determined that the photoelectric volumetric pulse wave signal is weak, especially the AC component of the photoelectric volumetric pulse wave signal is weak, then it can be judged that the signal quality of the photoelectric volumetric pulse wave signal is poor, and the accuracy of calculating the heart rate using the photoelectric volumetric pulse wave signal cannot be guaranteed. For this reason, in response to the ratio being less than the preset threshold, the detection data is obtained to adjust the user's baseline heart rate based on the detection data, thereby avoiding the problem of inaccurate heart rate detection due to the weakening of the photoelectric volumetric pulse wave signal caused by the decrease in vascular capacity. And the detection data can be used to indicate the influence of the activities performed by the user and / or the environment in which the user is located on the user's heart rate, and the heart rate calculated based on the detection data and the user's baseline heart rate improves the accuracy of heart rate detection, with robustness and reliability.
[0006] In one possible implementation, the first data includes one or more of the following data: activity duration, activity distance, and motion data, and the second data includes a first temperature, wherein the first temperature includes the user's body surface temperature and / or the ambient temperature of the user's environment. The first data is relevant data of a first activity performed by the user, which will affect the user's heart rate. Therefore, when the ratio is less than a preset threshold, the first data is obtained to assist in calculating the user's heart rate to ensure the accuracy of the heart rate calculation. There is a correlation between the user's physical condition and the user's heart rate. Therefore, when the ratio is less than a preset threshold, relevant data indicating the user's physical condition is obtained to assist in calculating the user's heart rate to ensure the accuracy of the heart rate calculation.
[0007] In one possible implementation, in response to the ratio being less than a preset threshold, acquiring detection data includes: acquiring detection data in real time during the process of the ratio being less than the preset threshold (i.e., from the moment when the ratio is detected to be less than the preset threshold to the time period when the ratio is detected to be greater than or equal to the preset threshold); obtaining the user's heart rate according to the detection data and the user's baseline heart rate includes: updating the user's heart rate in real time according to the user's baseline heart rate and the acquired detection data, and displaying the updated user's heart rate in real time. The user's information can be updated in real time, and the updated user's heart rate can be output, such as display or voice output.
[0008] In a possible implementation, before acquiring detection data in response to the ratio being less than a preset threshold, the method further includes: acquiring a first input; entering a first activity mode in response to the first input; then acquiring detection data in response to the ratio being less than the preset threshold includes: acquiring first detection data in response to the ratio being less than the preset threshold (that is, acquiring first detection data in response to the ratio being less than the preset threshold when entering the first activity mode), and the first detection data corresponds to a first detection device; or, before acquiring detection data in response to the ratio being less than the preset threshold, the method further includes: before acquiring detection data in response to the ratio being less than the preset threshold, the method further includes: acquiring a second input; entering a second activity mode in response to the second input; then acquiring detection data in response to the ratio being less than the preset threshold includes: acquiring second detection data in response to the ratio being less than the preset threshold (that is, acquiring second detection data in response to the ratio being less than the preset threshold when entering the second activity mode), and the second detection data corresponds to a second detection device, and the first activity mode is different from the second activity mode, and the first detection device is different from the second detection device. The corresponding detection data is acquired by the entered activity mode, so that the calculated heart rate is closer to the user's actual heart rate.
[0009] In a possible implementation, the first activity mode corresponds to a first detection parameter, and in response to the ratio being less than a preset threshold, obtaining the first detection data includes: in response to the ratio being less than the preset threshold, obtaining the first detection data collected by the first detection device according to the first detection parameter; the second activity mode corresponds to a second detection parameter, and in response to the ratio being less than the preset threshold, obtaining the second detection data includes: in response to the ratio being less than the preset threshold, obtaining the second detection data collected by the second detection device according to the second detection parameter. Different activity modes have different effects on the detection data of the user's heart rate, and therefore different activity modes require different detection data to be obtained, so that the calculated heart rate is closer to the user's actual heart rate.
[0010] In a possible implementation, the first activity mode corresponds to a first detection parameter, and in response to the ratio being less than a preset threshold, obtaining the first detection data includes: in response to the ratio being less than the preset threshold, obtaining the first detection data collected by the first detection device according to the first detection parameter. The second activity mode corresponds to a second detection parameter, and in response to the ratio being less than the preset threshold, obtaining the second detection data includes: in response to the ratio being less than the preset threshold, obtaining the second detection data collected by the second detection device according to the second detection parameter. Different activity modes have different factors affecting the user's heart rate, so different activity modes correspond to different detection parameters, and correspondingly different detection data need to be obtained, so that the calculated heart rate is closer to the user's real heart rate. In a possible implementation, the first detection data is the diving time, and the first detection device is a timer. The first activity mode may be, for example, a free diving mode. Based on free diving, the diving time has a greater impact on the user's heart rate, so when the ratio is less than the preset threshold, the diving time is obtained to calculate the user's heart rate based on the diving time, so that the calculated heart rate is closer to the user's real heart rate.
[0011] In a possible implementation, in response to entering the first activity mode, the detection data to be acquired also includes: one or more of acceleration, diving depth, and water temperature. Based on free diving, acceleration, diving depth, and water temperature can also reflect the impact on the user's heart rate. Therefore, when the ratio is less than a preset threshold, one or more of acceleration, diving depth, and water temperature is acquired to calculate the user's heart rate based on one or more of acceleration, diving depth, and water temperature, so that the calculated heart rate is closer to the user's actual heart rate.
[0012] In a possible implementation, the second detection data is acceleration, and the second detection device is an acceleration sensor. The second activity mode may be, for example, a winter running mode. During winter running, the user's movement speed, such as acceleration, has a greater impact on the user's heart rate. Therefore, when the ratio is less than a preset threshold, the acceleration is obtained to calculate the user's heart rate based on the acceleration, so that the calculated heart rate is closer to the user's actual heart rate.
[0013] In a possible implementation, in response to entering the second activity mode, the detection data to be acquired also includes: one or more of running duration, running distance, and user's body surface temperature. Based on winter running, the running duration, running distance, and user's body surface temperature can also reflect the impact on the user's heart rate. Therefore, when the ratio is less than a preset threshold, one or more of acceleration, diving depth, and water temperature are acquired to calculate the user's heart rate based on one or more of running duration, running distance, and user's body surface temperature, so that the calculated heart rate is closer to the user's actual heart rate.
[0014] In one possible implementation, before acquiring detection data in response to the ratio being less than a preset threshold, the method further includes: acquiring a first input; entering a first activity mode in response to the first input, wherein the first activity mode includes N detection parameters, and N is an integer greater than or equal to 1; then in response to the ratio being less than the preset threshold, acquiring detection data includes: in response to the ratio being less than the preset threshold, acquiring corresponding N detection data according to the N detection parameters in the first activity mode. The present application sets a corresponding activity mode according to each specific activity application scenario, determines a corresponding activity mode according to a user's selection, and then acquires corresponding detection data according to the detection parameters in the determined activity mode, so as to ensure that the acquired detection data can accurately reflect the user's heart rate.
[0015] In a possible implementation, the first activity mode further includes N coefficients corresponding to the N detection parameters, wherein the coefficients are used to indicate the degree of influence of the corresponding detection parameters on the heart rate; then obtaining the user's heart rate according to the detection data and the user's baseline heart rate includes: obtaining the user's heart rate according to the detection data, the user's baseline heart rate, and the coefficients in the first activity mode. The coefficients are used to indicate the degree of influence of the corresponding detection parameters on the heart rate, and therefore, when the user's baseline heart rate is processed according to the detection data obtained by the detection parameters and the coefficients corresponding to the detection parameters, it can be ensured that the processed heart rate can accurately reflect the user's heart rate.
[0016] In one possible implementation, in response to the ratio being less than a preset threshold, obtaining corresponding N detection data according to the N detection parameters in the entered activity mode includes: determining corresponding N detection devices according to the N detection parameters in the entered activity mode, wherein the N detection devices include one or more of the following devices: a timer, a first sensor for collecting motion data, a second sensor for collecting a first temperature, and a third sensor for collecting an activity distance; in response to the ratio being less than a preset threshold, obtaining corresponding N detection data from the determined N detection devices. The detection device works in real time after it starts working, such as the detection device can start working after the electronic device is started, and collects corresponding data in real time. When the ratio is less than the preset threshold, the corresponding detection data is obtained from the corresponding detection device according to the detection parameters.
[0017] In one possible implementation, determining the user's baseline heart rate includes: determining a pre-stored resting heart rate as the baseline heart rate; or determining the user's heart rate obtained at the start of entering a corresponding activity mode (such as the first activity mode or the second activity mode) as the baseline heart rate; or determining the user's heart rate obtained within a preset time period before entering the corresponding activity mode as the baseline heart rate; or determining the user's heart rate obtained within a preset time period after entering the first activity mode as the baseline heart rate. In one possible implementation, the user's heart rate is obtained in response to entering the corresponding activity mode, and the obtained user's heart rate is determined as the baseline heart rate.
[0018] In one possible implementation, when the first activity mode is a free diving mode, the detection parameters of the free diving mode include a duration parameter, and the detection data includes the diving duration. In one possible implementation, the detection parameters of the free diving mode also include one or more of an acceleration parameter, a distance parameter, and a temperature parameter, and the detection data also includes one or more of acceleration, diving depth, and water temperature.
[0019] In one possible implementation, when the second activity mode is a winter running mode, the detection parameters of the winter running mode include acceleration parameters, and the detection data includes acceleration. In one possible implementation, the detection parameters of the winter running mode also include one or more of a duration parameter, a distance parameter, and a temperature parameter, and the detection data also includes: one or more of a running duration, a running distance, and a user's body surface temperature.
[0020] In one possible implementation, when the detection data includes acceleration, obtaining the user's heart rate based on the detection data and the user's baseline heart rate includes: obtaining a preset threshold value; and obtaining the user's heart rate based on the acceleration, the preset threshold value and the user's baseline heart rate.
[0021] In one possible implementation, the method further includes: in response to the ratio being greater than or equal to a preset threshold, obtaining the user's heart rate based on the photoplethysmography signal.
[0022] In one possible implementation, in response to the ratio being greater than or equal to a preset threshold, obtaining the user's heart rate based on the photoplethysmogram signal includes: in response to the ratio being greater than or equal to a preset threshold, acquiring acceleration; and obtaining the user's heart rate based on the photoplethysmogram signal and acceleration.
[0023] In one possible implementation, obtaining the user's heart rate based on the photoplethysmogram signal and acceleration includes: determining whether the acceleration is greater than a first threshold; when the acceleration is greater than the first threshold, obtaining the user's heart rate based on the photoplethysmogram signal and acceleration; when the acceleration is less than or equal to the first threshold, obtaining the user's heart rate based on the photoplethysmogram signal.
[0024] In one possible implementation, the method further includes outputting a timing instruction to start timing in response to receiving a first input; or, when it is determined based on a photoplethysmogram signal that the user is holding their breath, outputting a timing instruction to start timing; or, when the activity performed by the user is diving, outputting a timing instruction to start timing when it is detected that the diving depth reaches a threshold.
[0025] The second aspect provides an electronic device, comprising: a first device, a processor, and at least one detection device, the first device being used to obtain a photoelectric volumetric pulse wave signal of a user; the at least one detection device being used to collect detection data, wherein the detection data comprises first data indicating an activity performed by the user and / or second data indicating a physical condition of the user; the processor being used to obtain the photoelectric volumetric pulse wave signal and calculate the ratio of the AC component to the DC component of the photoelectric volumetric pulse wave signal; the processor being further used to obtain the detection data in response to the ratio being less than a preset threshold value, and obtain the user's heart rate based on the detection data and the user's baseline heart rate.
[0026] In one possible implementation, the first data includes one or more of the following data: activity duration, activity distance, and motion data, and the second data includes a first temperature, wherein the first temperature includes the user's body surface temperature and / or the ambient temperature of the user's environment.
[0027] In one possible implementation, the at least one detection device includes one or more of the following devices: a timer, a first sensor for collecting motion data, a second sensor for collecting a first temperature, and a third sensor for collecting an activity distance.
[0028] In one possible implementation, in response to the ratio being less than a preset threshold, obtaining the detection data includes: obtaining the detection data in real time during the process of the ratio being less than the preset threshold; then obtaining the user's heart rate based on the detection data and the user's baseline heart rate includes: updating the user's heart rate in real time based on the user's baseline heart rate and the obtained detection data; the electronic device also includes: an output device for displaying the updated user's heart rate in real time.
[0029] In a possible implementation, the electronic device further includes an input device, the input device is used to receive a first input; the processor is further used to obtain the first input, and enter the first activity mode in response to the first input. Or, the input device is used to receive a second input, the processor is further used to obtain the second input, and enter the second activity mode in response to the second input. Or the input device receives the first input, the processor controls the electronic device to enter the first activity mode in response to the first input, and then, the input device also receives the second input, and the processor controls the electronic device to exit the first activity mode and enter the second activity mode in response to the second input.
[0030] In one possible implementation, the processor is further configured to execute any of the above-mentioned heart rate detection methods.
[0031] The third aspect provides a wearable device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned heart rate detection methods when executing the computer program.
[0032] A fourth aspect provides a computer storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute any one of the above-mentioned heart rate detection methods.
[0033] A fifth aspect provides a computer program product, which, when executed on a computer, enables the computer to execute any one of the above-mentioned heart rate detection methods.
[0034] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here.
[0035] The beneficial effects of the technical solution provided by this application include at least:
[0036] In an embodiment of the present application, the signal quality of the photoelectric volumetric pulse wave signal is determined by comparing the ratio with a preset threshold. When it is determined that the signal quality of the photoelectric volumetric pulse wave signal is poor, the heart rate may not be calculated using the photoelectric volumetric pulse wave signal, or the accuracy of the heart rate calculation may not be guaranteed. Therefore, in response to the ratio being less than the preset threshold, detection data is obtained to adjust the user's baseline heart rate based on the detection data, thereby avoiding the problem of being unable to calculate the heart rate or inaccurately detecting the heart rate due to the weakening of the photoelectric volumetric pulse wave signal caused by the decrease in vascular capacity. And the detection data can be used to indicate the impact of the user's activities and / or the user's environment on the user's heart rate. The heart rate calculated based on the detection data and the user's baseline heart rate improves the accuracy of heart rate detection, and has robustness and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1A schematic diagram of a heart rate detection scenario is provided for an embodiment of the present application.
[0038] Figure 2 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present application.
[0039] Figure 3 A flow chart of a heart rate detection method is provided for an embodiment of the present application.
[0040] Figure 4 A flow chart of another heart rate detection method is provided for an embodiment of the present application.
[0041] Figure 5 A flowchart of another heart rate detection method provided in an embodiment of the present application.
[0042] Figure 6 A flowchart of another heart rate detection method provided in an embodiment of the present application.
[0043] Figure 7 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In this article, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0045] In this application, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0046] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0047] See also Figure 1, which exemplifies a scenario in which the photoplethysmography technology is used to detect heart rate.
[0048] The electronic device 10 is a wearable device, such as a smart watch. The electronic device 10 is worn on the wrist of the user 20. The electronic device 10 includes an upper surface 101 and a lower surface 102. The upper surface 101 may be the side opposite to the lower surface 102, such as the side where the touch screen 103 of the electronic device 10 is located. The lower surface 102 may be the side that is close to the skin of the user 20 when the electronic device 10 is worn on the wrist of the user 20. The lower surface 102 may include one or more openings (not shown). The electronic device 10 can transmit light signals to the skin of the user 20 through the above-mentioned openings, and receive light signals reflected or scattered back by human tissue.
[0049] The electronic device 10 includes at least one light transmitter 110 and at least one light receiver 120 .
[0050] The optical transmitter 110 is used to transmit an optical signal having a specific wavelength. The wavelength of the optical signal emitted by the optical transmitter 110 may range from 500 to 1500 nm. The optical signal emitted by the optical transmitter 110 may include at least one of red light, infrared light, and green light. The present application does not specifically limit the optical signal emitted by the optical transmitter 110. The optical transmitter 110 is, for example, a photon generator of a light emitting diode (LED).
[0051] The optical receiver 120 is used to receive optical signals of different wavelengths, such as optical signals of any wavelength generated by the photon generator. The optical receiver 120 may be, for example, a photodiode, a phototransistor, a photoresistor, a thermistor, and the like.
[0052] After the optical signal 110a emitted by the optical transmitter 110 is transmitted to the skin of the user 20, a portion of the optical signal 110a will be absorbed by human tissue (including blood), and another portion of the optical signal 110a will be received by the optical receiver 120, which may be received by the optical receiver 120 after being reflected or scattered by human tissue. The optical receiver 120 converts the received optical signal 110a into an electrical signal (i.e., a photoplethysmogram signal). Thus, the optical receiver 120 receives the optical signal 110a reflected or scattered by human tissue, thereby generating a photoplethysmogram signal (PPG signal) related to the received optical signal 110a.
[0053] The optical signal 110a received by the optical receiver 120 is attenuated to a certain extent. The absorption of the optical signal 110a by muscles, bones, veins and other tissues is basically unchanged, but blood is different. Since there is blood flowing in the blood vessels, the absorption of the optical signal 110a naturally changes. For example, the volume of blood in the blood vessels of the user 20 changes with the relaxation and contraction of the heart. When the heart relaxes, the blood flows back to the heart through the blood vessels, the volume of blood in the blood vessels decreases, and the absorption of the optical signal 110a emitted by the optical transmitter 110 also decreases. The optical receiver 120 can receive more optical signals 110a, that is, the intensity of the optical signal 110a received by the optical receiver 120 increases. When the heart contracts, blood flows from the heart to various parts of the body through the blood vessels. The volume of blood in the blood vessels increases, the absorption of the optical signal 110a emitted by the optical transmitter 110 also increases, and the optical signal 110a received by the optical receiver 120 decreases, that is, the intensity of the optical signal 110a received by the optical receiver 120 decreases. In other words, the volume of blood in the blood vessels will change during the process of cardiac diastole and contraction, and the light signal 110a absorbed by the blood in the blood vessels will also change, and then the intensity of the light signal 110a received by the optical receiver 120 will change with the contraction and relaxation of the heart.
[0054] When the optical receiver 120 converts the received optical signal 110a into an electrical signal, since the absorption of the optical signal 110a by the blood changes, while the absorption of the optical signal 110a by other tissues remains basically unchanged, the photoelectric volume pulse wave signal obtained can be separated into a DC component and an AC component. Among them, the AC component can be generated based on the received optical signal 110a reflected or scattered by the blood. The DC component can be generated based on the received optical signal 110a reflected or scattered by the skin, muscle, bone and other tissues. In other words, the intensity of a part of the signal in the volume pulse wave signal changes with the relaxation and contraction of the heart, and this part of the signal is the AC component generated by the optical receiver 120 based on the optical signal reflected or scattered by the blood. However, the user's skin, muscle, bone and other tissues will not change with the relaxation and contraction of the heart, and the optical receiver 120 can generate a DC component based on the optical signal reflected or scattered by the skin, muscle, bone and other tissues.
[0055] In some embodiments, the frequency of changes in signal strength in the AC component of the photoplethysmography signal may be used to calculate the user's heart rate.
[0056] The electronic device 10 may further include a processor 130. The processor 130 may detect changes in the pulse wave according to changes in the intensity of the optical signal 110a received by the optical receiver 120, and may further determine the heart rate of the user 20 based on the changes in the pulse wave.
[0057] In the embodiment of the present application, the optical transmitter 110 transmits an optical signal, and the optical receiver 120 receives the optical signal transmitted by the optical transmitter 110. The electronic device 10 can be designed accordingly so that the optical signal transmitted by the optical transmitter 110 can be transmitted to the user 20, and the optical receiver 20 can receive the optical signal, which is not specifically limited in the present application.
[0058] The embodiment of the present application does not limit the type and quantity of the optical transmitter 110 and the optical receiver 120. Figure 1 The number of optical transmitters 110 and optical receivers 120 is only an example. The specific manner in which the optical transmitter 110 transmits an optical signal of a specific wavelength and the optical receiver 120 receives the optical signal and generates a photoplethysmogram signal can refer to the implementation manner in the prior art.
[0059] As in the above example, user 20 wears the electronic device 10 on his wrist and performs free diving. Free diving refers to swimming in the water without carrying an air cylinder by holding one's breath. Free diving can include free diving activities for the purpose of entertainment, experience, photography, hunting, and extreme breath-holding deep diving of a competitive nature. All mammals, including humans, will experience a mammalian diving reflex (MDR) during breath-holding diving. Specifically, when we hold our breath and dive underwater, the body will automatically reduce the heart rate, contract the terminal blood vessels, transfer blood, contract the spleen, and so on. A series of automatic responses help us dive longer and deeper. In particular, in order to ensure the blood supply to the heart, lungs, and brain, blood will be concentrated in the core area, and the terminal blood vessels will begin to contract. The contraction of the terminal blood vessels leads to a decrease in blood in the blood vessels. At this time, the photoplethysmographic signal measured by the photoplethysmographic technique is weak (i.e., the signal quality is poor), especially the vascular fluctuation signal (AC component in the photoplethysmographic signal) measured by the photoplethysmographic technique is weak, which may result in the inability to calculate the user's heart rate based on the weak photoplethysmographic signal, making it difficult to accurately measure the diver's heart rate. In particular, the heart rate changes rapidly during free diving, which increases the difficulty of accurately measuring the heart rate.
[0060] In view of this, the embodiment of the present application provides a heart rate detection method and related equipment, which solves the problem that the contraction of the terminal blood vessels leads to a decrease in blood in the blood vessels, and the photoelectric volume pulse wave signal measured by the photoplethysmography technique is weak, which leads to the inability to measure the heart rate and inaccurate heart rate detection. The heart rate detection method based on the present application can not only calculate the heart rate, but also the calculated heart rate can more realistically reflect the user's real heart rate, thereby improving the accuracy of heart rate detection. The basic principle of the present application is: to detect the photoelectric volume pulse wave signal, when it is determined that the signal quality of the photoelectric volume pulse wave signal is not good, to obtain detection data for assisting in calculating the heart rate, and to calculate the heart rate according to the user's baseline heart rate and the detection data, so as to avoid using the photoelectric volume pulse wave signal with poor signal quality to calculate the heart rate, resulting in inaccurate heart rate detection, or even the inability to calculate the heart rate, thereby improving the reliability of heart rate detection and ensuring the accuracy of heart rate detection. And the detection data includes first data for indicating the activities performed by the user and / or second data for indicating the physical condition of the user, that is, the obtained detection data can be used to indicate the activities performed by the user (hereinafter referred to as the first activity) and / or the impact of the user's environment on the user's heart rate. The heart rate calculated based on the detection data and the user's baseline heart rate can ensure the accuracy of the heart rate calculation, and has robustness and reliability.
[0061] The heart rate detection method and related equipment provided in the embodiments of the present application are not limited to the above-mentioned free diving scenarios, but can also be used in scenarios of entertainment, activities or work in low-temperature environments, because cold stimulation causes vasoconstriction and reduced blood flow in blood vessels, thereby affecting the accuracy of heart rate measurement. It can also be used when the user suffers from certain symptoms, such as hypothermia.
[0062] Of course, the heart rate detection method and related equipment involved in the embodiments of the present application include but are not limited to the above application scenarios. As long as all scenarios involving heart rate detection, the heart rate detection method and related equipment provided by the embodiments of the present application can be adopted.
[0063] See also Figure 2 , exemplarily introduces the structure of the electronic device 200 provided in an embodiment of the present application.
[0064] The electronic device 200 includes a first device 201, a processor 202, and at least one detection device.
[0065] The first device 201 is used to obtain a user's photoplethysmographic signal. The first device 201 is also called a photoplethysmographic sensor (PPG sensor), and includes at least one light transmitter 110 and at least one light receiver 120. The photoplethysmographic signal is collected by at least one light transmitter 110 and at least one light receiver 120.
[0066] For details about the optical transmitter 110 and the optical receiver 120, please refer to the above Figure 1 , I will not go into details here.
[0067] The at least one detection device is used to collect relevant data of the activities performed by the user and / or relevant data indicating the physical condition of the user, so as to provide detection data to the processor 202. The at least one detection device includes one or more of the following devices: a first detection device for obtaining duration, a second detection device for obtaining motion data, a second sensor 23, and a third sensor 24.
[0068] The following description will be made by taking an example where the first detection device is implemented as a timer 21 and the second detection device is implemented as a first sensor 22 .
[0069] The timer 21 may start timing in response to a timing instruction from the processor 202 to obtain the activity duration of the activity performed by the user.
[0070] Among them, the first sensor 22 is used to collect motion data. The motion data includes motion speed, acceleration, etc. The first sensor 22 may include an acceleration transducer (ACC), a photoelectric speed sensor, a magnetoelectric speed sensor, and a Hall speed sensor, etc. The acceleration sensor can be used to calculate the acceleration of the user. The acceleration sensor can be used to detect the magnitude of the acceleration of the electronic device 200 in various directions (generally three axes). The electronic device 200 is a wearable device. When the user wears the electronic device 200, the electronic device 200 moves under the drive of the user, so the magnitude of the acceleration in various directions detected by the acceleration sensor can reflect the motion state of the human body.
[0071] The second sensor 23 is used to collect temperature, such as collecting the user's body surface temperature and / or the ambient temperature of the user's environment. Specifically, the second sensor 23 may include a sensor for measuring the human body surface temperature, such as an infrared temperature sensor, a thermocouple, a resistance temperature detector, a thermistor, etc. Or, the second sensor 23 may include a sensor for measuring the temperature of the user's environment, such as a water temperature sensor, an ambient temperature sensor, etc. Or, the second sensor 23 includes the above-mentioned sensor for measuring the human body surface temperature and a sensor for measuring the ambient temperature.
[0072] Among them, the third sensor 24 is used to collect the activity distance. When the first activity is free diving, the third sensor 24 collects the diving depth to obtain the activity distance. When the first activity is climbing (such as climbing a snowy mountain), the third sensor 24 collects the altitude to obtain the activity distance. When the first activity is running, the third sensor 24 can obtain the moving distance through positioning.
[0073] Specifically, the third sensor 24 may include a pressure sensor, a barometer (altitude pressure sensor), etc. The pressure sensor can be used to collect the diving depth, and the diving depth can be calculated by the height of the seawater or freshwater column. In some embodiments, the barometer (altitude pressure sensor) can be used to collect the altitude. The third sensor 24 detects the water pressure or air pressure of the current environment, and obtains the corresponding diving depth or altitude by converting the pressure into water pressure and air pressure. In some embodiments, the third sensor 24 may include a GPS positioning sensor, which can be used to collect the moving distance (such as running distance).
[0074] In practical applications, the electronic device 200 may also include more or fewer sensors, or use other sensors with the same or similar functions to replace the above-listed sensors, etc., which is not limited in the embodiments of the present application.
[0075] The electronic device 200 also includes an input device 203, which is used to provide user input, convert the user's operation into an analog or digital signal and transmit it to the processor 202, and the processor 202 can execute corresponding instructions according to the signal of the input device 203. The input device 203 may include, for example, a mouse, a keyboard, a touch screen (such as Figure 1 The touch screen 103 shown), a microphone, or a sensor device (such as a button) capable of detecting user input.
[0076] The electronic device 200 also includes an output device 204, which is used to output information, such as outputting data collected by the first device 201 and / or at least one detection device, such as the diving time collected by the timer, and can also output data processed from the collected data, such as outputting the diving depth calculated based on the detected water pressure.
[0077] In some embodiments, the output device 204 can output the processing result (such as heart rate) obtained by the processor 202 after processing the data collected by the first device 201 and / or at least one detection device. For example, the user's heart rate is updated in real time based on the heart rate detection method of the present application, and the updated user's heart rate is output in real time.
[0078] The output device 204 may include a display device and an audio output device, etc. The display device may be an LCD (liquid crystal display), an LED (light emitting diode) display, a CRT (cathode ray tube) or a projector.
[0079] In an embodiment of the present application, the output device 204 is connected to the processor 202, and is used to generate a prompt message according to the instruction of the processor 202, and the prompt message is used to prompt the user's current heart rate and related information, and the related information can be the detection data used to calculate the heart rate. For example, the prompter can be a display, and the prompt message can prompt the user's current heart rate and related information (such as diving time, diving depth, water temperature, user's body surface temperature) in the form of pictures and texts. For another example, the prompter can also be a speaker, and the prompt message can prompt the user's current heart rate and related information in the form of audio. For another example, the prompter can be a buzzer, and the prompt message can prompt the user's current heart rate and related information in the form of vibration.
[0080] The processor 202 may include one or more processing units, for example, the processor 202 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0081] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0082] In the embodiment of the present application, the electronic device 200 further includes a memory 205. The memory 205 is used to store programs and data, such as storing a processor 202 for executing programs stored in the memory and reading data stored in the memory, and the processor 202 calls the stored program to execute the heart rate detection method provided in the embodiment of the present application.
[0083] In some embodiments, the processor 202 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 202 is a cache memory. The memory may store instructions or data that the processor 202 has just used or cyclically used. If the processor 202 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 202, and thus improves the efficiency of the system.
[0084] In some embodiments, the processor 202 may include an input / output interface. The input / output interface may receive data from an input / output module of the electronic device 200 or from other electronic devices communicating with the electronic device 200. The input / output module may include, for example, a touch panel, a mechanical key or a virtual button, a camera, a microphone, or a speaker.
[0085] Each of the above devices is coupled to the processor 202 so as to transmit the data obtained by each device to the processor 202, or to obtain the instructions output by the processor 202. For example, the optical receiver 120 is coupled to the processor 202 to convert the collected optical signal into an electrical signal and transmit it to the processor 202, and the processor 202 calculates the user's heart rate based on the electrical signal. For example, the acceleration sensor is coupled to the processor 202 to transmit the collected user acceleration to the processor 202. The water temperature sensor is coupled to the processor 202 to transmit the collected water temperature to the processor 202, and the processor 202 determines the user's body surface temperature based on the water temperature. The pressure sensor is coupled to the processor 202 to transmit the collected pressure signal to the processor 202, and the processor 202 determines the diving depth based on the pressure signal. Each of the above devices is coupled to the processor 202, for example, each device and the processor 202 can be connected via a bus.
[0086] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0087] The electronic device 200 also includes a power source 206 (such as a battery) for supplying power to various components. Preferably, the power source 206 can be logically connected to the processor 202 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0088] In the embodiment of the present application, the photoplethysmography signal obtained by the electronic device 200 is not limited to being used for calculating heart rate, but can also be used to calculate other sports health data, such as blood oxygen saturation, blood pressure, and respiratory rate.
[0089] In the embodiment of the present application, when the electronic device 200 obtains the photoplethysmogram signal, it is not limited to wearing the electronic device 200 on the wrist of the user 20. The electronic device 200 can also be worn on the abdomen, legs, etc. of the user 20.
[0090] The embodiment of the present application does not limit the electronic device 200, and the electronic device 200 may be a smart watch, a smart bracelet, a mobile phone, a wearable device, or the like.
[0091] As an example but not limitation, when the electronic device 200 is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, bracelets, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the clothes or accessories of the user 20. Wearable devices are not only hardware devices, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smart terminals (such as smart phones) to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smart phones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0092] The technical solutions involved in the following embodiments can all be implemented in the above-mentioned electronic devices. It should be noted that in the following embodiments, the electronic device is implemented as a smart watch as an example.
[0093] See also Figure 3 , exemplarily introduces the heart rate detection method provided in the embodiment of the present application. The heart rate detection method is applied to Figure 2 The electronic device 200 shown may be executed by the electronic device 200 or by the processor 202. The heart rate detection method includes the following steps:
[0094] Step S30: the electronic device determines a baseline heart rate of the user.
[0095] In the embodiment of the present application, the user's baseline heart rate may be any one of the user's resting heart rate and the user's historical average heart rate. The resting heart rate is also called the quiet heart rate, which refers to the heart rate in a quiet, inactive, and awake state. The historical average heart rate may be the average heart rate obtained by averaging the historical heart rates obtained by the electronic device in the first time period (e.g., three days) before executing step S30.
[0096] Step S30 may be performed before any of step S31, step S32, step S34, and step S35. In some embodiments, the user's baseline heart rate may also be the user's heart rate collected by the electronic device before any of step S31, step S32, step S34, and step S35 is performed. The user's baseline heart rate may also be the user's latest heart rate stored in the electronic device when step S30 is performed.
[0097] In an embodiment of the present application, the electronic device may receive a first instruction, the first instruction being used to instruct to perform heart rate detection, and the electronic device may determine a user's baseline heart rate in response to the first instruction.
[0098] The heart rate detection method provided in the present application can be implemented as an application, or as a module for detecting heart rate in an application, or as a module for detecting heart rate in an operating system (electronic device). The application or the module for detecting heart rate can provide a service for detecting the user's heart rate, especially for the above-mentioned scenarios (such as free diving scenarios), and can accurately detect the user's heart rate.
[0099] Taking the heart rate detection method provided in the present application as an example of a "heart rate" module in a smart watch, specifically, the user operates (such as clicking) the "heart rate" module of the smart watch to start the "heart rate" module, and the smart watch receives a first instruction.
[0100] As in the above example, the "heart rate" module can guide the user to select their baseline heart rate through an interface or other interactive methods. For example, the "heart rate" module provides a first interface through a smart watch to guide the user to select their baseline heart rate. The user operates the first interface to select the resting heart rate as their baseline heart rate. In some embodiments, after the user selects the resting heart rate as their baseline heart rate, the "heart rate" module can also guide the user to measure the resting heart rate, and the smart watch stores the resting heart rate as the baseline heart rate.
[0101] It should be noted that the user can determine his / her baseline heart rate according to actual conditions, or the electronic device can determine the user's baseline heart rate in any of the above-mentioned ways according to actual conditions.
[0102] In step S31, the electronic device obtains the user's photoplethysmography signal and calculates the ratio of the AC component to the DC component of the photoplethysmography signal.
[0103] In the embodiment of the present application, the ratio of the AC component of the photoplethysmogram signal to the DC component of the photoplethysmogram signal is the blood perfusion index (PI). In other words, the blood perfusion index is the percentage of the AC component (AC) of the photoplethysmogram signal to the DC component (DC) of the photoplethysmogram signal, that is, PI = AC / DC × 100%.
[0104] An exemplary method of obtaining a blood perfusion index PI is introduced. An electronic device inputs a photoelectric volumetric pulse wave signal into a high-pass filter to obtain an AC voltage component V of the photoelectric volumetric pulse wave signal. AC The electronic device inputs the photoelectric volume pulse wave signal into a low-pass filter to obtain the DC voltage component V of the photoelectric volume pulse wave signal. DC Electronic device to calculate blood perfusion index
[0105] It is understandable that the electronic device can also obtain the DC component and AC component of the photoplethysmography signal in other ways, and this application does not make any specific limitation on this.
[0106] In an embodiment of the present application, after the optical transmitter and the optical receiver of the electronic device work, the electronic device (or processor) can obtain the user's photoelectric volume pulse wave signal in real time, and then calculate the blood perfusion index PI based on the obtained photoelectric volume pulse wave signal.
[0107] In an embodiment of the present application, after the electronic device is started (such as the electronic device is powered on), the electronic device (such as a processor) can control the light emitter and the light receiver to start working. In some embodiments, the electronic device controls the light emitter and the light receiver to start working in response to receiving the first instruction. In some embodiments, the electronic device controls the light emitter, the light receiver, and the control timer to start working in response to receiving the first instruction.
[0108] Step S32: the electronic device determines whether the ratio is less than a preset threshold.
[0109] The preset threshold value may be greater than 0 and less than 1. The preset threshold value may be set according to actual conditions, and this application does not make any specific limitation on this.
[0110] Among them, the blood perfusion index PI value (i.e., ratio) reflects the pulsating blood flow, that is, the blood perfusion capacity. The greater the pulsating blood flow, the more pulsating components there are, and the greater the blood perfusion index PI value. Usually, PI is used as a parameter indicator to reflect the limb perfusion status of the person being tested (user), and can be used to evaluate the signal quality of the photoelectric volume pulse wave signal.
[0111] Specifically, the DC value of the direct current component can be regarded as a constant value. Based on the first activity performed by the user and / or the environment in which the user is located, the vascular capacity of the user decreases (i.e., the blood in the blood vessels decreases), the amplitude of the pulsation decreases, and the amplitude of the change of the AC value of the alternating current component decreases, and the PI value decreases. For example, with a preset threshold of 0.1%, when the blood perfusion index PI is greater than or equal to 0.1%, it indicates that the blood flow in the blood vessels in the monitoring part of the current user (such as the user wearing the electronic device on the wrist, the monitoring part is the wrist) is large, and the signal quality of the current photoelectric volume pulse wave signal is acceptable. When the blood perfusion index PI<0.1%, it indicates that the vascular capacity in the monitoring part of the current user decreases, that is, the blood flow in the blood vessels is small, and the blood flow in the blood vessels is so small that the signal quality of the photoelectric volume pulse wave signal may be poor, thereby determining that the current photoelectric volume pulse wave signal has low credibility and poor signal quality. In other words, when the blood vessels contract (i.e., the vascular capacity decreases) to a certain extent, it may cause inaccurate heart rate detection based on the obtained photoelectric volume pulse wave signal, and it can be detected that the ratio is less than the preset threshold.
[0112] If not, in step S33, the electronic device calculates the user's heart rate based on the photoplethysmography signal.
[0113] In an embodiment of the present application, when the ratio is greater than or equal to a preset threshold, the electronic device calculates the user's heart rate based on the photoplethysmogram signal, wherein the calculation method may include but is not limited to the following method: by filtering the photoplethysmogram signal, the number of peaks within a certain period of time is obtained, and the heart rate value can be calculated based on the number of peaks. Assuming that the continuous sampling time is 5 seconds, the number of peaks within 5s is M, then the heart rate is (M*12) times / minute, where M is an integer greater than 1.
[0114] If yes, in step S34, the electronic device obtains detection data.
[0115] In the embodiment of the present application, the electronic device acquires detection data in response to the ratio being less than a preset threshold. Specifically, when the electronic device detects that the ratio is less than the preset threshold at time T1, the detection data collected at time T1 is acquired from at least one detection device, or the detection data collected within a certain time period (such as 0.5s or 1s) before time T1 is acquired from at least one detection device, or the detection data collected within a certain time period after time T1 is acquired from at least one detection device.
[0116] In an embodiment of the present application, the acquired detection data can be used to indicate the influence of the first activity performed by the user and / or the environment in which the user is located on the user's heart rate. When the user performs the first activity, there are factors that may affect the user's heart rate, and for this purpose, the relevant data of the first activity is obtained to assist in calculating the user's heart rate. The relevant data of the first activity performed by the user, such as any one or more of the activity duration, activity distance, and motion data, can be used to assist in calculating the user's heart rate. For this purpose, the relevant data of the first activity is obtained when the ratio is less than a preset threshold to assist in calculating the user's heart rate, so as to ensure the accuracy of the heart rate calculation. There are factors in the user's environment that affect the user's heart rate, and the influence of the environment on the user's heart rate can be reflected by the user's physical condition, that is, there is a correlation between the user's physical condition and the user's heart rate, and for this purpose, the relevant data used to indicate the user's physical condition is obtained when the ratio is less than a preset threshold to assist in calculating the user's heart rate, so as to ensure the accuracy of the heart rate calculation.
[0117] The detection data is derived from data related to the first activity performed by the user and / or data related to the user's physical condition collected by at least one detection device. Specifically, the detection data includes first data and second data, the first data is data used to indicate the first activity performed by the user, and the second data is data used to indicate the user's physical condition. The first data includes one or more of the following data: activity duration, activity distance, and motion data, and the second data includes a first temperature, wherein the first temperature includes the user's body surface temperature and / or the ambient temperature of the user's environment.
[0118] The first activity is the activity performed by the user during the heart rate detection process. For example, if the user performs free diving, the free diving activity is the first activity, the activity duration of the first activity is the diving duration, the activity distance of the first activity is the diving depth, and the motion data of the first activity includes acceleration. If the user performs winter running, the winter running activity is the first activity, the activity duration of the first activity is the running duration, the activity distance of the first activity is the running distance, and the motion data of the first activity includes acceleration.
[0119] The user's environment is the environment in which the user is located during the heart rate detection process. For example, when the user is free diving, the user's underwater environment is the user's environment, and the first temperature indicating the user's physical condition may include the user's body surface temperature and / or water temperature when the user is underwater. For another example, when the user is running outdoors in winter, the outdoors where the user is located is the user's environment, and the first temperature indicating the user's physical condition may include the user's body surface temperature and / or the outdoor ambient temperature when the user is outdoors.
[0120] In some embodiments, the user's environment may affect the user's physical condition, so if data indicating the user's physical condition cannot be directly obtained, relevant data of the user's environment is obtained. For example, the user's physical condition (such as body surface temperature) can be inferred based on the temperature of the user's environment (such as water temperature).
[0121] Step S35: the electronic device obtains the user's heart rate based on the detection data and the user's baseline heart rate.
[0122] In an embodiment of the present application, the electronic device adjusts the user's baseline heart rate according to the obtained detection data, such as obtaining a value according to the detection data, and adjusting the value of the baseline heart rate based on the value to obtain the user's heart rate.
[0123] In some embodiments, step S34 may be: when the ratio is less than a preset threshold, the electronic device obtains detection data in real time, and step S35 may be: the electronic device updates the user's heart rate in real time according to the user's baseline heart rate and the obtained detection data, and displays the updated user's heart rate in real time.
[0124] Compared with the related art, the embodiments of the present application have at least the following advantages:
[0125] The embodiment of the present application determines the signal quality of the photoelectric volumetric pulse wave signal by comparing the ratio with the preset threshold. When the ratio is less than the preset threshold, it is determined that the photoelectric volumetric pulse wave signal is weak, especially the AC component of the photoelectric volumetric pulse wave signal is weak, then it can be judged that the signal quality of the photoelectric volumetric pulse wave signal is poor, and the accuracy of calculating the heart rate using the photoelectric volumetric pulse wave signal cannot be guaranteed. For this reason, in response to the ratio being less than the preset threshold, the detection data is obtained to adjust the user's baseline heart rate based on the detection data, thereby avoiding the problem of inaccurate heart rate detection due to the weakening of the photoelectric volumetric pulse wave signal caused by the decrease in vascular capacity. And the detection data can be used to indicate the influence of the activities performed by the user and / or the environment in which the user is located on the user's heart rate, and the heart rate calculated based on the detection data and the user's baseline heart rate improves the accuracy of heart rate detection, with robustness and reliability.
[0126] See also Figure 4 , another heart rate detection method provided by an embodiment of the present application is exemplarily introduced. This embodiment is a further improvement on the previous embodiment, and the specific improvements include: the electronic device determines the corresponding activity mode according to the user's input, and then obtains the corresponding detection data according to the determined activity mode, and then calculates the heart rate based on the activity mode and the detection data.
[0127] Step S41: the electronic device obtains a first input.
[0128] The first input may be voice input, touch input, key input, etc., and the first input is used to instruct the electronic device to enter the first activity mode.
[0129] The electronic device may receive the first input via an input device, which is not specifically limited in this application.
[0130] Step S42: the electronic device enters a first activity mode in response to the first input.
[0131] The heart rate detection method provided in this application can be used for heart rate detection in various activity modes. Electronic devices can provide heart rate detection in various activity modes, and the activity modes that electronic devices can provide include but are not limited to: free diving mode, snow mountain climbing mode, winter running mode, etc.
[0132] The heart rate detection method provided by the present application sets the corresponding activity mode according to each specific activity application scenario. The activity modes provided by the present application all have their corresponding detection parameters and coefficients corresponding to the detection parameters. Each activity mode corresponds to at least one detection parameter, and each detection parameter has its corresponding coefficient. The number of detection parameters corresponding to each activity mode can be the same or different, the detection parameters corresponding to each activity mode can be the same or different, and the coefficients corresponding to the same detection parameter in different activity modes can be the same or different.
[0133] The following describes the settings for the activity mode.
[0134] In an embodiment of the present application, the electronic device can determine in advance the detection parameters that need to be obtained for the current activity scene based on the first activity performed by the user in the specific activity scene and / or the environment in which the user is located, and set corresponding coefficients for the detection parameters according to the degree of influence of the detection parameters on the user's heart rate in the current activity scene, and finally obtain the detection parameters corresponding to the activity scene and the coefficients corresponding to the detection parameters. Among them, the detection parameters can be parameters that affect the user's heart rate in the activity scene, and / or are associated with the user's heart rate, and can be used to assist in calculating the parameters of the user's heart rate. The coefficient is used to indicate the degree of influence of the corresponding detection parameter on the heart rate. In other words, the coefficient corresponding to the detection parameter is a numerical value set according to the degree of influence of the detection parameter on the heart rate.
[0135] In an embodiment of the present application, the electronic device constructs a regression model based on the detection parameters and their corresponding coefficients. Exemplarily, the detection parameters include a duration parameter for indicating the duration of an activity, a distance parameter for indicating the distance of an activity, a motion parameter for indicating motion data, and a temperature parameter for indicating the user's physical condition. The regression model is represented as follows:
[0136] HR=HR C +K1Δt+K2h+K3T+K4M (1)
[0137] Among them, HR is the user's heart rate, HR C is the user's baseline heart rate; Δt is a duration parameter, used to indicate the duration of the user's activity; h is a distance parameter, used to indicate the distance of the user's activity; T is a temperature parameter, used to indicate the first temperature; M is a motion parameter, used to indicate the user's motion data. K1 is the coefficient corresponding to the duration parameter; K2 is the coefficient corresponding to the distance parameter; K3 is the coefficient corresponding to the temperature parameter; K4 is the coefficient corresponding to the motion parameter. The values and positive and negative of K1-K4 are determined according to the actual situation, such as the environment in which they are located and the activity settings performed. This application does not make specific restrictions on this.
[0138] Among them, motion parameters may include acceleration parameters, activity parameters, speed parameters, etc.
[0139] The following description takes the motion parameter M as the activity amount a as an example.
[0140] For example, the baseline heart rate HR CThe unit of can be times / minute (bpm), the unit of duration parameter Δt can be seconds (s), the unit of distance parameter h can be meters (m), the unit of temperature parameter T can be Kelvin (K), the unit of activity amount a is 1, the unit of coefficient K1 corresponding to duration parameter can be 1bpm / s; the unit of coefficient K2 corresponding to distance parameter can be 1bpm / m; the unit of coefficient K3 corresponding to temperature parameter can be 1bpm / K; the unit of coefficient K4 corresponding to activity amount a can be times / minute (bpm).
[0141] It can be understood that the units corresponding to the above parameters and coefficients can be set according to actual conditions, and this application does not make any specific limitations on this.
[0142] In the embodiment of the present application, for a specific application scenario, a first formula for the application scenario is constructed according to the detection parameters related to the user's heart rate in the application scenario and the above regression model, and the first formula is used to calculate the user's heart rate when the ratio is less than a preset threshold. The following is an exemplary description using free diving scenarios and winter running scenarios.
[0143] For the free diving scenario, during the free diving process, the diving time, diving depth (which can be the distance from the horizontal plane to the user's location), water temperature, and the user's activity level all have an impact on the user's heart rate. The detection parameters of the free diving mode can be determined to include time parameters, distance parameters, temperature parameters, and activity level parameters. The first formula corresponding to the free diving mode is set as follows:
[0144] HR=HR C +K1Δt+K2h+K a T+K4a (2)
[0145] In formula (2), HR is the user's heart rate, HR C is the user's baseline heart rate, Δt is a duration parameter used to indicate the diving duration, h is a distance parameter used to indicate the diving depth, T is a temperature parameter used to indicate the water temperature, and a is an activity parameter. K1 is a coefficient corresponding to the duration parameter; K2 is a coefficient corresponding to the distance parameter; K3 is a coefficient corresponding to the water temperature parameter; and K4 is a coefficient corresponding to the activity parameter. Among them, K1, K2, and K3 are all less than 0, and K4 is greater than 0. The values of K1-K4 can be the same or different.
[0146] For example, the baseline heart rate HR CThe unit of can be times / minute (bpm), the unit of duration parameter Δt can be seconds (s), the unit of distance parameter h can be meters (m), the unit of water temperature parameter T can be Kelvin (K), the unit of activity parameter a can be 1, the unit of coefficient K1 corresponding to duration parameter can be 1bpm / s; the unit of coefficient K2 corresponding to distance parameter can be 1bpm / m; the unit of coefficient K3 corresponding to water temperature parameter can be 1bpm / K; the unit of coefficient K4 corresponding to activity parameter can be 1 times / minute (bpm).
[0147] In other embodiments, for free diving scenarios, the effect of MDR on heart rate during diving mainly depends on the breath holding time (diving duration) during diving. Therefore, when constructing the first formula of the free diving mode, the duration parameter Δt can be used as the main reference parameter. Then, the first formula corresponding to the free diving mode can be set as follows:
[0148] HR=HR C +L1Δt (3)
[0149] Among them, HR is the user's heart rate, HR C is the user's baseline heart rate, exemplarily, its unit is beats / minute (bpm); Δt is the duration parameter, L1 is the coefficient corresponding to the duration parameter, L1<0,0, exemplarily, the unit of L1 is 1 bpm / K.
[0150] In the embodiment of the present application, for the free diving scenario, the free diving mode uses the duration parameter Δt as a mandatory parameter, and uses the distance parameter h, the temperature parameter T, and the activity parameter a as optional parameters. It can be understood that the first formula of the free diving mode is constructed according to actual conditions.
[0151] For the winter running scenario, since the impact of the heart rate during winter running mainly depends on the user's activity level and the user's body surface temperature, it can be determined that the detection parameters of the winter running mode include activity level parameters and temperature parameters, and the first formula corresponding to the free diving mode is set as follows:
[0152] HR=HR C +Q1a+Q2T (4)
[0153] Among them, HR is the user's heart rate, HR C is the user's baseline heart rate, a is the activity parameter, T is the temperature parameter used to indicate the user's body surface temperature, Q1 is the coefficient corresponding to the activity parameter a, Q1>0, and its unit can be beats per minute (bpm). Q2 is the coefficient corresponding to the temperature parameter, -1≤Q2≤1, and its unit is 1bpm / K.
[0154] In an embodiment of the present application, the electronic device can set the positive and negative and size of the corresponding coefficient according to the degree of influence of the detection parameter on the user's heart rate in the user's activities and / or the user's environment. For example, in a free diving activity scene, when the user's activity is greater, the value of his heart rate is greater, and the coefficient corresponding to the activity parameter can be set to a positive number. When the user's diving time is longer, the value of his heart rate is smaller, and the coefficient corresponding to the duration parameter can be set to a negative number. When the user's diving depth is deeper, the value of his heart rate is smaller, and the coefficient corresponding to the distance parameter can be set to a negative number. When the water temperature is lower, the value of his heart rate is smaller, and the coefficient corresponding to the temperature parameter indicating the water temperature can be set to a negative number.
[0155] Similarly, the electronic device sets the value of the coefficient according to the influence of the user's activities and / or the various detection parameters in the environment on the user's heart rate. For example, in a diving scenario, since the influence of the diving reflex of mammals on the heart rate during diving mainly depends on the breath holding time during diving (i.e., the diving duration), the value of the coefficient corresponding to the duration parameter can be set to be greater than the values of the coefficients corresponding to other detection parameters.
[0156] In the embodiment of the present application, after determining the first formula selected for a specific activity mode, the values of the coefficients corresponding to the various detection parameters in the first formula are determined in advance based on multiple experimental data, or the positive and negative values of the coefficients can be adjusted according to actual conditions, thereby obtaining the detection parameters corresponding to the activity mode and the coefficients corresponding to the detection parameters, that is, obtaining the first formula of the activity mode. Exemplarily, the first formula for the free diving mode is determined to be formula (2), and according to multiple experimental data, K1=-0.5, K2=-0.1, K3=-0.2, and K4=0.3 in formula (2), and the first formula for the free diving mode is obtained as follows:
[0157] HR=HR C -0.5Δt-0.1h-0.2T+0.3a (5)
[0158] The units of the parameters and coefficients in formula (5) can be referred to above and will not be repeated here. Formula (5) is the formula for the free diving mode.
[0159] Accordingly, the first formula for determining the winter running mode is formula (4). According to multiple experimental data, Q1=0.5, Q2=0.1 in formula (4), and the first formula for the winter running mode is obtained as follows:
[0160] HR=HR C +0.5a+0.1T (6)
[0161] The units of the parameters and coefficients in formula (6) can be referred to above and will not be repeated here. Formula (6) is the formula for the winter running mode.
[0162] After the detection parameters corresponding to each activity mode and the coefficients corresponding to the detection parameters are set as described above, the electronic device can store the set activity modes, and each set activity mode has its corresponding detection parameters and the coefficients corresponding to the detection parameters.
[0163] The electronic device receives user input through an input device, and the user input is used to instruct the electronic device to enter a corresponding activity mode. For example, the electronic device enters a first activity mode in response to a first input input by the user.
[0164] In some embodiments, step S41 may be replaced by: the electronic device obtains a second input, and step S42 may be replaced by: the electronic device enters a second activity mode in response to the second input.
[0165] The content of the second input can refer to the first input, for example, the form of the second input can refer to the first input, the second input can be a touch input, etc., which will not be described in detail here. The second input is used to instruct the electronic device to enter the second activity mode.
[0166] It should be noted that the "first" and "second" in the first input and the second input are used to distinguish similar objects, rather than to describe a specific order or sequence. Correspondingly, the "first" and "second" in the first activity mode and the second activity mode are used to distinguish similar objects, rather than to describe a specific order or sequence. The first activity mode and the second activity mode are two different activity modes.
[0167] As in the above example, the "heart rate" module can provide heart rate detection services in various activity modes. The "heart rate" module provides a second interface through the smart watch, and the second interface can provide various activity modes. The user selects the corresponding activity mode according to the actual situation, and then the smart watch calculates the corresponding heart rate in the selected activity mode. For example, the second interface may include free diving controls, snow mountain climbing controls, and winter running controls. Taking the first activity mode as the free diving mode and the second activity mode as the winter running mode as an example, if the user wants to detect the heart rate while performing the free diving activity, the user selects the free diving control on the second interface to input the first input to the smart watch. The smart watch enters the first activity mode (i.e., free diving mode) in response to the user selecting the free diving control. Correspondingly, if the user wants to detect the heart rate while performing the winter running activity, the user selects the winter running control on the second interface to input the second input to the smart watch. The smart watch enters the second activity mode (i.e., winter running mode) in response to the user selecting the winter running control.
[0168] In some embodiments, the electronic device obtains a first input and enters a first activity mode in response to the first input. After entering the first activity mode, the electronic device obtains a second input, and the electronic device exits the first activity mode in response to the second input and enters the second activity mode. Or, the electronic device obtains a second input and enters the second activity mode in response to the second input. After entering the second activity mode, the electronic device obtains a first input, and the electronic device exits the second activity mode in response to the first input and enters the first activity mode.
[0169] In some embodiments, the electronic device may further obtain a third input, and the electronic device enters a third activity mode in response to the third input. As in the above example, the user selects the climbing snow mountain control on the second interface to input the third input to the smart watch. The smart watch enters the third activity mode (i.e., climbing snow mountain mode) in response to the user selecting the climbing snow mountain control.
[0170] Taking the first formula of the free diving mode stored in the electronic device as formula (5) and the first formula of the winter running mode as formula (6) as an example, as in the above example, if the "heart rate" module detects that the user operates the free diving control on the second interface, the electronic device enters the free diving mode. After entering the free diving mode, the user's heart rate can be calculated according to the function corresponding to the free diving mode, such as the corresponding function of the free diving mode is formula (5). According to formula (5), it can be determined that the detection parameters in the free diving mode include: a duration parameter, a distance parameter, a temperature parameter for indicating the water temperature, and an activity parameter, and the coefficients corresponding to each detection parameter are -0.5, -0.1, -0.2 and 0.3 respectively. For another example, if the "heart rate" module detects that the user operates the winter running control on the second interface, the electronic device can enter the winter running mode. After entering the winter running mode, the user's heart rate can be calculated according to the function corresponding to the winter running mode, such as the corresponding function of the winter running mode is formula (6). According to formula (6), it can be determined that the detection parameters that need to be obtained in the winter running mode include: an activity parameter and a temperature parameter for indicating the user's body surface temperature, and the coefficients corresponding to each detection parameter are 0.5 and 0.1 respectively.
[0171] It should be noted that the positive and negative coefficients and numerical settings in the above formulas are examples and do not specifically limit the scope of this application.
[0172] In step S43, the electronic device obtains the user's photoplethysmography signal and calculates the ratio of the AC component to the DC component of the photoplethysmography signal.
[0173] In an embodiment of the present application, the electronic device may obtain the user's photoplethysmogram signal in response to a first instruction, and calculate the ratio of the AC component to the DC component of the photoplethysmogram signal. In some embodiments, the electronic device may obtain the user's photoplethysmogram signal in response to a first instruction, and then the electronic device calculates the ratio of the AC component to the DC component of the photoplethysmogram signal in response to receiving the user's input (such as a first input, a second input, etc.). In some embodiments, the electronic device may obtain the user's photoplethysmogram signal in response to receiving the user's input (such as a first input, a second input, etc.) and calculate the ratio of the AC component to the DC component of the photoplethysmogram signal.
[0174] The relevant contents in the electronic device executing step S43 may refer to the above step S31, which will not be described in detail here.
[0175] Step S44: In response to the ratio being less than a preset threshold, the electronic device obtains corresponding detection data.
[0176] In the embodiment of the present application, when the electronic device executes step S42 and enters the first activity mode, when executing step S44, the electronic device obtains the detection data required for the first activity mode in the first activity mode, such as obtaining the first detection data, and the first detection data corresponds to the first detection device. Correspondingly, when the electronic device executes step S42 and enters the second activity mode, when executing step S44, the electronic device obtains the detection data required for the second activity mode in the second activity mode, such as obtaining the second detection data, and the second detection data corresponds to the second detection device. The first activity mode is different from the second activity mode, and accordingly, at least one of the detection data required to be obtained in the first activity mode and the second activity mode is different, and the first detection device is different from the second detection device.
[0177] In some embodiments, the electronic device enters the first activity mode, and step S44 specifically includes: in response to the ratio being less than a preset threshold, the electronic device acquires first detection data collected by the first detection device according to the first detection parameter corresponding to the first activity mode. Taking the first activity mode as the free diving mode as an example, the first detection parameter is the duration parameter, the first detection data is the diving duration, and accordingly, the first detection device corresponding to the first detection data is a timer.
[0178] In some embodiments, the first activity mode may also include other corresponding detection parameters, such as one or more of acceleration parameters, activity volume parameters, distance parameters and temperature parameters. Accordingly, when the first electronic device enters the first activity mode, the acquired detection data also includes: one or more of acceleration, diving depth and water temperature.
[0179] In some embodiments, the electronic device enters the second activity mode, and step S44 specifically includes: in response to the ratio being less than a preset threshold, the electronic device obtains the second detection data collected by the second detection device according to the second detection parameter corresponding to the second activity mode. Taking the second activity mode as the winter running mode as an example, the second detection parameter is the acceleration parameter, and the second detection data is the acceleration. Accordingly, the second detection device corresponding to the second detection data is an acceleration sensor. In some embodiments, the second activity mode may also include other corresponding detection parameters, such as one or more of a duration parameter, an activity volume parameter, a distance parameter, and a temperature parameter. Accordingly, the first electronic device enters the first activity mode, and the acquired detection data also includes: one or more of running duration, running distance, and water temperature.
[0180] Specifically, taking the free diving mode as an example of the first activity mode, the detection parameters corresponding to the free diving mode include one or more of a duration parameter, an acceleration parameter, an activity volume parameter, a distance parameter, and a temperature parameter, then the corresponding detection data obtained according to the duration parameter is the diving duration, the corresponding detection data obtained according to the distance parameter is the diving depth, the corresponding detection data obtained according to the temperature parameter is the water temperature, the corresponding detection data obtained according to the acceleration parameter is the acceleration, and the corresponding detection data obtained according to the activity volume parameter is the acceleration. Taking the winter running mode as an example of the second activity mode, the detection parameters corresponding to the winter running mode include one or more of an acceleration parameter, an activity volume parameter, a duration parameter, a distance parameter, and a temperature parameter, then the corresponding detection data obtained according to the acceleration parameter is the acceleration, the corresponding detection data obtained according to the activity volume parameter is the acceleration, the corresponding detection data obtained according to the duration parameter is the running duration, the corresponding detection data obtained according to the distance parameter is the running distance, and the corresponding detection data obtained according to the temperature parameter is the user's body surface temperature.
[0181] In an embodiment of the present application, taking the first activity mode corresponding to N detection parameters as an example, the electronic device obtains corresponding N detection data according to the N detection parameters in the first activity mode, including: the electronic device determines corresponding N detection devices according to the N detection parameters in the first activity mode, wherein the N detection devices include one or more of the following devices: a timer, a first sensor for collecting motion data, a second sensor for collecting a first temperature, and a third sensor for collecting an activity distance, and then the electronic device obtains corresponding N detection data from the determined N detection devices in response to the ratio being less than a preset threshold.
[0182] As in the above example, the function corresponding to the free diving mode is formula (5), and the detection parameters of formula (5) include a duration parameter, a distance parameter, a temperature parameter for indicating the water temperature, and an activity parameter. Then, in response to the ratio being less than the preset threshold, the electronic device obtains the diving duration from the timer according to the duration parameter, obtains the diving depth from the third sensor according to the distance parameter, obtains the water temperature from the second sensor according to the temperature parameter, obtains the acceleration from the first sensor according to the activity parameter, and then obtains the activity data according to the acceleration (described in detail below). Correspondingly, the function corresponding to the winter running mode is formula (6), and the detection parameters of formula (6) include an activity parameter and a temperature parameter for indicating the user's body surface temperature. Then, in response to the ratio being less than the preset threshold, the electronic device obtains the acceleration from the first sensor according to the activity parameter, and then obtains the activity according to the acceleration.
[0183] The following describes how to obtain the amount of activity based on acceleration.
[0184] In the embodiment of the present application, the electronic device obtains a preset threshold value, and then obtains the activity amount according to the relationship between the acceleration and the preset threshold value, and then the calculated activity amount can be substituted into the above formula to assist in calculating the user's heart rate. The preset threshold value includes a low threshold value and a high threshold value, wherein the value range of the low threshold value and the high threshold value can be set according to actual conditions, and will not be repeated here.
[0185] In the embodiment of the present application, as shown in Table 1, when the acceleration is less than the low threshold value, the activity amount is set to the first value, and the activity amount is low at this time; when the acceleration is greater than the low threshold value and less than the high threshold value, the activity amount is set to the second value, and the activity amount is medium at this time; when the acceleration is greater than the high threshold value, the activity amount is set to the third value, and the activity amount is high at this time.
[0186] Table 1
[0187] relation Activity The acceleration is less than the lower threshold First value The acceleration is greater than the lower threshold and less than the upper threshold Second value The acceleration is greater than the high threshold The third value
[0188] In the embodiment of the present application, the numerical values of the first value, the second value and the third value are different. The first value, the second value and the third value can be set according to actual conditions, such as the first value is 1, the second value is 2, and the third value is 3. The present application does not make any specific limitation on this.
[0189] In some embodiments, the third value is greater than the second value, and the second value is greater than the first value. In some embodiments, the value obtained according to the third value and the corresponding coefficient is greater than the value obtained according to the second value and the corresponding coefficient, and the value obtained according to the second value and the corresponding coefficient is greater than the value obtained according to the first value and the corresponding coefficient.
[0190] In some embodiments, the activity parameter in the above formula may be replaced with an acceleration parameter, so that the obtained acceleration can be directly used to assist in calculating the user's heart rate.
[0191] In an embodiment of the present application, after the electronic device is started, the power module powers on at least one detection device (such as a timer, a first device, a second device, and a third device), and the powered device starts working to collect corresponding data in real time.
[0192] In some embodiments, at least one detection device may start working under the control of the electronic device, such as the electronic device starting at least one detection in response to receiving the first instruction.
[0193] In an embodiment of the present application, the electronic device may output a timing instruction to a timer, and the timer starts timing in response to the timing instruction to obtain the activity duration. The electronic device may output a timing instruction in the following situations:
[0194] In scenario 1, the electronic device responds to receiving the user's input (such as the first input, the second input, etc.) and outputs a timing instruction to the timer to start the timer to start timing, thereby obtaining the activity duration of the first activity. As in the above example, when a diver is preparing to free dive, the diver operates the "heart rate" module on the smart watch to input the first input to the electronic device, and the electronic device responds to receiving the first input and starts the timer to start timing to count the diving duration of the diving activity.
[0195] In the second scenario, when the electronic device detects that the diving depth reaches a threshold, it outputs a timing instruction to start timing, thereby obtaining the activity duration of the first activity. For example, when it is detected that the diving depth is >1m, the electronic device outputs a timing instruction to the timer to start the timer to start timing and count the diving duration. In the first scenario, the electronic device responds to the user's input to start timing. At this time, the diver's head may not be submerged in the water (that is, the user has not yet performed the first activity), resulting in the calculated duration not accurately representing the user's diving duration. In the second scenario, when it is detected that the diving depth is >1m, it can be determined that the diver has submerged in the water (that is, it is determined that the user has performed the first activity), and the obtained duration can more accurately represent the user's diving duration.
[0196] Scenario three, the electronic device obtains a photoplethysmogram signal. When it is determined that the user is holding his breath based on the photoplethysmogram signal, the electronic device outputs a timing instruction to start the timer to start timing, thereby obtaining the diving time. Based on the fact that breathing affects the ejection and pumping of blood by the heart, the photoplethysmogram signal can reflect the breathing situation, and the waveform of breathing in the photoplethysmogram signal is demodulated. When it is detected that there is no breathing waveform in the photoplethysmogram signal, it can be determined that the user is holding his breath (that is, it is determined that the user has performed free diving). In response to the user starting to hold his breath, the diving time obtained can more accurately represent the user's diving time (that is, the breath holding time).
[0197] In the embodiment of the present application, the start timing of at least one detection device can be set according to actual conditions to ensure that when the ratio is less than a preset threshold, the electronic device can obtain the detection data indicated by the detection parameters in the corresponding activity mode.
[0198] Step S45: the electronic device determines a baseline heart rate of the user.
[0199] In an embodiment of the present application, the electronic device may determine a pre-stored resting heart rate as the baseline heart rate; or, the electronic device may determine the user's heart rate obtained at the beginning of entering the first activity mode as the baseline heart rate; or, the electronic device may determine the user's heart rate obtained within a preset time period (such as 1 second) before entering the first activity mode as the baseline heart rate; or, the electronic device may determine the user's heart rate obtained within a preset time period after entering the first activity mode as the baseline heart rate.
[0200] Specifically, the electronic device can obtain the user's heart rate in real time to detect that the electronic device enters the first activity mode at time T1. The electronic device uses the user's heart rate at time T1 as the initial heart rate, or the electronic device uses the user's heart rate obtained within a preset time period (such as 2 seconds) before time T1 as the initial heart rate, or the electronic device uses the user's heart rate obtained within a preset time period (such as 2 seconds) after time T1 as the initial heart rate.
[0201] The relevant contents of the baseline heart rate can be found above and will not be repeated here.
[0202] The execution order of step S45 is not specifically limited. For example, step S45 is executed simultaneously with any step from step S41 to step S44.
[0203] Step S46: The electronic device obtains the user's heart rate according to the detection data, the user's baseline heart rate, and the coefficient in the first activity mode.
[0204] As in the above example, the first formula of the free diving mode is formula (5). After obtaining the detection data corresponding to each detection parameter in formula (5), the user's baseline heart rate is also obtained. The user's heart rate can be obtained by substituting the obtained baseline heart rate and the detection data into formula (5). Correspondingly, the first formula of the winter running mode is formula (6). After obtaining the detection data corresponding to each detection parameter in formula (6), the user's baseline heart rate is also obtained. The user's heart rate can be obtained by substituting the obtained baseline heart rate and the detection data into formula (6).
[0205] In an embodiment of the present application, the electronic device can, in response to the ratio being less than a preset threshold, obtain corresponding detection data in real time according to the corresponding detection parameters in the activity mode, and then obtain the user's heart rate based on the real-time obtained detection data, the user's baseline heart rate and the coefficient in the first activity mode.
[0206] Specifically, during the heart rate detection process, the electronic device acquires the photoplethysmogram signal in real time, and then calculates the blood perfusion index PI according to the acquired photoplethysmogram signal, so as to update the blood perfusion index PI in real time. The electronic device determines whether it is necessary to acquire the influencing parameter in real time according to the blood perfusion index PI updated in real time. If it is detected at time T1 that the blood perfusion index PI is less than the preset threshold, the electronic device acquires the value at time T1 from at least one detection device according to the detection parameters required in the corresponding activity mode, so as to obtain the detection data at time T1. Taking the free diving mode as an example, according to formula (5) of the free diving mode, the detection data at time T1 that needs to be acquired include: the diving time from the start of timing to time T1, the diving depth measured at time T1, the ambient temperature of the user's environment at time T1 (i.e., the water temperature at time T1), and the user acceleration at time T1, and the activity amount corresponding to time T1 (the user's activity amount) is determined according to the user acceleration at time T1. The user's heart rate is obtained according to the detection data at time T1 and the user's baseline heart rate using the coefficient in formula (5). If it is detected at the next moment (such as after a preset time period) that the blood perfusion index PI is still less than the preset threshold, the detection data at the next moment will continue to be acquired.
[0207] Compared with the related art, the embodiments of the present application have at least the following advantages:
[0208] The embodiment of the present application determines the signal quality difference of the photoelectric volume pulse wave signal by comparing the ratio with the preset threshold value. For this purpose, in response to the ratio being less than the preset threshold value, the detection data is obtained to adjust the user's baseline heart rate based on the detection data, thereby avoiding the problem of inaccurate heart rate detection due to the weakening of the photoelectric volume pulse wave signal caused by the decrease in vascular capacity. Further, by setting the corresponding activity mode for each specific application scenario, the set activity mode can accurately and reliably calculate the user's heart rate in the corresponding application scenario. The electronic device enters the corresponding activity mode in response to the user's input, and then in response to the ratio being less than the preset threshold value, the corresponding detection data is obtained according to the activity mode. The detection data can be used to indicate the influence of the user's activities and / or the user's environment on the user's heart rate. The heart rate calculated based on the detection data and the user's baseline heart rate improves the accuracy of heart rate detection, and has robustness and reliability.
[0209] See also Figure 5 , another heart rate detection method provided by an embodiment of the present application is exemplarily introduced. This embodiment is a further improvement made on the basis of the previous embodiment, specifically improving the above step S33, and the improvement includes that when the ratio is greater than or equal to the preset threshold, the electronic device calculates the heart rate based on the photoelectric volume pulse wave signal and the acceleration.
[0210] Step S51: In response to the ratio being greater than or equal to a preset threshold, the electronic device obtains acceleration.
[0211] In response to the ratio being greater than or equal to a preset threshold, the electronic device obtains the acceleration of the user from the first sensor (such as an acceleration sensor).
[0212] Step S52: The electronic device obtains the user's heart rate based on the photoplethysmogram signal and acceleration.
[0213] Specifically, the electronic device processes the acceleration collected by the speed sensor and obtains the spectrum of the acceleration signal based on the Fourier transform calculation. The electronic device obtains the spectrum of the photoelectric volumetric pulse wave signal based on the fast Fourier transform calculation. The spectrum of the acceleration signal is subtracted from the spectrum of the photoelectric volumetric pulse wave signal to obtain the final spectrum of the photoelectric volumetric pulse wave signal after removing the spectrum of the acceleration signal, and then the final spectrum of the photoelectric volumetric pulse wave signal is used to calculate the user's heart rate. Among them, the method of removing the spectrum of the acceleration signal from the spectrum of the photoelectric volumetric pulse wave signal also includes but is not limited to: division, threshold, extreme value judgment and other methods.
[0214] In the embodiment of the present application, since the spectrum of the photoplethysmogram signal is easily disturbed by the user's movement, resulting in heart rate errors, the present embodiment can simultaneously obtain the spectrum of the photoplethysmogram signal and the acceleration signal, thereby effectively deleting the acceleration signal component in the photoplethysmogram signal and obtaining a more accurate heart rate value.
[0215] See also Figure 6 , another heart rate detection method provided by an embodiment of the present application is exemplarily introduced. This embodiment is a further improvement made on the basis of the previous embodiment, and specifically improves the above step S52. The improvements include: when the ratio is greater than or equal to the preset threshold value according to the acceleration, how to calculate the user's heart rate is determined specifically according to the acceleration. For example, when it is determined according to the acceleration that the user is in a low level of activity, the acceleration signal has no obvious effect on the spectrum of the photoplethysmogram signal. However, when the user is not in a low level of activity (such as in a medium or high level of activity), the acceleration signal has a more serious effect on the spectrum of the photoplethysmogram signal.
[0216] Step S61: The electronic device determines whether the acceleration is greater than a first threshold.
[0217] The first threshold value may be set according to actual conditions. In some embodiments, the first threshold value may be set to the above-mentioned lower threshold value.
[0218] If yes, in step S62, the electronic device obtains the user's heart rate according to the photoplethysmography signal and the acceleration;
[0219] When the acceleration is greater than the first threshold, it is determined that the user is not in a low activity level, and the electronic device obtains the user's heart rate according to the photoplethysmogram signal and the acceleration. For details, please refer to Figure 5 , I will not go into details here.
[0220] If not, in step S63, the electronic device obtains the user's heart rate according to the photoplethysmography signal.
[0221] When the acceleration is less than or equal to the first threshold, it is determined that the user is in a low activity level, and the electronic device obtains the user's heart rate based on the photoelectric volume pulse wave signal. Figure 3 , I will not go into details here.
[0222] In the embodiment of the present application, when the user is in a medium or high activity level, the interference of the acceleration signal spectrum in the photoplethysmography signal spectrum is eliminated to obtain a more accurate heart rate value. Based on the fact that the acceleration signal has no obvious effect on the spectrum of the photoplethysmography signal under low activity levels, the accuracy of the heart rate can be guaranteed without eliminating it, and the calculation cost can be reduced.
[0223] See also Figure 7, exemplarily introduces a hardware structure diagram of an electronic device provided in an embodiment of the present application. , ... Figure 7 As shown, the electronic device 700 may include a processor 701 and a memory 702. The memory 702 is used to store one or more computer programs 703. The one or more computer programs 703 are configured to be executed by the processor 701. The one or more computer programs 703 include instructions, and the above instructions can be used to implement the above heart rate detection method in the electronic device 700.
[0224] The relevant contents of the processor 701 and the memory 702 can be referred to above and will not be repeated here.
[0225] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 700. In other embodiments, the electronic device 700 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0226] An embodiment of the present application provides a wearable device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the heart rate detection method of the application in the above-mentioned method embodiments is implemented.
[0227] An embodiment of the present application provides a chip system, which is applied to an electronic device; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through lines; the processor includes a first processor core; the interface circuit is used to receive a signal from a memory of the electronic device and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the above-mentioned related steps to implement the heart rate detection method of the application in the above-mentioned method embodiments.
[0228] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the heart rate detection method of the application program in the above-mentioned method embodiments.
[0229] An embodiment of the present application also provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the heart rate detection method as described in the above embodiment.
[0230] Among them, the electronic device, computer storage medium, computer program product or chip system provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0231] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0232] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0233] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0234] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0235] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0236] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A heart rate detection method, characterized in that: The method comprises: Get the user's baseline heart rate; Acquiring a photoplethysmogram signal of the user, and calculating a ratio of an alternating current component to a direct current component of the photoplethysmogram signal; In response to the ratio being less than a preset threshold, acquiring detection data, wherein the detection data includes first data indicating an activity performed by the user and / or second data indicating a physical condition of the user; The heart rate of the user is obtained according to the detection data and the baseline heart rate of the user.
2. The heart rate detection method according to claim 1, characterized in that: The first data includes one or more of the following data: activity duration, activity distance and motion data, and the second data includes a first temperature, wherein the first temperature includes the body surface temperature of the user and / or the ambient temperature of the environment in which the user is located.
3. The heart rate detection method according to claim 1 or 2, characterized in that: The obtaining the user's heart rate according to the detection data and the user's reference heart rate comprises: The user's heart rate is updated in real time according to the user's baseline heart rate and the obtained detection data, and the updated user's heart rate is displayed in real time.
4. The heart rate detection method according to any one of claims 1 to 3, characterized in that: Before acquiring the detection data in response to the ratio being less than a preset threshold, the method further includes: Get the first input; entering a first active mode in response to the first input; In response to the ratio being less than a preset threshold, acquiring detection data includes: In response to the ratio being less than the preset threshold, acquiring first detection data, where the first detection data corresponds to a first detection device; or, Before acquiring the detection data in response to the ratio being less than a preset threshold, the method further includes: Get the second input; entering a second active mode in response to the second input; In response to the ratio being less than a preset threshold, acquiring detection data includes: In response to the ratio being less than the preset threshold, second detection data is acquired, the second detection data corresponds to a second detection device, the first activity mode is different from the second activity mode, and the first detection device is different from the second detection device.
5. The heart rate detection method according to claim 4, characterized in that: The first activity mode corresponds to a first detection parameter, and in response to the ratio being less than the preset threshold, acquiring first detection data includes: In response to the ratio being less than the preset threshold, acquiring the first detection data collected by the first detection device according to the first detection parameter; The second activity mode corresponds to a second detection parameter, and in response to the ratio being less than the preset threshold, acquiring second detection data includes: In response to the ratio being less than the preset threshold, the second detection data collected by the second detection device is acquired according to the second detection parameter.
6. The heart rate detection method according to claim 4 or 5, characterized in that: The first detection data is diving time, and the first detection device is a timer.
7. The heart rate detection method according to claim 6, characterized in that: The detection data also includes: one or more of acceleration, diving depth and water temperature.
8. The heart rate detection method according to claim 4 or 5, characterized in that: The second detection data is acceleration, and the second detection device is an acceleration sensor.
9. The heart rate detection method according to claim 8, characterized in that: The detection data also includes: one or more of running time, running distance and user's body surface temperature.
10. The heart rate detection method according to any one of claims 4 to 9, characterized in that: The obtaining of the user's baseline heart rate comprises: Determining a pre-stored resting heart rate as the reference heart rate; or, determining the user's heart rate obtained at the start time of entering the corresponding activity mode as the reference heart rate; Or, determining the user's heart rate obtained within a preset time period before entering the corresponding activity mode as the reference heart rate; Alternatively, the user's heart rate obtained within a preset time period after entering the corresponding activity mode is determined as the reference heart rate.
11. The heart rate detection method according to claim 7 or 8, characterized in that: When the detection data includes the acceleration, obtaining the heart rate of the user according to the detection data and the baseline heart rate of the user includes: The heart rate of the user is obtained according to a preset threshold value, the acceleration and a reference heart rate of the user.
12. The heart rate detection method according to any one of claims 1 to 11, characterized in that: The method further comprises: In response to the ratio being greater than or equal to the preset threshold, the heart rate of the user is obtained according to the photoplethysmography signal.
13. The heart rate detection method according to claim 12, characterized in that: In response to the ratio being greater than or equal to the preset threshold, obtaining the user's heart rate according to the photoplethysmography signal comprises: In response to the ratio being greater than or equal to the preset threshold, acquiring acceleration; The user's heart rate is obtained according to the photoplethysmogram signal and the acceleration.
14. The heart rate detection method according to claim 13, characterized in that: The obtaining the user's heart rate according to the photoplethysmogram signal and the acceleration comprises: Determining whether the acceleration is greater than a first threshold; When the acceleration is greater than the first threshold, obtaining the user's heart rate according to the photoplethysmography signal and the acceleration; When the acceleration is less than or equal to the first threshold, the heart rate of the user is obtained according to the photoplethysmography signal.
15. The heart rate detection method according to claim 7, characterized in that: The method further comprises: In response to receiving the first input, outputting a timing instruction to start timing; or, when it is determined according to the photoplethysmography signal that the user is holding his breath, outputting a timing instruction to start timing; Or, when it is detected that the diving depth reaches a threshold, a timing instruction is output to start timing.
16. An electronic device, characterized in that: include: A first device is used to obtain a photoplethysmogram signal of a user; at least one detection device, configured to collect detection data, wherein the detection data includes first data indicating an activity performed by the user and / or second data indicating a physical condition of the user; a processor, configured to obtain the photoplethysmography signal and calculate a ratio of an AC component to a DC component of the photoplethysmography signal; The processor is further configured to obtain the detection data in response to the ratio being less than a preset threshold, and obtain the heart rate of the user based on the detection data and a baseline heart rate of the user.
17. The electronic device according to claim 16, characterized in that: The first data includes one or more of the following data: activity duration, activity distance and motion data, and the second data includes a first temperature, wherein the first temperature includes the body surface temperature of the user and / or the ambient temperature of the environment in which the user is located.
18. The electronic device according to claim 16 or 17, characterized in that: The at least one detection device includes one or more of the following devices: a timer, a first sensor for collecting motion data, a second sensor for collecting a first temperature, and a third sensor for collecting an activity distance.
19. The electronic device according to any one of claims 16 to 18, characterized in that: The obtaining the heart rate of the user according to the detection data and the user's reference heart rate comprises: updating the heart rate of the user in real time according to the user's reference heart rate and the obtained detection data; The electronic device further comprises: The output device is used to display the updated heart rate of the user in real time.
20. The electronic device according to any one of claims 16 to 19, characterized in that: The electronic device further comprises an input device; The input device is used to receive a first input; The processor is further configured to obtain the first input, enter a first activity mode in response to the first input, or, The input device is used to receive a second input; The processor is configured to obtain the second input, and enter a second activity mode in response to the second input.
21. The electronic device according to any one of claims 16 to 20, characterized in that: The processor is also used to execute the heart rate detection method described in any one of claims 5 to 15 above.
22. A wearable device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 15 are implemented.
23. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the heart rate detection method as claimed in any one of claims 1 to 15.
24. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the heart rate detection method according to any one of claims 1 to 15.
Citation Information
Cited By
Signal processing method, chip and electronic equipment
CN120570575A
