Heart rate measurement method and device, electronic equipment and storage medium

By combining flash and rear light sensing components on terminal devices, the user's PPG signal is obtained, which solves the problem that ordinary users cannot easily measure heart rate, and realizes a convenient, energy-saving and real-time monitoring heart rate measurement method.

CN119523444APending Publication Date: 2025-02-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202311101110.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Ordinary users cannot easily perform heart rate detection and require professional equipment.

Method used

By controlling the terminal device to enter the heart rate acquisition mode, the flash and rear light sensing components are used to obtain the pulse wave signal (PPG signal) of the target user, and the heart rate is determined based on the signal.

Benefits of technology

It realizes that ordinary users can easily measure heart rate, saves the power consumption of terminal equipment, and supports real-time monitoring of heart rate changes to detect abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119523444A_ABST
    Figure CN119523444A_ABST
Patent Text Reader

Abstract

The invention relates to a heart rate measuring method and device, electronic equipment and a storage medium, and belongs to the technical field of electronics. The method comprises the following steps: controlling the terminal equipment to enter a heart rate acquisition mode, and starting a flash lamp on the terminal equipment to emit light; performing data reading on a rear light sensing component of the terminal equipment to obtain a first photoelectric volume pulse wave (PPG) signal of the target user; and determining the heart rate of the target user based on the first PPG signal. Therefore, according to the scheme, the terminal equipment is controlled to enter the heart rate acquisition mode and the flash lamp is controlled to emit light, the rear light sensing assembly can detect the data information of the target user to obtain the first PPG signal, and then the heart rate of the target user can be determined based on the first PPG signal, so that the heart rate of the user can be measured more conveniently and quickly, and the user experience is improved. The heart rate change can be monitored in real time, so that abnormity can be found, and corresponding measures can be taken in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a heart rate measurement method, device, electronic device and storage medium. Background Art

[0002] Currently, heart rate detection requires professional equipment, and ordinary users cannot perform heart rate detection conveniently. Summary of the invention

[0003] The present application provides a heart rate measurement method, device, electronic device, computer-readable storage medium and computer program product to solve the problem that ordinary users cannot conveniently perform heart rate detection. The technical solution of the present application is as follows:

[0004] According to a first aspect of an embodiment of the present application, a heart rate measurement method is provided, comprising: controlling a terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light; reading data from a rear light sensing component of the terminal device to obtain a first photoelectric volumetric pulse wave signal (PPG) signal of a target user; and determining the heart rate of the target user based on the first PPG signal.

[0005] In one embodiment of the present application, determining the heart rate of the target user based on the first PPG signal includes: acquiring a pulse wave signal power spectrum based on the first PPG signal; identifying a power peak on the pulse wave signal power spectrum, and determining a first frequency corresponding to the power peak; and determining the heart rate of the target user based on the first frequency.

[0006] In one embodiment of the present application, acquiring a pulse wave signal power spectrum based on the first PPG signal includes: performing Fourier transform on the first PPG signal to obtain a frequency domain pulse wave signal; and acquiring the pulse wave signal power spectrum based on the frequency domain pulse wave signal.

[0007] In one embodiment of the present application, determining the heart rate of the target user based on the first PPG signal includes: identifying a peak position on the first PPG signal; obtaining the time interval between adjacent peaks to determine the heartbeat interval IBI corresponding to the first PPG signal; and determining the heart rate of the target user based on the IBI.

[0008] In one embodiment of the present application, after acquiring the IBI, the method further includes: acquiring a time domain index of a heart rate variability analysis HRV of the target user based on the IBI.

[0009] In one embodiment of the present application, the data reading of the rear light sensing component of the terminal device to obtain the first PPG signal of the target user includes: reading the sampling value on the target channel in the rear light sensing component, and obtaining the original second PPG signal based on the sampling value and the timestamp of the sampling value; and preprocessing the second PPG signal to obtain the first PPG signal.

[0010] In one embodiment of the present application, the preprocessing the second PPG signal to obtain the first PPG signal includes: resampling the second PPG signal to obtain a third PPG signal, and filtering and denoising the third PPG signal to obtain the first PPG signal.

