Next Article in Journal
Exploring People’s Reaction and Perceived Issues of the COVID-19 Pandemic at Its Onset
Next Article in Special Issue
Temporal and Spatial Analysis of Alzheimer’s Disease Based on an Improved Convolutional Neural Network and a Resting-State FMRI Brain Functional Network
Previous Article in Journal
Cabbage and Sauerkraut Consumption in Adolescence and Adulthood and Breast Cancer Risk among US-Resident Polish Migrant Women
Previous Article in Special Issue
Recent Trends in Artificial Intelligence-Assisted Coronary Atherosclerotic Plaque Characterization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Electrocardiogram Fiducial Point Detector Using a Bilateral Filter and Symmetrical Point-Filter Structure

Daegu-Gyeongbuk Research Center, Electronics and Telecommunications Research Institute, Daegu 42994, Korea
*
Author to whom correspondence should be addressed.
Int. J. Environ. Res. Public Health 2021, 18(20), 10792; https://doi.org/10.3390/ijerph182010792
Submission received: 10 August 2021 / Revised: 3 October 2021 / Accepted: 6 October 2021 / Published: 14 October 2021

Abstract

:
The characteristics or aspects of important fiducial points (FPs) in the electrocardiogram (ECG) signal are complicated because of various factors, such as non-stationary effects and low signal-to-noise ratio. Due to the various noises caused by the ECG signal measurement environment and by typical ECG signal deformation due to heart diseases, detecting such FPs becomes a challenging task. In this study, we introduce a novel PQRST complex detector using a one-dimensional bilateral filter (1DBF) and the temporal characteristics of FPs. The 1DBF with noise suppression and edge preservation preserves the P- or T-wave whereas it suppresses the QRS-interval. The 1DBF acts as a background predictor for predicting the background corresponding to the P- and T-waves and the remaining flat interval excluding the QRS-interval. The R-peak and QRS-interval are founded by the difference of the original ECG signal and the predicted background signal. Then, the Q- and S-points and the FPs related to the P- and T-wave are sequentially detected using the determined searching range and detection order based on the detected R-peak. The detection performance of the proposed method is analyzed through the MIT-BIH database (MIT-DB) and the QT database (QT-DB).

1. Introduction

Arrhythmias occur when electrical signals to the heart that coordinate heartbeats disfunction, and most arrhythmias are harmless. However, in case they are particularly abnormal or caused by a harmed heart, they may cause serious and even potentially fatal symptoms [1]. Arrhythmia is also called cardiac dysrhythmia or irregular heartbeat. Most arrhythmias are not severe, but some may predispose the individual to stroke or cardiac arrest. Globally, cardiovascular diseases are the biggest death-related factor [2].
The electrocardiogram (ECG) has become a very important bio-signal for the prompt detection of cardiovascular disease including arrhythmia. In the ECG signal, QRS complex detection is a preceding and essential step for classifying successive heartbeat rhythm. However, the measured ECG waveforms are deformed because of baseline wander, electrode motion artifact, and muscle artifact, thus making accurately detecting the QRS-interval a challenging task [3,4].
Many efforts have been given to the detection of the R-peak or QRS-interval under various noises. A well-known QRS detection method is the Pan–Tompkins algorithm [5]. Furthermore, QRS detection methods can be classified into differentiation [6], designed filters [5,7,8,9], Wavelet transform [10,11], neural networks [12], Hilbert transform [13,14], phasor transform [15], adaptive threshold [16,17], morphology [18,19], signal energy [5,20,21,22,23,24,25], and high-order moments [26] based algorithms. The difference-based method was used to identify fiducial points (FPs) in [27]. In [28], a dynamic threshold with a finite state machine was used for R-peak detection. In [29], the differentiation techniques were used to detect FPs. Two-stage median filter-based approaches [30,31] were used for baseline wandering elimination and signal deformation caused by motion artifacts.
Several PQRST complex detection methods have been proposed to date; however, they have not been extensively studied or compared to QRS detection techniques. The first reason is that P- or T-wave detection is not easy due to the characteristics of the P- or T-wave signal; the signals have a low slope, low magnitude, and various widths. This means that reliable P- or T-wave detection should be preceded by the detection of QRS or the R-point, which has a pronounced signal characteristic compared to the P- or T-wave. This means that a high-performance R-peak or QRS detection technique must be preceded for reliable P- or T-wave detection. Furthermore, abnormalities in the R-, P-, and T-waves make detection of relevant FPs difficult. The second reason is the lack of a universal definition of the FPs of each wave. Thus, a new definition of FPs for each algorithm is required for detecting ECG FPs. This also leads to a mapping problem of undetected points when no onset or offset point is detected in a particular wave of one ECG signal. Furthermore, this problem affects the heart rate variability (HRV), which is used to analyze the patient’s condition using almost all FPs. Therefore, the detection definition for FPs is not simple. Nevertheless, many different PQRST complex detection approaches based on (1) filtering techniques, such as adaptive filtering [32], low-pass differentiation (LPD) [33], nested median filtering [34], extended Kalman filtering [35,36], and switching Kalman filter [37]; (2) transform coefficient techniques, such as discrete Fourier transform (DFT) [38], discrete cosine transform (DCT) [39], wavelet [40,41,42], and hybrid feature extraction algorithm (HFEA) [42]; and (3) inference model techniques, such as Bayesian [43,44,45], hidden Markov model [46,47], and partially collapsed Gibbs Sampler (PCGS) [44,45], can be found in the literature. These methods exhibit excellent performance in identifying ECG FPs. Recently, a 12 lead-based local distance transformation (TLBLDT) was proposed for ECG wave detection and delineation [48]. However, the studies did not perform HRV analysis based on the detected ECG FPs for some medical diagnosis or pathology analysis. In addition, most methods have a high computational complexity and do not describe real-time processing techniques for wireless mobile healthcare applications, which is a recent issue. In addition, the lack of abundant detection results for FPs on the databases used in each method impairs the understanding of the algorithm.
The propagation of an action potential through the heart creates an electric current, which can be sensed at the body surface. ECG records these changes and the PQRST complex to designate the waves in the ECG, which provides valuable information in cardiac disease diagnosis. In this study, we introduce a novel PQRST complex detector that detects all the FPs on the ECG signal by detecting the QRS complex using the characteristics of a one-dimensional bilateral filter (1DBF), reducing the noise and enhancing the sharpness, and then, recognizing the P- and T-wave based on the detected QRS. This method first detects the R-peak and QRS complex using the difference between original and filtered ECG by the 1DBF, and then, recognizes the onset and offset points of the remaining P- and T-waves according to a predetermined order while moving in the left–right direction based on the detected R-peak and QRS complex. The resulting location accuracy of the R-peaks detected by the proposed method are then analyzed and time- and frequency-domain analysis is performed. The remaining FPs are used to estimate trends in the ST-segment, PR-interval, and QT-interval to estimate cardiac status.

2. Materials and Methods

2.1. DBF and Its Application

The 1DBF proposed is a nonlinear filter that smooths noises mixed into a signal while preserving edge features of a signal [49,50]. The filtering operation of the 1DBF restores a degraded signal. The normalization factor of the 1DBF guarantees that the filter conserves the average of flat areas in a signal.
The 1DBF is composed of two low-pass Gaussian filters (LPGFs) for the domain and range space. The domain low-pass Gaussian filter (DLPGF) assigns more weight to signal values spatially closer to the centered value. The range low-pass Gaussian filter (RLPGF) provides more weight to signal values closer to the value of the centered value. The 1DBF at an edge region, such as QRS complex, becomes a lengthened Gaussian filter. This ensures that averaging is mostly operated along the edge and is significantly decreased in the direction of the gradient. Therefore, the 1DBF can smooth noises while conserving the edge region. To use 1DBF as an efficient ECG background predictor except the QRS complex, the standard deviations, σ d and σ r , of the domain and range Gaussian filters must be adaptively changed.
Figure 1 shows the impact of standard deviations of two types of Gaussian filters using 215N(4) in MIT-DB. Here, 215N(4) represents that the fourth annotated heartbeat belongs to N (Normal) class for the Record 215. σ d controls the width of the domain filter. A smaller σ d leads to weak smoothing, and a smaller σ r works so that the range filter dominates in the two Gaussian filters in the 1DBF. Figure 1b shows that 1DBF with a little bigger σ d removes noises and preserves the edge structures for the degraded ECG signal shown in Figure 1a. In Figure 1c, where the domain Gaussian filter is dominantly applied with a bigger σ r , the QRS complex corresponding to the edges is significantly blurred. In Figure 1d, a bigger σ d makes the QRS complex more blurred under the same σ r . Based on this experiment, for 1DBF to act as a background predictor, which preserves the non-QRS-interval while suppressing the QRS-interval, bigger σ d and σ r should be applied for the QRS-interval, whereas bigger σ d and σ r should be applied for the non-QRS-interval.

2.2. Proposed ECG PQRST Complex Detector Using 1DBF and Temporal Characteristics of FPs

2.2.1. Detection Order of PQRST FPs

Figure 2 shows the FPs and their detection order related to the PQRST complex in the study. A general ECG waveform is composed of a P-wave (0.08–0.10 s), QRS-wave (0.06–0.10 s), and T-wave (0.16 s). The QRS complex is narrower and taller compared to the P- and T-waves. The P-, Q-, R-, S-, and T-point are denoted by the red dotted circles, and the blue dotted circles represent the onset and offset points. The detection order of the FPs was decided to consider the signal characteristics of the points, i.e., ease of detection. The ST-segment, and PR- and QT-interval analyzed in this study are also shown in Figure 2.

2.2.2. Algorithm Structure for Real Time

Figure 3 shows a seamless connection structure of successive sliding windows (SWs) for real time. The first SW includes six beats, and the first and sixth beat of these are incomplete beats for which some FPs are retrieved, whereas the second through the fifth beat are perfect beats for which all PQRST points can be detected. The R-peak locations of the first and sixth beat in the first SW are set to the lower and upper bounds for the FP detection of the five perfect beats. In the second SW, the lower and upper bounds correspond to the fourth and ninth beat. Furthermore, the fifth to eighth beats are perfect beats. Therefore, the fifth ECG beat is the common ECG beat in the first and the second SW. That is, the detected PQRST points in the fifth beat are a reference connecting the points detected in the preceding and following SWs. The number of seam beats may be plural for a high heart rate (HR). In the proposed method, the SW length is 2000 samples based on MIT-DB (360 Hz), and the step size, the distance between windows, is 1600 samples.

2.2.3. R-Peak Detection Using 1DBF

