I fine-tuned Qwen3-VL-4B with reinforcement learning (GRPO) to detect nine kinds of cafeteria waste, then built a sorter around it: a spectral sensor checks for grease, and a servo flap routes each item to recycling or landfill.
UMHealth's recycling vendor rejects a batch if more than 20–25% of it is contaminated. A clean item sent to landfill costs one item; a dirty one sent to recycling can cost the whole batch. So the system sends anything it is unsure about to landfill.
The model has one job: return every waste item in the photo as JSON ({"objects": [{"label", "bbox"}]}), with corner-format boxes on a 0–1000 grid. Routing stays outside the model. I started with a prompt-only 30B prototype (24 s per frame on an RTX 2000 Ada), moved to 8B (6 s), and settled on Qwen3-VL-4B, fine-tuned with reinforcement learning instead of supervised loss.
On 100 held-out test images, micro F1 at IoU 0.5 rose from 0.42 (base) to 0.58 (fine-tuned). The base model already placed boxes well: 25 of the 32 extra correct detections on validation were label fixes on objects it had already found.
Hallucination on empty regions. The fine-tuned model drew a box on almost every empty image tile, because no training image was ever empty and the reward could not score an empty answer as correct. I changed the reward to give full marks for "nothing" on an empty input and added 15% empty tiles to training. In a controlled experiment, with the success criteria fixed before testing, correct "nothing" answers rose from 0% to 85% (the base model scores 98%), at a cost of about 0.05 whole-image F1. These results are pending an independent recomputation.
How the grease check works. Clean cardboard's rough fibers scatter light, so it reads bright. Oil fills the gaps and the surface reads darker. A drop of 4% or more against a clean reference sends the item to landfill. In a bench test with oil spread on cardboard, the change was about 2.5× the normal variation between clean boxes, and calibration held within 0.2% over 8 days. Oil in one thick spot, honey, and plastic-lined cups are not yet detected reliably.
Every item's footage, spectral reading and decision is recorded. A dashboard compares readings against the clean reference and exports to CSV, JSON or Excel. Before trusting the sensor, I found three silent faults in an 80-reading pilot (duplicate reads, zero readings on dark items, placement-dependent readings) and fixed each one.
The model sometimes confuses paper with wrappers, single-spot stains slip past the grease check, and the system is not yet liquid safe, so liquid safety testing comes before a cafeteria field test. Next: fine-tuning on in-domain tray images, a broader contamination check, a servo-driven gate for touch-free use, and faster decisions.