Heart rate detection method and heart rate detection device
The heartbeat detection method accurately identifies R waves by calculating and comparing two index values from specific time ranges in the ECG waveform, addressing the issue of misidentification of short peaks as R waves, thereby improving detection accuracy.
Patent Information
- Application Number
- JP2023544908
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-02
AI Technical Summary
Existing heartbeat detection methods based on the relationship between the peak of the time difference value of the ECG waveform and a threshold value are prone to mistakenly recognize peaks with a short time width as R waves.
A heartbeat detection method that calculates and compares two index values derived from specific time ranges of the ECG waveform, using a first index value and a second index value to determine the timing of R waves by setting conditions based on the relationship between these values and a threshold, ensuring accurate detection.
This method effectively distinguishes plausible R waves from peaks with short time widths, enhancing the accuracy of heartbeat detection by excluding peaks with low credibility as R waves.
Smart Images

Figure 0007589826000001 
Figure 0007589826000002 
Figure 0007589826000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a heartbeat detection method and a heartbeat detection device for detecting a heartbeat (R wave) from an electrocardiogram waveform. [Background technology]
[0002] An ECG (Electrocardiogram) waveform is a measurement of the electrical activity of the heart, and is made up of a series of heartbeat waveforms. A single heartbeat waveform is made up of components such as P waves, Q waves, R waves, S waves, and T waves, which reflect the activity of the atria and ventricles. Of these, the R wave is associated with ventricular contraction and has a large amplitude, so heartbeats are often detected based on the peaks derived from the R waves.
[0003] A conventional heartbeat detection method is disclosed in Patent Document 1. The method disclosed in Patent Document 1 uses an index value that focuses on the relationship between the peak of the time difference value of the ECG waveform and the values in a certain time domain before and after the peak, and detects R waves using a judgment logic based on a threshold. This method has the advantage that it can be sensitive not only to the amplitude but also to the shape (time width) of the ECG waveform, and that T waves, which are wider than R waves, are less likely to be mistaken for R waves.
[0004] 14 is a diagram showing an example of an ECG waveform. The ECG waveform includes one heartbeat. The amplitude (peak to valley) of the cardiac potential is approximately 500 μV, which is smaller than the normal value (2000 to 3000 μV), but the amplitude may attenuate depending on the position and state of the electrodes detecting the cardiac potential.
[0005] Fig. 15 is a diagram showing values obtained by taking the time difference of the ECG waveforms in Fig. 14 and inverting the positive and negative signs. By taking the time difference of the ECG waveforms, it can be confirmed that the upward peaks accompanying the steep drop in cardiac potential from the R wave to the S wave appear in line with the rhythm of the heartbeat.
[0006] The index value obtained by subtracting the maximum value of the positive and negative inverted time difference values in certain time ranges A and B around the time point t in Fig. 15 from the positive and negative inverted time difference value at the time point t corresponds to the height of the peak clearance around the time point t. This index value becomes a negative value for times outside the peak.
[0007] FIG. 16 is a plot of time series data of index values. According to FIG. 16, the index values have peaks with a time width smaller than the interval between time ranges A and B emphasized. When the detection target is an R wave, it is preferable to set time ranges A and B to 100 ms and the interval between time ranges A and B to 50 ms, for example. As shown in FIG. 16, R waves can be detected by applying a judgment logic based on a threshold value TH to the index values. The threshold value TH can be obtained by, for example, finding the maximum value of the index values in a period including peaks derived from multiple heartbeats and multiplying the maximum value by a coefficient of 1 or less.
[0008] However, in the method using the index values as described above, there is a possibility that a waveform that has a short duration and is considered inappropriate as an R wave may be mistaken for an R wave. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] Patent No. 6527286 Summary of the Invention [Problem to be solved by the invention]
[0010] The present invention has been made to solve the above-mentioned problems, and has an object to provide a heartbeat detection method and a heartbeat detection device that do not erroneously recognize a peak with an excessively short time width as a heartbeat. [Means for solving the problem]
[0011] The heartbeat detection method of the present invention includes a first step of calculating a positive / negative inverted value of a time difference of sampling data from a sampling data sequence of an electrocardiogram waveform of a living body for each sampling time; a second step of detecting, for each sampling time, a first maximum value of the positive / negative inverted value in a first time range before the sampling time of the processing target and the positive / negative inverted value in a second time range after the sampling time of the processing target; a third step of detecting, for each sampling time, a second maximum value of the positive / negative inverted value in a third time range before the sampling time of the processing target and the positive / negative inverted value in a fourth time range after the sampling time of the processing target; a fourth step of calculating, for each sampling time, a subtraction value obtained by subtracting the first maximum value from the positive / negative inversion value at the sampling time of the subject as a first index value; a fifth step of calculating, for each sampling time, a subtraction value obtained by subtracting the second maximum value from the positive / negative inversion value at the sampling time of the subject to be processed as a second index value; and a sixth step of setting the first sampling time as the heartbeat time when the second index value at the first sampling time at which the first index value exceeds a predetermined threshold value and the first index value at a second sampling time having a predetermined relationship with the first sampling time satisfy a predetermined condition.
[0012] Furthermore, in one configuration example of the heart rate detection method of the present invention, the timing of the leading edge of the third time range relative to the sampling time of the processing object is the same as the timing of the leading edge of the first time range, the timing of the trailing edge of the fourth time range relative to the sampling time of the processing object is the same as the timing of the trailing edge of the second time range, and the interval between the third time range and the fourth time range is shorter than the interval between the first time range and the second time range. Furthermore, in one configuration example of the heartbeat detection method of the present invention, the sixth step is characterized by including a step of setting the first sampling time as the heartbeat time when the first index value at the first sampling time increases relative to the first index value prior to the first sampling time, and the second index value at the first sampling time and the first index value at the second sampling time satisfy a predetermined condition. In one configuration example of the heartbeat detection method of the present invention, the interval between the third time range and the fourth time range is in the range of 20 ms to 30 ms.
[0013] The heartbeat detection device of the present invention includes a positive / negative inversion value calculation unit configured to calculate a positive / negative inversion value of a time difference of sampling data from a sampling data sequence of an electrocardiogram waveform of a living body for each sampling time; a first maximum value detection unit configured to detect, for each sampling time, a first maximum value among the positive / negative inversion value in a first time range before the sampling time of the processing target and the positive / negative inversion value in a second time range after the sampling time of the processing target; a second maximum value detection unit configured to detect, for each sampling time, the positive / negative inversion value in a third time range before the sampling time of the processing target and a second maximum value among the positive / negative inversion value in a fourth time range after the sampling time of the processing target; a first index value calculation unit configured to calculate, for each sampling time, a subtraction value obtained by subtracting the first maximum value from the positive / negative inversion value at the sampling time of the processing target as a first index value; a second index value calculation unit configured to calculate, for each sampling time, a subtraction value obtained by subtracting the second maximum value from the positive / negative inversion value at the sampling time of the processing target as a second index value; and a heartbeat time determination unit configured to determine the first sampling time as the heartbeat time when the second index value at the first sampling time at which the first index value exceeds a predetermined threshold and the first index value at a second sampling time having a predetermined relationship with the first sampling time satisfy a predetermined condition.
[0014] In addition, in one configuration example of the heart rate detection device of the present invention, the timing of the leading edge of the third time range relative to the sampling time of the processing object is the same as the timing of the leading edge of the first time range, the timing of the trailing edge of the fourth time range relative to the sampling time of the processing object is the same as the timing of the trailing edge of the second time range, and the interval between the third time range and the fourth time range is shorter than the interval between the first time range and the second time range. Furthermore, in one configuration example of the heartbeat detection device of the present invention, the heartbeat time determination unit determines the first sampling time as the heartbeat time when the first index value at the first sampling time increases relative to the first index value prior to the first sampling time, and the second index value at the first sampling time and the first index value at the second sampling time satisfy a predetermined condition. In one configuration example of the heartbeat detection device of the present invention, the interval between the third time range and the fourth time range is in the range from 20 ms to 30 ms. Effect of the Invention
[0015] According to the present invention, a first index value is calculated by subtracting the maximum value of the positive and negative inversion of the time difference in the first and second time ranges before and after the sampling time from the positive and negative inversion of the time difference at the sampling time to be processed, and a second index value is calculated by subtracting the maximum value of the positive and negative inversion of the time difference in the third and fourth time ranges before and after the sampling time from the positive and negative inversion of the time difference at the sampling time to be processed, and the first sampling time is set as the heartbeat time when the second index value at the first sampling time at which the first index value exceeds a threshold value and the first index value at the second sampling time having a predetermined relationship with the first sampling time satisfy a predetermined condition. As a result, in the present invention, it is possible to detect a peak of an index value that is likely to be an R wave and to exclude a peak of an index value that is too short in time width and has low reliability as an R wave, thereby enabling accurate heartbeat detection. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a diagram showing time difference positive / negative inversion values of an ECG waveform. [Diagram 2] FIG. 2 is a diagram showing time-series data of a first index value and a second index value of an ECG waveform. [Diagram 3] FIG. 3 is an enlarged view of FIG. [Figure 4] FIG. 4 is a diagram showing an example of a pseudo waveform that imitates an ECG waveform. [Diagram 5] FIG. 5 is a diagram showing time-series data of the first index value and the second index value of the pseudo waveform. [Figure 6A-6C] 6A to 6C are diagrams showing time-series data of a first index value and a second index value of an ECG waveform. [Figure 7A-7C] 7A to 7C are diagrams showing time-series data of the first index value and the second index value of the pseudo waveform. [Figure 8] FIG. 8 is a block diagram showing a configuration of a heartbeat detecting device according to an embodiment of the present invention. [Figure 9] FIG. 9 is a block diagram showing an example of the configuration of a maximum value detecting section, an index value calculating section, and an index value storing section of a heart rate detecting device according to an embodiment of the present invention. [Figure 10] FIG. 10 is a flow chart illustrating a heartbeat detection method according to an embodiment of the present invention. [Figure 11] FIG. 11 is a flowchart illustrating a method for calculating the first index value. [Figure 12] FIG. 12 is a flowchart illustrating a method for calculating the second index value. [Figure 13] FIG. 13 is a block diagram showing an example of the configuration of a computer that realizes a heartbeat detection device according to an embodiment of the present invention. [Figure 14] FIG. 14 is a diagram showing an example of an ECG waveform. [Figure 15] FIG. 15 is a diagram showing the time difference positive / negative inversion values of the ECG waveform of FIG. [Figure 16] FIG. 16 is a diagram showing time-series data of index values calculated by a conventional heartbeat detection method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] [Principle of the invention] FIG. 1 shows the positive / negative inverted time difference values of the same ECG waveform as in FIG. 15. The difference from FIG. 15 is that second time ranges C and D are also shown. The timing of the leading edge of time range C relative to the sampling time of the processing target (t in the example of FIG. 1) is the same as the timing of the leading edge of time range A. Also, the timing of the trailing edge of time range D relative to the sampling time of the processing target is the same as the timing of the trailing edge of time range B. Meanwhile, the interval between time ranges C and D is shorter than the interval between time ranges A and B. In the examples of FIG. 2 to FIG. 4 below, the interval between time ranges C and D is 24 ms.
[0018] The inverted positive and negative time difference value of the ECG waveform is calculated for each sampling time. The value obtained by subtracting the maximum value M1 of the inverted positive and negative time difference value in time range A before the sampling time to be processed and the inverted positive and negative time difference value in time range B after the sampling time to be processed from the inverted positive and negative time difference value at the sampling time to be processed is set as a first index value x for the sampling time to be processed. The value obtained by subtracting the maximum value M2 of the inverted positive and negative time difference value in time range C before the sampling time to be processed and the inverted positive and negative time difference value in time range D after the sampling time to be processed from the inverted positive and negative time difference value at the sampling time to be processed is set as a second index value y for the sampling time to be processed.
[0019] Fig. 2 is a plot of time series data of the first index value x and the second index value y of the ECG waveform in Fig. 14. It can be seen that the peak of the second index value y is narrower than the peak of the first index value x.
[0020] Figure 3 shows an enlarged view of the area around the peak derived from the R wave in Figure 2. In Figure 3, values at sampling intervals of 1 ms are plotted. It can be seen that the first index value x and the second index value y diverge as they move away from the apex of the peak. The reason that the first index value x and the second index value y diverge is that as the time shifts away from the center of the peak, the trailing edge of time range C and the leading edge of time range D interfere with the peak of the time difference positive / negative inversion value of the ECG waveform, causing the maximum value M2 in time ranges C and D to rise and the slope of the base of the peak of the second index value y to become steeper.
[0021] On the other hand, Fig. 4 is a diagram showing an example of a pseudo waveform that imitates an ECG waveform. The waveform shown in Fig. 4 is an example in which the time widths of Q waves, R waves, and S waves are shortened to about half, and shows an example that should not be detected as an R wave.
[0022] Figure 5 shows a plot similar to that of Figure 3 for the waveform of Figure 4. The deviation between the first index value x and the second index value y is smaller than in Figure 3. The reason for the small deviation between the first index value x and the second index value y is that the width of the peak is narrower than the interval between time ranges C and D, and the degree of interference between the time ranges C and D and the peak waveform is small, making it difficult for an increase in the maximum value M2 as in the case of Figure 3 to occur.
[0023] Comparing Figure 3 and Figure 5, in Figure 3, the difference between the first index value x and the second index value y gradually increases as one moves away from the peak, whereas in Figure 5, the difference between the first index value x and the second index value y is smaller than in Figure 3. To utilize such a relationship between the first index value x and the second index value y for R wave detection, it is advisable to focus on the relationship between the second index value y at a certain point in time and the first index value x at a slightly distant point in time.
[0024] In Fig. 3, the first index value x = x3 exceeds the threshold value TH at time t3. For example, if the second index value y = y3 at the same time t3 and the first index value x = x1 at the time two samples before that satisfy the condition (x1-y3)>a (a is a predetermined positive value), time t3 can be determined as the heartbeat time. In other words, the upward peak that appears immediately after time t3 can be detected as a peak derived from an R wave.
[0025] Under the same conditions, in the case of Figure 5, the first index value x = x3 is lower than the second index value y = y1, so time t3 is not detected as a heartbeat time and the peak in Figure 5 is not detected as a peak derived from an R wave.
[0026] In addition, the above condition may be satisfied when the first index value x and the second index value y pass the apex of the peak and fall. In order to prevent the condition from being satisfied when the first index value x and the second index value y fall, a further condition that the first index value x increases at time t3 (x3>x2) is imposed, so that the peak in FIG. 5 is not detected as a peak derived from an R wave.
[0027] Figures 6A to 6C are diagrams plotting time series data of the first index value x and the second index value y of the ECG waveform of Figure 14. Figures 7A to 7C are diagrams plotting time series data of the first index value x and the second index value y of the pseudo waveform of Figure 4. Figures 6A and 7A show the case where the interval between time ranges C and D is 20 ms, Figures 6B and 7B show the case where the interval between time ranges C and D is 24 ms, and Figures 6C and 7C show the case where the interval between time ranges C and D is 30 ms. The interval between time ranges A and B is 50 ms.
[0028] As shown in Fig. 7A, when the interval between time ranges C and D becomes short, the first index value x and the second index value y become separated even in the case of a pseudo waveform that should not be detected as an R wave. On the other hand, as shown in Fig. 6C, when the interval between time ranges C and D becomes long, the first index value x and the second index value y become close to each other even in the case of an ECG waveform. The interval between time ranges C and D to distinguish between an ECG waveform and a pseudo waveform is preferably set in the range of 20 ms to 30 ms.
[0029] [Example] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 8 is a block diagram showing the configuration of a heartbeat detection device according to an embodiment of the present invention. The heartbeat detection device includes an electrocardiograph 1 that outputs a sampling data string of an ECG waveform, a storage unit 2 that stores the sampling data string of the ECG waveform and information on the sampling time, a positive / negative inversion value calculation unit 3 that calculates a positive / negative inversion value of the time difference of the sampling data from the sampling data string of the ECG waveform for each sampling time, a maximum value detection unit 4 that detects a maximum value M1 of the positive / negative inversion value of the time difference in a time range A before the sampling time to be processed and the positive / negative inversion value of the time difference in a time range B after the sampling time to be processed for each sampling time, an index value calculation unit 5 that calculates a first index value x by subtracting the maximum value M1 from the positive / negative inversion value of the time difference at the sampling time to be processed for each sampling time, and an index value storage unit 6 that receives the first index value x as an input.
[0030] The heartbeat detection device further includes a maximum value detection unit 7 that detects, for each sampling time, a maximum value M2 among the positive / negative inverted time difference value in a time range C before the sampling time to be processed and the positive / negative inverted time difference value in a time range D after the sampling time to be processed; an index value calculation unit 8 that calculates, for each sampling time, a second index value y obtained by subtracting the maximum value M2 from the positive / negative inverted time difference value at the sampling time to be processed; an index value memory unit 9 that receives the second index value y as an input; and a heartbeat time determination unit 10 that determines the first sampling time as the heartbeat time when the second index value y at the first sampling time when the first index value x exceeds a threshold value TH and the first index value x at a second sampling time that has a predetermined relationship with the first sampling time satisfy a predetermined condition.
[0031] FIG. 9 is a block diagram showing an example of the configuration of maximum value detection units 4 and 7, index value calculation units 5 and 8, and index value storage units 6 and 9. The maximum value detection unit 4 is composed of a FIFO buffer (First In, First Out) 40 which receives as input the time difference positive / negative inverted value calculated by the positive / negative inverted value calculation unit 3, a FIFO buffer 41 which receives as input the output value of the FIFO buffer 40, a FIFO buffer 42 which receives as input the output value of the FIFO buffer 41, and a detection processing unit 43 which detects the maximum value M1 of the time difference positive / negative inverted value stored in the FIFO buffer 40 and the time difference positive / negative inverted value stored in the FIFO buffer 42 at each sampling time.
[0032] The index value calculation unit 5 is composed of a FIFO buffer 50 which receives as input the time difference positive / negative inverted value calculated by the positive / negative inverted value calculation unit 3, and a subtraction processing unit 51 which calculates a first index value x for each sampling time by subtracting the maximum value M1 detected by the maximum value detection unit 4 from the output value of the FIFO buffer 50. The index value storage unit 6 is composed of a FIFO buffer 60 to which the first index value x calculated by the subtraction processing unit 51 is input.
[0033] The maximum value detection unit 7 is composed of a FIFO buffer 70 which receives as input the time difference positive / negative inverted value calculated by the positive / negative inverted value calculation unit 3, a FIFO buffer 71 which receives as input the output value of the FIFO buffer 70, a FIFO buffer 72 which receives as input the output value of the FIFO buffer 71, and a detection processing unit 73 which detects the maximum value M2 of the time difference positive / negative inverted value stored in the FIFO buffer 70 and the time difference positive / negative inverted value stored in the FIFO buffer 72 for each sampling time.
[0034] The index value calculation unit 8 is composed of a FIFO buffer 80 which receives as input the time difference positive / negative inverted value calculated by the positive / negative inverted value calculation unit 3, and a subtraction processing unit 81 which calculates a second index value y for each sampling time by subtracting the maximum value M2 detected by the maximum value detection unit 7 from the output value of the FIFO buffer 80. The index value storage unit 9 is composed of a FIFO buffer 90 to which the second index value y calculated by the subtraction processing unit 81 is input.
[0035] The heartbeat detection method of this embodiment will be described below with reference to Figs. 10 to 12. Here, the procedure for detecting one heartbeat and obtaining the heartbeat time will be described. By repeating this calculation of the heartbeat time over the period of the ECG waveform data, time series data of the heartbeat time can be obtained.
[0036] In this embodiment, the data string obtained by sampling the ECG waveform is denoted as D(i). i (i=1, 2, ...) is a number given to data for one sampling. It goes without saying that the larger the number i, the later the sampling time.
[0037] The electrocardiograph 1 measures the ECG waveform of a living body (human body) (not shown) and outputs a sampling data string D(i) of the ECG waveform. At this time, the electrocardiograph 1 outputs each sampling data with information of the sampling time. Note that the specific method of measuring the ECG waveform is a well-known technique, so a detailed description will be omitted. The storage unit 2 stores a sampling data string D(i) of the ECG waveform output from the electrocardiograph 1 and information on the sampling time.
[0038] To calculate the time difference positive / negative inversion value Y(i) of the sampling data D(i), the positive / negative inversion value calculation unit 3 acquires data D(i+1) after one sampling of the sampling data D(i) and data D(i-1) before one sampling from the storage unit 2 (step S1 in FIG. 10). Then, the positive / negative inversion value calculation unit 3 calculates the time difference positive / negative inversion value Y(i) of the sampling data D(i) for each sampling time as follows (step S2 in FIG. 10). Y(i)=-{D(i+1)-D(i-1)} ···(1)
[0039] The maximum value detection unit 4 and the index value calculation unit 5 calculate the first index value x (step S3 in FIG. 10). Specifically, the positive / negative inversion value calculation unit 3 inputs the calculated time difference positive / negative inversion value Y(i) to the FIFO buffer 50 at each sampling time (step S100 in FIG. 11). The input value is held in the FIFO buffer 50 and is used for subtraction processing after a time period equivalent to the size of the FIFO buffer 50 (the delay time from when the time difference positive / negative inversion value is input to the FIFO buffer 50 until it is output).
[0040] Moreover, the positive / negative inversion value calculation unit 3 inputs the calculated time difference positive / negative inversion value Y(i) to the FIFO buffer 40 for each sampling time (step S101 in FIG. 11). The output of the FIFO buffer 40 is input to the FIFO buffer 41 (step S102 in FIG. 11), and the output of the FIFO buffer 41 is input to the FIFO buffer 42 (step S103 in FIG. 11). The FIFO buffers 40 to 42 are used to find the maximum value of the time difference positive / negative inversion value in the time ranges A and B.
[0041] Time interval L3 (the delay time from when the time difference positive / negative inverted value is input to FIFO buffer 41 until it is output) corresponding to the length of FIFO buffer 41 needs to be sufficiently wide with respect to the width of the peak derived from the R wave (approximately 10 ms), and is preferably about 50 ms. This interval L3 becomes the interval between time ranges A and B. Also, time interval L2 (the delay time from when the time difference positive / negative inverted value is input to FIFO buffer 40 until it is output) corresponding to the length of FIFO buffer 40 and time interval L4 (the delay time from when the time difference positive / negative inverted value is input to FIFO buffer 42 until it is output, L2=L4) corresponding to the length of FIFO buffer 42 are each appropriately about 100 ms.
[0042] Furthermore, the time interval L1 corresponding to the length of the FIFO buffer 50 may be set as L1=L2+L3 / 2. In the above numerical example, L1 is 125 ms. By setting L1=L2+L3 / 2 and L2=L4, it is possible to obtain maximum value M1 in the ranges of -(L2+L3 / 2) to -(L3 / 2) and (L3 / 2) to (L2+L3 / 2) for the time of output value b of the FIFO buffer 50 (the sampling time to be processed), and it becomes possible to subtract maximum value M1 from output value b.
[0043] The detection processing unit 43 detects a maximum value M1 of the positive / negative inverted time difference value stored in the FIFO buffer 40 and the positive / negative inverted time difference value stored in the FIFO buffer 42 for each sampling time (step S104 in FIG. 11). The subtraction processing unit 51 calculates a first index value x(i)=b−M1 by subtracting the maximum value M1 from the output value b of the FIFO buffer 50 for each sampling time (Step S105 in FIG. 11).
[0044] In this manner, the process of step S3 is carried out by maximum value detection section 4 and index value calculation section 5, and at the same time, the second index value y is calculated by maximum value detection section 7 and index value calculation section 8 (step S4 in FIG. 10).
[0045] Specifically, the positive / negative inversion value calculation unit 3 inputs the calculated time difference positive / negative inversion value Y(i) to the FIFO buffer 80 for each sampling time (step S200 in FIG. 12). The positive / negative inversion value calculation unit 3 also inputs the calculated time difference positive / negative inversion value Y(i) to the FIFO buffer 70 for each sampling time (step S201 in FIG. 12). The output of the FIFO buffer 70 is input to the FIFO buffer 71 (step S202 in FIG. 12), and the output of the FIFO buffer 71 is input to the FIFO buffer 72 (step S203 in FIG. 12). The FIFO buffers 70 to 72 are used to find the maximum value of the time difference positive / negative inversion value in the time ranges C and D.
[0046] In the above example, the time interval L7 (the delay time from when the time difference positive / negative inverted value is input to the FIFO buffer 71 until it is output) corresponding to the length of the FIFO buffer 71 is, for example, 24 ms. This interval L7 is the interval between time ranges C and D. In addition, the time interval L6 (the delay time from when the time difference positive / negative inverted value is input to the FIFO buffer 70 until it is output) corresponding to the length of the FIFO buffer 70 and the time interval L8 (the delay time from when the time difference positive / negative inverted value is input to the FIFO buffer 72 until it is output, L6=L8) corresponding to the length of the FIFO buffer 72 are appropriately about 113 ms. As is clear from the above explanation, L2+L3+L4=L6+L7+L8.
[0047] Furthermore, the time interval L5 corresponding to the length of the FIFO buffer 80 may be set as L5=L6+L7 / 2. Therefore, in the above numerical example, L5 is 125 ms. This value is the same as the length L1 of the FIFO buffer 50. By setting L5=L6+L7 / 2 and L6=L8, it is possible to obtain the maximum value M2 in the ranges of -(L6+L7 / 2) to -(L7 / 2) and (L7 / 2) to (L6+L7 / 2) for the time of the output value c of the FIFO buffer 80 (the sampling time to be processed), and it becomes possible to subtract the maximum value M2 from the output value c.
[0048] The detection processing unit 73 detects a maximum value M2 of the positive / negative inverted time difference values stored in the FIFO buffer 70 and the positive / negative inverted time difference values stored in the FIFO buffer 72 for each sampling time (step S204 in FIG. 12). The subtraction processing unit 81 calculates a second index value y(i)=c−M2 for each sampling time by subtracting the maximum value M2 from the output value c of the FIFO buffer 80 (step S205 in FIG. 12). In this manner, the process of step S4 is performed by the maximum value detection unit 7 and the index value calculation unit 8.
[0049] The subtraction processing unit 51 inputs the calculated first index value x(i) to the FIFO buffer 60 for each sampling time (step S5 in FIG. 10). At the same time, the subtraction processing unit 81 inputs the calculated second index value y(i) to the FIFO buffer 90 for each sampling time (step S6 in FIG. 10).
[0050] The cardiac time determining unit 10 acquires a first index value x(i)=x3 and a second index value y(i)=y3 stored in a first position of the FIFO buffers 60, 90. The cardiac time determining unit 10 also acquires a first index value x(i-1)=x2, which is stored in a second position of the FIFO buffer 60 and is one sampling (1 ms) earlier than the first index value x(i)=x3. The cardiac time determining unit 10 also acquires a first index value x(i-2)=x1, which is stored in a third position of the FIFO buffer 60 and is two samplings (2 ms) earlier than the first index value x(i)=x3.
[0051] When the first index value x(i)=x3 exceeds the threshold value TH (YES in step S7 in FIG. 10) and the first index value x(i)=x3 has increased relative to the first index value x(i-1)=x2 of the previous sampling (YES in step S8 in FIG. 10), and if the second index value y(i)=y3 at the same time as the first index value x(i)=x3 and the first index value x(i-2)=x1 of the previous sampling satisfy the condition (x1-y3)>a (YES in step S9 in FIG. 10), the heartbeat time determination unit 10 determines the sampling time of the first index value x(i)=x3 to be the heartbeat time (step S10 in FIG. 10).
[0052] As described above, the time difference positive / negative inverted value Y(i) is calculated from the sampling data D(i), and the first index value x(i) is calculated from the time difference positive / negative inverted value Y(i). Therefore, the sampling time of the first index value x(i) is the sampling time of the time difference positive / negative inverted value Y(i) (the sampling time of the data D(i)), and can be acquired from the storage unit 2. In this way, by repeatedly executing the processes of steps S1 to S10 for each sampling period, time series data of heartbeat times is obtained.
[0053] In this embodiment, it is determined whether the second index value y(i) = y3 at the first sampling time (t3 in the example of Figure 3) at which the first index value x(i) = x3 exceeds the threshold value TH, and the first index value x(i-2) = x1 at the second sampling time (t1 in the example of Figure 3) that has a predetermined relationship with the first sampling time, satisfy a condition. However, the second sampling time may be a time that is a predetermined time in the past with respect to the first sampling time, and does not have to be two sampling times (2 ms) earlier.
[0054] The memory unit 2, the positive / negative inversion value calculation unit 3, the maximum value detection units 4 and 7, the index value calculation units 5 and 8, the index value storage units 6 and 9, and the heartbeat time determination unit 10 of the heartbeat detection device described in this embodiment can be realized by a computer equipped with a CPU (Central Processing Unit), a storage device, and an interface, and a program that controls these hardware resources. An example of the configuration of this computer is shown in FIG.
[0055] The computer includes a CPU 100, a storage device 101, and an interface device (I / F) 102. An electrocardiograph 1 and the like are connected to the I / F 102. A program for implementing the heartbeat detection method of the present invention is stored in the storage device 101. The CPU 100 executes the processes described in this embodiment in accordance with the program stored in the storage device 101. [Industrial Applicability]
[0056] The present invention can be applied to a technique for detecting the heartbeat of a living body. [Explanation of symbols]
[0057] 1...electrocardiograph, 2...memory unit, 3...positive / negative inversion value calculation unit, 4, 7...maximum value detection unit, 5, 8...index value calculation unit, 6, 9...index value memory unit, 10...heartbeat time determination unit, 40-42, 50, 60, 70-72, 80, 90...FIFO buffer, 43, 73...detection processing unit, 51, 81...subtraction processing unit.
Claims
1. A first step of calculating a positive / negative inversion value of a time difference of sampled data from a sampled data string of an electrocardiogram waveform of a living body for each sampling time; a second step of detecting, for each sampling time, a first maximum value among the positive / negative inverted value in a first time range before the sampling time to be processed and the positive / negative inverted value in a second time range after the sampling time to be processed; a third step of detecting, for each sampling time, a second maximum value among the positive / negative inverted value in a third time range before the sampling time to be processed and the positive / negative inverted value in a fourth time range after the sampling time to be processed; a fourth step of calculating, for each sampling time, a subtraction value obtained by subtracting the first maximum value from the positive / negative inverted value at the sampling time to be processed as a first index value; a fifth step of calculating, for each sampling time, a subtraction value obtained by subtracting the second maximum value from the positive / negative inverted value at the sampling time to be processed as a second index value; and a sixth step of setting the first sampling time as the heartbeat time when the second index value at a first sampling time at which the first index value exceeds a predetermined threshold and the first index value at a second sampling time having a predetermined relationship with the first sampling time satisfy a predetermined condition.
2. 2. The method for detecting a heartbeat according to claim 1, a timing of a leading edge of the third time range with respect to the sampling time of the processing target is the same as a timing of a leading edge of the first time range; a timing of a trailing edge of the fourth time range with respect to the sampling time of the processing target is the same as a timing of a trailing edge of the second time range; A heartbeat detection method, comprising: a time interval between the third time range and the fourth time range being shorter than a time interval between the first time range and the second time range.
3. 3. The heartbeat detection method according to claim 1, further comprising: The heartbeat detection method, characterized in that the sixth step includes a step of setting the first sampling time as the heartbeat time when the first index value at the first sampling time increases relative to the first index value prior to the first sampling time, and the second index value at the first sampling time and the first index value at the second sampling time satisfy a predetermined condition.
4. The method for detecting a heartbeat according to any one of claims 1 to 3, A heartbeat detection method, characterized in that the interval between the third time range and the fourth time range is in the range of 20 ms to 30 ms.
5. a positive / negative inversion value calculation unit configured to calculate a positive / negative inversion value of a time difference of sampled data from a sampled data string of an electrocardiogram waveform of a living body for each sampling time; a first maximum value detection unit configured to detect, for each sampling time, a first maximum value among the positive / negative inverted value in a first time range before a sampling time to be processed and the positive / negative inverted value in a second time range after the sampling time to be processed; a second maximum value detection unit configured to detect, for each sampling time, a second maximum value among the positive / negative inverted value in a third time range prior to the sampling time of the processing target and the positive / negative inverted value in a fourth time range after the sampling time of the processing target; a first index value calculation unit configured to calculate, for each sampling time, a subtraction value obtained by subtracting the first maximum value from the positive / negative inverted value at the sampling time to be processed as a first index value; a second index value calculation unit configured to calculate, for each sampling time, a subtraction value obtained by subtracting the second maximum value from the positive / negative inverted value at the sampling time to be processed as a second index value; a heartbeat time determination unit configured to determine the first sampling time as the heartbeat time when the second index value at a first sampling time at which the first index value exceeds a predetermined threshold and the first index value at a second sampling time that has a predetermined relationship with the first sampling time satisfy a predetermined condition.
6. 6. The heartbeat detection device according to claim 5, a timing of a leading edge of the third time range with respect to the sampling time of the processing target is the same as a timing of a leading edge of the first time range; a timing of a trailing edge of the fourth time range with respect to the sampling time of the processing target is the same as a timing of a trailing edge of the second time range; A heartbeat detection device, wherein an interval between the third time range and the fourth time range is shorter than an interval between the first time range and the second time range.
7. 7. The heart rate detection device according to claim 5, The heartbeat time determination unit determines the first sampling time as the heartbeat time when the first index value at the first sampling time increases relative to the first index value prior to the first sampling time, and the second index value at the first sampling time and the first index value at the second sampling time satisfy a predetermined condition.
8. The heart rate detection device according to any one of claims 5 to 7, A heart rate detection device, wherein the interval between the third time range and the fourth time range is in the range of 20 ms to 30 ms.
Citation Information
Patent Citations
Heart beat detection method and heart beat detection device
JP2017029628A
Heart beat detection method and heart beat detection device
JP2017042388A
Heart rate detection method and heart rate detection device
JP2018175152A
Heartbeat detection method and heartbeat detection device
JP6527286B2
Heartbeat detecting method and heartbeat detecting device
WO2017150156A1
