You are on page 1of 13

17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022].

See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
IET Signal Processing

Research Article

Automated QRS complex detection using ISSN 1751-9675


Received on 15th November 2017

MFO-based DFOD
Revised 13th June 2018
Accepted on 16th July 2018
E-First on 4th October 2018
doi: 10.1049/iet-spr.2018.5230
www.ietdl.org

Chandan Nayak1 , Suman Kumar Saha1, Rajib Kar2, Durbadal Mandal2


1Department of Electronics and Telecommunication Engineering, NIT Raipur, Raipur, Chhattisgarh 492010, India
2Department of Electronics and Communication Engineering, NIT Durgapur, Durgapur, West Bengal 713209, India
E-mail: chandanayak234@gmail.com

Abstract: This study proposes a heuristic approach for designing highly efficient, infinite impulse response (IIR) type Digital
First-Order Differentiator (DFOD) by employing a nature-inspired evolutionary algorithm called Moth-Flame Optimisation (MFO)
for the detection of the QRS complexes in the electrocardiogram (ECG) signal. The designed DFOD is used in the pre-
processing stage of the proposed QRS complex detector, to generate feature signals corresponding to each R-peak by
efficiently differentiating the ECG signal. The generated feature signal is employed to detect the precise instants of the R-peaks
by using a Hilbert transform-based R-peak detection logic. The performance efficiency of the proposed QRS complex detector is
evaluated by using all the first channel records of the MIT/BIH arrhythmia database (MBDB), regarding the standard
performance evaluation metrics. The proposed approach has resulted in Sensitivity (Se) of 99.93%, Positive Predictivity (PP) of
99.92%, Detection Error Rate (DER) of 0.15%, and QRS Detection Rate (QDR) of 99.92%. Performance comparison with the
recent works justifies the superiority of the proposed approach.

1 Introduction mother wavelet, there is no universal rule, and the performance of


the WT-based algorithm is entirely application dependent [7].
An ECG is a composite recording of all the action potentials Several other efficient R-peak detection techniques are also
generated by the nodes and the cells of the myocardium and reported in various literature. These include adaptive linear
represents the electrical activity related to the function of the predictor [10–11], empirical mode decomposition [12], peak
human heart. The conventional heart rhythm called normal sinus enhancement and adaptive thresholding [13], filter banks [14],
rhythm comprises a sequence of P, Q, R, S, and T wave. The quadratic filter [15], mathematical morphology [16–17], neural
combination of Q, R, and S waves together forms the QRS network [18], integrate and fire sampling [19], level crossing
complex and carries the precious clinical information regarding the sampling [20], sparse derivative [21], dynamic plosion index (DPI)
cardiac health of the human heart. Any deviation in shape and the [22], max-min difference algorithm [23], weighted total variation
time of occurrence of the QRS complex from its normal behaviour denoising [24], MaMeMi (highpass) filter [25], and derivative-
reflects a particular cardiac disease and needs an immediate based methods [26–31].
intervention by the physician to eliminate any chance of fatality. The derivative-based algorithms use the slope information to
Also, the reliability of the QRS-based applications like heart rate detect the occurrence of the R-peaks [26]. The derivative-based R-
variability (HRV) analysis, ECG beat classification and peak detection techniques are easy to implement and are efficient
compression, foetal heart rate monitoring (FHRM), and biometric, [26–27]. A real-time derivative-based 24 h Holter monitoring
depends upon the accurate estimation of the time of occurrence of system is reported in [26]. For the analysis of enormous data sets,
the R-peaks (the peak of the QRS complex) in the ECG signal. and for real-time study, the first derivative-based R-peak detection
However, usually the ECG signals are affected by the power line method is frequently used [27]. Also, the algorithm training,
interference (PLI) [1], baseline wanders, and muscle noise [2] etc. patient-related parameter changes and the manual segmentation of
The presence of this unwanted noise and interference along with data are not essential in case of the derivative-based methods [27].
large amplitude P/T wave, patient-specific QRS complex, time- The derivative-based R-peak detection techniques are employed by
varying ECG morphology, and patient movement artefacts due to many researchers like Manikandan et al. [28], Hamilton and
poor electrode contact unreasonably complicate the R-peak Tompkins [29], and Sabherwal et al. [30]. A five-point
detection process [3]. differentiator, whose frequency response is linear from (0–30) Hz,
QRS complex detection is a two-stage process comprising the with a delay of two samples, is reported in [26]. In [27], the
ECG pre-processing stage and the heartbeat detection stage [4]. derivative is implemented by using a centre differentiation with a
The job of the pre-processing step is to accentuate the QRS unit sample delay (method-1), five-point differentiation
complex by reducing the noise and artefacts. The role of the (method-2), both centre and forward differentiation (method-3). A
heartbeat detection stage is to locate the occurrence of the R-peaks forward differentiation is used in [28] with unit sample delay. In
in the ECG signal. [29], a five-point differentiation is implemented. In [30], both first-
Many R-peak detection approaches have been reported in the and second-order derivatives are performed by using three-point
literature [4–31]. Out of this, several wavelet transform (WT)- differentiation operation. In [31], the differentiator is designed by
based R-peak detection methods are published [5–9]. A wavelet using the fractional operators. In all these cases, the differentiators
filter bank-based R-peak detector for low power cardiac pacemaker are developed by using sub-optimal methods. Though the
is reported in [5]. A quadratic spline WT-based arrhythmia monitor differentiator-based R-peak detection techniques are frequently
is proposed in [6]. A discrete WT (Daubechies db10 wavelet)- used in real time R-peak detection applications, the author is
based R-peak detector is reported in [7]. A multi-resolution WT insisted on designing highly accurate, computationally efficient
(Daubechies db6 wavelet)-based R-peak detector is reported in [8]. first-order digital differentiator by using an evolutionary
A Haar WT-based R-peak detector is reported in [9]. Though WT- optimisation technique called Moth-flame optimisation (MFO) for
based peak finding logics are efficient, but, for the selection of the the R-peak detection application.

IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1172


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
In the proposed R-peak detector, the differentiator stage is where ai denotes the numerator coefficient (Num. Coeff.) and bi
designed by using an efficient metaheuristic optimisation algorithm signifies the denominator coefficients (Denum. Coeff.) of the IIR-
called MFO algorithm. The optimally designed infinite impulse type DFOD, for i = 0, 1, 2, 3, …, N.
response (IIR) type digital first-order differentiator (DFOD) for the Hence, the frequency response of the N th order IIR-type DFOD
R-peak detection application is the novelty of the proposed is given by (3).
research work. Finite impulse response (FIR) filter-based design is
more suitable than IIR filter-based design due to the linear phase
a0 + a1e− j1ω + a2e− j2ω + ⋯ + aN e− jNω
characteristics, stability, and ease to model [32]. However, for the HDFOD(ω) = (3)
design of DFOD the IIR type filter structure is suitable over FIR b0 + b1e− j1ω + b2e− j2ω + ⋯ + bN e− jNω
counterpart, as linear phase response is not essential for many
applications [33], and the IIR filters are more computationally The proposed MFO-based DFOD design scheme is shown in
efficient than the FIR filter counterpart [34]. The magnitude Fig. 1a. Here f(n), y(n), and d(n) denote the input to the
response of the proposed DFOD approximates the ideal differentiator, the output of the ideal differentiator, and output of
differentiator over the entire Nyquist frequency range. The the proposed DFOD, respectively.
designed DFOD is both stable and minimum phase, hence provides The primary target is to design the optimal coefficient values of
minimum and constant group delay. Due to the advantages HDFOD(ω) by minimising the cost function as given in (4), in such a
mentioned above, when the ECG signal is differentiated by the way that the input–output relationships between the proposed
proposed DFOD, maximum slope information is obtained. This DFOD and the ideal IOD exactly match with each other. A total
slope information is used as the feature signal for the subsequent number of 512 frequency sample points is used for the calculation
signal processing stages for reliable R-peak detection in the ECG of JDFOD.
signal.
The noteworthy contributions made in this paper are described JDFOD = ∑ | | Dideal(ω) | − | HDFOD(ω) | | 2
(4)
below.

