SegStitch: Multidimensional Transformer for Robust and Efficient Medical Imaging Segmentation

Shengbo Tan, Zeyu Zhang, Ying Cai, Daji Ergu, Lin Wu, Binbin Hu, Pengzhang Yu, Yang ZhaoarXiv 2024

Abstract

Medical imaging segmentation plays a significant role in the automatic recognition and analysis of lesions. State-of-the-art methods, particularly those utilizing transformers, have been prominently adopted in 3D semantic segmentation due to their superior performance in scalability and generalizability. However, plain vision transformers encounter challenges due to their neglect of local features and their high computational complexity. To address these challenges, we introduce three key contributions: Firstly, we proposed SegStitch, an innovative architecture that integrates transformers with denoising ODE blocks. Instead of taking whole 3D volumes as inputs, we adapt axial patches and customize patch-wise queries to ensure semantic consistency. Additionally, we conducted extensive experiments on the BTCV and ACDC datasets, achieving improvements up to 11.48% and 6.71% respectively in mDSC, compared to state-of-the-art methods. Lastly, our proposed method demonstrates outstanding efficiency, reducing the number of parameters by 36.7% and the number of FLOPS by 10.7% compared to UNETR. This advancement holds promising potential for adapting our method to real-world clinical practice.

Introduction

Accurate 3D segmentation—delineating organs and lesions in CT or MRI scans—is the backbone of modern computer-aided diagnosis and surgery. Traditionally, Convolutional Neural Networks (CNNs) like U-Net have dominated this field. However, CNNs have a "local" bias; they struggle to capture long-range spatial relationships between distant anatomical structures.

Vision Transformers (ViTs) were introduced to solve this by modeling global context, but they introduce new challenges: high computational complexity ($O(N^2)$), neglect of fine-grained local details, and sensitivity to noise common in medical imaging. The SegStitch framework was developed to capture global context without massive computational overhead, while remaining robust enough for clinical use.

The SegStitch Architecture

The SegStitch architecture is a hierarchical encoder-decoder that introduces three major innovations to balance global awareness with local precision and computational efficiency.

The SegStitch hierarchical architecture featuring skip connections, self-attention modules, and ODE blocks.

1. Shared Query Mechanism

To avoid the quadratic complexity bottleneck of standard attention, SegStitch splits the attention module into fine-grained and coarse-grained modules. By using "shared queries" across different patches, the model reduces computational complexity to linear levels, allowing for more efficient processing of high-resolution 3D volumes.

2. Position-Weighted Tokens

When 3D image patches are flattened into sequences for a Transformer, spatial information is often lost. SegStitch generates learnable parameters (Token_wt) that are summed with the original tokens to preserve critical 3D spatial cues.

3. Neural Memory ODE (nmODE) Blocks

The researchers integrated an ODE-based module into the decoder. Unlike standard layers that perform discrete transformations, ODE blocks model feature updates as a continuous process. This acts as a "denoising" mechanism, making the model more robust to image perturbations and leading to smoother training convergence.

Experimental Results and Efficiency

The model was rigorously evaluated on two benchmark datasets: the ACDC (Automatic Cardiac Diagnosis Challenge) MRI dataset and the Synapse (BTCV Multi-organ Segmentation) abdominal CT dataset.

Comparison of DSC accuracy, computational complexity (GFLOPs), and parameter count across various state-of-the-art models.

SegStitch demonstrated superior performance across all metrics:

  • Accuracy: On the Synapse dataset, it achieved an average Dice Similarity Coefficient (mDSC) of 89.80%, outperforming the previous SOTA (UNETR++) by 2.58%. On ACDC, it reached an mDSC of 93.32% without pre-training.
  • Efficiency: As shown in the performance analysis, SegStitch (60.81M parameters) is significantly lighter than models like Informers (150.5M parameters). Compared to the baseline UNETR, SegStitch reduced parameters by 36.7% and computational complexity (FLOPs) by 10.7%.
  • Robustness: Qualitative results indicate that the integration of ODE blocks produces cleaner organ boundaries that align more closely with ground-truth masks compared to other Transformer-based models.

Conclusion

SegStitch proves that high-performance 3D medical segmentation does not require massive parameter counts. By "stitching" together local detail and global semantics through shared queries and ODE-based denoising, the model achieves state-of-the-art results with significantly improved efficiency. Future work will focus on adapting the method for real-world clinical practice where data may be noisier or more heterogeneous. The code is available at https://github.com/goblin327/SegStitch.

Summary updated

BibTeX
@misc{tan2024segstitch,
  author = {Shengbo Tan and Zeyu Zhang and Ying Cai and Daji Ergu and Lin Wu and Binbin Hu and Pengzhang Yu and Yang Zhao},
  title = {{SegStitch: Multidimensional Transformer for Robust and Efficient Medical Imaging Segmentation}},
  year = {2024},
  eprint = {2408.00496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.00496},
}
Figure