CN117357086A - Heart rate monitoring method and device, electronic equipment and storage medium - Google Patents

Heart rate monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117357086A
CN117357086A CN202311588807.7A CN202311588807A CN117357086A CN 117357086 A CN117357086 A CN 117357086A CN 202311588807 A CN202311588807 A CN 202311588807A CN 117357086 A CN117357086 A CN 117357086A
Authority
CN
China
Prior art keywords
heart rate
rate value
value
result
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311588807.7A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingfar International Inc
Original Assignee
Kingfar International Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingfar International Inc filed Critical Kingfar International Inc
Priority to CN202311588807.7A priority Critical patent/CN117357086A/en
Publication of CN117357086A publication Critical patent/CN117357086A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02416Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02438Detecting, measuring or recording pulse rate or heart rate with portable devices, e.g. worn by the patient
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • A61B5/681Wristwatch-type devices
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/30ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Pathology (AREA)
  • Surgery (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Cardiology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Physics & Mathematics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • Physiology (AREA)
  • Databases & Information Systems (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The application discloses a heart rate monitoring method and device, electronic equipment and a storage medium, and relates to the field of heart rate monitoring. Collecting PPG data of a monitored person; performing time domain analysis on the PPG data and calculating a first heart rate value; performing a trusted evaluation on the first heart rate value; if the first evaluation result is abnormal, carrying out frequency domain analysis on the PPG data and calculating a second heart rate value; performing a trusted evaluation on the second heart rate value; if the second evaluation result represents that the second heart rate value is reliable, determining that the second heart rate value is a heart rate result of the monitored person; the first heart rate value is calculated by a time domain method with smaller calculated amount, the first heart rate value is subjected to credible evaluation, an accurate heart rate result can be obtained rapidly if the evaluation result is credible, the second heart rate value is calculated by a frequency domain method if the evaluation result is abnormal, the second heart rate value is subjected to credible evaluation, and the heart rate result is determined when the evaluation result is credible, so that the accuracy and the efficiency of the heart rate result are considered, and the requirement of real-time heart rate monitoring is met.

Description

Heart rate monitoring method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of heart rate monitoring, in particular to a heart rate monitoring method and device, electronic equipment and a storage medium.
Background
The change in heart rate reflects the physical state of the monitored person, especially for elderly or patients with heart disease. Along with the continuous development of electronic equipment (such as intelligent bracelet, etc.), more and more people are through wearing electronic equipment in order to realize the real-time supervision of rhythm of the heart to can learn the rhythm of the heart result in real time, in order to reduce the sudden illness that leads to when the rhythm of the heart change is too big, thereby improve patient's disease prevention effect.
The common heart rate calculation modes include a peak-to-peak method and a frequency domain method, however, when the peak-to-peak method calculates the heart rate, the peak-to-peak method causes larger calculation result deviation when the problems of slight interference or light leakage and the like exist, and in equipment with limited resources, the frequency domain method requires larger data storage amount and slower calculation speed for calculation, so that the requirements on calculation capacity and storage capacity are higher, and particularly, the real-time monitoring of heart rate data also requires faster calculation speed. If the accuracy of heart rate monitoring is guaranteed, a large data volume needs to be stored and calculated, so that the calculation force requirement is high, the calculation speed is low, the real-time monitoring requirement is difficult to meet, and if the calculation speed of heart rate data is guaranteed, the calculation accuracy is difficult to guarantee.
Disclosure of Invention
The present application has been made in order to solve the above technical problems. The embodiment of the application provides a heart rate monitoring method and device, electronic equipment and a storage medium, and improves the accuracy of heart rate monitoring on the premise of ensuring the calculation speed.
According to one aspect of the present application, there is provided a heart rate monitoring method comprising: collecting photoplethysmogram PPG data of a monitored person; performing time domain analysis on the PPG data, and calculating a first heart rate value of the monitored person according to a time domain analysis result; performing credible evaluation on the first heart rate value to obtain a first evaluation result; if the first evaluation result represents that the first heart rate value is abnormal, performing frequency domain analysis on the PPG data, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result; performing credible evaluation on the second heart rate value to obtain a second evaluation result; and if the second evaluation result represents that the second heart rate value is credible, determining that the second heart rate value is the heart rate result of the monitored person.
In an embodiment, the performing time domain analysis on the PPG data, calculating a first heart rate value of the monitored person according to a result of the time domain analysis, includes: sliding on the PPG data with a first time window, determining the peak-to-peak value of the data within each sliding first time window, calculating the first heart rate value according to each adjacent peak-to-peak value; if the first evaluation result represents that the first heart rate value is abnormal, performing frequency domain analysis on the PPG data, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result, wherein the method comprises the following steps: if the first evaluation result represents that the first heart rate value is abnormal, sliding on the PPG data by a second time window, performing Fourier transform on the data of the second time window to obtain frequency domain features, and calculating the second heart rate value according to the frequency domain features; wherein the first time window is shorter than the second time window, and the first time window and the second time window are aligned right on a time axis.
In an embodiment, the sliding over the PPG data with a first time window, determining peak-to-peak values of data within each sliding first time window, calculating the first heart rate value from each adjacent peak-to-peak value, comprises: sliding over the PPG data with the first time window to obtain a plurality of data points within the first time window of each sliding; sequentially judging the size of a new data point relative to a previous data point, and if the new data point is smaller than the previous data point, determining the previous data point as a peak-to-peak value; calculating the time interval between adjacent peaks and peaks to obtain a heartbeat period; and calculating the first heart rate value according to the heart cycle.
In an embodiment, before said time domain analysis of the PPG data or said frequency domain analysis of the PPG data, the method further comprises: filtering the PPG data; the performing time domain analysis on the PPG data includes: performing time domain analysis on the filtered PPG data; the performing frequency domain analysis on the PPG data includes: and carrying out frequency domain analysis on the PPG data after the filtering treatment.
In an embodiment, the method further comprises: acquiring motion state information of the monitored person; and if the acquired motion state information indicates that the monitored person changes from a motion state to a static state, performing zero clearing processing on the historical data in the filter subjected to the filtering processing.
In an embodiment, the performing the trusted evaluation on the first heart rate value to obtain a first evaluation result includes: evaluating the first heart rate value based on the historical heart rate value of the monitored person, a preset first heart rate range and a preset second heart rate range to obtain a first evaluation result; and/or performing a trusted evaluation on the second heart rate value, where obtaining a second evaluation result includes: evaluating the second heart rate value based on the historical heart rate value of the monitored person, the first heart rate range and the second heart rate range to obtain a second evaluation result; wherein the first heart rate range is equal to the second heart rate range or the first heart rate range is included in the second heart rate range.
In an embodiment, the evaluating the first heart rate value based on the historical heart rate value of the monitored person and a preset first heart rate range and a preset second heart rate range, and obtaining the first evaluation result includes: if the first heart rate value is in the first heart rate range and the difference between the first heart rate value and the historical heart rate value is larger than a preset first difference value threshold value or the first heart rate value exceeds the second heart rate range, determining that the first evaluation result is abnormal; and/or said evaluating said second heart rate value based on said monitored person's historical heart rate value and said first heart rate range, said second heart rate range, obtaining said second evaluation result comprising: if the difference between the second heart rate value and the historical heart rate value is smaller than or equal to a preset second difference threshold value and the second heart rate value is in the first heart rate range, determining that the second evaluation result is credible; wherein the second difference threshold is less than the first difference threshold.
In an embodiment, the evaluating the first heart rate value based on the historical heart rate value of the monitored person and a preset first heart rate range and a preset second heart rate range, and obtaining the first evaluation result includes: if the difference between the first heart rate value and the historical heart rate value is between the second difference threshold and the first heart rate value is within the first heart rate range, determining that the first evaluation result is pending; the heart rate monitoring method further comprises the following steps: and if the first evaluation result is undetermined, calculating to obtain the heart rate result according to the historical heart rate value and the first heart rate value.
In an embodiment, the calculating the heart rate result from the historical heart rate value and the first heart rate value includes: and according to the historical heart rate value and the first heart rate value, obtaining the heart rate result through weighted summation calculation.
In an embodiment, the heart rate monitoring method further comprises: and if the second evaluation result represents that the second heart rate value is abnormal, determining that the heart rate result is the historical heart rate value of the monitored person.
In an embodiment, the heart rate monitoring method further comprises: calculating a change amplitude according to the absolute value of the difference between the historical heart rate value of the monitored person and the heart rate result; the change amplitude represents the change amplitude of the output current heart rate value and the history heart rate value; generating the current heart rate value according to the historical heart rate value and the change amplitude; outputting the current heart rate value.
In one embodiment, the calculating the change amplitude based on the absolute value of the difference between the historical heart rate value of the monitored person and the heart rate result comprises: and if the absolute value of the difference between the historical heart rate value and the heart rate result is smaller than or equal to a third difference threshold value, determining that the change amplitude is equal to one.
According to another aspect of the present application, there is provided a heart rate monitoring device comprising: the data acquisition module is used for acquiring the photoplethysmogram signal PPG data of the monitored person; the time domain calculation module is used for performing time domain analysis on the PPG data and calculating a first heart rate value of the monitored person according to a time domain analysis result; the first evaluation module is used for carrying out credible evaluation on the first heart rate value to obtain a first evaluation result; the frequency calculation module is used for carrying out frequency domain analysis on the PPG data if the first evaluation result represents that the first heart rate value is abnormal, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result; the second evaluation module is used for carrying out credible evaluation on the second heart rate value to obtain a second evaluation result; and the heart rate determining module is used for determining the second heart rate value as the heart rate result of the monitored person if the second evaluation result represents that the second heart rate value is credible.
According to another aspect of the present application, there is provided an electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of any of the methods described above when executing the computer program.
According to another aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of any of the methods described above.
According to the heart rate monitoring method and device, the electronic equipment and the storage medium, the photoelectric volume pulse wave PPG data of a monitored person are collected; performing time domain analysis on the PPG data and calculating a first heart rate value of the monitored person; performing credible evaluation on the first heart rate value to obtain a first evaluation result; if the first evaluation result represents that the first heart rate value is abnormal, carrying out frequency domain analysis on the PPG data and calculating a second heart rate value of the monitored person; performing credible evaluation on the second heart rate value to obtain a second evaluation result; if the second evaluation result represents that the second heart rate value is reliable, determining that the second heart rate value is a heart rate result of the monitored person; the first heart rate value is calculated by a time domain method with smaller calculated amount, the first heart rate value is subjected to credible evaluation, an accurate heart rate result can be obtained rapidly if the evaluation result is credible, the second heart rate value is calculated by a frequency domain method if the evaluation result is abnormal, the second heart rate value is subjected to credible evaluation, and the heart rate result is determined if the evaluation result is credible, so that the accuracy of the finally obtained heart rate result can be ensured, and meanwhile, the calculated amount can be reduced and the calculation speed can be improved by preferentially adopting the time domain method, so that the accuracy and the efficiency of the heart rate result are both considered, and the requirement of real-time heart rate monitoring is met.
Drawings
The foregoing and other objects, features and advantages of the present application will become more apparent from the following more particular description of embodiments of the present application, as illustrated in the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
Fig. 1 is a flowchart of a heart rate monitoring method according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart of a heart rate monitoring method according to another exemplary embodiment of the present application.
Fig. 3 is a schematic structural diagram of a heart rate monitoring device according to an exemplary embodiment of the present application.
Fig. 4 is a block diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application and not all of the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
Fig. 1 is a flowchart of a heart rate monitoring method according to an exemplary embodiment of the present application. As shown in fig. 1, the heart rate monitoring method includes the steps of:
step 110: collecting the photoplethysmogram PPG data of the monitored person.
The PPG (Photo Plethysmo Graphy) data includes a photoplethysmography signal of the monitored person within a predetermined period of time. The method can detect the exercise heart rate of the human body by adopting a green light nondestructive detection technology, and specifically, the change of the volume of the blood vessel in the heart cycle is detected and traced in real time by setting the photoelectric sensor due to the difference of the intensity of reflected light after the absorption of blood and tissues of the human body, so that pulse waveform data are obtained.
Step 120: performing time domain analysis on the PPG data, and calculating a first heart rate value of the monitored person according to the time domain analysis result.
In one embodiment, the implementation of step 120 may be: sliding over the PPG data with a first time window, determining peak-to-peak values of the data within each sliding first time window, and calculating the first heart rate value from each adjacent peak-to-peak value. In a further embodiment, the specific implementation of step 120 may be: sliding over the PPG data with a first time window to obtain a plurality of data points within the first time window of each sliding; sequentially judging the size of the new data point relative to the last data point, and if the new data point is smaller than the last data point, determining the last data point as a peak-to-peak value; calculating the time interval between adjacent peaks and peaks to obtain a heartbeat period; a first heart rate value is calculated from the heart cycle.
Specifically, the present application may divide time into a plurality of first time windows (the plurality of time windows may intersect or may not intersect), for example, slide on PPG data with a fixed time window (the first time window), where the time window corresponding to each sliding stop is a single first time window, and collect enough data points in each first time window (the data points are enough to meet the requirement of real-time monitoring, that is, the waveform formed by the data points in each first time window may accurately represent the trend and the change amplitude of heart rate data in the time window); then, by searching for the peak value (peak and trough) and the corresponding moment point of the waveform formed by the data points, the specific way for searching for the peak value can be as follows: comparing the sizes of the data points in a single first time window, taking the maximum value as an example, taking the first data point as the maximum value at first, then comparing the second data point with the first data point, if the second data point is smaller than the first data point, the maximum value is still the first data point, otherwise, updating the maximum value into the second data point, and so on, so as to select the maximum value (peak value) and the minimum value (trough value) of all the data points in the first time window; after obtaining the peak value and the corresponding time point in each first time window, calculating the time interval (specifically, the time interval between adjacent wave peak values or the time interval between adjacent wave trough values) of the adjacent peak value (namely, the peak value and the peak value in the adjacent first time window), so as to obtain the heartbeat period; and finally, calculating a first heart rate value according to the heart beat period, wherein the first heart rate value is equal to the reciprocal of the heart beat period.
According to the method, time domain analysis is preferentially adopted, a plurality of time windows are obtained by sliding the first time window on the PPG data, peak-to-peak values of the time windows are obtained by calculation, the first heart rate value is obtained by calculation based on adjacent peak-to-peak values, the data calculated amount can be effectively reduced, and therefore the calculation speed of the heart rate value is increased.
Step 130: and carrying out credible evaluation on the first heart rate value to obtain a first evaluation result.
Wherein the first evaluation result characterizes whether the first heart rate value is authentic. In one embodiment, there may be three scenarios for trusted evaluation: trusted, abnormal and pending. By "trusted" it may be meant that the monitored first heart rate value is within a preset error tolerance range, which may be determined based on empirical or historical detection data. If the predetermined allowable range is significantly exceeded, it may be regarded as "abnormal". A situation such as credibility or abnormality can be regarded as "pending" if it is near the error tolerance boundary or cannot be determined. According to the heart rate value calculation method, the first heart rate value can be obtained through rapid calculation by the peak-to-peak method, and in order to ensure the accuracy of a final heart rate result, the first heart rate value is subjected to credible evaluation after being calculated, so that whether the first heart rate value is credible or not is judged, namely whether the first heart rate value is normal and reasonable is judged.
In one embodiment, the specific implementation of step 130 may be: inputting the first heart rate value into a first arbitration function, and evaluating the first heart rate value based on the historical heart rate value of the monitored person, a preset first heart rate range and a preset second heart rate range to obtain a first evaluation result.
Wherein the first heart rate range is equal to the second heart rate range or the first heart rate range is included in the second heart rate range. Since the heart rate data of the same monitored person will not be suddenly changed, there is usually a change process, for example, when the monitored person changes from a stationary state to a moving state, the heart rate data will gradually rise, but will not be suddenly changed, so the application adopts the historical heart rate value (for example, the heart rate value obtained by the last detection or the average value of the heart rate values obtained by the last detection, etc.) to perform a credible evaluation on the first heart rate value to determine whether the change of the first heart rate value relative to the historical heart rate value is normal. Moreover, the present application may also preset two heart rate ranges: the range of normal heart rate (i.e., the first heart rate range) and the boundary range of abnormal heart rate (i.e., the boundary range of the second heart rate range) to determine whether the first heart rate value is authentic (normal). It should be understood that the first arbitration function of the present application may also perform a trusted evaluation on the first heart rate value based on other evaluation factors, for example, the first heart rate range and the second heart rate range may be adjusted according to the age of the monitored person or a determined disease (e.g. a disease affecting the heart rate such as hypertension) to obtain a more trusted first evaluation result.
In one embodiment, the evaluation logic of the first arbitration function may be: if the first heart rate value is in the first heart rate range and the difference between the first heart rate value and the historical heart rate value is larger than a preset first difference value threshold value or the first heart rate value exceeds the second heart rate range, the first evaluation result is abnormal.
If the first heart rate value is in the first heart rate range and the difference between the first heart rate value and the historical heart rate value is larger than a first difference threshold value, the first heart rate value is in the normal range, but the difference between the first heart rate value and the historical heart rate value is larger, and the first heart rate value can be judged to be inaccurate; or the first heart rate value is outside the second heart rate range (i.e., falls within the range of abnormal heart rates), indicating that the first heart rate value is an abnormal heart rate value, and therefore, the present application may determine that the first evaluation result is abnormal (i.e., the first heart rate value is abnormal) when either of the following two conditions is satisfied: the first heart rate value is located in a first heart rate range, the difference between the first heart rate value and the historical heart rate value is larger than a first difference value threshold, the first heart rate value exceeds a second heart rate range, and if a first evaluation result obtained by peak-to-peak calculation is abnormal, the corresponding first heart rate value cannot be output as a final heart rate result.
For example, if the first heart rate value is in the range of 60bpm-100bpm (i.e., the first heart rate range) and the difference between the first heart rate value and the last heart rate value (i.e., the historical heart rate value) is greater than 20bpm (i.e., the number of beats per minute), or the first heart rate value exceeds 40bpm-192bpm (the second heart rate range, i.e., the first heart rate value is less than 40bpm or greater than 192 bpm), then the first evaluation result is determined to be abnormal.
In one embodiment, the evaluation logic of the first arbitration function may be: if the difference between the first heart rate value and the historical heart rate value is between the second difference value threshold and the first heart rate value is in the first heart rate range, the first evaluation result is undetermined; wherein the second difference threshold is less than the first difference threshold. Correspondingly, the heart rate monitoring method may further include: and if the first evaluation result is undetermined, calculating to obtain a heart rate result according to the historical heart rate value and the first heart rate value.
If the difference between the first heart rate value and the historical heart rate value is between the second difference threshold and the first heart rate value is within the first heart rate range, it is indicated that there is a certain difference between the first heart rate value and the historical heart rate value but not too much, that is, the difference between the first heart rate value and the historical heart rate value is within the allowable range, and the first heart rate value is within the first heart rate range, it is indicated that the first heart rate value is within the normal heart rate range, which may be caused by the change of the motion state of the monitored person, for example, the heart rate value may change when the monitored person changes from the stationary state to the motion state, so that the evaluation result satisfying the two conditions is set to be pending.
In an embodiment, when the first evaluation result is to be timed, the specific calculation manner of the heart rate result may be: and according to the historical heart rate value and the first heart rate value, calculating the heart rate result by weighted summation.
And when the first evaluation result is to be timed, carrying out weighted summation on the historical heart rate value and the first heart rate value to obtain a heart rate result. For example, the historical heart rate value may be weighted at 0.8 and the first heart rate value at 0.2, i.e. heart rate result = 0.8 x historical heart rate value +0.2 x first heart rate value. It should be understood that, the present application may preset the weight values of the historical heart rate value and the first heart rate value according to the actual application scenario, or may adjust the weight values of the historical heart rate value and the first heart rate value according to the difference between the historical heart rate value and the first heart rate value. For example, if the difference between the historical heart rate value and the first heart rate value is smaller (for example, smaller than 15 bpm), the weight value of the first heart rate value is increased, and at this time, the first heart rate value can be determined to be more accurate, and in order to ensure the accuracy of the heart rate result, the weight value of the first heart rate value can be emphasized; if the difference between the historical heart rate value and the first heart rate value is large (for example, greater than 15 bpm), the weight value of the historical heart rate value is increased, and at this time, the first heart rate value can be determined to be inaccurate, so that the weight value of the historical heart rate value can be emphasized in order to reduce the interference of inaccurate data on heart rate results.
In one embodiment, the evaluation logic of the first arbitration function may be: if the difference between the first heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the first heart rate value is in the first heart rate range, the first evaluation result is credible.
If the difference between the first heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the first heart rate value is in the first heart rate value range, the difference between the first heart rate value and the historical heart rate value is smaller, and the first heart rate value is in the normal heart rate range, the first heart rate value can be determined to be an accurate value, so that the first evaluation result can be determined to be the first heart rate value credible, and the first heart rate value can be directly used as a heart rate result.
Step 140: if the first evaluation result represents that the first heart rate value is abnormal, performing frequency domain analysis on the PPG data, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result.
If the first evaluation result of the first heart rate value obtained by calculation in the above manner is abnormal, it is indicated that the first heart rate value cannot be used as a heart rate result, and at this time, an accurate heart rate result needs to be obtained by further calculation. In order to ensure accuracy of results, the heart rate value is calculated by a frequency domain method by extracting frequency components in PPG data.
In one embodiment, the implementation of step 140 may be: if the first evaluation result represents that the first heart rate value is abnormal, sliding on the PPG data by a second time window, performing Fourier transform on the data of the second time window to obtain frequency domain features, and calculating the second heart rate value according to the frequency domain features, wherein the first time window is shorter than the second time window, and the first time window and the second time window are aligned on the time axis. Specifically, the second time windows are adopted to slide on the PPG data, so that a plurality of second time windows are obtained, the PPG data in each second time window are subjected to Fourier transformation to obtain corresponding frequency domain features, and a second heart rate value of a monitored person is obtained through calculation based on the obtained frequency domain features. Because the more the data is, the higher the accuracy is, when the first heart rate value obtained by adopting the data quick calculation of the first time window is abnormal, in order to improve the calculation accuracy, the second time window adopted by the method and the device for frequency domain analysis is longer than the first time window so as to obtain more frequency domain characteristics, so that more data support is provided for the subsequent calculation accuracy, and the more PPG data which is closer to the current moment can accurately reflect the heart rate value of the current moment relatively, therefore, the method and the device for frequency domain analysis set the heart rate value of the current moment on the time axis are right aligned with the first time window and the second time window, namely the current moment of the PPG data. According to the method, when the first heart rate value obtained through peak-to-peak value calculation is not accurate enough, a frequency domain method is adopted to conduct accurate calculation of large data quantity, so that a second heart rate value which is accurate is obtained.
Step 150: and carrying out credible evaluation on the second heart rate value to obtain a second evaluation result.
Wherein the second evaluation result characterizes whether the second heart rate value is normal. In order to ensure the accuracy of the final heart rate result, after the second heart rate value is obtained through calculation, the second heart rate value is subjected to credible evaluation to judge whether the second heart rate value is accurate or not.
In one embodiment, the trusted evaluation of the second heart rate value may be: inputting the second heart rate value into a second arbitration function, and evaluating the second heart rate value based on the historical heart rate value of the monitored person, the first heart rate range and the second heart rate range to obtain a second evaluation result.
The method and the device adopt the historical heart rate value (such as the heart rate value obtained by the last detection or the average value of heart rate values obtained by the last detection, and the like) to perform credibility evaluation on the second heart rate value, and can judge whether the change of the second heart rate value relative to the historical heart rate value is normal or not. Moreover, the present application may also preset two heart rate ranges: the range of normal heart rate (i.e., the first heart rate range) and the boundary range of abnormal heart rate (i.e., the boundary range of the second heart rate range) to determine whether the second heart rate value is normal (trusted). It should be appreciated that the second heart rate value may also be evaluated based on other evaluation factors, for example, the first heart rate range and the second heart rate range may be adjusted according to the age of the monitored person or a determined disease (e.g., a disease that affects heart rate such as hypertension) to obtain a more reliable second evaluation result.
In one embodiment, the evaluation logic of the second arbitration function may be: if the difference between the second heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the second heart rate value is in the first heart rate range, the second evaluation result is credible.
If the difference between the second heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the second heart rate value is in the first heart rate range, the difference between the second heart rate value and the historical heart rate value is smaller, and the second heart rate value is in the normal heart rate range, the second heart rate value can be determined to be an accurate value, so that the second evaluation result can be determined to be the credible second heart rate value, and the second heart rate value can be directly used as a heart rate result.
Optionally, the evaluation logic of the second arbitration function is the same as that of the first arbitration function, that is, for the same heart rate value, the evaluation results obtained by inputting the first arbitration function and the second arbitration function are consistent, and specifically include credibility, undetermined state and abnormality.
Step 160: and if the second evaluation result represents that the second heart rate value is reliable, determining the second heart rate value as a heart rate result of the monitored person.
If the second evaluation result is that the second heart rate value is reliable, it is indicated that the calculated second heart rate value can accurately reflect the current heart rate value of the monitored person, and the second heart rate value can be used as the heart rate result of the monitored person.
According to the heart rate monitoring method, the photoplethysmogram PPG data of a monitored person are collected; performing time domain analysis on the PPG data and calculating a first heart rate value of the monitored person; performing credible evaluation on the first heart rate value to obtain a first evaluation result; if the first evaluation result represents that the first heart rate value is abnormal, carrying out frequency domain analysis on the PPG data and calculating a second heart rate value of the monitored person; performing credible evaluation on the second heart rate value to obtain a second evaluation result; if the second evaluation result represents that the second heart rate value is reliable, determining that the second heart rate value is a heart rate result of the monitored person; the first heart rate value is calculated by a time domain method with smaller calculated amount, the first heart rate value is subjected to credible evaluation, an accurate heart rate result can be obtained rapidly if the evaluation result is credible, the second heart rate value is calculated by a frequency domain method if the evaluation result is abnormal, the second heart rate value is subjected to credible evaluation, and the heart rate result is determined if the evaluation result is credible, so that the accuracy of the finally obtained heart rate result can be ensured, and meanwhile, the calculated amount can be reduced and the calculation speed can be improved by preferentially adopting the time domain method, so that the accuracy and the efficiency of the heart rate result are both considered, and the requirement of real-time heart rate monitoring is met.
In an embodiment, the heart rate monitoring method further includes: and if the second evaluation result represents that the second heart rate value is abnormal, determining that the heart rate result is the historical heart rate value of the monitored person.
Because the second heart rate value is calculated when the evaluation result of the first heart rate value is abnormal, namely, the first heart rate value and the second heart rate value are not accurate enough when the second evaluation result of the second heart rate value is abnormal, the heart rate result calculated according to the first heart rate value or the second heart rate value is likely to deviate greatly from the real heart rate value, and therefore, in order to avoid overlarge deviation, the historical heart rate value (for example, the heart rate value obtained by the last detection) is used as the current heart rate result.
In an embodiment, if the difference between the second heart rate value and the historical heart rate value is between the second difference threshold and the first difference threshold and the second heart rate value is within the first heart rate range, the second evaluation result is pending, and at this time, a heart rate result may be obtained by calculating according to the historical heart rate value and the second heart rate value.
If the difference between the second heart rate value and the historical heart rate value is between the second difference threshold value and the first difference threshold value and the second heart rate value is within the first heart rate range, it is indicated that a certain difference exists between the second heart rate value and the historical heart rate value but is not too large, that is, the difference between the second heart rate value and the historical heart rate value is within an allowable range, and the second heart rate value is within the first heart rate range, it is indicated that the second heart rate value is within the normal heart rate range, which may be caused by the change of the motion state of the monitored person, for example, the heart rate value may change when the monitored person changes from a static state to a motion state, so that the evaluation result meeting the two conditions is set to be pending, and at the moment, the heart rate result can be comprehensively obtained according to the historical heart rate value and the second heart rate value, that is calculated by combining the historical heart rate value and the detected second heart rate value, so that the difference between the detected second heart rate value and the historical heart rate value is large or the change too fast is avoided as much as possible.
Specifically, when the second evaluation result is to be timed, the specific calculation mode of the heart rate result may be: and according to the historical heart rate value and the second heart rate value, obtaining a heart rate result through weighted summation calculation.
And when the second evaluation result is to be determined, carrying out weighted summation on the historical heart rate value and the second heart rate value to obtain a heart rate result. For example, the historical heart rate value may be weighted at 0.8 and the second heart rate value at 0.2, i.e. heart rate result = 0.8 x historical heart rate value +0.2 x second heart rate value. It should be understood that, the present application may preset the weight values of the historical heart rate value and the second heart rate value according to the actual application scenario, or may adjust the weight values of the historical heart rate value and the second heart rate value according to the difference between the historical heart rate value and the second heart rate value. For example, if the difference between the historical heart rate value and the second heart rate value is smaller (for example, smaller than 15 bpm), the weight value of the second heart rate value is increased, and at this time, the second heart rate value can be determined to be more accurate, and in order to ensure the accuracy of the heart rate result, the weight value of the second heart rate value can be emphasized; if the difference between the historical heart rate value and the second heart rate value is larger (for example, greater than 15 bpm), the weight value of the historical heart rate value is increased, at this time, the second heart rate value can be determined to be inaccurate, and in order to reduce the interference of inaccurate data on the heart rate result, the weight value of the historical heart rate value can be emphasized.
In an embodiment, the heart rate monitoring method may further include: calculating a change amplitude according to the absolute value of the difference between the historical heart rate value and the heart rate result of the monitored person, wherein the change amplitude represents the change amplitude of the output current heart rate value and the historical heart rate value, and generating the current heart rate value and outputting the current heart rate value according to the historical heart rate value and the change amplitude.
According to the method, the difference between the historical heart rate value and the current heart rate result of the monitored person is calculated to obtain the variation of the current heart rate result relative to the historical heart rate value, and the variation amplitude is calculated according to the absolute value of the difference between the historical heart rate value and the heart rate result, wherein the variation amplitude is the variation upper limit between the heart rate values of the detection output of the adjacent two times is limited, namely the difference between the heart rate values of the detection output of the adjacent two times cannot exceed the variation amplitude; and generating and outputting the current heart rate value according to the historical heart rate value and the change amplitude value to ensure that the output current heart rate value gradually increases or decreases relative to the historical heart rate value instead of suddenly changing, thereby ensuring the stability of the output heart rate value.
In an embodiment, the specific calculation manner of the change amplitude may be: if the absolute value of the difference between the historical heart rate value and the heart rate result is less than or equal to the third difference threshold, then the magnitude of the change is determined to be equal to one.
If the absolute value of the difference between the historical heart rate value and the heart rate result is less than or equal to the third difference threshold (e.g., 20 bpm), indicating that the heart rate result has less variation from the historical heart rate value, the magnitude of the variation may be set to a fixed value (e.g., 1). For example, if the absolute value of the difference between the historical heart rate value and the heart rate result is less than 20bpm (i.e., the difference between the historical heart rate value and the heart rate result is between (-20 bpm,20 bpm), the change amplitude may be set to 1, i.e., the current heart rate result is the historical heart rate value ±1bpm.
Optionally, if the absolute value of the difference between the historical heart rate value and the heart rate result is greater than the third difference threshold, it is indicated that the difference between the historical heart rate value and the heart rate result is greater, and the change amplitude may be set based on the difference between the historical heart rate value and the heart rate result at this time, so as to avoid that the difference between the current heart rate value and the actual heart rate value is too large due to too small change amplitude. For example, if the absolute value of the difference between the historical heart rate value and the heart rate result is 30bpm, the change amplitude may be determined by taking the remainder of 10 from the absolute value of the difference between the historical heart rate value and the heart rate result, i.e., the change amplitude is 30/10=3, i.e., the current heart rate result is the historical heart rate value ±3bpm.
In an embodiment, before performing the time domain analysis on the PPG data or performing the frequency domain analysis on the PPG data, the method may further include: filtering the PPG data; correspondingly, the specific implementation manner of step 120 may be: performing time domain analysis on the filtered PPG data; correspondingly, the specific implementation manner of step 140 may be: and carrying out frequency domain analysis on the PPG data after the filtering treatment.
Before time domain analysis or frequency domain analysis is carried out, the PPG data can be subjected to filtering processing, so that the problems of interference signals in the photoplethysmogram data, baseline drift and the like are eliminated. For example, the present application may employ a combination of any one or more of the following: the method comprises the steps of removing high-frequency noise (such as respiratory motion, interference light in the environment and the like) in heart rate data by adopting a low-pass filter (such as an IIR filter and the like), removing baseline drift in the heart rate data by adopting the high-pass filter (such as the IIR filter and the like) to determine zero point stability of the heart rate data, and removing power frequency noise (such as noise emitted by household appliances and the like) of 50HZ by adopting a band-stop filter (such as the IIR filter and the like).
In an embodiment, the heart rate monitoring method may further include: and acquiring the motion state information of the monitored, wherein the motion state information represents the motion state or the static state of the monitored, and if the acquired motion state information represents the motion state of the monitored to be changed into the static state, carrying out zero clearing processing on the historical data in the filter subjected to the filtering processing.
Specifically, the motion state information of the monitored person can be monitored in real time by using the nine-axis sensor and other sensors, and because the interference signals of the monitored person in the motion state and the static state are different, for example, the motion can affect the flow of blood and the ambient light, so that motion noise is generated, that is, the motion state is more interfered, the accuracy of the PPG data collected in the motion state is lower compared with that of the PPG data collected in the static state, therefore, when the monitored person is monitored to change from the motion state to the static state, the historical data in the filter after the filtering processing is cleared, that is, the PPG data collected in the previous motion state is deleted, so that the accuracy of the PPG data is improved, and a data base is provided for the follow-up accurate calculation.
Fig. 2 is a flowchart of a heart rate monitoring method according to another exemplary embodiment of the present application. As shown in fig. 2, the heart rate monitoring method includes the steps of:
step 201: the first heart rate value is calculated using the peak-to-peak value.
The specific implementation of step 201 is similar to that of step 120 described above, and will not be repeated here.
Step 202: whether the first heart rate value is reliable or not is determined, if yes, the step 203 is changed to be changed to a pending step 204, and if no, the step 205 is changed to an abnormal step.
The step of evaluating the first heart rate value to determine whether the first heart rate value is reliable (the first heart rate value is within a preset error tolerance range, the error tolerance range may be determined according to experience or historical monitoring data), and adopting a corresponding calculation mode according to the evaluation result is similar to the steps 130-140 and the execution steps of the first evaluation result that are reliable and corresponding to the determination, which are not repeated herein.
Step 203: the first heart rate value is taken as heart rate result.
The step is similar to the execution step when the first evaluation result is trusted in the above embodiment, and will not be described herein.
Step 204: the historical heart rate value and the first heart rate value are weighted and summed to obtain a heart rate result.
The step is similar to the execution step of the first evaluation result to be timed in the above embodiment, and will not be repeated here.
Step 205: the second heart rate value is calculated using a frequency domain method.
This step is similar to step 140 in the above embodiment, and will not be described here again.
Step 206: whether the second heart rate value is reliable or not is determined, if yes, the step 207 is changed to be changed to a pending step 208, and if no, the step 209 is changed to an abnormal step.
The second heart rate value is evaluated to determine whether it is reliable (the second heart rate value is within a preset error tolerance range, and the error tolerance range can be determined according to experience or historical monitoring data), and a corresponding calculation mode is adopted according to the evaluation result, where the steps are similar to the steps 150-160 and the execution steps of which the second evaluation result is abnormal and corresponds to the waiting determination, and the details are not repeated here.
Step 207: the second heart rate value is taken as heart rate result.
The step is similar to the execution step when the second evaluation result is trusted in the above embodiment, and will not be described here again.
Step 208: the historical heart rate value and the second heart rate value are weighted and summed to obtain a heart rate result.
The step is similar to the execution step in the above embodiment in which the second evaluation result is to be timed, and will not be described here again.
Step 209: the last heart rate value is taken as heart rate result.
The step is similar to the execution step when the second evaluation result is abnormal in the above embodiment, and will not be described here again.
Step 210: heart rate results are processed.
This step is similar to the step of generating the current heart rate value in the above embodiment, and will not be described here again.
Step 211: outputting the current heart rate value.
Fig. 3 is a schematic structural diagram of a heart rate monitoring device according to an exemplary embodiment of the present application. As shown in fig. 3, the heart rate monitoring device 30 includes: a data acquisition module 31 for acquiring heart rate data of the monitored person; the heart rate data comprise photoelectric volume pulse wave signals of a monitored person in a preset time period; a time domain calculation module 32 for calculating a first heart rate value of the monitored person from peak data in the heart rate data; a first evaluation module 33, configured to evaluate the first heart rate value to obtain a first evaluation result; wherein the first evaluation result characterizes whether the first heart rate value is normal; a frequency calculation module 34, configured to extract a frequency component of the heart rate data if the first evaluation result characterizes that the first heart rate value is abnormal; a second evaluation module 35, configured to evaluate a second heart rate value to obtain a second evaluation result; wherein the second evaluation result characterizes whether the second heart rate value is normal; the heart rate determining module 36 is configured to determine the second heart rate value as the heart rate result of the monitored person if the second evaluation result indicates that the second heart rate value is reliable.
According to the heart rate monitoring device, the data acquisition module 31 is used for acquiring the photoplethysmogram PPG data of a monitored person; the time domain calculation module 32 performs time domain analysis on the PPG data and calculates a first heart rate value of the monitored person; the first evaluation module 33 performs trusted evaluation on the first heart rate value to obtain a first evaluation result; if the first evaluation result represents that the first heart rate value is abnormal, the frequency calculation module 34 performs frequency domain analysis on the PPG data and calculates a second heart rate value of the monitored person; the second evaluation module 35 performs a trusted evaluation on the second heart rate value to obtain a second evaluation result; if the second evaluation result indicates that the second heart rate value is reliable, the heart rate determination module 36 determines the second heart rate value as a heart rate result of the monitored person; the first heart rate value is calculated by a time domain method with smaller calculated amount, the first heart rate value is subjected to credible evaluation, an accurate heart rate result can be obtained rapidly if the evaluation result is credible, the second heart rate value is calculated by a frequency domain method if the evaluation result is abnormal, the second heart rate value is subjected to credible evaluation, and the heart rate result is determined if the evaluation result is credible, so that the accuracy of the finally obtained heart rate result can be ensured, and meanwhile, the calculated amount can be reduced and the calculation speed can be improved by preferentially adopting the time domain method, so that the accuracy and the efficiency of the heart rate result are both considered, and the requirement of real-time heart rate monitoring is met.
In an embodiment, the time domain calculation module 32 may be further configured to: sliding over the PPG data with a first time window, determining peak-to-peak values of the data within each sliding first time window, and calculating the first heart rate value from each adjacent peak-to-peak value.
In an embodiment, the time domain calculation module 32 may be further configured to: sliding over the PPG data with a first time window to obtain a plurality of data points within the first time window of each sliding; sequentially judging the size of the new data point relative to the last data point, and if the new data point is smaller than the last data point, determining the last data point as a peak-to-peak value; calculating the time interval between adjacent peaks and peaks to obtain a heartbeat period; a first heart rate value is calculated from the heart cycle.
In an embodiment, the first evaluation module 33 may be further configured to: inputting the first heart rate value into a first arbitration function, and evaluating the first heart rate value based on the historical heart rate value of the monitored person, a preset first heart rate range and a preset second heart rate range to obtain a first evaluation result. Wherein the first heart rate range is equal to the second heart rate range or the first heart rate range is included in the second heart rate range.
In an embodiment, the first evaluation module 33 may be further configured to: if the first heart rate value is in the first heart rate range and the difference between the first heart rate value and the historical heart rate value is larger than a preset first difference value threshold value or the first heart rate value exceeds the second heart rate range, the first evaluation result is abnormal.
In an embodiment, the first evaluation module 33 may be further configured to: if the difference between the first heart rate value and the historical heart rate value is between the second difference value threshold and the first heart rate value is in the first heart rate range, the first evaluation result is undetermined; wherein the second difference threshold is less than the first difference threshold. Correspondingly, the heart rate determination module 36 may be configured to: and if the first evaluation result is undetermined, calculating to obtain a heart rate result according to the historical heart rate value and the first heart rate value.
In an embodiment, when the first evaluation result is to be timed, the heart rate determination module 36 may be further configured to: and according to the historical heart rate value and the first heart rate value, calculating the heart rate result by weighted summation.
In an embodiment, the first evaluation module 33 may be further configured to: if the difference between the first heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the first heart rate value is in the first heart rate range, the first evaluation result is credible.
In an embodiment, the frequency calculation module 34 may be further configured to: if the first evaluation result represents that the first heart rate value is abnormal, sliding on the PPG data by a second time window, performing Fourier transform on the data of the second time window to obtain frequency domain features, and calculating the second heart rate value according to the frequency domain features, wherein the first time window is shorter than the second time window, and the first time window and the second time window are aligned on the time axis.
In an embodiment, the second evaluation module 35 may be further configured to: inputting the second heart rate value into a second arbitration function, and evaluating the second heart rate value based on the historical heart rate value of the monitored person, the first heart rate range and the second heart rate range to obtain a second evaluation result.
In an embodiment, the second evaluation module 35 may be further configured to: if the difference between the second heart rate value and the historical heart rate value is smaller than or equal to the second difference threshold and the second heart rate value is in the first heart rate range, the second evaluation result is credible.
In an embodiment, when the second evaluation result is abnormal, the heart rate determination module 36 may be further configured to: the heart rate result is determined to be a historical heart rate value of the monitored person.
In an embodiment, the second evaluation module 35 may be further configured to: if the difference between the second heart rate value and the historical heart rate value is between the second difference threshold value and the first difference threshold value and the second heart rate value is in the first heart rate range, the second evaluation result is undetermined; correspondingly, the heart rate determination module 36 may be configured to: and calculating a heart rate result according to the historical heart rate value and the second heart rate value.
In an embodiment, when the second evaluation result is pending, the heart rate determination module 36 may be further configured to: and according to the historical heart rate value and the second heart rate value, obtaining a heart rate result through weighted summation calculation.
In an embodiment, the heart rate monitoring device may be further configured to: calculating a change amplitude according to the absolute value of the difference between the historical heart rate value and the heart rate result of the monitored person, wherein the change amplitude represents the change amplitude of the output current heart rate value and the historical heart rate value, and generating the current heart rate value and outputting the current heart rate value according to the historical heart rate value and the change amplitude.
In an embodiment, the specific calculation manner of the change amplitude may be: if the absolute value of the difference between the historical heart rate value and the heart rate result is less than or equal to the third difference threshold, then the magnitude of the change is determined to be equal to one.
Alternatively, if the absolute value of the difference between the historical heart rate value and the heart rate result is greater than the third difference threshold, indicating that the difference between the historical heart rate value and the heart rate result is greater, the magnitude of the change may be set based on the difference between the historical heart rate value and the heart rate result.
In an embodiment, the heart rate monitoring device may be further configured to: filtering the PPG data; correspondingly, the time domain calculation module 32 may be configured to: performing time domain analysis on the filtered PPG data; correspondingly, the frequency calculation module 34 may be configured to: and carrying out frequency domain analysis on the PPG data after the filtering treatment.
In an embodiment, the heart rate monitoring device may be further configured to: and acquiring the motion state information of the monitored person, wherein the state information represents the motion state of the monitored person, and if the acquired motion state information represents that the monitored person is changed from the motion state to the static state, carrying out zero clearing processing on the historical data in the filter subjected to the filtering processing.
Next, an electronic device according to an embodiment of the present application is described with reference to fig. 4. The electronic device may be either or both of the first device and the second device, or a stand-alone device independent thereof, which may communicate with the first device and the second device to receive the acquired input signals therefrom.
Fig. 4 illustrates a block diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 4, the electronic device 10 includes one or more processors 11 and a memory 12.
The processor 11 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
Memory 12 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 11 to implement the methods of the various embodiments of the present application described above and/or other desired functions. Various contents such as an input signal, a signal component, a noise component, and the like may also be stored in the computer-readable storage medium.
In one example, the electronic device 10 may further include: an input device 13 and an output device 14, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
When the electronic device is a stand-alone device, the input means 13 may be a communication network connector for receiving the acquired input signals from the first device and the second device.
In addition, the input device 13 may also include, for example, a keyboard, a mouse, and the like.
The output device 14 may output various information to the outside, including the determined distance information, direction information, and the like. The output means 14 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device 10 that are relevant to the present application are shown in fig. 4 for simplicity, components such as buses, input/output interfaces, etc. are omitted. In addition, the electronic device 10 may include any other suitable components depending on the particular application.
The computer program product may write program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (15)

1. A heart rate monitoring method, comprising:
Collecting photoplethysmogram PPG data of a monitored person;
performing time domain analysis on the PPG data, and calculating a first heart rate value of the monitored person according to a time domain analysis result;
performing credible evaluation on the first heart rate value to obtain a first evaluation result;
if the first evaluation result represents that the first heart rate value is abnormal, performing frequency domain analysis on the PPG data, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result;
performing credible evaluation on the second heart rate value to obtain a second evaluation result; and if the second evaluation result represents that the second heart rate value is credible, determining that the second heart rate value is the heart rate result of the monitored person.
2. The heart rate monitoring method of claim 1, wherein,
the performing time domain analysis on the PPG data, calculating a first heart rate value of the monitored person according to a time domain analysis result, including: sliding on the PPG data with a first time window, determining the peak-to-peak value of the data within each sliding first time window, calculating the first heart rate value according to each adjacent peak-to-peak value;
if the first evaluation result represents that the first heart rate value is abnormal, performing frequency domain analysis on the PPG data, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result, wherein the method comprises the following steps: if the first evaluation result represents that the first heart rate value is abnormal, sliding on the PPG data by a second time window, performing Fourier transform on the data of the second time window to obtain frequency domain features, and calculating the second heart rate value according to the frequency domain features;
Wherein the first time window is shorter than the second time window, and the first time window and the second time window are aligned right on a time axis.
3. A heart rate monitoring method according to claim 2, wherein the sliding over the PPG data over a first time window, determining peak-to-peak values of data within each sliding first time window, calculating the first heart rate value from each adjacent peak-to-peak value, comprises:
sliding over the PPG data with the first time window to obtain a plurality of data points within the first time window of each sliding;
sequentially judging the size of a new data point relative to a previous data point, and if the new data point is smaller than the previous data point, determining the previous data point as a peak-to-peak value;
calculating the time interval between adjacent peaks and peaks to obtain a heartbeat period;
and calculating the first heart rate value according to the heart cycle.
4. The heart rate monitoring method of claim 1, wherein,
before said time domain analysis of the PPG data or said frequency domain analysis of the PPG data, the method further comprises: filtering the PPG data;
the performing time domain analysis on the PPG data includes: performing time domain analysis on the filtered PPG data;
The performing frequency domain analysis on the PPG data includes: and carrying out frequency domain analysis on the PPG data after the filtering treatment.
5. The heart rate monitoring method of claim 4, wherein the method further comprises:
acquiring motion state information of the monitored person;
and if the acquired motion state information indicates that the monitored person changes from a motion state to a static state, performing zero clearing processing on the historical data in the filter subjected to the filtering processing.
6. The heart rate monitoring method according to any one of claims 1-5, wherein the performing a trusted evaluation on the first heart rate value to obtain a first evaluation result includes:
evaluating the first heart rate value based on the historical heart rate value of the monitored person, a preset first heart rate range and a preset second heart rate range to obtain a first evaluation result; and/or
The step of performing the trusted evaluation on the second heart rate value to obtain a second evaluation result includes:
evaluating the second heart rate value based on the historical heart rate value of the monitored person, the first heart rate range and the second heart rate range to obtain a second evaluation result;
wherein the first heart rate range is equal to the second heart rate range or the first heart rate range is included in the second heart rate range.
7. The heart rate monitoring method according to claim 6, wherein the evaluating the first heart rate value based on the historical heart rate value of the monitored person and a preset first heart rate range, a second heart rate range, and obtaining the first evaluation result includes:
if the first heart rate value is in the first heart rate range and the difference between the first heart rate value and the historical heart rate value is larger than a preset first difference value threshold value or the first heart rate value exceeds the second heart rate range, determining that the first evaluation result is abnormal; and/or
The step of evaluating the second heart rate value based on the historical heart rate value of the monitored person, the first heart rate range and the second heart rate range, and the step of obtaining the second evaluation result comprises the following steps:
if the difference between the second heart rate value and the historical heart rate value is smaller than or equal to a preset second difference threshold value and the second heart rate value is in the first heart rate range, determining that the second evaluation result is credible; wherein the second difference threshold is less than the first difference threshold.
8. The heart rate monitoring method according to claim 7, wherein the evaluating the first heart rate value based on the historical heart rate value of the monitored person and a preset first heart rate range, a second heart rate range, and obtaining the first evaluation result includes:
If the difference between the first heart rate value and the historical heart rate value is between the second difference threshold and the first heart rate value is within the first heart rate range, determining that the first evaluation result is pending;
the heart rate monitoring method further comprises the following steps:
and if the first evaluation result is undetermined, calculating to obtain the heart rate result according to the historical heart rate value and the first heart rate value.
9. The heart rate monitoring method of claim 8, wherein the calculating the heart rate result from the historical heart rate value and the first heart rate value comprises:
and according to the historical heart rate value and the first heart rate value, obtaining the heart rate result through weighted summation calculation.
10. The heart rate monitoring method of any one of claims 1-5, further comprising:
and if the second evaluation result represents that the second heart rate value is abnormal, determining that the heart rate result is the historical heart rate value of the monitored person.
11. The heart rate monitoring method of any one of claims 1-5, further comprising:
calculating a change amplitude according to the absolute value of the difference between the historical heart rate value of the monitored person and the heart rate result; the change amplitude represents the change amplitude of the output current heart rate value and the history heart rate value;
Generating the current heart rate value according to the historical heart rate value and the change amplitude;
outputting the current heart rate value.
12. The heart rate monitoring method of claim 11, wherein calculating the magnitude of change from the absolute value of the difference between the historical heart rate value of the monitored person and the heart rate result comprises:
and if the absolute value of the difference between the historical heart rate value and the heart rate result is smaller than or equal to a third difference threshold value, determining that the change amplitude is equal to one.
13. A heart rate monitoring device, comprising:
the data acquisition module is used for acquiring the photoplethysmogram signal PPG data of the monitored person;
the time domain calculation module is used for performing time domain analysis on the PPG data and calculating a first heart rate value of the monitored person according to a time domain analysis result;
the first evaluation module is used for carrying out credible evaluation on the first heart rate value to obtain a first evaluation result;
the frequency calculation module is used for carrying out frequency domain analysis on the PPG data if the first evaluation result represents that the first heart rate value is abnormal, and calculating a second heart rate value of the monitored person according to the frequency domain analysis result;
The second evaluation module is used for carrying out credible evaluation on the second heart rate value to obtain a second evaluation result;
and the heart rate determining module is used for determining the second heart rate value as the heart rate result of the monitored person if the second evaluation result represents that the second heart rate value is credible.
14. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-12 when the computer program is executed.
15. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-12.
CN202311588807.7A 2023-11-24 2023-11-24 Heart rate monitoring method and device, electronic equipment and storage medium Pending CN117357086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311588807.7A CN117357086A (en) 2023-11-24 2023-11-24 Heart rate monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311588807.7A CN117357086A (en) 2023-11-24 2023-11-24 Heart rate monitoring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117357086A true CN117357086A (en) 2024-01-09

Family

ID=89391181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311588807.7A Pending CN117357086A (en) 2023-11-24 2023-11-24 Heart rate monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117357086A (en)

Similar Documents

Publication Publication Date Title
US5924980A (en) Method and apparatus for adaptively reducing the level of noise in an acquired signal
CN108324271B (en) Electrocardiosignal identification method and system and electrocardiosignal monitoring equipment
KR20160094265A (en) Computing device and method for analyzing biophysiological rate features thereof
KR20150113700A (en) System and method for diagnosis
US20170027464A1 (en) Detecting Artifacts in a Signal
CN110037668A (en) The system that pulse signal time-space domain binding model judges age, health status and malignant arrhythmia identification
CN108937957A (en) Detection method, device and detection device
CN111588367A (en) Heart rate detection method and device and computer readable storage medium
WO2008035611A1 (en) Data processing device, data processing method, and data processing program
CN104382618A (en) Denoising method based on fetal heart rate detection and fetal heart rate detector
CN109758140A (en) A kind of heart rate detection method and device
CN108042107A (en) A kind of PPG signals puppet difference correcting method
CN112587133A (en) Method for measuring blood oxygen saturation
KR20180109903A (en) Method and apparatus for detecting living tissue using signal analysis
Ghahjaverestan et al. Switching Kalman filter based methods for apnea bradycardia detection from ECG signals
CN117357086A (en) Heart rate monitoring method and device, electronic equipment and storage medium
CN111278353A (en) Method and system for detecting vital sign signal noise
WO2020133562A1 (en) Mobile monitoring device, and physiological signal adjustment and processing method
CN116502124A (en) Pulse wave signal quality evaluation method and device and computer readable storage medium
JP4322302B1 (en) Biological signal analyzer
KR101715502B1 (en) Fuzzy logic recommendation application for vestibulo-ocular reflex estimation
KR20180128634A (en) R-peak detection method and system using portable bio-information measuring terminal
JP7161306B2 (en) Measuring device, measuring method and program
CN112932423A (en) Cardiovascular and cerebrovascular disease prediction method, system and equipment based on external counterpulsation intervention
US20210275048A1 (en) Biometric information processing apparatus and biometric information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination