EKSAKTA: Berkala Ilmiah Bidang MIPA
Open Access

Machine Learning Classification for Detecting Heart Disease with K-NN Algorithm, Decision Tree and Random Forest

1 Department of Physics, Faculty of Science and Technology, UIN Syarif Hidayatullah Jakarta, Tangerang Selatan, Indonesia
2 Department of Informatics System, Faculty of Science and Technology, UIN Syarif Hidayatullah Jakarta, Tangerang Selatan, Indonesia.
3 Southeast Asia Biodiversity Research Institute, Chinese Academy of Sciences & Center for Integrative Conservation, Xishuangbanna Tropical Botanical Garden, Chinese Academy of Sciences, Mengla, Yunnan 666303, China
Download PDF

Abstract

The heart is one of the most important organs for human; therefore, it needs to always be looked after and maintained properly. If it is not looked after and maintained properly, it will be at risk of disease. Currently, heart disease of various types still ranks first in deaths both in Indonesia and abroad. Various efforts continue to be developed by relevant scientists to detect it. Considering the importance of development efforts, in this research a machine-learning program was designing to classify heart disease as a detection system effort. In this article we will describe the analysis of the characteristics of the K-NN classifier, decision tree, random forest (accuracy, precision and recall), as well as determining the best classifier for detecting heart disease. To support the analysis of test results, Python and Google Colab programming has been implementation here. The best results obtained from the analysis of the application of these three models are the Decision Tree Classifier with accuracy, precision and recall values ​​of 90%, 87% and 88% respectively. These results indicate that this model has been successfully developing.

References

1
Aazmi, A., Zhou, H., Li, Y., Yu, M., Xu, X., Wu, Y., ... & Yang, H. (2022). Engineered vasculature for organ-on-a-chip systems. Engineering, 9, 131-147.
2
Roberts, W., Salandy, S., Mandal, G., Holda, M. K., Tomaszewksi, K. A., Gielecki, J., ... & Loukas, M. (2019). Across the centuries: Piecing together the anatomy of the heart. Translational Research in Anatomy, 17, 100051.
3
Alnour, H., Sharma, A., Halawa, A., & Alalawi, F. (2021). Global practices and policies of organ transplantation and organ trafficking. Experimental and clinical transplantation.
4
Aubert, O., Yoo, D., Zielinski, D., Cozzi, E., Cardillo, M., Dürr, M., ... & Loupy, A. (2021). COVID-19 pandemic and worldwide organ transplantation: a population-based study. The Lancet Public Health, 6(10), e709-e719.
5
Gun, S. Y., Lee, S. W. L., Sieow, J. L., & Wong, S. C. (2019). Targeting immune cells for cancer therapy. Redox biology, 25, 101174.
Downloads
Download data is not yet available.

How to Cite

1.
Machine Learning Classification for Detecting Heart Disease with K-NN Algorithm, Decision Tree and Random Forest. EKSAKTA [Internet]. 2023 Dec. 30 [cited 2026 Sep. 4];24(04):513-22. Available from: https://eksakta.ppj.unp.ac.id/index.php/eksakta/article/view/461

Most read articles by the same author(s)