A computer vision-based project to classify and segregate waste using image recognition techniques.
This project uses a deep learning model trained on image data to automatically classify waste into different categories.
The goal is to aid smart and sustainable waste management systems by helping machines identify recyclable and non-recyclable waste through image input.
Ali Akbar Khan
- Python
- Fastai
- PyTorch
- Gradio (for UI)
- Jupyter Notebook
- Architecture:
resnet18pretrained CNN - Training: Fine-tuned for 10 epochs using Fastai's
vision_learner - Metrics: Achieved high accuracy (close to 92%) on validation set
The dataset contains labeled images of different types of waste, categorized into classes like:
- Recyclable
- Organic
- Hazardous
- Others (can be customized)
git clone https://github.com/aliiakbarkhan/deep-learning-waste-segregation.git
cd deep-learning-waste-segregationpip install -r requirements.txtUse Jupyter or VSCode to open waste-segregation.ipynb and run all cells.
python app.pyThe model can take any image of waste and classify it into one of the predefined categories with high accuracy. Here's a snapshot of predictions from the Gradio interface.
waste-segregation/
├── waste-segregation.ipynb # Main notebook
├── model.pkl # Trained model (optional)
├── app.py # Gradio app (if created)
├── README.md # Project documentation
└── requirements.txt # Dependencies
