Abstract
Interactive segmentation is a critical tool in medical imaging, bridging the gap between fully automated models and clinical precision. This paper introduces TIS (Transformer-based Interactive Segmentation), a novel framework that leverages Transformer Decoders to refine medical image segmentations based on user clicks. By treating user inputs as "exemplar" features, the model employs a "compare-and-copy" mechanism to group pixels, enabling efficient, multi-category mask editing. TIS significantly outperforms existing state-of-the-art methods across various challenging medical datasets.
Introduction
In medical imaging, fully automatic segmentation models like nnU-Net are highly effective but often struggle with "hard" cases, such as small organs or poorly defined tumors where training data is limited. In these scenarios, clinicians require efficient interactive tools to refine results. However, existing tools often suffer from high latency, complex input requirements (e.g., specific positive/negative click types), and a limitation to binary (foreground/background) segmentation, which makes multi-organ refinement tedious.
Methodology: The "Compare-and-Copy" Strategy
TIS addresses these challenges using a Transformer-based architecture designed for a "compare-and-copy" workflow. The framework is divided into two primary modules:
- Encoder ($\Phi_{ENC}$): A standard nnU-Net serves as the backbone to generate initial segmentations and extract dense feature embeddings from the input image.
- Refinement Module ($\Phi_{REF}$): This core component iteratively refines the segmentation through two interleaved processes:
- Click Encoding: This module transforms user clicks into robust "exemplar" vectors. Rather than treating a click as a single pixel, a Transformer Decoder aggregates context from surrounding image features to enrich the click's representation.
- Label Assignment: Using a cross-attention mechanism, this module compares every image pixel to the exemplar clicks. Pixels with high similarity to a specific category's click "copy" that label, naturally facilitating multi-class segmentation in a single pass.
Experimental Setup
The TIS framework was evaluated on three subsets of the Medical Segmentation Decathlon (MSD):
- Lung Cancer: Segmenting tumors in preoperative CT scans.
- Colon Cancer: Segmenting primary colon cancers.
- Pancreas: A multi-class task involving both pancreatic parenchyma and tumors.
Results and Discussion
TIS demonstrated substantial improvements over both automatic models and existing interactive state-of-the-art (SOTA) methods like InterCNN, DeepIGeoS, and BS-IRIS.
On the Colon Cancer dataset, the baseline automatic model's Dice Similarity Coefficient (DSC) of 44.84% was boosted to 73.03% with only 10 user clicks. TIS consistently outperformed other interactive methods across all categories, achieving a DSC of 77.91% for Pancreas Tumors, compared to 76.49% for the next best method.
Key Insights
- Semantic Matching: By treating clicks as feature exemplars rather than geometric constraints, TIS uses the Transformer's attention as a soft matching engine, grouping pixels based on semantic similarity.
- Efficiency and Scalability: The architecture is agnostic to the underlying encoder and supports simultaneous multi-class refinement, reducing the clinician's workload.
Limitations and Future Work
While effective, the Transformer architecture is memory-intensive, requiring feature cropping for processing. Additionally, while the study used simulated "robust" agents for clicking, future work should evaluate performance with noisier, real-world human interactions. The authors also envision extending this "compare-and-copy" logic to other imaging modalities and video-based medical data.
Summary updated