TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation

Medical image segmentation is an essential prerequisite for developing healthcare systems, especially for disease diagnosis and treatment planning. On various medical image segmentation tasks, the u-shaped architecture, also known as U-Net, has become the de-facto standard and achieved tremendous success. However, due to the intrinsic locality of convolution operations, U-Net generally demonstrates limitations in explicitly modeling long-range dependency. Transformers, designed for sequence-to-sequence prediction, have emerged as alternative architectures with innate global self-attention mechanisms, but can result in limited localization abilities due to insufficient low-level details. In this paper, we propose TransUNet, which merits both Transformers and U-Net, as a strong alternative for medical image segmentation. On one hand, the Transformer encodes tokenized image patches from a convolution neural network (CNN) feature map as the input sequence for extracting global contexts. On the other hand, the decoder upsamples the encoded features which are then combined with the high-resolution CNN feature maps to enable precise localization. We argue that Transformers can serve as strong encoders for medical image segmentation tasks, with the combination of U-Net to enhance finer details by recovering localized spatial information. TransUNet achieves superior performances to various competing methods on different medical applications including multi-organ segmentation and cardiac segmentation. Code and models are available at https://github.com/Beckschen/TransUNet.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Uses Extra
Training Data
Result Benchmark
Medical Image Segmentation ACDC TransUNet Dice Score 0.8971 # 4
Medical Image Segmentation Automatic Cardiac Diagnosis Challenge (ACDC) R50-AttnUNet Avg DSC 86.75 # 14
Medical Image Segmentation Automatic Cardiac Diagnosis Challenge (ACDC) TransUNet Avg DSC 89.71 # 11
Medical Image Segmentation Automatic Cardiac Diagnosis Challenge (ACDC) R50-ViT-CUP Avg DSC 87.57 # 13
Medical Image Segmentation Synapse multi-organ CT TransUNet Avg DSC 77.48 # 14
Avg HD 31.69 # 10

Methods