๐ฉบ Diabetes Prediction App โ Flask ML Web Application
๐ฆ Overview
Diabetes Prediction App is a web application built with Flask that predicts the likelihood of diabetes based on user health input data. The ML model is trained using the popular Pima Indians Diabetes Dataset and deployed via a Flask server with a clean and responsive user interface.
โ ๏ธ Note: This project is for educational purposes only. It does not replace professional medical advice or diagnosis.
โจ Features
- ๐ง Predict diabetes risk using ML
- ๐ User-friendly web form for data input
- โ๏ธ Data pre-processing and scaling
- โก Real-time predictions via trained model
- ๐จ Responsive frontend using HTML/CSS
- ๐ Easy-to-understand project structure
โ๏ธ Tech Stack
Layer |
Tools Used |
Frontend |
HTML5, CSS3 |
Backend |
Python (Flask) |
ML Model |
scikit-learn, pandas, joblib |
Dataset |
diabetes.csv |
Tools |
VS Code, Git |
๐๏ธ Project Structure
diabetes-prediction-app/
โโโ templates/
โ โโโ index.html # Web UI
โโโ diabetes.csv # Dataset
โโโ model.pkl # Trained ML model
โโโ scaler.pkl # Scaler object
โโโ train_model.py # Model training script
โโโ app.py # Flask backend app
โโโ Screenshot.png # Demo screenshot
โโโ README.md
๐ธ Screenshot 1
๐ธ Screenshot 2
๐ธ Screenshot 3
โถ๏ธ How to Run Locally
- Clone the Repository
```bash
git clone https://github.com/GxAniket/diabetes-prediction-app.git
cd diabetes-prediction-app
- Install Dependencies
- pip install -r requirements.txt
- Train the Model (Optional)
- Run the App
- Open in Browser
๐ง Learnings & Goals
-
This project helped me:
- Understand end-to-end ML model deployment
- Build Flask-based data apps
- Use scikit-learn for model training and scaling
- Design clean and responsive HTML interfaces
- Learn the structure of real-world Python apps
๐ Future Enhancements
- ๐ Add result visualization (charts/graphs)
- ๐งช Improve model accuracy with better preprocessing
- โ๏ธ Deploy on Render, Railway, or Heroku
- ๐ก๏ธ Add input validation and error handling
๐งพ License
This project is for learning purposes only. Feel free to use, modify, and share with proper credit. Not intended for medical or commercial use.
๐ Author
- Made with โค๏ธ by Aniket Sundriyal