Heart rate monitoring method, device, equipment and storage medium based on wearable device

By filtering and peak point correction of the heart rate waveform signal in the wearable device, the problem of signal distortion caused by low sampling frequency is solved, the accuracy of the heart rate variability value is improved, and more accurate heart rate monitoring is achieved.

CN118356174BActive Publication Date: 2024-08-23SHENZHEN YUCHENG INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410783058.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-23
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The lower sampling frequency in existing wearable devices causes heart rate signal distortion, causing errors, affecting the accuracy of heart rate variability indicators, and thus affecting the prevention and treatment of cardiovascular diseases.

Method used

By filtering the target heart rate waveform sampling signal, the optimized signal is obtained, and based on the data change trend in the neighborhood of each peak point and the difference between adjacent sampling points, the peak point is corrected to obtain the corrected signal, and then the heart rate variability is calculated value to eliminate the distortion effect caused by low-frequency sampling.

Benefits of technology

Improves the accuracy of heart rate variability values, reduces errors caused by low-frequency sampling, and provides more accurate heart rate monitoring results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118356174B
    Figure CN118356174B
Patent Text Reader

Abstract

The present invention relates to the field of heart rate monitoring technology, and in particular to a heart rate monitoring method, device, equipment and storage medium based on a wearable device, which first performs filtering processing on a sampled target heart rate waveform sampling signal to obtain an optimized signal, and then corrects the peak point according to the data change trend in the neighborhood of each peak point in the optimized signal, and the difference between each peak point and its adjacent sampling point, to obtain a corrected signal, and finally obtains a target heart rate variability value. Compared with the prior art, the present invention analyzes the degree of sampling deviation generated by the current sampling frequency from two aspects: the data change trend in the neighborhood of the peak point, and the difference between the peak point and its adjacent sampling point, through the difference between the first eigenvalue and the first preset threshold value and the difference between the second eigenvalue and the second preset threshold value, and then corrects the peak point according to the sampling deviation degree, so as to obtain a more accurate target heart rate variability value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of heart rate monitoring technology, and in particular to a heart rate monitoring method, device, equipment and storage medium based on a wearable device. Background Art

[0002] With the continuous development of electronic technology, heart rate measurement is widely used in many wearable devices; under normal circumstances, the heart rate is regular, but the interval between each heartbeat is not exactly the same. Heart rate variability (HRV) in heart rate measurement represents the volatility and degree of change of the heartbeat interval at different times. It can reflect the activity of the autonomic nervous system and quantitatively evaluate the tension and balance of the cardiac sympathetic nerves and vagus nerves, thereby judging the condition and prevention of related cardiovascular diseases. It is a valuable indicator for predicting sudden cardiac death and arrhythmia events.

[0003] Moreover, in today's wearable devices, in order to maintain low power consumption, the sampling frequency used when collecting signals is often relatively low; and a lower sampling frequency will cause signal distortion, and using distorted signals for amplitude calculation is prone to errors; in the heart rate variability index, the error will amplify the variability. For example, in practice, 20Hz is used as the sampling rate, which means a minimum sampling interval of 50ms, and there is a fixed sampling deviation of 50ms, which will lead to inaccurate judgment of the condition of the person being measured, thereby affecting the prevention and treatment of related diseases, which is unacceptable.

[0004] Therefore, people are in urgent need of a heart rate monitoring method based on wearable devices that can remove the above errors. Summary of the invention

[0005] Therefore, the present invention provides a heart rate monitoring method, device, equipment and medium based on a wearable device, so as to solve the problem of errors caused by a low sampling frequency when sampling a heart rate signal in the prior art.

[0006] The present invention provides a heart rate monitoring method based on a wearable device, comprising:

[0007] Obtaining a target heart rate waveform sampling signal;

[0008] Filtering the target heart rate waveform sampling signal to obtain an optimized signal;

[0009] According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal;

[0010] According to the RR interval time of the corrected signal, the target heart rate variability value is obtained;

[0011] According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal, including:

[0012] Obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed;

[0013] According to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and the target peak point is corrected according to the magnitude relationship between the first eigenvalue and a first preset threshold value;

[0014] According to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and the target peak point is corrected according to the magnitude relationship between the second eigenvalue and a second preset threshold value;

[0015] A corrected signal is obtained according to the optimized signal after correcting the peak point.

[0016] The present invention also provides a preferred solution: the filtering process of the target heart rate waveform sampling signal to obtain an optimized signal comprises:

[0017] Performing wavelet transform on the target heart rate waveform sampling signal to remove the baseline drift error;

[0018] Perform low-pass filtering on the target heart rate waveform sampling signal to remove myoelectric interference errors;

