arXiv(opens in a new tab)Computer ScienceMar 2021Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2103.10504

UNETR: Transformers for 3D Medical Image Segmentation

Ali Hatamizadeh, Dong Yang, H. Roth, Daguang Xu

Abstract

Fully Convolutional Neural Networks (FCNNs) with contracting and expanding paths have shown prominence for the majority of medical image segmentation applications since the past decade. In FCNNs, the encoder plays an integral role by learning both global and local features and contextual representations which can be utilized for semantic output prediction by the decoder. Despite their success, the locality of convolutional layers in FCNNs, limits the capability of learning long-range spatial dependencies. Inspired by the recent success of transformers for Natural Language Processing (NLP) in long-range sequence learning, we reformulate the task of volumetric (3D) medical image segmentation as a sequence-to-sequence prediction problem. We introduce a novel architecture, dubbed as UNEt TRansformers (UNETR), that utilizes a transformer as the encoder to learn sequence representations of the input volume and effectively capture the global multi-scale information, while also following the successful “U-shaped” network design for the encoder and decoder. The transformer encoder is directly connected to a decoder via skip connections at different resolutions to compute the final semantic segmentation output. We have validated the performance of our method on the Multi Atlas Labeling Beyond The Cranial Vault (BTCV) dataset for multi-organ segmentation and the Medical Segmentation Decathlon (MSD) dataset for brain tumor and spleen segmentation tasks. Our benchmarks demonstrate new state-of-the-art performance on the BTCV leaderboard. Code: https://monai.io/research/unetr

1 Introduction

Image segmentation plays an integral role in quantitative medical image analysis as it is often the first step for analysis of anatomical structures [33]. Since the advent of deep learning, FCNNs and in particular “U-shaped“ encoder-decoder architectures [22, 23, 21] have achieved state-of-the-art results in various medical semantic segmentation tasks [2, 38, 19]. In a typical U-Net [36] architecture, the encoder is responsible for learning global contextual representations by gradually downsampling the extracted features, while the decoder upsamples the extracted representations to the input resolution for pixel/voxel-wise semantic prediction. In addition, skip connections merge the output of the encoder with decoder at different resolutions, hence allowing for recovering spatial information that is lost during downsampling.

Figure

Figure 1: Overview of UNETR. Our proposed model consists of a transformer encoder that directly utilizes 3D patches and is connected to a CNN-based decoder via skip connection.

Although such FCNN-based approaches have powerful representation learning capabilities, their performance in learning long-range dependencies is limited to their localized receptive fields [20, 35]. As a result, such a deficiency in capturing multi-scale information leads to sub-optimal segmentation of structures with variable shapes and scales (e.g. brain lesions with different sizes). Several efforts have used atrous convolutional layers [9, 27, 18] to enlarge the receptive fields. However, locality of the receptive fields in convolutional layers still limits their learning capabilities to relatively small regions. Combining self-attention modules with convolutional layers [45, 50, 16] has been proposed to improve the non-local modeling capability.

In Natural Language Processing (NLP), transformer-based models [42, 13] achieve state-of-the-art benchmarks in various tasks. The self-attention mechanism of transformers allows to dynamically highlight the important features of word sequences. Additionally, in computer vision, using transformers as a backbone encoder is beneficial due to their great capability of modeling long-range dependencies and capturing global context [14, 4]. Specifically, unlike the local formulation of convolutions, transformers encode images as a sequence of 1D patch embeddings and utilize self-attention modules to learn a weighted sum of values that are calculated from hidden layers. As a result, this flexible formulation allows to effectively learn the long-range information. Furthermore, Vision Transformer (ViT) [14] and its variants have shown excellent capabilities in learning pre-text tasks that can be transferred to down-stream applications [40, 6, 3].

In this work, we propose to leverage the power of transformers for volumetric medical image segmentation and introduce a novel architecture dubbed as UNEt TRansformers (UNETR). In particular, we reformulate the task of 3D segmentation as a 1D sequence-to-sequence prediction problem and use a transformer as the encoder to learn contextual information from the embedded input patches. The extracted representations from the transformer encoder are merged with the CNN-based decoder via skip connections at multiple resolutions to predict the segmentation outputs. Instead of using transformers in the decoder, our proposed framework uses a CNN-based decoder. This is due to the fact that transformers are unable to properly capture localized information, despite their great capability of learning global information.

We validate the effectiveness of our method on 3D CT and MRI segmentation tasks using Beyond the Cranial Vault (BTCV) [26] and Medical Segmentation Decathlon (MSD) [38] datasets. In BTCV dataset, UNETR achieves new state-of-the-art performance on both Standard and Free Competition sections on its leaderboard. UNETR outperforms the state-of-the-art methodologies on both brain tumor and spleen segmentation tasks in MSD dataset.

our main contributions of this work are as follows::

  • We propose a novel transformer-based model for volumetric medical image segmentation.
  • To this end, we propose a novel architecture in which (1) a transformer encoder directly utilizes the embedded 3D volumes to effectively capture long-range dependencies; (2) a skip-connected decoder combines the extracted representations at different resolutions and predicts the segmentation output.
  • We validate the effectiveness of our proposed model for different volumetric segmentation tasks on two public datasets: BTCV [26] and MSD [38]. UNETR achieves new state-of-the-art performance on leaderboard of BTCV dataset and outperforms competing approaches on the MSD dataset.

References (53)