Original ECG signals suffer from noise and dc wandering. To detect R-peaks or QRS complexes while avoiding this problem, we use the difference of the original signal and filtered signal by 1DBF. FP detection of the proposed method is processed in units of SWs. First, the original ECG sequence S for the SW is normalized as follows:
I = ( S S min ) / S max
where I is the normalized signal for the original sequence and S min and S max are the min and max value in the original sequence, respectively. The length of I and S is equal to the SW.
In the original ECG signal, the QRS complex is narrow and high, whereas the P- and T-wave except for the QRS complex and the baseline are relatively wide and gentle. A background ECG signal excluding the QRS complex is predicted by a 1DBF, and a QRS complex is detected using the difference between the original ECG signal ( I ) and the predicted background ECG signal ( B ) as the following:
Q R S = I B
In this study, we employed a 1DBF to predict the background ECG signal (excluding the QRS signal) for the normalized original ECG signal. The background ECG signal B for the normalized original ECG signal I is given as follows:
B ( x ) = 1 W p x i Ω I ( x i ) exp ( x i x ) 2 2 σ d . Ω 2 exp ( I ( x i ) I ( x ) ) 2 2 σ r . Ω 2
where Ω = { x i | x N x i x + N } . Ω represents the size of the filter window based on the ECG sample-point coordinate x currently processed. The filter size is 1 × 15, which is set based on the average QRS complex time (0.06–0.10 s) and the sampling rate (360 Hz) of MIT-DB. The standard deviations, σ d . Ω and σ r . Ω , of DLPGF and RLPGF applied to the 1DBF using the variance σ 2 ( Ω ) of the sample points in the filter window are given as follows:
σ d . Ω = log 2 σ 2 ( Ω ) σ 2 max + 1 σ d max + σ min
σ r . Ω = log 2 σ 2 ( Ω ) σ 2 max + 1 σ r max + σ min
where the maximum variance is σ 2 max = 0.1310 and was obtained experimentally for the MIT-DB. The maximum standard deviations of DLPGF and RLPGF are σ d max = 10 and σ r max = 1 , respectively. Here, σ min = 10 5 is the minimum standard deviation to prevent the two standard deviations from becoming zero when σ 2 ( Ω ) = 0 . The above two equations for obtaining the background ECG signal for the original ECG signal mean the following: QRS regions with high variance are smoothed by bigger σ d and σ r , whereas non-QRS regions with low variance are conserved by smaller σ d and σ r .
The normalization factor is given by:
w p = x i Ω exp ( x i x ) 2 2 σ d 2 exp ( I ( x i ) I ( x ) ) 2 2 σ r 2
Then, the residual (difference) signal D between the original and predicted background ECG signal is given by:
D ( x ) = I ( x ) B ( x )
The enhanced residual signal E , which improves the residual signal, is given by:
E ( x ) = i = x n x + n D ( i )
Thereafter, the candidate-R interval C R ( x ) , which has a value of 1 for the candidate-R interval and 0 for the remaining interval, is calculated as follows using the threshold:
C R ( x ) = 1 , if E ( x ) > Th c 0 , otherwise
where the threshold for detecting the candidate-R interval is Th c = E max / 2 , and E max is the maximum value in the difference signal of the SW size. It is most probable that the R-peak is likely to be contained in rows of ones in C R as shown in Figure 4. If the number of consecutive 1s is more than 8 ( L 8 ), it is assumed that an R-peak exists in it. An x ^ value with a max or min value in the original signal corresponding to the rows of ones in C R denotes the location of the R-peak as the following:
R ( = x ^ ) = arg max i { i | C R ( i ) = 1 , L 8 } { I ( i ) } ( γ = + 1 ) , if ( Max ( I ( i ) ) I mean ) ( I mean Min ( I ( i ) ) ) arg min i { i | C R ( i ) = 1 , L 8 } { I ( i ) } ( γ = 1 ) , if ( I mean Min ( I ( i ) ) ) > ( Max ( I ( i ) ) I mean )
where Max ( I ( i ) ) and Min ( I ( i ) ) are the max and min values, respectively, in the rows of ones, L 8 . I mean is the mean of the original ECG signal for the currently processed SW. In Equation (10), the above conditional statement is used to detect a positive R-wave, which is a normal R-wave, and the following conditional statement is used to detect a negative R-wave, such as premature ventricular contraction (PVC). Furthermore, γ is an R-peak type factor representing a positive R-peak ( γ = + 1 ) or negative R-peak ( γ = 1 ).
Figure 5 shows the R-peak detection procedure using the background signal estimation method described above. In Figure 5a, the blue and red lines represent the original and predicted background signal, respectively. In the predicted background signal, the QRS-interval regarded as noise is suppressed; however, the remaining signal is restored close to the original signal. Figure 5b shows the residual (difference) signal between the original and predicted background signal, and Figure 5c shows the enhanced residual signal. The candidate-R interval is detected using the threshold for the enhanced residual signal, and the maximum value in the original signal corresponding to the candidate-R interval corresponds to the R-peak, as shown in Figure 5d. If there are multiple equal maxima in the QRS-interval (i.e., when the R-peak is flat, not a point), the position of the R-peak is set to their average position.

2.2.4. Detection of an Abnormal R-Peak

The shapes of the R-peak considered in this study are shown in Figure 6. The normal R-peak shown in Figure 6a is very easy to process using the algorithm because there is only one maximum value corresponding to an R-peak in the candidate-R interval. However, in addition to the normal R shape, various R-waves may exist depending on the cardiac state of the patient. In the flat R-wave shown in Figure 6b, the average position of the maximum values in the candidate-R interval is assigned to the R-peak location. Figure 6c through 6f show various notch (fragmented) R-waves. The presence of a fragmented R-wave is very important because it is related to an increase in adverse cardiac events. R-peak detection in the fragmented R-wave, such as fR-L, fR-R, fR-L2, and fR-R2, involves detection of the simple maximum value (red circles in Figure 6) in the candidate-R interval; however, the determination of the fragmented R-wave and additional R-peaks (blue circles in the figure) require further processing in the Q- or S-wave detections.
The detection of additional R-peaks is important not only to determine the fragmented R-wave but also to detect accurate Q- and S-wave FPs. Referring to the shapes of the fragmented R-peaks in Figure 6, additional R-peaks are detected for the left and right specific intervals based on the detected R-peak. First, an additional R-peak R R on the right side of the detected R-peak is detected by the following slope change and threshold condition for the 22-point section from the adjacent right location R + 1 of the detected R-peak:
I ( x ) = R R if γ × sign I ( ( x 1 ) + n ) 0 and γ × sign I ( x + n ) 0 and m = 1 10 I ( x + n + ( m 1 ) ) I ( ( x + 1 ) + n + m ) > Th f for R ( or R R ) + 1 n R ( or R R ) + α f  
where I ( t ) denotes the difference of I ( t ) I ( t + 1 ) at any time t and α f ( = ( 1 / 2 ) × F s × QRS ) is the SR of the additional R-peak. QRS ( = 0.12 sec ) is the typical QRS time and F s ( = 360 Hz ) is the sampling rate. Because the difference between the sampling points is large around the fragmented R-wave, if the sum of the differences between the 10 points to the right of the current point is more than or equal to the threshold ( Th f = 0.1 ), that point is considered an additional R-peak. The threshold is applied for normalized signals. By recursively searching for additional R-peaks that satisfy the above conditions within the SR, abnormal R-waves with multiple additional R-peaks can be identified, as shown in Figure 6e,f.
Similar to the additional R-peak on the right, an additional R-peak R L on the left side can be detected by the following slope change and the threshold condition for the 22-point section from the adjacent left location R 1 of the detected R-point:
I ( x ) = R L if γ × sign I ( ( x 1 ) + n ) 0 and γ × sign I ( x + n ) 0 and m = 1 10 I ( ( x 1 ) + n m ) I ( x + n + ( m 1 ) ) > Th f for R ( or R L ) α f n R ( or R L ) 1  
The MIT-DB includes 48 half-hour recordings with 360 Hz, and the heartbeat is classified and labeled into 15 types. The types of heartbeats belong to five classes as shown in Table 1 [50,51]. The abbreviated representation of the ECG signal interval is used for the experiment. 111L(320) denotes that the 320-th annotated beat of the Record 111 corresponds to L (Left Bundle Branch Block, LBBB) among class N mentioned in Table 1.
Fragmented R-waves can have one or more additional R-peak, depending on the patient’s condition. The additional R-point is detected as the point farthest from the detected R-peak, which satisfies the condition of Equation (9) or Equation (10) for SR. Figure 7 shows the detection results of R-peaks and additional R-peaks in the MIT-DB, as mentioned in Figure 6. In Figure 7, fR-L and fR_R denote the fragmented R-peak to the left and right of the detected R-peak, respectively.

2.2.5. SR of FPs Related to P- and T-Waves

The reliable detection SR of FPs included in the P- and T-wave is introduced in Figure 8. In the SR of all FPs of one ECG beat including the currently detected R-peaks, the lower and upper limit are the locations of previous T-offset and the next R-peak. The SR for P-point detection corresponds to the previous T-offset through the current Q-onset. Likewise, the SR for T-point detection corresponds to the current S-offset through the next R-peak position.
The proposed method considers the mapping problem of the undetected points when not even some or all FPs of the P- or T-wave are discovered. In case the P-point (T-point) is not discovered as a prerequisite, neither P-onset (T-onset) nor P-offset (T-offset) can be assigned. In this case, all FPs concerning the P-wave (T-wave) are mapped to a point Q-onset (S-offset). In case only P-point (T-point) is detected, non-detected P-onset (T-onset) is mapped to the P-point (S-offset). Likewise, in case P-offset (T-offset) is not discovered under the detected P-point (T-point), the non-detected P-offset (T-offset) can be mapped to Q-onset (T-point). This point-mapping method reduces the large error caused by undetected FPs at the calculation of the PR-interval or PR-segment concerning the P-wave and ST-segment and QT-interval related to T-wave. Additionally, if the peak areas of the P- and T-waves are deformed and the information is known, the starting point for finding the onset and offset of the P- and T-wave can be changed, as shown in the figure. v P and v T represent the deformation widths of the P- and T-wave and are introduced again in the detection part of the P- and T-point in the next section.

2.2.6. FP Detection of the Q- and S-Wave

