Skip to content

Machine Learning

completed

Heart Disease Detection

A heart disease prediction pipeline built on the Cleveland Heart Disease dataset. The project covers the full supervised learning workflow: data cleaning, feature scaling, categorical encoding, then benchmarking three classifiers: Logistic Regression, Random Forest, and K-Nearest Neighbors, using cross-validation. The best model reached 85% accuracy. SHAP values were used to interpret which features drove predictions, making the model's behavior transparent rather than just measuring its performance.

Inside the build

Architecture, one step at a time.

A supervised-learning study follows data preparation, model comparison, validation, and feature explanations.

Interactive walkthrough

Select a component, or use Next for a guided tour. Connections show the flow between components.

Step 1 of 6
Cleveland Heart Disease · Pandas

Load the dataset

The Cleveland Heart Disease dataset supplies the labeled examples used in the study.

What comes in
Dataset records and labels
What comes out
A tabular learning dataset

A dataset-based ML project reporting 85% accuracy. This walkthrough is educational and is not a clinical diagnostic tool.

The details

What went into the build.

Tools & technologies

  • Python
  • scikit-learn
  • Pandas
  • Matplotlib
  • Seaborn
  • Logistic Regression
  • Random Forest
  • KNN

Key highlights

  • 85% classification accuracy on Cleveland Heart Disease dataset
  • Comparative analysis: Logistic Regression vs Random Forest vs KNN
  • Feature importance analysis and SHAP explanations
  • Full preprocessing pipeline with cross-validation