(a) This paper justifies the applicability of the MFO algorithm, for The performance of the proposed DFOD is demonstrated by using
the design of the wideband, stable, and accurate IIR type digital the maximum absolute magnitude error (MAME) metric as given
first-order differentiator. The magnitude response of the proposed by (5) [35].
differentiator almost replicates to that of the ideal integer order
differentiator counterpart, and affirms the superiority of the MFO- MAMEDFOD = max ( | | Dideal(ω) | − | HDFOD(ω) | | ) (5)
based DFOD design problem.
(b) The proposed DFOD, an integral part of the pre-processing Small group delay value is essential for the practical signal
stage, is used to generate the feature signal corresponding to each processing applications. The group delay of the DFOD is given by
R-peak by efficiently differentiating the ECG signal. The generated (6).
feature signal is employed to detect the exact instants of the R-
peaks by using a Hilbert transform (HT)-based R-peak finding dθDFOD(ω)
τDFOD(ω) = − (6)
logic. dω
(c) The performance of the proposed R-peak detector is evaluated
against all the first channel records of the MBDB by using the where θDFOD(ω) = ∠HDFOD(ω) is the phase response of the
standard R-peak detection statistical metrics such as Detection HDFOD(ω).
Error Rate (DER), QRS Detection Rate (QDR), Positive The phase response of the proposed DFOD is demonstrated by
Predictivity (PP), and Sensitivity (Se). evaluating the average group delay, given by (7).
(d) The superiority of the proposed R-peak detector over all the
recently published R-peak detection techniques is also justified in
π
1
terms of all the above mentioned standard R-peak detection
τDFOD =
π ∫
0
τDFOD(ω)d(ω) (7)
metrics.
2.2 Moth-flame optimisation algorithm
The rest part of the proposed research work is organised as
follows: after the introduction, Section 2 describes the proposed The design of digital differentiator is a very old research area. An
MFO-based DFOD, an integral part of the pre-processor. Section 3 IIR-type digital differentiator was designed by using Simpson's
presents the HT-based R-peak detection technique. Section 4 shows rule for integration [36]. However, in the recent trend, highly
the simulation results and discussions. Section 5 concludes the efficient digital integrators and differentiators are developed by
proposed work. using evolutionary optimisation techniques [37–40]. Since lower
order integrators and differentiators are suitable for the real-time
2 Proposed DFOD applications [40], in this paper, an IIR type, first-order digital
differentiator is designed by using MFO algorithm, for the
The proposed DFOD is analogous to the ideal integer order detection of the QRS complexes in the ECG signal.
differentiator (IOD) in the discrete time domain. MFO algorithm is inspired by the natural navigation mechanism
of moths (search agents), called transverse orientation [41]. During
2.1 Problem formulation the night time, the moth traverses a very long distance in the
straight line path, by maintaining a fixed angle with respect to the
The frequency response of the ideal integer order differentiator is moon. However, when the moth navigates for artificial light
given by (1). (flame) by retaining the same transverse orientation, due to the
short distance between moth and light source, moths traverse in a
Dideal( jω) = jω (1) shrinking spiral path towards the artificial light. This spiral
movement of moth concerning the artificial lights is modelled to
where ω ∈ [0, 1] is the normalised frequency and j = −1. perform optimisation.
The Transfer Function (TF) of an N th order IIR-type DFOD is The initial positions of the moths are distributed randomly in
given by (2). the search space and the random position of the ith moth in the jth
dimension is stored in a (n × d) matrix called M. Here, n represents
N
∑i = 0 aiZ − i the total number of moths and d represents the total number of
HDFOD(Z) = N (2) design variables.
∑i = 0 biZ − i
The cost function of each moth is evaluated, and its
corresponding fitness values are stored in a (n × 1) matrix called
IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1173
© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 1 (a) Block diagram of the proposed DFOD. (b) The proposed R-peak detection algorithm

OM. Best-so-far positions of the moths called flames are stored in Step 4: If iteration_no = 1, then go to Step 5, otherwise, go to Step
a (n × d) matrix called F. The fitness values of the flames are stored 6.
in a (n × 1) matrix called OF. Step 5: Evaluate F = sort(M) and OF = sort(OM).
The next position of the moths is evaluated by using (8). Step 6:Evaluate F = sort(Mt − 1, Mt)
and OF = sort(Mt − 1, Mt).
M(i, j) = S(Mi, F j) = Di ⋅ ebt ⋅ cos(2πt) + F j (8)
Step 7: For each moth (mi) repeat Step 8 to Step 10.
where S is the spiral function; Di = | F j − Mi| is the separation Step 8: For each dimension (d j) of the design variable repeat Step 9
to Step 10.
distance between the ith moth (Mi) and the jth flame (F j); b is a
Step 9: Update r and t.
constant denoting the shape of the logarithmic spiral; and t is the
random number t ∈ [r, + 1]. Here, the value of r (adaptive Step 10: Find Di = | F j − Mi|, and update M(i, j) by using (8).
convergence constant) is varied from −1 to −2 over the number of Step 11: Until the stopping criteria are not satisfied repeat Step 2 to
iterations and ensures faster convergence and intensification of the Step 10.
MFO algorithm. Step 12: Return the position of the best moth, consisting of the
In order to avoid the local optima and to diversify the problem optimal sets of Num. Coeff. (ai) and Denum. Coeff. (bi) of the
search space, after each iteration, the flames are sorted according to proposed designed DFOD.
their fitness values. The sorted flames are assigned to their
respective moths, i.e. the first moth modifies its position with 3 Proposed R-peak detection scheme
respect to the best flame, and the last most adjusts its position with
respect to the worst flame. The proposed DFOD-based R-peak detection scheme is shown in
To ensure a proper balance between the exploration and the Fig. 1b. It consists of ECG pre-processor design and R-wave
exploitation phases, the number of flames is varied adaptively over detector design, as discussed in the following sub-sections.
the number of iterations as given by (9).
3.1 ECG pre-processor design (stage-1)
P−1
flame_no = round (P − l) × (9) The proposed ECG pre-processor design scheme consists of a
T
bandpass filter (BPF), an optimally designed DFOD, an amplitude
where l represents the current iteration number, T represents the normaliser (AN), and a smooth waveform generator as discussed in
maximum iteration number, and P represents the maximum the following sub-sections.
number of flames.
Steps of MFO algorithm for evaluating the optimal set of 3.1.1 Enhancement of QRS complex by noise reduction and
coefficients are described below. differentiation: Practical ECG signal is corrupted by several types
of noise and artefacts as shown in Fig. 2a. The presence of this
Step 1: Randomise the initial position of the moths (search agents) noise and artefacts hinders the R-peak detection process and
in the problem search space. For the N th order DFOD design decreases the R-peak detection accuracy. Therefore, to combat
problem, each candidate solution consists of equal number of Num. these noise and artefacts, the ECG signals are filtered by using a
Coeff. (ai) and Denum. Coeff. (bi) for i = 0, 1, 2, 3, …, N, with third order Chebyshev type-1 bandpass filter (5–22 Hz), so that
these unwanted components are automatically discarded from the
dimension D = 2 × (N + 1). Initialise n = 50 and b = 1. raw ECG signal. To accentuate the QRS complex, the filtered ECG
Step 2: Update the flame_no by using (9). signal is differentiated by the proposed DFOD. The differentiated
Step 3: Calculate OM = JDFOD(M) by using (4). ECG signal is shown in Fig. 2b. The DFOD stage generates feature

