# L19 · Unprompted grid candidates from MobileSAM

## Three-pair development diagnostic · 2026-12-01

The L18 negative-point result requires the locations of both targets. To test whether prompts can instead be generated without reference marks, lay a fixed 64-pixel grid (offset 32) over each resized 768 × 576 public pair image. Run MobileSAM independently for each of 108 positive points, caching the image encoder, and keep masks with model-predicted quality ≥ 0.6 and area between 300 and 50,000 pixels. Apply confidence-ordered mask-IoU suppression at 0.8. These thresholds are fixed heuristic choices, not independently calibrated for diatoms. The model and image preprocessing are as in R16/L18.

On the same three non-overlapping reference pairs from [R18](/results/r18/), 33, 35 and 31 masks remained after filtering and suppression. Posthoc one-to-one matching to the two annotated targets at mask IoU ≥ 0.5 assigned 1/2, 0/2 and 2/2 targets respectively. One candidate can match at most one target. The matched mask in the first image has IoU 0.528 and visually covers substantial additional material, showing why a threshold alone is not a complete quality assessment. [View target crops and matched examples](/results/l19/); [inspect all mask paths and scores](/results/l19/grid-proposals.json). Individual full-field masks are retained under `results/l19/case-*`.

This is a selected three-image stress test, not a recall or precision estimate. The reference polygons nearly touch but do not have overlapping pixels; they do not establish performance on true projected crossings. Unmatched candidates may be unannotated objects, debris, duplicates or spurious masks; the full images do not have exhaustive annotations, so we cannot count false positives. The selected examples were already examined, source samples may be related, and there is no automatic method here to pick the two reference-matched outputs. The [YOLO comparison](/results/r18/) used box IoU matching, so its counts cannot be interpreted as a matched mask-quality benchmark. Large candidate counts suggest potentially substantial review burden, but no reviewer timing was measured.

**Next.** Compare learned or detector-guided prompt proposals against regular grids at a shared candidate/review budget on expert-reviewed local crossings. Include multiple hypotheses without suppressing legitimate overlaps, report complete overlap groups, duplicates and false proposals, and test an uncertainty-driven correction flow. Reproduce with `YOLO_CONFIG_DIR=/tmp/diatom-yolo-config MPLCONFIGDIR=/tmp/mpl-diatom /tmp/diatom-research-venv/bin/python research/l19_grid_proposals.py` after obtaining the R18 selected images and `/tmp/mobile_sam.pt`.