[0019] Perform 50-60Hz filtering on the target heart rate waveform sampling signal to remove the power frequency noise error;

[0020] An optimized signal is obtained by removing the target heart rate waveform sampling signal from the baseline drift error, the myoelectric interference error and the power frequency noise error.

[0021] The present invention also provides a preferred solution: the method of obtaining a first eigenvalue characterizing a data change trend in the target peak point area based on the data in the neighborhood of the target peak point in the optimization signal, and correcting the target peak point based on a magnitude relationship between the first eigenvalue and a first preset threshold, including:

[0022] Obtain two sampling points adjacent to the target peak point in the optimized signal to obtain two first sampling points;

[0023] Calculate the absolute value of the slope of the straight line formed by the two first sampling points to obtain a first eigenvalue;

[0024] If the first eigenvalue exceeds the first preset threshold, sampling points of non-target peak points adjacent to the two first sampling points are respectively acquired to obtain two second sampling points;

[0025] Connect the first sampling point and the second sampling point located on the same side of the target peak point respectively to obtain two correction reference lines;

[0026] The intersection point of the two corrected reference lines is taken as the corrected target peak point.

[0027] The present invention also provides a preferred solution: the method of obtaining a second eigenvalue characterizing the difference between the target peak point and the adjacent sampling points of the target peak point according to the adjacent sampling points of the target peak point in the optimization signal, and correcting the target peak point according to the magnitude relationship between the second eigenvalue and the second preset threshold, comprising:

[0028] Acquire a sampling point adjacent to the target peak point in the optimized signal to obtain a second sampling point;

[0029] Calculate the difference between the target peak point and the second sampling point to obtain the second eigenvalue;

[0030] If the second eigenvalue does not exceed the second preset threshold, the midpoint of the line connecting the target peak point and the second sampling point is obtained as the corrected target peak point.

[0031] The present invention also provides a preferred solution: the peak point is corrected according to the data change trend in the neighborhood of each peak point in the optimization signal, and the difference between each peak point and its adjacent sampling points to obtain a corrected signal, and further includes:

[0032] A sliding monitoring window is set in the optimized signal, wherein the last peak point covered by the sliding monitoring window is the target peak point;

[0033] Determine whether the previous peak point of the target peak point has been corrected;

[0034] If yes, then increase the length of the sliding monitoring window at the head of the sliding monitoring window;

[0035] If not, the length of the sliding monitoring window is reduced at the head of the sliding monitoring window;

[0036] According to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, the first preset threshold and the second preset threshold are obtained.

[0037] The present invention also provides a preferred solution: the first preset threshold and the second preset threshold are obtained according to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, including:

[0038] The peaks, valleys and RR intervals in the optimized signal covered by the sliding monitoring window are identified in sequence to obtain a peak sequence, a valley sequence and a RR interval sequence;

[0039] According to the peak sequence, valley sequence and RR interval sequence, the first preset threshold is obtained by the following formula:

[0040] ;

[0041] in, is the first preset threshold, is the rate of change of the peak sequence, is the rate of change of the valley sequence, is the rate of change of the RR interval series, , and They are respectively different first preset weights.

[0042] The present invention also provides a preferred solution: the first preset threshold and the second preset threshold are obtained according to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, and further includes:

[0043] The second preset threshold is obtained by the following formula:

[0044] ;

[0045] in, is the second preset threshold, is the variance of the RR interval, , , and They are different second preset weights respectively.

[0046] The present invention also provides a heart rate monitoring device based on a wearable device, comprising:

[0047] A sampling unit, used for obtaining a target heart rate waveform sampling signal;

[0048] A filtering unit, used for filtering the target heart rate waveform sampling signal to obtain an optimized signal;

[0049] A correction unit, used to correct the peak point according to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points to obtain a corrected signal;

[0050] An analysis unit, used for obtaining a target heart rate variability value according to the RR interval time of the correction signal;

[0051] According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal, including:

[0052] Obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed;

[0053] According to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and the target peak point is corrected according to the magnitude relationship between the first eigenvalue and a first preset threshold value;

[0054] According to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and the target peak point is corrected according to the magnitude relationship between the second eigenvalue and a second preset threshold value;

[0055] A corrected signal is obtained according to the optimized signal after correcting the peak point.

[0056] The present invention also provides an electronic device, comprising:

[0057] Memory and processor;

[0058] The memory is used to store a program, and the processor is used to perform the steps in any one of the above-mentioned heart rate monitoring methods based on a wearable device when executing the program.

[0059] The present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction. When the program or instruction is executed by a processor, the steps in any of the above-mentioned heart rate monitoring methods based on a wearable device can be implemented.

