i-manager's Journal on Digital Signal Processing

View PDF

Volume :4 No :1 Issue :-2016 Pages :16-23

A Comprehensive Analysis for ECG Classification Using Wavelet Transform

Mayank Kumar Gautam *  Vinod Kumar Giri **
* PG Scholar, Department of Electrical Engineering, Madan Mohan Malaviya University of Technology, Gorakhpur, India.
** Professor, Department of Electrical Engineering, Madan Mohan Malaviya University of Technology, Gorakhpur, India.

Abstract

ECG is basically the graphical representation of the electrical activity of cardiac muscles during contraction and release stages. It helps in determination of the cardiac arrhythmias in a well manner. Due to this early detection, arrhythmias can be done properly. In other words, we can say that the bio-potentials generated by the cardiac muscles results in an electrical signal called Electro-cardiogram (ECG). Feature extraction of ECG plays a vital role in manual as well as automatic analysis of ECG for the use in specially designed instruments like ECG monitors, Holter tape recorders and scanners, ambulatory ECG recorders and analyzers. In this paper, the study of pattern recognition of ECG is done. The ECG signal generated waveform gives almost all information about activity of the heart. The feature extraction of ECG is by Wavelet transform. This paper also includes artificial neural network as a classifier for identifying the abnormalities of heart disease.

Keywords :

  • ECG;
  • BPNN;
  • ANN;
  • Feature Extraction;
  • Feature Classification;
  • Arrhythmia.

Introduction

Electrocardiography gives information of the electrical activity of the cardiac muscles. Bio-signals which are usually non-stationary signals may occur randomly in the time-scale. Hence, for the effective diagnosis, the ECG signal pattern and heart rate variability should be observed over several hours. Because of the volume of the data being enormous due to long time recording, the analysis of it is tedious and also time consuming. Therefore, automatic computer-based examination and classification of cardiac diseases can be very helpful in diagnostic [1]. The division of ECG is in two phases, depolarization of the cardiac muscles and repolarisation of the cardiac muscles [37]. The depolarization phases include the P wave i.e, atrial depolarization and QRS-wave i.e, ventricles depolarization. The repolarisation phases include the T-wave and U-wave i.e, ventricular repolarisation [2-6]. Malfunction of signaling in the myocardium results the heart to pump blood less effectively and deteriorates proper conduction process of the heart [4]. Hence, the early detection of arrhythmias is very helpful for living a durable and reliable life as well as improves early detection of arrhythmias. Generally, the standard ECG signals are categorized into three different groups and shown in Figure 1.

  • Waves – Deviations from the isoelectric line i.e, the baseline voltage. They are named successively as P, Q, R, S, T, U.
  • Segments - isoelectric lines time duration between waves.
  • Intervals - time duration which include segments and waves.
 

Figure 1. ECG Signal

An effective as well as efficient analysis of ECG signal depends upon accurate and reliable detection of the P, Q, R, S and T waves [32]. The detection of QRS complex is the most important task in automated ECG signal analysis because once the QRS complex is being identified, a more meticulous assessment of ECG signal is doable by including the heart rate and ST segment [5-6]. Number of algorithms developed have been discussed in the current paper for early detection as well as classification of these ECG signals.

1. Literature Review

Many algorithms have been developed for detection, feature extraction as well as classification of the ECG signals. Ramli and Ahmad [7] have used a cross correlation analysis technique for extracting the vital features from 12 lead ECG signals. Using the cross correlation techniques the values being identified can be used to predict the type of arrhythmias.

Tadejko and Rakowski [8], introduced an automatic classifier with K-self-organizing maps (SOM) and LVQ algorithms. This paper compares the QRS complexes for classification and then preprocesses the ECG morphology features. Various types of arrhythmias related to cardiac is followed in Table 1. The performance of algorithms is to examine the beats either in the form of normal or arrhythmia condition.

Table 1. Various Abnormalities and their Characteristic Features

Xu and Liu in [9] proposed the SVM algorithm for ECG QRS complex detection as well as the RR interval determination. They have used the Slope vectors for the extraction of features of ECG wave and also the nonlinear amplification have been used to improve S/N. This paper introduces high accuracy and fast response to find the QRS detection.

Manpreet Kaur and Arora [10] anticipated the K- means clustering along with Squared Euclidean distance for the ECG signals analysis. For ECG feature extraction, the parameters identified as wave shape, duration and amplitude. Using K-means clustering technique, clustered K is summed and minimized to a centroid distance.

