Skip to main content
Journal of Medical Signals and Sensors logoLink to Journal of Medical Signals and Sensors
. 2012 Jul-Sep;2(3):153–159.

Diagnosis of Coronary Arteries Stenosis Using Data Mining

Roohallah Alizadehsani 1, Jafar Habibi 1, Behdad Bahadorian 1, Hoda Mashayekhi 1, Asma Ghandeharioun 1, Reihane Boghrati 1, Zahra Alizadeh Sani 1,
PMCID: PMC3660711  PMID: 23717807

Abstract

Cardiovascular diseases are one of the most common diseases that cause a large number of deaths each year. Coronary Artery Disease (CAD) is the most common type of these diseases worldwide and is the main reason of heart attacks. Thus early diagnosis of CAD is very essential and is an important field of medical studies. Many methods are used to diagnose CAD so far. These methods reduce cost and deaths. But a few studies examined stenosis of each vessel separately. Determination of stenosed coronary artery when significant ECG abnormality exists is not a difficult task. Moreover, ECG abnormality is not common among CAD patients. The aim of this study is to find a way for specifying the lesioned vessel when there is not enough ECG changes and only based on risk factors, physical examination and Para clinic data. Therefore, a new data set was used which has no missing value and includes new and effective features like Function Class, Dyspnoea, Q Wave, ST Elevation, ST Depression and Tinversion. These data was collected from 303 random visitor of Tehran's Shaheed Rajaei Cardiovascular, Medical and Research Centre, in 2011 fall and 2012 winter. They processed with C4.5, Naïve Bayes, and k-nearest neighbour (KNN) algorithms and their accuracy were measured by tenfold cross validation. In the best method the accuracy of diagnosis of stenosis of each vessel reached to 74.20 ± 5.51% for Left Anterior Descending (LAD), 63.76 ± 9.73% for Left Circumflex and 68.33 ± 6.90% for Right Coronary Artery. The effective features of stenosis of each vessel were found too.

Keywords: C4.5 Algorithm, coronary artery disease, data mining, feature, KNN algorithm, Naïve Bayes algorithm

INTRODUCTION

Large data sets are idle in database of companies, universities, etc. Using the hidden information in these databases is based on efficient management. Data mining is looking for hidden relationships in databases. This process is more than just a simple retrieving data and lets researchers to find new information from data. One of the most important algorithms of data mining is classification which is used when the tag of samples is obvious.

Cardiovascular diseases are one of the most common diseases which cause a large number of deaths each year. The most common type of these diseases is Coronary Arteries Disease (CAD).[1] This disease makes Coronary arteries hard and tight. Due to its danger and causing of about 1/3 deaths in the world,[2] early diagnosis of CAD is very vital.

The best way to diagnose heart vessels stenosis is angiography. Because of its complications, researchers are looking for alternative methods. A lot of studies have been done so far. They have tried to diagnose CAD by using data mining methods and collecting features based on noninvasive methods.

In the studies that have been done so far, stenosis of the LAD, Left Circumflex (LCX) and Right Coronary Artery (RCA) vessels have been rarely examined separately. The majority of papers consider just being CAD or normal. The ones whom LAD, LCX or RCA vessel is clogged are considered as CAD patients, others as healthy. As is said, most of the papers have not examined and analyzed stenosis of vessels separately and the effective features on them.

Babaoglu et al.[3] used exercise test data and neural network algorithm to diagnose stenosis of each vessel separately and reached 73%, 64.85% and 69.39% accuracy for LAD, LCX and RCA vessels respectively.

Srinivas et al.[4] examined stenosis of each vessel separately and find some rules for them.

Sony et al.[5] used genetic algorithm and decision tree and find some rules for stenosis of each vessel.

Ordonez et al.[6] put some constraints on association rule and find some rules for stenosis of each vessel.

Some papers have worked on diagnosing CAD and achieved 52.33%, about 90%, 70% and 75% accuracy respectively.[710] But they have not considered stenosis of each vessel separately.

In this study, the effect of some new features which don’t consider in previous studies is investigated on stenosis of LAD, LCX and RCA vessels. For this purpose, C4.5,[11] Naïve Bayes,[12] and k-nearest neighbour (KNN) algorithms were used.

In next sections data set, Algorithms used in this study are described, and results are given. In last section the study is concluded and is mentioned about some future work.

