TL;DR
This paper introduces HiFormer, a novel hybrid CNN-Transformer architecture for medical image segmentation. By effectively fusing local features from CNNs with global context from Swin Transformers, HiFormer achieves state-of-the-art performance across various medical imaging tasks, demonstrating a significant improvement in segmentation accuracy and robustness.
What Problem Does This Paper Address?
Medical image segmentation is crucial for diagnosis, treatment planning, and disease monitoring. Traditional Convolutional Neural Networks (CNNs) excel at capturing local features but struggle with modeling long-range dependencies in images due to their limited receptive fields. While Vision Transformers (ViTs) can capture global context, they often fail to effectively extract low-level, fine-grained features essential for precise segmentation. This gap leaves a need for models that can effectively leverage both local and global information for accurate and robust medical image segmentation.
Methods
HiFormer employs a hierarchical encoder-decoder architecture that synergistically combines CNNs and Swin Transformers. The encoder consists of two parallel branches: a CNN module for extracting local features and a Swin Transformer module for capturing global context. These modules are designed with multiple levels, and skip connections are used to transfer CNN features to corresponding Swin Transformer levels, enhancing feature reusability and localization.
A key innovation is the Double-Level Fusion (DLF) module. This module fuses the representations from the shallowest (smallest scale) and deepest (largest scale) levels of the encoder. It utilizes a cross-attention mechanism, where a class token from one level acts as a query to interact with the features of the other level, enabling effective fusion of coarse and fine-grained information while preserving feature consistency. The decoder then uses the fused features from the DLF module to generate the final segmentation map.
Datasets
The paper evaluates HiFormer on several benchmark datasets:
- Synapse Multi-Organ Segmentation: A dataset of 30 abdominal CT volumes with 3779 axial slices for segmenting eight organs.
- Skin Lesion Segmentation: Datasets including ISIC 2017, ISIC 2018, and PH² for segmenting skin lesions.
- Multiple Mylomia Segmentation: A dataset from the SegPC 2021 challenge for segmenting multiple myeloma plasma cells.
Key Insights and Ideas
- Hybridization is Key: The paper strongly advocates for the synergistic combination of CNNs and Transformers, arguing that neither architecture alone is sufficient for optimal medical image segmentation. CNNs provide essential local details, while Transformers capture crucial long-range dependencies.
- Hierarchical Fusion Matters: The hierarchical nature of the encoder, with multiple levels of CNN and Transformer processing, allows for the extraction of multi-scale features.
- DLF Module's Effectiveness: The novel DLF module is crucial for effectively merging features from different scales. Its cross-attention mechanism, leveraging class tokens, is shown to be more effective than simple summation for maintaining feature consistency and improving segmentation accuracy.
- Balancing Local and Global: HiFormer successfully balances the need for fine-grained local details with the understanding of global context, leading to more robust segmentation, especially in challenging scenarios with complex backgrounds or fine structures.
Key Results
HiFormer consistently outperforms state-of-the-art CNN-based, Transformer-based, and hybrid methods across all tested datasets.
- On the Synapse Multi-Organ Segmentation dataset, HiFormer-B achieved a Dice score of 80.39% and a Hausdorff Distance of 14.70, outperforming TransUNet and Swin-Unet by significant margins.
- For Skin Lesion Segmentation, HiFormer achieved top performance across ISIC 2017, ISIC 2018, and PH² datasets, demonstrating strong generalization capabilities.
- In Multiple Mylomia Segmentation, HiFormer consistently outperformed the challenge leaderboard.
- Qualitative results show HiFormer's ability to capture finer structures and generate more precise contours, even in the presence of noisy items or complex backgrounds.
- HiFormer also demonstrates a favorable balance between performance and model complexity, with fewer parameters compared to some other advanced models.
Limitations and Future Work
- Failure Cases: The authors acknowledge that HiFormer, like other models, still encounters failure cases, particularly with organs like the Aorta and in segmenting low-contrast skin images.
- Future Directions: While not explicitly detailed as future work, the paper's success with hybrid architectures and multi-scale fusion suggests potential for further exploration in these areas. The robustness and efficiency of HiFormer also open avenues for its application to other medical imaging modalities and tasks.
Summary updated