The detected R-peak R becomes an important clue to detect the PQ-ST FPs. The Q-point, Q α . L , is searched using the following condition while shifting from the location of R ( or R L ) 1 to the left (minus direction):
I ( x ) = Q γ if γ × sign I ( ( x 1 ) + n ) < 0 and γ × sign I ( x + n ) > 0 for R ( or R L ) α Q n R ( or R L ) 1  
where α Q ( = F s × QRS / 2 + α QM ) is the SR for detecting the Q-point starting from R ( or R L ) 1 to the left and α QM ( = 8 ) is the addition margin of the SR for Q-point detection. The subscript γ defines the shape of the Q-point according to the type of R-peak described in Equation (8).
The Q-onset, Q γ . L , is searched using the following condition while shifting from the Q γ 1 location to the left (minus direction):
I ( x ) = Q γ . L if γ × sign I ( ( x 1 ) + n ) 0 and γ × sign I ( x + r + n ) 0 , r = 0 , 1 for Q γ α QL n Q γ 1  
where α QL ( = F s × QRS ) represents the SR for detecting the Q-onset starting from Q γ 1 to the left.
The S-point S γ is detected by the following condition while shifting from the R ( or R R ) + 1 location to the right (plus direction):
I ( x ) = S γ if γ × sign I ( ( x 1 ) + n ) < 0 and γ × sign I ( x + n ) > 0 for R ( or R R ) + 1 n R ( or R R ) + α S  
where α S ( = α Q ) is the SR for detecting the Q-point starting from R ( or R R ) + 1 to the right.
The S-offset S γ . R is detected by the following condition while shifting from the S γ + 1 position to the right (plus direction):
I ( x ) = S γ . R if γ × sign I ( ( x 1 ) l n ) 0 , l = 0 , 1 and γ × sign I ( x + n ) 0 for S γ + 1 n S γ + α SR
where α SR ( = α QL ) is the SR for detecting the S-offset starting from S γ + 1 to the right.

2.2.7. FP Detection of P- and T-Waves

