OCELOT¶
Cell detection on the OCELOT 2023 challenge data with a frozen encoder. soma’s Detection path trains a small decoder on the encoder’s dense features and scores the detected cells with the challenge’s own metric, so encoders can be compared on one fixed protocol.
Data and task¶
OCELOT (Ryu et al., CVPR 2023) pairs cell patches with tissue patches cropped from TCGA whole-slide images of six organs: kidney, endometrium, bladder, prostate, stomach, and head and neck. The benchmark uses the cell patches only: 1024 × 1024 pixel H&E crops at 0.2 µm/px, each with a point per cell. Each patch is one tile of about 0.2 × 0.2 mm.
Setting |
Value |
|---|---|
Task |
Detect every cell as a point and classify it as a tumour cell or a background (non-tumour) cell. |
Splits |
The official train, validation and test split, as one fold. Validation is
soma’s |
Metric |
|
Split |
Patches |
Slides |
Patients |
Area (mm²) |
Tumour cells |
Background cells |
|---|---|---|---|---|---|---|
train |
400 |
173 |
132 |
15.8 |
42,505 |
23,332 |
tune |
137 |
65 |
46 |
5.4 |
16,312 |
8,400 |
test |
126 |
65 |
57 |
5.0 |
12,874 |
9,603 |
total |
663 |
303 |
213 |
26.2 |
71,691 |
41,335 |
The official split keeps each slide in one split but not each patient: 21 patients have slides in more than one split, so the patient total is lower than the sum of the splits. soma keeps the official split so scores stay comparable with other OCELOT results.
Protocol¶
The recipe is fixed and only the encoder varies.
Setting |
Value |
|---|---|
Input |
The cell patches at their native 0.2 µm/px, tiled for the encoder. |
Encoder |
Any frozen tile encoder with dense outputs; the |
Decoder |
|
Target and loss |
A Gaussian peak (σ = 2 µm) at every annotated cell and an MSE loss with foreground weight 10; see Detection. |
Training |
AdamW with learning rate 3e-4 and weight decay 1e-4, cosine schedule over 50
epochs, effective batch 8. Training stops after 10 epochs without a better tune
|
Thresholds |
One score threshold per class, chosen on |
Seeds |
|
Results¶
soma’s mean_f1 on the official OCELOT test set (126 patches in v1.0.1), three seeds
per encoder, best first.
Encoder |
Mean F1 (mean ± std) |
Seeds |
|---|---|---|
genbio-pathfm |
0.738 ± 0.007 |
3 |
h0-mini |
0.725 ± 0.003 |
3 |
h-optimus-1 |
0.723 ± 0.004 |
3 |
conchv15 |
0.714 ± 0.004 |
3 |
virchow2 |
0.699 ± 0.006 |
3 |
dinov2-vitb14 |
0.659 ± 0.004 |
3 |
midnight |
0.659 ± 0.006 |
3 |
Fully supervised, end-to-end methods with a trained encoder reach a mean F1 of
about 0.70 (the official baseline) to 0.73 (the best reported); they frame the frozen probe and never
gate soma reproduce.
These results accompany Grisi et al., Benchmarking foundation models for cell detection (in preparation).
Reproduce¶
Prepare the data. Download ocelot2023_v1.0.1.zip from Zenodo record 8417503 and unzip it. The benchmark’s curator reads the
cell patches and their point files from that directory and writes soma’s detection
manifests; Curation describes what it writes.
Run the benchmark with its default encoder, Virchow2, or name another installed encoder:
soma reproduce ocelot --raw-root /path/to/ocelot2023_v1.0.1
soma reproduce ocelot --encoder uni2 --raw-root /path/to/ocelot2023_v1.0.1
Compare encoders in one command, which also writes a leaderboard:
soma reproduce ocelot --encoders virchow2 uni2 h-optimus-1 --raw-root /path/to/ocelot2023_v1.0.1
Rescore a finished run without training. Point --from-run-dir at the output
root (by default soma_reproduce/ocelot) to rescore all three seeds and check
their mean, or at one seed’s directory as a spot check:
soma reproduce ocelot --from-run-dir soma_reproduce/ocelot --record
soma reproduce ocelot --from-run-dir soma_reproduce/ocelot/seed_0
--record appends the measured score to the results ledger that the table above
reads. It records only a run over all three seeds, since the table holds three-seed
means. Benchmarking describes the options shared by every benchmark.
References¶
Ryu et al., OCELOT: Overlapped Cell on Tissue Dataset for Histopathology, CVPR 2023.
CellRegNet, 2024: a fully supervised point-detection baseline.
arXiv:2503.05678: P2PNet-style point detection on frozen foundation-model features.