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
- 1Raw clinical data
- 2EDA & preprocessing
- 3Train 4 models
- 4Cross-validation
- 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
| Model | Accuracy | ROC-AUC |
|---|---|---|
| Logistic Regression | 0.852 | 0.899 |
| Random Forest | 0.833 | 0.867 |
| SVM (RBF) | 0.815 | 0.886 |
| KNN | 0.796 | 0.884 |
Stack
- Python
- scikit-learn
- pandas
- seaborn
- matplotlib