Skip to content

Sravani-Neelakantam/assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

assessment

Comparative Analysis of Machine Learning Algorithms for Predicting Heart Failure Outcomes

πŸ“Œ Overview

This project compares the performance of four machine learning algorithmsβ€”Logistic Regression, Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Gradient Boosting Machine (GBM)β€”in predicting heart failure outcomes using clinical data.

🧠 Objective

To determine the most effective machine learning model for predicting DEATH_EVENT (mortality) among patients using real-world clinical records.

πŸ“‚ Project Structure

β”œβ”€β”€ data/ β”‚ └── heart_failure_clinical_records.csv β”œβ”€β”€ notebooks/ β”‚ └── heart_failure_analysis.ipynb β”œβ”€β”€ outputs/ β”‚ β”œβ”€β”€ confusion_matrices/ β”‚ └── classification_reports

πŸ“Š Dataset

πŸ§ͺ Methodology

  1. Data Preprocessing

    • Loaded and cleaned dataset
    • Standardized features for KNN and SVM
    • Train/test split (80/20)
  2. Models Trained

    • Logistic Regression
    • SVM (Support Vector Machine)
    • K-Nearest Neighbors (KNN)
    • Gradient Boosting Machine (GBM)
  3. Evaluation Metrics

    • Accuracy
    • Precision
    • Recall
    • F1-Score
    • Confusion Matrix
  4. Visualization

    • Correlation Matrix
    • Classification Reports
    • Confusion Matrices

πŸš€ Results

Model Accuracy F1-Score Remarks
Gradient Boosting βœ… Highest High Best overall performance
SVM Moderate Good Effective with standardized data
KNN Moderate Moderate Handles non-linear patterns well
Logistic Regression Moderate Moderate Baseline interpretable model

πŸ’‘ Insights

  • Gradient Boosting consistently outperformed others.
  • SVM and Logistic Regression are simpler and interpretable.
  • KNN works well for non-linear patterns but needs tuning.
  • Ensemble models like GBM offer high accuracy for clinical predictions.

πŸ“Ž Resources

πŸ›  Requirements

pandas numpy scikit-learn matplotlib seaborn xgboost πŸ‘©β€πŸ’» Author

Sravani Neelakantam MSc Data Science, Coventry University πŸ“§ [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published