Skip to main content
QUICK REVIEW

[Paper Review] ScribFormer: Transformer Makes CNN Work Better for Scribble-based Medical Image Segmentation

Zihan Li, Zheng Yuan|arXiv (Cornell University)|Feb 3, 2024
Brain Tumor Detection and ClassificationNeuroscience3 citations
TL;DR

ScribFormer proposes a novel CNN-Transformer hybrid architecture for scribble-supervised medical image segmentation, leveraging multi-scale attention from shallow and deep Transformer blocks to enhance local and global feature learning. It achieves state-of-the-art performance, outperforming fully-supervised methods on ACDC, MSCMRseg, and HeartUII datasets with Dice scores up to 0.833.

ABSTRACT

Most recent scribble-supervised segmentation methods commonly adopt a CNN framework with an encoder-decoder architecture. Despite its multiple benefits, this framework generally can only capture small-range feature dependency for the convolutional layer with the local receptive field, which makes it difficult to learn global shape information from the limited information provided by scribble annotations. To address this issue, this paper proposes a new CNN-Transformer hybrid solution for scribble-supervised medical image segmentation called ScribFormer. The proposed ScribFormer model has a triple-branch structure, i.e., the hybrid of a CNN branch, a Transformer branch, and an attention-guided class activation map (ACAM) branch. Specifically, the CNN branch collaborates with the Transformer branch to fuse the local features learned from CNN with the global representations obtained from Transformer, which can effectively overcome limitations of existing scribble-supervised segmentation methods. Furthermore, the ACAM branch assists in unifying the shallow convolution features and the deep convolution features to improve model's performance further. Extensive experiments on two public datasets and one private dataset show that our ScribFormer has superior performance over the state-of-the-art scribble-supervised segmentation methods, and achieves even better results than the fully-supervised segmentation methods. The code is released at https://github.com/HUANGLIZI/ScribFormer.

Motivation & Objective

  • Address the limitation of CNNs in capturing global shape information from sparse scribble annotations in medical image segmentation.
  • Overcome the poor generalization of weakly-supervised methods due to noisy and incomplete scribble labels.
  • Integrate the strengths of CNNs (local feature extraction) and Transformers (long-range dependency modeling) for improved segmentation under weak supervision.
  • Reduce dependency on expensive pixel-level annotations by enabling high-performance segmentation using only scribble-level supervision.
  • Develop a unified framework that enhances feature representation across multiple network depths through attention-guided feature refinement.

Proposed method

  • Proposes a triple-branch architecture: a CNN branch for local feature learning, a Transformer branch for global context modeling, and an attention-guided class activation map (ACAM) branch for feature fusion.
  • Utilizes attention weights from shallow Transformer blocks to refine low-level convolutional features, improving spatial detail preservation.
  • Employs attention weights from deep Transformer blocks to guide refinement of high-level semantic features and ACAMs, enhancing global shape consistency.
  • Fuses features from the CNN and Transformer branches through cross-attention mechanisms to combine local details and global context.
  • Introduces an ACAM branch that unifies shallow and deep convolutional features using attention-based aggregation, improving feature representation quality.
  • Trains the model end-to-end using standard segmentation loss (e.g., Dice loss) on sparse scribble annotations, avoiding the need for full masks.

Experimental results

Research questions

  • RQ1Can a hybrid CNN-Transformer architecture improve global shape learning in scribble-supervised medical image segmentation compared to pure CNNs?
  • RQ2How do attention maps from different depth levels of a Transformer contribute to refining both local and global features in weakly-supervised settings?
  • RQ3Can attention-guided feature fusion between CNN and Transformer branches outperform standard feature concatenation or element-wise operations?
  • RQ4Does the proposed method achieve performance comparable to or better than fully-supervised methods when trained only on scribble annotations?
  • RQ5What is the impact of architectural design choices (e.g., triple-branch structure, attention-based refinement) on model robustness and variance in inference?

Key findings

  • ScribFormer achieves a Dice score of 0.833 (95% CI: 0.808–0.854) on the HeartUII dataset, significantly outperforming all compared methods including UNet++ and CycleMix S.
  • The model achieves a p-value < 10^-9 when compared to UNet pce and UNet ustr, indicating statistically significant improvement in segmentation performance.
  • Despite non-significant p-values in some comparisons (e.g., UNet crf and CycleMix S), ScribFormer shows narrower 95% confidence intervals and higher median performance, indicating greater robustness.
  • ScribFormer surpasses fully-supervised UNet++ on the same datasets, demonstrating that weakly-supervised learning with scribbles can achieve SOTA results when combined with attention-based feature learning.
  • The ablation study confirms that both shallow and deep Transformer attention heads contribute uniquely—shallow heads improve spatial detail, while deep heads enhance semantic consistency.
  • The model’s inference variance is lower than that of CycleMix S, as evidenced by tighter confidence intervals and higher median performance in box plot analysis.

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.