arrow_back all projects
research 2025

Label-Efficient Instance Segmentation for Cluttered Recycling Streams

How much of an instance-segmentation annotation budget is actually load-bearing? On ZeroWaste-f, a quarter of the labels recovers 80.5% of the full-label mask AP.

Instance masks are the most expensive annotation there is. On a recycling conveyor — deformable objects, heavy occlusion, six instances in an average frame — someone has to trace every piece of cardboard by hand. So the question worth asking before training anything is not how accurate can this get, but how much of that tracing is actually buying accuracy.

I ran a label-fraction sweep on ZeroWaste-f (3,002 train / 572 val / 929 test frames, four classes) with two architectures under a fixed optimizer-step budget and one shared evaluator. 22 runs, every one of them in a runs.jsonl ledger that every number on this page is derived from.

The curve

0.00 0.05 0.10 0.15 0.20 0.25 0.30 5%10%25%50%100% labelled training frames mask AP @ [.5:.95] YOLO11s-seg Mask R-CNN R50-FPN
At 25% of the labels, YOLO11s-seg keeps 80.5% of its full-label mask AP.
Shaded band is the min–max envelope across seeds, not a standard error — with 1–5 runs per point, an error bar would claim a precision the data doesn't buy. 19 runs, superseded runs excluded.

A quarter of the labels recovers 80.5% of the full-label mask AP. Half recovers 89.9%. Returns diminish sharply: 5% → 25% adds 600 annotated frames and 8.4 AP; 25% → 100% adds 2,250 frames and 5.3.

Two caveats I’d rather state than bury. The denominator is a single seed, so the retention figures inherit its noise with no way to estimate it. And no run at 25% or above early-stopped — all of them ran out of step budget rather than converging, which means the full-label point is an under-trained reference and the real curve is probably a little flatter than this one.

What the gap actually looks like

A curve doesn’t tell you what 8 AP looks like on a belt. These are the same test frames through the same model at three annotation budgets — no inference happens here, every panel is decoded from the predictions each run already wrote.

ground truth: 10 instances on 01_frame_038700.jpg
ground truth 10 inst
5% labels: 11 instances on 01_frame_038700.jpg
5% labels 11 inst
25% labels: 14 instances on 01_frame_038700.jpg
25% labels 14 inst
100% labels: 27 instances on 01_frame_038700.jpg
100% labels 27 inst
Mask R-CNN R50-FPN on the ZeroWaste-f test split, predictions filtered to score ≥ 0.5. Fill colour is the predicted class; the outline is per-instance, because in a bin two adjacent cardboard sheets blend into one shape and whether the model separated them is the thing worth looking at. Frames from ZeroWaste-f (Zenodo 6412647, CC BY-NC), Bashkirova et al., CVPR 2022.

The low-budget model doesn’t produce worse masks so much as fewer of them. Mask quality holds up (mean matched IoU is 0.70–0.73 across the whole sweep); what collapses at 5% is recall on the cluttered middle of the pile.

Where the error actually is

Per-class AP at full labels says most of what’s wrong:

per-class mask AP @ [.5:.95], test split, 100% labels
class mask AP value
cardboard
0.363
soft plastic
0.312
rigid plastic
0.216
metal
0.193
overall 0.271
per-class mask AP @ [.5:.95], test split, 100% labels. Run yolo11s_f100_s0_sup_1aac6311.

Metal is half of cardboard. And the gap between class-aware and class-agnostic mask AP is 0.121 for YOLO and 0.109 for Mask R-CNN — 30.9% and 31.3% of class-agnostic AP respectively. Two different architectures, two different optimizers, two different schedules, losing almost exactly the same share of their accuracy to getting the class wrong rather than the mask wrong. That near-identity is the informative part: it points at the data, not at either model.

TIDE agrees independently, without being asked to:

Cls
right box, wrong class
20.8
Bkg
detected something that is background
7.1
Loc
right class, box off
2.9
Miss
an object with no detection at all
1.7
Dupe
a second detection on an object already found
0.6
Both
wrong class and wrong box
0.4
TIDE dAP contribution, test split, 100% labels. Each value is the mask AP that would be recovered by fixing that error type alone. Run yolo11s_f100_s0_sup_1aac6311.

Classification error alone costs more mask AP than every other error type combined. Localisation — the thing you’d reach for a better mask head to fix — costs 2.9. So the highest-value next move on this dataset is class-balanced sampling, not a bigger backbone.

Notes on method

A few things I’d want a reader to check me on, because they’re the ways a result like this normally goes wrong:

  • Conversion ceiling. Ground truth was round-tripped COCO → YOLO polygons → masks and re-evaluated through the production evaluator before any model was trained. Round-trip mask AP is 0.9974, so conversion costs ~0.26% and no downstream number needs an asterisk for it.
  • Video adjacency. ZeroWaste is video, and if test frames neighbour train frames every number here is inflated. 12 of 929 test frames (1.29%) sit within 5 dHash bits of a train frame, so every headline table carries a deduplicated-test column alongside the official split.
  • Superseded runs. Three of the 22 rows in the ledger are superseded full-label runs. Including them would silently rebase every retention figure on this page, so the export that feeds these charts filters them and a unit test asserts the published headline reproduces — a bad re-run fails CI instead of quietly shipping a wrong curve.
  • A 10.8-hour training time that was actually 1.8. The per-epoch trace showed one epoch at 9.15 h: the laptop suspended overnight and wall-clock counted it as training. Caught by cross-checking against an earlier run of the identical config, which agreed to within 0.2%.

Full write-up, the step-budget argument, the deployment latency numbers, and everything I got wrong along the way are in report.md.

Dataset: ZeroWaste-f (Bashkirova et al., CVPR 2022), used here under CC BY-NC. The code is AGPL-3.0, inherited from Ultralytics YOLO11; the measurements and renders on this page are outputs, not source.