CoChat

Segment Anything for Microscopy

Archit, Anwai, Nair, Sushmita, Khalid, Nabeel, Hilt, Paul, Rajashekar, Vikas, Freitag, Marei, Gupta, Sagnik, Dengel, Andreas, Ahmed, Sheraz, Pape, Constantin · 2023

Preprint — published as 10.1038/s41592-024-02580-4 · Paper page

PreprintCited by 50

The DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.

Abstract

We present Segment Anything for Microscopy, a tool for interactive and automatic segmentation and tracking of objects in multi-dimensional microscopy data. Our method is based on Segment Anything, a vision foundation model for image segmentation. We extend it by training specialized models for microscopy data that significantly improve segmentation quality for a wide range of imaging conditions. We also implement annotation tools for interactive (volumetric) segmentation and tracking, that speed up data annotation significantly compared to established tools. Our work constitutes the first application of vision foundation models to microscopy, laying the groundwork for solving image analysis problems in these domains with a small set of powerful deep learning architectures.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1101/2023.08.21.554208

Cites

1 of 1 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Overview of μSAM. a , We provide a napari plugin for segmenting multidimensional microscopy data. This tool uses SAM, including our improved models for LM and EM (see b ). It supports automatic and interactive segmentation as well as model retraining on user data. The drawing sketches a complete workflow based on automatic segmentation, correction of the segmentation masks through interactive segmentation and model retraining
Fig. 1 Overview of μSAM. a , We provide a napari plugin for segmenting multidimensional microscopy data. This tool uses SAM, including our improved models for LM and EM (see b ). It supports automatic and interactive segmentation as well as model retraining on user data. The drawing sketches a complete workflow based on automatic segmentation, correction of the segmentation masks through interactive segmentation and model retrainingCC-BY · From the PDF
based on the obtained annotations. Individual parts of this workflow can also be used on their own, for example, only interactive segmentation can be used as indicated by the dashed line. b , Improvement of segmentation quality due to our improved models for LM (top) and EM (bottom). Blue boxes or blue points show the user input, yellow outlines show the true object and red overlay depicts the model prediction.
based on the obtained annotations. Individual parts of this workflow can also be used on their own, for example, only interactive segmentation can be used as indicated by the dashed line. b , Improvement of segmentation quality due to our improved models for LM (top) and EM (bottom). Blue boxes or blue points show the user input, yellow outlines show the true object and red overlay depicts the model prediction.CC-BY · From the PDF
Image 3
CC-BY · From the PDF
Fig. 3 Generalist LM model. a , Comparison of the default SAM with our generalist and specialist models. We use the same evaluation procedure as in Fig. 2b,c. The red line indicates the performance of CellPose (specialist models for LIVECell and TissueNet, cyto2 model otherwise). Datasets LIVECell, DeepBacs, TissueNet, PlantSeg (root) and NeurIPS CellSeg are part of the training
Fig. 3 Generalist LM model. a , Comparison of the default SAM with our generalist and specialist models. We use the same evaluation procedure as in Fig. 2b,c. The red line indicates the performance of CellPose (specialist models for LIVECell and TissueNet, cyto2 model otherwise). Datasets LIVECell, DeepBacs, TissueNet, PlantSeg (root) and NeurIPS CellSeg are part of the trainingCC-BY · From the PDF
Image 5
CC-BY · From the PDF
Image 6
CC-BY · From the PDF
Fig. 6 User studies of the μSAM annotation tools. a , Segmentation of organoids imaged in brightfield microscopy with μSAM, CellPose and manual annotation. We compare different models for μSAM and CellPose; see the text and Methods for details. We report the average annotation time per object, quality of annotations when compared to consensus annotations and segmentation quality evaluated on a separate test dataset. All experiments are done by five annotators and errors correspond to standard deviations over annotator results. The entries 'μSAM (LM generalist)' and 'CellPose (default)' in the 'mSA (test)' column are obtained from evaluating the initial models; the other results in this column are obtained from evaluating models trained on user annotations. The two images on the right compare the automated segmentation result (without correction) obtained from 'μSAM (default)' and 'μSAM (fine-tuned)'. b , Segmentation of nuclei in volume
Fig. 6 User studies of the μSAM annotation tools. a , Segmentation of organoids imaged in brightfield microscopy with μSAM, CellPose and manual annotation. We compare different models for μSAM and CellPose; see the text and Methods for details. We report the average annotation time per object, quality of annotations when compared to consensus annotations and segmentation quality evaluated on a separate test dataset. All experiments are done by five annotators and errors correspond to standard deviations over annotator results. The entries 'μSAM (LM generalist)' and 'CellPose (default)' in the 'mSA (test)' column are obtained from evaluating the initial models; the other results in this column are obtained from evaluating models trained on user annotations. The two images on the right compare the automated segmentation result (without correction) obtained from 'μSAM (default)' and 'μSAM (fine-tuned)'. b , Segmentation of nuclei in volumeCC-BY · From the PDF
Extended Data Fig. 1 | See next page for caption.
Extended Data Fig. 1 | See next page for caption.CC-BY · From the PDF
Extended Data Fig. 2 | Extended quantitative evaluation for light microscopy models. Comparison of default SAM, LM generalist, and specialist models as well as CellPose. Same experimental set-up as in Fig. 3a, but we compare on additional datasets and report the results for all image encoder sizes ( a -d ). See Supplementary Table 1 for dataset references.
Extended Data Fig. 2 | Extended quantitative evaluation for light microscopy models. Comparison of default SAM, LM generalist, and specialist models as well as CellPose. Same experimental set-up as in Fig. 3a, but we compare on additional datasets and report the results for all image encoder sizes ( a -d ). See Supplementary Table 1 for dataset references.CC-BY · From the PDF
Extended Data Fig. 3 | See next page for caption.
Extended Data Fig. 3 | See next page for caption.CC-BY · From the PDF
Extended Data Fig. 4 | Qualitative interactive segmentation results for light microscopy II. Qualitative comparison of interactive segmentation for the default SAM and our LM generalist (ViT-L). Opposite approach to Extended Data Fig. 3: we show the objects where the decrease in IOU is largest comparing the generalist and default model. Here, we see a few different effects: in some cases the generalist model segments several nearby cells (proving an exception to the general behavior observed previously) for point annotations, in other cases
Extended Data Fig. 4 | Qualitative interactive segmentation results for light microscopy II. Qualitative comparison of interactive segmentation for the default SAM and our LM generalist (ViT-L). Opposite approach to Extended Data Fig. 3: we show the objects where the decrease in IOU is largest comparing the generalist and default model. Here, we see a few different effects: in some cases the generalist model segments several nearby cells (proving an exception to the general behavior observed previously) for point annotations, in other casesCC-BY · From the PDF
Image 12
CC-BY · From the PDF
Extended Data Fig. 5 | Extended quantitative evaluation for electron microscopy models. Comparison of the default SAM and our EM generalist, with MitoNet as reference for automatic mitochondrion segmentation. We use the same experimental set-up as in Fig. 3 but give results for all image encoder sizes
Extended Data Fig. 5 | Extended quantitative evaluation for electron microscopy models. Comparison of the default SAM and our EM generalist, with MitoNet as reference for automatic mitochondrion segmentation. We use the same experimental set-up as in Fig. 3 but give results for all image encoder sizesCC-BY · From the PDF
Image 14
CC-BY · From the PDF
( a -d ) and additional datasets. Note that the datasets Sponge EM and Platynereis (Cilia) evaluate segmentation for cilia and microvilli, which the generalist models were not trained for. They still yield improved results (except for segmentation with a single point prompt). See Supplementary Table 2 for dataset references.
( a -d ) and additional datasets. Note that the datasets Sponge EM and Platynereis (Cilia) evaluate segmentation for cilia and microvilli, which the generalist models were not trained for. They still yield improved results (except for segmentation with a single point prompt). See Supplementary Table 2 for dataset references.CC-BY · From the PDF
Extended Data Fig. 6 | See next page for caption.
Extended Data Fig. 6 | See next page for caption.CC-BY · From the PDF
Extended Data Fig. 7 | Qualitative interactive segmentation results for electron microscopy II. Qualitative comparison of interactive segmentation for the default SAM and our EM generalist (ViT-L). Opposite approach to Extended Data Fig. 6: we
Extended Data Fig. 7 | Qualitative interactive segmentation results for electron microscopy II. Qualitative comparison of interactive segmentation for the default SAM and our EM generalist (ViT-L). Opposite approach to Extended Data Fig. 6: weCC-BY · From the PDF
Image 18
CC-BY · From the PDF
Image 19
CC-BY · From the PDF
Image 20
CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 58

  1. Stringer, C., Wang, T., Michaelos, M. & Pachitariu, M. Cellpose: a generalist algorithm for cellular segmentation. Nat. Methods 18, 100-106 (2021). · DOI · Paper page
  2. Greenwald, N. F. et al. Whole-cell segmentation of tissue images with human-level performance using large-scale data annotation and deep learning. Nat. Biotechnol. 40, 555-565 (2022). · DOI · Paper page
  3. Schmidt, U., Weigert, M., Broaddus, C. & Myers, G. Cell detection with star-convex polygons. Lect. Notes Comput. Sci. 11071, 265-273 (2018).
  4. Vergara, H. M. et al. Whole-body integration of gene expression and single-cell morphology. Cell 184, 4819-4837 (2021). · DOI · Paper page
  5. Conrad, R. & Narayan, K. Instance segmentation of mitochondria in electron microscopy images with a generalist deep learning model trained on a diverse dataset. Cell Syst. 14, 58-71 (2023). · DOI · Paper page
  6. Sheridan, A. et al. Local shape descriptors for neuron segmentation. Nat. Methods 20, 295-303 (2023). · DOI · Paper page
  7. Heinrich, L. et al. Whole-cell organelle segmentation in volume electron microscopy. Nature 599, 141-146 (2021). · DOI · Paper page
  8. Malin-Mayor, C. et al. Automated reconstruction of whole-embryo cell lineages by learning from sparse annotations. Nat. Biotechnol. https://doi.org/10.1038/s41587-022-01427-7 (2022). · DOI · Paper page
  9. Ershov, D. et al. TrackMate 7: integrating state-of-the-art segmentation algorithms into tracking pipelines. Nat. Methods 19, 829-832 (2022). · DOI · Paper page
  10. 10.48550/arXiv.2308.05864 · DOI
  11. Pachitariu, M. & Stringer, C. Cellpose 2.0: how to train your own model. Nat. Methods 19, 1634-1641 (2022). · DOI · Paper page
  12. Dosovitskiy, A. et al. An image is worth 16 × 16 words: transformers for image recognition at scale. Preprint at https://arxiv.org/ abs/2010.11929 (2021). · DOI · Paper page
  13. Radford, A. et al. Learning transferable visual models from natural language supervision. Preprint at https://arxiv.org/ abs/2103.00020 (2021). · DOI · Paper page
  14. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C. & Chen, M. Hierarchical text-conditional image generation with CLIP latents. Preprint at https://arxiv.org/abs/2204.06125 (2022). · DOI · Paper page
  15. Kirillov, A. et al. Segment Anything. Preprint at https://arxiv.org/ abs/2304.02643 (2023). · DOI · Paper page
  16. Zou, X. et al. Segment everything everywhere all at once. Preprint at https://arxiv.org/abs/2304.06718 (2023). · DOI
  17. Ma, J. & Wang, B. Towards foundation models of biological image segmentation. Nat. Methods 20, 953-955 (2023). · DOI · Paper page
  18. Deng, R. et al. Segment Anything Model (SAM) for digital pathology: assess zero-shot segmentation on whole slide imaging. Preprint at https://arxiv.org/abs/2304.04155 (2023). · DOI
  19. Mohapatra, S., Gosai, A. & Schlaug, G. SAM vs BET: a comparative study for brain extraction and segmentation of magnetic resonance images using deep learning. Preprint at https://arxiv. org/abs/2304.04738 (2023). · DOI
  20. Ma, J. et al. Segment Anything in medical images. Nat. Commun. 15, 654 (2024).
  21. Hörst, F. et al. CellViT: vision transformers for precise cell segmentation and classification. Preprint at https://arxiv.org/ abs/2306.15350 (2023). · arXiv
  22. Israel, U. et al. A foundation model for cell segmentation. Preprint at https://arxiv.org/abs/2311.11004 (2024). · arXiv
  23. Berg, S. et al. ilastik: interactive machine learning for (bio)image analysis. Nat. Methods 16, 1226-1232 (2019). · DOI · Paper page
  24. Edlund, C. et al. LIVECell-a large-scale dataset for label-free live cell segmentation. Nat. Methods 18, 1038-1045 (2021). · DOI · Paper page
  25. Caicedo, J. C. et al. Nucleus segmentation across imaging experiments: the 2018 Data Science Bowl. Nat. Methods 16, 1247-1253 (2019). · DOI · Paper page
  26. Everingham, M., Van Gool, L., Williams, C. K. I., Winn, J. & Zisserman, A. The Pascal Visual Object Classes (VOC) challenge. Int. J. Comput. Vis. 88, 303-338 (2010). · DOI · Paper page
  27. Spahn, C. et al. DeepBacs for multi-task bacterial image analysis using open-source deep learning approaches. Commun. Biol. 5, 688 (2022).
  28. 10.1038/s42003-022-04068-3 · DOI · Paper page
  29. Wolny, A. et al. Accurate and versatile 3D segmentation of plant tissues at cellular resolution. eLife 9, e57613 (2020). · DOI · Paper page
  30. Pape, C. et al. Microscopy-based assay for semi-quantitative detection of SARS-CoV-2 specific antibodies in human sera. BioEssays 43, 2000257 (2021). · DOI
  31. 10.1038/s41592-019-0658-6 · DOI · Paper page
  32. Graham, S. et al. Lizard: a large-scale dataset for colonic nuclear instance segmentation and classification. Preprint at https://arxiv. org/abs/2108.11195 (2021). · DOI
  33. Bondarenko, V. et al. Embryo-uterine interaction coordinates mouse embryogenesis during implantation. EMBO J. 42, e113280 (2023). · DOI
  34. Wei, D. et al. MitoEM dataset: large-scale 3D mitochondria instance segmentation from EM images. in Medical Image Computing and Computer Assisted Intervention -MICCAI 2020 (eds. · DOI · Paper page
  35. Martel, A. L. et al.) 66-76 (Springer, 2020).
  36. 2018, AxonDeepSeg: automatic axon and myelin segmentation from microscopy data using convolutional neural networks, Sci. Rep, 8, 3816, 10.1038/s41598-018-22181-4 · DOI · Paper page
  37. Lucchi, A., Li, Y., Smith, K. & Fua, P. Structured image segmentation using kernelized features. in Computer Vision - ECCV 2012 (eds. · DOI
  38. Fitzgibbon, A. et al.) 400-413 (Springer, 2012).
  39. Žerovnik Mekuč, M. et al. Automatic segmentation and reconstruction of intracellular compartments in volumetric electron microscopy data. Comput. Methods Programs Biomed. 223, 106959 (2022).
  40. Lin, Z. et al. NucMM dataset: 3D neuronal nuclei instance segmentation at sub-cubic millimeter scale. in Medical Image Computing and Computer Assisted Intervention -MICCAI 2021 (eds. de Bruijne, M. et al.) 164-174 (Springer, 2021). · DOI · Paper page
  41. Zhang, C. et al. Faster segment anything: towards lightweight SAM for mobile applications. Preprint at https://arxiv.org/ abs/2306.14289 (2023). · arXiv
  42. 10.1016/j.cell.2015.06.054 · DOI · Paper page
  43. 10.1126/science.abj2949 · DOI · Paper page
  44. Gallusser, B. et al. Deep neural network automated segmentation of cellular structures in volume electron microscopy. J. Cell Biol. 222, e202208005 (2022).
  45. Schwartz, M. S. et al. Caliban: accurate cell tracking and lineage construction in live-cell imaging experiments with deep learning. Preprint at bioRxiv https://doi.org/10.1101/803205 (2023). · DOI
  46. Ouyang, W. et al. BioImage Model Zoo: a community-driven resource for accessible deep learning in bioimage analysis. Preprint at bioRxiv https://doi.org/10.1101/2022.06.07.495102 (2022). References · DOI · Paper page
  47. Hatamizadeh, A. et al. UNETR: transformers for 3D medical image segmentation. Preprint at https://arxiv.org/abs/2103.10504 (2021). · arXiv
  48. van der Walt, S. et al. scikit-image: image processing in Python. PeerJ 2, e453 (2014).
  49. Wolf, S. et al. The mutex watershed: efficient, parameter-free image partitioning. in Proc. of the European Conference on Computer Vision (ECCV) 546-562 (ECCV, 2018).
  50. Ronneberger, O. et al. U-net: convolutional networks for biomedical image segmentation. Preprint at https://arxiv.org/ abs/1505.04597 (2015). · arXiv
  51. Ulman, V. et al. An objective comparison of cell-tracking algorithms. Nat. Methods 14, 1141-1152 (2017). · DOI · Paper page
  52. 10.48550/arXiv.2306.12156 · DOI
  53. Hu, E. J. et al. LoRA: low-rank adaptation of large language models. Preprint at https://arxiv.org/abs/2106.09685 (2021). · DOI · Paper page
  54. 10.48550/arXiv.1708.02551 · arXiv · doi:10.48550/arxiv.1708.02551 · Paper page
  55. Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. Preprint at https://arxiv.org/abs/1412.6980 (2017). · DOI · Paper page
  56. Loshchilov, I. & Hutter, F. Decoupled weight decay regularization. Preprint at https://arxiv.org/abs/1711.05101 (2019). · arXiv
  57. Paszke, A. et al. PyTorch: an imperative style, high-performance deep learning library. in Advances in Neural Information Processing Systems 32 (NeurIPS, 2019).
  58. Hirling, D. et al. Segmentation metric misinterpretations in bioimage analysis. Nat. Methods https://doi.org/10.1038/s41592- 023-01942-8 (2023). · DOI

Cited by

See all 50

Metadata

Authors
Archit, A., Nair, S., Khalid, N., Hilt, P., Rajashekar, V., Freitag, M., Gupta, S., Dengel, A., Ahmed, S., & Pape, C.
Publisher
openRxiv
Published
2023-08-22
Cited by
50
References
1
Type
Preprint

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.