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.
- π§ 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
| Layer | Tools Used |
|---|---|
| Frontend | HTML5, CSS3 |
| Backend | Python (Flask) |
| ML Model | scikit-learn, pandas, joblib |
| Dataset | diabetes.csv |
| Tools | VS Code, Git |
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
- Clone the Repository
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)
- python train_model.py
- Run the App
- python app.py
- Open in Browser
-
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
- π Add result visualization (charts/graphs)
- π§ͺ Improve model accuracy with better preprocessing
- βοΈ Deploy on Render, Railway, or Heroku
- π‘οΈ Add input validation and error handling
This project is for learning purposes only. Feel free to use, modify, and share with proper credit. Not intended for medical or commercial use.
- Made with β€οΈ by Aniket Sundriyal