• Tidak ada hasil yang ditemukan

Dianosing Heart Diseases Using ANN and GA - UUM Electronic Theses and Dissertation [eTheses]

N/A
N/A
Protected

Academic year: 2024

Membagikan "Dianosing Heart Diseases Using ANN and GA - UUM Electronic Theses and Dissertation [eTheses]"

Copied!
18
0
0

Teks penuh

(1)

DIAGNOSING HEART DISEASES USING ANN AND GA

GHASSAN NASHAT MOHAMMED

UNIVERSITI UTARA MALAYSIA

2009

(2)

DIAGNOSING HEART DISEASES USING ANN AND GA

A Thesis submitted to the Graduate School in partial fulfilment of the requirements for the degree

Master of Science (Information Technology) Universiti Utara Malaysia

By

Ghassan Nashat Mohammed

Copyright © Ghassan Nashat, 2009. All rights reserved.

(3)

PERMISSION TO USE

In presenting this thesis in partial fulfilment of the requirements for a postgraduate degree from University Utara Malaysia, I agree that the University Library may make it freely available for inspection. I further agree that permission for copying of this thesis in any manner, in whole or in part, for scholarly purposes may be granted by my supervisor in his absence, by the Dean of the Faculty of Information Technology. It is understood that any copying or publication or use of this thesis or parts thereof for financial gain should not be allowed without my written permission. It is also understood that due recognition shall be given to me and to University Utara Malaysia for any scholarly use which may be made of any material from my thesis.

Requests for permission to copy or to make other use of materials in this thesis, in whole or in part, should be addressed to

Dean of Faculty of Information Technology Universiti Utara Malaysia

06010 UUM Sintok

Kedah Darul Aman

(4)

ABSTRACT

The heart is complex systems that reveals many clues about its condition in electrocardiogram (ECG), and is one of the most important organs in a human body .The walls of the heart contain myocardial tissues which contract to push the blood through the body. This contract occurs because of passing electrical current in the heart muscle the electrical current can be captured and analyzed to diagnose the heart state. This operation is done by using electrocardiograph (ECG) device; this device captures the electrical signal, filters it from noise signals, and amplifies it. Then it displays the signal on the screen or prints it on the trace paper then the doctor interprets the ECG signal to diagnose the disease.

This project discusses using artificial intelligent (AI) to process and analyze the ECG signal to diagnose the heart disease directly and display detailed report about the heart state by using the artificial neural network (ANN) after training it and finding the values of the connection weights using the genetic algorithm (GA) to choose the best values to the weights.

The GA is qualified in enhancing the weights of the ANN since the ANN is trained using the classical algorithm (back-propagation), the genetic algorithm is used as a co-training algorithm for enhancing the connection weights values and minimizing the error value.

(5)

ACKNOWLEDGEMENTS

I would like to offer my sincere thanks to my supervisor Dr.Azman Bin Yasin, for his excellent guidance and moral support, his time and for his patience and commitment in helping me complete this research.

I would also like to offer my deepest gratitude to my parents, my wife Mrs.Suha Saheb for their constant encouragement and moral support, which enabled me to successfully accomplish my tasks.

I am deeply indebted to my dear friends and colleagues for taking so much of interest in my work, always being there for me through my difficult situations and spending their time in guiding me despite their busy schedule.

Last but not least, thanks to all those who have been directly and indirectly involved in helping me completing this research.

(6)

TABLE OF CONTENTS

I ii iv v vi 1 1 2 4 5 5 6 6 6 6 7 7 8 8 8 8 8 9 10 11 13 14 14 15 16 16 17 17 18 18 19 19 20 24 25 25 26 27 27 27 28 29 29 ABSTRACT……….

ACKNOWLEDGEMENTS……….

LIST OF TABLES ...

LIST OF FIGURES……….

LIST OF ABBREVIATIONS……….

CHAPTER 1 ………...

INTRODUCTION ………..

1.1Definition ………

1. 2 Neural Network ……….

1.3 Genetic Algorithm ………...

1.4 Background Study ………..

1.5 Problem Statement ………. … 1.6 Research Question ……….. ..

1.6 Research Objective ………....

