Heart disease prediction using machine learning models
Abstract
Heart disease remains a global health threat, making rapid identification crucial. Using the Heart Disease Dataset from Kaggle, this research employs a Random Forest model to analyze 13 clinical variables from 1,025 samples. To improve accuracy and address class imbalance, the dataset was split into training and test sets, utilizing methods such as Z-scores, SMOTE, and feature selection. The Random Forest model, which combines multiple decision trees, achieved high performance with an accuracy of 98.54%, identifying key predictors such as chest pain type, maximum heart rate, and thalassemia. Compared to a single decision tree, the Random Forest model reduces overfitting, improves generalization, and increases predictive accuracy. Factors like cholesterol levels, resting blood pressure, and exercise-induced angina were also considered. By averaging results from multiple trees, the model offers reliable and stable predictions, highlighting its potential in clinical settings for early detection and personalized treatment strategies. This study aims to assist healthcare providers in better allocating resources, planning preventive measures, and tailoring treatment plans to individual patients.
References
- Salari N, Faryadras F, Shohaimi S, et al. 2024 Global prevalence of congenital heart diseases in infants: A systematic review and meta-analysis. Journal of Neonatal Nursing.
- Abughazaleh S, Obeidat O, Tarawneh M, et al. 2024 Trends of Hypertensive Heart Disease Prevalence and Mortality in the United States between the period 1990-2019, Global Burden of disease Database. Current Problems in Cardiology, 102621.
- Chen Y, Wei Y and Tang W 2024 The role of hydrogen in the prevention and treatment of coronary atherosclerotic heart disease. European Journal of Pharmacology, 176586.
- Vora N, Patel P, Gajjar A, et al. 2023 Gene therapy for heart failure: A novel treatment for the age old disease. Disease-a-Month, 101636.
- Islam M A, Majumder M Z H, Miah M S, et al. 2024 Precision healthcare: A deep dive into machine learning algorithms and feature selection strategies for accurate heart disease prediction. Computers in Biology and Medicine, 176, 108432.
- Mesquita F and Marques G 2024 An explainable machine learning approach for automated medical decision support of heart disease. Data & Knowledge Engineering, 102339.
- Chen L, Ji P, Ma Y, et al. 2023 Custom machine learning algorithm for large-scale disease screening-taking heart disease data as an example. Artificial Intelligence in Medicine, 146, 102688.
- Ghasemieh A, Lloyed A, Bahrami P, et al. 2023 A novel machine learning model with Stacking Ensemble Learner for predicting emergency readmission of heart-disease patients. Decision Analytics Journal, 7, 100242.
- Chang V, Bhavani V R, Xu A Q, et al. 2022 An artificial intelligence model for heart disease detection using machine learning algorithms. Healthcare Analytics, 2, 100016.
- Sun H and Pan J 2023 Heart disease prediction using machine learning algorithms with self-measurable physical condition indicators. Journal of data analysis and information processing, 11(1), 1-10.