[0011] In one embodiment of the present application, resampling the second PPG signal to obtain a third PPG signal includes: performing interpolation calculation on the sampling points in the second PPG signal based on a sampling frequency and a timestamp of the sampling point to obtain the third PPG signal.

[0012] In one embodiment of the present application, it is characterized in that after the control terminal device enters the heart rate collection mode, it also includes: generating heart rate collection prompt information, and the heart rate collection prompt information is used to remind the target user's fingers to cover the rear light sensing component and the flash.

[0013] According to a second aspect of an embodiment of the present application, a heart rate measurement device is provided, including: a control module, used to control a terminal device to enter a heart rate collection mode, and start a flashlight on the terminal device to emit light; an acquisition module, used to read data from a rear light sensing component of the terminal device to obtain a first photoelectric volume pulse wave signal (PPG) signal of a target user; and a determination module, used to determine the heart rate of the target user based on the first PPG signal.

[0014] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the method of the first aspect of the embodiment of the present application.

[0015] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0016] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor of an electronic device, the steps of the method of the first aspect of the embodiment of the present application are implemented.

[0017] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects: by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, and it is easy to block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user can be determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.

[0020] Figure 1 The figure is a flow chart of a heart rate measurement method according to an exemplary embodiment.

[0021] Figure 2 The figure is a schematic diagram showing the collection of target user data information according to an exemplary embodiment.

[0022] Figure 3 is a flow chart of a heart rate measurement method according to another exemplary embodiment.

[0023] Figure 4 is a flow chart of a heart rate measurement method according to another exemplary embodiment.

[0024] Figure 5 is a flow chart of a heart rate measurement method according to another exemplary embodiment.

[0025] Figure 6 The figure is a flow chart of determining a target user's heart rate according to an exemplary embodiment.

[0026] Figure 7 is a flow chart of a heart rate measurement method according to another exemplary embodiment.

[0027] Figure 8 The figure is a structural block diagram of a heart rate measurement device according to an exemplary embodiment.

[0028] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment.

[0029] Fig.10 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0030] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0032] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0033] Figure 1 is a flow chart of a heart rate measurement method according to an exemplary embodiment. Figure 1 As shown, the heart rate measurement method of the embodiment of the present application includes the following steps:

[0034] S101, controlling the terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light.

[0035] It should be noted that the execution subject of the heart rate measurement method in the embodiment of the present application is an electronic device, which can be a terminal device and other smart devices with a heart rate measurement function. Optionally, the terminal device includes but is not limited to a mobile phone, a tablet computer, an intelligent voice interaction device, etc. The embodiment of the present application does not specifically limit the terminal device.

[0036] It is understandable that the determination of the user's heart rate based on the flash and the rear light sensing component utilizes the change in the color of the blood. When the user's finger is placed on the flash of the terminal device, when the heart pumps fresh blood into the capillaries in the finger, the color of the finger will change slightly under the illumination of the flash. The flash provides a stable light source, and the rear light sensing component can detect the light reflected by the finger. When the color of the finger changes, the rear light sensing component collects data information.

[0037] In some implementations, the target user can select a mode on the terminal device to control the terminal device to enter the heart rate collection mode. The target user can also control the terminal device to enter the heart rate collection mode by opening an application software with a heart rate collection function on the terminal device.

[0038] Furthermore, when the terminal device enters the heart rate collection mode, the flashlight on the terminal device is started to emit light, and the target user is prompted to cover the flashlight and the rear light sensing component with his finger.

[0039] like Figure 2 Schematic diagram of collecting target user data information shown. Figure 2 a is the structure of the terminal device, a flash and a rear light sensing component are installed on the back of the terminal device, and the distance between the flash and the rear light sensing component is relatively close. Figure 2 b is the user's gesture when collecting data information of the target user. The target user extends a finger, such as an index finger, and covers the flash and the rear light sensing component with the index finger so that the rear light sensing component can collect data information.

