Giter Site home page Giter Site logo

ssjky6 / stroke-predictor Goto Github PK

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

Stroke Prediction App

Home Page: https://snehpriyajha-stroke-predictor.streamlit.app/

Jupyter Notebook 98.50% Procfile 0.01% Python 1.45% Shell 0.04%
machine-learning neural-networks random-forest-classifier smote streamlit stroke-prediction voting-classifier

stroke-predictor's Introduction

Stroke Prediction using Machine Learning

Python Versions

Google Colaboratory

The data for training the model was obtained from here. According to the World Health Organization (WHO) stroke is the 2nd leading cause of death globally, responsible for approximately 11% of total deaths. Stroke is a blood clot or bleeds in the brain, which can make permanent damage that has an effecton mobility, cognition, sight or communication. Stroke is considered as medical urgent situation and can cause long-term neurological damage, complications and often death.

This web app is used to predict whether a patient is likely to get stroke based on the input parameters like gender, age, various diseases, and smoking status. Each row in the data provides relavant information about the patient.

The web app was built in Python using the following libraries and deployed in Streamlit environment.

  • streamlit
  • pandas
  • numpy
  • scikit-learn
  • pickle
  • Imbalanced Learn

We Experimented Outputs with Different Models:

  • Random Forest Classifier
Metrics Score
accuracy_score 0.9336505079079337
precision_score 0.9133935106123445
recall_score 0.9587708066581306
f1_score 0.9355322338830585
  • Logistic Regression
Metrics Score
accuracy_score 0.8145814581458146
precision_score 0.8058107772535387
recall_score 0.8309859154929577
f1_score 0.8182047402924861
  • Adaboost Classifier
Metrics Score
accuracy_score 0.9324932493249325
precision_score 0.9121951219512195
recall_score 0.9577464788732394
f1_score 0.9344159900062461
  • SGD Classifier
Metrics Score
accuracy_score 0.7985084222707985
precision_score 0.8023797206414899
recall_score 0.7943661971830986
f1_score 0.7983528503410113
  • K Neighbours Classifier
Metrics Score
accuracy_score 0.841969911276842
precision_score 0.7978628673196795
recall_score 0.917797695262484
f1_score 0.8536382041205192
  • Voting Classifier
Metrics Score
accuracy_score 0.8887745917448888
precision_score 0.855638745905479
recall_score 0.9364916773367478
f1_score 0.8942413497982639
  • Neural Networks
Metrics Score
accuracy_score 0.9261926192619262
precision_score 0.9045421423366529
recall_score 0.9536491677336748
f1_score 0.9284467713787086

Literature References

stroke-predictor's People

Contributors

ssjky6 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.