SegmentAnything helps microscopy images based automatic and quantitative organoid detection and analysis

Xiaodan Xing, Chunling Tang, Yunzhe Guo, Nicholas Kurniawan, Guang Yang · DOI

TL;DR

This paper introduces a novel pipeline that leverages the powerful Segment Anything (SAM) foundation model to automatically detect and analyze individual organoids in microscopy images. By integrating SAM with custom post-processing and morphological feature extraction, the method significantly accelerates and improves the accuracy of organoid analysis, a crucial task in developmental biology and drug discovery.

What Problem Does This Paper Address?

Organoids, miniature versions of organs grown in vitro, are invaluable tools for studying development, disease, and drug responses. Quantifying their morphology is key to understanding these processes. However, analyzing microscopy images of organoids presents a major bottleneck: manual segmentation of thousands of individual organoids in large images is incredibly time-consuming and labor-intensive. Existing automated methods often require extensive, task-specific data annotation for training, limiting their generalizability across different microscopy modalities and organoid types. This paper aims to overcome these limitations by providing an efficient, automated, and more generalizable approach to organoid detection and analysis.

Methods

The core of this work is the application of Meta AI's Segment Anything (SAM) model. SAM, trained on a massive dataset of 11 million images, is used to generate initial masks for individual organoids. The authors then implement a crucial post-processing pipeline to refine these masks. This pipeline addresses several challenges encountered when applying SAM to microscopy images, including:

  • Background misidentification: SAM sometimes incorrectly segments background as objects.
  • Patch-based processing artifacts: High-resolution images are processed in patches, which can lead to incomplete organoid segmentation at patch edges.
  • Lumen structures: Organoids with internal cavities can be split into multiple objects by SAM.
  • Debris detection: Small debris can be mistaken for organoids.

The post-processing involves excluding objects at patch boundaries, merging segmented parts of organoids with lumens, and a manual step to remove identified debris. Following segmentation, the pipeline automatically calculates five key morphological properties for each organoid: perimeter, radius, area, non-smoothness, and non-circularity. These metrics provide a quantitative understanding of organoid shape and size.

Datasets

The study evaluated its approach using bright-field microscopy images of human induced pluripotent stem cells (iPSCs) derived neural-epithelial (NE) organoids. These images were obtained from a previously published study (Reference 5), which provides a benchmark for comparison. The authors did not introduce a new dataset but rather applied their method to existing data to validate its effectiveness.

Key Insights and Ideas

  • Leveraging Foundation Models for Specialized Tasks: The paper demonstrates the power of large, general-purpose foundation models like Segment Anything in tackling specific scientific imaging challenges, even without task-specific fine-tuning.
  • The Importance of Post-Processing: While SAM is a powerful segmentation tool, its raw output often requires significant refinement for specialized biological imaging. The authors highlight that their custom post-processing steps are critical for achieving accurate organoid detection.
  • Automated Morphological Analysis: Moving beyond just detection, the pipeline offers a comprehensive suite of quantitative morphological features, enabling researchers to perform detailed analyses automatically.
  • Generalizability Potential: By using a model trained on diverse modalities, the approach holds promise for broader applicability across different types of microscopy and organoid cultures, reducing the need for extensive re-training.

Key Results

The proposed pipeline demonstrated strong performance in detecting and analyzing NE organoids. When compared to the StarDist method (a deep learning-based cell detection algorithm), the authors' approach, even without fine-tuning StarDist, showed superior results. Specifically, the automated organoid size quantification closely aligned with manually measured results from a previous publication, validating the accuracy of their method. The authors also noted that their manual removal of debris was a simpler task compared to manually identifying all organoid structures.

Limitations and Future Work

The authors acknowledge that the current pipeline still requires a manual step to remove debris that might be misidentified as organoids by the model. This is a limitation that they have not yet automated. Future work could focus on developing automated methods for debris removal to achieve fully automated analysis. Additionally, exploring the application of this pipeline to other types of organoids and microscopy modalities would be a valuable next step to further assess its generalizability.

Summary updated

BibTeX
@misc{xing2023segmentanything,
  author = {Xiaodan Xing and Chunling Tang and Yunzhe Guo and Nicholas Kurniawan and Guang Yang},
  title = {{SegmentAnything helps microscopy images based automatic and quantitative organoid detection and analysis}},
  year = {2023},
  eprint = {2309.04190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04190},
}
Figure