Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Heart Disease Prediction using Machine Learning

Overview

This project focuses on predicting heart disease using multiple machine learning algorithms and feature selection techniques. It combines statistical feature selection methods with ensemble learning models to improve prediction accuracy and reliability.

Features

  • Data preprocessing and cleaning

  • Feature selection using:

    • Chi-Square
    • ANOVA
    • Mutual Information
  • Multiple ML models:

    • Naive Bayes
    • SVM
    • Random Forest
    • XGBoost
    • Logistic Regression
    • KNN
    • Decision Tree
    • AdaBoost
    • Bagging
  • Ensemble models:

    • Voting Classifier
    • Stacking Classifier
  • SMOTE for handling imbalanced data

  • Flask-based web interface for predictions

Tech Stack

  • Python
  • Scikit-learn
  • TensorFlow / Keras
  • Pandas, NumPy
  • Matplotlib, Seaborn
  • Flask

Dataset

  • UCI Heart Disease Dataset

Methodology

  1. Data Collection & Preprocessing
  2. Feature Selection (ANOVA, Chi2, MI)
  3. Model Training & Evaluation
  4. Ensemble Learning (Voting & Stacking)
  5. Deployment using Flask

Results

  • Voting Classifier Accuracy: ~86%
  • Stacking Classifier Accuracy: 100% (experimental result)

How to Run

git clone https://github.com/your-username/heart-disease-prediction-ml.git
cd heart-disease-prediction-ml
pip install -r requirements.txt
python app.py
If the file is downloaded then open anaconda prompt open this file location
run python app.py

Preferred versions
Anaconda - 23.3.1
Python - 3.11.9

Open: http://127.0.0.1:5000/

Future Improvements

  • Integration of Explainable AI (XAI)
  • Deep Learning models
  • Larger datasets for generalization

License

MIT License

About

Machine Learning-based Heart Disease Prediction system using feature selection (ANOVA, Chi-Square, Mutual Information) and ensemble models including Voting and Stacking classifiers with Flask deployment.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages