Git Product home page Git Product logo

prajwalp3 / cardiovascular-disease-prediction-using-machine-learning-models Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 589 KB

Our project utilizes machine learning models to predict cardiovascular diseases (CVDs) by analyzing diverse datasets and exploring 14 different algorithms. The aim is to enable early detection, personalized interventions, and improved healthcare outcomes.

Jupyter Notebook 99.77% Python 0.23%
bagging-classifier decision-tree-classifier exploratory-data-analysis google-collab gradient-boosting-classifier k-nearest-neighbor-classifier kaggle-dataset lgbmclassifier linear-svc logistic-regression

cardiovascular-disease-prediction-using-machine-learning-models's Introduction

Cardiovascular Disease Prediction

This project involves predicting cardiovascular disease using various machine learning models. The goal is to compare the performance of different models and identify the most accurate one. The models used in this project include Logistic Regression, Support Vector Machines, k-Nearest Neighbors, Naive Bayes, Decision Trees, Random Forests, XGBoost, LightGBM, Gradient Boosting, Ridge Classifier, and Bagging Classifier.

Project Overview

Cardiovascular diseases (CVDs) are the leading cause of death globally, making it crucial to develop reliable prediction models to identify at-risk individuals. This project leverages multiple machine learning algorithms to predict the likelihood of cardiovascular disease based on a given set of features.

Models Implemented

  • Logistic Regression
  • Support Vector Machines (SVM)
  • Linear SVC
  • k-Nearest Neighbors (k-NN) with GridSearchCV
  • Naive Bayes
  • Perceptron
  • Stochastic Gradient Descent (SGD)
  • Decision Tree Classifier
  • Random Forests with GridSearchCV
  • XGB Classifier with HyperOpt
  • LGBM Classifier with HyperOpt
  • GradientBoostingClassifier with HyperOpt
  • RidgeClassifier
  • BaggingClassifier

Methodology

  • Data Preprocessing: The dataset is cleaned and preprocessed to handle missing values, normalize features, and encode categorical variables. Model Training: Each model is trained on the preprocessed dataset. Hyperparameter tuning is performed for certain models using GridSearchCV and HyperOpt. Model Evaluation: The models are evaluated based on accuracy, precision, recall, F1-score, and ROC-AUC.
  • Comparison and Visualization: The performance of all models is compared using various metrics, and the results are visualized using graphs.
  • Results: The performance of each model is compared, and the Random Forest model with GridSearchCV is found to be the most accurate with an accuracy of 99.7%. The performance metrics for all models are visualized in the graphs below.

Dependencies

  • Python 3.8+
  • Pandas
  • NumPy
  • Scikit-learn
  • XGBoost
  • LightGBM
  • HyperOpt
  • Matplotlib
  • Seaborn

Conclusion

This project demonstrates the application of various machine learning models for predicting cardiovascular disease. The Random Forest model with GridSearchCV outperformed the other models in terms of accuracy. Future work can involve exploring more advanced techniques and larger datasets to further improve the prediction performance.

Acknowledgements

The dataset used in this project was obtained from kaggle Special thanks to the open-source community for providing valuable resources and libraries.

cardiovascular-disease-prediction-using-machine-learning-models's People

Contributors

prajwalp3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.