Skip to main content
QUICK REVIEW

[Paper Review] UNetFormer: A Unified Vision Transformer Model and Pre-Training Framework for 3D Medical Image Segmentation

Ali Hatamizadeh, Ziyue Xu|arXiv (Cornell University)|Apr 1, 2022
Radiomics and Machine Learning in Medical ImagingMedicine29 citations
TL;DR

UNetFormer introduces a 3D Swin Transformer encoder with CNN/transformer decoders and a self-supervised pre-training scheme, achieving state-of-the-art segmentation on MSD liver/liver tumor and BraTS brain tumor tasks.

ABSTRACT

Vision Transformers (ViT)s have recently become popular due to their outstanding modeling capabilities, in particular for capturing long-range information, and scalability to dataset and model sizes which has led to state-of-the-art performance in various computer vision and medical image analysis tasks. In this work, we introduce a unified framework consisting of two architectures, dubbed UNetFormer, with a 3D Swin Transformer-based encoder and Convolutional Neural Network (CNN) and transformer-based decoders. In the proposed model, the encoder is linked to the decoder via skip connections at five different resolutions with deep supervision. The design of proposed architecture allows for meeting a wide range of trade-off requirements between accuracy and computational cost. In addition, we present a methodology for self-supervised pre-training of the encoder backbone via learning to predict randomly masked volumetric tokens using contextual information of visible tokens. We pre-train our framework on a cohort of $5050$ CT images, gathered from publicly available CT datasets, and present a systematic investigation of various components such as masking ratio and patch size that affect the representation learning capability and performance of downstream tasks. We validate the effectiveness of our pre-training approach by fine-tuning and testing our model on liver and liver tumor segmentation task using the Medical Segmentation Decathlon (MSD) dataset and achieve state-of-the-art performance in terms of various segmentation metrics. To demonstrate its generalizability, we train and test the model on BraTS 21 dataset for brain tumor segmentation using MRI images and outperform other methods in terms of Dice score. Code: https://github.com/Project-MONAI/research-contributions

Motivation & Objective

  • Motivate improved 3D medical image segmentation by leveraging Vision Transformers to capture long-range dependencies.
  • Propose UNetFormer and UNetFormer+ architectures with a 3D Swin Transformer encoder connected to CNN or transformer decoders.
  • Introduce a self-supervised pre-training scheme using masked volumetric token reconstruction to boost downstream performance.
  • Evaluate the framework on liver/liver tumor segmentation (MSD) and brain tumor segmentation (BraTS 21), showing state-of-the-art results.
  • Analyze components of pre-training (masking ratio, patch size) and decoder designs (CNN vs transformer) for accuracy/cost trade-offs.

Proposed method

  • Use a 3D Swin Transformer encoder to extract multi-scale features from 3D volume inputs.
  • Connect encoder to CNN-based (UNetFormer) or Swin Transformer-based (UNetFormer+) decoders via skip connections at five resolutions with deep supervision.
  • Employ deep supervision with multi-resolution segmentation outputs and a combined cross-entropy/soft Dice loss.
  • Implement a self-supervised pre-training regime where randomly masked 3D tokens are reconstructed using visible context through a lightweight decoder and L1 loss on masked tokens.
  • Train and pre-train on 5050 CT images and fine-tune on MSD liver/liver tumor and BraTS 21 MRI brain tumor datasets to demonstrate transferability.

Experimental results

Research questions

  • RQ1Can a unified 3D Swin Transformer encoder linked to CNN/transformer decoders improve segmentation accuracy over CNN- or ViT-based baselines in 3D medical images?
  • RQ2Does self-supervised pre-training of the encoder via masked volumetric token reconstruction improve downstream segmentation performance?
  • RQ3What are the impacts of masking ratio and patch size on self-supervised learning and subsequent segmentation performance?
  • RQ4How do CNN-based and transformer-based decoders compare in terms of accuracy and computational efficiency across liver and brain tumor segmentation tasks?

Key findings

  • Pre-trained UNetFormer models outperform non-pre-trained baselines on MSD liver and liver tumor segmentation.
  • Pre-training provides consistent gains over randomly initialized models for both liver and liver tumor tasks.
  • UNetFormer generally outperforms UNetFormer+ on most liver and brain tumor tasks, with UNetFormer+ excelling on large organ/tumor cases.
  • The models offer favorable accuracy-cost trade-offs, with UNetFormer+ achieving lower GFLOPs while maintaining competitive Dice scores.
  • On BraTS 21, both UNetFormer and UNetFormer+ exceed several CNN/Swin/ViT baselines in Dice scores for all tumor regions.
  • Ablation shows moderate masking (around 40%) and a patch size of 16^3 as favorable for downstream Dice performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.