TV-SAM: Increasing Zero-Shot Segmentation Performance on Multimodal Medical Images Using GPT-4 Generated Descriptive Prompts Without Human Annotation

Zekun Jiang, Dongjie Cheng, Ziyuan Qin, Jun Gao, Qicheng Lao, Abdullaev Bakhrom Ismoilovich, Gayrat Urazboev, Yuldashov Elyorbek, Bekchanov Habibullo, Defu Tang, Linjing Wei, Kang Li, Le Zhang

TL;DR

This paper introduces TV-SAM, a novel zero-shot medical image segmentation method that leverages GPT-4 to automatically generate descriptive text and visual prompts. By integrating GPT-4 with vision-language models (GLIP) and the Segment Anything Model (SAM), TV-SAM achieves strong segmentation performance across diverse medical imaging modalities without requiring manual annotations or task-specific training.

What Problem Does This Paper Address?

Accurate segmentation of medical images is crucial for diagnosis and treatment. However, traditional segmentation methods often require extensive manual annotation, which is time-consuming and expensive, especially for multimodal datasets. While the Segment Anything Model (SAM) has shown promise for zero-shot segmentation, its performance in specialized domains like medical imaging can be limited without effective prompts. Existing approaches often rely on human-provided prompts (like bounding boxes) or struggle with the domain gap between natural and medical images. This paper aims to bridge this gap by developing an automated, prompt-generation system that enhances SAM's zero-shot segmentation capabilities for medical images.

Methods

The core of TV-SAM lies in its three-stage pipeline:

  1. GPT-4 Driven Prompt Generation (Stage 1): GPT-4 acts as a knowledge source to generate detailed, descriptive text prompts for medical concepts. It takes an image and a user query (e.g., "What does 'polyp' look like?") and outputs attributes like color, shape, and location. This stage leverages GPT-4's emergent capabilities and chain-of-thought reasoning.
  2. Visual Prompt Generation via VLM (Stage 2): A pre-trained Vision-Language Model (VLM), specifically GLIP, uses the text prompts generated by GPT-4 to identify probable regions of interest in the medical image. This stage outputs bounding boxes, effectively performing zero-shot object detection. Non-maximum suppression is used to refine these bounding boxes.
  3. SAM Zero-Shot Segmentation (Stage 3): The bounding boxes generated by GLIP are then used as visual prompts for the SAM. SAM's mask decoder uses these prompts to generate the final segmentation masks for the identified objects. This stage leverages SAM's powerful segmentation capabilities without requiring any manual input beyond the initial image and concept.

Datasets

The study evaluates TV-SAM on seven publicly available multimodal medical imaging datasets, covering eight imaging modalities and nine segmentation objects:

  • Polyp benchmark: Endoscopic images for polyp segmentation.
  • ISIC 2018: Dermoscopic images for melanoma segmentation.
  • WBC dataset: Microscopic images for blood cell nuclei segmentation.
  • BUSI dataset: Ultrasound images for breast cancer tumor segmentation.
  • TN3K dataset: Ultrasound images for thyroid nodule segmentation.
  • COVID-19 Database: X-ray images for lung segmentation.
  • CHAOS dataset: CT and MRI data for liver, spleen, and kidney segmentation.

The authors note that they use the test sets of these datasets for evaluation, as their algorithm does not require training.

Key Insights and Ideas

  • GPT-4 as a powerful prompt engineer: The study highlights GPT-4's ability to generate rich, descriptive prompts that capture nuanced visual attributes (color, shape, location) crucial for accurate medical image segmentation, even without explicit medical expertise.
  • Bridging the domain gap: By combining GPT-4's general knowledge with VLM and SAM, TV-SAM effectively overcomes the domain gap that often hinders the performance of models trained on natural images when applied to medical data.
  • Automated pipeline for zero-shot segmentation: The fully automated nature of TV-SAM, from prompt generation to segmentation, significantly reduces the need for manual annotation and expert intervention, making it more practical for real-world applications.
  • Bounding box selection matters: The exploration of different bounding box selection strategies (e.g., top-k confidence) suggests that while a single high-confidence box is good, using multiple boxes can further improve segmentation performance, especially for complex images.

Key Results

TV-SAM demonstrates strong zero-shot segmentation performance across various medical imaging modalities:

  • Overall Performance: TV-SAM significantly outperforms SAM AUTO (P<0.01) and GSAM (P<0.05).
  • Comparison to SAM BBOX: TV-SAM closely matches the performance of SAM BBOX, which relies on gold-standard bounding box prompts (P=0.07).
  • SOTA Performance: TV-SAM surpasses state-of-the-art methods on specific datasets like ISIC (0.853 vs. 0.802) and WBC (0.968 vs. 0.883).
  • Modality Performance: Generally, TV-SAM performs better on non-radiological images (average Dice > 0.8) compared to radiological images (CT and MRI, where metrics are often < 0.7). For X-ray data, TV-SAM even outperforms SAM BBOX.

Limitations and Future Work

The authors acknowledge several limitations:

  • Radiological Image Performance: The segmentation performance on radiological images (CT, MRI) is generally lower than on non-radiological images. This is attributed to the fundamental differences in imaging principles and modalities between natural images (on which foundational models are primarily trained) and radiological images.
  • Optimal Bbox Prompt Selection: While the study provides a general trend for selecting bounding box prompts, it does not definitively identify the single optimal choice for all scenarios.

Future research directions include:

  • Further exploring strategies to increase zero-shot performance on radiological images.
  • Investigating the best strategy for SAM bounding box prompt selection.
  • Developing a superior, fully automatic zero-shot segmentation algorithm.

Summary updated

BibTeX
@article{jiang2024tv,
  author = {Zekun Jiang and Dongjie Cheng and Ziyuan Qin and Jun Gao and Qicheng Lao and Abdullaev Bakhrom Ismoilovich and Gayrat Urazboev and Yuldashov Elyorbek and Bekchanov Habibullo and Defu Tang and Linjing Wei and Kang Li and Le Zhang},
  title = {{TV-SAM: Increasing Zero-Shot Segmentation Performance on Multimodal Medical Images Using GPT-4 Generated Descriptive Prompts Without Human Annotation}},
  journal = {Big Data Min. Anal.},
  year = {2024},
  doi = {10.26599/bdma.2024.9020058},
}
Figure