The FPs concerning P- and T-waves are detected on a noise-suppressed predicted background signal to improve the detection accuracy. Based on the heart disease, there is a convex, normal case and a concave, inverted case, and the P- and T-wave-related FPs are composed of the two types, respectively. Based on the SR in Figure 8, the P- and T-points are searched within a given search interval, moving from Q γ . L 1 to the left (minus direction) and from S γ . R + 1 to the right (plus direction), respectively. First, the symmetric condition for searching for the P-point is as follows:
B ( x ) = P ω if N [ ω × sign B ( R + n l ) 0 , l = ( v P + 1 ) , , ( v P + l p ) , ω × sign B ( R + n + ( r 1 ) ) 0 , r = ( v P + 1 ) , , ( v P + r p ) ] ρ P × ( l P + r P ) ) for Q γ . L α P n Q γ . L 1 , where , ω = 1 or 1 , v P = 0 , , 5 , and ρ P = 0.9
where N [ ] denotes the number of points that satisfy the sign condition in square brackets. ω is the sign converter for detecting normal ( ω = + 1 ) or inverted ( ω = 1 ) P- (or T-) points. v P ( v T for T-point) defines the number of points adjacent to the point position currently being processed but not used in the above conditional expression for the detection of the P-point (or T-point). v P ( v T for T-point) is applied recursively, starting at 0 and until a P-point that satisfies the above condition is detected. It was designed to detect P-waves with a deformed peak. Figure 9 shows the example of the point filter shape for P- and T-point detection at v P = 0 or 2 , v T = 0 or 2 , and ω = ± 1 . l P and r P ( l T and r T for T-point) denote the left and right surrounding point intervals used directly in the above conditional expression, around the point currently processed for P-wave (T-wave) detection. The left and right wing points used for P-point detection are set as l P = r P = 10 v p . As illustrated in Figure 8, the lower bound of SR of the P-point is the former T-offset; however, the lower bound value α P was reset to reduce the search range. α P ( = F s × PR ) is the SR for detecting the P-point starting from Q γ . L 1 to the left, and PR ( = 0.2 sec ) is the time of a typical PR-interval. ρ P ( = 0.95 ) ( ρ T ( = 0.95 ) for T-point) denotes the threshold ratio of the left and right point intervals used for P-point (T-point) inspection.
The symmetric condition for searching for the T-point is very similar to the P-point detection procedure of Equation (17) as follows:
B ( x ) = T ω if N [ ω × sign B ( R + n l ) 0 , l = ( v T + 1 ) , , ( v T + l T ) , ω × sign B ( R + n + ( r 1 ) ) 0 , r = ( v T + 1 ) , , ( v T + r T ) ] ρ T × ( l T + r T ) ) for S γ . R + 1 n S γ . R + α T , where , ω = 1 or 1 , v T = 0 , , 10 , and ρ T = 0.95
where l T = r T = 20 v T . Furthermore, the upper bound of the SR for the T-point detection is next to the R-peak in Figure 8; however, the upper bound value α T was reset to reduce the search range. α T ( = F s × ( QT QRS ) ) is the SR for detecting the T-point starting from S γ . R + 1 to the right, and QT ( = 0.44 sec ) is the typical QT-interval:
B ( x ) = P ω . L , ( or T ω . L ) if N [ ω × sign B ( R + n l ) 0 , l = 1 , , l PL for P L ( l = 1 , , l TL for T L ) , ω × sign B ( R + n + ( r 1 ) ) 0 , r = 1 , , r PL for P L ( r = 1 , , r TL for T L ) ] ρ PL × ( l PL + r PL ) for P L ( ρ T . L × ( l TL + r TL ) for T L ) for P ω α PL n ( P ω 1 ) + v ˜ P for P ω . L ( S γ . R + 1 n ( T ω 1 ) + v ˜ T for T ω . L ) where , ω = ± 1 , l PL = 2 , r PL = 4 , ρ PL = 1 for P L ( l TL = 2 , r TL = 4 , ρ TL = 1 for T L )
B ( x ) = P ω . R , ( or T ω . R ) if N [ ω × sign B ( R + n l ) 0 , l = 1 , , l PR for P R ( l = 1 , , l TR for T R ) , ω × sign B ( R + n + ( r 1 ) ) 0 , r = 1 , , r PR for P R , ( r = 1 , , r TR for T R ) ] ρ PR × ( l PR + r PR ) for P R ( ρ TR × ( l TR + l TR ) for T R ) for ( P ω + 1 ) + v ˜ P n Q γ . L 1 for P ω . R ( ( T ω + 1 ) + v ˜ T n T ω + α TR for T ω . R ) where , ω = ± 1 , l PR = 4 , r PR = 2 , ρ PR = 1 for P R ( l TR = 4 , l TR = 2 , ρ PR = 1 for T R )
Figure 10 shows the FP detection result of the fragmented P-wave of 118R(200) and 233N(186), the invisible or weak P-wave of 210N(307), 214L(1200), and 220N(303), and the inverted P-wave of 228N(1201). It can be seen that FPs of various abnormally shaped P-waves are detected normally.
As shown in Figure 11, two types of the onset and offset points of the P- and T-waves should also be considered—normal and inverted—depending on ω . The onset and offset point are inflection points at which the slope changes regardless of ω , and the left point section l and the right point section r used for detecting the onset and offset are shown in the figure. The subscripts, PL, PL, TL, and TR, denote the P-onset, P-offset, T-onset, and T-offset searches. The asymmetric condition for detecting the P- and T-onset is defined in Equations (17) and (18). The lower bound of the SR of the P-onset is the preceding T-offset in Figure 8; however, the lower bound value α PL = ( Q γ . L 1 ) P ω was reset to reduce the search range based on the morphological symmetry between the P-offset and P-point. v ˜ P and v ˜ T are true values obtained by applying v P and v T recursively during the P- and T-point search and are used as the starting points for detecting the P- and T-onset as well as the P- and T-offset. The upper bound of the SR for the T-offset detection is the subsequent R-peak in Figure 8; however, the upper bound value α TR = ( T ω 1 ) S γ . R was reset to reduce the SR based on the morphological symmetry between the T-onset and T-point.
In general, the detected P-wave (or T-wave) has a general convex shape, composed of P 1 (or T 1 ), P 1 . L (or T 1 . L ), and P 1 . R (or T 1 . R ) as follows:
P ( or T ) = P 1 ( or T 1 ) , P L ( or T L ) = P 1 , L ( or T 1 , L ) , P R ( or T R ) = P 1 , R ( or T 1 , R ) , if ( P 1 . R ( or T 1 . R ) P 1 . L ( or T 1 . L ) ) > ( P 1 . R ( or T 1 . R ) P 1 . L ( or T 1 . L ) and Δ 1 , P ( or Δ 1 , T ) > Δ 1 . P ( or Δ 1 . T ) P ( or T ) = P 1 ( or T 1 ) , P L ( or T L ) = P 1 , L ( or T 1 , L ) , P R ( or T R ) = P 1 , R ( or T 1 , R ) , otherwise
when the certain condition in Equation (21) is satisfied, the P-wave (or T-wave) is assigned to an inverted concave shape and is composed of P 1 (or T 1 ), P 1 . L (or T 1 . L ), and P 1 . R (or T 1 . R ), as in Equation (21). Δ 1 , P and Δ 1 , P (or Δ 1 , T and Δ 1 , T ) denote each area estimated by the FPs of the inverted P-wave (or T-wave) and the normal P-wave (or T-wave). The inverted P-wave (or T-wave) corresponds to an inverted triangle while the normal P-wave (or T-wave) is equivalent to a normal triangle.
Figure 12 shows the FP detection results of the hyperacute T-wave of 106V(497), the biphasic T-wave of 109L(499), the inverted T-wave of 118R(405) and 219x(1200), the camel-hump T-wave of 202N(806), and the deformed T-wave of 201x(608). The FPs of various abnormally shaped T-waves are detected normally.

3. Results

3.1. PQRST FP Detection Results Using MIT-DB

The effectiveness of the proposed method is analyzed using ECG records with abnormal R-, P-, and T-waves in MIT-DB. Figure 13 shows the PQRST detection results for 106V(497), 108N(6), 118R(159), 201x(608), 202a(1415), 202N(806), 214L(1200), 217f(99), and 233N(186) among the ECG samples of MIT-DB.

3.2. Performance Evaluation of R-Peak Detection

To assess the R-peak detection efficiency of the proposed method, several performance indexes are used. The indexes include the false positive (FP) and false negative (FN). The evaluation indices are as follows: sensitivity, Se = TP/(TP + FN), positive prediction, +P[%] = TP(TP + FP), and detection error, DER[%] = (FP + FN)/(TP + FN), respectively. TP represents the total number of accurately detected QRS [52]. The annotated R-point location in each ECG data was used for beat-by-beat comparison with the detected R-peak location based on the WFDB library [53]. If the difference between the annotated position and the detected R-point position is less than 50 ms, the proposed method is considered to have correctly detected the point [54]. Table 2 shows the R-peak detection results by the proposed method for the MIT-DB. The proposed method accomplished Se = 99.83%, +P = 99.82%, and DER = 0.34% for the database.
The proposed R peak detection performance for noises is evaluated in Table 3. Tape 102 is a relatively clean signal with no noise, while date 105 contains large induced noises. For evaluation, the MATLAB function ‘awgn’, which adds white Gaussian noise to the signal, was used for a signal-to-noise ratio (SNR) of 0.5 to 80. The proposed method for noisy signals of 5 dB SNR or higher showed relatively good sensitivity and positive prediction performance, but the performance deteriorated rapidly for noise signals of 1 dB SNR or less.
Table 4 compares the R-peak performance as well as supplemental function for several methods. The proposed method could obtain superior results similar to the existing methods, indicating a sensitivity of 99.83% on 109,510 annotated beats. As shown in Table 4, while all six methods ([5,7,17,19,30], and proposed) indicate the QRS detection technique, only two methods ([11] and proposed) described the QRS-onset and -offset detection technique. Table 4 shows that [11,19,25] accomplished outstanding FP and FN as well as the best DER; thus, they represent fascinating techniques. However, they are not attractive for the detection of the QRS-onset, -offset, and fR-peak. In addition, only the proposed method could detect the fR-peak, which is important for detecting adverse cardiac events. Among the stated methods, only the proposed method can recognize the QRS-onset and -offset as well as the fR-peak. The comparison indicates that the proposed method has relatively high sensitivity, positive prediction as well as low DER by comparison with the previous methods. This demonstrates that the proposed method features superior trade-off between the QRS detection and identification of the fR-peak, QRS-onset, and -offset.

3.3. Detection Performance of PQRST Complex Using QT-DB

The QT-DB is used to assess the PQRST detection performance of the proposed method. It includes 105 recordings of 15 min length with 250 Hz, and each recording has a peak and onset and offset annotation information. The annotation for each record was manually performed by two cardiologists and its number reaches 3622 [55,56]. In case the detected S-offset and T-onset are very close (less than about 0.05 s, 13 sample), the detected T-offset was excluded in the evaluation.
Figure 14 shows the PQRST complex detection results of Record Sel41N(5), Sel231N(5), Sel233N(5), Sel301N(5), and Sel808N(5) by the proposed method for QT-DB. The vertical green solid lines show the originally annotated positions in the QT-DB. Figure 14a shows the locations of FPs detected by the proposed method for Sel41N(5), which has an inverted (negative) R-wave, bigger P- and T-waves, and is related to a sudden death. In this connection, the P-peak may be higher than the T-peak, and the interval between the current P-wave and the previous T-wave may be very close. We can see that the proposed method precisely detects the annotated locations. Figure 14b shows the detection result for Sel231N(5), including hyperacute T-waves in a normal sinus rhythm. In the hyperacute T-wave, it is not easy to discriminate between the S-offset and T-onset, so the T-onset has no annotations. Nevertheless, the proposed method detects the T-onset used in HRV. Figure 14c shows the detection result for Sel233N(5), which corresponds to an arrhythmia rhythm and has inverted T-waves, deep S-waves, and a hyperacute T-wave. Because the inverted T-wave appears immediately after the S-wave similar to Sel231N(5), the boundary between the S-offset and T-onset is unclear and the T-onset has no annotation. However, the proposed method estimates the T-onset used on HRV. As a result, we can see that the proposed method detects the peak and offset positions of the inverted T-waves. In addition, the beats with deep S-waves and hyperacute T-waves were not included in the original annotations. Therefore, these beats were excluded from the performance experiment. Figure 14d shows the detection result of Sel301N(5), which corresponds to an ST change rhythm and has a biphasic T-wave. The positive peak was considered as the peak annotated by the cardiologist. The proposed method detects the peak and offset location of T-waves precisely. Figure 14e shows the detection result for Sel808N(5), which is equivalent to a supraventricular rhythm, including inverted T-waves. As in the description of Sel233N(5), since the T-onset is indistinguishable from the S-offset in the inverted T-wave, it was ruled out from the annotations. We can see that the proposed method accurately estimates the original annotation locations for the normal P-wave as well as the inverted T-wave.
Table 5 shows the PQRST complex detection result of the proposed method and existing methods (LPD [33], WT [41], PCGS [44], HFEA [42], MHMM [47]) on 27 Records (19 Records except for MHMM from the original paper) from the QT-DB. However, the result of TLBLDT was obtained by the LU database [48]. Two-standard-deviation tolerances have been included in the last row [57]. The mean ( m ) and standard deviation ( s ) between the detected positions by respective methods and the originally annotated positions are also listed. The root mean square error ( RMSE = ( m 2 + s 2 ) ) is used for quantitative evaluation of the respective methods [47]. The blue and green numbers in the table represent the smallest and the second smallest RMSE of the location difference of the FPs. The proposed method has the smallest RMSE value in the P-onset, P-offset, and T-wave, and the second lowest RMSE value in the P-peak, R-peak, and QRS-onset among all methods. The standard deviation of the proposed method is lower than the CSE tolerance in the P-offset, QRS-offset, and T-offset, and is close to the CSE tolerance in the P-onset and QRS-onset. Additionally, the proposed method also satisfies the criteria limit of the CSE tolerance for the P-offset with LPD and MHMM. Unfortunately, no method yet satisfies the severe criteria of the QRS-onset. The mean and standard deviation of all FPs are evaluated for LPD, WT, PCGS, HFEA, MHMM, TLBLDT, and the proposed method as 2.9 ± 13.5, 1.6 ± 12.7, 2.9 ± 15.1, −29 ± 17.4, −1.0 ± 8.5, 0.4 ± 7.4, and 0.4 ± 7.4 ms, respectively. The RMSE values across all FPs for the above-mentioned methods are evaluated to be 15.3, 13.1, 15.7, 19.8, 8.9, 9.5, and 8.3, respectively.

3.4. HRV Analysis for MIT-DB

The heart is continually regulated by the autonomic nervous system [58]. HRV denotes the time variation between successive heartbeats [58,59]. HRV can estimate the sympathovagal balance through time- and frequency-domain methods [58]. In the time domain, HRV is assessed by the variability of heartbeats observed in the range of 5 min to 24 h [60]. These methods are calculated based on the beat-to-beat (or NN) intervals. The statistical time-domain measures (or metrics) include the mean HR, HR standard deviation (std.), RR-mean, NN50, pNN50, RMSSD, HRV triangular index (HTI), and TINN, which are listed in Table 6 [59,61,62,63].
For the HR, variation in certain frequency bands is a very useful method to assess the sympathetic-parasympathetic balance of the cardiovascular system. Additionally, the high frequency band (HF) is also denoted as respiratory arrhythmia because it is associated with HRV associated with the breathing cycle and is controlled by the activity of the parasympathetic nervous system (PNS). The low frequency band (LF) is regulated by both the sympathetic nervous system (SNS) and PNS. The very low frequency band (VLF) is a variable dependent on the Lenin-Angiotensin system and is also affected in both SNS and PNS. A reduction in the ultra-low-frequency and VLF in 24-h ECG is the strongest predictor of acute heart attack and death from arrhythmia. Spectrum analysis is a useful method for evaluating the effects of the SNS and PNS at the same time. However, because individual deviations vary, it is difficult to obtain a normal number that can be used as a test tool. Therefore, it should always be investigated to see if it has decreased or increased statistically compared with the control group. The reduction in HRV mentioned above is a very powerful prognostic factor in all diseases with cardiovascular abnormalities.
Figure 15 shows the histogram of RRIs, spectral power, ST-segment, QT-interval, and PR-interval for 5 min of Record 106V(497), 108N(6), 118R(159), 201x(608), 202a(1415), and 217f(99) in MIT-DB.
The ST-segment progresses from the S-offset to the T-onset of the following T-wave. This is the sluggish depolarization term of the ventricles after the contractions of the two ventricles [64]. The baseline of the ST-segment typically is near the isoelectric line (IL) by height. The IL corresponds to the baseline of the whole ECG wave, typically located at 0 mV. Abnormal cardiac activities make the baseline of the ST-segment usually rise or fall from the IL. Elevation of the ST-segment represents myocardial infraction. On the other hand, depression of the ST-segment is typically relevant to hypokalemia [65].
The typical term of the ST-segment corresponds to 0.005 to 0.15 s. It can be seen that all test signals have a normal range of ST-segments. Furthermore, 106V(497) (female, age 24) shows a relatively constant ST-segment of about 0.1 s or less. Moreover, 108N(6) has a somewhat irregular ST-segment, which is close to zero up to 100 s due to the effects of asymmetrically peaked (or hyperacute) T-waves. However, after 100 s, the normal T-waves are observed, but an unstable ST-segment distribution is observed due to the delay of the T-wave (ST-segment above 0.15 s) and noise (ST-segment close to zero). Additionally, 118R(159) has RBBB’s inverse T-waves but shows a very constant ST-segment distribution near zero and 201x(608) (male, age 68) shows a slightly higher ST-segment of 0.2 s due to the slowly rising T-waves up to 510 s and shows an ST-segment close to 0 s because of the deformation of the T-waves by the annotation “x” (Non-conducted P-wave, blocked APB) and the annotation “a” (Aberrared atrial premature) [66]. However, from 510 s, it frequently shows ST-segments close to zero due to the frequent appearance of the annotation “V” (PVC). 202a(1415) (male, age 68) basically exhibits a relatively normal range of ST-segments but shows an unstable ST-segment distribution due to the gentle T-waves or T-wave delay and biphasic T-waves. 217f(99) shows an ST-segment distribution close to zero due to asymmetrically peaked (or hyperacute) T-waves. We know that the ST-segment is not easy to distinguish whether the detected T-wave is normal, an hyperacute T-wave, or a biphasic T-wave with a large falling curve.
The PR-interval represents the term from the P-onset to the Q-onset. It indicates the conduction by means of the AV node. In case the PR-interval is longer than 0.2 s, it can be considered that a first-degree heart block exists [67]. The prolonged PR-interval arouses delayed conduction by the AV node. Furthermore, in case the PR-interval is less than 0.12 s, it is considered to manifest a pre-excitation or AV nodal rhythm.
The typical term of the PR-interval corresponds to the range of 0.12 to 0.2 s. 106V(497), 108N(6), 201x(608), and 217f(99) show a normal distribution, whereas 118R(159) and 202a(1415) show a somewhat unstable distribution. 106V(497) (female, age 24) has normal PR-intervals overall due to very clean P-waves. 108N(6) (female, age 87) also has a normal PR-interval and has a PR-interval of about 0.3 s because of the P-waves, which gradually increases in height. 118R(159) (male, age 69) has a notch (left atrial enlargement symptom) at the P-peaks, which is due to longer atrial depolarization times than normal. Therefore, the signal has a rather long PR-interval (about 0.37 secs). At 201 × 608 (male, age 68), the onset of AF with aberrated beats occurred at approximately 472 s. The ventricular fibrillation (AFIB) is the most severe from 480 to 520 s, and during this time, the P-waves are so weak that they cannot be detected; thus, the signal shows very low PR-intervals. After 550, 650, and 700 s, the annotation “V” (PVC) occurs frequently with little visible P-waves (“x” (paced) is very rarely present), resulting in very low PR-intervals. At 202a (1415) (male, age 68), AF with aberrated beats occurred at 1333 s, and then, atrial flutter with 2: 1 conduction occurred at 1558 s. This caused a momentary PR-interval drop near 1550 s. For the entire signal, the P-wave was very weak and accompanied by noise, which shows that the PR-interval is unstable. 217f (99) (male, age 65) shows relatively constant PR-intervals between 0.2 and 0.3 s, although the P-waves are very weak due to “/” (paced). However, because of the intermittent “f” (Fusion of paced and normal) or “V” (PVC), there are some intervals without P-waves; thus, the PR-interval with zero is partially visible.
The QT-interval represents the Q-onset to the T-offset. Specifically, it indicates the time from ventricle depolarization to ventricle repolarization. The unusually shortened or prolonged interval increases the danger of revelation of ventricular arrhythmia [68]. In special cases, a prolonged QT-interval can cause a life-threatening ventricular tachycardia.
The typical term of the QT-interval corresponds to the range of 0.32 to 0.44 s. 106V(497) has a very constant QT-interval of 0.4 s, except for the long QT-interval (>0.6 s), due to the very high and wide T-waves of “V” (PVC) that appear around 450 s and after 710 s. At 108N(6), QT-intervals (more than 0.6 secs) beyond the normal range are observed because of the low but slowly increasing and then decreasing T-waves in the interval of less than 100 s and more than 160 s. In addition, the QT-interval was miscalculated because of severe noise near 150 and 250 s. 118R(159) has somewhat constant QT-intervals of 0.4 s because of clean inverse T-waves with a very constant ST-segment of 0.1 to 0.2 s. In the case of 201x(608), AFIB occurred at approximately 500 s due to the onset of AF with aberrated beats, which occurred at 472 s. Therefore, P- and T-waves were hardly seen and were not detected. Furthermore, the QT-interval near 500 s was momentarily reduced to 0.2 s. 202a(1415) has a QT-interval in the normal range of 0.4 s overall but exhibits a somewhat variable QT-interval distribution due to the gentle T-wave, T-wave delay, and biphasic T-wave as mentioned in the ST-segment experiments above. 217f(99) has a rather high QT-interval of approximately 0.6 s. 217f(99) has intermittently increasing QT-intervals due to a very tall asymmetrically peaked (or hyperacute) T-waves.
Table 7 shows the HRV analysis result of the test signals in MIT-DB. Bradycardia represents the HR of 45 beats/min or less while tachycardia denotes the HR of 100 beats/min or more at rest [69]. All the test signals corresponded to a regular HR. 201x(608) with high RR std. and HR std. exhibited irregular RRI and HR, whereas 202a(1415) with a high HR std. has an irregular HR but showed a regular RRI. In fact, the high RR std. and HR of 201x(608) are due to fast and irregular “N” beats, “V”, “A”, and “x” (actually AFIB), and the irregular HR of 202a(1415) is due to irregular “N” beats per minute (actually AFIB). NN50, pNN50, and RMSSD indicate short-term cardiac variability and are associated with parasympathetic nerve activity. Additionally, those variables are deeply related to AF and sudden death [70]. 201x(608) shows the highest RMSSD, NN50, and pNN50 among the tested signals and was actually annotated with AFIB at about 8:00. The patient was prescribed hypertension medication [71]. 202a (1415) had a relatively high RMSNN but relatively high NN50 and pNN50 values, and was diagnosed with AFIB annotated at about 26:20; this patient was also prescribed medication for hypertension [72]. In a previous study, when HTI > 20.42, the pattern was considered arrhythmic [73]. As a criterion, 202a(1415) (HTI = 18.9) close to the threshold is classified as arrhythmia. On the other hand, since the remaining test signals show an HTI of 20 or less, those signals can be regarded as normal. However, specifically, 201x(608) had a very low HTI (2.693) but had AFIB. It can be seen that it is difficult to determine whether a signal is normal or not by means of only HTI. 201x(608) with TINN <15 can be estimated to have severely decreased HRV [74].
HRV variables with a lower value indicate greater cardiac risk. VLF power is more deeply related to all-cause mortality compared to LF and HF power [73]. Low VLF power has been researched to be related to arrhythmic death and is also associated with high inflammation [73,74]. The VLF rhythm appears to be influenced by the intrinsic nervous system of the heart, and the SNS affects the amplitude and frequency of its variations.
The power of most test signals is converged in DC to constant RRIs. Because the power spectral density only deals with the frequency of the RRIs, it is not directly related to BPM. In other words, in case the BPM is constant regardless of whether it is bradycardia (or tachycardia), it may show a high VLF value. It can be seen that the 108N(6) has a lower than average BPM than other test signals but have as much power as other signals in the VLF band. 201x(608) has more HF power compared to other test signals, which indicates that the RRI is unstable. In addition, in fact, 201x(608) contains numerous “V” and some “a” and “j” annotation beats with AFIB. 202a(1415) also contains AFIB and atrial flutter (AFL); however, no difference was observed in the HF power. As explained above, while LF works through sympathetic nerves, HF is affected by parasympathetic nerves [73]. A low LF/HF, such as those for 106V(497), and 118R(159), denotes when to conserve energy, whereas a high LF/HF, such as those 108N(6), 202a(1415), and 217f(99), exhibits fight-or-flight behavior.

4. Conclusions

This study presents a novel PQRST complex detector using edge preservation and noise suppression characteristics of 1DBF and the temporal characteristics of FPs. All FPs are detected by a predefined detection order and mapping method of absent FPs. The evaluation of the proposed method was proved using HRV analysis using the detected FPs as well as the detection comparison of the FPs. The detection of PQRST FPs is also very important for the classification of various arrhythmias. The current medical and healthcare devices are evolving beyond binary classification of normal and abnormal to ECG signals to predict specific heart disease. The current HRV is analyzed by the length of time between each FP; however, the amplitude of each FP must also be reflected in the HRV for detailed classification of arrhythmia and pathological prediction of the heart. In the future, more accurate PQRST complex detectors and amplitude reflecting novel HRVs must be developed.

Author Contributions

Conceptualization, T.-W.B.; methodology, T.-W.B.; software, T.-W.B.; validation, T.-W.B. and K.-K.K.; formal analysis, T.-W.B.; investigation, T.-W.B.; resources, T.-W.B.; data curation, K.-K.K.; writing—original draft preparation, T.-W.B.; writing—review and editing, T.-W.B.; visualization, T.-W.B.; supervision, K.-K.K.; project administration, K.-K.K.; funding acquisition, K.-H.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Electronics and Telecommunications Research Institute (ETRI) grant funded by the Korean government. [21ZD1140, Development of ICT Convergence Technology for Daegu-Gyeongbuk Regional Industry].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. What to Know About Arrhythmia. Available online: https://www.medicalnewstoday.com/articles/8887.php/ (accessed on 24 May 2021).
  2. Global Status Report on Noncommunicable Diseases 2014. Available online: https://www.who.int/nmh/publications/ncd-status-report-2014/en/ (accessed on 24 May 2021).
  3. Rodrigues, J.; Belo, D.; Gamboa, H. Noise detection on ECG based on agglomerative clustering of morphological features. Comput. Biol. Med. 2017, 87, 322–334. [Google Scholar] [CrossRef]
  4. Lu, G.; Brittain, J.S.; Holland, P.; Yianni, J.; Green, A.L.; Stein, J.F.; Aziz, T.Z.; Wang, S. Removing ECG noise from surface EMG signals using adaptive filtering. Neurosci. Lett. 2009, 462, 14–19. [Google Scholar] [CrossRef] [PubMed]
  5. Pan, J.; Tompkins, W.J. A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. 1985, 32, 230–236. [Google Scholar] [CrossRef]
  6. Arzeno, N.M.; Deng, Z.D.; Poon, C.S. Analysis of first-derivative based QRS detection algorithms. IEEE Trans. Biomed. Eng. 2008, 55, 478–484. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Hamilton, P. Open source ECG analysis. Comput. Cardiol. 2002, 29, 101–104. [Google Scholar]
  8. Jain, S.; Ahirwal, M.K.; Kumar, A.; Bajaj, V.; Singh, G.K. QRS detection using adaptive filters: A comparative study. ISA Trans. 2017, 66, 362–375. [Google Scholar] [CrossRef] [PubMed]
  9. Castells-Rufas, D.; Carrabina, J. Simple real-time QRS detector with the MaMeMi filter. Biomed. Signal Process. Control 2015, 21, 137–145. [Google Scholar] [CrossRef] [Green Version]
  10. Yochuma, M.; Renaudb, C.; Jacquira, S. Automatic detection of P, QRS and T patterns in 12 leads ECG signal based on CWT. Biomed. Signal Process. Control 2016, 25, 46–52. [Google Scholar] [CrossRef]
  11. Meraha, M.; Abdelmalika, T.A.; Larbi, B.H. R-peaks detection based on stationary wavelet transform. Comput. Methods Progr. Biomed. 2015, 121, 149–160. [Google Scholar] [CrossRef] [PubMed]
  12. Abibullaev, B.; Seo, H.D. A new QRS detection method using wavelets and artificial neural networks. J. Med. Syst. 2011, 35, 683–691. [Google Scholar] [CrossRef]
  13. Benitez, D.S.; Gaydecki, P.A.; Zaidi, A.; Fitzpatrick, A.P. A new QRS detection algorithm Based on the Hilbert transform. In Proceedings of the Computers in Cardiology 2000, Cambridge, MA, USA, 24–27 September 2000; pp. 379–382. [Google Scholar]
  14. Zhang, F.; Lian, Y. Wavelet and Hilbert transforms based QRS complexes detection algorithm for wearable ECG devices in wireless Body Sensor Networks. In Proceedings of the IEEE Biomedical Circuits and Systems Conference, Beijing, China, 26–28 November 2009; pp. 6–28. [Google Scholar]
  15. Martínez, A.; Alcaraz, R.; Rieta, J.J. Application of the phasor transform for automatic delineation of single-lead ECG fiducial points. Physiol. Meas. 2010, 31, 1467–1485. [Google Scholar] [CrossRef] [PubMed]
  16. Christov, I.I. Real time electrocardiogram QRS detection using combined adaptive threshold. Biomed. Eng. Online 2004, 3, 1–9. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Karimipour, A.; Homaeinezhad, M.R. Real-time electrocardiogram P-QRS-T detection–delineation algorithm based on quality-supported analysis of characteristic templates. Comput. Biol. Med. 2014, 52, 153–165. [Google Scholar] [CrossRef] [PubMed]
  18. Zhang, F.; Lian, Y. Effective ECG QRS detection based on multiscale mathematical morphology filtering. IEEE Trans. Biomed. Circuits Syst. 2009, 3, 220–228. [Google Scholar] [CrossRef]
  19. Yazdani, S.; Vesin, J.M. Extraction of QRS fiducial points from the ECG using adaptive mathematical morphology. Digit. Signal Process. 2016, 56, 100–109. [Google Scholar] [CrossRef] [Green Version]
  20. Hamilton, P.S.; Tompkins, W.J. Quantitative investigation of QRS detection rules using the MIT/BIH arrhythmia database. IEEE Trans. Biomed. Eng. 1986, BME-33, 1157–1165. [Google Scholar] [CrossRef]
  21. Farashi, S. A multiresolution time-dependent entropy method for QRS complex detection. Biomed. Signal Process. Control 2016, 24, 63–71. [Google Scholar] [CrossRef]
  22. Phukpattaranont, P. QRS detection algorithm based on the quadratic filter. Expert Syst. Appl. 2015, 42, 4867–4877. [Google Scholar] [CrossRef]
  23. Manikandana, M.S.; Somanb, K.P. A novel method for detecting R-peaks in electrocardiogram (ECG) signal. Biomed. Signal Process. Control 2012, 7, 118–128. [Google Scholar] [CrossRef]
  24. Zhu, H.; Dong, J. An R-peak detection method based on peaks of Shannon energy envelope. Biomed. Signal Process. Control 2013, 8, 466–474. [Google Scholar] [CrossRef]
  25. Kim, J.; Shin, H. Simple and robust realtime QRS detection algorithm based on spatiotemporal characteristic of the QRS complex. PLoS ONE 2016, 11, e0150144. [Google Scholar] [CrossRef]
  26. Korurek, M.; Dogan, B. ECG beat classification using particle swarm optimization and radial basis function neural network. Expert Syst. Appl. 2010, 37, 7563–7569. [Google Scholar] [CrossRef]
  27. Li, P.F.; Wang, Y.; He, J.C.; Wang, L.H.; Tian, Y.; Zhou, T.S.; Li, T.C.; Li, J.S. High-performance personalized heartbeat classification model for long-term ECG signal. IEEE Trans. Biomed. Eng. 2017, 64, 78–86. [Google Scholar] [PubMed]
  28. Gutierrez-Rivas, R.; Garcia, J.J.; Marnane, W.P.; Hernandez, A. Novel real-time low-complexity QRS complex detector based on adaptive thresholding. IEEE Sens. J. 2015, 15, 6036–6043. [Google Scholar] [CrossRef]
  29. Arteaga-Falconi, J.S.; Osman, H.A.; Saddik, A.E. ECG authentication for mobile devices. IEEE Trans. Instrum. Meas. 2016, 65, 591–600. [Google Scholar] [CrossRef]
  30. Dohare, A.K.; Kumar, V.; Kumar, R. An efficient new method for the detection of QRS in electrocardiogram. Comput. Electr. Eng. 2014, 40, 1717–1730. [Google Scholar] [CrossRef]
  31. Kuzilek, J.; Lhotska, L. Electrocardiogram beat detection enhancement using independent component analysis. Med. Eng. Phys. 2013, 35, 704–711. [Google Scholar] [CrossRef]
  32. Thakor, N.V.; Zhu, Y.S. Application of adaptive filtering to ECG analysis: Noise cancellation and arrhythmia detection. IEEE Trans. Biomed. Eng. 1991, 38, 785–793. [Google Scholar] [CrossRef]
  33. Laguna, P.; Jane, R.; Caminal, P. Automatic detection of wave boundaries in multilead ECG signals: Validation with the CSE database. Comput. Biomed. Res. 1994, 27, 45–60. [Google Scholar] [CrossRef] [PubMed]
  34. Strumillo, P. Nested median filtering for detecting T-wave offset in ECGs. Electron. Lett. 2002, 38, 682–683. [Google Scholar] [CrossRef]
  35. Akhbari, M.; Shamsollahi, M.B.; Jutten, C. ECG fiducial points extraction by extended Kalman filtering. In Proceedings of the 2013 International Conference on Telecommunications and Signal Processing, Rome, Italy, 2–4 July 2013; pp. 628–632. [Google Scholar]
  36. Akhbari, M.; Shamsollahi, M.B.; Jutten, C.; Armoundas, A.A.; Sayadi, O. ECG de-noising and fiducial point extraction using extended Kalman filtering frame- work with linear and nonlinear phase observation. Physiol. Meas. J. 2016, 37, 203–226. [Google Scholar] [CrossRef] [PubMed]
  37. Akhbari, M.; Ghahjaverestan, M.N.; Shamsollahi, M.B.; Jutten, C. ECG fiducial point extraction using switching Kalman filter. Comput. Methods Programs Biomed. 2018, 157, 129–136. [Google Scholar] [CrossRef] [PubMed]
  38. Murthy, I.S.N.; Niranjan, U.C. Component wave delineation of ECG by filtering in the Fourier domain. Med. Biol. Eng. Comput. 1992, 30, 169–176. [Google Scholar] [CrossRef]
  39. Murthy, I.S.N.; Prasad, G.S.S.D. Analysis of ECG from pole-zero models. IEEE Trans. Biomed. Eng. 1992, 39, 741–751. [Google Scholar] [CrossRef] [PubMed]
  40. Li, C.; Zheng, C.; Tai, C. Detection of ECG characteristic points using wavelet transforms. IEEE Trans. Biomed. Eng. 1995, 42, 21–28. [Google Scholar]
  41. Martínez, J.P.; Almeida, R.; Olmos, S.; Rocha, A.P.; Laguna, P. A Wavelet-based ECG delineator: Evaluation on standard databases. IEEE Trans. Biomed. Eng. 2004, 51, 570–581. [Google Scholar] [CrossRef]
  42. Mazomenos, E.B.; Biswas, D.; Acharyya, A.; Chen, T.; Maharatna, K.; Rosengarten, J.; Morgan, J.; Curzen, N. A Low-complexity ECG feature extraction algorithm for mobile healthcare applications. IEEE J. Biomed. Health Inform. 2013, 17, 459–469. [Google Scholar] [CrossRef] [Green Version]
  43. Sayadi, O.; Shamsollahi, M.B. A model-based Bayesian framework for ECG beat segmentation. Physiol. Meas. 2009, 30, 335–352. [Google Scholar] [CrossRef]
  44. Lin, C.; Mailhes, C.; Tourneret, J.Y. P- and T-wave delineation in ECG signals using a Bayesian approach and a partially collapsed Gibbs sampler. IEEE Trans. Biomed. Eng. 2010, 57, 2840–2849. [Google Scholar]
  45. Lin, C.; Kail, G.; Tourneret, J.Y.; Mailhes, C.; Hlawatsch, F. P and T wave delineation and waveform estimation in ECG signals using a block Gibbs sampler. In Proceedings of the International Conference on Acoustics, Speech and Signal Processing, Prague, Czech Republic, 22–27 May 2011; pp. 537–540. [Google Scholar]
  46. Andreao, R.V.; Dorizzi, B.; Boudy, J. ECG signal analysis through hidden Markov models. IEEE Trans. Biomed. Eng. 2006, 53, 1541–1549. [Google Scholar] [CrossRef]
  47. Akhbari, M.; Shamsollahi, M.B.; Sayadi, O.; Armoundas, A.A.; Jutten, C. ECG segmentation and fiducial point extraction using multi hidden Markov model. Comput. Biol. Med. 2016, 79, 21–29. [Google Scholar] [CrossRef] [Green Version]
  48. Chen, G.; Chen, M.; Zhang, J.; Zhang, L.; Pang, C. A crucial wave detection and delineation method for twelve-lead ECG signals. IEEE Access 2020, 8, 10707–10717. [Google Scholar] [CrossRef]
  49. Zhang, B.; Allebach, J.P. Adaptive bilateral filter for sharpness enhancement and noise removal. IEEE Trans. Image Process. 2008, 17, 664–678. [Google Scholar] [CrossRef]
  50. Bae, T.W. Spatial and temporal bilateral filter for infrared small target enhancement. Infrared Phys. Technol. 2014, 63, 42–53. [Google Scholar] [CrossRef]
  51. Luz, E.J.D.S.; Nunes, T.M.; Albuquerque, V.H.C.D.; Papa, J.P.; Menotti, D. ECG arrhythmia classification based on optimum-path forest. Expert Syst. Appl. 2013, 40, 3561–3573. [Google Scholar] [CrossRef] [Green Version]
  52. Acharya, U.R.; Oh, S.L.; Hagiwara, Y.; Tan, J.H.; Adam, M.; Gertych, A.; Tan, R.S. A deep convolutional neural network model to classify heartbeats. Comput. Biol. Med. 2017, 89, 389–396. [Google Scholar] [CrossRef] [PubMed]
  53. Cardio Medical Device Package. Available online: https://webstore.ansi.org/Standards/AAMI/CARDIOMEDICALDEVICEPACKAGE/ (accessed on 24 May 2021).
  54. The WFDB Software Package. Available online: https://www.physionet.org/physiotools/wfdb.shtml/ (accessed on 24 May 2021).
  55. QT Database. Available online: http://www.physionet.org/physiobank/database/qtdb/ (accessed on 24 May 2021).
  56. Laguna, P.; Mark, R.; Goldberg, A.; Moody, G. A database for evaluation of algorithms for measurement of QT and other waveform intervals in the ECG. In Proceedings of the Computing in Cardiology, Lund, Sweden, 7–10 September 1997; pp. 673–676. [Google Scholar]
  57. Kligfield, P.; Gettes, L.S.; Bailey, J.J.; Childers, R.; Deal, B.J.; Hancock, E.W.; Herpen, G.; Kors, J.A.; Macfarlane, P.; Mirvis, D.M.; et al. Recomendations for measurement standards in quantitative electrocardiography. Eur. Heart J. 1985, 6, 815–825. [Google Scholar]
  58. Heart Rate Variability. Available online: https://www.firstbeat.com/en/science-and-physiology/heart-rate-variability/ (accessed on 24 May 2021).
  59. Hoang, C.D.; Kien, N.P.; Dung, N.V. A review of heart rate variability and its applications. APCBEE Procedia 2013, 7, 80–85. [Google Scholar]
  60. Riganello, F.; Larroque, S.K.; Bahri, M.A.; Heine, L.; Martial, C.; Carrière, M.; Charland-Verville, V.; Aubinet, C.; Vanhaudenhuyse, A.; Chatelle, C.; et al. A heartbeat away from consciousness: Heart rate variability entropy can discriminate disorders of consciousness and is correlated with resting-state fMRI brain connectivity of the central autonomic network. Front. Neurol. 2018, 12, 77–94. [Google Scholar]
  61. Libby, P.; Bonow, R.O.; Mann, D.L.; Zipes, D.P. Braunwald’s Heart Disease: A Textbook of Cardiovascular Medicine, 8th ed.; Elsevier: Amsterdam, The Netherlands, 2008; pp. 574–582. [Google Scholar]
  62. What is HRV. Available online: https://ouraring.com/blog/what-is-heart-rate-variability/ (accessed on 12 October 2021).
  63. Heart Rate Variability. Available online: https://en.wikipedia.org/wiki/Heart_rate_variability/ (accessed on 24 May 2021).
  64. ECG/EKG (Electrocardiogram). Available online: https://www.myvmc.com/banners-heart-health-centre/ecg-ekg-electrocardiogram/ (accessed on 24 May 2021).
  65. Tilley, L.; Smith, F.; Oyama, M.; Sleeper, M. Manual of Canine and Feline Cardiology Book, 4th ed.; Elsevier: Amsterdam, The Netherlands, 2008; pp. 93–106. [Google Scholar]
  66. MIT-BIH Arrhythmia Database Directory. Available online: https://physionet.org/physiobank/database/html/mitdbdir/intro.htm (accessed on 24 May 2021).
  67. PR Interval. Available online: https://litfl.com/pr-interval-ecg-library/ (accessed on 24 May 2021).
  68. Su, A. ECG Noise Filtering Using Online Model-Based Bayesian Filtering Techniques. Master’s Thesis, University of Waterloo, Waterloo, ON, Canada, 2013. [Google Scholar]
  69. Bradycardia and Tachycardia. Available online: https://amscardiology.com/conditions-procedures/bradycardia-and-tachycardia/ (accessed on 12 October 2021).
  70. Park, K.J.; Jeong, H.J. Assessing methods of heart rate variability. Korean Soc. Clin. Neurophysiol. 2014, 16, 49–54. [Google Scholar] [CrossRef]
  71. Record 201. Available online: https://physionet.org/physiobank/database/html/mitdbdir/records.htm#201/ (accessed on 24 May 2021).
  72. Record 202. Available online: https://www.physionet.org/physiobank/database/html/mitdbdir/records.htm#202/ (accessed on 24 May 2021).
  73. Shaffer, F.; Ginsberg, J.P. An overview of heart rate variability metrics and norms. Front. Public Health 2017, 5, 1–17. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  74. Malik, M.; Bigger, J.T.; Camm, A.J.; Kleiger, R.E.; Malliani, A.; Moss, A.J.; Schwartz, P.J. Heart rate variability: Standards of measurement, physiological interpretation, and clinical use. Eur. Heart J. 1996, 17, 354–381. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Impact of standard deviation; (a) σ d = 0.1 , σ r = 0.1 , (b) σ d = 5 , σ r = 0.1 , (c) σ d = 5 , σ r = 1 , and (d) σ d = 10 , σ r = 1 in 215 N(4).
Figure 1. Impact of standard deviation; (a) σ d = 0.1 , σ r = 0.1 , (b) σ d = 5 , σ r = 0.1 , (c) σ d = 5 , σ r = 1 , and (d) σ d = 10 , σ r = 1 in 215 N(4).
Ijerph 18 10792 g001
Figure 2. FPs concerning the PQRST complex and detection order.
Figure 2. FPs concerning the PQRST complex and detection order.
Ijerph 18 10792 g002
Figure 3. An example of seamless connection of successive SWs for real time.
Figure 3. An example of seamless connection of successive SWs for real time.
Ijerph 18 10792 g003
Figure 4. Candidate-R section in the enhanced residual signal.
Figure 4. Candidate-R section in the enhanced residual signal.
Ijerph 18 10792 g004
Figure 5. Detection procedure of the R-peak; (a) predicted background signal, (b) residual (difference) signal, (c) candidate-R interval, and (d) detected R-peak.
Figure 5. Detection procedure of the R-peak; (a) predicted background signal, (b) residual (difference) signal, (c) candidate-R interval, and (d) detected R-peak.
Ijerph 18 10792 g005
Figure 6. The various R-peak shape; (a) normal R, (b) flat R, (c) fR-L, (d) fR-R, (e) fR-L2, and (f) fR-R2.
Figure 6. The various R-peak shape; (a) normal R, (b) flat R, (c) fR-L, (d) fR-R, (e) fR-L2, and (f) fR-R2.
Ijerph 18 10792 g006
Figure 7. Detection of the R-peak and additional R-peak for (a) 111L(320), (b) 118R(159), (c) 202a(1415), (d) 208V(1810), (e) 210F(2622), and (f) 217f(99) in MIT-DB.
Figure 7. Detection of the R-peak and additional R-peak for (a) 111L(320), (b) 118R(159), (c) 202a(1415), (d) 208V(1810), (e) 210F(2622), and (f) 217f(99) in MIT-DB.
Ijerph 18 10792 g007
Figure 8. The SR for FP detection of P- and T-wave; Subscripts L, R, pre, cur, pre, and nex denote onset, offset, previous, current, next.
Figure 8. The SR for FP detection of P- and T-wave; Subscripts L, R, pre, cur, pre, and nex denote onset, offset, previous, current, next.
Ijerph 18 10792 g008
Figure 9. Symmetric point filters for normal and abnormal P- and T-point detection; (a) normal type ( ω = 1 , v P = v T = 0 ), (b) deformed normal type ( ω = 1 , v P = v T = 2 ), (c) inverted type ( ω = 1 , v P = v T = 0 ), and (d) deformed inverted type ( ω = 1 , v P = v T = 2 ).
Figure 9. Symmetric point filters for normal and abnormal P- and T-point detection; (a) normal type ( ω = 1 , v P = v T = 0 ), (b) deformed normal type ( ω = 1 , v P = v T = 2 ), (c) inverted type ( ω = 1 , v P = v T = 0 ), and (d) deformed inverted type ( ω = 1 , v P = v T = 2 ).
Ijerph 18 10792 g009
Figure 10. Detection of abnormal P-waves for (a) 118R(200), (b) 210N(307), (c) 214L(1200), (d) 220N(303), (e) 228N(1201), and (f) 233N(186) in MIT-DB.
Figure 10. Detection of abnormal P-waves for (a) 118R(200), (b) 210N(307), (c) 214L(1200), (d) 220N(303), (e) 228N(1201), and (f) 233N(186) in MIT-DB.
Ijerph 18 10792 g010
Figure 11. Asymmetric point filters for onset and offset detection of the P- and T-wave; (a) normal type and (b) inverted type.
Figure 11. Asymmetric point filters for onset and offset detection of the P- and T-wave; (a) normal type and (b) inverted type.
Ijerph 18 10792 g011
Figure 12. Detection of abnormal T-waves for (a) 106V(497), (b) 109L(499), (c) 118R(405), (d) 201x(608), (e) 202N(806), and (f) 201x(608) in MIT-DB.
Figure 12. Detection of abnormal T-waves for (a) 106V(497), (b) 109L(499), (c) 118R(405), (d) 201x(608), (e) 202N(806), and (f) 201x(608) in MIT-DB.
Ijerph 18 10792 g012
Figure 13. Detection result of the PQRST FPs for Record (a) 106V(497), (b) 108N(6), (c) 118R(159), (d) 201x(608), (e) 202a(1415), (f) 202N(806), (g) 214L(1200), (h) 217f(99), and (i) 233N(186) sample in MIT-DB.
Figure 13. Detection result of the PQRST FPs for Record (a) 106V(497), (b) 108N(6), (c) 118R(159), (d) 201x(608), (e) 202a(1415), (f) 202N(806), (g) 214L(1200), (h) 217f(99), and (i) 233N(186) sample in MIT-DB.
Ijerph 18 10792 g013aIjerph 18 10792 g013bIjerph 18 10792 g013c
Figure 14. PQRST complex detection results of (a) Sel41N(5), (b) Sel231N(5), (c) Sel233N(5), (d) Sel301N(5), and (e) Sel808N(5) by the proposed method in QT-DB.
Figure 14. PQRST complex detection results of (a) Sel41N(5), (b) Sel231N(5), (c) Sel233N(5), (d) Sel301N(5), and (e) Sel808N(5) by the proposed method in QT-DB.
Ijerph 18 10792 g014aIjerph 18 10792 g014b
Figure 15. HR trend, RRI trend, histogram of RRIs, spectral power, ST-segment, QT-interval, and PR-interval for 5 min length of Record (a) 106V(497), (b) 108N(6), (c) 118R(159), (d) 201x(608), (e) 202a(1415), and (f) 217f(99) in MIT-DB.
Figure 15. HR trend, RRI trend, histogram of RRIs, spectral power, ST-segment, QT-interval, and PR-interval for 5 min length of Record (a) 106V(497), (b) 108N(6), (c) 118R(159), (d) 201x(608), (e) 202a(1415), and (f) 217f(99) in MIT-DB.
Ijerph 18 10792 g015
Table 1. Five kinds of heartbeat annotated in MIT-DB.
Table 1. Five kinds of heartbeat annotated in MIT-DB.
N (Non-Ectopic)S (Supraventricular Ectopic)V (Ventricular Ectopic)F (Fusion)Q (Unknown)
-
Normal (N)
-
Left bundle branch block (L)
-
Right bundle branch block (R)
-
Atrial escape (e)
-
Nodal (junctional) escape (j)
-
Atrial premature (A)
-
Aberrated atrial premature (a)
-
Nodal (junctional) premature (J)
-
Supra-ventricular premature (S)
-
Premature ventricular contraction (V)
-
Ventricular escape (E)
-
Fusion of ventricular and normal (F)
-
Paced (/)
-
Fusion of paced and—normal (f)
-
Unclassified (Q)
Table 2. R-peak detection performance of the proposed method for the MIT-DB.
Table 2. R-peak detection performance of the proposed method for the MIT-DB.
TapeTotalFNFPSe [%]+P [%]DER [%]TapeTotalFNFPSe [%]+P [%]DER [%]
100227300100100020119635299.7599.900.36
10118652199.8999.950.1620221363399.8699.860.28
10221870010010002032980131599.5699.500.94
103208400100100020526566399.7799.920.30
104222941499.8299.370.8120718627899.6299.570.81
1052572171299.3499.531.13208295517999.4299.690.88
1062027111699.4699.211.3320930045399.8399.900.27
10721372399.9199.860.23210265012999.5599.660.79
1081774132399.2798.712.0321227481599.9699.820.22
10925323099.881000.1221332512399.9499.910.15
11121241299.9599.910.1421422650110099.960.04
11225390110099.960.0421533633399.9199.910.18
11317952199.8999.940.1721722095699.7799.730.50
11418793499.8499.790.3721921541399.9599.860.19
115195300100100022020481099.951000.05
116241213499.4699.830.7022124273299.8899.920.19
11715350210099.930.0722224832299.9299.920.16
11822782199.9199.960.1322326053299.8899.920.19
11919871099.951000.05228205341399.8199.370.83
12118632099.891000.1123022561499.9699.820.22
122247600100100023115711299.9499.870.19
12315182199.8799.930.2023217802399.8999.890.22
124161900100100023330794199.8799.970.16
20026012999.9299.650.4223427533099.891000.11
Total109,51018419399.8399.820.34
Table 3. R-peak detection performance of the proposed method for SNR change.
Table 3. R-peak detection performance of the proposed method for SNR change.
SNRTapeTotalFNFPSe [%]+P [%]TapeTotalFNFPSe [%]+P [%]
0.5102218778173264.2965.76105257288778965.5168.11
155145574.8178.2465163974.6975.04
525923288.1689.2638935284.8886.11
1012111594.4794.7318915392.6593.97
15635597.1297.481127895.6596.93
20332998.4998.67614997.6398.09
4011799.5099.68231699.1199.38
603099.86100191399.2699.49
8000100100171299.3499.53
Table 4. Comparison of R-peak detection performance and supplemental function for several methods.
Table 4. Comparison of R-peak detection performance and supplemental function for several methods.
MethodOnset and Offset Detection Detection of QRSNumber of R ClassificationfR DetectionSe [%]+P [%]DER [%]TBTPFNFP
Pan and Tompkins [5]N (R, QRS)*N99.7699.560.68116,137115,860277507
Hamilton and Tompkins [7]N (R, QRS)*N99.6999.770.54109,267108,927340248
Farashi [21]N (Only R)2N99.7599.850.40109,965109,692273163
Phukpattaranont [22]N (Only R)2N99.8299.810.38109,483109,281202210
Manikandan and Soman [23]N (Only R)1N99.9399.870.20109,496109,41779140
Merah et al. [11]Y1N99.8499.880.28109,494109,316178126
Cristov [16] (algorithm 2)N (Only R)*N99.7899.780.44110,050109,615240239
Karimipour and Homaeinezhad [17]N (R, QRS)*N99.8199.700.43116,137115,945192308
Dohare et al. [30]N (R, QRS)1N99.2199.341.45109,966109,096870728
Yazdani and Vesin [19]N (R, QRS)2N99.8799.900.22109,494109,357137108
Castells-Rufas and Carrabina [9]N (Only R)*N99.4399.670.88109,494108,880614353
Jinkwon Kim and Hangsik Shin [25]N (Only R)*N99.9099.910.19109,494109,35710797
DS Benitez et al. [13]N (Only R)1N99.8199.830.36N/AN/A203187
Proposed methodY4Y99.8399.820.34109,510109,326184193
* Only QRS complexes detection.
Table 5. Performance comparison of PQRST complex detection from QT-DB (N/A: Not applicable).
Table 5. Performance comparison of PQRST complex detection from QT-DB (N/A: Not applicable).
MethodsFiducial Points
PonsetPpeakPoffsetQRSonsetRpeakQRSoffsetTonsetTpeakToffset
LPD [33]14 ± 13.3 (19.3)4.8 ± 10.6 (11.6)−0.1 ± 12.3 (12.3)−3.6 ± 8.6 (9.3)N/A (N/A)−1.1 ± 8.3 (8.4)N/A (N/A)−7.2 ± 14.3 (16.0)13.5 ± 27.0 (30.2)
WT [41]2.0 ± 14.8 (14.9)3.6 ± 13.2 (13.7)1.9 ± 12.8 (13)4.6 ± 7.7 (9)N/A (N/A)0.8 ± 8.7 (8.7)N/A (N/A)0.2 ± 13.9 (13.9)−1.6 ± 18.1 (18.2)
PCGS [44]3.7 ± 17.3 (17.7)4.1 ± 8.6 (9.5)−3.1 ± 15.1 (15.4)N/A (N/A)N/A (N/A)N/A (N/A)7.1 ± 18.5 (19.8)1.3 ± 10.5 (10.6)4.3 ± 20.8 (21.2)
HFEA [42]−6.3 ± 12.5 (14.0)5.0 ± 9.5 (10.7)3.1 ± 16.0 (16.3)3.7 ± 7.8 (8.6)3.8 ± 9.8 (10.5)12.1 ± 16.6 (20.6)−15.8 ± 34.0 (37.5)−15.3 ± 29.3 (33.0)−16.6 ± 20.8 (26.6)
MHMM [47]4.0 ± 12.0 (12.5)0.2 ± 3.5 (3.4)−3.0 ± 11.0 (12.2)−5.0 ± 10.0 (11)0 ± 0.2 (0.2)1.5 ± 11.5 (11.6)N/A (N/A)−0.4 ± 5.6 (5.6)−5.0 ± 14.0 (14.7)
TLBLDT [48]2.2 ± 7.4 (7.7)−0.76 ± 5.5(5.6)−6.5 ± 10.7(12.5)15.4 ± 14.6(21.2)−0.14 ± 3.4(3.4)−3.8 ± 13.6(14.1)−1.3 ± 8.8(8.9)−0.5 ± 5.5(5.5)−1.2 ± 6.8(6.9)
Proposed3.8 ± 10.9 (11.5)1.8 ± 3.3 (3.8)3.2 ± 9.6 (10.1)−3.9 ± 8.2 (9.1)0.2 ± 0.3 (0.4)−3.1 ± 8.7 (9.2)8.3 ± 10.7 (13.5)0.7 ± 4.6 (4.7)−7.2 ± 10.2 (12.5)
Tolerances (2sCSE) [57]10.2-12.76.5-11.6--30.6
Table 6. Indices concerning time- and frequency-domain methods of HRV.
Table 6. Indices concerning time- and frequency-domain methods of HRV.
VariableUnitsMeaning
Time domainStatisticalMean heart rate[s]-
heart rate std.[s]-
RR mean[ms] or [s]Average RR interval in the window of measurement
NN50[count]The number of adjacent RR intervals that varied by more than 50 ms
pNN50[%]The percentage of adjacent RR intervals that varied by more than 50 ms
rMSSD[ms]Root mean square of the difference between the coupling intervals of adjacent RR intervals
GeometricHRV triangular index (HTI)-A measure in which the length of RR intervals serves as the x-axis of the plot and the number of each RR interval length serves as the y-axis
TINN-Triangular interpolation, the baseline width of the distribution measured as a base of a triangle
Frequency domainVLF power[ms2]Power from very low frequency (0 Hz~0.04 Hz)
LF power[ms2]Power from low frequency (0.04 Hz~0.15 Hz)
HF power[ms2]Power from high frequency (0.15 Hz~0.40 Hz)
VLF[%](VLF Power/Total Power) × 100
LF[%](LF Power/Total Power) × 100
HF[%](HF Power/Total Power) × 100
LF normn.u.LF power in normalized units: LF/(Total Power—VLF) × 100
HF normn.u.HF power in normalized units: HF/(Total Power—VLF) × 100
LF/HF-Sympathovagal balance
Table 7. HRV analysis for test records of MIT-DB.
Table 7. HRV analysis for test records of MIT-DB.
Variables106V(497)108N(6)118R(159)201x(608)202a(1415)217f(99)
RR mean0.8721.0280.7860.9790.6170.806
RR std.0.1710.1770.1100.3990.1590.111
Heart rate mean66.7558.87763.7597.874.8
Heart rate std.2.2172.3884.74311.11715.2381.483
RMSSD0.2010.1960.1480.5660.1780.126
NN5075794615916555
pNN5021.67626.96311.97951.96133.60514.706
HTI18.26312.258.3702.69318.9239.615
TINN32273171121
VLF power8.073 × 1051.01 × 1066.75 × 1051.07 × 1065.02 × 1056.68 × 105
LF power5.18 × 1032.63 × 1042.72 × 1021.64 × 1059.93 × 1032.10 × 103
HF power1.78 × 1044.98 × 1043.92 × 1035.63 × 1051.56 × 1043.65 × 103
VLF97.27092.69798.92359.48495.47199.222
LF0.6252.4180.0409.1061.8890.313
HF2.1554.5740.57531.2752.9710.543
LF norm22.89733.1023.69722.47441.69840.215
HF norm78.93362.62553.37177.19265.60369.822
LF/HF0.2900.5290.0690.2910.6360.576
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bae, T.-W.; Kwon, K.-K.; Kim, K.-H. Electrocardiogram Fiducial Point Detector Using a Bilateral Filter and Symmetrical Point-Filter Structure. Int. J. Environ. Res. Public Health 2021, 18, 10792. https://doi.org/10.3390/ijerph182010792

AMA Style

Bae T-W, Kwon K-K, Kim K-H. Electrocardiogram Fiducial Point Detector Using a Bilateral Filter and Symmetrical Point-Filter Structure. International Journal of Environmental Research and Public Health. 2021; 18(20):10792. https://doi.org/10.3390/ijerph182010792

Chicago/Turabian Style

Bae, Tae-Wuk, Kee-Koo Kwon, and Kyu-Hyung Kim. 2021. "Electrocardiogram Fiducial Point Detector Using a Bilateral Filter and Symmetrical Point-Filter Structure" International Journal of Environmental Research and Public Health 18, no. 20: 10792. https://doi.org/10.3390/ijerph182010792

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop