Back To Projects
AI-Based Image Classification Used to Accurately Distinguish Recyclable Material Versus Non-Recyclable Material
Katarina A. | Summer 2022 |
workspace_premium Synopsys Science Fair

One cause of this improper disposal of materials is that it can be difficult to tell if a material is able to be recycled. In response, I created a machine learning model that can distinguish recyclable materials from trash through image classification.


In today’s world, pollution is increasing as plastics and other materials are not recycled properly, resulting in landfills. One cause of this improper disposal of materials is that it can be difficult to tell if a material is able to be recycled. In response, I created a machine learning model that can distinguish recyclable materials from trash through image classification. For my model, I used a dataset called trash-net. I first extracted the contents of the data and resized the dataset in order to have better organization. There are six categories within the dataset: cardboard, glass, metal, paper, plastic, and trash, that the images are organized in. I used resnet34 which is a pre-trained convolutional neural network (CNN) in order to perform the image classification. Afterwards, I trained my model by running the program repeatedly and then tested it by seeing if it accurately predicted if a material was recyclable or not. Lastly, I used matplotlib to visualize the results. The accuracy of the model ended up being about 88%. Generally, if the accuracy of a machine-learning model is higher than 50% then it performs relatively well. With more training and a greater number of images, the program could potentially increase in accuracy. In conclusion, I think my model would help as it could generally classify if a material was recyclable or not. However, an application in which the user directly scans an item would be more useful. Nevertheless, my model performed well and enabled me to learn more about the use of artificial intelligence.

Explore More!

Katarina A.
Ayush Pandit
PhD Candidate at Stanford, prior Stanford Bioengineering Alum

Related Projects

Predicting NH4 Levels for Corn Crop in Wisc

Ammonium (NH4), an organic matter that accumulates in the top portion of soil, can pose a serious risk to biodiversity. Using machine learning to construct regression models, NH4 levels can be predicted and therefore mitigated. In this paper we used linear, ridge, and lasso regressions. Through the evaluation of crop farming factors that contribute to the NH4 levels, it was concluded that NO3 and N2O have the most direct correlation to NH4. These factors yielded the best accuracy for regression models with the best performing model being a multiple feature linear regression which resulted in 60% accuracy. While certain measures did improve the model’s performance, outliers continuously worsened the results.
Julia S. | Summer 2022
Mentored by Barbie Duckworth
workspace_premium
Impact of Class Weights and Feature Importance in Automated Stroke Detection

In this research paper, we do a parametric study of class weighting as a way to tackle imbalance during training. We then infer the most important features that should be taken into consideration for stroke prediction.
Avyukth H. | Summer 2022
Mentored by
Using Logistic Regression in the Early Detection of Tsunamis caused by Earthquakes

Many tsunamis have enough energy to cause a large amount of human death, as well as trillions of dollars in damage repair. The problem arises on how to better prepare for these natural disasters and limit its damage, especially in countries such as Japan that are frequented by tsunamis.
Ian C. | Summer 2022
Mentored by