# R9 · Replay a counting transect

## Three-field deduplication diagnostic · 2026-12-01

**Question.** When the microscope operator moves through overlapping fields, can we link repeated model proposals in slide coordinates before handing them to a reviewer? This is a dry run using one already inspected scan and one focal plane, not a live microscope session or count of diatoms.

**Method.** From the GC108240a practice location, read three consecutive 768 × 768 native-pixel fields at zero-based plane 2, shifting 384 pixels between fields (50% overlap). Run the existing public diatom YOLO detector at confidence 0.05 in each image and translate boxes into native slide coordinates. Link boxes across sequential frames greedily by most recent box IoU ≥ 0.5 using the R5 routine, with at most one box from each frame per group. Show the highest-confidence observation per group. The [source data](/results/r9/transect.json) record all frame origins, full coordinate boxes, scores, grouping and physical pixel size. [Inspect the strip](/results/r9/).

**Observation.** The three images produced 15 raw boxes, linked into nine proposal groups; six groups contain two frame observations. A reduction in box count does not establish that six real duplicates were correctly removed. Some boxes cover multiple objects, and many obvious-looking candidates have no box; two nearby specimens could be merged, or the same partial object could remain in multiple groups. The sample is a single selected slide region, has no comprehensive reference counts, and cannot estimate counting accuracy, review time or false-positive rate. Image geometry is read from the same static scan, so it does not test stage-coordinate calibration, drift, physical travel, focus shifts or capture latency.

**Next.** Add an independently reviewed, sample-separated sequence with all count-eligible objects and ambiguous fragments marked; record per-instance slide coordinates and overlap-group membership. Compare no deduplication, this rule and axis/mask-aware matching at equal review burden. Evaluate false merges, duplicate counts, missed objects, complete overlap groups, analyst correction time and end-to-end latency with stage-position and focus metadata from actual acquisition. Test drift and field-edge artifacts. Human interactions and a second leading pipeline are still absent; R9 is not complete.

**Reproduce.** `YOLO_CONFIG_DIR=/tmp/diatom-yolo-config MPLCONFIGDIR=/tmp/mpl-diatom /tmp/diatom-research-venv/bin/python research/r9_transect.py` requires the R3 detector checkpoint and original OME-TIFF. Coordinates use zero-based native pixels; physical pixel size comes from OME metadata. The recorded elapsed time includes image reads and warm-up and excludes a microscope and reviewer, so it is not an operational latency benchmark.
