Skip to content

An Intelligent Web-Based Heart Disease Prediction System Using Random Forest Classifier with Machine Learning Analysis

Jun 2026 · International Scientific Journal of Engineering and Management · Vol 05, pp. 1-6 · 0 citations

TL;DR

An intelligent machine learning-based web application that predicts the presence or absence of heart disease in patients based on 13 key medical parameters such as age, cholesterol, blood pressure, chest pain type, and maximum heart rate is presented.

Abstract

Disease is one of the leading causes of death worldwide, making early and accurate diagnosis critically important for saving millions of lives each year. This project presents an intelligent machine learning-based web application that predicts the presence or absence of heart disease in patients based on 13 key medical parameters such as age, cholesterol level, blood pressure, chest pain type, and maximum heart rate. The system employs a Random Forest Classifier trained on the Cleveland Heart Disease dataset sourced from the UCI Machine Learning Repository. Six machine learning algorithms were implemented and rigorously compared including Logistic Regression, Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Gradient Boosting, XGBoost, and Random Forest Classifier. The Random Forest algorithm achieved the best performance with a test accuracy of 87.80% and an outstanding AUC score of 0.9550. The trained model is deployed as an interactive web application using the Streamlit framework, allowing healthcare professionals to input patient data and receive instant predictions along with risk percentages and treatment recommendations. This system serves as a reliable and cost-effective decision-support tool to assist doctors in early detection and timely intervention for heart disease. Keywords: Random Forest Classifier, Logistic Regression, Support Vector Machine, K-Nearest Neighbors, XGBoost, Gradient Boosting, StandardScaler, Streamlit, Python, Heart Disease Prediction, Machine Learning, AUC Score, Confusion Matrix

View source

Similar papers

Open access Jul 2026

Diabetes Prediction System Using Machine Learning

Experimental results demonstrate that Machine Learning techniques can effectively predict disease occurrence with high accuracy, thereby assisting healthcare professionals in early diagnosis and treatment planning.

Sunidhi, Mothe Rahul, M. Kumar et al. · 0 citations
Open access Aug 2026

PREDICTING HEART DISEASE RISK FROM CLINICAL VARIABLES: A GENDER-SPECIFIC MACHINE LEARNING ANALYSIS AMONG HIGH-CHOLESTEROL PATIENTS

Male sex was a statistically significant independent predictor of heart disease after controlling for other clinical variables and the findings support sex-specific screening and preventive strategies for high-cholesterol male patients and demonstrate the value of interpretable machine learning models for clinical decision support.

Taiwo Samson Adeyemo · 0 citations
Open access Jul 2026

Heart Disease Prediction Using Logistic Regression and K-Nearest Neighbor: A Comparative Study of Classification Algorithm Performance

The findings suggest that Logistic Regression is more suitable as a decision-support model for early heart disease screening due to its higher sensitivity, accuracy, and specificity.

Yan Risa, Aspi Sururi, M. Asadullah et al. · 0 citations
Preprint Aug 2026

Transforming Heart Disease Prediction with Advanced Machine Learning Techniques

Heart disease remains the leading cause of mortality globally, necessitating early and accurate detection to improve patient outcomes. This research focuses on the predictive analysis of heart disease using machine learning (ML) techniques, comparing the performance of multiple classifiers to identify the most accurate and least error-prone method. Two datasets from UCI and Kaggle repositories were utilized, each containing 14 attributes related to heart health indicators. Techniques including J48, Naive Bayes, Logistic Regression, Simple Cart, Bagging, Decision Stump, AdaBoost, Artificial Neural Networks, and Support Vector Machine (SVM) were applied. Evaluation metrics such as Mean Absolute Error (MAE), Relative Absolute Error (RAE), accuracy, precision, recall, and F-measure were used for performance comparison. Results revealed that SVM achieved the highest performance on the UCI dataset, while Simple Cart performed best on the Kaggle dataset, offering the highest accuracy and lowest error rates. The research work concludes that ML models, when properly tuned and validated, can significantly assist in the early diagnosis of heart disease, offering critical support for clinical decision-making. Future work may involve hybrid approaches and the use of more recent datasets to further improve prediction accuracy.

Sami Ullah, Muhammad Mohsin Khan · 0 citations
Open access Jul 2026

Machine Learning-Based Early Prediction of Hospital Readmission Risk Among Chronic Disease Patients Using Electronic Health Records: A Comparative Study of Ensemble Learning Models

Hospital readmission among patients with chronic diseases remains a major challenge for healthcare systems due to its association with poor patient outcomes and increased healthcare costs. This study proposes a machine learning-based framework for the early prediction of 30-day hospital readmission risk using the publicly available Diabetes 130-US Hospitals dataset from the UCI Machine Learning Repository. A comprehensive preprocessing pipeline, feature engineering, and feature selection techniques were employed to improve data quality and predictive performance. Eight supervised machine learning algorithms, including Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, LightGBM, CatBoost, Multilayer Perceptron, and XGBoost, were developed and comparatively evaluated. Model performance was assessed using accuracy, precision, recall, F1-score, specificity, and the area under the receiver operating characteristic curve (AUC-ROC). The experimental results demonstrated that ensemble learning models consistently outperformed conventional machine learning approaches. Among all evaluated models, XGBoost achieved the best performance, attaining 92.16% accuracy, 0.92 precision, 0.91 recall, 0.91 F1-score, 0.95 specificity, and an AUC-ROC of 0.972. These findings indicate that XGBoost effectively identifies patients at high risk of early hospital readmission and can serve as a reliable predictive tool for clinical decision support. The proposed framework has strong potential for integration with Electronic Health Record systems to facilitate early intervention, improve patient outcomes, reduce preventable readmissions, and support value-based healthcare delivery.

Md Yassir Mottalib, Eklachur Rahman Bhuiyan, Anwar Hossain et al. · 0 citations
Open access Jul 2026

Stroke prediction using Ensemble Learning

The proposed model employs Ensemble Learning techniques, which combine multiple machine learning algorithms to improve prediction accuracy and robustness, and is capable of identifying complex patterns in medical data and classifying patients into stroke-risk categories with high efficiency.

Bhagyashri Patil, Priyadarshini C Patil, Soumya M A et al. · 0 citations