Used Medical Data Set

The data set which is used in this study is collected from visitors with chest pain to the Shaheed Rajaei hospital. They were suspicious of having CAD and were volunteers for angiography.

ECG abnormality is not common among CAD patients. Also it is easy to diagnose stenosed coronary artery when significant ECG abnormality exists. The aim of this study is to find a way for specifying the lesioned vessel when there is not enough ECG changes and only based on Demographic, Symptom, Examination information and ECG Features. The class feature is Cath which is determined by angiography. The class value is Cad when diameter narrowing is greater or equal to 50 and Normal otherwise. The features along with their valid ranges in data set are given in Tables 13.

Table 1.

Demographic features

graphic file with name JMSS-2-153-g001.jpg

Table 3.

ECG features

graphic file with name JMSS-2-153-g003.jpg

Table 2.

Symptom and examination features

graphic file with name JMSS-2-153-g002.jpg

In the above features, HTN identifies history of Hypertension, DM is history of Diabetes Mellitus, Current Smoker is current consumption of cigarettes, Ex-Smoker is history of previous consumption of cigarettes and FH is history of heart disease in first-degree relatives.

MATERIALS AND METHODS

Three classification algorithms were used to analyse the data set. In all algorithms, default setting of RapidMiner was used. In the subsequent sections, the data mining algorithms used to analyze the data set is described.

C 4.5

One of the best decision tree algorithms is C4.5. This algorithm can manage continuous data. It uses pruning algorithms to increase accuracy and Gain Ratio to select features. One of the pruning algorithms which is used by C4.5 is reduce error pruning and it increases accuracy of the algorithm. One of its factors is M. it shows the minimum instances that a leaf should have. C means the confidence threshold which is considered for pruning. By changing these two factors the accuracy of algorithm is changed.

Naïve Bayes

One of the Bayesian methods is Naïve Bayes. All of these algorithms use Bayes formula:

graphic file with name JMSS-2-153-g004.jpg

The hypothesis of this algorithm is independency of features. Thus when some of features depend on each other, this algorithm may work badly.

KNN

KNN is a method for classifying instances based on closest training examples so that an instance is classified base on majority vote of its neighbours. It is a lazy learning because all computation is deferred until classification. K is one of the KNN factors which shows considered neighbours for an instance for determining its label. By changing the value of K, the accuracy is changed.

EXPERIMENTAL RESULTS

To apply the data mining algorithms, the RapidMiner tool is used.[13] RapidMiner is a tool for experimenting with machine learning and data mining algorithms. In this study the default setting of RapidMiner is used, the difference is in C4.5 algorithm where C and M was set to 0.4 and 11 respectively.

Performance Measure

For measuring the performance of algorithms, Accuracy, Sensitivity, and Specificity were used because these three criteria are used more in the medical field.

Confusion matrix

For calculation of Sensitivity, Specificity and accuracy confusion matrix is required.

In Table 4 Confusion Matrix is shown.

Table 4.

Confusion matrix

graphic file with name JMSS-2-153-g005.jpg

In confusion matrix:

  • Actual class is the class which determined by angiography and it is existed in dataset. Predicted class is the one which is predicted by algorithms

  • TP is number of samples of class C1 which has been correctly classified

  • TN is number of samples of class C2 which has been correctly classified

  • FN is number of samples of class C1 which has been falsely classified as C2

  • FP is number of samples of class C2 which has been falsely classified as C1

Sensitivity, specificity and accuracy

According to Confusion Matrix, Sensitivity, Specificity and Accuracy are calculated as follows:

graphic file with name JMSS-2-153-g006.jpg

graphic file with name JMSS-2-153-g007.jpg

ROC

It is a diagram for comparing performance of algorithms.

It is created by True Positive Rate (TPR) vs. False Positive Rate (FPR).

The more the area under ROC curve is, the higher the performance of the algorithm is. FPR and TPR are explained as follows:

graphic file with name JMSS-2-153-g008.jpg

Evaluation Results

The evaluation results are presented in the next subsections.

Output

For getting results, K is set to 3 for KNN algorithm and M and C are set to 11 and 0.4 respectively for C4.5 algorithm.

The highest accuracy in this study is related to these values of K, M, and C for KNN and C4.5 algorithms.

