Skip to main content
QUICK REVIEW

[Paper Review] U-Netmer: U-Net meets Transformer for medical image segmentation

Sheng He, Rina Bao|arXiv (Cornell University)|Apr 3, 2023
Radiomics and Machine Learning in Medical ImagingMedicine6 citations
TL;DR

U-Netmer proposes a novel fusion of U-Net and Transformer architectures for medical image segmentation, addressing the 'token-flatten' and 'scale-sensitivity' problems by applying U-Net to local patches and using Transformer to model global context. It achieves state-of-the-art performance across 7 datasets and modalities, with segmentation discrepancy across scales serving as a reliable confidence score for ranking test images by difficulty without ground truth.

ABSTRACT

The combination of the U-Net based deep learning models and Transformer is a new trend for medical image segmentation. U-Net can extract the detailed local semantic and texture information and Transformer can learn the long-rang dependencies among pixels in the input image. However, directly adapting the Transformer for segmentation has ``token-flatten" problem (flattens the local patches into 1D tokens which losses the interaction among pixels within local patches) and ``scale-sensitivity" problem (uses a fixed scale to split the input image into local patches). Compared to directly combining U-Net and Transformer, we propose a new global-local fashion combination of U-Net and Transformer, named U-Netmer, to solve the two problems. The proposed U-Netmer splits an input image into local patches. The global-context information among local patches is learnt by the self-attention mechanism in Transformer and U-Net segments each local patch instead of flattening into tokens to solve the `token-flatten" problem. The U-Netmer can segment the input image with different patch sizes with the identical structure and the same parameter. Thus, the U-Netmer can be trained with different patch sizes to solve the ``scale-sensitivity" problem. We conduct extensive experiments in 7 public datasets on 7 organs (brain, heart, breast, lung, polyp, pancreas and prostate) and 4 imaging modalities (MRI, CT, ultrasound, and endoscopy) to show that the proposed U-Netmer can be generally applied to improve accuracy of medical image segmentation. These experimental results show that U-Netmer provides state-of-the-art performance compared to baselines and other models. In addition, the discrepancy among the outputs of U-Netmer with different scales is linearly correlated to the segmentation accuracy which can be considered as a confidence score to rank test images by difficulty without ground-truth.

Motivation & Objective

  • To address the 'token-flatten' problem in vision Transformers, where local patch interactions are lost during 1D tokenization.
  • To overcome the 'scale-sensitivity' issue in patch-based Transformers, where segmentation accuracy varies significantly with fixed patch size.
  • To develop a unified model structure that supports multiple patch scales with shared parameters for improved robustness.
  • To generate a confidence score for test images based on segmentation consistency across scales, enabling difficulty ranking without ground-truth.
  • To demonstrate state-of-the-art segmentation performance across diverse medical imaging modalities and organs.

Proposed method

  • The input image is split into non-overlapping local patches at multiple scales (s = 1, 2, 4, 8), with s=1 being the full image.
  • Each local patch is segmented independently using a U-Net backbone, preserving spatial interactions within the patch.
  • Global context among patches is modeled via a Transformer encoder that attends to the embeddings of all local patches.
  • The final segmentation is produced by merging the outputs of the U-Net segments using the global attention features.
  • A confidence score is computed as the Dice coefficient between segmentation maps from different scales (e.g., s=1 and s=2), serving as a proxy for segmentation accuracy.
  • The model is trained end-to-end with shared parameters across scales, enabling multi-scale inference without retraining.

Experimental results

Research questions

  • RQ1Can a global-local fusion of U-Net and Transformer outperform standard U-Net and hybrid models in medical image segmentation?
  • RQ2Does the discrepancy between segmentation maps at different scales correlate with actual segmentation accuracy, enabling confidence estimation without ground truth?
  • RQ3Can the proposed model maintain consistent performance across varying patch scales without retraining?
  • RQ4How does the confidence score derived from scale discrepancy compare to existing methods in ranking image difficulty?
  • RQ5Does the model generalize across diverse organs and imaging modalities?

Key findings

  • U-Netmer achieves state-of-the-art performance on 7 public datasets spanning 7 organs and 4 imaging modalities (MRI, CT, ultrasound, endoscopy).
  • The model demonstrates consistent improvement over 4 baselines and 6 SOTA models across all evaluated datasets.
  • The discrepancy between segmentation maps at different scales (e.g., s=1 and s=2) shows a strong linear correlation with actual Dice accuracy, with Pearson correlation exceeding 0.8 on 6 out of 7 datasets.
  • The confidence score based on scale discrepancy outperforms ProtoSeg’s mean segmentation ability score in ranking image difficulty on 6 of the 7 datasets.
  • Images with low confidence scores tend to have small, poorly contrasted, or blurry target regions, while high-confidence images have clear, large, and well-defined structures.
  • The model’s ability to generate consistent predictions across scales enables reliable identification of hard-to-segment cases for human-in-the-loop review.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.