BinSight — AI Waste Sorting, Contamination Triage & Municipal Diversion Analytics

Arbiter Hacks V1 — Theme Track: Waste Reduction, Sorting & Recycling

Every fourth item dropped into a US residential recycling bin doesn't belong there — forcing Material Recovery Facilities (MRFs) to reject entire bales, charge municipalities $125–$175 per ton in contamination surcharges, and fight preventable lithium-battery fires. BinSight turns municipal recycling rules into instant, actionable sorting decisions for residents and exportable diversion analytics for cities.


Theme Track Impact Statement

Roughly 25% of US residential recycling is contaminated by "wish-cycling" — residents tossing greasy pizza boxes, foil-lined chip bags, #7 PLA bioplastic cups, unrinsed dairy tubs, plastic film tanglers, and even lithium-ion batteries into curbside blue bins. A single grease-soaked box or 1% mix of PLA bioplastic can spoil an entire multi-ton paper or PET #1 bale, turning recyclable commodities into landfill waste while costing cities $125–$175 per ton in MRF contamination penalties and tipping fees. BinSight attacks contamination at the exact moment of disposal by pairing a municipal rule-override engine (Seattle, San Francisco, Austin, NYC, plus any custom ZIP rulebook) with real-time contamination-risk scoring (0–100) and part-by-part prep instructions. Every triage event is tracked against measurable KPIs: diverted weight (lbs), avoided MRF contamination fines ($/ton), CO2e emissions avoided (kg, modeled on EPA WARM factors), high-risk wish-cycling interceptions, and estimated contamination-rate reduction — all exportable as municipal audit CSV and JSON reports for immediate pilot deployment by cities, campuses, and haulers.


How It Works in 30 Seconds

Step Resident or Facility Action BinSight Output
1. Select Municipality or ZIP Pick Seattle, San Francisco, Austin, NYC, or configure a Custom ZIP Rulebook. Loads local MRF acceptance criteria, compost rules, and contamination fee ($/ton).
2. Snap, Type, or Tap an Item Upload a photo, type an item + condition (greasy, dirty, clean, swollen), or tap a real-world ambiguous preset. Returns an instant bin decision (Recycle / Compost / Trash / HazMat / Split Stream) with a 0–100 Contamination Risk Gauge.
3. Prep & Audit Diversion Follow part-by-part prep steps (hover-linked to split parts) and open the Facility Analytics tab. Records diverted lbs, avoided MRF fines, CO2e saved, and top resident confusion items with one-click CSV/JSON export.

Inspiration

Most people want to recycle correctly — they just run into contradictory rules. A clear cup stamped "Compostable #7 PLA" belongs in the green compost bin in Seattle and San Francisco, belongs in the Trash in Austin and New York City, and ruins PET #1 recycling bales everywhere. Meanwhile, cities spend millions on printed mailers that residents throw away and have almost no structured telemetry on which items confuse households most. We built BinSight to bridge both sides: zero-friction sorting guidance for residents and real contamination-cost analytics for municipalities.


What It Does

  • Municipal Rulebook Override Engine: Ships with real-world accurate rulebooks for Seattle (SPU), San Francisco (Recology), Austin (ARR), and New York City (DSNY) — plus a live Custom ZIP & Rulebook Builder where any city or campus can toggle curbside compost, PLA acceptance, soiled-paper composting, glass collection, and local MRF surcharge ($/ton).
  • Part-by-Part Split Triage & Contamination Risk Scoring: Instead of oversimplified yes/no answers, BinSight handles real-world ambiguous items — telling you to tear the clean lid off a Greasy Pizza Box for Recycling while composting (or trashing) the oil-soaked base, scraping and rinsing a Dirty PP #5 Yogurt Tub while trashing the foil peel seal, and hard-blocking Lithium-Ion Batteries from all curbside bins as a 95+ CRITICAL HazMat fire hazard.
  • Calm Executive UI + Slide-Over Audit Inspector (•••): Keeps the primary sorting screen spacious and distraction-free with a collapsible 3-step guide, interactive hover-linked split parts, Dark/Light themes, and 0px horizontal overflow across desktop, smartphone, and dual-pane foldable displays. Deep rule-engine provenance (fired rule IDs, agency source, resin code, confidence, and latency) lives cleanly in the ••• Inspector Drawer.
  • Facility Contamination & Diversion Dashboard: Aggregates diverted weight, diversion rate, avoided MRF contamination fines ($), EPA WARM CO2e savings, disposal stream breakdown, and ranked Top Resident Confusion Items, with one-click RFC 4180 CSV and structured JSON municipal audit exports.

