Where overlap metrics and suppression fail

These are hand-built geometric masks, not microscope data or model results. They demonstrate logical failure modes, not how common those failures are in diatoms.

Each row compares two synthetic full-object references and fixed candidate masks. Matching uses one-to-one IoU ≥0.5; greedy suppression removes candidate masks at mutual IoU ≥0.8. Geometric-exclusive regions and their coverage are reference-derived diagnostics, never inference inputs. The visible-only case explicitly uses opaque top-layer geometry; actual diatom optics can differ.

Key cases: two distinct perfect near-coincident masks are reduced to one by this NMS threshold; two identical union masks can score as two targets before suppression; and a correct visible-only region can fail a full-shape IoU threshold. When a target has no exclusive region, the diagnostic is unidentifiable rather than zero. Frozen controls · Metrics · All masks.

separated_perfect

Two separated targets and perfect masks.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 2. Target IoU: 0.000; prediction-pair IoU: 0.000; exclusive areas: [6400, 1920]; assigned own-minus-other coverage: [1.0, 1.0].

crossing_perfect

Overlapping targets and their exact full shapes.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 2. Target IoU: 0.684; prediction-pair IoU: 0.684; exclusive areas: [1200, 1200]; assigned own-minus-other coverage: [1.0, 1.0].

near_coincident_perfect

Two distinct exact shapes overlap above the suppression threshold.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 1. Target IoU: 0.882; prediction-pair IoU: 0.882; exclusive areas: [400, 400]; assigned own-minus-other coverage: [1.0, 1.0].

identical_targets

Two coincident targets and two coincident predictions have no exclusive geometry.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 1. Target IoU: 1.000; prediction-pair IoU: 1.000; exclusive areas: [0, 0]; assigned own-minus-other coverage: [None, None].

contained_perfect

One exact target is completely contained by another.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 2. Target IoU: 0.250; prediction-pair IoU: 0.250; exclusive areas: [4800, 0]; assigned own-minus-other coverage: [None, None].

duplicate_union

Two duplicate union masks can both match overlapping targets.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 2 → 1. Target IoU: 0.684; prediction-pair IoU: 1.000; exclusive areas: [1200, 1200]; assigned own-minus-other coverage: [0.0, 0.0].

visible_only

Opaque top layer hides part of the bottom target; predictions are exact visible regions, references are full shapes.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 1 → 1. Target IoU: 0.600; prediction-pair IoU: unavailable; exclusive areas: [1600, 1600]; assigned own-minus-other coverage: [1.0].

missing_instance

Only one of two targets has a candidate.

Target masks, target-exclusive areas, candidate masks and retained masks

Ordinary one-to-one matches before/after NMS: 1 → 1. Target IoU: 0.684; prediction-pair IoU: unavailable; exclusive areas: [1200, 1200]; assigned own-minus-other coverage: [1.0].