• 沒有找到結果。

ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM FOR CLASSIFICATION OF ECG SIGNALS

N/A
N/A
Protected

Academic year: 2022

Share "ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM FOR CLASSIFICATION OF ECG SIGNALS"

Copied!
6
0
0

加載中.... (立即查看全文)

全文

(1)

71

ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM FOR CLASSIFICATION OF ECG SIGNALS

1 T. M. NAZMY, 2 H. EL-MESSIRY, 3 B. AL-BOKHITY

1Prof., Faculty of computer and information sciences, Ain Shams University, Cairo, Egypt

2Dr., Faculty of computer and information sciences, Ain Shams University, Cairo, Egypt

3 Faculty of computer and information sciences, Ain Shams University, Cairo, Egypt E-mail: Bakil_ain_shams@yahoo.com

ABSTRACT

This paper, presents an intelligent diagnosis system using hybrid approach of adaptive neuro-fuzzy inference system (ANFIS) model for classification of Electrocardiogram (ECG) signals. Feature extraction using Independent Component Analysis (ICA) and Power spectrum, together with the RR interval then serve as input feature vector, this feature were used as input of ANFIS classifiers. six types of ECG signals they are normal sinus rhythm (NSR), premature ventricular contraction (PVC), atrial premature contraction (APC), Ventricular Tachycardia(VT), Ventricular Fibrillation (VF) and Supraventricular Tachycardia (SVT). The proposed ANFIS model combined the neural network adaptive capabilities and the fuzzy inference system. The results indicate a high level of efficient of tools used with an accuracy level of more than 97%.

Keywords: ANFIS, adaptive neuro, fuzzy inference system, ECG, ICA, Power Spectral, RR-interval.

1. INTRODUCTION

For several years, the automatic classification of ECG signals has received great attention from the biomedical engineering community. This is mainly due to the fact that ECG provides cardiologists with useful information about the rhythm and functioning of the heart. Therefore, its analysis represents an efficient way to detect and treat different kinds of cardiac diseases. A standard scalar ECG is shown in fig.1. It consists of P-wave, PR-interval, PR-segment, QRS complex, ST-segment, and T-wave. The QRS complex is a very important signal that is useful in the diagnosis of Arrhythmias diseases. In this paper, we use the QRS complex to achieve ECG beat classification[1]-[2]. In general, the normal ECG rhythm means that there is a regular rhythm and waveform. However, the ECG rhythm of the patient with arrhythmia will not be regular in certain QRS complex [3].

Several researchers have addressed the problem of automatic detection and classification of cardiac rhythms, such as: In [4] used the blind source separation techniques for feature extraction, The features were be classified by distance classifier, Bayes minimum error classifier, and K-Nearest

neighbour classifier. In [5] used wavelet transform for ECG feature extraction, using Fuzzy classifier. In [6] used fuzzy hybrid neural network composed of two sub-networks connected the fuzzy self- organizing layer performing the pre-classification task and the

Figure 1. Standard scalar electrocardiogram following multilayer perceptron (MLP) working as the final classifier. In [7] used largest Lyapunov exponent, spectral entropy and Poincare geometry for ECG feature extraction. adaptive neuro-fuzzy inference system (ANFIS) was presented for classification of the ECG signals. In [8] used wavelet transform for ECG feature extraction, There are two classifiers that used Analytical classifier and ANFIS

(2)

72 classifier. In [9] used Lyapunov exponents for ECG feature extraction, adaptive neuro-fuzzy inference system (ANFIS) was presented for classification of the ECG signals. In [10] used three different techniques to extract features from ECG signal which are Fast Fourier Transform, Autoregressive Modeling, and Principal Component Analysis. The features were be classified by using three different classifiers which are ANN, and two types of statistical classifiers which are minimum distance classifier, Bayes minimum distance classifier.

This paper proposes a new method for the classification of the cardiac rhythms. Feature extraction using Independent Component Analysis (ICA) and Power spectrum, together with the RR interval then serve as input feature vector, this feature were used as input of ANFIS classifiers.

2. INDEPENDENT COMPONENT ANALYSIS (ICA)