1174 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 2 Illustration of the performance of the different stages of the pre-processor;
(a) Raw ECG; (b) Generated feature signal by the proposed DFOD; (c) Smooth waveform. (d) Illustration of HT-based R-peak detection technique

signal (slope information) corresponding to each R-peak in the by considering the amplitude of the few previously detected R-
ECG signal. From Fig. 2b it can be observed that the out-of-band peaks. If an R-peak is not detected for a specific duration, search
noise and artefacts are diminished, and suitable feature signals back mechanism is implemented by reducing the present threshold
corresponding to each R-peak are obtained. This feature signal is value. If more than one R-peak is detected within a particular
used as a reference point (marker or feature signal) for the period, based upon their current amplitudes, any of the R-peak is
detection of the R-peaks in the subsequent signal processing stages. accepted.
The differentiated ECG signal (d[n]) is normalised by using (10). There are a wide variety of thresholding techniques [28]. These
thresholding techniques work well for regular heartbeats [28].
d[n] However, the difficulty arises for the irregular beats.
a[n] = (10) The R-peak detection accuracy of the threshold-based R-peak
max ( | d[n] | )
detection logic is dependent on the initial threshold value. To avoid
the complexity associated with thresholding-based R-peak
3.1.2 Smooth waveform generator: The differentiated output is detection logic an HT-based simple R-peak finding logic [7, 28] is
further enhanced by calculating the Shannon energy and the implemented in this paper and is explained in the following sub-
moving sum of the differentiated signal. The Shannon energy is section.
calculated by using (11) [7, 28] to amplify the differentiated ECG
signal nonlinearly, which further assists to accentuate the QRS 3.2.1 Simple peak finding logic based on Hilbert transform
complex compared to other components. Further, to obtain the and zero crossing detection: Let g(t) is a real-time signal, and
smooth waveform moving window integration is implemented. h(t) = (1/πt) is the impulse response of the HT. Then the HT of
g(t) is denoted by g^ (t).
s(n) = − ((a[n])2 ⋅ log(a[n])2) (11)

1 1
For moving window integration, the number of sample points L is g^ (t) = HT[g(t)] = g(t) ∗
πt
=
π ∫−∞
g(τ)
t−τ
dτ (12)
chosen in such a way that it corresponds to the maximum duration
of the QRS complex. For the ECG signal with 360 Hz sampling By using the convolution property of the Fourier transform one can
frequency the length, L = 55 is considered to maintain a proper get
balance between the design complexity and the detection accuracy
[28]. The output of the smooth waveform generator is shown in F g^ (t) = F g(t) × F h(t) (13)
Fig. 2c.
^
G( f ) = G( f )H( f ) (14)
3.2 R-peak detector design (stage-2)
From Figs. 2a and c it can be observed that the maximum positions ^
G( f ) = F g(t) × F
1
= − jsgn( f )G( f ) (15)
of the smoothed waveform (Fig. 2c) are uniquely related to the R- πt
peaks in the raw ECG signal (Fig. 2a). Hence, the R-peaks of the
ECG signal can be detected by determining the maximum positions where
of the corresponding smooth waveforms. The maximum positions
of the smooth waveform can be obtained either by using an +1 f >0
amplitude threshold-based peak finding logic or by using a sgn( f ) = 0 f =0
threshold independent peak finding logic. In case of the threshold-
−1 f <0
based logic, the smoothed waveform is continuously compared
with a fixed or adaptive threshold. One R-peak is declared each
time the smoothed waveform crosses the threshold. The amplitude Hence, the HT of the real-time signal g(t) can be evaluated
of the ECG signal is patient specific and varies with respect to the by using (16).
external conditions [10]. Hence, the adaptive threshold is more
preferred than a fixed threshold. ^ ^ jG( f ) if f < 0
g^ (t)(t) = IFT G( f ) where G( f ) = (16)
In case of adaptive thresholding logic, initially, a default − jG( f ) if f > 0
threshold value is assigned. The next threshold value is calculated

IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1175


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
^
where G( f ) is the Fourier transform of the signal g(t) and IFT TP
Positive Predictivity, PP = (19)
represents the inverse Fourier transform. TP + FP
The smoothed waveform is applied to the HT block. When an
inflection point appears in the input signal, its corresponding HT QRS Detection Rate, QDR = min (Se, PP) (20)
will cross the zero axes, due to the odd symmetry nature of the HT.
This zero crossing positions (ZCPs) will be used as the reference where TP (true positive) indicates the detection of the correct
points for the detection of actual instants of the R-peaks in the heartbeat, the FP (false positive) indicates the detection of the
subsequent signal processing stages. The HT-based peak detection incorrect heartbeat, and the FN (false negative) indicates the
logic is justified by generating a smooth waveform from the detection failure of the true heartbeat.
extracted ECG signal from Record-100. The signal is derived for a
time duration of 1 s, which corresponds to the time interval of a 4 Results and discussions
single heartbeat. Fig. 2d justifies the applicability of the HT-based
technique for accurately identifying the maximum position in the The proposed R-peak detector is designed in the following
smooth waveform, which approximately corresponds to the R-peak environment-OS: Windows XP; programming language: MATLAB
position of the ECG signal. version 7.10 (R2010a); CPU: 2 GHz Intel(R) Core(TM) i3-6006U
processor; and RAM: 8GB.
3.2.2 Low-frequency drift eliminator: Due to an extensive peak
amplitude variation and the baseline drift, the HT sequence is 4.1 Results of the proposed MFO-based DFOD
strayed from the reference line, called low-frequency drift (LFD). The best-chosen control parameter values of the MFO algorithm
Due to the LFD in the HT sequence, the probability of missing true for the optimal design of the DFOD are shown in Table 1.
R-peaks increases. This unfavourable situation is evaded by
subtracting the output of the moving average filter from the Hilbert
4.1.1 Performance of the proposed MFO-based DFOD: The
transform output. The selection of the length of the moving average
magnitude and the phase response performance of the proposed
filter plays a vital role in realigning the HT signal with the
MFO-based DFOD are examined by evaluating MAME (dB) and
reference line. For the ECG signal with a sampling frequency of
τDFOD (samples), respectively. The optimal sets of Num. Coeff. and
360 Hz, the length of the moving average filter K is considered as
400 in this paper. Denum. Coeff., obtained from the MFO algorithm for the design of
the proposed DFOD, and the values of MAME (dB) and τDFOD
3.2.3 True R-peak detector: Practically there is a minute (samples) are presented in Table 2. The magnitude response, AME,
deviation between the ZCPs and the true instants of the R-peaks. and phase response plots of the proposed MFO-based DFOD are
Hence, the true R-peak instants are determined by searching the presented in Figs. 3a–c, respectively. From Fig. 3a, it can be
maximum positions in the raw ECG signal within ±25 samples noticed that the magnitude response of the proposed MFO-based
around each ZCP [28]. DFOD almost replicates to that of the ideal differentiator. From
Fig. 3b, it can be seen that the MAME (dB) value is −13.12 dB.
The calculated value of the average group delay τDFOD is only 0.02
3.3 ECG database
samples. The average group delay for the real-time signal
To evaluate the performance of the proposed R-peak detector, a processing applications should be small [40]. Also, lower order
universally accepted database called MIT/BIH arrhythmia database IIR-type digital differentiator is suitable for real-time applications
(MBDB) [42, 43] is used in this work. The MBDB consists of dual [40]. The proposed differentiator satisfies above two criterions,
channel, 48 ECG records, sampled at a rate of 360 Hz, with 11-bit along with the magnitude response of the proposed DFOD is
resolution over ±5 mv range. All the reported QRS detectors are almost identical to the ideal differentiator. Hence, the proposed
validated against all the 48 numbers of the first channel (i.e. Lead approach is suitable for real-time signal processing applications,
II) ECG records of the MBDB except [31] which is validated like QRS complex detection in the ECG signal.
against 47 ECG records of MBDB. To have a fair comparison, the
performance of the proposed R-peak detector is also evaluated 4.1.2 Average performance analysis of the MFO-based
against all the 48 numbers of first channel ECG records of the DFOD with respect to MAME metric: The performance of the
MBDB, except the duration of ventricular flutter region of MFO-based DFOD regarding the MAME metric is evaluated by
Record-207. This ventricular flutter region is also not evaluated by running the algorithm for 50 independent times, to calculate the
several researchers [18, 19, 22, 28, 31] as this period is not statistical parameters like best, worst, mean, and standard deviation
annotated. (SD) values. For the MAME (dB) metric the best, worst, mean, and
SD values are −13.12, −2.87, −12.27 dB, and 1.63, respectively, as
3.4 Performance measurement presented in Table 3. The variation of the MAME (dB) metric for
the MFO-based designed DFOD with respect to 50 independent
For the sake of comparison of the proposed R-peak detector with runs is depicted in Fig. 3d.
the recently published R-peak detectors, standard R-peak detection
performance metrics are calculated by using (17)–(20).
4.1.3 Convergence speed analysis of the MFO-based DFOD
TP design: The convergence plot of the MFO-based DFOD design is
Sensitivity, Se = (17) depicted in Fig. 4a. It can be observed that within few numbers of
TP + FN
iterations MFO reaches near the global optima. Faster convergence
is achieved by the MFO algorithm due to the adaptive decrease of
FP + FN
Detection Error Rate, DER = (18) the convergence constant (r) over the number of iterations. The
Total no of QRS compex

Table 1 Best control parameter values of MFO for DFOD design


Size of population (n) Maximum number of epochs Logarithmic spiral shape constant (b) Adaptive convergence constant (r)
50 400 1000 −1 to −2

Table 2 Performance of the proposed MFO-based DFOD


N Algorithm Num. coeff. [a0,a1,…,aN] Denum. coeff. [b0,b1,…,bN] MAME, dB τDFOD (samples)
1 MFO [1.8792–1.7354] [1.6021–0.3646] −13.12 0.02

1176 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 3 (a) The magnitude response of the proposed MFO-based DFOD. (b) AME response of the proposed MFO-based DFOD. (c) The phase response of the
proposed-MFO-based DFOD. (d) Variation of MAME (dB) with respect to the number of independent trials runs

Table 3 Average performance of the proposed MFO-based DFOD with respect to MAME metric
Error metrics Best Worst Mean SD
MAME, dB −13.12 −2.87 −12.27 1.63

best, worst, average, and standard deviation values are estimated adaptive convergence constant (r), and size of population (n) on the
by running the algorithm for 50 independent times, and the outputs final solution quality of the designed DFOD, in terms of the
are shown in Table 4. MAME metric are examined in the following sub-sections. The
algorithm is run for 50 independent times for each case to calculate
4.1.4 Execution time analysis of the MFO-based DFOD the best, worst, mean, and standard deviation (SD) values of the
design: The computational time also decides the efficiency of the MAME metric. While varying a particular control parameter value,
algorithm. Hence, in order to know the execution time required for the other control parameter values are kept constant, as per Table 1.
400 function evaluations by the MFO algorithm for the
implementation of the DFOD, the MFO algorithm is run for 50 4.2.1 MFO sensitivity analysis due to the change in the
independent times, to calculate the statistical parameters namely logarithmic spiral shape constant (b): The logarithmic spiral
SD, worst, mean, and best values, and the corresponding results are shape constant, b controls the convergence speed and the direction
shown in Table 4. The mean time taken for the evaluation by the of the spiral movement. For a very low value of b, the spiral
algorithm is only 45.485 s, for the DFOD type design problem. becomes a circle, and for a very large value of b the spiral tends
towards a straight half-line. The effect of the MFO algorithm on
4.1.5 Stability analysis of the proposed MFO-based the resulted solution quality for different values of b is examined,
DFOD: The pole-zero plot of the designed MFO-based DFOD is and the results are presented in Table 5. It can be observed that the
depicted in Fig. 4b. It can be observed that both the pole and zero better MAME (dB) metric value is obtained corresponding to b = 1,
reside within the unit circle, which guarantees the system to be a due to a proper balance between the diversification and the
stable and minimum phase. intensification phases.

4.2 Sensitivity analysis 4.2.2 MFO sensitivity analysis by changing the value of
adaptive convergence constant (r): r is used to accelerate the
The impact of MFO algorithm due to the change in initial control convergence speed of the moths towards the flames. Also, it is used
parameter values like logarithmic spiral shape constant (b), to enhance the intensification phase of the MFO algorithm. Table 6

IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1177


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 4 (a) Convergence characteristics of the proposed MFO-based DFOD. (b) Pole-zero diagram of the proposed MFO-based DFOD

Table 4 Statistical analysis of the convergence speed for the MFO algorithm employed for DFOD design
Number of iterations required for convergence to the optimal solution Computational time (s) for 400 iterations
best worst average SD best worst average SD
112 163 130 2.548 45.269 45.742 45.485 0.249

Table 5 Comparison of MFO-based DFODs for different values b


N Logarithmic spiral shape constant (b) Num. coeff. [a0,a1,…,aN] Denum. coeff. [b0,b1,…,bN] MAME, dB
Best Worst Mean SD
1 0.01 [1.8789–1.5535] [1.5203–0.3057] −10.02 −1.21 −8.65 3.12
1 0.1 [1.8789–1.7368] [1.6001–0.3604] −12.96 −2.79 −11.85 1.98
1 1 [refer Table 1] [refer Table 1] −13.12 −2.87 −12.27 1.63
1 10 [1.8770–1.5548] [1.5176–0.3003] −9.83 −1.15 −8.56 3.65

Table 6 Comparison of MFO-based DFOD for different values of r