1.7 Significant Of Study ………..

1.8 Scope ……….

1.9 Thesis Overview ……….

CHAPTER 2………

LITERATURE REVIEW ………...

2.1 Introduction………

2.2 Neural Network………

2.2.1 Classical Algorithm For Training Neural Network………...

2.2.2 Back Propagation ………..

2.2.3 Application Of Neural Network In ECG Analysis………

2.3 Genetic Algorithm………..

2.3.1 Genetic Operator………..

2.3.1.1 Initialization…… ………

2.3.1.2 Fitness Function……… … 2.3.1.3 Selection Methods………..

2.3.1.4 Reproduction………..

2.3.1.5 Crossover………

2.3.1.6 Mutation……….

2.3.2 GA And ANN Back Propagation………..

2.3.3 Outline Of The Algorithm……….

2.4 Electrocardiogram (ECG)………

2.4.1 Signal Description……….

2.5 Classification………

2.5.1 Neural Network Studies……….

2.5.2 Fuzzy Logic Studies………..

2.5.3 Cardiac Electrical Signal Studies………..

2.5.4 Non Linear Technique Studies………

2.5.5 Wavelet Algorithm Studies………

CHAPTER 3………..

RESEARCH METHODOLOGY………

3.1 Introduction ………

3.2 Planning ………..

3.3 Requirement ………

3.3.1 Matlab ………

(7)

30 30 30 32 32 33 33 34 34 39 40 41 41 42 43 43 43 44 46 48 51 60 60 60 60 60 61 61 62 68 3.3.2 Computer, Windows XP. ………..

3.4 Design ……….

3.4.1 The structure Of ANN And Training It Using GA……….

3.4.2 Build GA Model ……….

3.4.3 Pseudo Code For GA ………

3.5 Creation: ……….

3.5.1 Create Initial Population ……….

3.5.2 Parameter Setting……….

3.5.3 Fitness Computation ………

3.5.3 Selection ………...

3.5.4 Crossover Operation: ………...

3.5.5 Mutation Operation………..

3.6 Testing ………..

3.7 Summary……….

CHAPTER 4………..

FINDINGS AND RESULT……….

4.1 Introduction ………...

4.2 Training Results Of R Peaks Detector Neural Network ………

4.3 Training Result Of P Wave Detector ANN ………

4.4 Enhancing R Peak, P Wave Detectors ANN Weights by Using Genetic Algorithm. ………..

4.5 Main Program ………

CHAPTER 5……….

CONCLUSIONS AND RECOMMENDATIONS………

5.1 Introduction ………..

5.2 Experimentation Results ……….. ……

5.3 Future Work ………..

5.4 Conclusion ………..

5.5 Summary ………...

REFERENCES………

Appendix Example Of Input Pattern………

(8)

LIST OF TABLES

Table 3.1: GA parameter………...……… 34 Table 3.2: Example. ………...42

(9)

LIST OF FIGURES

LIST OF ABBR EVIAT

IONS

GA

Genetic Algorith m

ANN Artificial

Neural Network

ECG Electroc

ardiogra m

BP Back-

Propagat ion

SDLC System

Develop ment Life Cycle

Figure 1.1 Figure 2.1

Figure 3.1 Figure 3.2 Figure 3.3 Figure 3.4 Figure 3.5 Figure 3.6 Figure 4.1 Figure 4.2 Figure 4.3 Figure 4.4 Figure 4.5 Figure 4.6 Figure 4.7 Figure 4.8 Figure 4.9 Figure 4.10 Figure 4.11 Figure 4.12 Figure 4.13 Figure 4.14 Figure 4.15 Figure 4.16

Basic ECG shape of the normal

Back propagation in a c Back propagation in a connectionist network having a hidden layer System Development Life Cycle Methodology The ECG signal [11].

ANN architecture of the detectors The chromosome format

Crossover operation Mutation operation

Training graph of R peak detector neural network Simulation results of R peak detector

Training graph of P wave detector neural network Response of P wave detector

Results of optimizing R peak detector weights Testing R peak detector ANN Training Using GA Result of optimizing P wave detector weights Testing P wave detector ANN Training Using GA Calling main program