F. De Chazal and Reilly [23] determines the PVC from normal beats. For feature extraction of ECG signals, the combination of morphological based features and time interval based features have been proposed. For the classification of ECG signal, the MLP with different number of hidden layers and algorithm according to, Radial Basis Function Neural Network (RBFNN) and Probabilistic Neural Network (PNN) is used. The simulation results show that about 97.14% for classification is achieved [15]. For simulation purpose, the MIT-BIH arrhythmia database is used.

S. Mitra et.al [11] determines a rough-set theory for the analysis of ECG signal. A rule-based rough-set decision system is developed from time-domain features to make an inference engine for arrhythmia detection. This technique helps to optimize rules for cardiac- arrhythmia detection, by which the complexity of Neural Networks (NN) can be omitted [16]. Currently, the system is tested with three types of ECG datasets as Normal, Myocardial Ischemia and Myocardial Infarction and the accuracy of all these types is obtained for both the trained and untrained dataset.

Castro et al. [12] anticipated a wavelet transform algorithm for feature extraction of an ECG signal and identification of abnormal heartbeats. The ECG signal is first denoised by a soft or hard threshold and then each cycle is simplified into a coefficient vectors using the Optimal Wavelet Function (OWF). The analyzed ECG signal coefficients are divided into P, Q, R, S and T to obtain a feature vector of the signal cycles.

Nazmy et al. [13] determines the ANFIS algorithm for classification of an ECG wave. The ECG feature extraction is done using the Independent Component Analysis (ICA). The power spectrum and input is being provided by the RR interval of ECG signal.

Alan and Nikola in [14] have introduced Chaos theory for feature extraction of ECG signals. Various methods comes under the Chaos theory, including correlation dimension, phase space and attractors, central tendency measure, spatial filling index, and the approximate entropy are also determined.

Yuksel and Bekir [17] have represented ANN to classify the ECG arrhythmias.

Zhu et.al, [18] determines the application of ANN for ECG abnormality detection. In this paper, to analyze the performance, the SOM network, BP and LVQ network were used and the overall accuracy of these networks has been acheived. [19,[20],[21]] also presented a comparison of how the neural networks classify the patterns from training data and recognizes if testing data holds that patterns of ECG signal.

El-Khafif et al. [19] anticipted ANN model to make a diagnosis of the ischemic heart disease from normal ECG signals.

Hosseini et al. [22] have anticipated the use of a twostage Feed Forward Neural Network (FF-NN) for ECG signal classification in which, they have elected two network architectures on the basis of one stage and two stage Feed Forward Neural Networks (FF-NN) to recognize heart arrhythmias.

Manimegalai et al. [28] have determined the use a discrete wavelet transform based system for detection and feature extraction of P, Q, R, S and T waves and in which, they found that this technique consumes less computational time and has better accuracy for ECG classification, analysis and characterization of normal and abnormalities of ECG. In [24,25,[26],27], the neurofuzzy technique has been proposed to configure the experimental data.

Golpayegani and Jafari [29] proposed a comparative evaluation of recital of ANFF with MLP neural networks and it has been found that, the time of training required for the ANFF was much shorter than time required by MLP.

Owis et al. [30] have determined the correlation dimension and largest Lyapunov exponent parameters to sculpt the chaotic nature of different classes of ECG signals. The anticipated implementations were used to compute these features belong to five different types of ECG signal taken from the MIT-BIH Arrhythmia Database.

2. Methodology Involved

The introduction of neural network was done in 1943 by the famous neurophysiologist, Warren McCulloch and logician, Walter Pits. ANNs are biologically inspired networks which has many applications in the fields such as, pattern recognition, classification, etc. Typically, multilayer feed forward neural networks can be trained as non-linear classifiers using the generalized Back Propagation Algorithm (BPA) [31-33]. The back propagation algorithm is a type of supervised learning algorithm, in which a Mean Square Error (MSE) function is defined, and the basic aim of the learning process is to reduce the overall system error to a minimum.

The technique of classification is done by logical and accurate neural network algorithm called Back Propagation Network (BPN). The learning algorithm of the multilayer perception requires a differentiable activation function, but frequently used is the logical function (nonlinear, monotonic, increasing, differentiable). The term back propagation states the backward propagation of an error signal through the network. After propagating a pattern through the feed forward network, the output pattern is compared with a given target and the error of each output unit is calculated. The error of each output unit is propagated backwards to the input layer - back propagation. Finally, the errors of the unit are used to modify the weights.

The Back-Propagation Neural Network (BPNN) usually allows practical attainment of each input/output mapping information within each multilayer networks. Basically, BPNN executes the algorithm of gradient descent search to minimize the Mean Square Error (MSE) between the preferred output and the actual output of the network by adjusting their weights. Back propagation (BPNN) algorithm is highly in use because in most classification problems, the reason is the characteristics of the generalized data rule [33,34].