Is a method for finding underlying factors or components from multivariate (multidimensional) statistical data. What distinguishes ICA from other methods is that it looks for components that are both statistically independent, and nongaussian. and has been successfully applied to numerous signal processing problems in areas as biomedicine, communications, finance, and remote sensing[11]- [12].

In ICA , the observed data are typically expressed as a linear combination of independent latent variables such that:

v = A s (1) where v = [v1, v2, . . . , vN] is the vector of observed random variables, s = [s1, s2, . . . , sN] is the vector of statistically independent variables called the independent components, and A is the unknown mixing matrix. If we denote the columns of matrix A by aj the model can be written as:

n

X =∑ a

i

s

i (2)

i=1

In this model the only vector known is x and both A and s are estimated.

2.1 The Algorithm of ICA

There are several ICA algorithms in use. Such as Fast-ICA algorithm, it developed by [13] , also called a fast-fixed point algorithm.

2.2 Fast Fixed-Point Algorithm

The Fast-ICA algorithm[14] is a computationally highly efficient method for performing the estimation of ICA. It uses a fixed-point iteration scheme that has been found in independent experiments to be 10-100 times faster than conventional methods for ICA.

Another advantage of the Fast-ICA algorithm is that it can be used to perform projection pursuit as well, thus providing a general-purpose data analysis method that can be used both in an exploratory fashion and for estimation of independent components (or sources).

3. ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM

ANFIS is one of hybrid neuro-fuzzy inference expert systems and it works in Takagi-Sugeno-type fuzzy inference system, which was developed by Jang[15]. ANFIS has a similar structure to a multilayer feed forward neural network but the links in an ANFIS only indicate the flow direction of signals between nodes and no weights are associated with the links.

3.1 ANFIS Structure

ANFIS architecture consists of five layers of nodes.

Out of the five layers, the first and the fourth layers consist of adaptive nodes while the second, third and fifth layers consist of fixed nodes. The adaptive nodes are associated with their respective parameters, get duly updated with each subsequent iterations while the fixed nodes are devoid of any parameters[16]-[17]-[18].

Rule 1: If (x is A1) and (y is B1) then (f1 = p1x + q1y + r1)

Rule 2: If (x is A2) and (y is B2) then (f2 = p2x + q2y + r2)

where x and y are the inputs, Ai and Bi are the fuzzy sets, fi are the outputs within the fuzzy region specified by the fuzzy rule, pi, qi and ri are the design parameters that are determined during the training process. The ANFIS architecture to implement these two rules is shown in Fig. 2, in which a circle indicates a fixed node, whereas a square indicates an

(3)

73 adaptive node.

Figure 2. ANFIS architecture

Layer 1: fuzzification layer Every node I in the layer 1 is an adaptive node. The outputs of layer 1 are the fuzzy membership grade of the inputs, which are given by:

O

i1

= µ

Ai

(x) ,

For i=1,2 (3)

O

i1

= µ

Bi-2

(y) ,

For i=3,4 (4) where x and y is the inputs to node i, where A is a linguistic label (small, large) and where µAi (x), µBi- 2 (y) can adopt any fuzzy membership function.

Usually we choose µAi (x) to be bell-shaped with maximum equal to 1 and minimum equal to 0, such as:

µ

Ai

(x)

= 1 / 1

+ {(x-c

i

/a

i

)²}

b

(5) where (ai, bi and ci) are the parameters of the membership function. Parameters are referred to as premise parameters.

Layer 2: rule layer a fixed node labeled M whose output is the

product of all the incoming signals, The outputs of this layer can be represented as:

O

i2

= w

i =

µ

Ai

(x) µ

Bi

(y)

i

=1,2 (6) Layer 3: normalization layer are also fixed node is a circle node labeled N.

O

i3

= w

i =

w

i/ (

w

1 +

w

2)

i

=1,2 (7) Layer 4: defuzzification layer an adaptive node with a node The output of each node in this layer is simply the product of the normalized firing strength and a first order polynomial.

O

i4

= w

i

f

i =

w

i (

p

i

x + q

i

y

+

r

i)

i

=1,2 (8) Layer5: summation neuron a fixed node which computes the overall output as the summation of all incoming signals.

2 2

O

i5

= ∑ w