[0040] S102, reading data from a rear optical sensing component of the terminal device to obtain a first photoplethysmogram (PPG) signal of a target user.

[0041] In some implementations, when the heart pumps fresh blood into the capillaries in the finger, the rear optical sensing component can detect changes in the channel values ​​of the color channels and record the channel values ​​of the color channels as sampling values ​​for calculating the heart rate.

[0042] Optionally, the rear light sensing component can use the R channel as the target channel to detect the sampled value on the R channel, and can also use the G channel as the target channel, or use the B channel as the target channel. The embodiment of the present application does not impose too many restrictions on the detected RGB channels.

[0043] In some implementations, the sampling value detected by the rear light sensing component and the timestamp of the sampling value can be read, and a first photoplethysmograph (PPG) signal can be determined based on the sampling value and the timestamp, wherein the first PPG signal is a timestamp sequence.

[0044] For example, if the rear light sensing component detects the sampling value of the R channel, the first PPG signal at 660 nm is PPG={R1, R2, R3 . . . Rn}.

[0045] S103: Determine the heart rate of the target user based on the first PPG signal.

[0046] In some implementations, the heart rate of the target user may be calculated based on the first PPG signal using a peak-frequency method. Optionally, by determining the power spectrum of the first PPG signal, the frequency corresponding to the peak of the power spectrum may be determined. The heart rate of the target user may be obtained by multiplying 60 by the frequency in units of bpm (beats per minute).

[0047] In some implementations, the heart rate of the target user may be calculated using an Inter-Beat Interval (IBI). Optionally, the peak value of the first PPG signal is determined by performing peak detection on the first PPG signal. For example, based on a curve of the first PPG signal, the maximum value in the curve is the peak value of the first PPG signal.

[0048] Further, according to the position of the detected peak value, the time interval between two peak values, that is, the heartbeat interval, is calculated. The heart rate can be obtained by dividing 60 by the heartbeat interval, and the unit is bpm (beats per minute).

[0049] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user can be determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0050] Figure 3 is a flow chart of a heart rate measurement method according to an exemplary embodiment. Figure 3 As shown, the heart rate measurement method of the embodiment of the present application includes the following steps:

[0051] S301, controlling the terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light.

[0052] In some implementations, when the terminal device enters the heart rate collection mode, a heart rate collection prompt message may be generated, and the heart rate collection prompt message is used to remind the target user to cover the rear light sensing component and the flash with his fingers. Optionally, the heart rate collection prompt message may be in the form of a pop-up window to remind the target user. It may also be in the form of voice to remind the target user. For example, when the terminal device enters the heart rate collection mode, the terminal device generates a voice prompt message of "Please cover the flash and rear light sensing component with your fingers" to remind the target user.

[0053] In the embodiment of the present application, the implementation method of step S301 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0054] S302, reading data from a rear light sensing component of the terminal device to obtain a first PPG signal of a target user.

[0055] In the embodiment of the present application, the implementation method of step S302 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0056] S303: Acquire a pulse wave signal power spectrum based on the first PPG signal.

[0057] In some implementations, the first PPG signal may be Fourier transformed to obtain a frequency domain pulse wave signal. For example, the first PPG signal is x(t), and x(t) may be Fourier transformed to convert the first PPG signal from the time domain to the frequency domain to obtain a frequency domain pulse wave signal X(jw). Then, based on the frequency domain pulse wave signal, the pulse wave signal power spectrum is obtained.

[0058] Optionally, the power spectrum of the pulse wave signal can be obtained by taking the modulus of the frequency domain pulse wave signal, squaring it, and dividing it by the sampling length T of the first PPG signal, that is, the length of the sampling value. The formula for calculating the power spectrum of the pulse wave signal is as follows:

[0059] G xx (w)=|X(jw)| 2 / T (1)

[0060] Among them, X(jw) is the frequency domain pulse signal, T is the sampling length, G xx (w) is the power spectrum of the pulse wave signal. For example, the first PPG signal at 660 nm is PPG = {R1, R2, R3 ... Rn}, then 660 nm is the sampling length T.

