Phani-LP/Heart_disease_prediction_using_ML
A machine learning-based web application for predicting heart disease using algorithms like SVM, TabNet, and Random Forest, built with Python and Django.
Heart Disease Prediction Using Machine Learning
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.
Table of Contents
- Project Overview
- Features
- Project Structure
- Installation
- Dataset
- Files and Directories
- Usage
- Technologies Used
- References
- License
- Author
Project Overview
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.
Features
- 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.
Project Structure
The project is organized as follows:
.gitignore2022-09-12 SLIDE Heart disease prediction using ML.pptxCertificate _ Index.pdfDocumentation.pdfHeartAttack.csvProject 17_01_2023.htmlProject 28_12_2022.ipynbREADME.mdIn Python Full Stack/db.sqlite3manage.pyrequirements.txtadmin/css/img/js/
app/__init__.pyadmin.pyapps.pymodels.pytests.pyurls.pyviews.py__pycache__/migrations/
assets/css/
HeartDiseasePredictionUsingML/__init__.pyasgi.pysettings.pyurls.pywsgi.py
static/css/
templates/result.html
Installation
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 tohttp://127.0.0.1:8000in your browser.
Dataset
The project uses the Cleveland dataset for heart disease prediction. Download it from:
Kaggle: Heart Disease Cleveland UCI
Files and Directories
Key Files
- 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.
Key Directories
- 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.
Usage
- 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.
Technologies Used
- Backend: Python, Django
- Frontend: HTML, CSS
- Machine Learning: SVM, TabNet, Random Forest
- Database: SQLite
References
- Learn SVM: Javatpoint: Support Vector Machine
- Learn Random Forest: Javatpoint: Random Forest
- Learn TabNet: TabNet Paper
Author
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.