Few-Shot Medical Image Segmentation via a Region-enhanced Prototypical Transformer

Yazhou Zhu, Shidong Wang, Tong Xin, Haofeng Zhang · DOI

Abstract

Deep learning has significantly advanced medical image segmentation; however, the reliance on large-scale, expert-annotated datasets remains a major bottleneck. Few-Shot Medical Image Segmentation (FSMS) attempts to mitigate this by learning to segment new classes from only a few annotated examples. A primary challenge in FSMS is intra-class diversity—the significant anatomical and visual variation of organs across different patients. This paper introduces the Region-enhanced Prototypical Transformer (RPT), a framework designed to capture local anatomical details and filter out noisy support information. By employing regional prototypes and a bias-alleviated transformer mechanism, RPT achieves state-of-the-art performance across multiple medical imaging modalities.

Introduction

In clinical settings, obtaining thousands of hand-annotated medical images is often impractical due to the high cost of expert labor and the rarity of certain conditions. While Few-Shot Medical Image Segmentation (FSMS) offers a promising alternative, existing methods often struggle with the inherent variability of human anatomy. Standard prototypical networks typically represent an entire organ using a single "global prototype" (an average feature vector). This approach often fails because a single vector cannot capture the complex textures, shapes, and pathological variations (such as lesions) present across different patients. Consequently, these "blurry" prototypes lead to poor segmentation performance on query images that deviate from the support examples.

Methodology

The Region-enhanced Prototypical Transformer (RPT) addresses the limitations of global prototypes through three core architectural innovations:

1. Regional Prototype Generation (RPG)

To capture local anatomical nuances, RPT moves beyond the one-size-fits-all global prototype. Using Voronoi-based partitioning, the model subdivides the support organ into multiple smaller, localized regions (e.g., 10 distinct regions). This decomposition allows the model to represent local textures and geometric features more precisely, ensuring that specific parts of an organ can be matched even if the overall shape differs between patients.

2. Bias-alleviated Transformer (BaT) Blocks

The heart of the RPT architecture is the Bias-alleviated Transformer block. These blocks utilize a Search and Filter (S&F) mechanism to dynamically compare support regions with the query image. In medical imaging, a support image might contain specific biases—such as a unique lesion or a scanning artifact—that are not present in the query image. The S&F mechanism identifies these discrepancies and uses a learnable threshold to "weed out" irrelevant or noisy information, preventing the model from being misled by non-representative features.

3. Iterative Refinement and Backbone

The model stacks multiple BaT blocks to iteratively refine the prototypes. This process progressively cleans the feature representations, eventually producing a rectified global prototype tailored to the specific query image. The system utilizes a ResNet-101 backbone, pretrained on MS-COCO, which the authors found superior to smaller architectures for capturing complex spatial features. The training process is guided by a hybrid loss function combining Binary Cross-Entropy, Dice loss, and Boundary loss to ensure sharp, anatomically accurate edges.

Experiments and Results

Datasets and Settings

The RPT framework was evaluated on three diverse public datasets:

  • Abd-MRI: Abdominal MRI scans (liver, spleen, kidneys).
  • Abd-CT: Abdominal CT scans.
  • Card-MRI: Cardiac MRI scans (ventricles and myocardium).

Testing was conducted under two rigorous protocols: Setting 1 (standard) and Setting 2 (strict), where any training images containing test classes in the background were entirely removed to ensure the model was evaluated on truly "unseen" data.

Performance Metrics

RPT established new state-of-the-art (SOTA) benchmarks across all tested modalities:

  • Accuracy: On the Abd-CT dataset (Setting 1), RPT achieved a Mean Dice score of 77.83%, representing a 3.31% improvement over the previous leading method, AAS-DCL.
  • Generalization: In the stricter Setting 2, the model maintained high performance, such as a 79.04% Mean Dice score on Abd-MRI, demonstrating robust generalization to novel organ types.
  • Qualitative Results: Visual inspections confirm that RPT produces cleaner boundaries and significantly fewer false positives compared to baseline models like PANet or ADNet.

Discussion and Conclusion

The success of RPT highlights two critical insights for few-shot medical imaging: the superiority of local regional features over global averages and the necessity of active noise filtering. By breaking organs into regions, the model finds compatible anatomical "parts" across patients, while the Search and Filter mechanism prevents the propagation of patient-specific biases.

Future work may focus on reducing the computational overhead associated with stacking multiple transformer blocks to facilitate real-time clinical use. Additionally, while RPT currently processes 2D slices with 3D supervoxel supervision, extending the architecture to native 3D volumes could further enhance its ability to capture volumetric anatomical context. Despite these areas for growth, RPT represents a significant step forward in making high-accuracy medical image segmentation accessible in data-scarce environments.

Summary updated

BibTeX
@inproceedings{zhu2023few,
  author = {Yazhou Zhu and Shidong Wang and Tong Xin and Haofeng Zhang},
  title = {{Few-Shot Medical Image Segmentation via a Region-enhanced Prototypical Transformer}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  doi = {10.1007/978-3-031-43901-8\_26},
}
Figure