Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
= dt
a
b t
t x
a
b a X
) (
1
) , (
(1)
Where ) (t is continuous in both time and frequency
domain and is also known as the mother wavelet, which is
responsible for generating dilated copies of itself based on the
value of scalesa . The dilated versions of the mother wavelet
are known as daughter wavelets. The transformed signal is
generally plotted in a 2D plot called a scalogram plot. A
scalogram plot has scales on one axis and time on the other.
The values of coefficients are represented in colored spectrum
with violet having the lowest value and red having the highest
value (fig. 4).
C. Database
The work for this paper is done on the freely available
MIT- BIH Arrhythmia database (mitdb). This database
contains dual channel, long term ECG recordings of patients
from mixed age groups and both genders. The patients
medical history is provided with the database along with the
analysis and diagnosis of the ECG signals by a specialist. The
signals are sampled at a sampling rate of 360 samples per
second with 11 bit resolution over a 10 millivolt range [7] [8].
Fig. 3: Overlapping, singular cardiac cycle ECG for an arrhythmic
heart with block.
Fig. 4: A time domain ECG signal and its corresponding scalogram
plot.
13
International Journal of Emerging Trends in Signal Processing
ISSN(2319-9784) IJETSP , Volume 1 , Issue 3 March 2013
http://ijetsp.info/article/IJETSPV1I302.pdf
II. METHODOLOGY
The signals from the MIT-BIH Arrhythmia database is
analysed by CWT using Symlet6 family of wavelets for a
scale range of 1 to 130. The Symlet 6 wavelet closely
resembles a normal ECG pattern and hence, provides greater
accuracy in detection of abnormalities in ECG signals using
CWT [9]. The wavelet coefficients generated are used for
locating the start and end of individual QRS complexes in the
ECG signal [10].
A. QRS Complex Detection
The time domain ECG signal is converted to time- scale
domain using CWT. The position of the maximum coefficient
generated ) (MAX POS is selected as reference. Positions of
other coefficients, ) ( ts coefficien POS , are selected based on
the criteria in (2) below.
if end
ts coefficien POS
else
ts coefficien POS
MAX POS ts coefficien POS if
; 0 ) (
; 1 ) (
) ( 55 . 0 ) (
=
=
(2)
) ( ts coefficien POS forms an array which has unit amplitude
along the time axis whenever QRS complex is encountered,
otherwise it has zero amplitude. To rectify erroneous multiple
detection or multiple detection within a single QRS complex,
a checking operation has been provided based on the
following criteria:
end
CNT PEAK CNT PEAK
i POS i POS while
; 1 _ _
50 ) ( ) 1 (
+ =
> +
(3)
The positions between two detected complexes should be at
least 50 samples which roughly equals to 0.13 seconds, as the
sampling rate of the database is 360 samples per second and
multiple QRS complexes cannot lie within each other. The
start and end positions of the detected QRS complexes are
recorded and stored in two separate arrays, namely
loc START _ and loc END _ respectively. The output of the
above method is shown in fig.5.
B. Estimation of P and T waves
The positions of P and T waves can be approximated by
simple arithmetic operations. The array containing the
location of the start of QRS complexes and the array
containing the locations of the end of the QRS complexes are
element-wise averaged and stored in an array named
loc MEAN _ as shown in (4).
2
) ( _ ) ( _
) ( _
i loc END i loc START
i loc MEAN
+
= (4)
It is known that the PR interval of a normal ECG has a
maximum duration of 0.2 seconds. Since, this method deals
with detection of abnormalities of the ECG signals, a PR
interval of 0.3 second is considered as worst case scenario
value. Similarly, a QT interval value of 0.44 seconds is
considered. The signal is sampled at a rate of 360 samples per
second, which gives a boundary value of 108 samples and 150
samples for PR and QT intervals respectively. Single cardiac
cycles are extracted from the time domain ECG signal based
on the criteria in (5) and (6) below.
Fig. 5: Time- domain ECG signals (blue) with detected QRS
complexes (green) superimposed on it.
MIT- BIH Arrhythmia Database
Continuous Wavelet Transform
Family= symlet6
Scales=1:130
QRS Complex Detection
Estimate location of P and T waves
from sampling rate
Extract single cardiac cycles from
the long term ECG signal
Store each cardiac cycle in an array
Plot all the cardiac cycles, one over
the other.
Fig. 6: Flowchart for extraction of singular cardiac cycles from long
termECG recordings.
14
International Journal of Emerging Trends in Signal Processing
ISSN(2319-9784) IJETSP , Volume 1 , Issue 3 March 2013
http://ijetsp.info/article/IJETSPV1I302.pdf
108 ) ( _ ) ( _ = i loc MEAN i start CC (5)
150 ) ( _ ) ( _ + = i loc MEAN i end CC (6)
The flowchart for the above process is given in fig.6 which
gives an overview of the QRS complex detection and cardiac
cycle extraction process mentioned in this paper.
III. RESULTS
The results of application of the aforementioned method are
shown in figs. 7 to 10. Select records from the MIT-BIH
Arrhythmia database are chosen to test the method. One set
contains arrhythmic patients having no heart blocks and the
other set has arrhythmic patients with major blockage of heart.
The first set contains records 100 and 102. The record ID 100
contains significant instances of atrial premature contraction
(APC) and premature ventricular contraction (PVC). Record
ID 102 contains paced beats and pacemaker fusion beats. The
second set contains records 107 and 111. Record ID 107 has
complete heart blockage and ID 111 has first degree AV block.
The diagnosis is provided along with the database itself. Fig. 7
shows the overlapping cardiac cycles of record ID 100. The
time intervals of the cardiac cycles are more or less same;
hence, a neat boundary is achieved. Fig. 8 shows the
overlapping cardiac cycles of record ID 102. The patients
ECG has elevated ST segments and diminished QRS
complexes, but no heart block. The time intervals of the
patients cardiac cycle are almost the same; hence, again a
clear boundary has been achieved.
The overlapping cardiac cycle plot of record ID 107 is
shown in fig. 9. The patient is suffering from complete heart
block causing the plot to be garbled and with no clear and
uniform boundary. Fig. 10 contains the plot of record ID 111,
suffering from 1
st
degree AV block. Just like the previous
figure, this figure has no clear boundaries due to changes in
the time intervals caused by blocked conduction of the Atrio-
Ventricular (AV) node. This type of block causes a delay in
the completion of some of the cardiac cycles, causing the
normally overlapping and constant intervals to vary from the
regular intervals.
IV. CONCLUSION
Figs. 7 and 8 clearly show that the cardiac cycles are being
accurately extracted and all the time intervals within a cardiac
cycle such as the PR interval and the QT interval overlap in
the consecutive plots of the cardiac cycles, forming a single,
clearly cognizable boundary. The plot in Fig.7 has some of the
cardiac cycles with higher wave amplitudes than the other
cardiac cycles but the time intervals overlap perfectly. This
ambiguity in the cardiac amplitudes is due to the presence of
Fig. 7: Overlapped plot of extracted cardiac cycles for record ID 100
indicating absence of cardiac blocks.
Fig. 8: Overlapped plot of extracted cardiac cycles for record ID 102
indicating absence of cardiac blocks.
Fig. 9: Overlapped plot of extracted cardiac cycles for record ID 107
indicating the presence of cardiac blocks.
Fig. 10: Overlapped plot of extracted cardiac cycles for record ID 111
indicating the presence of cardiac blocks.
15
International Journal of Emerging Trends in Signal Processing
ISSN(2319-9784) IJETSP , Volume 1 , Issue 3 March 2013
http://ijetsp.info/article/IJETSPV1I302.pdf
baseline wander noise present in the signal as seen in fig.11.
Figs. 9 and 10 have no single cognizable wave boundary due
to the presence of multiple QRS complexes within the plot
area. Since, the record IDs 107 and 108 suffer from heart
blocks, the plots in fig. 9 and fig. 10 show absence of regular
time intervals, causing the extracted cardiac cycles to deviate
vastly from each other.
This paper proposes a method for quick analysis of the
ECG signals visually and without any numeric calculation of
intervals, so that even a non- specialist can judge the condition
of the heart just by looking at the plot of the cardiac cycles.
However, for specific and detailed diagnosis of the heart, the
involvement of a cardiac specialist is a must.
ACKNOWLEDGMENT
The efforts of Prof. K. K. Ghosh in the Department of
Electronics and Communications Engineering at the Institute
of Engineering and Management, Kolkata and Dr. K. K.
Mukherjee, Inspector General (Medical), ITBP, New Delhi,
India are gratefully acknowledged for their constant guidance
and assistance with my work.
REFERENCES
[1] S.Z. Mahmoodabadi, A. Ahmadian, M.D. Abolhasni, M.Eslami, J .H.
Bidgoli, ECG Feature Extraction based on Multiresolution Wavelet
Transform, Procedings of the 2005 IEEE Engineering in Medicine and
Biology 27
th
Annual Conference, Shanghai, China, Sep 1-4, 2005
[2] A. Pachauri, M. Bhuyan, Robust Detection of R- Wave Using Wavelet
Technique, World Academy of Science, Engineering and Technology
56, 2009, p.901-905.
[3] A. Mukherjee, K.K. Ghosh, An Efficient Wavelet Analysis for ECG
Signal Processing, IEEE Xplore, 2012, DOI:
10.1109/ICIEV.2012.6317419, p.411- 415.
[4] www.ecglibrary.com/norm.htm
[5] Leo Schamroth, An Introduction to Electrocardiography, Oxford
University Press, SBN: 0 19 562790 3
[6] R. Polikar, The Wavelet Tutorial, Part
IV,www.cs.ucf.edu/courses/cap5015/WTpart4.pdf, 2008
[7] Goldberger AL, Amaral LAN, Glass L, Hausdroff J M, Ivanov PCh,
Mark RG, Mietus J E, Moody GB, Peng C-K, Stanley HE, PhysioBank,
PhysioToolkit and PhysioNet: Components of a New Research
Resource for Complex Physiologic Signals. Circulation 101(23):e215-
e220, [Circulation Electronic Pages;
http://circ.ahajournals.org/cgi/content/full/101/23/e215]; 2000 (J une
13).
[8] http://physionet.org/physiobank/database/html/mitdbdir/mitdbdir.htm
[9] A. Mukherjee, S. Chatterjee, k. Chattopadhyay, K. K. Ghosh, A
Comparative Study on the Accuracy of ECG Detection for Arrhythmia
by Different Wavelet Families, IEMIJ MT, Vol.2 No.1, J an. 2012, p.93-
98.
[10] A. Mukherjee, K.K.Ghosh, A Noise Independent Approach to QRS
Complex Detection using CWT, communicated to the International
Conference on Informatics, Electronics and Vision, 2013, Dhaka,
Bangladesh, 2013.
Fig. 11: A time domain plot of the ECG recordings for record ID 100,
showing the presence of baseline wanders in the signal.
16