You are on page 1of 18

Cardiovascular Engineering and Technology, Vol. 2, No. 4, December 2011 ( 2011) pp.

408425
DOI: 10.1007/s13239-011-0065-3

An Efcient R-peak Detection Based on New Nonlinear Transformation


and First-Order Gaussian Differentiator
P. KATHIRVEL,2 M. SABARIMALAI MANIKANDAN,1 S. R. M. PRASANNA,3 and K. P. SOMAN2
1
Department of Electronics and Communication Engineering, Amrita School of Engineering, Amrita Vishwa Vidyapeetham,
Coimbatore 641105, India; 2Center for Excellence in Computational Engineering and Networking, Amrita Vishwa
Vidyapeetham, Coimbatore, Tamilnadu, India; and 3Department of Electrical and Electronics Engineering, Indian Institute
of Technology Guwahati, Guwahati, Assam, India
(Received 18 May 2011; accepted 27 September 2011; published online 12 October 2011)

Associate Editor Ajit P. Yoganathan oversaw the review of this article.

AbstractIn this paper, we present a reliable and efcient tude, wide), very big change in amplitudes of adjacent
automatic R-wave detection based on new nonlinear trans- R-peaks, irregular heart rates, and noisy ECG signals.
formation and simple peak-nding strategy. The detection
algorithm consists of four stages. In the rst stage, the KeywordsECG signal analysis, QRS complex detection,
bandpass ltering and differentiation operations are used to
ECG beat recognition, Heart rate variability analysis, Shan-
enhance QRS complexes and to reduce out-of-band noise. In
the second stage, we introduce a new nonlinear transforma- non energy, Gaussian differentiator, Peak nding logic.
tion based on energy thresholding, Shannon energy compu-
tation, and smoothing processes to obtain a positive-valued
feature signal which includes large candidate peaks corre-
sponding to the QRS complex regions. The energy thres- INTRODUCTION
holding reduces the effect of spurious noise spikes from
muscle artifacts. The Shannon energy transformation ampli- Automatic R-peak detection algorithm is essential
es medium amplitudes and results in small deviations for many types of ECG applications including heart
between successive peaks. Therefore, the proposed nonlinear
transformation is capable of reducing the number of false- rate monitor (HRM), ECG wave delineator, fetal heart
positives and false-negatives under small-QRS and wide- rate monitor (fHRM), cardiac sound separator, patient
QRS complexes and noisy ECG signals. In the third stage, we authentication and ECG coder. Various experiments
propose a simple peak-nding strategy based on the rst- showed that overall performance of all these ECG
order Gaussian differentiator (FOGD) that accurately iden- applications depends highly on accurate detection of
ties locations of candidate R-peaks in a feature signal. This
stage computes convolution of the smooth feature signal time instants of the R-wave peaks in the ECG sig-
and FOGD operator. The resultant convolution output has nal.6,10,19,23,29 The typical ECG beat consists of
negative zero-crossings (ZCs) around the candidate peaks of P-wave, QRS complex, T- and U-wave. The R-wave
feature signal due to the anti-symmetric nature of the FOGD is the most prominent wave in each cardiac cycle of an
operator. Thus, these negative ZCS are detected and used as ECG signal. Therefore, development of robust auto-
guides to nd locations of real R-peaks in an original signal
at the fourth stage. Unlike other existing algorithms, the matic R-wave peak detector is essential but it is still a
proposed algorithm does not use search back algorithm and challenging task due to irregular heart rates, various
learning phase. The proposed algorithm is validated using the amplitude levels and shapes of QRS morphologies, and
standard MIT-BIH arrhythmia database and achieves an various kinds of noise and artifacts.
average sensitivity of 99.94% and a positive predictivity of In the literature, many QRS detection methods have
99.96%. Experimental results show that the proposed algo-
rithm outperforms other existing algorithms in case of been developed based on the rst and second deriva-
different QRS complex morphologies (negative, low-ampli- tives, digital lters (DFs), linear prediction (LP), two-
pole recursive lter, maximum a posteriori (MAP)
estimation, wavelet transform (WT), lter-banks, Hil-
bert transform (HT), higher-order statistics (HOS),
Address correspondence to M. Sabarimalai Manikandan,
Department of Electronics and Communication Engineering, Amrita
template matching (TM), geometrical matching (GM),
School of Engineering, Amrita Vishwa Vidyapeetham, Coimba- matched lters, mathematical morphology, multiscale
tore 641105, India. Electronic mail: msm.sabari@gmail.com mathematical morphology (3M) and empirical mode
408
1869-408X/11/1200-0408/0  2011 Biomedical Engineering Society
Efcient R-peak Detection 409

decomposition (EMD), syntactical rules, neural net- tant role in detection performance. Therefore, the
works, hidden Markov models (HMM), support vec- effectiveness of the traditional squaring transformation
tor machine (SVM), zero-crossing (ZC), and genetic is studied using the ECG record 104 taken from the
algorithms.19,1216,1820,2228,3032,3438 Generally, the MIT-BIH arrhythmia database. The output results are
digital ltering based QRS detector is widely used be- illustrated in Fig. 1, which shows the original signal
cause that has lower computational complexity, and x[n], the differentiated signal d[n], the squared signal
requires less memory space.20,25 e[n], and the feature signal ee[n]. It is noticed that the
The QRS detectors based on ltering methods feature signal has more noise peaks and also the
consists of two stages: the preprocessing stage and the squarer buries the peaks of small-QRS and wide-QRS
decision stage.25 The preprocessing stage is generally complexes under the high-amplitude ones. In such
constructed using one or more signal processing tech- cases, many methods had a relatively high number of
niques such as bandpass lters, derivatives lter banks, FN and FP detections for ECG signals with small-
wavelets, EMD, mathematical morphological opera- QRS and wide-QRS complexes and noise. Therefore,
tors and squaring transformation. Although different many researchers have attempted to construct suitable
signal processing techniques were employed to accen- decision stage based on the preprocessing results for
tuate the QRS feature and to suppress the noises and achieving better detection rates.
artifacts but most of them have some drawbacks. The decision stage generally includes peak-detection
Generally, nonlinear transformation plays an impor- logic and searchback algorithm to locate R-peaks. The

(a)
1
x[n]

1
0 1 2 3 4 5 6 7 8 9

(b)
0.05

0
d[n]

0.05

0.1
0 1 2 3 4 5 6 7 8 9
3
(c) x 10
10
8
6
e[n]

4
2

0 1 2 3 4 5 6 7 8 9

(d) 0.25
0.2
0.15
ee[n]

noise peaks
0.1
0.05

0 1 2 3 4 5 6 7 8 9
Time (sec)

FIGURE 1. Example illustrating the output of stages of the conventional preprocessing algorithm. (a) Original ECG signal x[n], (b)
difference of the filtered ECG (dECG) signal d[n], (c) squared (or energy) signal e[n], and (d) energy envelope ee[n].
410 KATHIRVEL et al.

decision stage of the ltering-based methods com- Evaluation Methods section describes the character-
monly consists of sets of heuristic decision rules and a istics of validation ECG database, benchmark parame-
set of tactics with xed or/and adaptive amplitude- ters, and the algorithm assessment procedure. Results
dependent, duration-dependent, and RR-interval- and Discussion section reports the results of the pro-
dependent thresholds for detecting R peaks in the posed algorithm for the well-known MIT-BIH arrhyth-
feature signal.4,14,20,26,30,35 These thresholds are up- mia database and provides comparisons between the
dated periodically based upon amplitudes, durations proposed algorithm and other existing algorithms.
and RR-intervals of detected R-peaks in the previous Finally, conclusions are drawn in last section.
ECG segment. In literature, most of the algorithms use
similar decision rules and threshold determination
procedure. Moreover, searchback algorithm with PROPOSED ALGORITHM DESCRIPTION AND
adaptive amplitude-dependent and time-dependent THEORY
thresholds were widely adopted to reject or include
identied R-peaks located at tm and tn: (i) if In this section, we describe a simple and robust
tn  tm < 0.2 s (refractory period) and (ii) search back automated algorithm for detection of R-peaks of a
if tn  tm > 1.5RRavg. These medical rules may im- long-term ECG signal. Figure 2 shows a block dia-
prove detections for regular rhythms but some rules gram of our R-peak detection algorithm that consists
may be in conict with others. The above detection of the following steps:
issues clearly indicate that it is hard to nd a proper set
Bandpass Filtering and Differentiation
of decision rules and thresholds in case of (i) wide QRS
New Nonlinear Transformation
complexes, (ii) low-amplitude QRS complexes, (iii)
New Peak-Finding Technique
negative QRS polarities, (iv) sudden changes in RR
Finding Location of True R-Peaks.
intervals, (v) sudden changes in QRS amplitudes, (vi)
sudden changes in QRS morphologies, (vii) sharp P/T
waves, and various kinds of noise and artifacts.
In this paper, we present an eective and ecient
Bandpass Filtering and Dierentiation
automatic detection algorithm that identies the time-
location of the R-peaks in ECG signals. The proposed In the realistic environments, ECG signals are often
algorithm is simple that does not require additional obscured by various kinds of noise and artifacts from
decision rules with sets of thresholds based on the run- other sources. Common ECG noise sources such as
ning estimates of the signal peaks and noise peaks, the power line interference, muscle contractions, baseline
average RR interval and rate limits, a set of tactics to drift due to respiration, and abrupt baseline shift can
reject or include identied R-peaks, and learning phase. corrupt ECG signals signicantly. The frequency
The rest of this paper is organized as follows. Proposed content of a QRS complex is essentially in the fre-
Algorithm Description and Theory section describes a quency range 530 Hz.33 Heart pathologies may have a
four-stage detection algorithm in detail, including pseu- dramatic effect on the QRS complex. Several different
docode for implementation of the different stages. choices of bandpass lters with different passband

Stage 1: QRS enhancement and noise reduction Stage 2: New nonlinear transformation

x[n] bandpass f [n ] d[n] e th [n] Shannon energy


squaring and
filtering differentiation computation and
thresholding
ECG [5 20] Hz smoothing

Stage 4:True R-peak Locator Stage 3: New peak-finding logic s[n]

r[m] finding locations of true p[m] detecting zero-crossings z[n] convolution of


R-peak in ECG using accompanied by positive to envelope s[n] with a
locations of candidate negative transition
Locations of FOGD function wd [n]
R-peak detected, p[m]
R-peaks

FIGURE 2. Block diagram showing the architecture and individual stages of the new detection algorithm for R-peak detection in
ECG signals. A preprocessing stage emphasizes the QRS complex components and a new peak-finding stage identifies the
location of candidate R-peak.
Efcient R-peak Detection 411

frequencies for enhancement of QRS complex and We construct the 15th-order FIR bandpass DF using
suppression of P/T waves and noises have been the least squares approach, where cut-off frequencies
described.25 Most of energies of noises generated by of the passband are 6 and 20 Hz. After ltering, we
motion artifacts and P/T waves are concentrated up to apply rst-order forward differentiation to emphasize
5 Hz. So, sufcient P/T wave and noise suppression up large slope and high-frequency content of the QRS
to 5 Hz is essential. Spectral analysis of the various complex. Here, the differentiation of the ltered ECG
QRS morphologies with duration between 0.05 and 0.2 signal f[n] is implemented as
s reveals that most of the frequencies present in the
dn fn 1  fn: 1
QRS complex lies below 20 Hz. In this work, we chose
the passband such that they maximize the energy of The derivative operation reduces the eect of large P/
different QRS complexes (narrow-QRS and wide-QRS T waves. The original ECG and the dierence of the
complexes) and reduce the effect of P/T waves, power- ltered ECG (dECG) signals are shown in Figs. 3a and
line interference, motion artifacts and muscle noise. 3b, respectively. Figure 3b shows that the output of the

(a)
1
x[n]

(b)
0.05
d[n]

0
0.05
0.1

(c) 0.01

noise components
0.006
e[n]

0.002

(d) 0.01
e [n]

0.006
th

0.002

0 1 2 3 4 5 6 7 8 9
(e)
1
normalized
e [n]

0.5
th

(f)
envelope,
s[n]

0.1

0
0 1 2 3 4 5 6 7 8 9
Time (sec)

FIGURE 3. Example illustrating the output of stages of the proposed nonlinear transformation technique. (a) The original ECG
signal x[n], (b) the difference of the filtered ECG (dECG) signal d[n], (c) the squared (or energy) signal e[n], (d) the thresholded
energy signal eth[n], (e) the normalized thresholded energy signal e~th n; and (f) the Shannon energy envelope s[n].
412 KATHIRVEL et al.

differentiator is a bipolar signal. Thus, a rectication we thus use Shannon energy transformation which
process (or nonlinear transformation) is employed to results in small deviations between the successive R
obtain a positive-valued signal that eliminates detection peaks. The eectiveness of this nonlinear transforma-
problems in case of negative QRS complexes. In litera- tion was studied in our previous work.30 The experi-
ture, the squaring transformation is widely used to ob- mental results demonstrated that it improves detection
tain positive peaks regardless of polarity of QRS accuracy under ECG signal with smaller- and wider-
complexes. Figure 1 illustrates that disadvantages of QRS complexes. To compute Shannon energy, the
traditional squaring transformation: (i) it produces sev- thresholded energy signal is rst normalized as
eral spurious noise peaks and thus had a large number of
eth n
false positives; and (ii) it buries the peaks of small-QRS e~th n ; 6
and wide-QRS complexes under the high-amplitude maxN
n1 jeth nj
ones. In such cases, most of the methods failed to detect and then the Shannon energy of the normalized signal
smaller and wider-QRS complexes. Therefore, in this e~th n is computed as
work, a new nonlinear transformation based on squar-
ing, thresholding process and Shannon energy transfor- e2th n log e~2th n:
sn ~ 7
mation is designed to combat such problems effectively.
The Shannon energy values are smoothed using the
nite-impulse response (FIR) lter with a rectangular
New Nonlinear Transformation impulse response h[k] of length L to reduce the effect of
multiple peaks around QRS complex regions. This
Squaring and Adaptive Thresholding
smoothing process is designed to generate peaks cor-
The dECG signal d[n] is rst squared to obtain a responding to the QRS-complex portions. The pro-
positive-valued signal and then adaptive thresholding posed nonlinear transformation generates a smooth
is performed on the energy (or squarer) values e[n]. The feature signal that is illustrated in Fig. 3f. We can
squaring is implemented as clearly notice that the locations of candidate R-peaks
in the SE envelope s[n] correspond to approximate
en d2 n: 2 locations of the R peaks in the ECG waveform shown
The thresholding function is dened as in Fig. 3a. Therefore, in this proposed algorithm, these
 candidate peaks are processed further to nd locations
0; en<g of true R peaks in a ECG signal.
eth n 3
en; otherwise.
In this thresholding process, the energy values e[n]
New Peak-Finding Logic Using the First-Order
smaller than a threshold parameter g are set to zero
Gaussian Dierentiator
and other values are retained. Here, the adaptive-
threshold parameter g for each ECG segment is com- This section describes a new and simple peak-nd-
puted as ing strategy using the rst-order Gaussian dierentia-
tor (FOGD) operator that automatically nds the
g 0:5  re ; 4
locations of candidate R-peaks in the SE envelope.
where
v The First-Order Gaussian Dierentiator
u N
u1 X 1X N
re t en  l2 and l en: 5 In this work, the M-point Gaussian window w[m] is
N n1 N n1 dened as
2
where N is the number of samples in a test ECG seg- 1 mM2
wm e2 r2 ; m 1; 2; 3; . . .; M 8
ment. The outputs of the squaring and thresholding
stage is shown in Fig. 3. By comparing Figs. 3c and 3d, and the FOGD is computed as
we can observe that the thresholding process effectively
eliminates spurious noise spikes and tends to reduce wd m wm 1  wm; m 1; 2; 3; . . .; M  1
the number of false positive detections under noisy 9
ECG signal with long pauses.
which gives the slope at each sample. The 901-point
Gaussian window with spread r = 36 is shown in
Shannon Energy Computation and Smoothing
Fig. 4a and the corresponding FOGD function is
Since squarer buries the peaks of small-QRS and shown in Fig. 4b. We can observe that the Gaussian
wide-QRS complexes under the high-amplitude ones, window is symmetric about bM 2 c 1 and its rst-order
Efcient R-peak Detection 413

(a) peak point


Detecting Negative Zero-crossings
1 In this work, negative ZCs are detected by checking
0.8 the sign of the ZC function z[n] at time instants tn and
w[m]

0.6 tn+1. The pseudocode for this function is shown in


Table 1 and its output is illustrated in Fig. 5d. By
0.4
comparing Figs. 5d and 5b, it can be observed that
0.2 the proposed peak-nding technique accurately iden-
0 ties time locations of candidate R-peaks in the SE
100 200 300 400 500 600 700 800 900 envelope. The output shown in Fig. 5e illustrates that
the detected time instants are slightly shifted from the
(b) instants of real R peaks in the ECG signal. Therefore,
0.015
zerocrossing point
in the next stage, the detected time instants of
0.01
candidate R-peaks are used as guides to locate real
0.005 R-peaks.
w d[m]

0
0.005
Finding Location of Real R-Peaks
0.01
0.015
To nd time instants of real R-peaks in an original
ECG signal, this stage uses locations of all candidate
100 200 300 400 500 600 700 800 900
R-peaks detected at the previous stage. First, a seg-
sample number, m
ment centered around each location of detected can-
FIGURE 4. (a) The 901-point Gaussian window with spread didate R-peak pm  K2 is extracted from the original
r 5 36 and (b) the FOGD wd[m]. ECG signal. Then, a simple algorithm nds the loca-
tion of maximum peak value in the segment. This
process is repeated for all the detected locations p[m].
derivative is an antisymmetric function. Figure 4a Table 2 list the pseudocode for this function. The
shows that the Gaussian window function has a peak output of this stage is shown in Fig. 5f. The results
at m bM 2 c 1: Figure 4b shows that the slope of show that the locations of real R-peaks are accurately
FOGD is positive and negative for 1  m  bM 2 c and detected regardless of varying amplitudes and shapes
bM2 c 1  m  M; respectively and also its slope is of QRS complexes and noise.
zero at m M 2 ; where denotes the oor function.
This is the basis for the proposed peak-nding logic.
For detecting candidate R-peaks in SE envelope, we EVALUATION METHODS
perform the convolution operation on the SE envelope
s[n] and the FOGD sequence wd[m] that is computed as Characteristics of Validation Database
X
1
Many of the existing algorithms were not evaluated
zn wd k sn  k: 10 against a standard database and also not measured the
k1
detection performance using the benchmark parame-
The convolution output of the FOGD function wd[m] ters.20 This makes the experimental results difcult to
with a Shannon energy envelope s[n] is shown in compare and to assess. Therefore, we evaluate the
Fig. 5c. In this work, the convolution output is re- performance of the proposed algorithm using the well-
ferred to as ZC function z[n] that has both positive known MIT-BIH arrhythmia database. It contains 48
and negative ZCs because of the anti-symmetric nat- half-hour of two-channel ECG recordings sampled at
ure of the FOGD function.27 Positive ZC is dened as 360 Hz with 11-bit resolution over a 10 mV range. The
a ZC associated with a positive slope that can be ECG records from this database include signals with
obtained if the signal moves from a negative to a acceptable quality, sharp and tall P and T waves,
positive value. If the signal z[n] moves from a positive negative QRS complex, small QRS complex, wider
to a negative value, it is a negative ZC, which has a QRS complex, muscle noise, baseline drift, sudden
negative slope. Figure 5c demonstrate that negative changes in QRS amplitudes, sudden changes in QRS
ZCs indicate locations of the peaks in the Shannon morphology, multiform premature ventricular con-
energy envelope s[n] shown in Fig. 5b. Therefore, tractions (PVCs), long pauses and irregular heart
negative ZCs are detected and used as guides to nd rhythms. In this study, we consider the entire ECG
locations of R-peaks in the original ECG signal recordings since the proposed algorithm does not re-
shown in Fig. 5a. quire any learning phase. Episodes of ventricular ut-
414 KATHIRVEL et al.

(a)
1

x[n]
0
1

(b) 0.15
s[n]
0.1
0.05

(c)
0.05
z[n]

0
0.05

(d)
1
p[m]

0.5

0
(e)
ECG signal
P[m] with

1
0
1

(f)
2
Rpeaks
Detected

1
0
1
0 1 2 3 4 5 6 7 8 9
Time (sec)

FIGURE 5. Example illustrating the output of stages of the proposed nonlinear transformation and peak-finding logic techniques.
(a) The original ECG signal x[n], (b) the Shannon energy envelope s[n], (c) the convolution output of SE envelope s[n] with the
FOGD function wd[m], (d) the time instants of negative ZCs that correspond to locations of peaks in the SE s[n], (e) detected time
instants of candidate R-peaks with the original ECG signal, and (f) detected time-instants of real R-peaks in the ECG signal.

TABLE 1. Algorithm pseudocode: DetectNegativeZerocrossing. Algorithm Implementation and Assessment


Function: p=DetectNegativeZerocrossing The proposed algorithm is implemented in MAT-
Inputs
LAB on a 2.4-GHz Intel core 2 Quad CPU. The
z:= Input signal. Here, input signal is a convolution output, z[n].
N:= Size of signal (in samples). algorithm is tested on the ECG signals taken from the
Outputs rst channel of the MIT-BIH arrhythmia database.
p:=Locations of negative ZCs. The choice of smoothing lter length (L) and the
Begin Gaussian window length (M) is very important that
Initialize k = 1.
may affect the detection performance. The larger value
for n = 1 to N  1, increment by 1,
if (sign(z[n]) > 0) & & (sign(z[n + 1]) < 0), of M may merge two consecutive R-peaks in the ECG
pk : n // storing location of negative ZC. signal. In this work, the average of lower and upper
end. limits of QRS complex duration is considered to
End. determine the length of the smoothing lter. The
duration of normal QRS and wide QRS complexes is
ter in ECG record 207 are excluded from the perfor- usually between 0.05 and 0.2 s. For the sampling rate
mance analysis for better comparison with the other of 360 samples per second, the length of the smoothing
detection methods.4,23 lter is 0.125 times the sampling rate. By considering
Efcient R-peak Detection 415

TABLE 2. Algorithm pseudocode: FindingRealRpeaks. Benchmark Parameters


Function: r=FindingRealRpeaks In this work, we adopt the following the benchmark
Inputs parameters reported by the Association for the
y[n]:= Filtered ECG signal; n = 1, 2, 3, N
p[m]:=Locations of detected candidate R-peaks; m = 1, 2, 3M.
Advancement of Medical Instrumentation (AAMI):
M:= Total number of detected peaks. sensitivity (Se) and positive predictivity (+ P) to as-
K:=window size. sess the performance of the proposed algorithm. The
Outputs Se indicates the percentage of correctly detected true
r[m]:=Locations of real R-peaks in ECG signal. R-peaks by the algorithm to total number of R-peaks
Begin
if p1< K2
of original ECG signal. The +P indicates the per-
pm : pm K2 ; m 1; 2; 3. . .M: centage of correctly detected true R-peaks to total
zpd:=zeros1; K2; number of peaks marked by the algorithm. The sen-
y 1 to lengthx K2  : zpd x; zero-padding process. sitivity, positive predictivity and the detection error
else pM K2<N rate (DER) are computed as
zpd:=zeros1; K2;
y 1 to lengthx K2  : x zpd; zero-padding process. TP
end, Se  100%; 11
TP FN
for m = 1 to M, increment by 1,
SegStartPosition : pm  K2 ;
SegEndPosition : pm K2 ; TP
P  100%; 12
ECGSeg : y SegStartPosition to SegEndPosition; TP FP
maxvalue maxindex : maxKk jECGSeg[k]j;
rm : maxindex SegStartPosition; FP FN
End. DER  100%: 13
TP
The overall performance is measured in terms of a
the upper limits of heart rates in practice, the Gaussian detection accuracy, which is computed as
window length (L) is computed as 2.5 times the sam-
pling rate. In this study, the smoothing lter length (L) TP
Accuracy (Acc)  100%: 14
and the Gaussian window length (M) of the detector TP FP FN
are set as (L, M)=(45,900) samples.
The performance of the algorithm is validated by
comparing the results of automatic annotations against RESULTS AND DISCUSSION
cardiologist annotations. The basis of standard clinical
electrocardiography is the 10-s 12-lead ECG.11,17,21 The In this section, we report the experimental results
usual duration of computer evaluated ECG records is and provide comparisons between proposed algorithm
10-s, which typically contain a number of heartbeats and other existing algorithms. Table 3 summarizes
and hence a number of diagnostic parameters such as sensitivity and positive predictivity of the proposed
amplitude, duration, interval, and shape of the ECG algorithm for test ECG signal taken from rst-channel
beat. In many ECG signal analysis, the rst stage is to (each) of 48 ECG recordings of the MIT-BIH
locate the peaks of the QRS complexes in the 10-s ECG arrhythmia database. The proposed algorithm pro-
signal. In data compression for transmission, storage, duces 76 false-negative (FN) beats and 38 false-positive
and retrieval of ECGs, 10 s of an ECG signal is con- (FP) beats for a total detection failure of 114 beats. But
sidered. Therefore, in this work, each ECG record is the individual detection accuracies for ECG records
divided into ECG segments with duration of 10-s. vary from 99.21 to 100% depending on the charac-
Then, each ECG segment is processed and the detected teristics of normal and pathological ECG signals, and
R-peaks are veried by visual inspection. While different noises.
performing the visual inspection on the automatic The dierent stages and the overall performance
annotation results, we calculate three quantities: of nine R-peak detection algorithms are summarized
(i) true-positive (TP) when a R-peak is correctly in Table 4. The proposed algorithm achieves an
detected by the proposed algorithm; (ii) false-negative average accuracy of 99.90%, a sensitivity of
(FN) when a R-peak is missed; and (iii) false-positive 99.94%, and a positive predictivity of 99.96% are
(FP) when a noise spike is detected as R-peak. Based on obtained against the rst-channel of the ECG
the previous works in the eld of computer-aided ECG recordings of the MIT-BIH arrhythmia database.
signal analysis,6,10,19,23 we therefore process an ECG The proposed algorithm achieved better perfor-
segment with duration of 10-s. The average time mance than the other detection algorithms reported
required to process 10-s ECG segment is 6.4-ms. in Table 4.
416 KATHIRVEL et al.

TABLE 3. Performance of the proposed algorithm with the signicant improvement is achieved with our algo-
MIT-BIH arrythmia database (detection parameters: smooth-
ing filter length (L) and Gaussian window length (L)), (M, rithm. The ECG records 104, 105, 108, 200, 203, 210,
L) 5 (45,900) samples). and 228 contain high-grade noise and artefact. Re-
cords 108, 111, 112, 116, 201, 203, 205, 208, 210, 217,
ECG Total FN FP DER Se +P Accuracy
record (beats) (beats) (beats) (%) (%) (%) (%)
219, 222, and 228 include severe baseline drifts and
abrupt changes in QRS morphology. Records 201,
100 2273 0 0 0 100 100 100 202, 203, 219 and 222 exhibits various irregular
101 1865 0 0 0 100 100 100 rhythmic patterns. Records 201, 219 and 232 include
102 2187 0 0 0 100 100 100
long pauses up to 6 s in duration. Records 108 and 222
103 2084 0 0 0 100 100 100
104 2229 0 9 0.404 100 99.60 99.60 contain large sharp P waves. Records 111, 113, and 117
105 2572 3 8 0.428 99.88 99.69 99.57 contain large T waves. For these ECG recordings,
106 2027 4 0 0.197 99.80 100 99.80 most algorithms produced a large amounts of false
107 2137 0 0 0 100 100 100 positives. Records 200, 203 and 233 contain multiform
108 1763 1 4 0.284 99.94 99.77 99.72
ventricular arrhythmia, negative QRS polarity and
109 2532 0 0 0 100 100 100
111 2124 0 0 0 100 100 100 sudden changes in QRS morphology. Record 208 has
112 2539 0 0 0 100 100 100 wider PVCs. Record 223 exhibits sudden changes in
113 1795 0 0 0 100 100 100 QRS amplitudes. Records 116 and 208 contain smaller
114 1879 0 1 0.053 100 99.95 99.95 QRS complexes than the others. For these ECG
115 1953 0 0 0 100 100 100
recordings, most of the algorithms had higher false-
116 2412 18 1 0.788 99.25 99.96 99.21
117 1535 0 0 0 100 100 100 negative detections.
118 2278 0 0 0 100 100 100 The eectiveness of the proposed algorithm in terms
119 1987 0 0 0 100 100 100 of the number of false negatives and false positives is
121 1863 0 0 0 100 100 100 shown in Table 5. The DF-based algorithm14 and the
122 2476 0 0 0 100 100 100
EMD-based algorithm15 produced a total detection
123 1518 0 0 0 100 100 100
124 1619 0 0 0 100 100 100 failure of 530 beats (325 FP beats and 205 FN beats),
200 2601 0 0 0 100 100 100 and of 506 beats (209 FP and 297 FN beats), respec-
201 1963 1 0 0.051 99.95 100 99.95 tively. Recently, it has been shown that the multiscale
202 2136 1 0 0.047 99.95 100 99.95 mathematical morphology (3M) ltering based algo-
203 2980 14 2 0.537 99.53 99.93 99.46
rithm36 and the mathematical morphology and wavelet
205 2656 3 0 0.113 99.89 100 99.89
207 1862 0 0 0 100 100 100 transform (MMWT) based algorithm37 achieve the
208 2955 15 0 0.508 99.49 100 99.49 lowest total DER and outstanding false positive and
209 3005 0 0 0 100 100 100 false negative rates. Thus, it is necessary to compare
210 2650 11 0 0.415 99.58 100 99.58 the performance of these algorithms. For the high-
212 2748 0 0 0 100 100 100
grade noise and artifacts (Record 105), the 3M lter-
213 3251 0 0 0 100 100 100
214 2262 0 1 0.044 100 99.96 99.96 ing- and MMWT-based algorithms had DERs of
215 3363 0 0 0.000 100 100 100 1.01% (26 beats) and 1.67% (43 beats), respectively
217 2208 2 0 0.091 99.91 100 99.91 whereas the proposed algorithm produces 8 FP beats
219 2154 0 0 0 100 100 100 (0.311%) and 3 FN beats (0.117%) for a DER of
220 2048 0 0 0 100 100 100
0.428% (11 beats). In the case of the very big changes
221 2427 0 0 0 100 100 100
222 2483 0 0 0 100 100 100 in shape of QRS complex and amplitude of QRS
223 2605 0 0 0 100 100 100 complex (record 106 shown in Fig. 7), our algorithm
228 2053 2 10 0.585 99.90 99.51 99.42 shows a detection failure rate of 0.197% (4 beats). For
230 2256 0 0 0 100 100 100 this record, the 3M ltering-based algorithm and the
231 1571 0 0 0 100 100 100
MMWT-based algorithm showed total detection fail-
232 1780 0 2 0.112 100 99.89 99.89
233 3079 1 0 0.032 99.97 100 99.97 ure of 2.02% (41 beats) and of 1.68% (34 beats),
234 2753 0 0 0 100 100 100 respectively. The numerous long pauses up to 6 s in
Overall 109,496 76 38 0.098 99.94 99.96 99.90 duration are mainly found in record 232 that yields
more false positive detections in most of the algo-
Detection parameters: smoothing filter length (L) and Gaussian
window length (L), (M, L) =(45,900) samples. rithms. To test the robustness of our algorithm, the
non-stationary noise is added to the ECG signal. The
detection results of our algorithm for the ECG signal
The MIT-BIH arrhythmia database ECG record- with RR-interval greater than 4-s are shown in Fig. 11.
ings 104, 105, 106, 108, 113, 116, 200, 201, 202, 203, The comparison result of 30-min record 232 in Table 5
208, 209, 210, 221, 222, 223, 228, 231, and 232 often demonstrates that the proposed algorithm produces
create more detection errors with other algorithms, but two false positive beats and achieves outstanding false
TABLE 4. Preprocessing and decision stages of R-peak detection algorithms and comparison of their overall detection performance.

