Computer Vision

Garbage Classification

An automated waste classification system using deep learning that categorizes garbage images into recyclable and non-recyclable categories. Trained on a diverse dataset with data augmentation techniques to handle real-world image variability.

PythonTensorFlowKerasOpenCVCNNTransfer Learning

Problem Statement

Waste sorting is largely manual, inefficient, and error-prone. Incorrect sorting leads to contamination of recyclable materials, reducing recycling effectiveness and increasing environmental impact.

Solution

Developed a CNN-based image classification system using transfer learning (ResNet50) fine-tuned on a curated waste dataset. Implemented data augmentation to improve generalization across varied lighting and backgrounds.

Key Features

  • 6-class waste categorization (glass, paper, cardboard, plastic, metal, trash)
  • Transfer learning with ResNet50 backbone
  • Extensive data augmentation pipeline
  • Real-time inference capability
  • Confusion matrix and per-class accuracy reporting
  • Model export for edge deployment

Challenges

  • High intra-class variability in waste appearance
  • Class imbalance in training data
  • Distinguishing visually similar categories (e.g., plastic vs. glass)
  • Achieving robust performance across varied lighting conditions

Results & Metrics

94% overall classification accuracy on test set

Real-time inference at 30+ FPS on GPU

Successful generalization to unseen waste types

Model optimized for potential edge deployment

Lessons Learned

  • 💡Transfer learning dramatically reduces training time and data requirements
  • 💡Data augmentation is crucial for real-world CV application robustness
  • 💡Confusion matrix analysis reveals systematic errors that guide model improvement

Case Study Overview

Case Study: Garbage Classification using Deep Learning

Developing a transfer-learning convolutional neural network to automate municipal waste sorting.

Technologies

PythonTensorFlowKerasOpenCVCNNTransfer Learning

Gallery

Screenshot 1
Screenshot 2

Related Projects

Computer Vision

OMR Grading API

Automated optical mark recognition system that grades bubble-sheet exams using computer vision, deployed as a production FastAPI service.