MIDOG

Mitotic-figure detection on the MIDOG 2022 public training data with a frozen encoder. soma’s Detection path trains a small decoder on dense features and scores its predictions after stitching them back to their source regions.

Data and task

MIDOG 2022 contains 354 labelled H&E regions, one per case, from five tumour types (human breast cancer, human neuroendocrine tumour, canine lung cancer, canine lymphoma and canine cutaneous mast cell tumour) and four scanners. The regions carry 9,501 mitotic figures and 11,051 hard-negative lookalikes.

Setting

Value

Task

Detect mitotic figures as points, with one positive class. Hard-negative annotations do not form a second detection class.

Splits

One deterministic local split of the public labelled data, stratified by tumour type: 60% train, 20% tune and 20% test. Each region is a separate case, and every tumour type appears in every split.

Metric

f1: native stitched-ROI F1, using Hungarian one-to-one matching within 7.5 µm and pooling the match counts across test regions.

Split sizes

Split

Regions

1024 × 1024 tiles

Area (mm²)

Mitotic figures

train

212

10,176

461.1

5,929

tune

71

3,408

154.4

1,853

test

71

3,408

155.7

1,719

total

354

16,992

771.2

9,501

Neighbouring tiles overlap by 128 pixels, so the area column is the better measure of how much tissue each split holds. Areas use the nominal 0.25 µm/px.

The official challenge test set is hidden. These local held-out scores use a different test set from the published MIDOG leaderboard.

Protocol

The recipe is fixed and only the encoder varies.

Setting

Value

Input

Native region pixels in one nominal 0.25 µm/px frame, approximating the scanner spacing differences. Regions are tiled into 1024 × 1024 pixel supervision tiles with 128 pixel overlap.

Encoder

Any compatible frozen dense encoder; a 448 pixel sliding window with 25% overlap supplies the token grids. The committed recipe caches fp16 features.

Decoder

lightweight_conv, predicting one peak heatmap for mitotic figures.

Target and loss

Peak Gaussians with σ = 5 µm (two thirds of the 7.5 µm matching distance) and foreground-weighted MSE with weight 10; see Detection.

Training

AdamW, learning rate 0.0003, weight decay 0.0001, cosine schedule, up to 50 epochs. Batch size 1 with 8 accumulation steps; early stopping has patience 10. These settings, and σ as a fraction of the matching distance, were chosen on the OCELOT tune split and carried over unchanged.

Selection

Checkpoints use tune tile F1. The final score threshold is selected on stitched tune ROIs and frozen before scoring stitched test ROIs.

Seeds

0, 1 and 2 on the same fixed split; results report the mean and standard deviation across seeds.

Results

Native test F1, best first, as the mean and sample standard deviation across the three seeds.

Encoder

Stitched-ROI F1 (mean ± seed std)

Seeds

genbio-pathfm

0.795 ± 0.005

3

h-optimus-1

0.768 ± 0.004

3

virchow2

0.762 ± 0.001

3

h0-mini

0.762 ± 0.004

3

conchv15

0.751 ± 0.007

3

midnight

0.723 ± 0.004

3

dinov2-vitb14

0.713 ± 0.007

3

All seven encoders were trained with the recipe above. The packaged Virchow2 target is the three-seed mean test F1, 0.7619 ± 0.02.

The measurement provenance records each seed’s tune and test score, its selected epoch and the training software for these rows. It also keeps the earlier recipe’s results and their history.

Reproduce

Prepare the data. Place the public MIDOG images under images/ and prepare MIDOG2022_training_enriched.json with the tumour and scanner metadata needed for the canonical split. Curation gives the metadata preparation commands and the expected directory layout.

Run the three-seed benchmark with its default encoder, Virchow2, or choose another compatible installed encoder:

soma reproduce midog --raw-root /path/to/midog --record
soma reproduce midog --encoder uni2 --raw-root /path/to/midog --record

Reuse prepared manifests, or rescore a finished run. Rescoring reads the saved tune/test predictions and performs no training or feature extraction. Point --from-run-dir at the output root to rescore all three seeds and check their mean, or at one seed’s directory as a spot check:

soma reproduce midog --curated-dir /path/to/midog/curated --record
soma reproduce midog --from-run-dir soma_reproduce/midog --record
soma reproduce midog --from-run-dir soma_reproduce/midog/seed_0

--record records only a run over all three seeds, since the results table holds three-seed means. --seeds 1 runs seed 0 alone as a quick smoke test; it is not the reference check. --encoders compares an encoder panel; Benchmarking describes the shared options.