Live Web-App :- https://hdp-django.herokuapp.com
HDP is Machine Learning and Deep Learning based Web Application built using Django that can predict heart diseases.
Cardiovascular disease is the leading cause of death in the modern society. We use the data mining process as a tool for selection and extraction of necessary information which is then put into various machine learning models.
The main aim of the project to provide users with an interactive interface using which they can predict if they have heart disease or not.
- K-Nearest Neighbours (KNN) ( Accuracy = 92% )
- Support Vector Machine (SVM) ( Accuracy = 87% )
- Logistic Regression ( Accuracy = 85% )
- Random Forest Classifier ( Accuracy = 84% )
- Artificial Neural Networks ( Accuracy = 84% )
- age: age in years
- sex: sex (1 = male; 0 = female)
- cp: chest pain type
- Value 1: typical angina
- Value 2: atypical angina
- Value 3: non-anginal pain
- Value 4: asymptomatic
- trestbps: resting blood pressure (in mm Hg on admission to the hospital)
- chol: serum cholestoral in mg/dl
- fbs: (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false)
- restecg: resting electrocardiographic results
- Value 0: normal
- Value 1: having ST-T wave abnormality
- Value 2: showing probable or definite left ventricular hypertrophy by Estes' criteria
- thalach: maximum heart rate achieved
- exang: exercise induced angina (1 = yes; 0 = no)
- oldpeak: ST depression induced by exercise relative to rest
- slope: the slope of the peak exercise ST segment
- Value 1: upsloping
- Value 2: flat
- Value 3: downsloping
- ca: number of major vessels (0-3) colored by flourosopy
- thal: thalassemia
- 3 = normal;
- 6 = fixed defect;
- 7 = reversable defect
HDP uses a number of open source projects to work properly:
- Python - programming language
- Tensorflow - end-to-end open source platform for machine learning.
- scikit-learn - Machine learning library for the Python programming language
- Jupyter Notebook - open-source, interactive web tool for computation
- Django - Python Web framework
- Bootstrap - great UI boilerplate for modern web apps
- Heroku - Deployment
Create a virtualenv and install the dependencies.
In macOS and Linux:
virtualenv env
source test/Scripts/activate
python install -r requirements.txt
In Windows:
python3 -m venv env
.\env\Scripts\activate
To run...
python manage.py runserver
https://www.kaggle.com/ronitf/heart-disease-uci
Want to contribute? Great!