[Paper Review] Attention Swin U-Net: Cross-Contextual Attention Mechanism for Skin Lesion Segmentation
This paper proposes Att-SwinU-Net, an enhanced Swin U-Net architecture with a novel cross-contextual attention mechanism in skip connections for skin lesion segmentation. By replacing standard concatenation with learnable attention modules that integrate encoder features and enable cross-contextual feature refinement, the model achieves state-of-the-art performance across multiple benchmark datasets, outperforming both CNN-based and Transformer-based models.
Melanoma is caused by the abnormal growth of melanocytes in human skin. Like other cancers, this life-threatening skin cancer can be treated with early diagnosis. To support a diagnosis by automatic skin lesion segmentation, several Fully Convolutional Network (FCN) approaches, specifically the U-Net architecture, have been proposed. The U-Net model with a symmetrical architecture has exhibited superior performance in the segmentation task. However, the locality restriction of the convolutional operation incorporated in the U-Net architecture limits its performance in capturing long-range dependency, which is crucial for the segmentation task in medical images. To address this limitation, recently a Transformer based U-Net architecture that replaces the CNN blocks with the Swin Transformer module has been proposed to capture both local and global representation. In this paper, we propose Att-SwinU-Net, an attention-based Swin U-Net extension, for medical image segmentation. In our design, we seek to enhance the feature re-usability of the network by carefully designing the skip connection path. We argue that the classical concatenation operation utilized in the skip connection path can be further improved by incorporating an attention mechanism. By performing a comprehensive ablation study on several skin lesion segmentation datasets, we demonstrate the effectiveness of our proposed attention mechanism.
Motivation & Objective
- To address the limitation of local receptive fields in U-Net architectures for medical image segmentation.
- To improve feature reusability in skip connections by replacing standard concatenation with an attention-based mechanism.
- To enhance long-range dependency modeling in Swin U-Net for better segmentation of complex skin lesions.
- To achieve state-of-the-art performance on skin lesion segmentation benchmarks using a hybrid attention mechanism.
Proposed method
- Proposes a two-level attention mechanism in skip connections: first, attention weights are transferred from encoder blocks to highlight important tokens; second, a cross-contextual attention mechanism refines features across different scales.
- Integrates the proposed attention module into the skip connection paths of Swin U-Net, replacing standard concatenation with learnable attention-based feature fusion.
- Employs a dual-branch attention mechanism that separately models spatial and channel-wise dependencies to improve feature representation.
- Utilizes the Swin Transformer's shifted window mechanism for local and global feature modeling in the encoder and decoder paths.
- Applies ablation studies to evaluate the impact of attention module placement, input resolution, model scale, and component removal.
- Trains the model end-to-end on multiple skin lesion datasets using standard segmentation loss functions.
Experimental results
Research questions
- RQ1Can attention mechanisms in skip connections improve feature reusability and segmentation accuracy in U-Net architectures?
- RQ2How does the proposed cross-contextual attention mechanism compare to standard concatenation in skip connections?
- RQ3What is the optimal number and placement of attention modules in the skip connections for skin lesion segmentation?
- RQ4Does the proposed method outperform existing CNN-based and Transformer-based models on skin lesion segmentation benchmarks?
- RQ5How do spatial and channel attention components individually contribute to the final performance?
Key findings
- Att-SwinU-Net achieves a Dice Similarity Coefficient (DSC) of 0.9240 on ISIC2017, outperforming the previous SOTA method (TMU-Net) by 0.0076.
- The model achieves a DSC of 0.9105 on ISIC2018 and 0.9504 on PH2, demonstrating consistent superiority across all datasets.
- Ablation studies show that using three attention modules in skip connections yields the best performance, with DSC increasing from 0.8987 to 0.9240.
- Removing the spatial or cross-contextual attention module leads to a drop in DSC by 0.0039 and 0.0044, respectively, confirming their individual contributions.
- The model achieves a 0.9656 accuracy on ISIC2017, indicating high segmentation consistency and reduced false positives.
- Qualitative results show smoother, more precise segmentation masks compared to TransUNet and Swin U-Net, especially in reducing under-segmentation artifacts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.