https://github.com/khushi-devi/diabetes_prediction_dashboard
This is an interactive Streamlit dashboard that analyzes the PIMA Diabetes dataset using multiple machine learning models. It visualizes data insights, compares model performance, and uses the best saved model with a scaler to provide real-time diabetes risk predictions based on user input.
https://github.com/khushi-devi/diabetes_prediction_dashboard
jupyter-notebook machine-learning python streamlit streamlit-cloud-deployment streamlit-dashboard
Last synced: about 2 months ago
JSON representation
This is an interactive Streamlit dashboard that analyzes the PIMA Diabetes dataset using multiple machine learning models. It visualizes data insights, compares model performance, and uses the best saved model with a scaler to provide real-time diabetes risk predictions based on user input.
- Host: GitHub
- URL: https://github.com/khushi-devi/diabetes_prediction_dashboard
- Owner: Khushi-Devi
- Created: 2025-11-25T07:49:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-25T08:35:04.000Z (7 months ago)
- Last Synced: 2025-11-28T15:22:20.622Z (7 months ago)
- Topics: jupyter-notebook, machine-learning, python, streamlit, streamlit-cloud-deployment, streamlit-dashboard
- Language: Jupyter Notebook
- Homepage: https://diabetespredictiondashboard-8bzv2keid8eaasfpxywwug.streamlit.app/
- Size: 1.74 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Diabetes Prediction Dashboard
A Machine Learning–Powered Interactive Health Prediction System
The AI Diabetes Prediction Dashboard is an interactive web application built with Streamlit that demonstrates the end-to-end machine learning workflow—from data exploration to model evaluation and real-time prediction. Using the PIMA Diabetes Dataset, the system trains multiple ML classifiers, compares their performance, and deploys the best-performing model for live inference.
=>Features
1. Data Exploration:-
Dataset preview,
Summary statistics,
Correlation heatmap,
Outcome distribution
2. Model Comparison:-
Evaluates multiple ML models,
Accuracy, Precision, Recall, F1-Score visualization,
Highlights best-performing model,
Performance comparison plots
3. Live Diabetes Prediction:-
User-friendly input form,
Automatic data scaling using saved scaler.pkl,
Predictions using best model stored as best_model.pkl,
Displays probabilities and model confidence,
Clean, modern UI with color-coded risk results
=> Machine Learning Workflow
1. Data preprocessing
2. Feature scaling
3. Model training (multiple algorithms)
4. Model evaluation and metric storage
5. Saving the best model and scaler using joblib
6. Deploying model inside Streamlit app
## How to Run
Follow these steps to set up and run the project locally:
- **Clone the repository**
```bash
git clone https://github.com/Khushi-Devi/diabetes_prediction_dashboard.git
cd diabetes_prediction_dashboard
- Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Linux/Mac
venv\Scripts\activate # On Windows
-pip install -r requirements.txt
-streamlit run app.py (run the dashboard)