Methodology

Ref. Preprocessing stage Primary threshold, hpt Secondary threshold, hst Blanking FP (beats) FN (beats) Se (%) P+ (%) Acc (%)
14
Bandpass filtering hpt = threshold coefficient 9 median hst = 0.3 9 hpt Refractory period 248 340 99.69 99.77 99.46
derivative squaring of eight past peak levels if RR > 1.5 9 median of 0.2 s, T-wave
moving-window integration of past RR intervals removal
feature signal s[n]
4
Bandpass filtering Finding the threshold of segment i: hst = 0.5 9 hpt T-wave removal 447 467 99.57 99.59 99.17
derivative squaring h(i)
pt = 0.39Mi, if RMSi > 0.18 Mi & & Mi 2Mi1 0.20.36 s
transformation feature = 0.39 Mi1, if RMSi > 0.18 Mi & & Mi > 2Mi1
signal s[n] = 1.6RMSi, if RMSi < 0.18 Mi
23
Quadratic spline wavelet Four thresholds for QRS detection: Searchback with Refractory period 153 220 99.80 99.86 99.66
decomposition, four scales iqrs RMSW2i x n; i 1; 2; 3 lowered thresholds of 0.2 s
4qrs 0:5RMSW24 xn
Thresholds to check significance:
cqrspre 0:06maxjW22 xnj;
cqrspost 0:09maxjW22 x nj;
15
EMD soft-thresholding Four thresholds: window size (W) hst = 0.5 9 hpt Refractory period 467 244 99.77 99.56 99.33
d
rule constructing the ed 0:30:7Mi 0:3Ad of 300 ms
ld ld ld
layer: the detection layer, h1 0:25Ai Ai1 ; W=10-ms
(ld) (ld)
the verification layer, the h(ld)
2 = 0.375(A i + A i+1 ), W=20-ms
(ld) (ld)
leakage layer h3 = 0.6Ai , W=30-ms where
feature signal s[n] Md is the highest value of the modulus
maxima in ith segment, Ad is the
average value of the R-wave amplitudes
in d layer, Ald & Ald are the two R-wave
amplitudes in (i  1)th segment within
Efcient R-peak Detection

