Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


🩺 Diabetes Prediction App using Machine Learning

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.


πŸš€ Project Overview

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.


🎯 Features

  • 🧠 Deep Learning Model (Keras / TensorFlow)
  • 🌐 Interactive Web App using Streamlit
  • ⚑ Real-time Prediction
  • πŸ“Š User-friendly input fields
  • βœ… Instant result display (Diabetic / Not Diabetic)

πŸ“‚ Project Structure

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

🧠 Machine Learning Model

  • Algorithm: Artificial Neural Network (ANN)
  • Framework: Keras + TensorFlow
  • Activation Functions: ReLU, Sigmoid
  • Loss Function: Binary Crossentropy
  • Optimizer: Adam

πŸ“Š Input Features

  1. Pregnancies
  2. Glucose Level
  3. Blood Pressure
  4. Skin Thickness
  5. Insulin
  6. BMI
  7. Diabetes Pedigree Function
  8. Age

▢️ How to Run the Project

1️⃣ Clone the Repository

git clone https://github.com/selvan-01/diabetes-prediction.git
cd diabetes-prediction

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Run the App

streamlit run app.py

4️⃣ Open in Browser

http://localhost:8501

πŸ§ͺ Sample Input

Pregnancies: 2
Glucose: 120
Blood Pressure: 70
Skin Thickness: 20
Insulin: 85
BMI: 28.5
Pedigree: 0.5
Age: 30

🎯 Output

  • βœ… Not Diabetic
  • ⚠️ Diabetic

πŸ“Œ Future Improvements

  • 🎨 Advanced UI/UX Design
  • πŸ“Š Show prediction probability
  • ☁️ Deploy to cloud (Streamlit Cloud / Render)
  • πŸ“± Mobile responsive UI

πŸ”— Links


⭐ Support

If you like this project, give it a ⭐ on GitHub!


🏁 Conclusion

This project demonstrates how Machine Learning can be used in real-world healthcare applications to assist in early diagnosis and decision-making.


About

🩺 Diabetes Prediction App using Deep Learning | Streamlit Web App πŸš€ An interactive Machine Learning application that predicts diabetes based on medical inputs using an Artificial Neural Network (Keras & TensorFlow). Features real-time prediction, user-friendly UI, and healthcare-focused insights.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages