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.
Introduction
Deep learning in medical imaging typically relies on dense annotations—pixel-perfect masks of organs or tumors. However, creating these masks is a significant bottleneck, as it is time-consuming, expensive, and requires expert radiologists. Weakly-supervised learning using scribbles (simple lines drawn over areas of interest) offers a popular alternative, but it presents a major challenge for standard Convolutional Neural Networks (CNNs).
Because CNNs have a local receptive field, they excel at capturing textures but struggle to understand the global shape of an organ when only a few pixels are labeled. This often leads to "partial activation," where the model identifies only the most distinct parts of an object rather than its entire volume. ScribFormer addresses this by integrating Transformers, which are designed to capture long-range dependencies and global context, to act as a "shape prior" for sparse data.
Methodology
ScribFormer utilizes a triple-branch hybrid network to bridge the gap between local detail and global context:
- CNN Branch: Captures high-resolution local details and spatial hierarchies.
- Transformer Branch: Uses self-attention to capture global representations and long-range semantic correlations, helping the model "fill in the blanks" between sparse scribbles.
- Attention-guided Class Activation Map (ACAM) Branch: Unifies shallow and deep features using a Gaussian modulation function to refine feature localization, ensuring the model focuses on the entire object rather than just discriminative pixels.
Technical Innovations
- Feature Coupling Units (FCU): These units fuse features between the CNN and Transformer branches at multiple scales, ensuring that local and global information are shared throughout the encoding process.
- Mixed-Supervision Strategy: The model employs a combination of partial cross-entropy for scribbles and a dynamic pseudo-labeling strategy that mixes predictions from both branches to create labels for unlabeled pixels.
- ACAM-Consistency Loss: A novel loss function that regularizes shallow layers using high-level global information from deeper layers, forcing the network to learn consistent shape priors across all levels.
Experimental Results
The model was evaluated on three datasets: the ACDC (cardiac MRI), MSCMRseg (Late Gadolinium Enhancement MRI), and HeartUII (a private cardiac CT dataset).
Key Results
- Superiority over SOTA: On the ACDC dataset, ScribFormer achieved a Dice score of 0.888, significantly outperforming the previous state-of-the-art scribble-supervised method (0.848).
- Beating Full Supervision: In several tests, ScribFormer outperformed standard CNNs (like UNet++) trained on fully-annotated masks, suggesting that global context modeling is often more valuable than additional labels for standard CNNs.
- Efficiency: Despite the Transformer components, ScribFormer is more computationally efficient (lower FLOPs) and faster during inference (13.96s vs. 21.21s per case) than existing frameworks like CycleMix.
Conclusion
ScribFormer demonstrates that a hybrid CNN-Transformer architecture can effectively overcome the limitations of local receptive fields in scribble-based segmentation. By leveraging global shape information and a novel triple-branch consistency loss, the model achieves state-of-the-art performance while remaining computationally efficient for clinical applications.
Summary updated