The present application is a U.S. National Stage application of International application No. PCT/JP2015/074406 filed on Aug. 28, 2015, which claims priority to Japanese Application No. 2014-183013 filed on Sep. 9, 2014, all of which are incorporated herein by reference.
The present invention relates to a heartbeat detection method and heartbeat detection device for extracting biological information such as a heartbeat interval (R-R interval) from an electrocardiographic waveform.
An ECG (Electrocardiogram) waveform is obtained by observing and recording the electrical activity of a heart, and is measured by attaching electrodes to a body surface in a general method. As an ECG waveform lead system, that is, an electrode arrangement, there are various types using limbs and chest. In the V3 to V5 leads among precordial leads, an electrode is arranged at the left chest. In the CC5 lead suitable for monitoring an ECG waveform for a long time, electrodes are arranged at the symmetrical positions of left and right chests. These leads have the advantage that a stable waveform having a large amplitude is obtained.
It is known that biological information such as an R-R interval obtained from an ECG waveform is an index reflecting the autonomic activity. It is useful for evaluation of the autonomic function to obtain an ECG waveform in daily life and analyze data of a heartbeat fluctuation from detected heartbeats. Furthermore, there is an application in which an exercise tolerance is estimated from heartbeat data during an exercise, and used for optimization or the like.
As a conventional heartbeat detection method, the following literatures are known. Japanese Patent Laid-Open No. 2002-78695 discloses an arrangement for removing the fluctuation of the baseline of an ECG waveform. In addition, Japanese Patent Laid-Open No. 2003-561 discloses an arrangement of recognizing an R wave using a threshold based on an amplitude between the peak and valley of a waveform.
A method of obtaining the R-R interval or the like based on a change in value obtained by calculating the first derivative of an ECG waveform is described in “ECG Implementation on the TMS320C5515 DSP Medical Development Kit (MDK) with the ADS1298 ECG-FE”, Texas Instruments Incorporated, <http://www.ti.com/lit/an/sprabj1/sprabj1.pdf>, 2011. More specifically, the absolute value of the difference between the (n+1)th sampling value and the (n−1)th sampling value is obtained, peaks are detected based on a threshold, and then the time width between two peaks is set as the R-R interval.
However, the above-described heartbeat detection method has the following problem. That is, if heartbeat data in daily life or during an exercise is to be recorded or analyzed, noise caused by a body motion or the like may be mixed into an ECG waveform, unlike measurement in a rest state.
On the other hand, there is also provided a method of detecting a heartbeat based on the derivative of an ECG waveform. In general, an ECG waveform is processed as a discrete data sequence in data processing. Therefore, obtaining the derivative of an ECG waveform is equivalent to obtaining the time subtraction of the ECG waveform.
The present invention has been made to solve the above-described problem, and has as its object to provide a heartbeat detection method and heartbeat detection device, which can appropriately detect a heartbeat and its time from data in which noise is superimposed on an ECG waveform.
According to the present invention, there is provided a heartbeat detection method comprising a peak search step of searching for one of a peak at which a value M obtained from a sampling data sequence of an electrocardiographic waveform of a living body changes from an increase to a decrease and a peak at which the value M changes from a decrease to an increase, and a heartbeat time determination step of checking, among the values M obtained from the sampling data sequence, the value M in a predetermined time domain before a time of the peak and the value M in a predetermined time domain after the time of the peak, and setting the time of the peak as a heartbeat time if differences between the value M at the time of the peak and the values M in the predetermined time domains are not smaller than a predetermined amount.
According to the present invention, there is also provided a heartbeat detection device comprising peak search means for searching for one of a peak at which a value M obtained from a sampling data sequence of an electrocardiographic waveform of a living body changes from an increase to a decrease and a peak at which the value M changes from a decrease to an increase, and heartbeat time determination means for checking, among the values M obtained from the sampling data sequence, the value M in a predetermined time domain before a time of the peak and the value M in a predetermined time domain after the time of the peak, and setting the time of the peak as a heartbeat time if differences between the value M at the time of the peak and the values M in the predetermined time domains are not smaller than a predetermined amount.
According to the present invention, it is possible to appropriately detect a heartbeat even from a sampling data sequence including noise by searching for a peak at which a value M obtained from the sampling data sequence of an electrocardiographic waveform of a living body changes from an increase to a decrease or from a decrease to an increase, checking the value M in a predetermined time domain before a time of the peak and the value M in a predetermined time domain after the time of the peak, and setting the time of the peak as a heartbeat time if the difference between the value M at the time of the peak and the values M in the predetermined time domains is equal to or larger than a predetermined amount. In addition, according to the present invention, since a peak derived from a heartbeat is detected without using the threshold, even if the level of the target electrocardiographic waveform changes, it is possible to appropriately detect a heartbeat without any influence of the change.
[Principle of Invention]
Referring to
It is possible to detect the peak D by, for example, checking a value in a time range A1 of −100 ms to −15 ms and a value in a time range A2 of +15 ms to +100 ms with respect to time K at which the amount of change of the sampling data of the ECG waveform changes from a decrease to an increase, and imposing the condition that the values in the ranges A1 and A2 are larger than a value at time K by 0.5 or more. Since this condition is satisfied by peaks caused by other heartbeats, these peaks can be detected by the same series of procedures.
As described above, according to the present invention, let M be a value obtained from the sampling data sequence of the ECG waveform. With respect to time T of a peak at which the value M changes from an increase to a decrease or from a decrease to an increase, the value M in a predetermined time domain of (T−Δt2) to (T−Δt1) before time T of the peak and the value M in a predetermined time domain of (T+Δt1) to (T+Δt2) after time T of the peak are checked (Δt2>Δt1). If the differences between the value M at time T of the peak and the values M in the predetermined time domains are equal to or larger than a predetermined amount y, time T of the peak is set as a heartbeat time.
When detecting a peak based on a threshold from a given waveform, if many noise components are included, it is difficult to detect a peak. This is because detection based on the threshold pays attention to the root side of a peak. If noise components are superimposed, a portion which does not originally exceed the threshold and does not correspond to a peak exceeds the threshold, causing erroneous detection. To avoid such situation, paying attention to the tip side of a peak is effective. That is, even if a waveform includes many noise components, it is possible to detect a peak by specifying a portion protruding more than its peripheral portion. To specify a portion protruding more than its peripheral portion, the above-described condition is imposed.
In the present invention, as the value M obtained from the sampling data sequence of the ECG waveform, the sampling data itself, the amount of change (first derivative value) of the sampling data, or the product of the sampling data and the amount of change (first derivative value) of the sampling data is used.
If the sampling data itself is used as the value M obtained from the sampling data sequence, the peak of the R or S wave is detected as the peak of a waveform derived from a heartbeat.
If the amount of change (first derivative value) of the sampling data is used as the value M obtained from the sampling data sequence, the peak of the amount of change of the sampling data caused by an abrupt change from the R wave to the S wave is detected as the peak of a waveform derived from a heartbeat. In the sampling data sequence of the ECG waveform, the first derivative value of the sampling data at given time K is obtained by subtracting sampling data at time (K−W) from sampling data at time (K+W) (W is, for example, 5 ms).
If the product of the amount of change (first derivative value) of the sampling data and the sampling data is used as the value M obtained from the sampling data sequence, a peak synergistically emphasized by multiplication is detected as the peak of a waveform derived from a heartbeat. The sampling data sequence of the ECG waveform and a data sequence obtained by calculating the derivative of the ECG waveform each include peak components of the same beating rhythm. If these data sequences are overlaid by shifting them by a given time width, the peak components are synchronized with each other. Therefore, by multiplying the data sequences under appropriate conditions, it is possible to emphasize the peak components derived from the heartbeats.
To calculate a product, the first derivative value of the sampling data at given time K is multiplied by sampling data at time (K−t) a predetermined time t before time K. The peak of the first derivative value appears about 10 to 12 ms after the peak of the R wave of the ECG waveform. Therefore, if the first derivative value is used, the predetermined time t is set to satisfy 10 ms≤t≤12 ms.
An embodiment of the present invention will be described below with reference to the accompanying drawings.
The heartbeat detection method according to the embodiment will be described below. In this specification, a procedure of detecting a heartbeat and calculating heartbeat time of the heartbeat will be explained. By repeating calculation of heartbeat time for the period of ECG waveform data, sequential data of heartbeat times are successively obtained, and the index of a heartbeat fluctuation can be calculated from the sequential data.
In this embodiment, X(i) represents a data sequence obtained by sampling the ECG waveform where i (i=1, 2, . . . ) represents a number assigned to one sampling data. As the number i is larger, sampling time is later, as a matter of course. Furthermore, a represents an integer obtained by dividing, by the sampling interval, half (W described above) the time interval when obtaining the first derivative value of the sampling data X(i), b1 represents an integer obtained by dividing, by the sampling interval, first time (Δt1 described above) defining one of times defining the ends of a predetermined time domain around a peak, which is closer to the peak, and b2 represents an integer obtained by dividing, by the sampling interval, second time (Δt2 described above) defining the other one of times defining the ends of the predetermined time domain around the peak, which is farther from the peak (b2>b1).
The electrocardiograph 1 measures the ECG waveform of a living body (human body) (not shown), and outputs the sampling data sequence X(i) of the ECG waveform. At this time, the electrocardiograph 1 outputs the data sequence by adding sampling time information to each sampling data. Note that a practical method of measuring the ECG waveform is a well-known technique and a detailed description thereof will be omitted.
The storage unit 2 stores the sampling data sequence X(i) of the ECG waveform and the sampling time information, which have been output from the electrocardiograph 1.
The acquisition unit 3 acquires the amount of change of the sampling data X(i) as a value M obtained from the sampling data sequence (step S0 of
The peak search unit 4 searches for a peak at which the amount of change of the sampling data X(i) changes from a decrease to an increase. First, the peak search unit 4 sets the number (counter variable) i for successively reading out the sampling data sequence X(i) to an initial value (n in this example) (step S1 of
Next, the peak search unit 4 determines whether {(X(i+1+a)−X(i+1−a))−(X(i+a)−X(i−a))}×{(X(i+a)−X (i−a))−(X (i−1+a)−X(i−1−a))} is equal to or smaller than 0 (step S2 of
If {(X (i+1+a)−X (i+1−a))−(X (i+a)−X(i−a))}×{(X(i+a)−X(i−a))−(X(i−1+a)−X(i−1−a))} is larger than 0, the peak search unit 4 determines that the amount of change of the sampling data X(i) has not changed from a decrease to an increase, and sets i=i+(step S3 of
If {(X(i+1+a)−X(i+1−a))−(X(i+a)−X(i−a))}×{(X (i+a)−X (i−a))−(X (i−1+a)−X(i−1−a))} is equal to or smaller than 0, the peak search unit 4 determines that the amount of change of the sampling data X(i) has changed from a decrease to an increase at time T indicated by i (YES in step S2).
If it is determined that the amount of change of the sampling data X(i) has changed from a decrease to an increase, the heartbeat time determination unit 5 checks the amount of change of the sampling data in a time domain around time T indicated by i, and determines whether time T indicated by i is set as a heartbeat time.
First, the heartbeat time determination unit 5 obtains the minimum value of the amount of changes {(X(i−b2+a)−X(i−b2−a)), (X(i−b2+1+a)−X(i−b2+1−a)), . . . , (X(i−b1+a)−X(i−b1−a))} of the sampling data in a predetermined time domain before time T indicated by i, and determines whether this minimum value is equal to or larger than a value obtained by adding a predetermined amount y to the amount of change (X(i+a)−X(i−a)) of the sampling data X(i) at time T indicated by i (step S4 of
If the minimum value obtained in step S4 is smaller than (X(i+a)−X(i−a))+y, the heartbeat time determination unit 5 determines that the difference between the amount of change of the sampling data in the predetermined time domain before time T indicated by i and the amount of change (X(i+a)−X(i−a)) of the sampling data X(i) at time T indicated by i is smaller than the predetermined amount y, and sets i=i+1 (step S3), thereby returning to step S2.
On the other hand, if the minimum value obtained in step S4 is equal to or larger than (X(i+a)−X(i−a))+y, the heartbeat time determination unit 5 obtains the minimum value of the amount of changes {(X(i+b1+a)−X(i+b1−a)), (X(i+b1+1+a)−X(i+b1+1−a)), . . . , (X(i+b2+a)−X(i+b2−a))} of the sampling data in a predetermined time domain after time T indicated by i, and determines whether the minimum value is equal to or larger than a value obtained by adding the predetermined amount y to the amount of change (X(i+a)−X(i−a)) of the sampling data X(i) at time T indicated by i (step S5 of
If the minimum value obtained in step S5 is smaller than (X(i+a)−X(i−a))+y, the heartbeat time determination unit 5 determines that the difference between the amount of change of the sampling data in the predetermined time domain after time T indicated by i and the amount of change (X(i+a)−X(i−a)) of the sampling data X(i) at time T indicated by i is smaller than the predetermined amount y, and sets i=i+1 (step S3), thereby returning to step S2.
If the minimum value obtained in step S5 is equal to or larger than (X(i+a)−X(i−a))+y, the heartbeat time determination unit 5 ends the processing of checking the amount of changes of the sampling data in the time domains around time T indicated by i. At this time, time T indicated by i is set as a candidate of heartbeat time.
Next, the heartbeat time determination unit 5 determines whether the candidate of heartbeat time is appropriate, and fixes heartbeat time.
First, the heartbeat time determination unit 5 determines whether the difference between time T indicated by i and immediately precedingly detected heartbeat time T(−1) is equal to or longer than a predetermined time (step S6 of
A general normal value range exists for a heartbeat interval. If a very short heartbeat interval, as compared with the range, is detected, noise superimposed on an ECG waveform due to a body motion or the like is erroneously recognized as a heartbeat at high probability. It is possible to prevent erroneous detection caused by noise or the like by imposing the condition that the difference between time T of the detected peak and an immediately preceding heartbeat time T(−1) is equal to or longer than the predetermined time.
Furthermore, the heartbeat time determination unit 5 determines whether a heartbeat interval (T−T(−1)) when time T indicated by i is considered as a heartbeat time has not increased from an immediately preceding heartbeat interval (T(−1)−T(−2)) at a predetermined rate or more (step S7 of
If detection of a given heartbeat fails, data obtained as the heartbeat interval between heartbeats before and after the given heartbeat indicates a value about twice larger than an actual value, and is inappropriately used for evaluation of the autonomic function or the like. It is possible to exclude the erroneous data, for which detection of a heartbeat has failed, from the analysis target of the biological information by imposing the condition that the detected heartbeat interval has not increased at the predetermined rate or more.
If the difference between time T indicated by i and an immediately preceding heartbeat time T(−1) is equal to or longer than the predetermined time, and the increasing rate (T−T(−1))/(T(−1)−T(−2)) of the heartbeat interval is lower than the predetermined value, the heartbeat time determination unit 5 adopts time T indicated by i as a heartbeat time (step S8 of
After the end of step S8, i=i+1 is set and the process returns to step S2. This starts detection of the next heartbeat. Alternatively, the values of i, the number of which corresponds to a predetermined time shorter than the minimum value of the heartbeat interval to be detected, may be skipped, and the process may returns to step S2. By repeating the processes in steps S2 to S8, it is possible to obtain the sequential data of the heartbeat times, and obtain the index of a heartbeat fluctuation from the sequential data.
As described above, in this embodiment, it is possible to appropriately detect a heartbeat even from a sampling data sequence including noise by detecting a peak derived from a heartbeat based on the tip portion of the peak in the sampling data sequence of the ECG waveform. In this embodiment, since a peak derived from a heartbeat is detected without using a threshold, even if the level of a target ECG waveform changes, it is possible to appropriately detect the heartbeat without any influence of the change.
The second embodiment of the present invention will be described next. This embodiment is a modification of the first embodiment, and is an example in which sampling data itself is used as a value M obtained from a sampling data sequence. In this embodiment, the arrangement of a heartbeat detection device is the same as in the first embodiment, and a description thereof will be provided using reference numerals in
An acquisition unit 3 according to this embodiment acquires, from a storage unit 2, sampling data X(i) as the value M obtained from the sampling data sequence (step S0a of
A peak search unit 4 determines whether {X(i+1)−X(i)}×{X(i)−X(i−1)} is equal to or smaller than 0 (step S2a of
If it is determined that the sampling data X(i) changes from an increase to a decrease, a heartbeat time determination unit 5 obtains the maximum value of sampling data {X(i−b2), X(i−b2+1), . . . , X(i−b1)} of a predetermined time domain before time T indicated by i, and determines whether the maximum value is equal to or smaller than a value obtained by subtracting a predetermined amount y from the sampling data X(i) at time T indicated by i (step S4a of
On the other hand, if the maximum value obtained in step S4a is equal to or smaller than X(i)−y, the heartbeat time determination unit 5 obtains the maximum value of sampling data {X(i+b1), X(i+b1+1), . . . , X(i+b2)} in a predetermined time domain after time T indicated by i, and determines whether the maximum value is equal to or smaller than the value obtained by subtracting the predetermined amount y from the sampling data X(i) at time T indicated by i (step S5a of
If the maximum value obtained in step S5a is equal to or smaller than X(i)−y, the heartbeat time determination unit 5 ends the processing of checking the sampling data in the time domains around time T indicated by i. The remaining arrangement is as described in the first embodiment.
In the example of
In this embodiment, with respect to time T of the peak at which the sampling data of the ECG waveform changes from an increase to a decrease, the sampling data in the predetermined time domain of (T−Δt2) to (T−Δt1) before time T of the peak and the sampling data in the predetermined time domain of (T+Δt1) to (T+Δt2) after time T of the peak are checked. If the differences between the sampling data at time T of the peak and the maximum values of the sampling data in the predetermined time domains are equal to or larger than the predetermined amount y, time T of the peak is set as a heartbeat time.
In
As described above, in this embodiment, it is possible to obtain the same effect as in the first embodiment.
The third embodiment of the present invention will be described next. This embodiment is a modification of the first embodiment, and is an example in which the product of sampling data and the amount of change (first derivative value) of sampling data is used as a value M obtained from a sampling data sequence. In this embodiment as well, the arrangement of a heartbeat detection device is the same as in the first embodiment, and a description thereof will be provided using reference numerals in
An acquisition unit 3 according to this embodiment acquires, as the value M obtained from the sampling data sequence, the product of sampling data and the amount of change (first derivative value) of sampling data (step S0b of
The following description assumes that the product (X(i+a)−X(i−a))×X(i−b) is set as M(i).
A peak search unit 4 determines whether {M(i+1)−M(i)}×{M(i)−M(i−1)} is equal to or smaller than 0 (step S2b of
If it is determined that the product M(i) changes from a decrease to an increase, a heartbeat time determination unit 5 obtains the minimum value of products {M(i−b2), M(i−b2+1), . . . , M(i−b1)} in a predetermined time domain before time T indicated by i, and determines whether the minimum value is equal to or larger than a value obtained by adding a predetermined amount y to the product M(i) at time T indicated by i (step S4b of
On the other hand, if the minimum value obtained in step S4b is equal to or larger than M(i)+y, the heartbeat time determination unit 5 obtains the minimum value of products {M(i+b1), M(i+b1+1), . . . , M(i+b2)} in a predetermined time domain after time T indicated by i, and determines whether the minimum value is equal to or larger than the value obtained by adding the predetermined amount y to the product M(i) at time T indicated by i (step S5b of
If the minimum value obtained in step S5b is equal to or larger than M(i)+y, the heartbeat time determination unit 5 ends the processing of checking the products in the time domains around time T indicated by i. The remaining arrangement is as described in the first embodiment.
The R and S waves of the ECG waveform are generated by ventricular contraction, and the interval from the peak of the R wave of the ECG waveform to the peak of the first derivative value caused by an abrupt decrease in potential from the R wave to the S wave is about 10 ms, and is hardly influenced by a body type difference or the like. In this case, since the downward convex peak of the first derivative value of the ECG waveform is multiplied by the upward convex peak of the R wave of the ECG waveform, a peak to be detected to obtain an R-R interval is a downward convex peak.
A broken line 101 in
In this embodiment, with respect to time T of the peak at which the product M changes from a decrease to an increase, the product M in the predetermined time domain of (T−Δt2) to (T−Δt1) before time T of the peak and the product M in the predetermined time domain of (T+Δt1) to (T+Δt2) after time T of the peak are checked. If the differences between the product M at time T of the peak and the minimum values of the products M in the predetermined time domains are equal to or larger than the predetermined amount y, time T of the peak is set as a heartbeat time.
In
As described above, in this embodiment, it is possible to obtain the same effect as in the first embodiment.
It is possible to obtain a significant effect by applying the heartbeat detection method according to each of the first to third embodiments to the ECG waveform of the ECG lead in which a large R wave and a deep S wave are obtained, for example, the ECG waveform of one of the V3 to V5 leads. It is especially preferable to apply the method to the ECG waveform of the CC5 lead or similar lead which is often used to obtain the ECG waveform in daily life.
The storage unit 2, acquisition unit 3, peak search unit 4, and heartbeat time determination unit 5 described in each of the first to third embodiments can be implemented by a computer including a CPU (Central Processing Unit), storage device, and interface and a program that controls these hardware resources. The CPU executes the processing described in each of the first to third embodiments in accordance with the program stored in the storage device.
The present invention is applicable to a technique of detecting heartbeats of a living body.
1 . . . electrocardiograph, 2 . . . storage unit, 3 . . . acquisition unit, 4 . . . peak search unit, 5 . . . heartbeat time determination unit
Number | Date | Country | Kind |
---|---|---|---|
2014-183013 | Sep 2014 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2015/074406 | 8/28/2015 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2016/039182 | 3/17/2016 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20050113703 | Farringdon et al. | May 2005 | A1 |
20060287606 | Hong | Dec 2006 | A1 |
20090156948 | Shimizu et al. | Jun 2009 | A1 |
20130267859 | Okuda et al. | Oct 2013 | A1 |
20150366473 | Shimuta et al. | Dec 2015 | A1 |
Number | Date | Country |
---|---|---|
2538710 | Mar 2005 | CA |
1113739 | Dec 1995 | CN |
101272731 | Sep 2008 | CN |
101953682 | Jan 2011 | CN |
101991410 | Mar 2011 | CN |
103153177 | Jun 2013 | CN |
103690156 | Apr 2014 | CN |
105007809 | Oct 2015 | CN |
2319410 | May 2011 | EP |
2628444 | Aug 2013 | EP |
2002-078695 | Mar 2002 | JP |
2003-000561 | Jan 2003 | JP |
2003-339651 | Dec 2003 | JP |
2007-504917 | Mar 2007 | JP |
2012-101027 | May 2012 | JP |
10-2006-0129178 | Dec 2006 | KR |
2005027720 | Mar 2005 | WO |
WO 2012049903 | Apr 2012 | WO |
WO 2014132713 | Sep 2014 | WO |
Entry |
---|
“ECG Implementation on the TMS320C5515 DSP Medical Development Kit (MDK) with the ADS1298 ECG-FE”, Texas Instruments Incorporated, <http://www.ti.com/lit/an/sprabj1/sprabj1.pdf>, 2011. |
Office Action received for Chinese Patent Application No. 201580047949.X, dated Jan. 30, 2019, 17 pages (8 pages of English Translation and 9 pages of Office Action). |
International Search Report and Written Opinion received for PCT Patent Application No. PCT/JP2015/074406, dated Dec. 1, 2015, 14 pages (7 pages of English Translation and 7 pages of Original Document). |
International Preliminary Report on Patentability received for PCT Patent Application No. PCT/JP2015/074406, dated Mar. 23, 2017, 12 pages (7 pages of English Translation and 5 pages of Original Document). |
Office Action received for Chinese Patent Application No. 201580047949.X, dated Nov. 28, 2019, 21 pages (12 pages of English Translation and 9 pages of Office Action). |
Office Action received for Chinese Patent Application No. 201580047949.X, dated Aug. 12, 2019, 8 pages (4 pages of English Translation and 4 pages of Office Action). |
Office Action received for Chinese Patent Application No. 201580047949.X, dated May 6, 2020, 30 pages (16 pages of English Translation and 14 pages of Office Action). |
Yurun, Ma, “The Research of ECG Signal Preprocessing and QRS Complex Detection Techniques”, Chinese Master's Theses Full-text Database Information Science and Technology, No. 11, Nov. 15, 2013, pp. 36-40 (Original Document Only). |
Number | Date | Country | |
---|---|---|---|
20170258351 A1 | Sep 2017 | US |