One-shot Localization and Segmentation of Medical Images with Foundation Models

Deepa Anand, Gurunath Reddy M, Vanika Singhal, Dattesh D. Shanbhag, K. S. Shriram, Uday Patil, Chitresh Bhushan, Kavitha Manickam, Dawei Gui, Rakesh Mullick, Avinash Gopal, Parminder Bhatia, Taha A. Kass-HoutR0-FoMo @ NeurIPS 2023 · DOI

TL;DR

This paper demonstrates that foundation models pre-trained on natural images can be effectively adapted for one-shot localization and segmentation of medical images without any in-domain fine-tuning. By chaining these models, particularly DINO and SAM, the authors achieve competitive segmentation performance, outperforming existing few-shot methods on several medical imaging tasks.

What Problem Does This Paper Address?

Medical image analysis tasks like localization and segmentation often require large amounts of labeled data for training deep learning models. However, acquiring and annotating medical data is expensive and time-consuming. While recent advances in foundation models (FMs) like Vision Transformers (ViTs) and Stable Diffusion (SD) have shown remarkable success on natural images, there's been a hesitation to apply them directly to medical imaging due to differences in acquisition physics and reconstruction algorithms. This often leads to costly fine-tuning on limited medical datasets. This paper addresses the challenge of leveraging powerful, general-purpose FMs for medical image analysis with minimal data, specifically aiming for "one-shot" performance (using only a single example).

Methods

The core of this work is a framework that chains pre-trained foundation models for localization and segmentation.

  1. Feature Extraction: The authors utilize various pre-trained FMs, including DINOv1, DINOv2, SAM (encoder), and CLIP, to extract dense pixel-level feature descriptors from both template and target medical images. They specifically focus on using "token embeddings" from the last transformer block as patch feature descriptors. For diffusion models like Stable Diffusion, they follow a method that introduces noise and extracts intermediate layer features.
  2. Localization Framework: For localization, they compute the similarity between feature vectors of a template image (with user-defined positive/negative prompts) and the target image. This similarity measure helps identify corresponding locations.
  3. Segmentation Framework: To achieve segmentation, they leverage the localization results. Specifically, they use the correspondence information to "prompt" the Segment Anything (SAM) model. This means using the identified correspondences as input to SAM, enabling it to perform segmentation with just one template image and its associated prompts.

The novelty lies in the chaining of these FMs and their application to medical images without in-domain fine-tuning, relying solely on their pre-trained capabilities on natural images.

Datasets

The study evaluates its approach on a variety of medical imaging datasets, including:

  • Open-Source Datasets:
    • CT Total Segmentator Dataset (used for urinary bladder, spleen, and liver segmentation).
  • HaN Dataset (head and neck CT and MR images).
  • MRI kidney dataset (abdominal MR scans).
  • In-house Datasets:
    • MRI Shoulder dataset.
  • MRI Knee dataset (from two vendors).
  • MRI Spine dataset.
  • Ultrasound abdominal data (for gall-bladder and kidney segmentation).

These datasets span multiple modalities (CT, MR, Ultrasound), anatomical regions (brain, thorax, abdomen, extremities), and are sourced from various manufacturers, providing a comprehensive evaluation.

Key Insights and Ideas

  • Natural Image FMs Work for Medical Images (Surprisingly Well): The most significant insight is that FMs pre-trained exclusively on natural images can perform remarkably well on medical imaging tasks, challenging the common assumption that extensive in-domain fine-tuning is always necessary.
  • Chaining FMs is Powerful: The proposed method of chaining different FMs (e.g., DINO for feature extraction and SAM for segmentation) unlocks new capabilities, especially for one-shot tasks.
  • DINOv2 and Stable Diffusion Shine: DINOv2 and Stable Diffusion-based models generally show superior performance for feature extraction and localization compared to other models, likely due to their robust training and curated data.
  • Model Choice Matters: There isn't a single "best" model for all tasks. The optimal choice depends on the specific anatomical region and task, highlighting the need for careful selection.
  • Prompt Accuracy is Key for SAM: The accuracy of the positive and negative prompts provided to SAM is strongly correlated with the final segmentation performance, emphasizing the importance of good user interaction or initial localization.

Key Results

  • One-Shot Segmentation Performance: The proposed method achieves a Dice score range of 62%-90% across various segmentation tasks using just one template image.
  • Outperforming Existing Methods: The single-shot approach significantly outperforms the recently proposed few-shot segmentation method UniverSeg (Dice range 47%-80%) on most semantic segmentation tasks (six out of seven).
  • Localization Accuracy: The paper reports good localization results for various anatomical landmarks, with DINOv2 showing particular robustness to image orientation changes.
  • Model Performance: DINOv2 and Stable Diffusion-based models generally perform best, achieving Dice ranges of 0.62-0.90 and 0.57-0.88, respectively.

Limitations and Future Work

  • Single Slice Limitation: The current approach is primarily evaluated on 2D slices. The authors acknowledge that scaling this to 3D volume segmentation is a crucial next step.
  • No Comparison with Supervised In-Domain Models: The study did not compare its one-shot approach against fully supervised, in-domain task-specific models, which might offer higher performance but require significantly more labeled data.
  • Heuristic Nature of Some Methods: Techniques like similarity-based mask generation are noted as heuristic, requiring careful parameter tuning. The authors are exploring automatic parameter determination.
  • Broader Case Evaluation: Future work should include an exhaustive evaluation over a wider variety of clinical cases, including pathologies and implants, across different modalities.
  • Exploring Other FMs: While CLIP was evaluated, its performance was deemed inferior, suggesting further exploration of other FMs or fine-tuning strategies might be beneficial.

Summary updated

BibTeX
@misc{anand2023one,
  author = {Deepa Anand and Gurunath Reddy M and Vanika Singhal and Dattesh D. Shanbhag and K. S. Shriram and Uday Patil and Chitresh Bhushan and Kavitha Manickam and Dawei Gui and Rakesh Mullick and Avinash Gopal and Parminder Bhatia and Taha A. Kass-Hout},
  title = {{One-shot Localization and Segmentation of Medical Images with Foundation Models}},
  year = {2023},
  eprint = {2310.18642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.18642},
}
Figure