Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Segmentation benchmark

Cellpose-SAM segments a prepared image, and the preparation is set by parameters: smoothing, contrast enhancement, which channels form the cell image, and two thresholds. Until v3.2 these were sopa’s defaults or our guesses, never checked against cells drawn by hand. This benchmark checked them, and the Cellpose defaults now come from it.

What we did

We segmented images that experts had outlined by hand, under 475 settings, and scored each setting against the outlines.

What we found

Bar chart of mean F1 with the old and the new defaults for cells and nuclei on three datasets; the new defaults are higher on all six.

Mean F1 with sopa’s defaults and with the new ones. Cells on Cross-platform improve on 128 of 129 crops, by 0.20 on average.

Four heatmaps of mean F1 over flow_threshold and cellprob_threshold, for cells and nuclei on Cross-platform and TissueNet; a solid box marks 0.6 and -1.

Mean F1 for each threshold pair. Solid box: the chosen pair; dashed: each panel’s own best.

Why these defaults

The pipeline has one threshold pair for cells and nuclei. Before round 2 ran, we fixed the rule: take the pair whose largest shortfall from each target’s own best is smallest, over cells and nuclei on Cross-platform and TissueNet. That pair is 0.6 and -1, within 0.065 of the best everywhere; TissueNet nuclei pay the most.

To reproduce a run from before v3.2, set the old values and pretrained_model: cpsam in your params file. InstanSeg is unaffected.

Limits

Read more

References
  1. Greenwald, N. F., Miller, G., Moen, E., Kong, A., Kagel, A., Dougherty, T., Fullaway, C. C., McIntosh, B. J., Leow, K. X., Schwartz, M. S., Pavelchek, C., Cui, S., Camplisson, I., Bar-Tal, O., Singh, J., Fong, M., Chaudhry, G., Abraham, Z., Moseley, J., … Van Valen, D. (2021). Whole-cell segmentation of tissue images with human-level performance using large-scale data annotation and deep learning. Nature Biotechnology, 40(4), 555–565. 10.1038/s41587-021-01094-0