[0060] The beneficial effects of adopting the above embodiment are:

[0061] The present invention provides a heart rate monitoring method, device, equipment and storage medium based on a wearable device, which first performs filtering processing on the sampled target heart rate waveform sampling signal to obtain an optimized signal, then corrects the peak point according to the data change trend in the neighborhood of each peak point in the optimized signal and the difference between each peak point and its adjacent sampling point to obtain a corrected signal, and finally obtains the target heart rate variability value according to the RR interval time of the corrected signal. Compared with the prior art, the present invention analyzes the sampling deviation degree generated by the current sampling frequency from the data change trend in the neighborhood of the peak point and the difference between the peak point and its adjacent sampling point through the difference between the first eigenvalue and the first preset threshold value and the difference between the second eigenvalue and the second preset threshold value, and then corrects the peak point according to the sampling deviation degree to eliminate the distortion effect caused by low-frequency sampling, restore the real signal as much as possible, and obtain a more accurate target heart rate variability value, solving the problem of error caused by lower sampling frequency when sampling heart rate signals in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A method flow chart of an embodiment of a heart rate monitoring method based on a wearable device provided by the present invention;

[0063] Figure 2 for Figure 1 The method flow chart of step S103 in FIG.

[0064] Figure 3 A schematic diagram of a situation in which the target peak point is corrected according to the present invention;

[0065] Figure 4 A schematic diagram of another situation of correcting the target peak point according to the present invention;

[0066] Figure 5 A schematic diagram of another situation of correcting the target peak point of the present invention;

[0067] Figure 6 A structural schematic diagram of an embodiment of a heart rate monitoring device based on a wearable device provided by the present invention;

[0068] Figure 7 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a heart rate monitoring method based on a wearable device, comprising:

[0071] S101, obtaining a target heart rate waveform sampling signal;

[0072] S102, filtering the target heart rate waveform sampling signal to obtain an optimized signal;

[0073] S103, correcting the peak point according to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points to obtain a corrected signal;

[0074] S104: Obtain a target heart rate variability value according to the RR interval time of the correction signal.

[0075] The present invention provides a heart rate monitoring method based on a wearable device, which first performs filtering processing on a sampled target heart rate waveform sampling signal to obtain an optimized signal, then corrects the peak point according to the data change trend in the neighborhood of each peak point in the optimized signal, and the difference between each peak point and its adjacent sampling point, to obtain a corrected signal, and finally obtains a target heart rate variability value according to the RR interval time of the corrected signal. Compared with the prior art, the present invention analyzes the sampling deviation degree generated by the current sampling frequency from two aspects: the data change trend in the neighborhood of the peak point, and the difference between the peak point and its adjacent sampling point, and then corrects the peak point according to the sampling deviation degree to eliminate the distortion effect caused by low-frequency sampling, restore the real signal as much as possible, and obtain a more accurate target heart rate variability value.

[0076] Furthermore, in a preferred embodiment, in view of the use scenarios and measurement technology requirements of ECG signals, a more excellent PPG signal (photoplethysmography signal) is selected as a form of the target heart rate waveform sampling signal. The main noise of the PPG signal includes: baseline drift, electromyographic interference, power frequency noise, other noise interference, etc. If only one filtering process is considered, other interferences will cause errors. Therefore, the above step S102, filtering the target heart rate waveform sampling signal to obtain an optimized signal, may include:

[0077] Performing wavelet transform on the target heart rate waveform sampling signal to remove the baseline drift error;

[0078] Perform low-pass filtering on the target heart rate waveform sampling signal to remove myoelectric interference errors;

[0079] Perform 50-60Hz filtering on the target heart rate waveform sampling signal to remove the power frequency noise error;

[0080] An optimized signal is obtained by removing the target heart rate waveform sampling signal from the baseline drift error, the myoelectric interference error and the power frequency noise error.

[0081] Further, combined with Figure 2 As shown, in a preferred embodiment, the above step S103, according to the data change trend in the neighborhood of each peak point in the optimization signal, and the difference between each peak point and its adjacent sampling points, corrects the peak point to obtain the corrected signal, specifically includes:

[0082] S201, obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed;

[0083] S202, obtaining a first eigenvalue representing a data change trend in the target peak point area according to the data in the neighborhood of the target peak point in the optimization signal, and correcting the target peak point according to a magnitude relationship between the first eigenvalue and a first preset threshold;

[0084] S203, obtaining a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point according to the adjacent sampling points of the target peak point in the optimization signal, and correcting the target peak point according to the magnitude relationship between the second eigenvalue and a second preset threshold;

[0085] S204: Obtain a corrected signal according to the optimized signal after correcting the peak point.

[0086] The above process mainly uses the first eigenvalue and the second eigenvalue to represent the distortion caused by low-frequency sampling, wherein the first eigenvalue characterizes the data change trend in the target peak point area. By using the size relationship between the first eigenvalue and the first preset threshold, the overall change trend of the data can be observed, thereby analyzing the cumulative trend of the error, and then judging whether the target peak point needs to be corrected based on the overall trend, so as to more accurately restore the peak characteristics of the signal. By using the trend information reflected by the first eigenvalue, the peak correction of the signal can be handled more flexibly, which is suitable for situations where the signal changes are complex. By analyzing the data in the target peak point area, more overall information can be comprehensively considered to improve the accuracy and robustness of the correction. The first eigenvalue has more obvious advantages when the peak point of the signal is greatly affected by the overall data trend, or when the overall change trend needs to be considered more comprehensively.

[0087] The second eigenvalue characterizes the difference between the target peak point and the adjacent sampling points of the target peak point. It focuses more on analyzing the local changes of the peak point and the sampling points around it to determine whether the peak point needs to be corrected. By focusing on the local data differences around the target peak point, a better response capability is achieved for situations where the data changes drastically near the peak point. And by comparing the differences between adjacent sampling points for correction, the operation is simple, the calculation cost is low, and it is more suitable for low-power operation scenarios of wearable devices. The second eigenvalue ensures that the correction process takes local changes into consideration, and makes the results more accurate through simple and fast corrections.

[0088] Specifically, in a preferred embodiment, the above step S202, based on the data in the neighborhood of the target peak point in the optimization signal, obtains a first eigenvalue representing the data change trend in the target peak point area, and corrects the target peak point based on the magnitude relationship between the first eigenvalue and the first preset threshold, specifically including:

[0089] Obtain two sampling points adjacent to the target peak point in the optimized signal to obtain two first sampling points;

[0090] Calculate the absolute value of the slope of the straight line formed by the two first sampling points to obtain a first eigenvalue;

[0091] If the first eigenvalue exceeds the first preset threshold, sampling points of non-target peak points adjacent to the two first sampling points are respectively acquired to obtain two second sampling points;

[0092] Connect the first sampling point and the second sampling point located on the same side of the target peak point respectively to obtain two correction reference lines;

[0093] The intersection point of the two corrected reference lines is taken as the corrected target peak point.

[0094] Specifically, in a preferred embodiment, the above step S203, based on the adjacent sampling points of the target peak point in the optimization signal, obtains a second eigenvalue characterizing the difference between the target peak point and the adjacent sampling points of the target peak point, and corrects the target peak point based on the magnitude relationship between the second eigenvalue and the second preset threshold, specifically including:

[0095] Acquire a sampling point adjacent to the target peak point in the optimized signal to obtain a second sampling point;

[0096] Calculate the difference between the target peak point and the second sampling point to obtain the second eigenvalue;

[0097] If the second eigenvalue does not exceed the second preset threshold, the middle of the line between the target peak point and the second sampling point is obtained as the corrected target peak point.

[0098] It should be noted that the above process is a preferred way to implement steps S202 and S203. The method described in the above text can run quickly with low power consumption, and can ensure real-time and accuracy while occupying less hardware resources, which is particularly suitable for the application scenario of wearable devices. It can be understood that in practice, other methods can also be used to obtain the first eigenvalue or the second eigenvalue, such as fitting multiple sampling points in the neighborhood of the target peak point, and taking the slope of the fitting straight line of these multiple sampling points as the first eigenvalue; taking the average value of the difference between the adjacent sampling points on the left and right sides of the target peak point and the target peak point as the second eigenvalue. These methods obviously increase the complexity of the operation and the power consumption of the operation, and may not be as suitable for the wearable device scenario as this embodiment.

[0099] The present invention also provides a more detailed embodiment for more clearly illustrating the above steps S101 to S104. The steps of this embodiment are as follows:

[0100] Step 1: Collect the human body's PPG signal (i.e., target heart rate waveform sampling signal) through the sensor;

[0101] Step 2: Filter the human PPG signal collected in step 1:

[0102] Baseline drift is one of the main noises of PPG signals, which is mainly caused by the patient's breathing. The frequency is generally lower than 1Hz, and it appears as a slowly changing sine-like curve. Myoelectric interference is caused by irregular high-frequency electrical interference generated by human muscle trembling. Its frequency range is very wide, generally between 10~1000Hz, and it appears as an irregular and rapidly changing waveform. Power frequency noise is another type of noise in PPG signals, which mainly comes from the power frequency power supply and the electromagnetic field radiated in the environment around the device. The frequency is 50Hz or 60Hz, and it appears as periodic small ripples.