N Adaptive convergence constant (r) Num. coeff. [a0,a1,…,aN] Denum. coeff. [b0,b1,…,bN] MAME, dB
Best Worst Mean SD
1 −1 to −2 [refer Table 1] [refer Table 1] −13.12 −2.87 −12.27 1.63
1 −1 to −4 [1.8785–1.7365] [1.6018–0.3638] −13.08 −2.81 −12.01 1.78
1 −1 to −8 [1.8797–1.7345] [1.5990–0.3597] −12.95 −2.68 −11.89 2.0

Table 7 Comparison of MFO-based DFOD for different population size


N Population size Num. coeff. [a0,a1,…,aN] Denum. coeff. [b0,b1,…,bN] MAME, dB
Best Worst Mean SD
1 25 [1.8779–1.7362] [1.5984–0.3529] −12.40 −1.53 −11.22 1.90
1 50 [refer Table 1] [refer Table 1] −13.12 −2.87 −12.27 1.63
1 100 [1.8825–1.7564] [1.6153–0.3712] −13.28 −2.64 −11.92 1.71

presents the performance of the MFO algorithm in terms of number of search agents are considered as the most suitable for the
MAME metric for different ranges of r. It can be observed that MFO-based DFOD type design problem.
when the range of r varies from −1 to −2, over the number of
iterations, better solution quality is obtained due to the better 4.3 QRS detection
intensification of the search space.
An R-peak detection example illustrating the operation of the
4.2.3 MFO sensitivity analysis due to the change in proposed DFOD-based R-peak detection technique is depicted in
population size (n): The optimal sets of Num. Coeff. and Denum. Figs. 5–10. In each figure, the subplot (a) portrays the raw ECG
Coeff. and the corresponding MAME error metrics resulted from signal. The output of the proposed DFOD is portrayed in subplot
the design of the MFO-based DFOD with n of 25, 50, and 100 (b). It can be observed that at this stage a suitable feature signal is
numbers of moths are presented in Table 7. It can be observed that generated corresponding to each R-peak in the differentiated ECG
by considering a lesser number of moths (n = 25), poor solution signal. Also, it can be observed that across the output of the DFOD,
quality is obtained. Also, by considering a large number of moths the effects of the P/T-waves and the baseline shift are eliminated.
(n = 100), minute improvement in the solution quality is achieved The true instants of the R-peaks are detected by using this suitable
with higher design time overhead. Hence, by considering a suitable feature signal in subsequent signal processing stages. The subplot
trade-off between the design time and the solution quality, 50 (c) represents the output of the smooth waveform (portrayed in
blue), the HT output (portrayed in green), and the zero crossing

1178 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 5 R-peak detection of ECG signal (Record-112 of the MBDB)
(a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green), Fig. 7 R-peak detection of ECG signal (Record-108 of the MBDB)
ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red (a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green),
vertical lines) ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red
vertical lines)

Fig. 6 R-peak detection of ECG signal (Record-105 of the MBDB)


(a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green),
ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red Fig. 8 R-peak detection of ECG signal (Record-203 of the MBDB)
vertical lines) (a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green),
ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red
points (portrayed in red dots). All the zero crossing points represent vertical lines)
the local maxima of the smooth waveforms. The subplot (d)
represents the instants of the detected R-peaks (portrayed by black and 80 FN beats. The calculated values of Se (%), PP (%), DER
upward arrowhead), and the corresponding annotations (portrayed (%), and QDR (%) are 99.93%, 99.92%, 0.1507%, and 99.92%,
in red vertical lines). Fig. 5 depicts the performance of the respectively. Also, the effectiveness of the proposed DFOD-based
proposed QRS detector for a normal ECG rhythm in the presence R-peak detector is further justified in terms of the visual
of small noise. Figs. 6–10 depict the performance of the proposed inspections of different noisy and critical ECG morphology,
QRS detector for noisy ECG segments which are commonly found extracted from different ECG records, and are portrayed in Figs. 11
in ECG records 105, 108, 203, 207, and 208. and 12.
The overall R-peak detection performance against the MBDB is Figs. 11a–c substantiate the applicability of the proposed
presented in Table 8. The performance of the proposed DFOD- DFOD-based R-peak detector, to determine the true instants of the
based R-peak detector is evaluated by using a total number of R-peaks in the noise and artefacts contaminated ECG records such
109,494 heartbeats which yields 109,414 TP beats, 85 FP beats,
IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1179
© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
can be observed that in this extracted ECG segment every normal
heartbeat follows the PVC beats. Fig. 12b illustrates an ECG
segment with high amplitude T-waves, which have similar
characteristics to that of the QRS complex and are very often
misinterpreted as QRS complex. Fig. 12c shows a segment of ECG
extracted from MBDB Record-217. It consists of fusion of paced
and normal beat, normal beats, PVC beats, and paced beat. An
abrupt baseline drift just after the time instant 6 s in Fig. 12c can be
noticed. In this short period, the amplitude of R-peak is very small.
Fig. 12d shows a segment of ECG extracted from MBDB
Record-200. It represents an irregular ECG segment.
Despite the presence of noise and irregularities in the ECG
signal depicted in Figs. 11 and 12, all the heart beats are detected
successfully by the proposed QRS complex detector.
To justify the efficacy of the proposed MFO-based DFOD for
identifying the true time instants of the R-peaks in the ECG signal,
the proposed differentiator is replaced by the reported non-optimal
method-based [26, 28] and optimal method-based [33]
differentiators in the proposed R-peak detection model as shown in
Fig. 1b. In [26, 28], the differentiators are designed by employing
difference equations, whereas, in [33], the differentiator is designed
by employing an evolutionary optimisation algorithm called
Harmony Search (HS). Table 9 presents the differentiators'
performance along with the corresponding QRS detection results
obtained by incorporating the proposed and the reported
differentiators of [26, 28, 33] in the proposed QRS detection
Fig. 9 R-peak detection of ECG signal (Record-207 of the MBDB) model. In Table 9, it can be observed that the lowest MAME value
(a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green), of −13.12 dB and τDFOD value of 0.02 samples are achieved by the
ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red
proposed MFO-based DFOD. In terms of QRS detection
vertical lines)
performance by incorporating the differentiators of [26, 28, 33] in
the proposed R-peak detection model produced 260 (= 143 + 117),
208 (= 136 + 72), and 179 (= 92 + 87) false beat detections,
respectively. Whereas, the proposed approach yields the lowest
false beat detection value of 165 (= 85 + 80) beats, and thereby
reduces the false beat detection by 95 (= 260–165), 43 (= 208–
165), and 14 (= 179–165) beats, respectively, while incorporating
the differentiators of [26, 28, 33] in the proposed R-peak detection
model. Due to this a sensible improvement in QRS detection
performance with over 37% (= (260–165)/260), 21% (= (208–165)/
208), and 8% = ((179–165)/179) have been achieved in comparison
to the incorporation of reported differentiators of [26, 28, 33].

4.4 Performance comparison


