# R19 · Candidate budget for automatic masks

## Confidence-ranked comparison on the development pairs · 2026-12-01

L20 generated useful-looking split hypotheses but increased the number of masks. To examine the tradeoff, take the existing L19 grid candidates and the expanded L20 set for the same three selected public images. Independently sort each image's candidates by MobileSAM's reported mask-quality score. At fixed maximum budgets of 5, 10, 20 and 40 candidates **per image**, plus all candidates, perform posthoc one-to-one reference-mask matching at IoU ≥ 0.5. One candidate cannot match both annotations. No new model inference or candidate generation is performed; the reference-based assignment is for scoring only. [View the chart](/results/r19/) and [download per-image assignments](/results/r19/candidate-budget.json).

At a budget of 20 per image, grid-only contained one matched target out of six and no complete pairs; the expanded set contained three matched targets and one complete pair. At 40 per image, grid-only contained three matches and one complete pair, while the expanded set contained four matches and two complete pairs. The latter numbers equal the all-candidate results for these three images. Budgets are ceilings, so a method with fewer candidates supplies fewer than the ceiling. These are counts for a tiny selected set, not precision or a recall estimate.

**Limits.** The same three images informed the design of the split heuristic; the annotations have no true pixel-overlap pairs; they are not Academy slides and may share a biological sample. The ranked candidates are not reviewed or automatically classified, and the scoring assignment uses ground truth. The SAM quality score is a model estimate, not a calibrated probability of a distinct diatom; scores from positive-only and positive-plus-negative prompts may not be directly comparable. Some apparent candidates are unannotated valid objects and others may be debris, duplicates or false splits. Neither review time nor a false-positive burden was measured. The chart cannot demonstrate practical improvement or generalization.

**Next.** Lock a proposal method and budget before testing on expert-adjudicated, sample-separated real crossings and partials. Include a matched candidate budget, a random and detector-based ordering, all count-eligible objects and uncertain exclusions, plus review time and false split/duplicate rates. Reproduce with `/tmp/diatom-research-venv/bin/python research/r19_candidate_budget.py` after L19/L20 outputs and the R18 images are present.
