# R111 · Whole-field context for tile-edge candidates

[All 17 visual comparisons](/results/r111/) · [pre-inference protocol and prompts](/results/r111/protocol.json) · [results and per-candidate geometry](/results/r111/results.json) · [full inference replay](/results/r111/verify.log) · [runner](/research/r111_run.py)

## Question and controlled setup

R110's tiled MobileSAM often produced candidates touching their tile boundaries on actual Academy slides. Can the same model use the surrounding whole-field image to offer alternatives to those potentially truncated masks? Freeze the selection and prompting before inference: take every top-ten R110 tiled candidate touching at least one **internal** tile boundary, not a field edge, on all four already viewed Academy fields. This yields 17 candidates (3, 3, 5 and 6 per field); these are model outputs, not confirmed or unique diatoms. Source crops are 512×512 native grayscale pixels; the earlier results retain slide coordinates, physical calibration and original neighboring planes.

For each candidate run two separate whole-field MobileSAM prompts: its original variance-selected point, and a box around its original mask enlarged on each side by 25% of the mask extent with minimum 16 pixels. Keep original tile masks and both outputs, regardless of their scores. Each field gets one image encoding and two queries per selected candidate. Do not use a human reference, suppress candidates based on overlap, or imply that an extended mask represents a single specimen. The visual report includes every selected case in original order, original image and all masks.

## Results

| Geometric observation (17 candidates) | Original point on whole field | Expanded box on whole field |
|---|---:|---:|
| At least one pixel past a contacted internal tile edge | 14 | 16 |
| Retains at least 80% of original mask pixels | 13 | 15 |
| Both extension and at least 80% retention | 12 | 15 |
| Generated area greater than four times original | 1 | 0 |

These are geometric diagnostics with arbitrarily fixed thresholds, **not** biological accuracy or proof that the extension is useful. A one-pixel extension is enough to count. A mask can preserve an erroneous original region, join separate overlapping specimens or extend into debris. For example, in [field 3, case 4](/results/r111/field-2-case-03.jpg) the point-prompt mask grows to 5.57 times the original and covers a much broader central region, while the box-prompt mask stays narrower. The point prompt also retained only 6% of an original candidate in a different field-3 case; neither example establishes whether the resulting boundaries are correct. The contextual masks are alternate hypotheses, not automatic replacements.

New per-field inference times, including one image encoding and 6–12 queries, were 0.27–0.33 seconds on two CPU threads. Model initialization and timing paths differ from R110; these are not comparable throughput benchmarks. Adding both alternatives potentially adds 34 masks across the four fields before any duplicate handling; no reviewer-time savings or equal-budget recovery has been established. The R110 original streams and mask aliases are unchanged.

An independent verification script reconstructed all 17 selections, tile contacts, boxes and geometric metrics from the saved R110 masks; checked input and archive hashes; and replayed all 34 model queries. All replayed masks were bit-identical and quality differences were zero in this environment. This establishes reproducibility on those images, not annotation quality, generalization, or human-level performance. The four fields are unlabelled, previously viewed and drawn from two files whose biological sample relationships are unknown.

## Decision

Whole-field re-prompting is a cheap way to produce potentially useful context-dependent **alternatives**, particularly the expanded-box variants, but do not automatically substitute or promote them. On these examples, point prompts sometimes produce much larger masks and can merge visual structures; the unknown biological targets prevent deciding correctness. The next useful test is a **fixed-budget, reference-based** check on publicly annotated, naturally overlapping or partial instances, or a comparably defensible controlled target if no real references are available, with the exact same edge selection and prompt policy. Measure one-to-one source-object recovery, complete overlap-group recovery, losses from merged masks, retained alternatives and candidate cost; preserve a fresh independent evaluation. In parallel, seek naturally annotated real overlap data rather than repeating parameter sweeps on these same four fields. Eventual user and specialist feedback remains necessary for the Academy domain after useful local tests.
