A machine learning-based web application that predicts the risk of heart disease based on various health parameters.
Access the Live Application Here
- Interactive web interface for entering health parameters
- Real-time prediction of heart disease risk with confidence levels
- Visual risk assessment with intuitive color-coded indicators
- Detailed dashboard with data visualizations to understand risk factors
- Educational information about heart disease causes and prevention
- Mobile-responsive design works on all devices
- Backend: FastAPI, Python
- Frontend: HTML, Tailwind CSS, JavaScript
- Data Processing: Pandas, NumPy
- Machine Learning: Scikit-learn (Logistic Regression)
- Visualization: Matplotlib, Seaborn, Chart.js
-
Clone this repository
git clone https://github.com/yourusername/heart-disease.git cd heart-disease
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
uvicorn application:app --reload
-
Open your browser and navigate to:
http://localhost:8000
- Input Collection: Users provide their health parameters through an intuitive form
- Data Processing: The application processes and scales the input data
- Prediction: A trained machine learning model predicts the likelihood of heart disease
- Visualization: Results are displayed with intuitive visual representations
- Risk Assessment: A detailed risk assessment is provided based on the prediction
This application is successfully deployed on Render: https://heart-disease-2gln.onrender.com/
The application can also be deployed to other platforms:
- Render: Using the included
render.yaml
configuration - Railway: Using the included
Procfile
- Docker: Using the included
Dockerfile
The heart disease prediction model is trained using a dataset of patient health metrics. The model achieves high accuracy in identifying potential heart disease cases.
Key features used in prediction:
- Age and gender
- Chest pain type
- Resting blood pressure
- Serum cholesterol levels
- Fasting blood sugar
- Resting electrocardiographic results
- Maximum heart rate
- Exercise-induced angina
- ST depression induced by exercise
- Other cardiovascular indicators
application.py
: Main FastAPI applicationModels/
: Contains the trained machine learning modeltemplates/
: HTML templates for the web interfacestatic/
: Static assets (CSS, JavaScript, images)notebooks/
: Jupyter notebooks used for model development and analysis
- User accounts for tracking health metrics over time
- API integration for healthcare providers
- Enhanced data visualizations
- Integration with wearable device data
© 2025 Viraj Gavade. All Rights Reserved.
- GitHub: github.com/yourusername
- LinkedIn: linkedin.com/in/viraj-gavade
- Twitter: @viraj_gavade
- Portfolio: virajgavade.com
This project was developed as part of ML Learning Projects. If you have any questions or suggestions, feel free to reach out!