# R20 · Public-mask fine-tuning preflight

## Split and annotation audit · 2026-12-01

The public [Khanom diatom dataset](https://doi.org/10.5281/zenodo.21295927) could support a controlled fine-tuning pilot, but its multiple named JSON variants cannot safely be combined without inspecting splits. For each genus, compare the largest available train and test annotation variants: Gomphonema train-160/test-53 and Pinnularia train-100/test-33. The Gomphonema test JSON actually lists 52 images. [See the audit](/results/r20/) and [download exact filenames and heuristic families](/results/r20/training-preflight.json).

Three Gomphonema filenames occur in both of these named variants; no Pinnularia filename does. A simple, intentionally conservative filename-family heuristic (remove trailing numeric components) finds six shared family strings covering 37/52 Gomphonema test filenames, and three shared family strings covering 28/33 Pinnularia test filenames. **A family string is not a verified specimen, slide or biological-sample identifier:** it may merge independent material or fail to capture related images. The audit flags possible dependence; it cannot determine leakage at the sample level. Other subset variants may represent different protocols and should not be combined blindly. Exact duplicate pixels under changed filenames are not checked.

These annotations target two taxa and some images visibly contain additional diatoms that are not among the selected annotations. Before training a generic diatom detector, verify annotation completeness and explicitly handle unlabeled targets; treating every unlabeled structure as background can teach the wrong task. The public record displayed no explicit license text when checked, so verify terms before redistribution or broader reuse. These source images have different optics from Academy Z stacks, and contain no explicit multi-plane pairing for the planned matched single-/multiview comparison R15.

**Executable next experiment.** Obtain or derive a defensible specimen/sample mapping. Freeze disjoint training, validation and untouched test groups before inspecting their model outputs, excluding exact and near-duplicate images. Audit a sample of polygons for completeness and record target class semantics. Compare the same pretrained detector before and after a fixed-budget single-plane adaptation, with a no-fine-tuning control, identical preprocessing and candidate threshold selected on validation only. Track point/box recovery, complete multi-instance groups, partials, label uncertainty and per-sample variation; keep Academy expert-reviewed fields held out for transfer. Do not present two-taxon source performance as generic freshwater diatom performance. R15's multiview experiment additionally requires expert-reviewed paired stack labels.

No model was trained in this audit. Reproduce with `/tmp/diatom-research-venv/bin/python research/r20_training_preflight.py` after retrieving the public COCO JSON files as documented in R16.
