ScribblePrompt: Fast and Flexible Interactive Segmentation for Any Biomedical Image

Hallee E. Wong, Marianne Rakic, John V. Guttag, Adrian V. Dalca

Introduction

Biomedical image segmentation—the process of outlining structures like tumors or organs—is a cornerstone of medical research and clinical care. While deep learning has automated many specific tasks, these models are usually "specialists" trained for one organ or one modality (e.g., just heart MRI). When researchers encounter a new task or a rare disease, they are often forced back to manual labeling, which is grueling and requires expert knowledge. Existing "generalist" tools like the Segment Anything Model (SAM) were trained primarily on natural images and often struggle with the subtle, low-contrast boundaries found in medical scans.

Methodology

ScribblePrompt treats segmentation as an iterative conversation between the user and the AI. Unlike models that take a single "shot," ScribblePrompt is trained to look at its previous prediction, identify failures, and incorporate new user corrections to refine the output.

The ScribblePrompt framework architecture

Key technical innovations include:

  • Iterative Training: The model incorporates feedback loops to refine predictions based on previous errors.
  • Realistic Prompt Simulation: Algorithms simulate "human-like" interactions during training, including messy scribbles (lines, centerlines, and contours) rather than just perfect clicks.
  • Synthetic Label Generation: To prevent the model from simply memorizing anatomical shapes, the researchers used a superpixel algorithm to create random, non-anatomical shapes during training. This forces the model to follow user prompts rather than anatomical priors.
  • Architecture Options: Two versions are provided: a lightweight ScribblePrompt-UNet (an 8-layer CNN optimized for speed) and ScribblePrompt-SAM (a version of SAM fine-tuned for medical tasks).

Datasets and Evaluation

The study utilized a massive corpus of data, including 65 open-access biomedical datasets (part of the MegaMedical collection), encompassing 54,000 scans across 16 different image types (MRI, CT, Ultrasound, etc.) and 711 unique labels. Evaluation was performed on 12 "unseen" datasets to ensure real-world generalization. Additionally, the authors introduced MedScribble, a new evaluation dataset consisting of manual scribble annotations from expert neuroimaging researchers.

Key Insights

A primary finding is that scribbles are superior to clicks, providing significantly more information per interaction. ScribblePrompt typically reaches high accuracy (Dice > 0.8) in just two scribble steps, whereas click-based methods require five to eight steps. Furthermore, the use of synthetic superpixel labels allows the model to learn the logic of interactive segmentation, enabling it to work on anatomical structures it has never encountered before.

Key Results

ScribblePrompt demonstrates significant improvements in both accuracy and efficiency. In a study with 16 domain experts, the tool reduced segmentation time by 28% compared to SAM, with a 15% improvement in Dice score.

Iterative segmentation steps across various medical modalities

Experts preferred ScribblePrompt for its ability to handle multiple prompt types and its responsiveness to corrections. Crucially, ScribblePrompt-UNet is designed for practical clinical use, running locally on a single CPU in just 0.27 seconds per prediction, compared to over 2 minutes for SAM on the same hardware.

Conclusion

While ScribblePrompt is highly flexible, the current implementation focuses on 2D slices. Future work may involve a native 3D version to improve consistency across volumes. By releasing their code, weights, and the MedScribble dataset, the authors provide a robust foundation for "any-image" interactive segmentation in the biomedical domain.

Summary updated

BibTeX
@inproceedings{wong2024scribbleprompt,
  author = {Hallee E. Wong and Marianne Rakic and John V. Guttag and Adrian V. Dalca},
  title = {{ScribblePrompt: Fast and Flexible Interactive Segmentation for Any Biomedical Image}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73661-2\_12},
}
Figure