# R117 · Point-prompted decoder adaptation on source components

Status: **needs review**, not a deployed model or independent benchmark. [All 25 visual comparisons](/results/r117/) · [frozen protocol](/results/r117/protocol.json) · [training record](/results/r117/training.json) · [results](/results/r117/results.json) · [verification](/results/r117/verify.json) · [six inference replays](/results/r117/replay.json).

Used the 26 previously consumed Gündüz source components from 20 source image IDs to adapt a MobileSAM mask decoder. The image and prompt encoders remained frozen; the decoder was trained for three epochs and 78 updates with target-instance BCE plus Dice on downsampled masks. A zero target value means “not this queried instance,” not a claim that no other diatom is present. Source species names and connected-component associations are not independently reconciled; the dataset's source images and masks are CC BY-NC-SA 4.0, and applicable model/dependency terms must also be retained.

The fixed development comparison uses all 25 previously consumed expansion components from 15 different source image IDs. Those image IDs do not appear in training and a coarse similarity screen was previously applied, but source specimens, slides, sites and model-pretraining independence are not established. These images were used in prior exploratory work and are not a fresh final holdout. Each crop location is known from the source annotation and each positive point is the maximum-distance interior pixel of the reference component: an **oracle reference-derived click**, not an automatic detector or an independent human click. This comparison does not establish overlap recovery, species accuracy or Academy scan performance.

| Component IoU against source candidate | Original MobileSAM | Adapted decoder |
|---|---:|---:|
| ≥0.50 | 25 / 25 | 25 / 25 |
| ≥0.75 | 22 / 25 | 23 / 25 |
| Mean IoU | 0.909 | 0.918 |
| Median IoU | 0.953 | 0.958 |

The adapted decoder increased IoU in 14 cases and decreased it in 11. For example, [1764-box0](/results/r117/comparisons/1764-box0.png) changes from 0.686 to 0.980 against the source component, while [1238-box1](/results/r117/comparisons/1238-box1.png) changes from 0.649 to 0.515. These examples illustrate source-mask agreement and do not establish which boundary is biologically correct. The adapted quality-head scores were not calibrated as accuracy estimates; one saved score exceeds 1. Do not use these scores for confidence ranking without a separate evaluation and calibration.

The [neighbor foreground audit](/results/r117/neighbor-audit.json) found zero pixels from other source-binary foreground in all 25 comparison crops. This is not proof that no neighbors are present: 1238-box1 visibly contains another diatom-like structure which is not marked as source foreground. Thus this proxy cannot establish complete-object recall or the ability to split every real neighbor. Background and unannotated organisms remain unknown.

All 26 training click geometries and all 50 comparison masks and IoUs were reconstructed; 96 decoder state tensors changed relative to base, and six original/adapted inferences on the first three comparison crops were replayed exactly. Training was not rerun. These checks establish data/implementation consistency, not expert annotation accuracy or independent generalization.

Next, before promoting this decoder: freeze a comparison on a genuinely different annotated freshwater source using non-oracle prompts and source/sample separation; evaluate the two members of real overlaps and label completeness with a scientist; preserve a truly independent final Academy test. The already-inspected Khanom and Gündüz proxy pools can be used for development diagnostics only, with prior exposure disclosed. Species-level training remains a separate unresolved objective.

## Cross-source warning

The [R118 development comparison](/results/r118/) re-ran the original and adapted decoders on previously used Khanom and UDE crops. On 29 reference-derived Khanom polygon crops, IoU ≥0.75 decreased from 24 to 17; a post-hoc neighboring-polygon diagnostic also flagged broader source-neighbor coverage by the adapted mask. The two sets remain non-independent development material and Khanom clicks are reference-derived, but this is sufficient reason not to promote the R117 decoder automatically. UDE has no validated source masks and its large-mask failures remain unresolved.