The performance comparison between the proposed and the
reported approaches is presented in Table 10. In Table 10, the
values of all the performance indices are taken from the
corresponding reported literature. The comparative results confirm
the superiority of the proposed R-peak detection technique
compared to all the recently published literature, in terms of the
standard statistical parameters like Se, PP, DER, and QDR. The
ECG records of the MBDB are severely affected by noise and
artefacts. Also, the morphology of these signals is very much
complicated. Due to which, it is a very tough job for simultaneous
QRS augmentation and noise elimination. Hence, the researchers
try to design improved R-peak detectors based on the pre-
processed results [28]. But, in case of the proposed R-peak
Fig. 10 R-peak detection of ECG signal (Record-208 of the MBDB) detection technique, improved detection accuracy is achieved due
(a) ECG signal, (b) DFOD output, (c) Smooth waveform (blue), HT output (green),
to the better pre-processing of the ECG signal by using the DFOD.
ZCPs (red dots) (d) Detected R-peaks (black upward arrowhead), annotations (red
The significant advantages of the proposed DFOD are that the
vertical lines)
magnitude response of the proposed DFOD almost replicates to
that of the ideal differentiator counterpart. Hence, when the DFOD
as 104, 105, 108, 116, 203, 210, and 228. Fig. 11a presents an ECG differentiates the ECG signals, maximum slope information is
segment extracted from Record-105, which is affected by severe obtained, due to its near ideal characteristics. Most of the R-peak
baseline drift. Fig. 11b presents an ECG signal extracted from detection techniques produce higher numbers of FP and FN beats,
Record-108. It consists of high-grade noise and baseline drift. in case of the QRS complex with decreased signal slope
Fig. 11c depicts an ECG segment extracted from MBDB information [27]. The slope information is less in case of
Record-203. It is corrupted by high-frequency muscle noise. attenuated QRS complex and wide duration QRS complex. Though
Figs. 12a–d justify the efficacy of the proposed DFOD-based the proposed DFOD has almost ideal differentiator characteristics,
R-peak detector for faithful detection of the true instants of the R- it is very much capable of detecting the minimal amplitude and
peaks, for different critical ECG morphologies. Fig. 12a presents a wide duration QRS complexes. Also, the designed DFOD is a
segment of the ECG extracted from Record-208. It consists of minimum phase system, hence provides a minimum and constant
fusion of ventricular and normal beat, premature ventricular group delay to every frequency component of the input signal. So,
contraction (PVC) beats, normal beats, and R-on-T PVC beat. It
1180 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184
© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
a fixed relationship exists between the signal maximum points and detection by 18 (= 183–165) beats, and thereby improves the QRS
the zero crossing points. Also, besides bandpass filtering, the detection performance by 10% (= (183–165)/183). The percentage
proposed DFOD further eliminates the effect of P/T waves, and out of improvements resulted by the proposed approach over the
of the band noise and artefacts. Due to the above-mentioned reported state-of-the-art QRS detection techniques are presented in
advantages of the proposed DFOD-based pre-processor, the true Fig. 13a. Also, it should be noted that the proposed method does
instants of the R-peaks are detected most effectively in the not employ any complex search back and blanking technique.
subsequent signal processing stages. Rakshit et al. in [7] have Hence, the detection accuracy of the proposed detector can be
reported a total number of 183 (= 99 + 84) false beats. This is the further enhanced by using the sophisticated search back and
lowest reported false beat detection value in the QRS detection blanking procedure, to reduce the total number of FN and FP beat
literature. Whereas, the proposed approach yields a total number of counts, respectively. Also, the proposed DFOD is computationally
165 (= 85 + 80) false beats. Hence, it can be inferred that as efficient due to the lowest order implementation. The average time
compared to [7] the proposed approach reduces the false beat required by the proposed and the reported QRS detection

Table 8 Performance of the proposed DFOD-based R-peak detector over the MBDB
Record Total beats TP beats FP beats FN beats Se, % PP, % DER, % QDR, %
100 2273 2273 0 0 100 100 0 100
101 1865 1864 2 1 99.95 99.89 0.1609 99.89
102 2187 2187 0 0 100 100 0 100
103 2084 2084 0 0 100 100 0 100
104 2229 2226 13 3 99.87 99.42 0.7178 99.42
105 2572 2566 19 6 99.77 99.26 0.9720 99.26
106 2027 2026 2 1 99.95 99.90 0.1480 99.90
107 2137 2137 0 0 100 100 0 100
108 1763 1763 4 0 100 99.77 0.2269 99.77
109 2532 2532 0 0 100 100 0 100
111 2124 2124 0 0 100 100 0 100
112 2539 2538 0 1 99.96 100 0.0394 99.96
113 1795 1795 0 0 100 100 0 100
114 1879 1879 1 0 100 99.95 0.0532 99.95
115 1953 1953 0 0 100 100 0 100
116 2412 2400 5 12 99.50 99.79 0.7048 99.50
117 1535 1535 0 0 100 100 0 100
118 2278 2278 2 0 100 99.91 0.0878 99.91
119 1987 1987 1 0 100 99.95 0.0503 99.95
121 1863 1863 1 0 100 99.95 0.0537 99.95
122 2476 2476 0 0 100 100 0 100
123 1518 1518 0 0 100 100 0 100
124 1619 1619 0 0 100 100 0 100
200 2601 2597 1 4 99.85 99.96 0.1922 99.85
201 1963 1963 0 0 100 100 0 100
202 2136 2134 0 2 99.91 100 0.0936 99.91
203 2980 2966 4 14 99.53 99.87 0.6040 99.53
205 2656 2655 0 1 99.96 100 0.0377 99.96
207 1860 1854 2 6 99.68 99.89 0.4301 99.68
208 2955 2952 0 3 99.90 100 0.1015 99.90
209 3005 3005 1 0 100 99.97 0.0333 99.97
210 2650 2641 0 9 99.66 100 0.3396 99.66
212 2748 2748 1 0 100 99.96 0.0364 99.96
213 3251 3251 0 0 100 100 0 100
214 2262 2262 0 0 100 100 0 100
215 3363 3363 0 0 100 100 0 100
217 2208 2207 0 1 99.95 100 0.0453 99.95
219 2154 2154 0 0 100 100 0 100
220 2048 2048 0 0 100 100 0 100
221 2427 2427 0 0 100 100 0 100
222 2483 2483 1 0 100 99.96 0.0403 99.96
223 2605 2605 0 0 100 100 0 100
228 2053 2043 16 10 99.51 99.22 1.2664 99.22
230 2256 2256 0 0 100 100 0 100
231 1571 1571 0 0 100 100 0 100
232 1780 1776 8 4 99.78 99.55 0.6742 99.55
233 3079 3077 0 2 99.94 100 0.0650 99.94
234 2753 2753 1 0 100 99.96 0.0363 99.96
overall 109,494 109,414 85 80 99.93 99.92 0.1507 99.92

IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1181


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Fig. 11 R-peak detection using the MBDB (in each figure the detected R-peak is portrayed in black upward arrowhead, and the annotations are represented
in red vertical lines)
(a) Record-105: detection of R-peaks in presence of severe baseline drift, (b) Record-108: detection of R-peaks in presence of high grade noise and baseline drift, (c) Record-203:
detection of QRS complex in presence of severe noise

Fig. 12 R-peak detection using the MBDB (in each figure the detected R-peak is portrayed in black upward arrowhead and the annotation is portrayed in red
vertical lines)
(a) Record-208: detection of premature ventricular contraction (PVC) beats, (b) Record-117: detection of R-peak in the presence of high amplitude T-waves, (c)Record-217:
detection of R-peaks of a very critical ECG morphology, (d) Record-200: detection of irregular heartbeat

algorithms for processing each sample is shown in Table 10. As proposed QRS detection algorithm is run on a slower processor
illustrated in Table 10 the average execution time required for than that used in [28].
performing the proposed method on each 30 min ECG record in the Altogether the performance comparison between the proposed
MBDB is about 2.41 s, which corresponds to around 3.7 µs for and the reported R-peak detection techniques is demonstrated in
each sample. The execution time required by the proposed terms of three statistical parameters called Se (%), PP(%), and
approach is the least compared to all the reported methods except DER (%), as portrayed in Fig. 13b. It can be observed that the
the algorithm reported in [28]. It is noteworthy to mention that the proposed DFOD-based R-peak detection technique achieves the
best values of Se, PP, and DER. Though the Se (%) value of the