i

f

i =

i=1

w

i

f

i / (

w

1 +

w

2) (9) 3.2 Hybrid Learning of an ANFIS

ANFIS using a strategy of hybrid training algorithm to tune all parameters. It takes a given input/output data set and constructs a fuzzy inference system whose membership function parameters are tuned, or adjusted, using either a backpropagation algorithm in combination with a least squares type of method.

4. DATA DESCRIPTION

The ECG signals are obtained from the MIT-BIH arrhythmia database for recognition. all samples at a sampling frequency of 360 Hz.

5. PROPOSED METHODS

The block diagram of the proposed method for ECG beat classification is depicted in Fig. 3. The method is divided into three steps: (1) preprocessing (2) calculation of feature vector and (3) classification by ANFIS.

Figure 3. Block diagram of the proposed scheme for ECG beat classification.

5.1 Pre-processing

Each sample is pre processed by normalization process which necessary to standardize all the features to the same level[19]. After that the signal

Baseline Adjustment

Classification by ANFIS Normalization

ICA-based Features R-wave Detection

Removing Noise

Feature Vector

Power spectrum Original ECG Signal

Pre-Processing

(4)

74 baseline may be shifted from zero line due to unexpected conditions such as patient movements, so that the baseline of the ECG signal was adjusted at zero line by subtracting the median of the ECG signal[20]. ECG signals can be contaminated with several types of noise, so we want to filtering the signal. the unwanted noise of the signal must be removing. ECG were filtered using Low pass filter ,High pass filter and Notch filter[21].

5.2 Calculation of feature vector

There are several algorithms for performing ICA. In this paper, a fast fixed-point algorithm was used to estimate the independent components is show in Fig.

4. [13]-[14]. The ICA features are then built into the Power Spectral to extract important feature, together with the RR interval then serve as input feature vector. There are five power spectrum features were extracted from the ECG signal at (4, 8, 12, 16 and 20 Hz) is show in Fig. 5. the term power spectrum means the amount of power per unit (density) of frequency (spectral) as a function of the frequency [22].

Figure 4. independent components

Figure 5. power spectrum features were extracted from the ECG signal.

The RR interval between successive QRS peaks is considered as another important feature for recognizing many ECG arrhythmias. The RR interval

is calculated as the time difference between the R points of the present and previous beat. There are several algorithms to Detect R-wave, we used Pan- Tompkins algorithm [23] .

5.3 Classification using ANFIS

An ANFIS based classifier is presented as a diagnostic tool to aid physicians in the classification of heart diseases. ANFIS using a strategy of hybrid approach of adaptive neuro-fuzzy inference system, we compose these two intelligent approaches, it will be achieve good reasoning in quality and quantity. In other words we have fuzzy reasoning and network calculation. The objective of classification is to classifier six types of ECG signals, the feature vectors were applied as the input to an ANFIS classifier. the ANFIS network has a total of 128 fuzzy rules and one output, The classification by ANFIS was performed using MATLAB.

6. RESULTS AND DISCUSSION

We get our bet classifier on the MIT-BIH arrhythmia database. A total of 420 datasets for six classes, out of which 280 datasets were used for training, and 140 datasets used for testing. And we do not intend to detect the R-waves but use the information of R-waves provided in the MIT-BIH database which were manually verified by specialists.

The six types of ECG signals they are normal sinus rhythm(NSR), premature ventricular contraction (PVC), atrial premature contraction (APC), Ventricular Tachycardia (VT), Ventricular Fibrillation (VF) and Supraventricular Tachycardia (SVT).

Training results of the ANFIS is show in Table1

Table1 show Training results of the ANFIS

Testingresults of the ANFIS is show in Table2

Classes Training Set NSR PVC APC VF VT SV

NSR 50 50 0 0 0 0 0

PVC 50 0 50 0 0 0 0

APC 50 0 0 50 0 0 0

VF 50 0 0 0 50 0 0

VT 50 0 0 0 0 50 0

SV 30 0 0 0 0 0 30

(5)

75 Two Ventricular Fibrillation was classified incorrectly as Ventricular Tachycardia. One Ventricular Tachycardia was classified incorrectly as Ventricular Fibrillation, and one Supraventricular Tachycardia was classified incorrectly as Ventricular Tachycardia.

Table2 show Testing results of the ANFIS

After training association rules in the form of IF then rules are generated and extracted. an example of initial and final (after rule extraction) decision surfaces are given in Fig. 6.

Figure 6.Final decision surface for input 1 and input 2 Table3 summarizes the comparative results of these methods, in which the first row of the table is the result of the method ICA, Power Spectral and ANFIS proposed in this paper. Among the seven methods, the proposed method outperforms the other methods with an impressive accuracy of 97.1 % to discriminate six ECG beat types. Although this comparison may not be completely fair because of the different numbers and types of ECG beats tested, the propose scheme reveals to be a powerful tool in the computer-aided diagnosis of heart diseases based on ECG.

Table3 Comparative results of different methods a Calculated from the results in the paper.

7. CONCLUSION

We propose a method that uses combine independent component analysis (ICA), Power spectrum to extract important feature, together with the RR interval and ANFIS classifiers for ECG beat classification. six types of ECG samples were selected from the MIT-BIH arrhythmia database for experiments. ANFIS classifier demonstrated high classification accuracies of over 97%.

8. ACKNOWLEDGEMENTS

I would like to thank for the research the Faculty of Computer & Information sciences , Department of Computer Science ,Ain Shams University, who give financial support gratefully acknowledged.

REFERENCES

[1] V.S. Chouhan and S.S. Mehta., “Detection of QRS Complexes in 12-lead ECG using Adaptive Quantized Threshold,” International Journal of Computer Science and Network Security, January 2008.

[2] C. Wena, K. Chiung ,T. Chiao and C. Hung,

“Classification of ECG complexes using self- organizing CMAC,” published by Elsevier Science Ltd, Taiwan , 2008.

[3] C. CHIEN, T. HONG AND B. YI LIAU,

“USING CORRELATION COEFFICIENT IN ECG WAVEFORM FORARRHYTHMIA

DETECTION,” BIOMEDICAL ENGINEERING-APPLICATIONS, BASIS &

COMMUNICATIONS, Feng Chia University, Taiwan, 2005.

[4] M. I. Owis, A. B. M. Youssef and Y. M. Kadah.

“Characterisation of electrocardiogram signals based on blind source separation” ,Medical &

Classes Testing

Set NSR PVC APC VF VT SV

NSR 25 25 0 0 0 0 0

PVC 25 0 25 0 0 0 0

APC 25 0 0 25 0 0 0

VF 25 0 0 0 23 2 0

VT 25 0 0 0 1 24 0

SV 15 0 0 0 0 1 14

Reference Method Number of beat types Accuracy (%) Proposed

method ANFIS-ICA 6 97.1 %

[9] ANFIS 4 96.39%

[6] FNN 6 96%

[7] ANFIS 8 94%

[8] ANFIS-DWT 8 94%

[5] Fuzzy-DWT 8 93.13%

[10] FFT-PCA-AR 3 92.7

[4] BSS-Fourier 5 85.04%a

(6)

76 Biological Engineering & Computing, Cairo, Egypt 2002.

[5] B.Anuradha,V.Reddy,“CARDIAC

ARHYTHMIA CLASSIFICATION USING FUZZY CLASSIFIERS”, Journal of Theoretical and Applied Information Technology, 2008.

[6] Stanislaw Osowski and Tran Hoai Linh,“ ECG Beat Recognition Using Fuzzy Hybrid Neural Network”, IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, 2001.

[7] N. Kannathal, C.M. Lima, U. Rajendra Acharya and P.K. Sadasivan,“Cardiac state diagnosis using adaptive neuro-fuzzy technique”, Medical Engineering & Physics, Singapore, 2006.

[8] B. Anuradha, K. Suresh Kumar and V. C. Veera Reddy, “CLASSIFICATION OF CARDIAC SIGNALS USING TIME DOMAIN METHODS”, ARPN Journal of Engineering and Applied Sciences, Tirupati, India, 2008.

[9] Elif Derya Ubeyli, “Adaptive neuro-fuzzy inference system for classification of ECG signals using Lyapunov exponents”, computer methods and programs in biomedicine, Ankara, Turkey, 2008.

