This project is a web-based application for predicting heart disease using machine learning algorithms. Built with Python, Django, and various machine learning techniques, it provides an intuitive interface for users to input medical data and receive predictions about the likelihood of heart disease.
- Project Overview
- Features
- Project Structure
- Installation
- Dataset
- Files and Directories
- Usage
- Technologies Used
- References
- License
- Author
This project leverages machine learning to predict the likelihood of heart disease based on medical data. It uses the Cleveland dataset and implements three machine learning algorithms: Support Vector Machine (SVM), TabNet, and Random Forest. The application is built using Django for the web interface and includes data visualization for better insights.
- Machine Learning Models: Utilizes SVM, TabNet, and Random Forest for accurate predictions.
- Web Interface: A user-friendly Django-based interface for inputting medical data.
- Data Visualization: Visual representations of data for enhanced understanding.
- Static and Media Management: Efficient handling of static and media files via Django settings.
The project is organized as follows:
.gitignore
2022-09-12 SLIDE Heart disease prediction using ML.pptx
Certificate _ Index.pdf
Documentation.pdf
HeartAttack.csv
Project 17_01_2023.html
Project 28_12_2022.ipynb
README.md
In Python Full Stack/
db.sqlite3
manage.py
requirements.txt
admin/
css/
img/
js/
app/
__init__.py
admin.py
apps.py
models.py
tests.py
urls.py
views.py
__pycache__/
migrations/
assets/
css/
HeartDiseasePredictionUsingML/
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
static/
css/
templates/
result.html
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/your-username/Heart_disease_prediction_using_ML.git
-
Navigate to the project directory:
cd Heart_disease_prediction_using_ML/In\ Python\ Full\ Stack/
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open the application: Navigate to
http://127.0.0.1:8000
in your browser.
The project uses the Cleveland dataset for heart disease prediction. Download it from: Kaggle: Heart Disease Cleveland UCI
- HeartAttack.csv: Dataset used for training and testing machine learning models.
- Project 28_12_2022.ipynb: Jupyter Notebook with model training and evaluation code.
- Project 17_01_2023.html: HTML file for presenting project results.
- manage.py: Django's command-line utility for administrative tasks.
- settings.py: Django configuration file for the application.
- app/: Core Django application files, including models, views, and URLs.
- templates/: HTML templates for rendering web pages.
- static/: Static files such as CSS and JavaScript.
- assets/: Additional assets for the application.
- Access the web interface at
http://127.0.0.1:8000
. - Input the required medical data into the form.
- Submit the form to receive a prediction about the likelihood of heart disease.
- View the results on the prediction page.
- Backend: Python, Django
- Frontend: HTML, CSS
- Machine Learning: SVM, TabNet, Random Forest
- Database: SQLite
- Learn SVM: Javatpoint: Support Vector Machine
- Learn Random Forest: Javatpoint: Random Forest
- Learn TabNet: TabNet Paper
Hello 👋🏻 I'm Dasari Naga Phanindra an Aspiring IT Professional | Web Developer | Python Enthusiast | Game Developer | Animator. Successfully completed this project on heart disease prediction using machine learning.