1182 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Table 9 QRS detection performance comparison by employing the proposed MFO and reported differentiators of [26, 28, 33]
in the proposed QRS detection model
Publication Differentiator performance QRS detection performance
MAME, dB τDFOD (Samples) TP FP FN Se, % PP, % DER, % QDR, %
Pan et al. [26] 9.94 2 109,377 143 117 99.89 99.87 0.24 99.87
Manikandan et al. [28] 1.15 0.5 109,422 136 72 99.93 99.88 0.19 99.88
Mahata et al. [33] −11.1 1.01 109,407 92 87 99.92 99.92 0.16 99.92
proposed −13.12 0.02 109,414 85 80 99.93 99.92 0.15 99.92

Table 10 Comparison of performance between the proposed and the recently published R-peak detectors
Publication Total TP FP FN Se, % PP, % DER, % QDR, % Execution time, µs/sample
Min et al. [5] Δ 109,496 109,383 102 113 99.90 99.91 0.19 99.90 N/R
Leong et al. [6] 109,134 N/R 330 753 99.31 99.70 0.99 99.31 N/R
Rakshit et al. [7] N/R 109410 99 84 99.93 99.91 0.16 99.91 N/R
Bouaziz et al. [8] 109,494 109,354 232 140 99.87 99.79 0.33 99.79 N/R
Deepu et al. [10] 109,508 N/R 201 395 99.64 99.81 0.54 99.64 5.2*
Jain et al. [11] Δ 109,494 N/R 184 272 99.75 99.83 0.41 99.75 13
Phukpattaranont et al. [15] 109,483 109,281 210 202 99.82 99.81 0.37 99.81 N/R
Yazdani et al. [16] 109,494 N/R 108 137 99.87 99.90 0.22 99.87 N/R
Zhang et al. [17] 109,510 N/R 204 213 99.81 99.80 0.38 99.80 N/R
Arbateni et al. [18] 109,483 N/R 109 210 99.82 99.91 0.29 99.82 N/R
Nallathambi et al. [19] 109,494 N/R 495 462 99.58 99.55 0.87 99.55 N/R
Pandit et al. [23] 109,809 109,432 369 389 99.65 99.66 0.69 99.65 15.74
Sharma et al. [24] 109,494 109,381 136 113 99.90 99.88 0.22 99.88 4
Pan et al. [26] 116,137 115,860 507 277 99.76 99.56 0.67 99.56 13.56*
Manikandan et al. [28] 109,496 N/R 140 79 99.93 99.86 0.20 99.86 3.45
Sabherwal et al. [30] 109,498 109,368 98 93 99.90 99.90 0.17 99.90 N/R
Benmalek et al. [31] N/R 107,632 153 156 99.86 99.86 0.28 99.86 10
proposed method 109,494 109,414 85 80 99.93 99.92 0.15 99.92 3.7
N/R: Not reported; ‘Δ’: Best value is reported; *: Reported in [11].

Fig. 13 (a) Percentage improvement of the proposed QRS detector over the reported QRS detection techniques in terms of a total number of false beat
detection. (b) Performance comparison in terms of Se, PP, and DER

proposed method and the method reported in [7] are the same, it detection application has been proposed by employing a highly
should be noted that the proposed method achieves the lowest DER efficient optimisation algorithm, called Moth-flame optimisation
value and the highest values of PP. Also, the process reported in [7] (MFO). The performance of the proposed DFOD-based R-peak
used a refractory period of 200 ms whereas, the proposed approach detector is verified against the MIT/BIH arrhythmia database
does not consider any refractory period. Hence, the detection (MBDB) by using the standard statistical parameters like
accuracy can be further enhanced by finding a suitable refractory Sensitivity (Se), positive Predictivity (PP), detection error rate
period. (DER), and QRS detection rate (QDR), which yields Se (%) of
99.93%, PP(%) of 99.92%, DER (%) of 0.1507%, and QDR (%) of
5 Conclusion 99.92%. The supremacy of the proposed R-peak detector in
comparison with the other recently published techniques is
An optimally designed, highly accurate, and computationally confirmed from the calculated statistical parameters. Finally, this
efficient Digital First-order Differentiator (DFOD) for the R-peak paper ensures the MFO-based DFOD is an efficient pre-processing

IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184 1183


