# R78 · Cellpose DINOv3 microscopy instance segmentation

[Visual comparison](/results/r78/) · [frozen protocol](/results/r78/protocol.json) · [all scores and raw-flow archives](/results/r78/results.json) · [source similarity audit](/results/r78/source-audit.json) · [independent verifier](/research/r78_verify.py)

We tested the official Cellpose `cpdino-vitb` DINOv3-ViT-B checkpoint with Cellpose 4.2.1.1 on CPU, using the publisher’s standard automatic 2D thresholds with CPU float32 and batch size 1. Exact model revision, DINO source commit, file hashes, dependencies, thresholds and all 24 image hashes were frozen before inference. The 343,599,997-byte checkpoint matched its published LFS SHA-256. No user feedback, reference masks or diatom-specific training were used for inference. Cellpose returns a pixel-exclusive label image; its outputs were ranked by mean per-pixel cellprob logit, not by reference matching. All label maps, flows, cellprob fields, source references and rankings were saved.

All six R76 synthetic scenes and 18 R44 River Menne fields were already examined. The latter are selected source regions with incomplete annotations: partial valves and dense aggregates may be excluded. Historical development/held-out labels are consumed; model-training and biological-sample independence are unknown. We compare with recorded MobileSAM grid256 for synthetic scenes and detector+grid for Menne; inference costs, proposal generation and ranking differ. At most N predictions per image are scored at equal display budgets. Visible-mask matching is one-to-one, with references used posthoc.

| Data | Max masks per scene | Cellpose masks shown | Cellpose IoU ≥0.5 | MobileSAM IoU ≥0.5 | Cellpose IoU ≥0.75 | MobileSAM IoU ≥0.75 |
|---|---:|---:|---:|---:|---:|---:|
| Synthetic (6 scenes) | 5 | 30 | 2/12 | 8/12 | 2/12 | 8/12 |
| Synthetic (6 scenes) | 10 | 60 | 6/12 | 8/12 | 6/12 | 8/12 |
| Synthetic (6 scenes) | 20 | 87 | 6/12 | 8/12 | 6/12 | 8/12 |
| Synthetic (6 scenes) | all | 87 | 6/12 | not recorded | 6/12 | not recorded |
| River Menne (18 fields) | 5 | 31 | 9/29 | 14/29 | 9/29 | 11/29 |
| River Menne (18 fields) | 10 | 33 | 9/29 | 15/29 | 9/29 | 12/29 |
| River Menne (18 fields) | 20 | 33 | 9/29 | 15/29 | 9/29 | 12/29 |
| River Menne (18 fields) | all | 33 | 9/29 | not recorded | 9/29 | not recorded |

At top ten Cellpose matches 6/12 visible synthetic references and 9/29 Menne source regions; the recorded MobileSAM baselines match 8/12 and 15/29. Counting unmatched predictions as false positives is invalid because the source references are incomplete. Inference on 24 512px fields took 195.1 seconds on this CPU, excluding initialization and scoring; prior MobileSAM runs used different settings, so this is not a speed comparison.

On synthetic separated scenes, Cellpose matched 4/6 versus MobileSAM 6/6 at top ten; on crossings both matched 2/6. On Menne fields 10718 and 9633, Cellpose matched more labeled regions per field (2 vs 1 and 3 vs 2), suggesting complementary candidates, although the exact combined gain has not been measured. The checkpoint and isolated environment currently live in `/tmp` and require re-downloading or reinstalling if cleared.

A Cellpose label image assigns each pixel to at most one instance, so it cannot directly represent two full masks that overlap in projection. This is consequential for the project objective even if it provides useful visible-mask candidates. The 24 selected fields are not an independent benchmark or evidence of human-level segmentation, and neither the unlabeled portions nor source regions establish species identity. The input audit flagged 5 perceptually similar image pairs; all flagged pairs were related synthetic images sharing the same background. No pHash threshold proves distinct specimens or excludes model-training leakage.

An independent verifier checks source hashes, label-map/flow archives, mean-score ranking and one-to-one match counts against reconstructed references for all 24 fields; it does not rerun model inference. Original Menne imagery is CC BY 4.0 and displayed with overlays. Synthetic source image pixels remain in temporary storage and are shown only as silhouettes. Raw RGB provenance is preserved, but these temporary files can disappear.

Cellpose code/model card is BSD-3-Clause; the project notes that its training data are CC BY-NC. Meta DINOv3 terms apply separately; the user reported permission to experiment. Sources: [Cellpose model documentation](https://cellpose.readthedocs.io/en/latest/models.html), [model repository](https://huggingface.co/mouseland/cellpose-sam), [Cellpose repository](https://github.com/MouseLand/cellpose), and Kloster, Burfeid-Castellanos & Beszteri, [River Menne dataset](https://doi.org/10.5281/zenodo.7079005) (CC BY 4.0). The model has not been validated for diatom species or occluded specimens.
