About 15 million people suffer from a stroke per year. It generally occurs due to Age, poor lifestyle and improper habits.
A possible solution would be to create a Machine Learning model which would predict whether the person is a risk of future strokes, given their clinical features.
Dataset available in kaggle: Link
Sources: Source is kept confidential.
Attribute Information:
- id: unique identifier
- gender: "Male", "Female" or "Other"
- age: age of the patient
- hypertension: 0 if the patient doesn't have hypertension, 1 if the patient has hypertension
- heart_disease: 0 if the patient doesn't have any heart diseases, 1 if the patient has a heart disease
- ever_married: "No" or "Yes"
- work_type: "children", "Govt_jov", "Never_worked", "Private" or "Self-employed"
- Residence_type: "Rural" or "Urban"
- avg_glucose_level: average glucose level in blood
- bmi: body mass index
- smoking_status: "formerly smoked", "never smoked", "smokes" or "Unknown"*
- stroke: 1 if the patient had a stroke or 0 if not *Note: "Unknown" in smoking_status means that the information is unavailable for this patient
.
├── Analysis
├── EDA.ipynb
├── Model_selection.ipynb
├── Datasets
├── healthcare-dataset-stroke-data.csv
├── preprocessed.csv
├── __pycache__
├── app.cpython-38.pyc
├── models
├── rf.sav
├── scaler.pkl
├── src
├── model_creation.py
├── preprocessing.py
├── templates
├── home.html
├── nostroke.html
├── stroke.html
├── Procfile
├── README.md
├── app.py
└── requirements.txt
- Programming language : Python
- IDE : Visual Studio Code
- Visualization : Matplotlib and Seaborn
- Deployment platform : Heroku
- Front end development : HTML/CSS
- Back end development : Flask
- Version control system : GitHub
Web App Link: https://stroke-predict-app.herokuapp.com
In this web app, we just need to enter 10 clinical features about the person and the algorithm will predict if the person is at a risk of stroke.