© The Institution of Engineering and Technology 2018
17519683, 2018, 9, Downloaded from https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/iet-spr.2018.5230 by National Medical Library The Director, Wiley Online Library on [15/11/2022]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
tool used for generating feature signal efficiently related to the [20] Ravanshad, N., Dehsorkh, H.R., Lotfi, R., et al.: ‘A level-crossing based
QRS-detection algorithm for wearable ECG sensors’, IEEE. J. Biomed.
QRS complex region in the ECG signal. The optimally designed Health. Inform., 2014, 18, (1), pp. 183–192
digital differentiator for real-time R-peak detection application is [21] Ning, X., Selesnick, I.W.: ‘ECG enhancement and QRS detection based on
the novelty of the proposed research work. sparse derivative’, Biomed. Signal Proc. Control, 2013, 8, pp. 713–723
[22] Ramakrishnan, A.G., Prathosh, A.P., Ananthapadmanabha, T.V.: ‘Threshold-
independent QRS detection using the dynamic plosion index’, IEEE Signal
6 Acknowledgments Process. Lett., 2014, 21, (5), pp. 554–558
[23] Pandit, D., Zhang, L., Liu, C., et al.: ‘A lightweight QRS detector for single
This project is financially supported by Science and Engineering lead ECG signals using a max-min difference algorithm’, Comput. Methods
Research Board (SERB), Department of Science and Technology, Programs Biomed., 2017, 144, pp. 61–75
Government of India (Grant No: EEQ/2016/000215). [24] Sharma, T., Sharma, K.K.: ‘QRS complex detection in ECG signals using
locally adaptive weighted total variation denoising’, Comput. Biol. Med.,
2017, 87, pp. 187–199
7 References [25] Castells-Rufas, D., Carrabina, J.: ‘Simple and real-time QRS detector with the
MaMeMi filter’, Biomed. Signal Proc. Control, 2015, 21, pp. 137–145
[1] Meidani, M., Mashoufi, B.: ‘Introducing new algorithms for realizing an FIR [26] Pan, J., Tompkins, W.J.: ‘A real-time QRS detection algorithm’, IEEE Trans.
filter with less hardware to eliminate power line interference from the ECG Biomed. Eng., 1985, 32, (3), pp. 230–236
signal’, IET Signal Process., 2016, 10, (7), pp. 709–716 [27] Arzeno, N.M., Deng, Z.D., Poon, C.S.: ‘Analysis of first-derivative based
[2] Yadav, S.K., Sinha, R., Bora, P.K.: ‘Electrocardiogram signal denoising using QRS detection algorithms’, IEEE Trans. Biomed. Eng., 2008, 55, (2), pp.
non-local wavelet transform domain filtering’, IET Signal Process., 2015, 9, 478–484
(1), pp. 88–96 [28] Manikandan, M.S., Soman, K.P.: ‘A novel method for detecting R-peaks in
[3] Friesen, G.M., Jannett, T.C., Jadallah, M.A., et al.: ‘A comparison of the noise electrocardiogram (ECG) signal’, Biomed. Signal. Process. Control., 2012, 7,
sensitivity of nine QRS detection algorithms’, IEEE Trans. Biomed. Eng., (2), pp. 118–128
1990, 37, (1), pp. 85–98 [29] Hamilton, P.S., Tompkins, W.J.: ‘Quantitative investigation of QRS detection
[4] Kohler, B.U., Hennig, C., Orglmeister, R.: ‘The principles of software QRS rules using the MIT/BIH arrhythmia database’, IEEE Trans. Biomed. Eng.,
detection’, IEEE Eng. Med. Biol. Mag., 2002, 21, (1), pp. 42–57 1986, 33, (12), pp. 1157–1164
[5] Min, Y. J., Kim, H. K., Kang, Y.R., et al.: ‘Design of wavelet-based ECG [30] Sabherwal, P., Agrawal, M., Singh, L.: ‘Automatic detection of the R peaks in
detector for implantable cardiac pacemakers’, IEEE Trans. Biomed. Circuits single-lead ECG signal’, Circuits Syst. Signal Process., 2017, 36, (11), pp.
Syst., 2013, 7, (4), pp. 426–436 4637–4652. doi: 10.1007/s00034-017-0537-2
[6] Leong, C.I., Mak, P.I., Lam, C.P., et al.: ‘A 0.83 - µW QRS detection [31] Benmalek, M., Charef, A.: ‘Digital fractional order operators for R-wave
processor using quadratic spline wavelet transform for wireless ECG detection in electrocardiogram signal’, IET Signal Process., 2008, 3, (5), pp.
acquisition in 0.35 - µm CMOS’, IEEE Trans. Biomed. Circuits Syst., 2012, 6, 381–391
(6), pp. 586–595 [32] Saha, S.K., Kar, R., Mandal, D., et al.: ‘Seeker optimization algorithm:
[7] Rakshit, M., Das, S.: ‘An efficient wavelet-based automated R-peaks application to the design of linear phase finite impulse response filter’, IET
detection method using Hilbert transform’, Biocybern. Biomed. Eng., 2017, Signal Process., 2012, 6, (8), pp. 763–771
37, (3), pp. 566–577 [33] Mahata, S., Saha, S.K., Kar, R., et al.: ‘Optimal design of wideband digital
[8] Bouaziz, F., Boutana, D., Benidir, M.: ‘Multiresolution wavelet-based QRS integrators and differentiators using harmony search algorithm’, Int. J. Numer.
complex detection algorithm suited to several abnormal morphologies’, IET Model., Electron. Netw. Devices Fields, 2017, 30, p. e2203. doi: 10.1002/
Signal Process., 2014, 8, (7), pp. 774–782 jnm.2203
[9] Zidelmal, Z., Amirou, A., Adnane, M., et al.: ‘QRS detection based on [34] Mitra, S.K.: ‘Digital signal processing’ (McGraw-Hill, New York, 2006, 3rd
wavelet coefficients’, Comput. Methods Programs Biomed., 2012, 107, (3), edn.)
pp. 490–496 [35] Mahata, S., Saha, S.K., Kar, R., et al.: ‘Optimal and accurate design of
[10] Deepu, C.J., Lian, Y.: ‘A joint QRS detection and data compression scheme fractional order digital differentiator – an evolutionary approach’, IET Signal
for wearable sensors’, IEEE Trans. Biomed. Eng., 2015, 62, (1), pp. 165–175 Process., 2017, 11, (2), pp. 181–196
[11] Jain, S., Kumar, A., Bajaj, V.: ‘Techniques for QRS complex detection using [36] Al-Alaoui, M.A.: ‘Novel IIR differentiator from the Simpson integration
particle swarm optimization’, IET Sci. Meas. Technol., 2016, 10, (6), pp. 626– rule’, IEEE Trans. Circuits Syst. I, Fundam. Theory Appl., 1994, 41, (2), pp.
636 186–187
[12] Slimane, Z.E.H., Nait-Ali, A.: ‘QRS complex detection using empirical mode [37] Al-Alaoui, M.A.: ‘Class of digital integrators and differentiators’, IET Signal
decomposition’, Digit. Signal Process., 2010, 20, pp. 1221–1228 Process., 2010, 5, (2), pp. 251–260
[13] Dohare, A.K., Kumar, V., Kumar, R.: ‘An efficient new method for the [38] Mahata, S., Saha, S.K., Kar, R., et al.: ‘Optimal design of wideband IIR
detection of QRS in electrocardiogram’, Comput. Electr. Eng., 2014, 40, (5), fractional order digital integrators using colliding bodies optimization
pp. 1717–1730 algorithm’, IET Signal Process., 2016, 10, (9), pp. 1135–1156
[14] Afonso, V.X., Tompkins, W.J., Nguyen, T.Q., et al.: ‘ECG beat detection [39] Gupta, M., Relan, B., Yadav, R., et al.: ‘Wideband digital integrators and
using filter banks’, IEEE Trans. Biomed. Eng., 1999, 46, (2), pp. 192–201 differentiators designed using particle swarm optimization’, IET Signal
[15] Phukpattaranont, P.: ‘QRS detection algorithm based on the quadratic filter’, Process., 2014, 8, (6), pp. 668–679
Expert Syst. Appl., 2015, 42, (11), pp. 4867–4877 [40] Mahata, S., Saha, S.K., Kar, R., et al.: ‘Optimal design of wideband digital
[16] Yazdani, S., Vesin, J.M.: ‘Extraction of QRS fiducial points from the ECG integrators and differentiators using hybrid flower pollination algorithm’, Soft
using adaptive mathematical morphology’, Digit. Signal Process., 2016, 56, Comput., 2017, 22, (11), pp. 3757–3783. doi: 10.1007/s00500-017-2595-6
pp. 100–109 [41] Mirjalili, S.: ‘Moth-flame optimization algorithm: a novel nature-inspired
[17] Zhang, F., Lian, Y.: ‘QRS detection based on multiscale mathematical heuristic paradigm’, Knowl.-Based Syst., 2015, 89, pp. 228–249
morphology for wearable ECG devices in body area networks’, IEEE Trans. [42] Goldberger, A.L., Amaral, L.A.N., Glass, L., et al.: ‘Physiobank,
Biomed. Circuits Syst., 2009, 3, (4), pp. 220–228 PhysioToolkit, and PhysioNet: components of a new research resource for
[18] Arbateni, K., Bennia, A.: ‘Sigmoidal radial basis function ANN for QRS complex physiologic signals’, Circulation, 2000, 101, (23), pp. e215–e220
complex detection’, Neurocomputing, 2014, 145, (5), pp. 438–450 [43] Moody, G.B., Mark, R.G.: ‘The impact of MIT-BIH arrhythmia database’,
[19] Nallathambi, G., Príncipe, J.C.: ‘Integrate and fire pulse train automaton for IEEE Eng. Med. Biol. Mag., 2001, 20, (3), pp. 45–50
QRS detection’, IEEE Trans. Biomed. Eng., 2014, 61, (2), pp. 317–326

1184 IET Signal Process., 2018, Vol. 12 Iss. 9, pp. 1172-1184


© The Institution of Engineering and Technology 2018

You might also like