Swin Deformable Attention Hybrid U-Net for Medical Image Segmentation

Lichao Wang, Jiahao Huang, Guang Yang · DOI

TL;DR

This paper introduces the Swin Deformable Attention Hybrid U-Net (SDAH-UNet), a novel deep learning model for medical image segmentation that combines the strengths of convolutional neural networks and Swin Transformers. The key innovation is the Swin Deformable Multi-Head Self-Attention (SDMSA) module, which not only improves segmentation accuracy but also provides visual explanations of the model's decision-making process, enhancing trust and interpretability for clinicians.

What Problem Does This Paper Address?

Accurate segmentation of medical images is vital for diagnosis and treatment planning. While hybrid models combining convolutions and self-attention mechanisms have shown promise, a significant challenge remains: their lack of interpretability. Clinicians need to understand why a model makes a particular segmentation decision to trust and effectively utilize it. Existing methods for explaining model behavior often fail to capture fine-grained details or are external add-ons, not integral to the model's core function. This paper aims to bridge this gap by developing a segmentation model that is both highly accurate and inherently explainable.

Methods

The core of the proposed SDAH-UNet is a hybrid architecture that integrates convolutional layers with a novel Swin Deformable Multi-Head Self-Attention (SDMSA) module. This SDMSA module is designed to address limitations in standard attention mechanisms, such as redundant computations and a lack of deformability, which can hinder performance on complex anatomical structures.

The key components are:

  • Swin Deformable Multi-Head Self-Attention (SDMSA): This module builds upon the Swin Transformer's shifted window mechanism and incorporates a "deformable attention" component. This allows the attention mechanism to dynamically adjust its focus points based on learned offsets, enabling it to better capture intricate, irregularly shaped, and deformed regions in medical images.
  • Parallel Convolution Branch: To complement the global context captured by SDMSA, a parallel convolutional branch is included. This branch focuses on extracting fine-grained texture features, ensuring that local details are not lost.
  • SDAPC Block: The SDMSA module and the parallel convolution branch are combined into a Swin Deformable Attention with Parallel Convolution (SDAPC) block. This block forms the building blocks of both the encoder and decoder in the U-Net architecture.
  • U-Net Architecture: The overall model follows a standard U-Net structure with an encoder for downsampling and feature extraction, and a decoder for upsampling and segmentation mask generation.

Datasets

The SDAH-UNet was evaluated on two distinct medical imaging datasets:

  • ACDC (Automatic Cardiac Diagnosis Challenge) [13]: This dataset consists of cine MRI scans for anatomical segmentation, specifically focusing on the right ventricle (RV), myocardium (MYO), and left ventricle (LV).
  • BraTS2020 (Multimodal Brain Tumor Segmentation) [14]: This dataset involves multi-modal MRI scans (T1-weighted, post-contrast T1-weighted, T2-weighted, and FLAIR) for lesion segmentation, identifying tumor core (TC), enhancing tumor (ET), and whole tumor (WT) regions.

The data was split into training, validation, and test sets for rigorous evaluation.

Key Insights and Ideas

  • Deformable Attention for Enhanced Focus: The introduction of deformable attention in the SDMSA module allows the model to dynamically adapt its attention to irregular shapes, leading to more precise segmentation of complex anatomical structures and lesions.
  • Complementary Strengths of CNNs and Transformers: The parallel architecture, combining the global context of SDMSA with the local feature extraction of convolutions, proves to be more effective than either component alone.
  • Inherent Explainability: The "deformation points" generated by the SDMSA module provide a direct and visual explanation of where the model is looking and how it's forming its segmentation. This is a significant step towards interpretable AI in medicine.
  • Reduced Redundancy: By allowing attention to focus on relevant areas, the deformable mechanism helps reduce redundant computations, potentially leading to more efficient processing.

Key Results

  • State-of-the-Art Performance: The SDAH-UNet achieved state-of-the-art performance on both the ACDC and BraTS2020 datasets, outperforming existing models in terms of Dice Similarity Coefficient (DSC) and Hausdorff95 (HD95) metrics. For example, on the ACDC dataset, it achieved a DSC of 92.23% and on BraTS2020, 86.90%.
  • Improved Interpretability: Visualizations using deformation points clearly illustrated the model's focalization, providing a more robust indication of its decision-making process compared to traditional gradient-based heatmaps.
  • Efficiency: While incorporating new modules, the model maintained a competitive parameter count and FLOPs compared to other advanced transformer-based models. Ablation studies showed that removing either the SDMSA or convolution branch led to a performance decline, highlighting the importance of the dual-branch design.

Limitations and Future Work

  • Computational Overhead: The paper notes a marginal increase in parameter count due to the CNN offset and parallel convolution components compared to some SMSA-based models.
  • Future Work: The authors suggest that their approach could be a promising solution for developing accurate and interpretable medical image segmentation models. Further exploration of the SDMSA module's capabilities and its application to other medical imaging tasks would be valuable. The code is intended to be made open source upon acceptance, facilitating further research.

Summary updated

BibTeX
@inproceedings{wang2023swin,
  author = {Lichao Wang and Jiahao Huang and Guang Yang},
  title = {{Swin Deformable Attention Hybrid U-Net for Medical Image Segmentation}},
  booktitle = {SIPAIM},
  year = {2023},
  url = {https://openreview.net/forum?id=uOb9tgAXPG},
}
Figure