# L44 · Automatic contrast-box proposals

Generate up to 80 boxes per field from connected regions of local adaptive thresholds at 31- and 63-pixel scales and both contrast polarities. Reject boxes below 8 pixels per side, over 320 pixels per side or outside 80–30,000 bounding-box pixels; pad and clip by two pixels. Sort by local high-pass contrast, suppress bounding-box IoU ≥0.7, then prompt MobileSAM. Apply the same mask area 300–50,000, confidence ≥0.6 and mask NMS IoU 0.8 as the point baseline. No reference labels select or rank boxes. Combine them by alternating with the frozen detector-plus-160-unconditioned-point ranking. [Code](/diatom_pilot/contrast_boxes.py) · [protocol](/results/l44/protocol.json) · [all fields](/results/l44/).

## Inspected real public fields

| Candidate policy | Top 10 / 22 | Top 20 / 22 | Full candidate set / 22 | Retained candidates |
|---|---:|---:|---:|---:|
| Existing detector + point grid | 14 | 15 | 15 | 130 |
| Detector + contrast boxes | 8 | 12 | 15 | 349 |
| Alternating grid and contrast boxes | 16 | 16 | 18 | 476 |

The point baseline reproduces every L43 field's prior top-10, top-20 and full-set counts. The new policies use more prompts and candidates, so matching display budgets do not imply equal inference cost or review burden. Across 12 fields, 841 contrast box prompts yielded 346 retained box masks. The 160-point policy took 14.47 seconds in aggregate point inference; additional box selection and inference took 0.19 + 6.08 seconds. Common detector and encoder time was 3.5 seconds; ranking and other overhead are excluded, so these are not end-to-end times.

Three of the seven R55 misses had an individually matching retained box mask at IoU ≥0.5; all three occur in the same six-label field. Per-region availability is posthoc and may reuse candidates. Full-set one-to-one recovery rose from 15 to 18 overall, and top-10 from 14 to 16, but all fields were previously inspected and source regions can be approximate or incomplete. [Per-field outputs](/results/l44/results.json).

## Inspected synthetic diatom crossings

Replay the six opaque L42 development scenes with exactly the same generic detector boxes and baseline masks; the old scores reproduce exactly. Add up to 80 automatic contrast boxes per scene and alternate their masks with detector masks. At top 20, visible crossing matches changed 4/6 → 6/6; full-source crossing matches changed 3/6 → 4/6. Separated visible matches remained 6/6. Across the three crossings, 202 extra box prompts were used. Background objects are unlabeled; only pasted sources are scored, and opacity is not real microscopy. [Crossing overlays](/results/l44/) · [data](/results/l44/crossings.json) · [protocol](/results/l44/crossing-protocol.json).

**Decision.** This is a promising proposal mechanism, not demonstrated generalization: candidates and compute increase substantially, and gains cluster in one inspected field and three synthetic scenes. Freeze these rules and evaluate on new source groups and independently selected controlled crossings before adoption. A real overlapping-instance reference remains necessary; missing source annotations are not negatives. Preserve original image pixels and overlapping masks for later species classification.

Real-field source: Kloster, Burfeid-Castellanos and Beszteri, [River Menne dataset](https://doi.org/10.5281/zenodo.7079005), CC BY 4.0; resized and overlaid. Synthetic source objects: Hüseyin Gündüz, [Diatom Dataset](https://www.kaggle.com/datasets/huseyingunduz/diatom-dataset), CC BY-NC-SA 4.0; cropped, resized, composited and overlaid; synthetic derivatives shared noncommercially under the same license.