[0103] Therefore, in this step, wavelet transform is used to remove the influence of baseline drift, low-pass filtering is used to remove electromyographic interference, and 50Hz (it can also be adjusted to any frequency between 50-60Hz according to the specific situation) filtering is used to remove power frequency noise, so as to obtain data closer to the original signal;

[0104] Step 3: Perform time domain analysis on the PPG signal filtered in step 2;

[0105] The peak point (i.e., the target peak point, the R point mentioned later) and the two data before and after are read and saved through a first-in-first-out traversal method, and the two data adjacent to the peak are used to determine whether the R point needs to be corrected:

[0106] 3.1: When the slope k (first eigenvalue) of the straight line formed by two adjacent data points of point R is close to 0 or near (i.e., not exceeding the first preset threshold), it is considered that point R does not need to be corrected, such as Figure 3 R 1 , A 1 , B 1 As shown (it can be understood that, for the sake of ease of understanding, the distribution shape and interval of the sampling points in the figure are simplified and exaggerated, and the figure does not represent the actual signal shape);

[0107] 3.2: When |k| exceeds a certain range (that is, the first eigenvalue exceeds the first preset threshold), point R needs to be corrected, such as Figure 4 R 2 , A 2 , B 2 As shown;

[0108] 3.3: When the difference between the peak point and an adjacent point is within a small range (that is, the second eigenvalue does not exceed the second preset threshold), point R also needs to be corrected, such as Figure 5 R 3 , A 3 As shown;

[0109] Step 4: Correct point R;

[0110] 4.1: When the judgment situation in step 3.2 occurs, save the first two data points of the peak point A 2 With C 2 Connect and extend until it meets B 2 With D 2 The extension lines of the connecting lines intersect, and the intersection point R 2 'As the new peak point, such as Figure 4 As shown;

[0111] 4.2: When the judgment situation in step 3.3 occurs, take the peak point R 3 With point A 3 The midpoint R 3 ' is the new peak point, such as Figure 5 shown.

[0112] Step 5: Obtain the peak R point that does not need to be corrected or has been corrected;

[0113] Step 6: Calculate the RR interval time and obtain the heart rate variability value (HRV);

[0114] This embodiment performs a series of targeted filtering processes on the collected human PPG signals, which can better remove the interference of other unnecessary factors on signal collection than a single filtering process, thereby obtaining data closer to the original signal; at the same time, this embodiment can maintain the low power consumption characteristics of the wearable device while obtaining a more accurate heart rate variability value at a low sampling rate.

[0115] In practice, because the human body is in a state of constant activity, the RR interval (i.e., RR interval time) of the heart rate signal may change due to some normal physiological reactions. For example, during exercise, the regulation of the autonomic nervous system may cause the RR interval to shorten; drug effects, such as cardiac inhibitors, may cause the RR interval to lengthen; emotional effects, such as anxiety or excitement, may cause the RR interval to shorten. Obviously, in these cases, the fixed first preset threshold and the second preset threshold may lead to misjudgment. Therefore, the present invention further provides an embodiment to obtain a more accurate second preset threshold:

[0116] Specifically, please combine Figure 2 As shown, in a preferred embodiment, the above step S103, according to the data change trend in the neighborhood of each peak point in the optimization signal, and the difference between each peak point and its adjacent sampling points, correcting the peak point to obtain the corrected signal, may also include:

[0117] S205, setting a sliding monitoring window in the optimized signal, wherein the last peak point covered by the sliding monitoring window is the target peak point;

[0118] S206, determining whether the peak point before the target peak point has been corrected;

[0119] S207: If yes, increase the length of the sliding monitoring window at the head of the sliding monitoring window;

[0120] S208, if not, reducing the length of the sliding monitoring window at the head of the sliding monitoring window;

[0121] S209: Obtain a first preset threshold and a second preset threshold according to a rule of the optimization signal covered by the sliding monitoring window after the length is adjusted.

[0122] The sliding monitoring window is set in the optimization signal. Every time a new part of the optimization signal (such as a cycle) is obtained, the sliding monitoring window automatically slides backward to analyze the accuracy of the latest data. The sliding monitoring window in this embodiment divides a certain data range, and the data within the range is used as a reference to evaluate the current state of the human body, so as to obtain a more accurate first preset threshold and second preset threshold. Most importantly, the length of the sliding monitoring window in this embodiment will be dynamically adjusted as the correction occurs, so as to take into account the reference degree of the data and ensure the accuracy of the analysis. At the same time, the amount of data to be analyzed in the window is controlled to ensure the operation speed and reduce the operation pressure of the portable wearable monitoring device.

