# L20 · Automatic split hypotheses from grid masks

## Three-public-pair development experiment · 2026-12-01

**Question.** L18 showed that reference-derived negative points can separate two close valves, but their locations were supplied. Can a purely image-derived hypothesis produce useful negative points without knowing the target annotations?

**Method.** Start with L19's retained grid-prompt masks, generated without reference locations. For each mask with two sufficiently strong interior-distance maxima at least 20 pixels apart, create two prompt sets: each maximum is positive in one set and negative in the other. Prompt MobileSAM using those image-derived points. Keep outputs with the same area and model-score filters as L19; retain all original masks and add nonduplicate split hypotheses using mask-IoU suppression at 0.8. This can split a single long valve into two, so candidate masks are hypotheses, not final instances. No reference mask, reference point or taxon label is used to generate the hypotheses.

For evaluation only, match the resulting candidate masks to the two public reference polygons per image, one-to-one at mask IoU ≥ 0.5, maximizing target matches then total IoU. The method has **no automatic rule** selecting the reference-matched masks. [See all three comparisons](/results/l20/) and [download hypotheses, scores and mask paths](/results/l20/split-grid.json).

**Result.** For the first pair, original grid matching found 1/2 targets, whereas the expanded candidate set contains two distinct matches (IoUs 0.935 and 0.778), both from new split hypotheses. For the second pair neither set matched either target. For the third pair both sets contained two matches. Total retained candidates increased from 33→39, 35→47 and 31→43. Added proposals can be duplicate, irrelevant or incorrectly split, and the public annotations do not exhaustively label the images; do not call the unmatched outputs false positives or infer a practical review rate. The figure's reference-selected right column cannot be reproduced without ground truth at deployment.

**Limits.** The three pairs were selected and examined earlier, the two closest may share a sample, the reference polygons do not overlap in original pixels, and model and rule choices were informed by prior results on these same images. This is exploratory development, not held-out validation or an estimate of performance on Academy crossings. The local peak rule can focus on texture or divide one specimen. Thresholds and the IoU cutoff are heuristic; no reviewer effort, classification or ground-truth negative set was measured.

**Next.** Compare a locked rule with learned proposal generation and analyst points on independently collected, expert-adjudicated real overlap groups. Evaluate complete-pair recovery at a shared candidate/review budget, false splits, duplicates, missed fragments, source-plane provenance and actual correction time. Reproduce with `YOLO_CONFIG_DIR=/tmp/diatom-yolo-config MPLCONFIGDIR=/tmp/mpl-diatom /tmp/diatom-research-venv/bin/python research/l20_split_grid.py`; it depends on the cached L19 masks, R18 images and `/tmp/mobile_sam.pt`.