[0061] S304, identifying a power peak on the power spectrum of the pulse wave signal, and determining a first frequency corresponding to the power peak.

[0062] It is understandable that power spectrum is the abbreviation of power spectrum density function. It shows the change of signal power with frequency, that is, the distribution of signal power in the frequency domain. The horizontal axis of its curve is generally frequency, and the vertical axis is power.

[0063] In some implementations, the power spectrum of the pulse wave signal may be plotted as a power spectrum curve, and the power peak may be determined based on the power spectrum curve. Alternatively, a peak detection algorithm may be used to identify the power peak on the power spectrum of the pulse wave signal from the power spectrum curve.

[0064] Furthermore, after the power peak value on the power spectrum of the pulse wave signal is determined, the abscissa value corresponding to the power peak value may be searched on the power spectrum curve, and the abscissa value is the first frequency corresponding to the power peak value.

[0065] S305: Determine the heart rate of the target user based on the first frequency.

[0066] In some implementations, there is a linear relationship between the first frequency and the heart rate, and the heart rate of the target user can be obtained by multiplying the frequency by 60. The formula for calculating the heart rate of the target user is as follows:

[0067] Heart rate =f peak *60 (2)

[0068] Among them, Heart rate is the heart rate, its unit is bpm (beats / minute), f peak is the first frequency, and its unit is Hz.

[0069] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user is calculated using the power peak, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0070] Figure 4 is a flow chart of a heart rate measurement method according to an exemplary embodiment. Figure 4 As shown, the heart rate measurement method of the embodiment of the present application includes the following steps:

[0071] S401, controlling the terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light.

[0072] In the embodiment of the present application, the implementation method of step S401 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0073] S402, reading data from a rear light sensing component of the terminal device to obtain a first PPG signal of a target user.

[0074] In the embodiment of the present application, the implementation method of step S402 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0075] S403: Identify a peak position on the first PPG signal.

[0076] In some implementations, a peak detection algorithm may be used to determine the peak position on the first PPG signal. Optionally, a peak detection method such as a threshold method, a differential method, a peak-to-trough comparison method, etc. may be used to identify the peak position on the first PPG signal. These methods may locate the peak position based on the characteristics of the signal waveform.

[0077] S404: Acquire the time interval between adjacent peaks to determine the heartbeat interval IBI corresponding to the first PPG signal.

[0078] It is understandable that the inter-beat interval (IBI) refers to the time interval between two consecutive heartbeats, measured in milliseconds (ms), which indicates the length of the time interval between one heartbeat and the next heartbeat.

[0079] In some implementations, after the peak position on the first PPG signal is determined, the time interval between adjacent peaks can be determined based on the timestamp of the sampling value, and then the heart beat interval IBI corresponding to the first PPG signal can be determined.

[0080] Optionally, the heartbeat interval IBI can be calculated based on the timestamps corresponding to adjacent peaks. For example, let the peak with the earlier timestamp be the first peak and the peak with the later timestamp be the second peak. Then, the timestamp of the second peak is subtracted from the timestamp of the first peak to obtain the heartbeat interval IBI. The formula for calculating the heartbeat interval IBI is as follows:

[0081] IBI=t peak2 -t peak1 (3)

[0082] Among them, t peak2 is the timestamp of the second peak, t peak1 Refers to the timestamp of the first peak.

[0083] S405 : Determine the heart rate of the target user based on the IBI.

[0084] In some implementations, the heart rate of the target user may be obtained by dividing 60 by the heartbeat interval IBI. The formula for calculating the heart rate of the target user is as follows:

[0085] Heart rate =60 / IBI (4)

[0086] Among them, Heart rate is the heart rate, and its unit is bpm (beats per minute).

[0087] Furthermore, based on IBI, the time domain indicators of the heart rate variability (HRV) of the target user are obtained. Among them, the time domain indicators of HRV include but are not limited to: standard deviation between sinus beats (SDNN), root mean square difference between adjacent normal cardiac cycles (RMSSD), percentage of the number of adjacent NN differences > 50ms to the total number of sinus beats (PNN50), etc. By analyzing HRV, we can understand the status of heart function, the activity level of the autonomic nervous system, and the corresponding physical health status.

