Giter Site home page Giter Site logo

xoikia / heart_disease_prediction Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.08 MB

Heart Disease prediction using health data by applying Machine learning model

Home Page: https://heartdiseaseprediction1.herokuapp.com/predict

Jupyter Notebook 99.29% Python 0.13% CSS 0.09% HTML 0.48%
heartdiseasedetection machinelearning flask heroku-deployment css3 html bootstrap python36

heart_disease_prediction's Introduction

HeartDiseaseDetector Project

Problem Statement

Medical services need to be advanced so that better decisions for patient diagnosis and treatment options can be made.Instead of diagnosis, when a disease prediction is implemented using certain machine learning predictive algorithms then healthcare can be made smart. Some cases can occur when early diagnosis of a disease is not within reach. Hence disease prediction can be effectively implemented. Thus Machine learning in healthcare aids the humans to process huge and complex medical datasets and then analyze them into clinical insights. This then can further be used by physicians in providing medical care. This project focus on the development of a system which would able to provide prediction of Heart Disease based on early symptoms and medical history of the inidividual.

Approach

  • Data Exploration : Exploration of Dataset using numpy and pandas librarie.
  • Data Visualizaation : Data Visualization or plotting the data of the various features of the data to get the various insights. Tools used were matplotlib , Seaborn.
  • Data Preprocessing : Some of the datatypes of some features aren't quite right. I chnaged them into the correct datatypes. Finally encoding of the categorical datas and scaling of the continous datas were done so that the model fit properly.
  • Model Building : Different models were trained based on default parameters and evaluated with the help of evalutaion metrics. After that I perform hyperparameter tuning of all the models with the help of GridSearch CV. This lets me to find the optimal values for all the models to use instead of just using the default parameters or just randomly using some values. Finally I evaluate all the models using evaluation metrics.
  • Plotting ROC curve : I plot the True Positive Rate(TPR) and the False Positive Rate(FPR) of all the models. This graph shows the performance of all the classification model at all classification thresholds. This help us to select the best model and finally created the pickle file and saved it.
  • Web application : I will expose the created model as a web API to be consumed by the client/client APIs. The tools used were Flask, HTML, CSS and bootstrap.
  • Cloud Deployemnt : I deployed the web app on Heroku.

Project Interface

Link: Predict Heart Disease

Web Interface

interface

Prediction Result

result

Libraries and Tools used

  • Python
  • Numpy
  • Pandas
  • Matplotlib
  • Seaborn
  • Sklearn
  • Flask
  • HTML 5
  • CSS 3
  • Bootstrap
  • Heroku

Repository Files

  • heart.csv : This is the dataset I have used to build the model.
  • Heart_Disease_Prediction : This jupyter notebook file is where the data analysis, data exploration, visualization and finally the model building is being done.
  • HeartDiseasePrediction : This folder contains all the html, css, python code and the model which is used to build the Flask web app.
  • ReadMe Images : Stores the images used in README file.

Feedback

Hello reader if you find any bug please consider raising issue. I will try to fix it. If you like the project please give a โญ

heart_disease_prediction's People

Contributors

xoikia avatar

Stargazers

 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.