TL;DR
This paper introduces TransResNet, a novel architecture that combines the strengths of Vision Transformers (ViTs) and Convolutional Neural Networks (CNNs) to achieve state-of-the-art performance in high-resolution medical image segmentation. By employing a "feature grafting" mechanism, TransResNet effectively integrates global semantic information from ViTs with local spatial details from CNNs, overcoming limitations of existing methods that struggle with high-resolution inputs.
What Problem Does This Paper Address?
Medical image segmentation is crucial for diagnosis and analysis, but existing deep learning models often falter when dealing with high-resolution images. This is because many models are optimized for smaller image dimensions, leading to a mismatch between their receptive field and the detailed information present in high-resolution scans. While CNNs excel at capturing local features and ViTs are adept at understanding global context, neither alone is sufficient for high-resolution medical images. CNNs have limited receptive fields, hindering their ability to grasp long-range dependencies, while ViTs, though powerful for global context, often require down-sampling, which can discard fine-grained details essential for accurate segmentation. This paper aims to bridge this gap by proposing a unified architecture that can efficiently process high-resolution medical images and extract both local and global semantic information effectively.
Methods
The core of TransResNet is a parallel-in-branch architecture that utilizes two distinct encoders: a CNN-based encoder (ResNet-18) for capturing local, low-level features, and a Transformer-based encoder (Swin-B) for extracting global, semantic information. To effectively combine the features from these two branches, the authors introduce a novel Cross Grafting Module (CGM).
The CGM takes feature maps of similar spatial dimensions from both encoders and fuses them. This fusion is achieved through a process that involves:
- Operator A: A sequential application of flattening, GELU activation, batch normalization, and convolution to align feature map dimensions.
- Layer Normalization: Applied to the processed feature maps.
- Query, Key, Value (QKV) Projections: Separate projections are generated for both CNN and Transformer features.
- Fusion: The projected Q, K, and V tensors are element-wise added to create combined tensors that are enriched with both local and global information.
- Self-Attention (SA): A self-attention mechanism is applied to these fused tensors to learn point-wise relationships.
- Output Grafting: The output of the SA mechanism is then linearly projected and reshaped to match the decoder's input dimension.
This grafted feature output from the CGM is then fed into the decoder, which aggregates features from the Swin-B branch, the CGM, and the ResNet-18 branch in a staggered manner to produce the final segmentation mask. The paper also introduces a Cross Transposed Attention Matrix (CTAM), which is used in the objective function to further guide the learning process.
Datasets
TransResNet was evaluated on a diverse set of ten publicly available datasets across three medical image segmentation tasks:
- Skin Lesion Segmentation: ISIC-2016 and PH2.
- Retinal Vessel Segmentation: HRF, IOSTAR, and CHASE_DB1.
- Polyp Segmentation: Kvasir, CVC-ClinicDB, CVC-ColonDB, Endoscene, and ETIS.
The paper notes that these datasets vary in resolution, with some being high-resolution and others having a mixture of resolutions.
Key Insights and Ideas
- Synergy of CNNs and Transformers for High-Resolution Medical Images: The paper strongly advocates for the combined use of CNNs and ViTs, demonstrating that their parallel processing and subsequent feature fusion are crucial for effectively handling the complexity and detail of high-resolution medical scans.
- The Power of "Feature Grafting": The Cross Grafting Module (CGM) is the central innovation. It's not just about concatenating features; it's about intelligently fusing and attending to them to create a richer representation that benefits from both local precision and global context.
- Addressing the Resolution Mismatch: The authors explicitly tackle the problem of existing models performing poorly on high-resolution images due to fixed receptive fields. TransResNet's architecture is designed to overcome this by explicitly integrating multi-scale feature extraction and fusion.
- Importance of Feature Map Alignment: The paper highlights the challenge of feature map discrepancy between encoders and the need for alignment (e.g., using operator A) before fusion to ensure effective grafting.
Key Results
TransResNet achieved state-of-the-art (SOTA) or competitive results across multiple datasets and tasks.
- Skin Lesion Segmentation: Achieved the highest performance on both validation ISIC-2016 and test-PH2 datasets, demonstrating strong generalization ability on unseen data.
- Retinal Vessel Segmentation: Surpassed other SOTA methods by a margin of 0.9% to 1.4% in mean F1 score on HRF, IOSTAR, and CHASE_DB1 datasets, without any pre-processing.
- Polyp Segmentation: Performed competitively, achieving the highest scores on the ClinicDB dataset and very close to SOTA on Kvasir and EndoScence. The paper notes that TransResNet is better suited for high-resolution images, which explains its less favorable performance on lower-resolution polyp datasets like ColonDB and ETIS.
- Qualitative Results: Visualizations show that TransResNet produces sharp segmentation masks and effectively suppresses background noise.
Limitations and Future Work
- Computational Expense: The authors acknowledge that their architecture is computationally expensive, particularly due to the use of two encoder backbones and processing high-resolution images.
- Future Directions: The paper suggests extending the proposed method to multi-class medical image segmentation and exploring ways to make the architecture computationally less expensive. They also aim to introduce AI-based models for high-resolution medical image segmentation to the scientific community.
Summary updated