[0088] Optionally, the SDNN can be obtained by calculating the standard deviation of all normal sinus beat periods (RR periods). The RMSSD can be obtained by calculating the root mean square of all adjacent cardiac cycle differences. The units of SDNN and RMSSD are both milliseconds (ms).

[0089] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heartbeat interval IBI is determined, and the heart rate of the target user is further determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0090] Figure 5 is a flow chart of a heart rate measurement method according to an exemplary embodiment. Figure 5 As shown, the heart rate measurement method of the embodiment of the present application includes the following steps:

[0091] S501, controlling the terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light.

[0092] In the embodiment of the present application, the implementation method of step S501 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0093] S502, reading the sampling value on the target channel in the rear light sensing component, and obtaining the original second PPG signal based on the sampling value and the time stamp of the sampling value.

[0094] In some implementations, the original second PPG signal can be obtained by reading the sampled value detected by the rear light sensing component on the target channel and based on the sampled value and the timestamp corresponding to the sampled value. For example, if the target channel is the R channel, the original second PPG signal is PPG1 = {R1, R2, R3 ... Rn}.

[0095] S503: pre-process the second PPG signal to obtain a first PPG signal.

[0096] In some implementations, in order to obtain a PPG signal with uniform time intervals and complete waveform features, the second PPG signal may be preprocessed, including resampling the second PPG signal and filtering and denoising. Optionally, the second PPG signal may be resampled to obtain a third PPG signal, and the third PPG signal may be filtered and denoised to obtain the first PPG signal, so that the first PPG signal has uniform time intervals and complete waveform features.

[0097] Optionally, the sampling points in the second PPG signal may be interpolated based on the sampling frequency and the timestamp of the sampling point to obtain a third PPG signal. The sampling frequency of the third PPG signal is higher. The formula for interpolating the second PPG signal is as follows:

[0098] PPG_resample=resample(PPG1,timestamp,frequency)(5)

[0099] Wherein, PPG_resample is the third PPG signal, timestamp is the timestamp, and frequency is the sampling frequency.

[0100] Optionally, a deep learning filter may be used to filter and denoise the third PPG signal to obtain a first PPG signal with complete waveform characteristics.

[0101] S504: Determine the heart rate of the target user based on the first PPG signal.

[0102] In the embodiment of the present application, the implementation method of step S504 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0103] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user can be determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0104] like Figure 6 The flowchart for determining the heart rate of the target user is shown. When the terminal device enters the heart rate collection mode, the target user's finger is prompted to cover the rear light sensing component and the flash, and the flash is controlled to emit light, and the rear light sensing component records the sampling value of the R channel and the corresponding timestamp. In order to obtain a PPG signal with a uniform time interval, the third PPG signal can be obtained by resampling the second PPG signal, and then the third PPG signal is filtered using a filter to obtain the first PPG signal. Furthermore, the pulse wave signal power spectrum of the first PPG signal is calculated, and the heart rate of the target user can be calculated based on the pulse wave signal power spectrum.

[0105] Figure 7 is a flow chart of a heart rate measurement method according to an exemplary embodiment. Figure 7 As shown, the heart rate measurement method of the embodiment of the present application includes the following steps:

[0106] S701, controlling the terminal device to enter a heart rate collection mode, and starting a flashlight on the terminal device to emit light.

[0107] S702, reading data from a rear light sensing component of the terminal device to obtain a first PPG signal of the target user.

[0108] S703: Acquire a pulse wave signal power spectrum based on the first PPG signal.

[0109] S704, identifying a power peak on the power spectrum of the pulse wave signal, and determining a first frequency corresponding to the power peak.

[0110] S705: Determine a heart rate of the target user based on the first frequency.

[0111] S706: Identify a peak position on the first PPG signal.

