Inspiration

Putting an item in the wrong bin can contaminate a whole recycling load, and people guess because the rules are confusing. BinRight is a small, honest helper: show it a photo of one item and it names the likely material (cardboard, glass, metal, paper, plastic, trash) and gives plain disposal guidance.

What it does

  • Upload or take a photo of one item.
  • A trained image classifier predicts the material and shows its confidence for the top three classes.
  • Below 60% confidence it does not force an answer. It says "Not sure", shows its best guess, and asks for a closer, better-lit photo.
  • Every result carries generic guidance and a reminder that local recycling rules differ.

How we built it

  • Model: MobileNetV3-Small (ImageNet-pretrained, frozen backbone) with a small classifier head (576 -> 128 -> 6) that we trained.
  • Data: TrashNet (2,527 photos, 6 classes), MIT License, https://github.com/garythung/trashnet. The dataset is not committed to our repo.
  • Evaluation: stratified 80/10/10 split (seed 42). Features were extracted once; the head was trained with early stopping on validation accuracy. All metrics below come only from the untouched 253-photo test split.
  • App: Flask, CPU inference only, dark charcoal and lime UI.

Results (untouched test split, 253 photos)

Test accuracy 88.1% (validation 91.7%). At the 60% confidence bar the model answers 97% of photos at 89.4% accuracy; at 80% it answers 90% at 92.5%. Per-class precision and recall are in the README.

Responsible AI use and honest limits

  • AI disclosure: an AI assistant wrote the code, ran the training and evaluation, and drafted this write-up and the demo video. The author directed and reviewed the work.
  • TrashNet is studio-lit, one item, white background. Real-world photos (clutter, odd light, mixed materials) will score worse than 88%.
  • The trash class has only 13 test photos, so its numbers are the least stable.
  • The model can be confidently wrong. In our demo video we show a metal can photo labeled glass at 100%. That is why the app shows alternatives and the abstain option, and why guidance is advice, not a ruling.
  • No user photos are stored or logged by the app.

What's next

Train on more cluttered real-world photos, add a local-rules lookup by city, and calibrate the confidence scores.

Demo video: https://youtu.be/cFNH24rj_WY Code: https://github.com/mjanthony819/binright

Built With

Share this project:

Updates

Submission history