Skip to content
All projects

Huawei × Türkiye AI Academy bootcamp · final project

Heart Disease Risk Prediction

Comparing four ML models on clinical data. Best model: Logistic Regression with 0.90 ROC-AUC.

Overview

An end-to-end machine-learning study on a heart-disease dataset of 270 patients and 13 clinical features. I explored the data, built a reproducible preprocessing pipeline and compared four classifiers, choosing the final model by recall as well as accuracy, because a missed patient costs more than a false alarm.

Pipeline

  1. 1Raw clinical data
  2. 2EDA & preprocessing
  3. 3Train 4 models
  4. 4Cross-validation
  5. 5ROC / recall analysis

What I built

  • Exploratory data analysis and feature inspection with pandas, seaborn and matplotlib
  • Stratified 80/20 train-test split and 5-fold cross-validation
  • Logistic Regression reached 0.917 recall: it caught 11 of every 12 sick patients
  • Results written up as an article on Medium

Results

Test-set results (stratified 20% hold-out)
ModelAccuracyROC-AUC
Logistic Regression0.8520.899
Random Forest0.8330.867
SVM (RBF)0.8150.886
KNN0.7960.884

Stack

  • Python
  • scikit-learn
  • pandas
  • seaborn
  • matplotlib