[0123] If the previous peak point has been corrected, it can be considered that the signal is distorted. In this case, the length of the sliding monitoring window can be increased to obtain a good analysis field of view, and more data can be analyzed to obtain a more accurate first preset threshold or second preset threshold. On the contrary, if the previous peak point has not been corrected, it can be considered that the signal accuracy is higher. In this case, the length of the sliding monitoring window can be reduced to reduce the analysis and calculation pressure of the hardware.

[0124] Furthermore, the above step S209 may be performed at intervals, for example, when the length of the sliding monitoring window increases or decreases several times continuously, the first preset threshold and the second preset threshold are recalculated to balance data accuracy and reduce device operation power consumption.

[0125] Specifically, in a preferred embodiment, the adjustment formula for the length of the sliding monitoring window is:

[0126] ;

[0127] in, is the adjusted length of the sliding monitoring window, is the length of the sliding monitoring window before adjustment, A signal quantity that indicates whether the previous peak point of the target peak point has been corrected. When the previous peak point of the target peak point has been corrected, The value is 0, when the previous peak point of the target peak point has not been corrected. The value is 1. is the sliding step size of the sliding monitoring window, is the sampling frequency, Adjust weights for preset lengths.

[0128] The significance of the above formula is that the amplitude of each change of the sliding monitoring window is controlled by the sliding step length of the sliding monitoring window and the sampling frequency. The sliding step length of the sliding monitoring window can adopt a preset value, such as the average value of the RR interval obtained through big data. In order to ensure that each adjustment of the length of the sliding monitoring window is meaningful (for example, each increase in length will ensure that the sliding monitoring window can include a new peak point), the above formula makes the adjustment amplitude of the sliding monitoring window positively correlated with the step length to achieve the above effect. At the same time, the above formula also ensures that the growth amplitude is related to the frequency. If the sampling frequency is high, then each adjustment of the sliding monitoring window will cause more data to be referenced or abandoned. At this time, the change length of the sliding monitoring window can be appropriately reduced to reduce the computing pressure of the equipment without affecting the accuracy of the analysis.

[0129] Further, in a preferred embodiment, the above step S209, obtaining the first preset threshold and the second preset threshold according to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, includes:

[0130] The peaks, valleys and RR intervals in the optimized signal covered by the sliding monitoring window are identified in sequence to obtain a peak sequence, a valley sequence and a RR interval sequence;

[0131] According to the peak sequence, valley sequence and RR interval sequence, the first preset threshold is obtained by the following formula:

[0132] ;

[0133] in, is the first preset threshold, is the rate of change of the peak sequence, is the rate of change of the valley sequence, is the rate of change of the RR interval series, , and They are respectively different first preset weights.

[0134] The above process is a method for determining the first preset threshold. The above formula mainly considers the change rate of the peak sequence, the change rate of the valley sequence, and the change rate of the RR interval to determine a more accurate first preset threshold. In the above formula, the first term considers the change rate of the peak sequence to obtain the overall change trend of the peak in the optimized signal. The second term further combines the valley value to analyze the change trend from the perspective of the entire signal to ensure that the first preset threshold is consistent with the overall change of the signal. For example, when the contact between the wearable device and the human body changes, the amplitude of the signal may change. At this time, the error of this situation can be offset by the first and second terms of the above formula. The third term in the above formula considers the overall change of the RR interval. For example, when a person goes from walking to running, the RR interval may gradually decrease. At this time, the first preset threshold should be increased appropriately to include this change.

[0135] It can be understood that, according to actual conditions, the rate of change in this article can be obtained by any existing method. For example, for the rate of change of the peak sequence, the difference between every two adjacent peak points can be directly counted, and then the average value can be calculated as the rate of change. This method can have a higher computing speed; or these peak points can be fitted as a straight line, and the slope of the straight line can be calculated as the rate of change. This method has higher accuracy.

[0136] Further, in a preferred embodiment, the above step S209, obtaining the first preset threshold and the second preset threshold according to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, also includes:

[0137] The second preset threshold is obtained by the following formula:

[0138] ;

[0139] in, is the second preset threshold, is the variance of the RR interval, , , and They are different second preset weights respectively.

[0140] The above formula analyzes the local characteristics of the optimized signal from the sampling frequency, the rate of change of the RR interval sequence and the variance of the RR interval. That is, the higher the sampling frequency, the smaller the difference between the two sampling points. At this time, the second preset threshold should be lowered to ensure sensitivity. The rate of change of the RR interval sequence indicates that the stability of the data is low. At this time, the second preset threshold should be lowered to increase the local correction strength of the peak point. The variance of the RR interval indicates the stability between the peak points. The higher the variance of the RR interval, the more information may be contained in the optimized signal. At this time, the second preset threshold should be appropriately increased to prevent over-correction and avoid losing data details.

