HEART DISEASE PREDICTION USING MACHINE LEARNING ALGORITHMS: A COMPARATIVE STUDY OF LOGISTIC REGRESSION AND KNN
DOI:
https://doi.org/10.29121/granthaalayah.v13.i1.2025.6123Keywords:
Heart Disease, Prediction, Machine Learning, Logistic, K-Nearest Neighbors (KNN)Abstract [English]
This research presents a heart disease prediction system aimed at identifying individuals at risk based on their medical history. With the rising incidence of heart-related conditions, early diagnosis is essential for timely intervention. The system utilizes machine learning algorithms, specifically Logistic Regression and K-Nearest Neighbors (KNN), to classify patients as likely or unlikely to develop heart disease. Experimental results demonstrate improved prediction accuracy compared to traditional methods like Naïve Bayes. The proposed model not only enhances diagnostic precision but also contributes to cost-effective and efficient healthcare. The implementation is provided in .pynb format for practical usability.
Downloads
References
Detrano, R., Janosi, A., Steinbrunn, W., Pfisterer, M., Schmid, J. J., Sandhu, S., ... & Froelicher, V. (1989). International application of a new probability algorithm for the diagnosis of coronary artery disease. The American Journal of Cardiology, 64(5), 304–310. DOI: https://doi.org/10.1016/0002-9149(89)90524-9
Dua, D., & Graff, C. (2019). UCI Machine Learning Repository: Heart Disease Dataset. University of California, Irvine. Retrieved from https://archive.ics.uci.edu/ml/datasets/heart+disease
Rajpurkar, P., Hannun, A. Y., Haghpanahi, M., Bourn, C., & Ng, A. Y. (2017). Cardiologist-Level Arrhythmia Detection with Convolutional Neural Networks. arXiv preprint arXiv:1707.01836.
Gudadhe, M., Wankhade, K., & Dongre, S. (2010). Decision support system for heart disease based on support vector machine and artificial neural network. 2010 International Conference on Computer and Communication Technology (ICCCT), 741–745. DOI: https://doi.org/10.1109/ICCCT.2010.5640377
Polat, K., & Güneş, S. (2007). An expert system approach based on principal component analysis and adaptive neuro-fuzzy inference system to diagnosis of heart valve diseases. Expert Systems with Applications, 31(2), 286–293.
Ibrahim, O. A., et al. (2017). Predictive analytics of heart disease using machine learning algorithms. International Journal of Computer Applications, 179(18), 7–11.
Chaurasia, V., & Pal, S. (2014). Data mining techniques: To predict and resolve breast cancer survivability. International Journal of Computer Science and Mobile Computing, 3(1), 10–22.
Purushottam, S., Saxena, K., & Sharma, R. (2016). Efficient heart disease prediction system using decision tree. International Conference on Computing, Communication & Automation, 72–77. DOI: https://doi.org/10.1109/CCAA.2015.7148346
Ghosh, S., & Das, N. N. (2018). Hybrid approach of support vector machine and artificial neural network for heart disease classification. International Journal of Bio-Science and Bio-Technology, 8(3), 239–252.
Haq, A. U., Li, J. P., Memon, M. H., Nazir, S., & Sun, H. (2018). A hybrid intelligent system framework for the prediction of heart disease using machine learning algorithms. Mobile Information Systems, 2018, 1–21. DOI: https://doi.org/10.1155/2018/3860146
Goyal, M., & Kadam, P. (2021). Heart disease prediction using supervised machine learning algorithms. International Journal of Engineering Research & Technology (IJERT), 10(5), 120–124.
Zhang, Y., & Wu, L. (2011). An MR brain images classifier via principal component analysis and kernel support vector machine. Progress In Electromagnetics Research, 130, 369–388. DOI: https://doi.org/10.2528/PIER12061410
Alizadehsani, R., et al. (2013). A data mining approach for diagnosis of coronary artery disease. Computer Methods and Programs in Biomedicine, 111(1), 52–61. DOI: https://doi.org/10.1016/j.cmpb.2013.03.004
Uddin, S., Khan, A., Hossain, M. E., & Moni, M. A. (2019). Comparing different supervised machine learning algorithms for disease prediction. BMC Medical Informatics and Decision Making, 19(1), 1–16. DOI: https://doi.org/10.1186/s12911-019-1004-8
Deo, R. C. (2015). Machine learning in medicine. Circulation, 132(20), 1920–1930. DOI: https://doi.org/10.1161/CIRCULATIONAHA.115.001593
Soni, J., Ansari, U., Sharma, D., & Soni, S. (2011). Predictive data mining for medical diagnosis: An overview of heart disease prediction. International Journal of Computer Applications, 17(8), 43–48. DOI: https://doi.org/10.5120/2237-2860
Fernandes, M., Cardoso, J. S., & Fernandes, M. (2020). Clinical decision support systems for triage in the emergency department using intelligent algorithms: A review. Artificial Intelligence in Medicine, 102, 101762. DOI: https://doi.org/10.1016/j.artmed.2019.101762
Akella, P., & Akella, A. (2021). A comparative study on feature selection algorithms for disease prediction using machine learning. Biomedical Signal Processing and Control, 68, 102706. DOI: https://doi.org/10.1016/j.bspc.2021.102706
Kachuee, M., Kiani, M. M., Mohammadzade, H., & Shabany, M. (2018). ECG heartbeat classification: A deep transferable representation. 2018 IEEE International Conference on Healthcare Informatics (ICHI), 443–444. DOI: https://doi.org/10.1109/ICHI.2018.00092
Ahmed, Z., Mohamed, K., Zeeshan, S., & Dong, X. (2020). Artificial intelligence with multi-functional machine learning platform development for better healthcare and precision medicine. Database: The Journal of Biological Databases and Curation, 2020. DOI: https://doi.org/10.1093/database/baaa010
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Prashun Pareek, Nidhi Kumari, Pinky Yadav

This work is licensed under a Creative Commons Attribution 4.0 International License.
With the licence CC-BY, authors retain the copyright, allowing anyone to download, reuse, re-print, modify, distribute, and/or copy their contribution. The work must be properly attributed to its author.
It is not necessary to ask for further permission from the author or journal board.
This journal provides immediate open access to its content on the principle that making research freely available to the public supports a greater global exchange of knowledge.