HiFormer: Hierarchical Multi-scale Representations Using Transformers for Medical Image Segmentation
About
Convolutional neural networks (CNNs) have been the consensus for medical image segmentation tasks. However, they suffer from the limitation in modeling long-range dependencies and spatial correlations due to the nature of convolution operation. Although transformers were first developed to address this issue, they fail to capture low-level features. In contrast, it is demonstrated that both local and global features are crucial for dense prediction, such as segmenting in challenging contexts. In this paper, we propose HiFormer, a novel method that efficiently bridges a CNN and a transformer for medical image segmentation. Specifically, we design two multi-scale feature representations using the seminal Swin Transformer module and a CNN-based encoder. To secure a fine fusion of global and local features obtained from the two aforementioned representations, we propose a Double-Level Fusion (DLF) module in the skip connection of the encoder-decoder structure. Extensive experiments on various medical image segmentation datasets demonstrate the effectiveness of HiFormer over other CNN-based, transformer-based, and hybrid methods in terms of computational complexity, and quantitative and qualitative results. Our code is publicly available at: https://github.com/amirhossein-kz/HiFormer
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Medical Image Segmentation | ACDC (test) | Avg DSC90.12 | 171 | |
| Cardiac Segmentation | ACDC (test) | Avg Dice91.24 | 162 | |
| Skin Lesion Segmentation | ISIC 2018 (test) | Dice Score89.81 | 143 | |
| Skin Lesion Segmentation | ISIC 2017 (test) | Dice Score90.93 | 134 | |
| Medical Image Segmentation | Synapse (test) | Dice80.69 | 123 | |
| Multi-organ Segmentation | Synapse multi-organ CT (test) | DSC80.29 | 95 | |
| Skin Lesion Segmentation | ISIC 2018 | Dice Coefficient88.1 | 94 | |
| Medical Image Segmentation | Synapse | Average DSC80.69 | 77 | |
| Skin Lesion Segmentation | PH2 (test) | DSC86.9 | 70 | |
| Medical Image Segmentation | ACDC | DSC (Avg)90.82 | 65 |