# R92 · Complementary candidates without losing overlapping instances

## Question

Can a union of candidates from different model families recover diatoms that any one model misses, without merging overlapping valves or discarding detail needed for species identification? L79 compares Cellpose-SAM v2 to MobileSAM on the same previously examined fields; it does not establish that merging proposals is beneficial.

## Proposed experiment

1. Freeze source groups, original images and focal-plane provenance; use source-disjoint data and retain a truly untouched real-overlap set where available. Screen duplicate and near-duplicate fields and biological sample overlap, without treating filename separation as proof of independence.
2. Retain the raw mask, proposal coordinates, native score, source model and original-pixel mapping of every candidate. Cellpose's label image cannot encode shared pixels, so do not convert the combined set to a single exclusive label map. Compare MobileSAM alone, Cellpose alone, and their union with equal display budgets, and separately report all-candidate oracle coverage. A union of individually matched counts is not a one-to-one matching result.
3. Predeclare any ranking or duplicate association using development data only. Never remove ambiguous similar candidates solely because they overlap; one-to-one maximum-cardinality matching must be recomputed on each complete candidate set. Account for candidate burden, missed targets, overlapping-group recovery and partial boundaries; unannotated candidates are not automatically false positives.
4. On actual z-stacks compare visible evidence across planes, keeping independent candidate identities and uncertain possible links. Preserve unaltered high-resolution crops and all source pixels for future taxonomic classification; do not treat inferred occluded pixels as observed texture.
5. Assess confidence, genus/species crop usability and expert corrections later on sample-separated data, once local public tests have been exhausted. Distinguish human labels, machine proposals and uncertain boundaries; save correction history and measurement provenance.

## Dependencies and limitations

Find a real, independently annotated overlapping freshwater-diatom source; R91 excludes overlapping boxes and its synthetic crossings do not model microscope optics. Evaluate cross-domain overlapping-cell datasets as methodological controls only, not diatom or human-level validation. Check Cellpose model and dataset reuse terms independently. Do not optimize thresholds against the eventual held-out images. This is pending research, not a claim that the ensemble works.

## Retrospective feasibility check · 2026-12-02

After seeing the L79 comparison, interleave the retained MobileSAM and Cellpose candidates in native rank order, starting with MobileSAM, with no suppression. Recompute maximum-cardinality one-to-one matches from the first 30 combined proposals per image. This is an adaptive exploratory check on exactly the same inspected cases, **not** the independent study planned above. At IoU ≥0.5, the union matched **16/16** real structural reference regions, versus 11/16 and 12/16 for the individual methods with a budget of 30 each; at 0.75 it matched **15/16**, versus 11/16 and 10/16. Across eight synthetic scenes it matched **13/16** at 0.5 and **12/16** at 0.75, equal to MobileSAM alone. Missing annotations mean proposal burden and actual false positives remain unknown; the real references exclude intersecting boxes, and synthetic crossings are not physical overlaps. The result is interesting evidence of complementary proposals in this small development set, not proof of generalization or usable overlap recovery.

The union retains duplicate and conflicting masks and does not assign a single pixel exclusively. Uncertain duplicate identity remains unresolved; a displayed mask count is not an object count. Original arrays, coordinates and model outputs remain accessible through the [L79 report](/results/l79/). The [R92 visual report](/results/r92/) shows all 19 overlays, scores, replay code and verifier. Next, freeze ranking and evaluate on unseen, separately sourced, fully annotated real overlap examples; keep sample and model-training independence as explicit uncertainties.

## Paused replay

User paused research after 9 of 20 fields were checkpointed in [the different-dataset replay](/results/r92/khanom/). The process was interrupted; it is not running. The saved masks and partial scores remain available, but have not yet undergone the full replay verification. The current script restarts from the first field rather than resuming automatically.

**Correction:** The child Python process survived the first interrupt and continued until it was explicitly terminated after 11/20 saved fields. Host process inspection confirmed it was absent afterwards. The previous 9/20 checkpoint describes the earlier state.

## Different-dataset replay completed · 2026-12-02

[Visual report](/results/r92/khanom/) · [protocol](/results/r92/khanom/protocol.json) · [full scores](/results/r92/khanom/results.json) · [score verification](/results/r92/khanom/verify.log) · [candidate-overlap audit](/results/r92/khanom/duplicate-audit.json). All 16 R84 and four R85 previously viewed Khanom fields were selected before new Cellpose inference. This source differs from the Gündüz files used for the earlier union experiment, but specimens, slides, model-training exposure and labels are not established independent; these are development cases. The labels may omit other objects. Two R85 pairs have only 0.4% and 2.3% of the smaller original polygon intersecting; they are not severe overlaps.

At IoU ≥0.5, with at most 30 candidates per model or union per field, R84 matched **24/29** source polygons with MobileSAM, **19/29** with Cellpose-SAM v2 and **29/29** with their round-robin union. At IoU ≥0.75 the counts were **19/29**, **17/29** and **28/29**. On the four R85 fields, the respective counts were **8/9**, **7/9** and **9/9** at 0.5, and **7/9**, **6/9** and **9/9** at 0.75. Considering only the four annotations in the two weak-intersection pairs, counts at 0.5 were **4/4**, **3/4** and **4/4**; both pairs were recovered together in **2/2**, **1/2** and **2/2** fields respectively. These four annotations are already included in the R85 totals.

The union interleaves ranked MobileSAM and Cellpose proposals, keeps overlaps and does not decide whether two masks are duplicates or separate valves. A retrospective geometric audit found at least one top-30 candidate pair with IoU ≥0.8 in **12/20** fields (25 pairs total). Geometry alone does not prove duplicate identity or false positives, but it shows object counting and review burden still require attention. Different model compute, unknown annotation completeness, repeated inspection and uncertain biological independence prevent generalizing these counts to the target slides or human performance.

The first 11 fields were saved before pause using four CPU threads; after full reconstruction verification, the remaining nine were computed using two threads to reduce host load. CPU parallelism can change numeric results, and provenance records both settings. All 20 source images, COCO masks, stored prediction hashes, MobileSAM filtering, union construction and one-to-one scores were verified; inference itself was not repeated. The [launcher](/research/r92_khanom_resume.py) verifies a partial checkpoint before continuing and replaces itself with a parent-death-protected worker. Resume is only appropriate for a non-running incomplete checkpoint. The missing substantive next test is a genuinely separate source with well-annotated severe real overlaps and partial valves, while retaining original high-resolution/focal-plane imagery.