Why Not Just Use a Bin Sticker or Ctrl+F?

Challenge Static Sticker / Web Search BinSight
PLA Cup in Seattle vs. Austin Generic advice causes cross-stream contamination. Automatic municipal rule override flips Compost ↔ Trash accurately.
Greasy Pizza Box Binary "Yes/No" wastes clean lids or ruins paper pulp. Split-stream action salvages clean cardboard lid & isolates grease.
Unknown Mixed Item Residents guess ("wish-cycle"). Anti-wish-cycling safeguard defaults to Trash to protect clean bales.
City Waste Managers No data on confusion spikes. Live contamination ledger + downloadable CSV/JSON audit reports.

How We Built It

  • Backend: Python 3.11 + FastAPI + Pydantic v2 with a deterministic hybrid waste triage engine (app/classifier.py), municipal rulebook resolver (app/municipalities.py), and diversion/cost analytics ledger (app/analytics.py).
  • Frontend: Lightweight, zero-build-fragility mobile-first SPA (frontend/index.html, styles.css, app.js) with Dark/Light theme persistence, animated circular contamination gauge, cross-panel hover linking, and slide-over Inspector Drawer.
  • Container & Verification: Production Dockerfile exposing port 8000 with built-in /health check and a 24-test pytest suite validating municipal overrides, contamination cost math, image upload triage, and CSV/JSON exports.

Challenges We Ran Into

  1. Modeling Realistic MRF Contamination Economics: A single 1-ounce PLA cup or greasy pizza base doesn't just add 1 ounce of trash — it spoils surrounding clean fibers or PET resin flakes. We modeled transparent hazard-category multipliers (compute_mrf_impact) paired with each city's actual MRF contamination surcharge ($/ton) and EPA WARM CO2e factors so municipal teams can audit every number.
  2. Keeping Technical Depth Without Cluttering the Resident Experience: Judges and waste engineers want to see exact rule IDs and resin classifications, while residents need a 2-second answer. Moving rule-engine telemetry into the slide-over ••• Inspector Drawer gave both audiences exactly what they need.

Accomplishments We're Proud Of

  • Real municipal divergence working live across 4 major US cities plus custom ZIP rulebooks.
  • 100% passing automated test suite (24 passed) covering classifier overrides, contamination fine math, API routes, and RFC 4180 CSV / JSON audit exports.
  • Deployable single-container architecture (Dockerfile + /health) ready for municipal websites, apartment complexes, or campus sustainability kiosks.

What's Next

  • Integrating live barcode/UPC packaging lookup (How2Recycle database) and on-device camera vision models for instant offline scanning.
  • Adding municipal webhook alerts when a neighborhood's wish-cycling rate for a specific material (like plastic film or batteries) spikes.
  • Partnering with local haulers and university campuses for a 90-day bin-side QR pilot measuring real bale-rejection reduction.

Judge Verification Steps (Under 2 Minutes)

  1. Run docker build -t binsight . && docker run -p 8000:8000 binsight (or uvicorn app.main:app --port 8000) and open http://localhost:8000/.
  2. Tap Greasy Pizza Box in Seattle, WA → verify Split Stream (Recycle clean lid + Compost greasy bottom) and hover parts to highlight matching prep steps.
  3. Tap Compostable PLA Cup in Seattle, WA (Compost) → click Austin, TX → verify it immediately flips to Trash with the MUNI-PLA-REJECT-OVERRIDE rule in the ••• Inspector Drawer.
  4. Tap Lithium-Ion Battery → verify 95+ CRITICAL HazMat block and terminal-taping steps.
  5. Open Facility Analytics → click Export CSV and Export JSON to inspect the municipal audit export.

Built With

Share this project:

Updates

Submission history