that leakage period in ld layer.


3
Bandpass filtering Automatic thresholds P calculation: Search back with <263 ms 393 253 99.77 99.64 99.41
(four filters) derivative THVp m a15 Pm lm4 Sp l adaptive thresholds
squaring feature THVn m b15 m lm4 Sn l
P
signal sn ! computing THVa m c15 m lm4 Pa l
positive average slope and Sp = positive slope; Sn = negative slope;
negative average slope Pa = peak amplitude; a, b, and c are the
for each five consecutive coefficients that are found empirically
samples
9
Baseline drift & noise Threshold based on the None None 214 1333 99.78 99.80 98.59
removal apply SNR computed between
coiflet wavelet wavelet coefficients
squaring moving at 1st & 5th level coefficients
averaging feature at 1st & 5th level
signal s[n]
417
418 KATHIRVEL et al.

positive values compared to recently reported algo-

Acc (%)

99.62

99.80

99.90
rithms.
Many algorithms have large number of false-nega-
P+ (%) tive (or missed detections in case of ECG signals with
99.80

99.88

99.96
abrupt change in amplitude of QRS complex, small
QRS complex, and wide QRS complex. To detect
missed R-peaks, almost all algorithms used sets of
Se (%)

99.81

99.93

99.94
heuristic decision rules with adaptive amplitude, RR-
interval and duration thresholds estimated for the
previous detected R-peaks. It was seen that the algo-
FN (beats)

rithm with secondary threshold produces several spu-


213

79

76
rious peaks. Thus, the refractory period of 200 ms and
T-wave discriminator (200360 ms) are widely used in
most of the algorithms. It can been seen that the ECG
FP (beats)

record 203 has many shortest RR-intervals of less than


38
204

140

360 ms. These decision rules with amplitude-dependent


threshold may yield the poorest results in the case of
ECG signal with irregular heart rhythm, continuously
Blanking

varying QRS morphology, and noise and artifacts.


None

None

None

Furthermore, the performance of many algorithms


highly rely on an accurate measurement of initial
Secondary threshold, hst

parameters in the learning phase. The performance


comparison in Table 5 shows that the proposed algo-
rithm has a total detection failure of 106 beats (36 FP
TABLE 4. Continued.

beats and 70 FN beats) and outperforms the other


algorithms reported in Adnane et al.,3 Darrington,8
Elgendi et al.,9 Hamilton and Tompkins,14 Hongyan
None

None

None

and Minsong,15 and Zhang and Lian.36,37 In this work,


the proposed algorithm does not use additional deci-
sion rules with sets of thresholds based on the running
HT of sn ! LF drift removal

Convolution of s[n] with wd n !

estimates of the signal peaks and noise peaks, the


negative ZCs detection

negative ZCs detection


real R-peaks detection

real R-peaks detection


Primary threshold, hpt

= 0.27Maxi, 3 Maxi 5

average RR interval and rate limits, a set of rules for


Maxi =maximum value
= 0.15Maxi, Maxi > 5

blanking and T-wave discrimination, and training


hpt = 0.1Maxi, Maxi < 3
Methodology

output: time instants


output:time instants

phase.
The waveforms of the dierent stages of the pro-
of ith segment

posed algorithm using the ECG segments taken from


of R-peaks

of R-peaks

rst-channel of the dierent recordings of the MIT-


BIH arrhythmia database are shown in Figs. 612. In
each of these gures, waveform depicted in (a) is the
original ECG signal, x[n]. The waveform depicted in
(b) is the differenced bandpass ltered signal, d[n]. The
Shannon energy & smoothing
smoothing feature signal s[n]

waveform (c) is the smooth Shannon energy envelo-


derivative normalization

gram (SEE) of the thresholded signal e~th n: The SEE is


multiple-frame accumulation
Preprocessing stage

filtering derivative

derivative squaring
Shannon energy

used as the feature signal. The waveform (d) is the


feature signal s[n]

convolution of the feature signal s[n] with FOGD


Bandpass filtering

Bandpass filtering
absolute of vn !

function wd[n]. The waveform depicted in (e) shows the


feature signal s[n]
normalization
Three morphology

thresholding

time instants (marked in red circle) of detected R-peaks


using the proposed algorithm. In our previous work in
Sabarimalai Manikandan and Dandapat,30 the deci-
sion stage includes HT, moving average (MA) lter
and ZC detector. In this proposed algorithm, the
decision stage includes two steps: (i) the convolution of
Our work

the FOGD function wd[m] with the Shannon energy


envelope s[n], and (ii) the negative ZCs detection.
Ref.

Experiments show that the proposed FOGD-based


36

30
TABLE 5. Comparison of numbers of false-positives and false-negatives for pathological and noisy records of the MIT/BIH database.

Number of false-positive (FP) detections Number of false-negative (FN) detections

Rec. No. ECG signal quality DF14 EMD15 WT9 3MM36 Slope3 Maxima8 MMWT37 Our DF14 EMD15 WT9 3MM36 Slope3 Maxima8 MMWT37 Our

104 Multiform PVCs & severe muscle noise 3 20 0 7 63 25 13 9 7 1 0 1 12 25 2 0


105 High-grade noise and artifacts 53 35 15 7 28 51 38 8 22 14 21 19 6 28 5 3
106 Abrupt changes in QRS morphology 1 5 0 21 02 28 10 0 2 0 0 20 17 9 24 4
108 Sharp-tall P-wave, negative QRS complexes, 50 68 2 10 55 178 14 4 47 9 62 2 28 48 2 1
& severe noise and artifacts
113 Sharp-tall T-wave & baseline drifts 2 6 1 10 0 0 5 0 1 0 682 11 1 9 5 0
116 Very small QRS (Amp. <0.05 mV) 4 20 4 3 1 0 1 25 0 27 20 28 21 18
200 Multiform PVCs with noise and artifact 3 47 1 4 47 122 0 0 2 3 2 9 0 102 2 0
201 Junctional escape beats 3 3 1 2 0 0 0 0 19 10 66 4 3 21 10 1
202 Irregular heart rates and low-QRS 0 5 1 2 0 1 0 0 3 6 3 6 2 9 17 1
203 Very big change in adjacent QRS-shape, 14 23 79 3 27 88 2 2 61 95 19 7 53 45 23 14
QRS-amplitude, heart rates, very small
QRS (<0.04 mV), noise & artifacts
208 Wide-QRS & small-QRS <0.05 mV 9 2 13 3 5 18 1 0 19 19 3 10 30 39 9 15
209 Bursts of noise 2 0 0 2 1 29 2 0 2 0 1 9 0 17 12 0
Efcient R-peak Detection

210 Small QRS complexes, noise & artifacts 2 8 5 16 8 10 11 0 41 23 2 5 29 54 1 11


221 Wide QRS complexes 1 4 0 4 0 16 0 0 1 2 4 8 4 12 3 0
222 Irregular heart rates & small QRS 40 5 27 1 3 3 1 0 37 0 12 0 0 13 6 0
223 Abrupt change in amplitude of R-peak 0 28 0 4 0 4 6 0 2 1 0 22 1 12 1 2
228 Severe noise & very big change in 19 38 1 10 76 14 20 10 6 22 14 2 6 15 8 0
amplitudes of adjacent R-peaks
231 Irregular heart rates 0 2 0 7 0 0 22 0 0 0 331 1 0 9 5 0
232 Numerous long pauses up to 6 s 3 26 0 14 20 31 29 2 0 0 17 2 0 8 5 0
Total 209 325 166 131 338 619 174 36 297 205 1239 165 212 503 161 70
419
420 KATHIRVEL et al.

(a)
1
x[n]
0.5
0
0.5
0 2 4 6 8 10 12 14 16 18

(b) 1
0.5
d[n]

0
0.5
0 2 4 6 8 10 12 14 16 18

(c) 0.12
0.1
s[n]

0.08
0.06
0.04
0.02
0 2 4 6 8 10 12 14 16 18

(d)
0.05
z[n]

0
0.05

0 2 4 6 8 10 12 14 16 18
(e)
1.5
Rpeaks
Detected

1
0.5
0
0.5
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 6. Performance of the proposed algorithm for ECG record 102 with varying QRS complex morphologies. Our algorithm
produces 0 missed beats and 0 FP beats for a total of 2187 true beats. Detection accuracy is 100%.

(a) 2
1
x[n]

0
1
0 2 4 6 8 10 12 14 16 18

(b)
0.5
d[n]

0
0.5
1
0 2 4 6 8 10 12 14 16 18

(c) 0.1
0.08
s[n]

0.06
0.04
0.02
0 2 4 6 8 10 12 14 16 18

(d)
0.05
z[n]

0
0.05
0 2 4 6 8 10 12 14 16 18
(e)
Rpeaks

2
Detected

1
0
1
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 7. Detection performance for the ECG signal with continuously varying QRS complex morphology, sudden changes in beat-
to-beat RR-interval, and tall T waves (Record 106). Our algorithm produces 04 missed beats and 0 FP beats for a total of 2027 true beats.
Efcient R-peak Detection 421

(a)
2
very small QRS complexes (Amp. < 0.05 mV)
x[n] 0
2
0 5 10 15 20 25

(b)
0.5
d[n]

0
0.5
1
0 5 10 15 20 25

(c)
0.1
0.08
s[n]

0.06
0.04
0.02
0 5 10 15 20 25

(d)
0.05
z[n]

0
0.05
0 5 10 15 20 25
(e)
4
Rpeaks
Detected

more number of false negatives (FNs)


2
0
2
0 5 10 15 20 25
Time (sec)

FIGURE 8. Detection performance for the ECG record 116 with very small QRS complexes (Amp. <0.05 mV). The algorithm
produces 18 missed beats for a total of 2412 true beats.

(a) 3
2
x[n]

1
0
1
0 2 4 6 8 10 12 14 16 18

(b) 0.5
0
d[n]

0.5
1
0 2 4 6 8 10 12 14 16 18

(c)
0.15
s[n]

0.1
0.05

0 2 4 6 8 10 12 14 16 18

(d)
0.1
z[n]

0.1
0 2 4 6 8 10 12 14 16 18
(e)
Detected Rpeaks

3
falsely detected beat
2
1
0
1
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 9. Detection performance for the ECG record 228 with very big change in amplitudes of adjacent R-peaks and severe
noise. Our algorithm produces 10 FP beats and 2 FN beats for a total of 2053 true beats.
422 KATHIRVEL et al.

(a) 0.2
x[n] 0
0.2
0.4
0.6
0.8
0 2 4 6 8 10 12 14 16 18

(b) 0.5
d[n]

0
0.5
1
0 2 4 6 8 10 12 14 16 18

(c) 0.15
s[n]

0.1
0.05

0 2 4 6 8 10 12 14 16 18

(d) 0.1
z[n]

0.1
0 2 4 6 8 10 12 14 16 18

(e)
0.2
Detected
Rpeaks

0
0.2
0.4
0.6
0.8
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 10. Detection performance for the ECG record 108 with large P-waves and severe muscle noise. Our algorithm produces
four FP beats and one FN beats for a total of 1763 true beats.

(a) 1
0.5
x[n]

0
0.5
0 2 4 6 8 10 12 14 16 18

(b)
0.5
d[n]

0
0.5
1
0 2 4 6 8 10 12 14 16 18

(c) 0.15
0.1
s[n]

0.05

0 2 4 6 8 10 12 14 16 18

(d) 0.1
z[n]

0.1
0 2 4 6 8 10 12 14 16 18

(e)
1
Detected
Rpeaks

0.5
0
0.5
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 11. Detection performance for the ECG record 232 with noise and numerous long pauses up to 6 s. Our algorithm
produces 2 FP beats and 0 FN beats for a total of 1780 true beats.
Efcient R-peak Detection 423

(a)
1
x[n]
0
1
2
0 2 4 6 8 10 12 14 16 18

(b)
0.5
d[n]

0
0.5
1
0 2 4 6 8 10 12 14 16 18

(c) 0.15
s[n]

0.1
0.05

0 2 4 6 8 10 12 14 16 18

(d) 0.1
z[n]

0.1
0 2 4 6 8 10 12 14 16 18
(e)
Detected
Rpeaks

1
0
1
2
0 2 4 6 8 10 12 14 16 18
Time (sec)

FIGURE 12. Detection performance for the ECG record 203 with very big change in adjacent QRS-shape, QRS-amplitude and
heart rates, many short RR-interval (RR <360 ms), very small QRS (Amp. <0.04 mV), and noise and artifacts. This is a very difficult
record, even for humans. Our algorithm produces 2 FP beats and 14 FN beats for a total of 2980 true beats.

peak-nding technique achieves higher detection cardiac sound separator, patient authentication and
accuracy, easy to implement, and provides the signi- ECG coder.
cant computational advantage as compared to that of Various experiments prove that the proposed non-
Hilbert transform-based peak technique reported in linear transformation and simple peak-nding tech-
our previous work in Sabarimalai Manikandan and niques improves the detection performance. The
Dandapat.30 The most common ECG abnormality is experimental results demonstrate that the proposed
the presence of low amplitude QRS complexes, prob- algorithm has lower false-positive and false-negative
ably due to myocardial inltration-for example, amy- rates in the case of ECG signals with sharp and tall P
loidosis, sarcoidosis, and haemochromatosis. Most and T waves, negative QRS complex, small QRS
commonly, a wide QRS complex is due to abnormal complex, wider QRS complex, muscle noise, baseline
conduction over the right or left bundle due to block or drift, sudden changes in QRS amplitudes, sudden
delay of ventricular activation. The PVCs are caused changes in QRS morphology, multiform PVCs, long
by heart attack, and are characterized by premature pauses and irregular heart rhythms.
and bizarrely shaped QRS complexes usually having
wider duration of greater than 120 ms.
The overall performance of the various QRS CONCLUSION
detection methods is summarized in Table 5. In the
literature, many methods had more false negative This paper presents a new and simple algorithm for
detections for the ECG records namely 200, 201, 203, automatically detecting R-peaks in a ECG signal. The
208, and 228 that include small-QRS complexes, wide- algorithm consists of new nonlinear transformation
QRS complexes and very big change in adjacent QRS- and simple peak-nding techniques. The proposed
shape, QRS-amplitude, and heart rates. The accuracy nonlinear transformation is based on energy thres-
of computer-aided cardiac diagnostic system may be holding, Shannon energy computation, and smoothing
degraded due to missed or falsely detected beats. For process. This nonlinear transformation process reduces
example, misclassication of beats is more problematic the number of false-positives and false-negatives in the
in heart rate variability, ECG wave delineator, fHRM, case of ECG signal with small-QRS and wide-QRS
424 KATHIRVEL et al.

complexes, and noises. In this work, we also developed envelope. In: Proceedings of 27th Annual International
a simple peak-nding technique using the FOGD. The Conference of the IEEE EMBS, Shanghai, China, 2005,
pp. 46544657.
proposed peak-nding technique automatically deter- 8
Darrington, J. Towards real time QRS detection: a fast
mines locations of candidate R-peaks in the QRS method using minimal pre-processing. Biomed. Signal
feature signal. The proposed R-peak detection algo- Process. Control 1:169176, 2006.
9
rithm is validated using all 48 half-hour ECG records Elgendi, M., M. Jonkman, and F. De Boer. R wave
from the MIT-BIH arrhythmia database and achieves detection using Coiets wavelets. In: IEEE 35th Annual
Northeast Bioengineering Conference, Boston, MA, 2009,
an average sensitivity of 99.94%, and a positive pre-
pp. 12.
dictivity of 99.96%. The proposed algorithm produces 10
El-Segaier, M., O. Lilja, S. Lukkarinen, L. Srnmo, R.
38 false positive beats and 76 false negative beats for a Sepponen, and E. Pesonen. Computer-based detection and
total 109,496 true ECG beats. Experimental results analysis of heart sound murmur. Ann. Biomed. Eng.
show that this algorithm outperforms other existing 33(7):937942, 2005.
11
Gerencsr, L., G. Kozmann, and H. K. Zsuzsanna. The use
algorithms in case of pathological and noisy signals.
of the SPSA method in ECG analysis. IEEE Trans. Biomed.
The main advantages of the proposed algorithm Eng. 49(10):10941101, 2002.
compared with the other existing algorithms are that 12
Ghaffari, A., H. Golbayani, and M. Ghasemi. A new
(1) it is a one-pass algorithm without any further mathematical based QRS detector using continuous
searchback algorithm, (2) it uses a single thresholding wavelet transform. Comput. Electr. Eng. 34:8191, 2008.
13
Hadj Slimane, Z.-E., and A. Nait-Ali. QRS complex
rule, (3) it uses simple peak-nding strategy, and (4) it
detection using empirical mode decomposition. Digit. Sig-
does not require sets of thresholds based upon the R nal Process. Rev. J. 20(4):12211228, 2010.
peaks and RR intervals that are determined in the 14
Hamilton, P. S., and W. J. Tompkins. Quantitative inves-
previous segment, a set of medical tactics to reduce tigation of QRS detection rules using the MIT/BIH
false-positives and detect missed beats, and learning arrhythmia database. IIEEE Trans. Biomed. Eng. 33:1157
1165, 1986.
phase. Thus, the proposed algorithm is more suitable 15
Hongyan, X., and H. Minsong. A new QRS detection
for automated ECG signal analysis applications. algorithm based on empirical mode decomposition. In:
Proceedings of the 2nd International Conference on Bio-
informatics and Biomedical Engineering, 2008, pp. 693
696.
16
Huang, B., and Y. Wang, Detecting QRS complexes of
ACKNOWLEDGMENTS two-channel ECG signals by using combined wavelet en-
The authors would like to thank Editor-in-Chief, tropy. In: International Conference on Bioinformatics and
Biomedical Engineering, Beijing, China, 2009, pp. 14.
for his continuous encouragement and the anonymous 17
Hughes, N. P. Probabilistic models for automated ECG
referees for their valuable suggestions and comments. interval analysis. PhD thesis, University of Oxford, 2006.
18
Kadambe, S., R. Murray, and G. F. B. Bartels. Wavelet
transform-based QRS complex detector. IEEE Trans.
Biomed. Eng. 46(7):838848, 1999.
REFERENCES 19
Karvounis, E. C., M. G. Tsipouras, D. I. Fotiadis, and K.
K. Naka. An automated methodology for fetal heart rate
1
Abdelliche, F., and A. Charef. R-peak detection using a extraction from the abdominal electrocardiogram. IEEE
complex fractional wavelet. In: International Conference Trans. Inf. Technol. Biomed. 11(6):628638, 2007.
20
on Electrical and Electronics Engineering, Bursa, 2009, pp. Khler, B.-U., C. Hennig, and R. Orglmeister. The princi-
267270. ples of software QRS detection. IEEE Eng. Med. Biol.
2
Abibullaev, B., and H. D. Seo. A new QRS detection Mag. 21:4257, 2002.
21
method using wavelets and articial neural networks. J. Kligeld, P., L. S. Gettes, and J. J. Bailey. Recommenda-
Med. Syst. 2010. doi:10.1007/s10916-009-9405-3. tions for the standardization and interpretation of the
3
Adnane, M., Z. Jiang, and S. Choi. Development of QRS electrocardiogram: part I. The electrocardiogram and its
detection algorithm designed for wearable cardiorespira- technology: a scientic statement from the American Heart
tory system. Comput. Methods Programs Biomed. 93(1):20 Association Electrocardiography and Arrhythmias Com-
31, 2009. mittee, Council on Clinical Cardiology; the American
4
Arzeno, N. M., Z.-D. Deng, and C.-S. Poon. Analysis of College of Cardiology Foundation; and the Heart Rhythm
rst-derivative based QRS detection algorithms. IEEE Society endorsed by the International Society for Com-
Trans. Biomed. Eng. 55(2):478484, 2008. puterized Electrocardiology. Heart Rhythm 4(3):394412,
5
Benitez, S., P. A. Gaydecki, A. Zaidi, and A. P. Fitzpa- 2007.
22
trick. The use of the Hilbert transform in ECG signal Li, C., C. Zheng, and C. Tai. Detection of ECG charac-
analysis. Comput. Biol. Med. 31:399406, 2001. teristic points using wavelet transforms. IEEE Trans. Bio-
6
Biel, L., O. Pettersson, L. Philipson, and P. Wide. ECG med. Eng. 42:2128, 1995.
23
analysis: a new approach in human identication. IEEE Martnez, J. P., R. Almeida, S. Olmos, A. P. Rocha, and P.
Trans. Instrum. Meas. 50(3):808812, 2001. Laguna. A wavelet-based ECG delineator: evaluation on
7
Chen, Y. L., and H. L. Duan. A QRS complex detection standard databases. IEEE Trans. Biomed. Eng. 51(4):570
algorithm based on mathematical morphology and 581, 2004.
Efcient R-peak Detection 425
24 32
Meyer, C., J. F. Gavela, and M. Harris. Combining algorithms Tang, J., X. Yang, J. Xu, Y. Tang, Q. Zou, and X. Zhang.
in automatic detection of QRS complexes in ECG signals. The algorithm of R Peak detection in ECG based on
IEEE Trans. Inf. Technol. Biomed. 10(3):468475, 2006. empirical mode decomposition. In: Fourth International
25
Pahlm, O., and L. Srnmo. Software QRS detection in Conference on Natural Computation, 2008, Vol. 5, pp.
ambulatory monitoringa review. Med. Biol. Eng. Com- 624627.
33
put. 22:289297, 1984. Thakor, N. V., J. G. Webster, and W. J. Tompkins. Esti-
26
Pan, J., and W. J. Tompkins. A real time QRS detection mation of QRS complex power spectra for design of a QRS
algorithm. IEEE Trans. Biomed. Eng. 32(3):230236, 1985. lter. IEEE Trans. Biomed. Eng. 31:702706, 1984.
27 34
Prasanna, S. R. M., and A. Subramanian. Finding pitch Trahanias, P. E. An approach to QRS complex detection
markers using rst order Gaussian differentiator. In: IEEE using mathematical morphology. IEEE Trans. Biomed.
Proceedings of the Third International Conference on Eng. 40(2):201205, 1993.
35
Intelligent Sensing Information Process, 2005, pp. 140145. Y.-C. Yeha, and W.-J. Wanga. QRS complexes detection
28
Romero, L., P. S. Addison, and N. Grubb. R-wave detec- for ECG signal: the difference operation method. Comput.
tion using continuous wavelet modulus maxima. IEEE Methods Programs Biomed. 91:245254, 2008.
36
Proc. Comput. Cardiol., 30:565568, 2003. Zhang, F., and Y. Lian. QRS detection based on multi-
29
Sabarimalai Manikandan, M., and S. Dandapat. Wavelet scale mathematical morphology for wearable ECG devices
threshold based TDL and TDR algorithms for real-time in body area networks. IEEE Trans. Biomed. Circuits Syst.
ECG signal compression. Biomed. Signal Process. Control 3(4):220228, 2009.
37
3:4466, 2008. Zhang, F., and Y. Lian. QRS detection based on mor-
30
Sabarimalai Manikandan, M., and S. Dandapat. A novel phological lter and energy envelope for applications in
method for detecting R-peaks in eletrocardiogram (ECG) body sensor networks. J. Signal Process. Syst., 2009. doi:
signal. Biomed. Signal Process. Control, 2011. doi: 10.1007/s11265-009-0430-8.
38
10.1016/j.bspc.2011.03.004. Zhu, W., H. Zhao, and X. Chen. A new QRS detector
31
Surez, K. V., J. C. Silva, Y. Berthoumieu, P. Gomis, and M. based on empirical mode decomposition. In: IEEE 10th
Najim. ECG beat detection using a geometrical matching International Conference on Signal Processing (ICSP),
approach. IEEE Trans. Biomed. Eng. 54(4):485489, 2007. 2010, pp. 14.

You might also like