[0112] S707, obtaining the time interval between adjacent peaks, and determining the heartbeat interval IBI corresponding to the first PPG signal.

[0113] S708 : Determine the heart rate of the target user based on the IBI.

[0114] S709: Based on the IBI, a time domain index of the heart rate variability analysis HRV of the target user is obtained.

[0115] It should be noted that steps S703-S705 and steps S707-S708 are two different implementation methods for determining the heart rate of the target user, and either method can be used to determine the heart rate of the target user.

[0116] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user can be determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0117] This application Figure 8 is a structural block diagram of a heart rate measurement device according to an exemplary embodiment. Figure 8 The heart rate measurement device 800 of the embodiment of the present application includes: a control module 801 , an acquisition module 802 and a determination module 803 .

[0118] The control module 801 is used to control the terminal device to enter the heart rate collection mode and start the flash light on the terminal device to emit light.

[0119] The acquisition module 802 is used to read data from the rear light sensing component of the terminal device to obtain a first photoelectric volume pulse wave signal (PPG) signal of the target user.

[0120] The determination module 803 is used to determine the heart rate of the target user based on the first PPG signal.

[0121] In one embodiment of the present application, the determination module 803 is further used to: obtain a pulse wave signal power spectrum based on the first PPG signal; identify a power peak on the pulse wave signal power spectrum, and determine a first frequency corresponding to the power peak; and determine the heart rate of the target user based on the first frequency.

[0122] In one embodiment of the present application, the determination module 803 is further used to: perform Fourier transform on the first PPG signal to obtain a frequency domain pulse wave signal; and obtain a power spectrum of the pulse wave signal based on the frequency domain pulse wave signal.

[0123] In one embodiment of the present application, the determination module 803 is further used to: identify the peak position on the first PPG signal; obtain the time interval between adjacent peaks, determine the heartbeat interval IBI corresponding to the first PPG signal; and determine the heart rate of the target user based on the IBI.

[0124] In one embodiment of the present application, the determination module 803 is further used to: obtain a time domain index of a heart rate variability analysis HRV of the target user based on the IBI.

[0125] In one embodiment of the present application, the acquisition module 802 is further used to: read the sampling value on the target channel in the rear light sensing component, and obtain the original second PPG signal based on the sampling value and the timestamp of the sampling value; pre-process the second PPG signal to obtain the first PPG signal.

[0126] In one embodiment of the present application, the acquisition module 802 is further used to: resample the second PPG signal to obtain a third PPG signal, and filter and de-noise the third PPG signal to obtain the first PPG signal.

[0127] In one embodiment of the present application, the acquisition module 802 is further used to: perform interpolation calculation on the sampling points in the second PPG signal based on the sampling frequency and the timestamps of the sampling points to obtain the third PPG signal.

[0128] In one embodiment of the present application, the control module 801 is further used to: generate heart rate collection prompt information, and the heart rate collection prompt information is used to remind the target user to cover the rear light sensing component and the flash with his fingers.

[0129] In the heart rate measurement method provided in the embodiment of the present application, by controlling the terminal device to enter the heart rate collection mode, the target user places a finger on the flash and the rear light sensing component, which can easily block the flash and the rear light sensing component at the same time. When the flash is lit, the rear light sensing component can detect the data information of the target user and obtain the first PPG signal, and the power consumption of the rear light sensing component is relatively small, which can save the power consumption of the terminal device. Based on the first PPG signal, the heart rate of the target user can be determined, making it more convenient and quick to measure the user's heart rate, and it can realize real-time monitoring of heart rate changes, so as to detect abnormalities and take corresponding measures in time.

[0130] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0131] like Fig. 9 As shown, the electronic device 900 includes a processor 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the memory 906 to the random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processor 901, the ROM 902 and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0132] The following components are connected to the I / O interface 905: a memory 906 including a hard disk, etc.; and a communication part 907 including a network interface card such as a local area network (LAN) card, a modem, etc., and the communication part 907 performs communication processing via a network such as the Internet; a drive 909 is also connected to the I / O interface 905 as needed.

[0133] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 907. When the computer program is executed by the processor 901, the above-mentioned functions defined in the method of the present application are executed.

[0134] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 901 of the electronic device 900 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0135] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0136] Fig.10 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. Fig.10 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Fig.10 As shown, the electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 is used to store program codes, and the processor 1001 is connected to the memory 1002 and is used to read the program codes from the memory 1002 to implement the heart rate measurement method in the above embodiment.

[0137] Optionally, the number of processors 1001 may be one or more.

[0138] Optionally, the electronic device may further include an interface 1003, and the number of the interface 1003 may be multiple. The interface 1003 may be connected to an application program and may receive data from an external device such as a sensor.

[0139] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0140] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A heart rate measurement method, characterized in that: The method comprises: Controlling the terminal device to enter a heart rate collection mode and starting a flashlight on the terminal device to emit light; Reading data from a rear optical sensing component of the terminal device to obtain a first photoplethysmogram (PPG) signal of a target user; Based on the first PPG signal, a heart rate of the target user is determined.

2. The method according to claim 1, characterized in that The determining the heart rate of the target user based on the first PPG signal includes: Based on the first PPG signal, obtaining a pulse wave signal power spectrum; Identifying a power peak on the power spectrum of the pulse wave signal, and determining a first frequency corresponding to the power peak; Based on the first frequency, a heart rate of the target user is determined.

3. The method according to claim 2, characterized in that The step of acquiring a pulse wave signal power spectrum based on the first PPG signal includes: Performing Fourier transform on the first PPG signal to obtain a frequency domain pulse wave signal; According to the frequency domain pulse wave signal, a power spectrum of the pulse wave signal is acquired.

4. The method according to claim 1, characterized in that: The determining the heart rate of the target user based on the first PPG signal includes: identifying a peak position on the first PPG signal; Obtaining the time interval between adjacent peaks, and determining the heartbeat interval IBI corresponding to the first PPG signal; Based on the IBI, a heart rate of the target user is determined.

5. The method according to claim 4, characterized in that After obtaining the IBI, the method further includes: Based on the IBI, a time domain index of the heart rate variability analysis HRV of the target user is obtained.

6. The method according to any one of claims 1 to 5, characterized in that The step of reading data from the rear optical sensing component of the terminal device to obtain a first PPG signal of a target user includes: Reading a sampled value on a target channel in the rear light sensing component, and obtaining an original second PPG signal based on the sampled value and a timestamp of the sampled value; The second PPG signal is preprocessed to obtain the first PPG signal.

7. The method according to claim 6, characterized in that The preprocessing the second PPG signal to obtain the first PPG signal includes: The second PPG signal is resampled to obtain a third PPG signal, and the third PPG signal is filtered and denoised to obtain the first PPG signal.

8. The method according to claim 7, characterized in that The resampling the second PPG signal to obtain a third PPG signal includes: Based on the sampling frequency and the timestamps of the sampling points, interpolation calculation is performed on the sampling points in the second PPG signal to obtain the third PPG signal.

9. The method according to any one of claims 1 to 5, characterized in that After the controlling terminal device enters the heart rate collection mode, the method further includes: Generate heart rate collection prompt information, where the heart rate collection prompt information is used to remind the target user to cover the rear light sensing component and the flash with his fingers.

10. A heart rate measurement device, characterized in that: The device comprises: A control module, used to control the terminal device to enter a heart rate collection mode and start a flashlight on the terminal device to emit light; An acquisition module, used to read data from a rear light sensing component of the terminal device to obtain a first photoplethysmogram signal (PPG) of a target user; A determination module is used to determine the heart rate of the target user based on the first PPG signal.

11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Pulse measuring method and system based on mobile terminal

    CN104202475A

  • Heart rate detection method and system

    CN105286841A

  • Terminal and blood pressure measuring method

    CN105748053A

  • Heart rate measuring method based on mobile phone and system, electronic equipment and storage medium

    CN107595271A

  • Wearable heart monitoring device, heart monitoring system and method

    CN109475315A