Smart Machine Learning-Based Heart Disease Prediction with Random Forest Classifier
Received: 7 February 2026 | Revised: 6 March 2026, 24 March 2026, 27 March 2026, 29 March 2026, 1 April 2026, and 3 April 2026 | Accepted: 4 April 2026 | Online: 4 June 2026
Corresponding author: Sujatha Krishna
Abstract
Heart diseases remain one of the most common causes of death worldwide, indicating a demand for reliable and accurate early prediction systems. In contrast to established comparative studies, this one develops a unique data-driven predictive framework that encompasses multiple Machine Learning (ML) algorithms and an optimized Random Forest (RF)-based classification strategy for enhanced clinical decision-making support. A systematic heart disease prediction model was designed, based on Logistic Regression (LR), Gaussian Naïve Bayes (GNB), Support Vector Classifier (SVC), K-Nearest Neighbors (KNN), Decision Tree (DT), Extra Trees (ET), Bagging, and an optimized RF classifier aimed at increasing predictive performance stability and generalizability. Experimental results show that RF achieves better performance with 97.50 accuracy, 97.51 precision, 97.50 recall, and 97.50 F1-score on the validation dataset. The proposed model integrates ensemble-based optimization and effective feature learning and generalization ability for medical risk prediction. Its better performance is due to the ensemble learning mechanism of RF, which increases model robustness, helps to decrease overfitting, and increases classification reliability. With its ability to accurately direct clinicians and health organizations to unknown patients at risk, the proposed model can offer great value in clinical and health economy perspectives, through timely intervention for both diagnosis of imminent heart disease complications and varied data-informed prescription steps.
Keywords:
heart disease prediction, Random Forest (RF), Machine Learning (ML), medical diagnosticsReferences
R. Katarya and S. K. Meena, "Machine Learning Techniques for Heart Disease Prediction: A Comparative Study and Analysis," Health and Technology, vol. 11, no. 1, pp. 87–97, Jan. 2021.
D. Shah, S. Patel, and S. K. Bharti, "Heart Disease Prediction using Machine Learning Techniques," SN Computer Science, vol. 1, no. 6, Nov. 2020, Art. no. 345.
A. Srivastava and A. K. Singh, "Heart Disease Prediction using Machine Learning," in 2022 2nd International Conference on Advanced Computing and Innovative Technologies in Engineering (ICACITE), Apr. 2022, pp. 2633–2635.
C. M. Bhatt, P. Patel, T. Ghetia, and P. L. Mazzeo, "Effective Heart Disease Prediction Using Machine Learning Techniques," Algorithms, vol. 16, no. 2, Feb. 2023, Art. no. 88.
H. Jindal, S. Agrawal, R. Khera, R. Jain, and P. Nagrath, "Heart disease prediction using machine learning algorithms," IOP Conference Series: Materials Science and Engineering, vol. 1022, no. 1, Jan. 2021, Art. no. 012072.
M. Kavitha, G. Gnaneswar, R. Dinesh, Y. R. Sai, and R. S. Suraj, "Heart Disease Prediction using Hybrid Machine Learning Model," in 2021 6th International Conference on Inventive Computation Technologies (ICICT), Jan. 2021, pp. 1329–1333.
A. Garg, B. Sharma, and R. Khan, "Heart disease prediction using machine learning techniques," IOP Conference Series: Materials Science and Engineering, vol. 1022, no. 1, Jan. 2021, Art. no. 012046.
A. K. Shukla and V. S. Kumar, "Cloud Computing with Artificial Intelligence Techniques for Effective Disease Detection," International Journal of Data Informatics and Intelligent Computing, vol. 2, no. 1, pp. 32–41, Mar. 2023.
Kumar Mohan, Yousuf Fadhil Salim AL-Mamari, and Mohammed Ahmed Mohammed AL-Najadi, "Techniques of Machine Learning for Detecting Heart Failure," International Journal of Data Informatics and Intelligent Computing, vol. 2, no. 2, pp. 47–54, June 2023.
J. Hu et al., "Explainable AI models for predicting drop coalescence in microfluidics device," Chemical Engineering Journal, vol. 481, Feb. 2024, Art. no. 148465.
L. Riyaz, M. A. Butt, M. Zaman, and O. Ayob, "Heart Disease Prediction Using Machine Learning Techniques: A Quantitative Review," in International Conference on Innovative Computing and Communications, vol. 1394, A. Khanna, D. Gupta, S. Bhattacharyya, A. E. Hassanien, S. Anand, and A. Jaiswal, Eds. Springer Singapore, 2022, pp. 81–94.
D. E. Salhi, A. Tari, and M. T. Kechadi, "Using Machine Learning for Heart Disease Prediction," in Advances in Computing Systems and Applications, vol. 199, M. R. Senouci, M. E. Y. Boudaren, F. Sebbak, and M. Mataoui, Eds. Springer International Publishing, 2021, pp. 70–81.
N. Chandrasekhar and S. Peddakrishna, "Enhancing Heart Disease Prediction Accuracy through Machine Learning Techniques and Optimization," Processes, vol. 11, no. 4, Apr. 2023, Art. no. 1210.
S. R. Reddy and G. V. Murthy, "Cardiovascular Disease Prediction Using Particle Swarm Optimization and Neural Network Based an Integrated Framework," SN Computer Science, vol. 6, no. 2, Feb. 2025, Art. no. 186.
P. Shao et al., "Explainability of AI predictive models for drop coalescence in microfluidics channels: Experimental validation," Chemical Engineering Science, vol. 320, Jan. 2026, Art. no. 122559.
K. Arumugam, M. Naved, P. P. Shinde, O. Leiva-Chauca, A. Huaman-Osorio, and T. Gonzales-Yanac, "Multiple disease prediction using Machine learning algorithms," Materials Today: Proceedings, vol. 80, pp. 3682–3685, 2023.
M. Diwakar, A. Tripathi, K. Joshi, M. Memoria, P. Singh, and N. Kumar, "Latest trends on heart disease prediction using machine learning and image fusion," Materials Today: Proceedings, vol. 37, pp. 3213–3218, 2021.
A. Saboor, M. Usman, S. Ali, A. Samad, M. F. Abrar, and N. Ullah, "A Method for Improving Prediction of Human Heart Disease Using Machine Learning Algorithms," Mobile Information Systems, vol. 2022, pp. 1–9, Mar. 2022.
J. Patel, A. A. Khaked, J. Patel, and J. Patel, "Heart Disease Prediction Using Machine Learning," in Proceedings of Second International Conference on Computing, Communications, and Cyber-Security, vol. 203, P. K. Singh, S. T. Wierzchoń, S. Tanwar, M. Ganzha, and J. J. P. C. Rodrigues, Eds. 2021, pp. 653–665.
D. AbdElminaam, M. Radwan, N. Mohamed Abdelrahman, H. Wael Kamal, A. Khaled Abdelmonem Elewa, and A. Moataz Mohamed, "MLHeartDisPrediction: Heart Disease Prediction using Machine Learning," Journal of Computing and Communication, vol. 2, no. 1, pp. 50–65, Jan. 2023.
M. Rahardi, B. P. Asaddulloh, A. Aminuddin, F. F. Abdulloh, I. Saifudin, and F. P. Kusumawijaya, "Optimizing Machine Learning Models for Class Imbalance in Heart Disease Prediction," Engineering, Technology & Applied Science Research, vol. 15, no. 3, pp. 23599–23604, June 2025.
M. K. Hossen, "A Study of Large-eddy Simulation using Statistical and Machine Learning Techniques," Journal of Engineering Advancements, pp. 96–103, Sept. 2022.
T. Roopa and G. D. Ramanjinappa, "Heart Disease Predictive Modeling with XGBoost and SMOTE-Driven Class Imbalance Mitigation," Engineering, Technology & Applied Science Research, vol. 15, no. 6, pp. 29914–29918, Dec. 2025.
B. P. Doppala, "Cardiovascular_Disease_Dataset." Mendeley, Apr. 16, 2021.
Downloads
How to Cite
License
Copyright (c) 2026 Sujatha Krishna, Pandian Vaidhyanathan, Amina Salim Mohammed AlJabri, Amna Salim Rashid Al Kaabi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