[0141] Combination Figure 6 As shown, the present invention also provides a heart rate monitoring device based on a wearable device, comprising:

[0142] The sampling unit 610 is used to obtain a target heart rate waveform sampling signal;

[0143] The filtering unit 620 is used to filter the target heart rate waveform sampling signal to obtain an optimized signal;

[0144] The correction unit 630 is used to correct the peak point according to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points to obtain a corrected signal;

[0145] An analyzing unit 640 is used to obtain a target heart rate variability value according to the RR interval time of the correction signal;

[0146] According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal, including:

[0147] Obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed;

[0148] According to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and the target peak point is corrected according to the magnitude relationship between the first eigenvalue and a first preset threshold value;

[0149] According to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and the target peak point is corrected according to the magnitude relationship between the second eigenvalue and a second preset threshold value;

[0150] A corrected signal is obtained according to the optimized signal after correcting the peak point.

[0151] It should be noted here that the corresponding devices provided in the above embodiments can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above method embodiments, which will not be repeated here.

[0152] refer to Figure 7 , shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. In this embodiment, the electronic device includes:

[0153] Memory 710 and processor 720;

[0154] The memory 710 is used to store programs, and the processor 720 is used to execute the heart rate monitoring method based on a wearable device in the above embodiment when executing the program.

[0155] This embodiment also provides a computer-readable storage medium, on which a heart rate monitoring program based on a wearable device is stored. When the heart rate monitoring program based on the wearable device is executed by a processor, the steps in the above embodiment can be implemented.

[0156] The present invention provides a heart rate monitoring method, device, equipment and storage medium based on a wearable device, which first performs filtering processing on the sampled target heart rate waveform sampling signal to obtain an optimized signal, and then corrects the peak point according to the data change trend in the neighborhood of each peak point in the optimized signal, and the difference between each peak point and its adjacent sampling point, to obtain a corrected signal, and finally obtains the target heart rate variability value according to the RR interval time of the corrected signal. Compared with the prior art, the present invention analyzes the sampling deviation degree caused by the current sampling frequency from two aspects: the data change trend in the neighborhood of the peak point, and the difference between the peak point and its adjacent sampling point, and then corrects the peak point according to the sampling deviation degree to eliminate the distortion effect caused by low-frequency sampling, restore the real signal as much as possible, and obtain a more accurate target heart rate variability value.

[0157] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0158] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A heart rate monitoring method based on wearable devices, It is characterized in that include: Obtaining a target heart rate waveform sampling signal; Filtering the target heart rate waveform sampling signal to obtain an optimized signal; According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal; According to the RR interval time of the corrected signal, the target heart rate variability value is obtained; According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal, including: Obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed; According to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and the target peak point is corrected according to the magnitude relationship between the first eigenvalue and a first preset threshold value; According to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and the target peak point is corrected according to the magnitude relationship between the second eigenvalue and a second preset threshold value; A corrected signal is obtained according to the optimized signal after correcting the peak point; Among them, according to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and according to the magnitude relationship between the first eigenvalue and the first preset threshold, the target peak point is corrected, including: Obtain two sampling points adjacent to the target peak point in the optimized signal to obtain two first sampling points; Calculate the absolute value of the slope of the straight line formed by the two first sampling points to obtain a first eigenvalue; If the first eigenvalue exceeds the first preset threshold, sampling points of non-target peak points adjacent to the two first sampling points are respectively acquired to obtain two second sampling points; Connect the first sampling point and the second sampling point located on the same side of the target peak point respectively to obtain two correction reference lines; The intersection of the two corrected reference lines is taken as the corrected target peak point; Among them, according to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue characterizing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and according to the magnitude relationship between the second eigenvalue and a second preset threshold, the target peak point is corrected, including: Acquire a sampling point adjacent to the target peak point in the optimized signal to obtain a second sampling point; Calculate the difference between the target peak point and the second sampling point to obtain the second eigenvalue; If the second eigenvalue does not exceed the second preset threshold, the midpoint of the line connecting the target peak point and the second sampling point is obtained as the corrected target peak point.

