Skip to content

Transfer learning and pre-trained model fine-tuning to classify images as either recyclable or organic waste

Notifications You must be signed in to change notification settings

rafev/Waste_vs_Recyclable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Waste vs Recyclable

Suppose there was a need to automatically classify items as organic waste or recyclable, how could could this be done? One way is to capture an image of the items and classify them for downstream sorting. The notebook within this repo demonstrates how to fine-tune an existing image classifying model using transfer learning. Here, the pre-trained VGG16 Convolution Neural Network (CNN) model from the Keras library is fine-tuned as an example of how to quickly develop such a model.

Within the notebook is a full walkthrough showing how data was loaded, the model building process, training, and performance validation. Additionally, there are visualizations included to assess the dataset, overall model performance, and prediction accuracies.
Below is an example of the images used for training and validation (500 for each class, 1,000 total), and final testing (100 for each class, 200 total).
d7f394dd-a6f1-41d4-8fdc-e79d1d18be4c
d615b537-4eb4-4afe-b4b1-25477d40e781

Results Overview

The model was able to achieve 80% accuracy on the test set, with similarly high and training/validation accuracies and loss, respectively.
TrainVal_accTrainVal_loss

Below is an example of the test set predicitons.
WasteRecyc_predictions

About

Transfer learning and pre-trained model fine-tuning to classify images as either recyclable or organic waste

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published