# R95 · Improve freshwater segmentation training without teaching unlabeled diatoms as background

L82 improved a marine YOLO starting checkpoint after training on just 16 freshwater images, yet its adapted model lagged the existing SAM/Cellpose combined proposal stream and failed most synthetic crossings. The training set has incomplete two-taxon annotations and almost no overlap; treating all unannotated image content as negative is an important failure risk.

1. Inventory the complete, locally available public polygon sources and identify what each annotation actually labels, including non-target taxa, fragments and overlapping specimens. Audit annotation completeness by source documentation and existing source-mask/polygon consistency; do not call unmatched predictions false positives without exhaustive truth.
2. Freeze training, validation and test groups using any documented sample/slide identifiers. Screen exact hashes, transformations and near-duplicates across candidate groups and source archives; record ambiguous cases and exclude flagged examples from claimed holdouts. Filename families and coarse image similarity are weak proxies, not biological proof.
3. Evaluate training strategies that avoid blindly penalizing unannotated regions: source polygon crops with explicit ignore masks, appropriately supported region-weighted loss, or synthetic compositions built from verified public instance masks and retained backgrounds. Test framework semantics before relying on an ignore mechanism. Preserve raw original pixels and mark visible vs inferred target masks. Avoid synthetic labels that encode one representation as established ground truth for real translucency.
4. Compare fixed original, L82 final and new training strategies with matched source evaluation and clearly stated inference budgets. Stratify complete, partial, overlapping-group and easy cases; report candidate burden, duplicate risks, possible unlabeled objects and failure cases. Freeze model-selection rules on training/validation only; do not tune to previously viewed R91/R84 cases.
5. Preserve software/model/data licenses, original RGB/focal provenance and correction history; delay user or professional feedback while meaningful public/local tests remain. A real independently annotated overlapping freshwater set and targeted later scientist adjudication remain necessary before a human-level or species-identification claim.

## Mixed-source YOLO pilot · 2026-12-02

[Visual report](/results/r95/mixed/) · [protocol](/results/r95/mixed/protocol.json) · [pretraining source screen](/results/r95/mixed/menne-source-audit.json) · [training manifest](/results/r95/mixed/training-manifest.json) · [run/checkpoint record](/results/r95/mixed/training-run.json) · [all scores and masks](/results/r95/mixed/results.json) · [verification](/results/r95/mixed/verify.log).

To test additional public freshwater data, combine the 16 L82 Khanom fields and 18 polygons with the 12 annotation-positive R44 River Menne fields and their 29 source polygons, for **28 images / 47 source regions**. The six R44 fields with no annotations were excluded: missing annotations do not prove no organisms. The 12 Menne fields were previously analyzed as public test fields and are now explicitly **training data**, not held-out evaluation. Menne source annotations exclude many fragments and aggregates and may merge touching structures; Khanom labels target two taxa and may omit other specimens. No ignore-region loss was used, so valid unlabeled organisms may still be taught as background.

Before training, screen every Menne polygon against the 11 R91 evaluation fields for exact whole-image matches and transformed coarse crop hashes; none met the fixed ≤8 distance flag, with minimum distance 14. Rerunning produced byte-identical output. The L82 Khanom training polygons had already been screened against the same evaluation fields. These screens cannot prove distinct biological specimens, slides or pretraining sources. The R91 fields and synthetic scenes were examined in earlier experiments; this is not a blind or independent test, and the synthetic source files come from the real evaluation selection.

Train two variants independently from the same marine YOLO checkpoint with the fixed L82 settings on two CPU threads, selecting final-epoch weights. The 12-epoch arm processed **84 mini-batches**, close to the L82 pilot's 80; the 20-epoch arm processed **140**. Changes to dataset composition and gradient accumulation mean neither comparison isolates a single causal factor. Training-time final validation used the training images and did not select checkpoints. Preserve both models as development artifacts, not production recommendations.

At top 30 and IoU ≥0.5, original marine / L82 / mixed 12 / mixed 20 / SAM+Cellpose matched **2 / 7 / 7 / 8 / 16 of 16** real source regions and **0 / 3 / 5 / 3 / 13 of 16** synthetic visible supports. At IoU ≥0.75 the counts were **1 / 3 / 2 / 5 / 15** real and **0 / 3 / 3 / 3 / 12** synthetic. On two synthetic crossing conditions the mixed-12 arm matched **1/4 in each front order**, mixed-20 **0/4 and 1/4**, and SAM+Cellpose **3/4 and 2/4**. Adding either mixed model as a third stream did not change the SAM/Cellpose top-30 totals on these two groups. The 12- and 20-epoch models emitted 49 / 62 masks on real fields and 29 / 25 on synthetic scenes; incomplete annotations prevent interpreting unmatched masks as false positives.

All 28 input images, 47 source labels, source and checkpoint hashes, 12/20 epoch logs and both changed checkpoint states were verified. Saved predictions and all rank/budget matches for 19 cases were replayed using shared source-loading and matching helpers; training and neural inference were not repeated. Candidate scores use fixed YOLO confidence 0.25 and internal NMS, which may suppress overlapping instances. No source-independent, actual severe-overlap, species or human-level conclusion follows. The differing small outcomes justify more careful training research but do not establish a reliable gain over the existing baseline.

**Remaining:** The original R95 requirement to test an actual verified ignore-region or appropriately masked supervision method has not been done. Audit framework loss semantics and design defensible unannotated-region controls before claiming that issue solved. Source-separated real overlapping-diatom evaluation remains necessary.

## Controlled oracle ignore-region training · 2026-12-02

[Visual report](/results/r95/partial/) · [protocol](/results/r95/partial/protocol.json) · [withheld-label and ignore-box manifest](/results/r95/partial/training-manifest.json) · [training/instrumentation](/results/r95/partial/training-run.json) · [evaluation masks and scores](/results/r95/partial/results.json) · [verification](/results/r95/partial/verify.log) · [separate loss-gradient test](/results/l83/). This is a deliberately artificial control, not a way to identify genuinely unknown diatoms.

On the same 28 mixed-source training images and 47 source polygons as the prior pilot, withhold the last known annotation in each of 14 multi-label images, leaving **33** visible labels. The withheld training polygon's known bounding box supplies an **oracle** ignore region; no evaluation reference supplies a training ignore box. Train two fresh 12-epoch models from the same marine checkpoint, identical labels, seed, training arguments, two CPU threads and final-epoch checkpoint rule. The standard arm treats the withheld region as normal unlabeled content; the modified arm masks direct classification BCE for negative-target anchors centered in the oracle box, while preserving positive-target scores. The earlier mixed-12 model trained on all 47 source labels is a full-source-label reference, not identical supervision. Existing source annotations can still omit additional organisms in all arms.

The installed instance-segmentation loss does not automatically interpret a semantic-mask `255` ignore convention as an instance ignore region. In the separate L83 diagnostic, direct classification gradients on 473 selected negative anchors became zero while ten positive anchors and other loss components remained unchanged. A one-epoch smoke test then verified the custom criterion was installed in the actual trainer and that prepared images matched training-batch pixels. In the 12-epoch ignore arm, instrumentation recorded **84 BCE calls**, **25,855 ignored negative-anchor occurrences**, **281 positive-anchor occurrences preserved within ignore regions**, and **336 image presentations** that passed byte-equivalent alignment checks. These are repeated training occurrences, not counts of unique anchors or organisms. The modification does not mask instance-segmentation BCE inside supervised boxes, change regression loss, prevent shared-weight effects on ignored locations, or supply real missing-object locations.

At top 30, IoU ≥0.5, partial-standard / partial-oracle-ignore / full-source-label mixed12 / SAM+Cellpose matched **6 / 6 / 7 / 16 of 16** real Gündüz structural regions and **3 / 3 / 5 / 13 of 16** synthetic visible supports. At IoU ≥0.75, real counts were **3 / 3 / 2 / 15**, and synthetic counts **3 / 3 / 3 / 12**. At 0.5 two real fields changed in opposite directions, so equal totals do not mean identical predictions. Standard / ignore produced **31 / 42** masks across the real cases and **23 / 27** on synthetic scenes; incomplete reference annotations preclude interpreting unmatched masks as false positives. The real evaluation fields and synthetic scenes were already viewed, biological independence is not established, real references exclude intersecting boxes, and synthetic crossings do not model physical optics.

The verifier reconstructed all 28 prepared images and hidden labels, all 14 oracle boxes/masks, confirmed matching trainer settings except output names/paths, epoch logs, changed checkpoint weights, instrumentation and all 19 saved prediction rankings and matching scores. It did not rerun training or inference and shared the source loader/matching helper. A corrected verification check treats the two deliberately different output directories as expected, not an algorithmic difference. The separate visual example figure is documented by [report manifest](/results/r95/partial/report-manifest.json).

**Interpretation:** This one small, previously viewed development control shows that the specified classification-only masking was exercised, but does not show improved aggregate recovery. Oracle ignore regions are unavailable for genuinely unlabeled diatoms. Identifying uncertainty without labels, handling instance-mask pixels inside overlapping boxes, avoiding candidate proliferation, and obtaining a truly independent real-overlap reference remain open. No human-level, general species or real-overlap claim is supported.

## Withheld annotations on training images · 2026-12-02

[Visual report](/results/r95/partial/train-diagnostic/) · [protocol](/results/r95/partial/train-diagnostic/protocol.json) · [saved predictions and matching](/results/r95/partial/train-diagnostic/results.json) · [verification](/results/r95/partial/train-diagnostic/verify.log). This retrospective diagnostic evaluates the 28 training images used in the previous partial-label experiment. All three models saw these image pixels during training; the full-label model saw all 47 source labels, and the oracle-ignore arm received boxes around the 14 deliberately hidden labels. These results do **not** estimate generalization, real unknown-object recovery, or human-level performance.

At IoU ≥0.5 with up to 30 masks per field, partial-standard / partial-oracle-ignore / full-source-label models matched **2 / 2 / 4 of 14** deliberately withheld source annotations and **8 / 10 / 10 of 33** retained annotations. A joint one-to-one match against all 47 source polygons gave **10 / 12 / 14**, including **2 / 2 / 4** hidden IDs in that particular joint assignment. Hidden-only and retained-only matches are independent subset assignments and must not be summed; joint assignment identities may differ on ties. At IoU ≥0.75, hidden-only matches were **0 / 0 / 0 of 14**. The two partial arms matched the same two hidden IDs at IoU 0.5. Across all 28 fields the models emitted **30 / 32 / 40** post-NMS masks; annotations may be incomplete, so unmatched masks are not confirmed false positives.

The verifier reconstructed every 512-pixel source polygon from the full training labels, checked all 14 deliberately hidden IDs, verified three checkpoint hashes and 28 image/prediction archives, and replayed all subset and joint scores. It did not rerun model inference and shared the matching helper. These results support the narrow conclusion that this specific oracle classification-ignore intervention did not improve hidden-label matches on the training images or aggregate results in the previously viewed separate-source replay. They do not exclude different ignore mechanisms, more training or other models, and the intervention still leaves standard instance-mask BCE active inside labeled boxes.