2. The heart rate monitoring method based on a wearable device according to claim 1, It is characterized in that The filtering process of the target heart rate waveform sampling signal to obtain an optimized signal includes: Performing wavelet transform on the target heart rate waveform sampling signal to remove the baseline drift error; Perform low-pass filtering on the target heart rate waveform sampling signal to remove myoelectric interference errors; Perform 50-60Hz filtering on the target heart rate waveform sampling signal to remove the power frequency noise error; An optimized signal is obtained by removing the target heart rate waveform sampling signal from the baseline drift error, the myoelectric interference error and the power frequency noise error.

3. The heart rate monitoring method based on a wearable device according to claim 1, It is characterized in that The method further comprises: correcting the peak point according to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points to obtain a corrected signal, and further comprising: A sliding monitoring window is set in the optimized signal, wherein the last peak point covered by the sliding monitoring window is the target peak point; Determine whether the previous peak point of the target peak point has been corrected; If yes, then increase the length of the sliding monitoring window at the head of the sliding monitoring window; If not, the length of the sliding monitoring window is reduced at the head of the sliding monitoring window; According to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, the first preset threshold and the second preset threshold are obtained.

4. The heart rate monitoring method based on a wearable device according to claim 3, It is characterized in that The first preset threshold and the second preset threshold are obtained according to the rule of the optimization signal covered by the sliding monitoring window after the length is adjusted, including: The peaks, valleys and RR intervals in the optimized signal covered by the sliding monitoring window are identified in sequence to obtain a peak sequence, a valley sequence and a RR interval sequence; According to the peak sequence, valley sequence and RR interval sequence, the first preset threshold is obtained by the following formula: ; is the first preset threshold, is the rate of change of the peak sequence, is the rate of change of the valley sequence, is the rate of change of the RR interval series, , and They are different first preset weights respectively.

5. The heart rate monitoring method based on a wearable device according to claim 4, It is characterized in that The method of obtaining the first preset threshold and the second preset threshold according to the rule of the optimization signal covered by the sliding monitoring window after the length adjustment also includes: The second preset threshold is obtained by the following formula: ; in, is the second preset threshold, is the variance of the RR interval, , , and are different second preset weights, is the sampling frequency.

6. A heart rate monitoring device based on a wearable device, It is characterized in that include: A sampling unit, used for obtaining a target heart rate waveform sampling signal; A filtering unit, used for filtering the target heart rate waveform sampling signal to obtain an optimized signal; A correction unit, used to correct the peak point according to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points to obtain a corrected signal; An analysis unit, used for obtaining a target heart rate variability value according to the RR interval time of the correction signal; According to the data change trend in the neighborhood of each peak point in the optimization signal and the difference between each peak point and its adjacent sampling points, the peak point is corrected to obtain a corrected signal, including: Obtaining a target peak point, wherein the target peak point is a peak point currently to be analyzed; According to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and the target peak point is corrected according to the magnitude relationship between the first eigenvalue and a first preset threshold value; According to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue representing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and the target peak point is corrected according to the magnitude relationship between the second eigenvalue and a second preset threshold value; A corrected signal is obtained according to the optimized signal after correcting the peak point; Among them, according to the data in the neighborhood of the target peak point in the optimization signal, a first eigenvalue representing the data change trend in the target peak point area is obtained, and according to the magnitude relationship between the first eigenvalue and the first preset threshold, the target peak point is corrected, including: Obtain two sampling points adjacent to the target peak point in the optimized signal to obtain two first sampling points; Calculate the absolute value of the slope of the straight line formed by the two first sampling points to obtain a first eigenvalue; If the first eigenvalue exceeds the first preset threshold, sampling points of non-target peak points adjacent to the two first sampling points are respectively acquired to obtain two second sampling points; Connect the first sampling point and the second sampling point located on the same side of the target peak point respectively to obtain two correction reference lines; The intersection of the two corrected reference lines is taken as the corrected target peak point; Among them, according to the adjacent sampling points of the target peak point in the optimization signal, a second eigenvalue characterizing the difference between the target peak point and the adjacent sampling points of the target peak point is obtained, and according to the magnitude relationship between the second eigenvalue and a second preset threshold, the target peak point is corrected, including: Acquire a sampling point adjacent to the target peak point in the optimized signal to obtain a second sampling point; Calculate the difference between the target peak point and the second sampling point to obtain the second eigenvalue; If the second eigenvalue does not exceed the second preset threshold, the midpoint of the line connecting the target peak point and the second sampling point is obtained as the corrected target peak point.

7. An electronic device, It is characterized in that include: Memory and processor; The memory is used to store a program, and the processor is used to execute the steps in the heart rate monitoring method based on a wearable device as described in any one of claims 1 to 5 when executing the program.

8. A computer-readable storage medium, It is characterized in that Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the heart rate monitoring method based on a wearable device as described in any one of claims 1 to 5.