# R27 · Sensitivity of cross-plane linking

## Four-field configuration audit · 2026-12-01

**Question.** How sensitive are R5's linked candidate tracks to the allowed focal-plane gap and box-overlap threshold, and does a different representative plane change provisional click assignments? Reuse exactly the 54 saved YOLO detections from the four already inspected Academy practice fields. Run R5's same deterministic greedy linker with box IoU thresholds 0.3, 0.5 and 0.7 and maximum Z-index gaps 1, 3 and 5, holding all other rules fixed. The original R5 configuration is IoU ≥ 0.5, gap ≤ 3. An index gap of 1 means detections must occur on consecutive indexed planes; it is not a measured physical distance. There is at most one observation per plane in a track.

Compare each configuration's partition of the **same detector observations** to the original, using exact `(plane, box, confidence)` identifiers. A baseline track is counted as split when its observations occur in multiple variant tracks; a variant track combines baseline tracks if it contains observations from more than one baseline track. These are **differences between algorithms**, not verified biological splitting or merging. Same-track observation-pair Jaccard scores and field-level details are in [the machine-readable output](/results/r27/link-stability.json).

| IoU threshold | Max Z-index gap | Total tracks | Single-observation tracks | Original tracks split across variant tracks | Provisional click assignments, confidence / median-Z representative |
|---:|---:|---:|---:|---:|---:|
| 0.3, 0.5 or 0.7 | 1 | 23 | 9 | 4 | 16 / 16 |
| 0.3, 0.5 or 0.7 | 3 | 19 | 4 | 0 | 16 / 16 |
| 0.3, 0.5 or 0.7 | 5 | 19 | 4 | 0 | 16 / 16 |

In these four fields the three threshold values produced identical partitions at each gap. Restricting the gap from 3 to 1 split four original tracks, increased the total from 19 to 23 and raised single-observation tracks from 4 to 9. No variant track combined observations from different baseline tracks in these settings. This does not imply that thresholds are generally unimportant or that a larger gap is correct: the detector's existing boxes, these particular planes and the greedy association rule determine the result. A broader gap can mistakenly join different overlapping or nearby specimens, especially when detections vanish in intermediate planes.

For each linked track, compare its highest-confidence box with the box from its median observed Z index. Both representative policies give 16 total one-to-one point-in-box assignments across the four fields for every tested setting. Equal aggregate counts do **not** establish that the same clicks or specimens were assigned, nor that either representative is better. Clicks are incomplete and nonexpert, boxes can cover several specimens, and duplicates may create additional assignments. Neither matches nor track counts measure recall, precision or true biological objects. The [visual comparison](/results/r27/) shows all representative boxes for the most detection-dense development field under the three gap settings on its initial plane; tracks and box numbers are arbitrary and can change between panels.

**Next.** Expert review must identify specimen identity through Z, true overlap groups and whether a gap bridges one object or different objects. Test explicit multi-hypothesis links, mask/orientation constraints and registration on independently sampled stacks; quantify genuine splits, merges and review time. Include real partials, occluded objects and single-plane detections. Capture per-plane visibility and focal spacing; avoid selecting thresholds using the same reviewed fields used for final evaluation.

Reproduce with `/tmp/diatom-research-venv/bin/python research/r27_link_stability.py`, `results/r5/planes.json`, the existing practice marks and original completed source scans (files under 1 GB are rejected). No model inference was rerun, and the image has already appeared in earlier research.
