This project is an end-to-end Machine Learning application that predicts whether a person is diabetic or not based on key medical attributes.
The solution integrates:
- A trained Machine Learning model
- A user-friendly web interface built using Streamlit
- Real-time prediction system
To develop a predictive system that:
- Analyzes patient health data
- Predicts diabetes risk
- Provides an easy-to-use interface for users
-
User enters medical details in the web app
-
Input data is converted into NumPy array
-
Data is reshaped for model compatibility
-
Pre-trained ML model makes prediction
-
Result is displayed as:
- ✅ Not Diabetic
⚠️ Diabetic
The model uses the following medical parameters:
- Number of Pregnancies
- Glucose Level
- Blood Pressure
- Skin Thickness
- Insulin Level
- Body Mass Index (BMI)
- Diabetes Pedigree Function
- Age
- Python
- NumPy
- Pandas
- Scikit-learn
- Pickle
- Streamlit
- Data Collection (Diabetes dataset)
- Data Preprocessing
- Feature Selection
- Model Training
- Model Evaluation
- Model Saving using Pickle
- Web App Development using Streamlit
A classification model is trained to predict diabetes outcome based on input features.
The trained model is saved as:
training model.sav
The Streamlit app provides:
- Input fields for medical data
- Prediction button
- Instant result display
git clone https://github.com/thejasdev/Diabites_ML_Project.git
cd Diabites_ML_Projectpip install -r requirements.txtstreamlit run frontend.pyDiabetes-Prediction-ML-Project/
│
├── app/
│ └── frontend.py # Streamlit app
│
├── model/
│ └── training_model.sav # Trained ML model
│
├── data/
│ └── diabetes.csv # Dataset
│
├── notebooks/
│ └── ml.ipynb # Training notebook
│
├── requirements.txt
├── README.md
└── .gitignore
- "The Person is Not Diabetic"
- "The Person is Diabetic"
- Improve UI/UX design
- Add data validation
- Deploy on cloud (AWS / Render / Streamlit Cloud)
- Add multiple disease prediction
- Improve model accuracy with advanced algorithms
- End-to-end Machine Learning pipeline
- Model deployment using Streamlit
- Handling real-world medical dataset
- Building interactive web applications
Thejas K S
If you found this project useful, consider giving it a ⭐ on GitHub!