The performance measures for different algorithms to diagnose stenosis of LAD are represented in Table 5.

Table 5.

Performance of classification algorithms for diagnosing stenosis of left anterior descending vessel

graphic file with name JMSS-2-153-g009.jpg

As shown in Table 5, the highest accuracy is related to C4.5 which is 74.20%. Notice that the Sensitivity values are higher than Specificity values in C4.5 and KNN. These two methods are more capable of predicting the CAD samples in comparison to normal ones unlike Naïve Bayes.

As far as we know, the best accuracy for diagnosing stenosis of the vessels separately was reached by[3] which is 73% for the LAD vessel stenosis and it is lower than the accuracy of this study.

The performance measures for different algorithms to diagnose LCX vessel stenosis are represented in Table 6.

Table 6.

Performance of classification algorithms for diagnosing left circumflex vessel stenosis

graphic file with name JMSS-2-153-g010.jpg

As shown in Table 6, the C4.5, Naïve Bayes, and KNN methods achieved nearly the same accuracy values, which is above 61%. Also in this Table, C4.5 in comparison to Naïve Bayes and KNN is more capable of predicting the normal samples.

In[3] the accuracy for diagnosing LCX vessel stenosis was reached 64.85% which is nearly the same as this article.

The performance measures for different algorithms to diagnose RCA vessel stenosis are represented in Table 7.

Table 7.

Performance of classification algorithms for diagnosing right coronary artery vessel stenosis

graphic file with name JMSS-2-153-g011.jpg

As shown in Table 7 the C4.5 and Naïve Bayes methods achieved nearly the same accuracy values, which is above 68%. However, KNN algorithm has lower accuracy.

In[3] the accuracy for diagnosing stenosis of RCA vessel was reached 69.39% which is nearly the same as this article.

As shown in Tables 57 diagnosing stenosis of LAD vessel is easier than others and diagnosing stenosis of RCA vessel is easier than LCX vessel.

The information gain was used to determine the effect of features on these three vessels. A feature will get a higher weight if one of its values causes CAD and other one causes Normal. The results are shown in Tables 810.

Table 8.

Information gain of features for left anterior descending

graphic file with name JMSS-2-153-g012.jpg

Table 10.

Information gain of features for right coronary artery

graphic file with name JMSS-2-153-g014.jpg

As shown in Table 8, Typical Chest Pain, Atypical, Age, ST Elevation, Nonanginal, Tinversion, Q Wave, BP, PR, HTN, ST Depression and Diastolic Murmur have the highest influence on stenosis of LAD vessel respectively.

As shown in Table 9, Age, Typical Chest Pain, BP, HTN, Atypical, DM, Weight, length, BMI, EX-Smoker, Function class, PR, Sex, and Non anginal have the highest influence on stenosis of LCX vessel respectively.

Table 9.

Information gain of features for left circumflex

graphic file with name JMSS-2-153-g013.jpg

As shown in Table 10, Typical Chest Pain, DM, Age, Atypical, Poor R Progression, Function Class, Non anginal, HTN, length, PR, BP, Weight, Sex, Q wave, Diastolic Murmur and Dyspnea have the highest influence on stenosis of RCA vessel respectively.

For comparing performance of algorithms, ROC diagrams have been shown in Figures 13.

Figure 1.

Figure 1

ROC diagram for diagnosing LAD vessel stenosis using C4.5, Naïve Bayes, and KNN algorithms

Figure 3.

Figure 3

ROC diagram for diagnosing RCA vessel stenosis using C4.5, Naïve Bayes, and KNN algorithm

In Figures 13 the blue, red, and green lines show the KNN, C4.5, and Naïve Bayes models respectively.

As Figure 1 shows the best performance for diagnosing LAD vessel stenosis is related to C4.5 because of the wider area under its curve.

As Figure 2 shows the best performance is related to C4.5 for diagnosing LCX vessel stenosis.

Figure 2.

Figure 2

ROC diagram for diagnosing LCX vessel stenosis using C4.5, Naïve Bayes, and KNN algorithms

As Figure 3 shows the performance of three algorithms for diagnosing RCA vessel stenosis is approximately the same.

RESULTS AND DISCUSSION

In this study Naïve Bayes, C4.5, and KNN algorithms were applied on new features that some of them had not been considered in pervious papers for diagnosing stenosis of each vessel separately.

This study showed that, C4.5 method is better than Naïve Bayes and KNN on this data set and Typical Chest Pain, Age and Atypical features have a significant impact on vessels stenosis.

The accuracy for diagnosing stenosis of LAD vessel which is reached by this study is higher than the others and the accuracy for diagnosing stenosis of LCX and RCA vessels is approximately the same as[3] which had the best accuracy among the other papers.

CONCLUSION AND FUTURE WORK

In this study, three data mining algorithms were used and the highest accuracy was related to C4.5 which achieved 74.20%, 63.76%, and 68.33% accuracy for LAD, LCX, and RCA vessels respectively. As far as we know this accuracy is the best one for diagnosing LAD stenosis and was not achieved by previous studies.

The effects of 37 features were examined on stenosis of vessels. Age and Typical Chest Pain had a large effect on these vessels stenosis.

In the future, the goal is to add other features like Lab data and Echo data to find the impact of these features on stenosis of vessels and to achieve higher accuracy for diagnosing them.

BIOGRAPHIES

graphic file with name JMSS-2-153-g018.jpg

Roohallah Alizadehsani obtained a Bachelor of Science degree in computer engineering-software from Sharif University of Technology, and then received a Master in Science in computer engineering-software from Sharif University of Technology in 2012. He has been worked in Software engineering Lab under supervision of an Associate Professor, Jafar Habibi since 2011. Roohallah's research interests include mainly in the areas of data mining, machine learning, bioinformatics, and evaluation of computer systems performance. He has published three journal papers and one proceeding paper so far based on his thesis, “Diagnosis of heart disease using data mining”. His approach for these topics includes new algorithms in data mining and mathematically prove them. He is a member of the IEEE.

E-mail: alizadeh_roohallah@yahoo.com

graphic file with name JMSS-2-153-g019.jpg

Jafar Habibi received his B.S. degree in computer engineering from the Supreme School of Computer, his M. S. degree in industrial engineering from Tarbiat Modares University and his Ph.D. degree in Computer engineering from Manchester University.

At present, he is an assistant professor and the head of computer engineering department at Sharif University of Technology. He is supervisor of Sharif ’s RoboCup Simulation Group. His research interests are mainly in the areas of computer engineering, simulation systems, MIS, DSS and evaluation of computer systems performance. He has published more than 20 journal papers including Expert Systems with Applications, Applied Mathematics and Computation, and Pattern Recognition.

E-mail: jhabibi@sharif.ir

graphic file with name JMSS-2-153-g020.jpg

Behdad Bahadorian was studying medicine in Tehran University of Medical Sciences from 1997 to 2005 and graduation with MD degree in 2005. He is currently a cardiology resident in Rajaee Heart Center. He is the sole author or co-author in five books on teaching English for high-school students between 1999 and 2003 as a part-time job while studying medicine. He published one article in “Heart Asia” journal and also has another one under publication.

E-mail: 3ehdad@gmail.com

graphic file with name JMSS-2-153-g021.jpg

Hoda Mashayekhi is currently a Ph.D. candidate in department of computer engineering at Sharif University of Technology. She received her B.Sc. and M.Sc. degrees from the same university in the field of computer engineering. Her research interests include parallel and distributed computing, data mining and decision making, peer-to-peer networks and semantic structures.

E-mail: h.mashayekhi@gmail.com

graphic file with name JMSS-2-153-g022.jpg

Asma Ghandeharioun is currently a B.S. student in computer engineering at Sharif University of Technology. Her interest in algorithmic reasoning led her to take part in several computer vision, machine learning, and data mining seminars and semi-projects. On the other hand, human-computer interaction motivated her to participate in design projects, e.g: software development, game, and web design. She has won a silver national medal in Informatics Olympiad, 2008, Tehran, Iran. Also she is recognized as talented student by the Iranian Elites Foundation, receiving grant for undergraduate studies.

E-mail: asma.ghandeharioun@gmail.com

graphic file with name JMSS-2-153-g023.jpg

Reihane Boghrati is currently a senior Bachelor of Science student in computer engineering (software engineering) at Sharif University of Technology. She works in Software engineering laboratory under supervision of associate prof. Jafar Habibi since one of her interests is data-mining. In addition she is interested in computer science, machine learning, evaluation of computer systems performance, human science, and art. By attending online and university courses about Human-Computer Interaction field, she found this area as her main interest as it beautifully fulfills her interests. She has published three journal papers and one proceeding paper so far.

