# R96 · Refine low-confidence model-proposed boxes into masks

L84 found some deliberately hidden training targets with a sufficiently overlapping predicted box but no sufficiently overlapping saved YOLO mask. That finding used reference labels after inference, is confined to training images, and is not itself a usable selection policy.

Test a fixed **reference-free** candidate policy on the saved L84 partial-standard model outputs: take confidence-ranked post-NMS YOLO boxes above the predeclared 0.001 floor, up to 30 per image; prompt MobileSAM with each box, without source annotation or expert clicks. Compare YOLO masks and box-prompt masks paired by the same original YOLO rank, and an alternating list retaining both. Count the additional model queries and compare equal mask-display budgets and full retained candidate sets. Preserve every original box, YOLO mask, refined mask, predicted score, image hash and reference assignment; don't suppress overlapping alternatives or use reference IoU for candidate selection.

Replay all 14 deliberately withheld training-object fields and all 19 previously viewed Gündüz real/synthetic cases; all are developmental and the training fields were seen by the model. Evaluate mask matching to the hidden/source-visible references at IoU 0.5 and 0.75, including per-condition synthetic crossing and complete pairs. Unlabeled background may contain real organisms, so candidate counts do not yield false-positive rates. Existing low-confidence outputs already have internal YOLO NMS and a 100-per-field cap; a promptable model cannot recover objects missing from every available box. Report prompt count and ensure source RGB/focal-plane provenance remains intact for later classification. If useful, require a separate frozen-source test before any claim of improvement.

## Paired model-box refinement · 2026-12-02

[Visual report](/results/r96/) · [protocol](/results/r96/protocol.json) · [paired prompts, masks and scores](/results/r96/results.json) · [score verification](/results/r96/verify.log) · [single-prompt neural replay](/results/r96/single-prompt-replay.json). From each of 33 previously viewed cases, take up to 30 valid bounding boxes in the saved partial-standard YOLO confidence order at floor 0.001, after YOLO's internal NMS and 100-output cap. One MobileSAM box prompt was issued per selected YOLO box without reference-guided selection, for **931** additional box prompts. Original YOLO masks and paired SAM masks are kept without additional suppression and ranked by the same original YOLO confidence; an alternating stream retains both but has two candidates per box. Different mask-display budgets and extra SAM compute must be accounted for.

At top 30, IoU ≥0.5, YOLO mask / SAM box mask / alternating matched **4 / 7 / 6 of 14** deliberately withheld training regions, **11 / 13 / 11 of 16** Gündüz real source regions, and **6 / 6 / 6 of 16** synthetic visible supports. At IoU ≥0.75 the respective counts were **0 / 5 / 5**, **5 / 11 / 9**, and **3 / 5 / 4**. These are mask candidates at equal display budgets; the alternating stream's first 30 include at most 15 distinct source boxes. The original YOLO selection reproduces L84's existing top-10 and top-30 scores for every case and subset. Synthetic crossing front-order totals at 0.5 remained 1/4 in each order for both YOLO and SAM. The model's 0.001 confidence floor produces substantial candidate burden; unmatched outputs are not validated false positives.

The earlier, different SAM/Cellpose point-candidate combination on the same 11 Gündüz fields matched **16/16** at IoU 0.5 and **15/16** at 0.75; on the eight synthetic scenes it matched **13/16** and **12/16**. That method uses different proposals and compute, so this paired-mask improvement is not evidence that the new pipeline beats the existing development baseline. Real source references excluded intersecting boxes; synthetic scenes use nonphysical opaque compositing. Fourteen withheld annotations are in images the YOLO model saw during training; the other fields were previously viewed and biological/model-training independence is unknown. Neither the low-confidence cutoff nor scores are calibrated for deployment.

All 33 source/archive hashes, label-free box selection and clipping, retained pairing order, rankings and one-to-one scores were reconstructed by the verifier; it used the shared matching helper and did not rerun all inference. Nine selected prompts from three cases were additionally rerun one at a time: all nine reproduced their saved batched masks exactly, with maximum score deviation approximately 3×10⁻⁷. These sampled replays do not prove all prompts or other environments are identical. Original RGB, trained-model masks, prompt boxes and separate refined masks remain accessible; no unseen occluded texture is fabricated for future classification. The promising mask-quality difference warrants a frozen, newly sourced replay before adoption, with explicit candidate, compute and overlap-group accounting.
