The 999th regression of Garbage (2024)

A web application for trash classification and price prediction. Users can upload an image to identify the type of waste, while a regression model predicts future market prices. The application also provides insights into price trends to help users decide whether to sell now or hold.

The 999th regression of Garbage
TensorFlowPythonGoogle ColabFastAPIFigma
✦

My responsibility

UX/UI Design

Redesigned the app's UX/UI to create a more consistent visual theme and improve overall user experience.

Figma

Data clean & AI Finetune

Cleaned and prepared the trash image dataset, then trained and fine-tuned a CNN model to classify recyclable waste into 4 types.

PythonTensorFlowGoogle Colab

Why does it matter?

Thailand produces 27.8 million tons of waste a year, and the number keeps growing. A big part of the problem is that people have little motivation to sort their trash, which slows down waste processing and makes it harder to know what recyclable waste is actually worth. Our idea was simple: if people could see the value in their garbage, they would have a reason to sort it. So we built a website where you just upload a photo of your trash to find out what it is and how much it could sell for.

How did we build it?

We split the project into three parts. First, an image classification model trained on a trash image dataset, narrowed down to 4 classes. Second, a price prediction model built from 3 years of recyclable waste prices, cleaned by sampling two days per month and averaging the price of each class. Finally, both models come together in a web interface where users can upload a photo and view price trends.

System diagram

About the AI model

We started from the RealWaste dataset on Kaggle, which has 9 waste categories, and removed the unused ones to keep only Glass, Metal, Paper and Plastic, 2,631 images in total. Then we trained a Convolutional Neural Network in Google Colab: stacked Conv2D and MaxPooling layers, followed by dense layers with dropout and a softmax output for the 4 classes. When we tested it on a real photo of a Coke can, the model correctly classified it as metal.

Model architectureModel training result

Website features

After uploading a photo, the website walks users through the result step by step: what the trash is, how much it is worth, and whether now is a good time to sell.

Classification Result

Shows the uploaded image with the detected waste type and how confident the model is, followed by the predicted selling price for that type.

Price Regression Graph

Fits a polynomial regression on almost 3 years of price data (Dec 2021 to Oct 2024) to predict the price over the next 15 days, then gives a simple recommendation: sell now, or hold on for a better price.

Price in Time Series Plot

Plots the prices of Steel, Paper, Glass and Plastic on the same timeline so users can compare the overall trend of each type at a glance.

Correlation between classes

A correlation matrix shows how the price of the detected type moves together with the other types, plus a regression plot against the most related one. For example, steel and paper prices have a correlation of 0.60.

Thank you