E-mail: r.boghrati@gmail.com

graphic file with name JMSS-2-153-g024.jpg

Zahra Alizadeh Sani received her MD degree (Oct. 1991-Sep. 1998) and cardiology specialty (Oct. 2002-Sep. 2006) from the Mashhad University of Medical science, Echocardiographic fellowship degree (Sep.2007-Mar.2009) in Tehran University of Medical science and cardiac MRI fellowship from Society of Cardiac MRI (Feb. 2011). At present, she is an assistant professor and the head of cardiac MRI department at Tehran University of Medical science, Rajaei research and medical cardiovascular center. Her research interests are mainly in the areas of diagnosis of cardiovascular disease and cardiovascular imaging. She has published more than ten journal papers including: computed Tomography journal, Physiol. Meas Journal, and JCMR Journal. She is Reviewer of Cardiovascular Journal of Tehran University.

E-mail: dr_zahra_alizadeh@yahoo.com

Footnotes

Source of Support: Sharif University of Technology and Tehran University of Medical Science

Conflict of Interest: None declared

REFERENCES

  • 1.Bonow RO, Mann DL, Zipes DP, Libby P. Braunwald’sheart disease: A textbook of cardiovascular medicine. 9th ed. New York: Saunders; 2012. [Google Scholar]
  • 2.Das R, Turkoglu I, Sengur A. Effective diagnosis of heart disease through neural networks ensembles. Expert Syst Appl. 2009;36:7675–80. doi: 10.1016/j.cmpb.2008.09.005. [DOI] [PubMed] [Google Scholar]
  • 3.Babaoglu I, Baykan OK, Aygul N, Ozdemir K, Bayrak M. Assessment of exercise stress testing with artificial neural network in determining coronary artery disease and predicting lesion localization. Expert Syst Appl. 2009;36:2562–6. [Google Scholar]
  • 4.Srinivas K, Rani BK, Govrdhan A. Applications of data mining techniques in healthcare and prediction of heart attacks. Int J Comput Sci Eng. 2010;2:250–5. [Google Scholar]
  • 5.Soni J, Ansari U, Sharma D, Soni S. Predictive datamining for medical diagnosis: An overview of heart disease prediction. Int J Comput Appl. 2011;17:43–8. [Google Scholar]
  • 6.Ordonez C, Omiecinski E, Santana C, Ezquerra N. Proceedings of IEEE ICDM Conference. California: 2001. Mining constrainedassociation rules to predict heart disease; pp. 433–40. [Google Scholar]
  • 7.Rajkumar A, Reena GS. Diagnosis of heart diseaseusing datamining algorithm. Global J Comput Sci Technol. 2010;10:38–43. [Google Scholar]
  • 8.Lee HG, Noh KY, Ryu KH. A data mining approach for coronary heart disease prediction usinghrv features and carotid arterial wallthickness. Singapore: International Conference on Biomedical Engineering; 2008. pp. 200–6. [Google Scholar]
  • 9.Chu C, Chien W. A bayesian expert system for clinical detecting coronary artery disease. J Med Sci. 2009;29:187–94. [Google Scholar]
  • 10.Karaolis MA, Moutiris JA, Hadjipanayi D. Assessment of the risk factors of coronary heart events based on data mining with decision trees. IEEE Trans Inf Technol Biomed. 2010;14:559–66. doi: 10.1109/TITB.2009.2038906. [DOI] [PubMed] [Google Scholar]
  • 11.Quinlan JR. Improved use of continuous attributes in c4.5. J Artif Intell Res. 1996;4:77–90. [Google Scholar]
  • 12.Caruana R, Niculescu-Mizil A. Proceedings of the 23rd international conference on Machine learning. Pennsylvania: 2006. An empirical comparison of supervised learning algorithms; pp. 161–8. [Google Scholar]
  • 13. [Last accessed on 2012 July 01]. Available from: http://www. sourceforge.net/projects/rapidminer/

Articles from Journal of Medical Signals and Sensors are provided here courtesy of Wolters Kluwer -- Medknow Publications

RESOURCES