It is a forward multi-layer network, which trains the network by using the error back-propagation algorithm. The Back Propagation Network algorithm (BPN) was proposed by Rumelhart et al. in 1986, because of its simple structure, multiadjustable parameters, much training algorithm and good operational performance, by which this network has got a wide range of practical application. The network structure of the three-layer BP neural network is shown in Figure 2.

Figure 2. Structure of ANN

The structure of ANN shows that, this neural network consists of an input layer, a middle layer (hidden layer) and an output layer. In this, there is a complete connectivity between the upper and lower layers and there are no connections between the neurons in each layer. The input layer of the signal needs to spread towards the hidden layer nodes and is transformed by the function and then the transmission of input signal of the hidden layer nodes to the output layer nodes. Typically the transfer function of BP neural network is Sigmoid Type differentiable function, which can attain random nonlinear mapping between the input and output, from this result, this type of network has been used in wide applications of Pattern Recognition, Function Approximation and other areas [11] [35-36] .

3. Experimental Layout

3.1 Feature Extraction

Wavelet transform is a periodic scale representation that has been utilized effectively as a part of wide scope of utilizations, specifically signal compression. As of late, Wavelets have been connected to few issues in Electro cardiology, including data compression, examination of ventricular late possibilities, and location of ECG characteristic points. The wavelet transform is a straight operation that breaks down the signal into various scales identified with recurrence parts and examines every scale with a specific determination. The WT utilizes a brief span interim for assessing higher frequencies and while interim for lower frequencies. Because of this property, high frequency components of short term can be watched effectively by Wavelet Transform. One of the benefits of the Wavelet Transform is that, it can break down signs at different resolutions, which permits precise component extraction from non-stationary signs like ECG. A group of breaking down wavelets in the time recurrence area is acquired by applying a scaling component and an interpretation element to the fundamental mother wavelet. Figures 3 and 4 show the levels of ECG decomposition.

Figure 3. Levels of ECG Decompostion

Figure 4. Levels of ECG Decomposition

Wavelet change of a sign f(t) is characterized as the entirety of over unsurpassed sign duplicated by scaled, moved forms of the wavelet capacity ψ, which is given by,

(1)
(2)

The DWT is adequate for most of the applications and for the recreation of the sign. The DWT gives enough data, and it gives a huge decrease in the calculation time. Here, the authors have discrete capacity f (n) and the meaning of DWT is given by:

(3)
(4)

where,

is a discrete wavelet transform,

In the DWT examinations, the signal at various frequency bands and resolutions is deteriorated into a 'coarse estimation' and 'point by point data'. Two arrangements of capacities are utilized by DWT, the scaling capacities (connected with the low pass channel) and the wavelet capacities (connected with the high pass channel). The sign is shifted by going it through progressive high pass and low pass channels to acquire variants of the sign in various recurrence groups. The essential thought behind wavelets is to dissect as per scale. These are capacities that fulfill certain numerical necessities and are utilized as a part of speaking information on different strategies. Calculation process information at various scales or resolutions. In the event that the sign with a substantial window, would see gross elements. Additionally, signal with a small window have a small element.

3.2 Analysis using BPNN Algorithm

At one point, the order is finished by Back Propagation Network. The learning calculation multilayer discernment requires a differentiable actuation capacity, much of the time is logistic capacity utilized (non-direct, monotonic, expanding, differentiable) [15]. The term back proliferation implies the regressive spread of a blunder signal through the system. Subsequent proliferating an example of the system - encourage forward, that the yield example is contrasted and a given target and the mistake of every yield unit is ascertained [16]. This blunder is proliferated in reverse to the data layer - back spread. At long last, the blunders of the units are utilized to adjust the weights.

4. Results and Discussion

The data are collected from MIT-BIH database. In this paper, 34 signals are used for training and from this, 15 signals are taken for testing.

These techniques accomplishes the separation in the normal and abnormal heart rate, which are analyzed by back propagation neural system. Table 2 explains the outcomes of the analysis done. This technique demonstrates the ongoing application execution parameter that can precisely judge the exactness.

Table 2. Performance Parameters

Conclusion

