Garbage Classification
Goal:
Garbage classification using image of the product at user level directly.
ResNet model in CNN is used here to perform image classification
Optimizers used: Adam and Adamax
Evaluation score:
0.97
Future perspective:
Future perspective:
This system can be extended further to create single bin at public places which change internally based on the type of item being disposed capturing the image of it and changing the bin to be used accordingly.
Advantages:
- It would expand the classification of products to be recycled at user level directly. It would in turn reduce the manual effort required for the same during recycling process.
- A user unaware of the category might mistakenly place the wrong type of items in a bin. Automating it would avoid these manual errors and reduce to effort at backend later.
Experimental observations and analysis:
Implemented the model using following ways:
- MobileNetV2 with sigmoid
- MobileNetV2 with softmax
- MobileNetV2 with sigmoid
- ResNet with sigmoid
However, the accuracy achieved using them was low in this case.
The model finally used is:
ResNet with sigmoid
Optimizers used: Adamax and Adam
Hyperparameter tuning: I has been done by trying different possible optimizers.
However, using Adam and Adamax together helped improving the accuracy.
Following were the patterns in Accuracy and Loss seen:
Accuracy V/S No. of Epochs for Adam optimizer
Accuracy V/S No. of Epochs comparison for Adam and Adamax optimizer
Loss V/S No. of epochs for Adam optimizer
Loss V/S No. of epochs for Adamax optimizer
Prediction of an image from Test data
Prediction of an external image taken using image capture
Code:
Kaggle link for code:
Google Colab link for code :
Github link for code:
You tube video:
You tube demo:
Challenges faced:
Handling data in form of tensors and using it to train the model.
Exploring all possible models and their hyperparameter tuning.
References:
References:
https://www.kaggle.com/sandeep1022/transfer-learning-classification
https://www.kaggle.com/swatidamele/pytorch-garbage-classification-95-accuracy/edit
https://www.kaggle.com/asdasdasasdas/garbage-classification
https://download.cnet.com/Garbage-classification-guide/3000-2094_4-78496055.html
https://stackoverflow.com/questions/54389727/opening-web-camera-in-google-colab
Contributions:
- Handling data variations in different formats by removing unnecessary part of content used for getting proper values.
- Improved the accuracy of the model to a good amount.
- Created an option for capturing an external image using webcam and predicting its class.







Comments
Post a Comment