AgileFormer: Spatially Agile Transformer UNet for Medical Image Segmentation

Peijie Qiu, Jin Yang, Sayantan Kumar, Soumyendu Sekhar Ghosh, Aristeidis Sotiras
3/29/2024
cs.CVeess.IV

Official code: sotiraslab/AgileFormer (82 stars, Apache-2.0, last commit 2024-07-12).

Abstract

In the past decades, deep neural networks, particularly convolutional neural networks, have achieved state-of-the-art performance in a variety of medical image segmentation tasks. Recently, the introduction of the vision transformer (ViT) has significantly altered the landscape of deep segmentation models. There has been a growing focus on ViTs, driven by their excellent performance and scalability. However, we argue that the current design of the vision transformer-based UNet (ViT-UNet) segmentation models may not effectively handle the heterogeneous appearance (e.g., varying shapes and sizes) of objects of interest in medical image segmentation tasks. To tackle this challenge, we present a structured approach to introduce spatially dynamic components to the ViT-UNet. This adaptation enables the model to effectively capture features of target objects with diverse appearances. This is achieved by three main components: \textbf{(i)} deformable patch embedding; \textbf{(ii)} spatially dynamic multi-head attention; \textbf{(iii)} deformable positional encoding. These components were integrated into a novel architecture, termed AgileFormer. AgileFormer is a spatially agile ViT-UNet designed for medical image segmentation. Experiments in three segmentation tasks using publicly available datasets demonstrated the effectiveness of the proposed method. The code is available at \href{https://github.com/sotiraslab/AgileFormer}{https://github.com/sotiraslab/AgileFormer}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This the repo for the paper tiltled "AgileFormer: Spatially Agile Transformer UNet for Medical Image Segmentation"

829PythonMar 29, 20242 years agoApache-2.0
image-segmentationmedical-image-segmentationsemantic-segmentationtransformersunet-segmentation

Similar Papers

Cite this paper

@article{qiu2024agileformer,
  title  = {AgileFormer: Spatially Agile Transformer UNet for Medical Image Segmentation},
  author = {Peijie Qiu and Jin Yang and Sayantan Kumar and Soumyendu Sekhar Ghosh and Aristeidis Sotiras},
  year   = {2024},
  eprint = {2404.00122},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00122v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.00122.svg)](https://codeofpaper.com/paper/2404.00122)

Discussion