A deep learning-powered image classification project for real-time waste sorting, built with TensorFlow/Keras and deployed using Streamlit.
This project is aimed at automating waste segregation using artificial intelligence. By leveraging computer vision and convolutional neural networks (CNNs), it can classify waste images (e.g., cardboard, glass, metal, paper, plastic, trash) to promote accurate recycling and sustainable waste management.
- 💡 Image Classification: Recognizes 6 waste categories from photos
- 🟢 End-to-End Pipeline: Data preprocessing, model training (Jupyter), live web app deployment (Streamlit)
- 🚀 User Interface: Easy-to-use web app for drag-and-drop image prediction
- 📈 Customizable & Extensible: Easily retrain with new data or classes
Try it locally:
streamlit run Deployment/app.py
text
## Project Structure
Smart-Garbage-Segregation/
│
├── Data/
│ ├── Train/
│ └── Test/
│
├── Deployment/
│ ├── app.py
│ ├── utils.py
│ └── requirements.txt
│
├── weights/
│ └── modelnew.h5
├── smart_garbage.ipynb
└── README.md
text
---
-
Clone the repository
git clone https://github.com/<your-username>/Smart-Garbage-Segregation.git cd Smart-Garbage-Segregation -
Set up the environment
pip install -r Deployment/requirements.txt -
Run the Web App
cd Deployment streamlit run app.py
- Model is built and trained in
smart_garbage.ipynb. - Training uses a Convolutional Neural Network (CNN) with Keras/TensorFlow.
- Training and test datasets should be placed inside
Data/TrainandData/Testfolders respectively. - Trained weights are saved as
weights/modelnew.h5and loaded by the web app.
- Achieves strong performance on test images.
- Typical accuracy: 70%
- Handles real-world confusion between similar categories (e.g., paper vs cardboard).
- Some classes (like paper and cardboard) may be visually similar and occasionally confused.
- More training images can improve accuracy.
- Future ideas: integrate with IoT hardware, real-time camera input, or deploy as a public web demo.

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.
- Based on an open-source project by raison024
- Dataset and training approach inspired by public computer vision resources
Built by Team Roboinators, NIT Sikkim, 2025