Rhythm interpretation program R peak detector subroutine

Example 1 represents sinus bradicardia

Example 2 represents normal case of ECG signal Example 3 represents a trial tachycardia

Example 4 represents sinus tachycardia Example 5 represents sinus arrhythmia

3 10

27 28 31 32 40 41 45 46 47 48 49 50 50 51 52 53 54 55 56 57 58 59

(10)
(11)

CHAPTER 1 INTRODUCTION

The human heart is a complex system that reveals many clues about its condition in electrocardiogram (ECG) signal, an example of ECG is provided in Figure 1.1.

Trained physicians are able to recognize patterns in a patient's ECG signal and use them as the basis for diagnosis [1], for instance to diagnose heart ailments such as arrhythmia [2], ischemia [3, 4],or prediction of an impending heart attack [5].

Researchers have tried since the inception of computers to develop techniques and algorithms for automated processing of ECG signals for various medical applications [6, 7], whether as standalone applications or as a decision aid to physicians.

Early detection of ischemia is crucial because, in most cases, the effects of myocardial ischemia are completely reversible if detected early enough [8, 9, and 10].

However, patterns of an ECG signal are difficult to discern due to the multitude of characteristics that are embedded in the signal. As a result, researchers have focused on developing specific techniques to extract information from ECG’s for specific applications.

(12)

The contents of the thesis is for

internal user

only

(13)

REFERENCES

[1] Michael W. Zimmerman, 'Classification of ECG ST Events as ischemic or non- ischemic using reconstructed phase spaces' MSc thesis. Marquette University, Milwaukee, Wisconsin, May 2004.

[2] Abdullah S., 'ECG pattern recognition' MSc. Sharif University of Technology, Tehran, Iran 2003.

[3] Yukinori Suzuki, “Self- Organizing QRS-Wave Recognition in ECG Using Neural Networks” IEEE Transaction on Neural Networks, Vol.6, No.6, November 1995 .

[4] Cuiwei Li, Chongxun Zheng and Changfeng Tai, “Detection of ECG Characteristic Points Using Wavelet Transforms”, IEEE Transaction on Biomedical Engineering, Vol. 42, No. 1, January 1998.

[5] Yu Hen Hu, Surekha Palreddy and Willis J. Tompkins, “A Patient - Adaptable ECG Beat Classifier Using a mixture of Expert Approach”, IEEE Transaction on Biomedical Engineering, Vol. 44, No. 9, September 1997.

[6] Stanislaw Osowski and Tran Hoai Linh, ‘ECG Beat Recognition Using Fuzzy Hybrid Neural Network’, IEEE Transaction on Biomedical Engineering, Vol. 48, No. 11, November 2001.

[7] Alaa J.S., 'Design and implementation of PC-based ECG processing and analysis system', MSc. thesis Computer Department, College of Electronics and Electrical techniques, Baghdad, Iraq, 2006 .

[8] Ischemia: The Thomson Corporation, 2002.

(14)

[9] Warnick. WC, John J Ross J, Karalis DG. Echocardiography: Stress echocardiography in clinical practice. Vol.2003. Philadelphia, PA: MCP Hahnemann University, 1996.

[10] Computers in cardiology challenges. Vol.2003. Cambridge, MA, 2003.

[11] Rajendra Acharya U, Jasjit S., Jos A.E. Spaan and Shankar M. Krishnan, 'Advances in Cardiac Signal Processing', Springer-Verlag, Berlin Heidelberg, 2007.

[12] Coronary Heart Disease (Arteriosclerotic Coronary Artery Disease; Ischemic Heart Disease), 37 Ed: Stamford: Appleton & Lange, 1997.

[13] D. A. Kohli, "CT Coronary Angiograms," Und J Raiol Imag, vol. 13, pp. 11, 2003.

[14] V. Fuster, Hurst's the heart, 10th Ed. New York: McGraw-Hill Health Professions Division, 2001.

[15] M. D. Thippeswamy H. Murthy, "Echocardiogram," in Medical Encyclopedia.

Washington D.C.: National Institutes of Health, 2002.