[10] M. Mansor ,“Electrocardiogram (ECG) Classification Using Artificial Neural Networks,” Master thesis, Department of Biomedical Engineering, Faculty of Engineering, Helwan Universty, Cairo, Egypt, 2007.

[11] A. Hyvarinen, J. Karhunen and E. Oja ,

“Independent Component Analysis,” Wiley, 2001.

[12] E. Bingham and A. Hyvarinen , “A fast fixed- point algorithm for independent component analysis of complex valued signals,”

International Journal of Neural Systems, Vol. 10, No. 1, 2000.

[13] Hyvarinen, A., Karhunen, J., and Oja, E.,

“Independent component analysis” , John Wiley

& Sons, 2001.

[14] Aapo Hyvärinen, “Fast and robust fixed-point algorithms for independent component analysis”

, IEEE Trans. on Neural Networks, 10(3):626- 634, 1999.

[15] Jyh-Shing and Roger Jang., “ANFIS: Adaptive- Network-Based Fuzzy Inference System,”

computer methods and programs in biomedicine, IEEE Transactions on Systems, University of California,1993.

[16] Abdulkadir Sengur., “An expert system based on linear discriminant analysis and adaptive neuro- fuzzy inference system to diagnosis heart valve diseases,” Expert Systems with Applications, 2008.

[17] G. Zhao, C. Peng and Xiting Wang., “Intelligent Control for AMT Based on Driver’s Intention and ANFIS Decision-Making,” World Congress on Intelligent Control and Automation, 2008.

[18] Anupam Das, J. Maiti and R.N. Banerjee.,

“Process control strategies for a steel making furnace using ANN with bayesian regularization and ANFIS,” Expert Systems with Applications, 2009.

[19] Surehka Palreddy,“ECG BEATS DATABASE DESCRIPTION”, Ph. D. University of Wisconsin, 1996.

[20] Yoon, S. W., Shin, H. S., Min, S. D., and Lee, M., “Adaptive motion artifacts reduction algorithm for ECG signal in textile wearable sensor”, IEICE Electronics Express, Medical Electronics and Information Lab., Yonsei University,Vol.4, No.10, 312–318 , Korea, 2007.

[21] Mahesh S. Chavan , R. A. Agarwala , M. D.

Uplane, “Interference reduction in ECG using digital FIR filters based on rectangular window”

, WSEAS TRANSACTIONS on SIGNAL PROCESSING, Shivaji University Kolhapur, INDIA, Issue 5, Volume 4, May 2008.

[22] K. ichiro Minami, "Real-Time Discrimination of Ventricular Tachyarrhythmia with Fourier- Transform Neural Network", IEEE TRANSACTION ON BIOMEDICAL ENGINEERING, vol.46, No 2, February 1999.

[23] R. M. Rangayyan “ BIOMEDICAL SIGNAL ANALYSIS: A Case-Study Approach", IEEE, Inc. Wiley, 2002.

參考文獻

相關文件

Because the Scale-Invariant Feature Transform can also find the feature points with the change of image size and rotation, in this research, we propose a new method to

In later experiments that incorporate pitch into the feature vector, there was no error increase when the pitch track from our two pass system was used instead of the pitch

Typically, face recognition system contains three steps: face detection which extracts faces in an image, feature extraction which applies feature extraction schemes such

To write the power series with   rather than  +2 , we will decrease each occurrence of  in the term by 2 and increase the initial value of the summation variable by 2..

As a collected poetry of Chan masters, Chanzong Zaduhai has a distinguishing feature on its classification categories based on topics of poems which is very different from other

SIFT 是一個 transformation,它會把一個 image 換成一些 feature description。SIFT 分成四個步驟來做,第一個步驟是 detect scale-space 的 extrema。SIFT 最大的一個目的就是要改進 Harris

除此之外,我們可以發現en index並不是一個對稱的index。也就是說,2對於s的en index,和s對於2的en index是完全不一樣的值。通常來講,我們一定是希望兩邊都有

 Apply real monitor data as trainin g input for our weight parameters and Container Management Component.  Integrate our solution to CHT sub- system to