Skip to content
All projects

ML2024

Heart Disease Prediction

End-to-end ML system that estimates heart-disease risk from clinical inputs — 96%+ accuracy, served through a Flask web app.

Heart Disease Prediction preview

96%+

classification accuracy

Overview

A classical machine-learning project: exploratory analysis of the Cleveland heart-disease dataset (297 patients, 13 features), a comparison of six classifiers, and a Flask app where users enter clinical values like cholesterol and resting ECG to get a risk prediction.

How it works

  1. 1Exploratory data analysis with pandas, matplotlib and seaborn.
  2. 2Scaled pipelines for LR, KNN, SVC, Decision Tree, Random Forest and AdaBoost.
  3. 3ROC and threshold analysis to pick the final model (KNN).
  4. 4Model served via a Flask web form.

Highlights

  • 96%+ classification accuracy on the Cleveland dataset
  • Missing-value imputation, categorical encoding and feature scaling to reduce overfitting
  • Models compared with cross-validation, ROC-AUC, confusion matrix and precision-recall
  • Deployed as a Flask web app

Next project

JournalApp