[16] A. Støylen and K. Bjørnstad, "Stress echocardiography " .

[17] A. S. Bensky, W. Covitz, and R. H. DuRant, "Primary care physicians' use of Screening echocardiography," Pediatrics, vol. 103, pp. e40, 1999 .

[18] Zaid S. Ali 'Neural networks for ECG analysis', MSc. thesis, Electrical Engineering Department, University of Baghdad.1996 .

[19] F. Jager, A. Taddei, G. Moody, M. Emdin, G. Antolic, R. Dorn, A. Smrdel, C.

Marchesi, and R. Mark, "Long-term ST database: a reference for the developmentband evaluation of automated ischaemia detectors and for the study of thebdynamics of myocardial ischaemia," Medical and Biological Engineering and Computing, vol. 41, pp. 172-182, 2003.

[20] http:// www.generation5.org/essys.shtml,"generation%" web master.

(15)

[21] Emad E. 'learning Hopfield using genetic algorithm', MSc. Thesis University of Technology, 2000.

[22] Suha S. Eliawi, 'Optimization of artificial neural network by using genetic algorithm', MSc. thesis, Computer Science Department, University of Technology, 2002.

[23] HOLLAND, J.H., “Adaptation in natural and artificial systems: na introductory analysis with applications to biology, control and artificial intelligence.” Cambridge:

Cambridge press 1992 reedição 1975.

[24] GOLDBERG, D.E. “Genetic Algorithms in Search, Optimization, and Machine Learning.” Reading, Mass.: Addison-Whesley, 1989.

[25] KOZA, J.R. “Genetic programming: On the programming of computers by means of natural selection.” Cambridge, Mass.: MIT Press, 1992.

[26] Patrick V. der 'Introduction to neural network' University of Amsterdam. 1996.

[27] Alan E. 'ECG learning center' University of Utah, Salt Lake City, Utah 2006 . [28] V.S. Chouhan and S.S. Mehta’ Detection of QRS Complexes in 12-lead ECG Using Adaptive Quantized Threshold VOL.8 No.1, 2008.

[29] Ilknur Can, Kudret Aytemir, Ahmet Uğur Demir, Ali Deniz, Orcun Ciftci, Lale Tokgozoglu, Ali Oto, Altay Sahin ‘P-wave duration and dispersion in patients with obstructive sleep apnea , Volume 133, Pages e85-e89 2009.

[30] Rahime Ceylan, Yüksel Özbay, Bekir Karlik, ‘Expert Systems with Applications

, Volume 36, Pages 6721-6726 2009 .

[31] Ahmad R. Naghsh-Nilchi and A. Rahim Kadkhodamohammadi,” Cardiac Arrhythmias ClassificationMethod Based on MUSIC, Morphological Descriptors, and Neural Network”.

(16)

[32] Elif Derya Übeyli, ‘Expert Systems with Applications’, Volume 36, Pages 8758-8767 2009.

[33] Jone R. Hampton, 'THE ECG MADE EASY', Elsevier Ltd, Sixth edition, 2003.

[34] Frank G. Yanowitz, "ECG learning center", Spencers.ECCLES Health Sciences Library, February, 2005 http://medstat.med.utah.edu/kw/ecg.

[35] World invisible, "The human heart", World invisible webmaster, November 13, 2005 www.worldinvisible.com .

[36] Howard D., Mark B., 'Neural network Toolbox 2 User's Guide for matlab', Math works 2006.

[37] Genetic Algorithm and Direct Search Toolbox 2 User’s Guide for mat lab Math works (2006).

[38] Horner, K. ‘Methodology as a Productivity Tool, in Software Productivity’, Handbook, J. Keyes (ed), New York, NY: Wind crest/McGraw-Hill, pp.97-117, 1993.

[39]Yourdon, E.’ A Natural Productivity in Object-Orientation, in Software Productivity Handbook, J. Keyes (ed), New York, NY: Wind crest/McGraw-Hill, pp.97-117, 1993.

[40] RUMELHART, D. E., AND MCCLELLAND, J. L. Parallel Distributed Processing—Exploration in the Microstructures of Cognition, Volume I Foundations.

MIT Press, Cambridge, MA, 1986.

