A simple and powerful Machine Learning web application built with Streamlit that predicts whether a person is diabetic or not based on medical input features.
This project uses a Neural Network (Deep Learning Model) trained on the Pima Indians Diabetes Dataset to predict diabetes.
Users can input health-related parameters through a clean web interface and instantly get predictions.
- π§ Deep Learning Model (Keras / TensorFlow)
- π Interactive Web App using Streamlit
- β‘ Real-time Prediction
- π User-friendly input fields
- β Instant result display (Diabetic / Not Diabetic)
DIABETES_PREDICTION/
β
βββ app.py # Streamlit App
βββ train.py # Model Training Script
βββ test.py # Model Testing Script
βββ diabetes_model.h5 # Trained Model
βββ pima-indians-diabetes.csv # Dataset
βββ requirements.txt # Dependencies
βββ README.md # Project Documentation
- Algorithm: Artificial Neural Network (ANN)
- Framework: Keras + TensorFlow
- Activation Functions: ReLU, Sigmoid
- Loss Function: Binary Crossentropy
- Optimizer: Adam
- Pregnancies
- Glucose Level
- Blood Pressure
- Skin Thickness
- Insulin
- BMI
- Diabetes Pedigree Function
- Age
git clone https://github.com/selvan-01/diabetes-prediction.git
cd diabetes-prediction
pip install -r requirements.txt
streamlit run app.py
http://localhost:8501
Pregnancies: 2
Glucose: 120
Blood Pressure: 70
Skin Thickness: 20
Insulin: 85
BMI: 28.5
Pedigree: 0.5
Age: 30
- β Not Diabetic
β οΈ Diabetic
- π¨ Advanced UI/UX Design
- π Show prediction probability
- βοΈ Deploy to cloud (Streamlit Cloud / Render)
- π± Mobile responsive UI
If you like this project, give it a β on GitHub!
This project demonstrates how Machine Learning can be used in real-world healthcare applications to assist in early diagnosis and decision-making.