Cardiovascular Heart Disease Risk Diagnostic Pipeline
Clinical machine learning diagnostic system achieving 88.89% generalization with zero variance gap

Bagging Classifier (Bootstrap Ensemble)
Generalization Test Accuracy: 88.89%
F1-Score: 80.00% | Train/Test Gap: 0.00%
303 clinical cases
13 physiological markers (BP, Cholesterol, ECG, Max HR)
Target: Presence / Absence of Heart Disease
88.89% Test Accuracy & 80.00% F1-Score with zero overfitting gap
Verified Notebook Results
Technologies & Machine Learning Frameworks
01Business & Clinical Problem Context
02Data Pipeline & Model Engineering
03Algorithm Evaluation & Empirical Benchmarks
| Algorithm / Model | Train Score | Test Accuracy / Score | 5-Fold CV | F1-Score / Metric | Status |
|---|---|---|---|---|---|
| Bagging Classifier (Best Generalizer) | 88.89% | 88.89% | 84.75% | 80.00% | best |
| Support Vector Machine (RBF, C=10) | 93.75% | 86.11% | 84.75% | 76.19% | contender |
| Random Forest (200 Trees) | 92.36% | 86.11% | 84.68% | 76.19% | contender |
| Logistic Regression | 86.11% | 80.56% | 84.73% | 66.67% | baseline |
| K-Nearest Neighbors (k=6, Manhattan) | 88.89% | 80.56% | 86.82% | 66.67% | baseline |
| Gradient Boosting (Overfit Check) | 100.0% | 80.56% | 77.07% | 69.57% | baseline |
| XGBoost Classifier | 100.0% | 80.56% | 79.11% | 66.67% | baseline |
While complex algorithms like Gradient Boosting and XGBoost achieved 100% accuracy on training data, they suffered from noticeable variance/overfitting on the unseen test set (dropping to 80.56%). In contrast, the Bagging Classifier achieved an identical 88.89% Train Accuracy and 88.89% Test Accuracy alongside an 80.00% F1-score. Selecting Bagging over overfitted boosted trees demonstrated robust production engineering judgment.
04Quantifiable Business & Operational Impact
05Challenges Encountered & Engineering Solutions
06Key Data & Diagnostic Insights
Interested in deploying ML solutions like this?
Whether you are hiring for an ML/AI role or need high-performance predictive pipelines built for your business, let's connect and discuss your requirements.