Heart Disease Prediction
ML-Based Cardiovascular Disease Detection
Client
Academic Project
Year
2024
Role
Data Scientist
Stack
Python · Scikit-learn · Pandas · Matplotlib · Seaborn
Status
Complete
Context
Catching heart disease before it’s too late.
Cardiovascular disease remains one of the leading causes of mortality worldwide. Early prediction using patient health data can significantly improve prevention and treatment outcomes. This project builds and evaluates three ML classification models—Logistic Regression, Decision Tree, and Random Forest—for CVD prediction, emphasizing recall to minimize missed diagnoses.
The Vision
Data-driven prevention, not reaction.
The project compares traditional and ensemble approaches on a real CVD dataset, with GridSearchCV hyperparameter tuning and a focus on reducing false negatives—the most critical metric in healthcare ML.
The Product
End-to-end ML pipeline.
The full pipeline: data loading, EDA, preprocessing (encoding, scaling, handling missing values), model training with hyperparameter tuning, and evaluation using Accuracy, Precision, Recall, F1-Score, and Confusion Matrix.
Architecture
Stack.
Analysis
Data manipulation, cleaning, and descriptive statistics.
Visualization
Statistical visualization and feature importance analysis.
Models
Logistic Regression, Decision Tree, Random Forest with GridSearchCV tuning.
Environment
Interactive development with full documentation and analysis.
Outcome
Results.
Challenge
Minimizing false negatives in healthcare.
In medical diagnosis, a false negative (missing a sick patient) is far more dangerous than a false positive. The challenge was tuning three models — Logistic Regression, Decision Tree, Random Forest — to maximize recall without destroying precision. Random Forest with tuned thresholds struck the best balance.
Performance
Performance
3
Models Compared
Random Forest
Best Model
GridSearchCV
Tuning Method
Recall
Critical Metric
Dataset
Source
CVD dataset
Features
Age, BMI, BP, Glucose, etc.
Target
Binary (CVD / No CVD)
Preprocessing
Scaling + Encoding
Next case