[41] ZURADA, J. M. Introduction to Artificial Neural Networks. West Publishing, St. Paul, 1992.

(17)

[42] Govindan A, Deng G. and Power J.’ Electrogram analysis during atrial fibrillation using wavelet and neural network techniques ‘, Proc. SPIE 3169. pp. 557- 62 , 1997 .

[43] Amara Graps, “An Introduction to Wavelet”, IEEE Comp.Sc. And Eng., vol.2, no. 2, 1995 .

[44] Senhadi L, Carrault G, Bellanger J.J, and Passariello G, “Comparing Wavelet Transforms for Recognizing Cardiac Patterns”, IEEE Engineering in Medicine and Biology Magazine, Publication, vol. 14, no. 2, pp. 167-173. Mar/Apr 1995.

[45] Cuiwei Li, Chongxum Zheng and Changfeng Tai, “Detection of ECG characteristic points using wavelets transforms”, IEEE Transactions on Biomedical Engineering, vol. 42, no.1, pp. 21-28, 1995.

[46] Walid El-Atabany,’ Nonlinear dynamical modeling of ECG signals based on phase density matrix representation ‘, 2004.

[47] Sun Y, Chan K.L. and Krishnan S.M, Arrhythmia detection and recognition in ECG signals using nonlinear techniques. Ann, Biomed. Eng. 28, S-37, 2000.

[48] Silipo R. and Marchesi C., Artificial Neural Networks for automatic ECG Analysis. IEEE Transactions on signal processing. 46(5): 1417-1425, 1998.

[49] Sugiura, T. Hirata, H. Harada, Y. and Kazui, T., “Automatic discrimination of arrhythmia waveforms using fuzzy logic”, Proceedings of the 20th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, vol. 20, no. 1, 1998.

[50] Acharya U R, Subbanna Bhat P, Iyengar S S, Rao A and Dua S, “Classification of heart rate using artificial neural network and fuzzy equivalence relation”, Pattern Recognit., vol. 36, pp. 61–68, 2003.

(18)

[51] Kannathal N, Puthusserypady S.K, Lim Choo Min, Acharya, U.R. and Laxminarayan, S. “Cardiac State Diagnosis using Adaptive Neuro-Fuzzy Technique”, Proceedings of the IEEE Engineering in Medicine and Biology 27th Annual Conference Shanghai, China, September 1-4, 2005.

[52] Roulette Wheel Selection & William Astubblefield,"Artificial Intelligent Structure and Stratigies for complex problem “, third addition, addison wasely logman, Inc.1998.

[53] Patrick Henry Winston (1993). Artificial Intelligence. Addison Wesley [54] http://c2.com/cgi/wiki?GeneticAlgorithm

[55] Renetha Malar Sathahasivam ,”GA Based For Real Time Dispaching In Silterra”.

Referensi

Dokumen terkait

1.1Background of Study Data mining DM can be defined as the processes of extracting interesting information such as non-trivial, implicit, potentially valuable or previously unknown

PERSONAL HOME SURVEILLANCE SYSTEM A thesis submitted to college Arts & Sciences in partial fulfilment of the requirement for the degree Master of Science Information Technology

Study Room Online Reservation in UUM library A thesis submitted to the College of Arts and Sciences in Partial in Fulfillment of the requirement for the degree Master of Science

This present study is investigated if accounting graduates from University Utara Malaysia College of Business, a public institution, perceived that their accounting curriculum enhanced

USABILITY TESTING ON LEARNINGCARE A thesis submitted to the Faculty of Information Technology in partial fblfillment of the requirements .for the degree Master of Science

Tujuain kajian ini adalah untuk mengkategori kan dokumen yang berbentuk teks dengan menggunakan algoritma naive I3ayes dan untuk mengukur sejauh mana teknik yang dipilih ini dapat

Saiz cakera keras umpamanya menjadi semakin besar dan ruang cakera tidak digunakan dengan optimum kecuali diisi dengan data yang besar seperti permaian komputer.. Multiboot membenarkan

An automated questionnaire has been proved to produce the same result because a research with a title “Can patients use an automated questionnaire to define their current health status