Predictive Analytics for Heart Disease Classification Using KNN, SVM, and XGBoost Models
Sandhyarani Research Scholar, Department of Computer Science and Engineering, JSS Academy of Technical Education, Bengaluru, Karnataka, India. apsandhya21@gmail.com0009-0007-2086-8471
Dr.B. NethravathiDepartment of Information Science and Engineering, JSS Academy of Technical Education, Bengaluru, Karnataka, India. nethravathi.sai@gmail.com0000-0003-0340-7888
Syed Abdul HafeezDepartment of Cardiology, JSS Medical College, JSS Academy of Higher Education & Research, Mysuru, Karnataka, India. syedhafeez33@gmail.com0009-0004-4799-2438
Dr.S. Sunil KumarDepartment of Cardiology, JSS Medical College, JSS Academy of Higher Education & Research, Mysuru, Karnataka, India. sunil_cardio@yahoo.co.in0000-0001-9222-9627
Dr. Vikram PatilDepartment of Radiology, JSS Medical College, JSS Academy of Higher Education & Research, Mysuru, Karnataka, India. vikrampatil@jssuni.edu.in0000-0002-7684-7860
Keywords: Heart Disease, Classification Models, Early Diagnosis, KNN, SVM, XGBoost.
Abstract
Cardiovascular diseases (CVDs) and sudden cardiac events still represent a major challenge world-wide, thus early detection of the risk is very relevant. Early identification of people who may be vulnerable can improve treatment outcomes and reduce mortality significantly. This work presents a comparative machine learning (ML) method for predicting heart disease using three different algorithms namely KNN, SVM, and XGBoost. To ensure reliable data and a consistent work, a well-established Kaggle heart disease dataset is used. In addition, recent data and statistical records were collected from JSS Academy of Higher Education and Research (JSS AHER) and JSS Hospitals through authorized data sharing agreements. Evaluated each model’s performance using different metrics. The results show that the three models could predict the heart disease cases with a reasonable accuracy. Among them, the KNN gets the best performance of 90.16% accuracy, subsequent to SVM with 86.89% and XGBoost with 81.97%. The superior performance of KNN can be due to the fact that it can group together similar patient profiles by proximity in the feature space. Overall, the results of the ML models enable to assist medical diagnosis and improve early detection strategies. Future initiatives will aim to scrutinize the recommended approach over extensive and diverse datasets, including model interpretability techniques, and investigate hybrid methods to enhance prediction accuracy and practical applicability in real-world applications.