Skip to content

devakisj1/Garbage-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Garbage-Classifier

AI enabled garbage classifier

Objective:

To create a model that automates the process of segregating waste, creating a high-tech garbage sorting system. We have used diverse dataset of images representing different types of garbage items. The proposed model distinguishes between the garbage types based on features such as shapes, textures, and patterns within the images.

Dataset EDA

  • Total images : 2527
  • Image dimensions : 512 X 384
  • Format : JPEG
  • No.of Image class : 6(metal, glass, paper, trash, cardboard,plastic)

Screenshot 2024-12-19 231834

Data Preprocessing:

  • As the class distribution is unbalanced, we have carried out image augmentation on the different classes to make them have the same number of images.

  • It includes making minor changes to the dataset to generate new data points. In the case of image augmentation, we make geometric and color space transformations (flipping, resizing, cropping, brightness, contrast) to increase the size and diversity of the training set.

  • Post augmentation all classes have 600 images each.

Screenshot 2025-01-09 103931

Model Selection:

  • After extensive testing on various models such as basic CNN and various flavours of Resnet models, we have chosen the pretrained Resnet 50 V2 model .

  • ResNet50V2 incorporates some improvements and optimizations over the original ResNet architecture.

  • Added custom layers (global average pooling, dense layers, dropout) to adapt to the garbage classification task.

Screenshot 2025-01-09 104119

Model Evaluation:

Model exhibits a testing accuracy of 92.5 % We have also tested the model on images captured by us: pictures various garbage items found in our own homes. Model displayed very good accuracy on these images too.

Screenshot 2025-01-09 104448

Challenges in implementation

The similarity between categories: for example, glass and plastic objects—can make them appear similar in photos, which presents another difficulty for model trying to tell them apart.

About

AI enabled garbage classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages