# L82 · Freshwater adaptation of a diatom YOLO segmenter

Fine-tune the previously tested marine YOLO11s segmentation checkpoint on all 18 public source polygons from 16 Khanom training images, then compare original and last-epoch weights on fixed R91 Gündüz real fields and synthetic crossings. Use no user/expert feedback. The training annotations are incomplete and mostly isolated; this is a tiny development pilot, not an independent freshwater or human-level benchmark. Do not infer species classification or true severe-overlap quality. [Protocol](/results/l82/protocol.json).

## Training and separate-source replay · 2026-12-02

[Visual report](/results/l82/) · [protocol](/results/l82/protocol.json) · [training manifest](/results/l82/training-manifest.json) · [source screen](/results/l82/source-audit.json) · [training record](/results/l82/training-run.json) · [all evaluation masks and scores](/results/l82/results.json) · [verification](/results/l82/verify.log). Fine-tuned the R94 marine YOLO11s-seg checkpoint for 20 epochs on two CPU threads using all **18** available polygons in the 16 previously selected L78 Khanom training fields. The images contain two taxa and potentially unannotated organisms. The single-class training loss therefore can treat visible unannotated diatoms as background; this is a substantial risk, not a complete generic-diatom training set. Training images and normalized labels were rebuilt from original RGB/COCO polygons with hash checks; comparing two rasterization paths gave minimum IoU 0.946, which checks preparation consistency, not annotation quality. All original RGB and masks remain preserved.

The YOLO framework requires a validation path; it was pointed at the training images with validation disabled during training, though a final framework evaluation reported training-set metrics. Those metrics are not independent and were not used to choose weights. Use the final `last.pt` checkpoint, not a validation-selected `best.pt`; 20 epoch rows and 298 changed floating-point state entries out of 471 were checked. The callback emitted a spurious `21/20` progress checkpoint during finalization; the original executed script is preserved as `research/l82_train_executed.py`, and the reusable progress code now caps the display at 20. This reporting bug did not add a training epoch. The final checkpoint is a research artifact under the terms of its source data and software, not a production model.

The fixed evaluation uses 11 previously viewed Gündüz fields with 16 structurally derived reference regions and eight previously viewed synthetic scenes with 16 rendered visible targets. The synthetic source-file pairs are selected from the same 11 real source files; these are not independent datasets. The R91 source selection quarantined a prior cross-source similarity flag. An additional pretraining screen compared **all 18** training polygons (not only the largest per image) to those 11 evaluation fields under rotations/reflections; none met the hash-distance ≤8 flag, and the minimum distance was 10. Repeating the screen generated byte-identical output. This coarse screen can miss duplicates, same specimen/slide, or base-model training contamination; it cannot establish biological independence.

At top 30, IoU ≥0.5, original YOLO / freshwater-adapted YOLO / existing SAM+Cellpose / three-stream combined matched **2 / 7 / 16 / 16 of 16** real source regions and **0 / 3 / 13 / 13 of 16** synthetic visible supports. At IoU ≥0.75 the real counts were **1 / 3 / 15 / 15**, and synthetic **0 / 3 / 12 / 12**. In synthetic crossing scenes the adapted model matched **0/4** in one front order and **1/4** in the other; the existing combined baseline matched 3/4 and 2/4. The adapted model produced 41 post-NMS candidates across real fields and 11 across synthetic scenes. These candidates are not verified true/false positives. Original and adapted YOLO use the same fixed 0.25 confidence and inference settings, while SAM/Cellpose uses different computation.

The experiment shows this small adaptation improved its particular marine starting checkpoint on these development cases, but it does not establish improved general segmentation, true real overlap recovery, source-independent accuracy, species classification or human-level performance; the existing SAM/Cellpose pipeline remains stronger on this narrow replay. The verifier reconstructed all 16 prepared images and 18 source polygon labels, confirmed hashes, epoch log and changed checkpoint weights, and replayed all 19 saved prediction rankings and match scores. It did not rerun training or inference and shared the matching helper/source loader. The **R95** follow-up should investigate larger, group-audited training and a truly source-separated assessment, while preserving uncertain unannotated regions rather than treating them as verified negative examples.