ECG signals required for investigation are gathered from Physionet MIT-BIH arrhythmia database. The database contains 48 records, each containing two-channel ECG signals for 30 min length of time chosen from 24-hr recordings of 47 distinct people. The techniques were produced under MATLAB. Subsequent to the utilization wavelet, change in electro cardiology is generally a new field of examination, numerous methodological perspectives (Choice of the mother wavelet, estimations of the scale parameters) of the wavelet strategy that will require further examinations with a specific end goal to enhance the clinical helpfulness of this novel sign handling framework. Simultaneously; analytic and prognostic noteworthiness of wavelet strategies in different fields of electro cardiology should be set up in vast clinical studies. Extremely straightforward and quick dependable techniques are proposed in this paper. This system is anything but difficult to perform and it need not bother with any complex scientific estimations, for example, Fourier strategies, and cross-connection. The ANN classifier was nourished by three parameters, spectral entropy, Poincare plot geometry and biggest Lyapunov type (LLE) obtained from the heart rate signs that were analyzed.

References

[1]. C.T. Lin, and C.F. Juang, (2001). “An adaptive neural fuzzy filter and its applications”. IEEE Transactions on Systems, MAN, and Cybernetics, Vol. 27, No. 4, pp.1103- 1110.
[2]. Jenisha. J. Hannah and Suja Priyadharsini, (2012). “Patient Adaptive ECG Beat Classifier using Repetition Detection Approach Enhanced by Neural Networks”. International Conference on Computing and Research and Control Engineering (ICCCE 2012), ISBN:978-1-4675- 2248-9.
[3]. K .O. Gupta and P. N. Chatur, (2012). “ECG Signal Analysis and Classification using Data Mining and Artificial Neural Networks”. International Journal of Emerging Technology Advanced Engineering, ISSN:2250-2459, Vol. 2, No. 1, pp. 56-60.
[4]. J. T. Catalano. Guide to ECG Analysis. Lippincott, 2 Edition.
[5]. Bucolo M., Grazia F. D., Sapuppo F., Nikolic D., Vuksanovic B., (2009). “Multidimensional Analysis toward the Identification of ECG Nonlinear Dynamics”. PHYSCON 2009, Catania, Italy.
[6]. Y.C. Yeha, and W. J. Wang, (2008). “QRS complexes detection for ECG signals: The Difference Operation Method (DOM)”. Computer Methods and Programs in Biomedicine, Vol. 9, pp. 245–254.
[7]. A. B. Ramli, and P. A. Ahmad, (2003). “Correlation th analysis for abnormal ECG signal features extraction”. 4 National Conference on Telecommunication Technology, 2003. NCTT 2003 Proceedings, pp. 232- 237.
[8]. P. Tadejko, and W. Rakowski, (2007). “Mathematical Morphology Based ECG Feature Extraction for the Purpose th of Heartbeat Classification”. 6 International Conference on Computer Information Systems and Industrial Management Applications, CISIM '07, pp. 322-327.
[9]. Xiaomin Xu, and Ying Liu, (2004). “ECG QRS Complex Detection Using Slope Vector Waveform (SVW) Algorithm”. th Proceedings of the 26 Annual International Conference of the IEEE EMBS, pp. 3597- 3600.
[10]. Manpreet Kaur and A.S. Arora, (2010). “Unsupervised Analysis of Arrhythmias using K-means Clustering”. (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 1, No. 5, pp. 417- 419.
[11]. S. Mitra, and B. B. Chaudhuri, M. Mitra, (2006). “A rough set based inference engine for ECG classification”. IEEE Trans. Instrum. Meas., Vol. 55, No. 6, pp. 2198–2206.
[12]. B. Castro, D. Kogan, and A. B. Geva, (2000). “ECG st feature extraction using optimal mother wavelet”. The 21 IEEE Convention of the Electrical and Electronic Engineers in Israel, pp. 346-350.
[13]. T. M. Nazmy, H. El-Messiry and B. Albokhity, (2009). “Adaptive Neuro-Fuzzy Inference System for Classification of Ecg Signals”. Journal of Theoretical and Applied Information Technology.
[14]. Alan Jovic, and Nikola Bogunovic, (2007). “Feature Extraction for ECG Time-Series Mining based on Chaos th Theory”. Proceedings of 29 International Conference on Information Technology Interfaces.
[15]. Raushan Ara Dilruba, Nipa Chowdhury, Farhana Ferdousi Liza, Karmakar, K.C., (2006). “Data pattern recognition using neural network with back propagation training”. pp 451-455.
[16]. Philip de Chazal, Maria O'Dwyer and Richard B. Reilly, (2004). “Automatic Classification of Heartbeats Using ECG Morphology and Heartbeat Interval Features”. IEEE Transactions on Biomedical Engineering, Vol. 51, pp. 1196 - 1206.
[17]. Yuksel Ozbay and Bekir Karlik, (2001). “A Recognition of ECG Arrhythmias Using Artificial Neural Networks”. rd Proceedings of the 23 Annual EMBS International conference, Turkey, pp. 1680-1683.
[18]. K. Zhu, P. D. Noakes and A.D.P. Green, (1991). “ECG Monitoring with Artificial Neural Networks”. Proc. Second International conference on Artificial Neural Networks, Colchester, UK, pp. 205 - 209.
[19]. El-Khafif S. H. and El-Brawany M. A., (2013). “Artificial Neural Network-Based Automated ECG Signal Classifier”. ISRN Biomedical Engineering.
[20]. Mr. Deshmukh Rohan, Dr. A. J. Patil, (2012). “Layered Approach for ECG betas Classification utilizing Neural Network functions”. International Journal of Engineering Research and Applications (IJREA), ISSN:2248-9622., Vol. 2, No. 6, pp.1495-1500.
[21] . S. Osowaki, and T.H. Linh, (2001). “ECG beat recognition using fuzzy hybrid neural network”. IEEE Trans. Biomed. Eng. Vol. 48, No. 11, pp. 1265-1271.
[22]. Hosseini H.G., Luob D. and Reynolds K. J, (2006). “The comparison of different feed forward neural network architectures for ECG signal diagnosis”. Medical Engineering & Physics. Vol. 28, pp. 372–378.
[23]. F. De Chazal and R. B. Reilly, (2006). “A patient adapting heart beat classifier using ECG morphology and heartbeat interval features”. IEEE Trans. Biomed. Eng., Vol. 53, No. 12, pp. 2535–2543.
[24]. S.Y. Foo, G. Harvey, and A. Meyer-Baese, (2002). “Neural network based ECG pattern recognition”. Eng. Appl. Artificial Intelligence, Vol.15, pp. 353-360.
[25]. V. Pilla, and H.S. Lopes, (1999). “Evolutionary training of a neuro-fuzzy network for detection of a P wave of the ECG”. Proceeding of the Third International Conference on Computational Intelligence and Multimedia Applications, New Delhi, India, pp.102-106.
[26]. M. Engin, and S. Demirag, (2003). “Fuzzy- hybrid neural network based ECG beat recognition using three different types of feature sets”. Cardiovasc. Eng. Int. J. Vol. 3, No. 2, pp. 71-80.
[27]. Ranganathan G., Rangarajan R. and Bindhu V., (2011). “Evaluation of ECG Signals for Mental Stress Assessment using Fuzzy Technique”. International Journal of Soft Computing and Engineering (IJSCE), Vol.1, No. 4, pp. 195-201.
[28]. Manimegalai P., Bharathi P. and Thanushkodi K., (2012). “Real Time Implementation of Analysis of ECG Characteristic Points Using Discrete Wavelets”. Global Journal of Researches in Engineering-Electrical and Electronics Engineering. Vol.12, No. 1.
[29]. Glayol Nazari Golpayegani, and Amir Homayoun Jafari, (2009). “A novel approach in ECG beat recognition using adaptive neural fuzzy filter”. J. Biomedical Science and Engineering, Vol. 2, pp. 80-85.
[30]. Owis M. I., Abou-Zied A. H., Youssef A. M. and Kadah Y. M.,(2002). “Study of Features Based on Nonlinear Dynamical Modeling in ECG Arrhythmia Detection and Classification”. IEEE Transactions on Biomedical Engineering, Vol. 49, No. 7, pp. 733-736.
[31]. M. Bahoura, M. Hassani, and M. Hubin, (1997). “DSP implementation of wavelet transform for real time ECG wave forms detection and heart rate analysis”. Comput. Methods Programs Biomed; Vol. 52, No. 1, pp.35–44.
[32]. Y. H. Hu, W. J. Tompkins, J. L. Urrusti and V. X. Afonso, (1993). “Applications of artificial neural networks for ECG signal detection and classification”. J.Electrocardiology, Vol. 26, pp. 66-73.
[33]. PhysioNet, (2015). MIT_BIH Arrythmia Database. Retrieved from http://www.physionet.org/physiobank /database/ mitdb/
[34]. C. Li, C. Zheng, (1993). Proc. Annual Int. Conf. IEE Eng. in Med. & Biol. Soc., San Diego, California.
[35]. Mathworks. Neural Network Toolbox. Retrieved from http://www. mathworks.com
[36]. L. Khadra, A. Fraiwan and W. Shahab, (2002). “Neural-wavelet analysis of cardiac arrhythmias”. Proceedings of the WSEAS International Conference on Neural Network and Applications (NNA '02), Interlaken, Switzerland.
[37]. S. Pachekhiya and A. K. Wadhwani, “Disease Diagnosis Of Heart Muscles Using Error Back propagation Neural Network”. International Journal of Engineering Science and Technology.