Introduction
Medical image segmentation is a critical component of clinical workflows, enabling precise identification of organs and pathologies in 3D scans like CT or MRI. While Convolutional Neural Networks (CNNs), particularly the U-Net architecture, have dominated this field, they possess an inherent limitation: a restricted receptive field that struggles to capture "long-range dependencies." For instance, a CNN might accurately identify the texture of a kidney but fail to model its spatial relationship with distant structures like the spine or liver within a 3D volume.
Transformers, originally developed for natural language processing, offer a solution by modeling global relationships. However, applying standard 3D Transformers to medical data encounters a "memory wall." Calculating self-attention across every voxel in a high-resolution 3D volume requires prohibitive amounts of GPU memory. AFTer-UNet addresses this challenge by introducing an efficient "Axial Fusion" mechanism that captures 3D context without the computational overhead of full 3D attention.
Methods: The Axial Fusion Mechanism
The AFTer-UNet architecture utilizes a U-shaped structure, integrating a novel Transformer encoder between a 2D CNN encoder and decoder. The primary innovation is the Axial Fusion mechanism, which simplifies the 3D attention problem by decomposing it into two distinct steps.
As shown in Figure 1, the process begins with a 2D CNN extracting high-level features from a target slice and its immediate neighbors. The Transformer then performs:
- Inter-slice Attention: The model looks "vertically" across neighboring slices at identical spatial coordinates to understand anatomical changes along the axial axis.
- Intra-slice Attention: The model looks "horizontally" within each individual slice to capture spatial relationships between different organs.
By decomposing the attention this way, the computational complexity drops from a squared relationship with the total number of voxels to a linear relationship. This efficiency allows the model to process a larger context window than previous 3D Transformer methods while remaining trainable on standard consumer-grade GPUs.
Experimental Setup and Datasets
The performance of AFTer-UNet was validated on three diverse multi-organ segmentation benchmarks:
- Thorax-85: An internal dataset of 85 3D thorax CT images, targeting six organs including the esophagus, trachea, and heart.
- BCV (Multi-Atlas Abdomen Labeling Challenge): A public dataset of 30 abdominal CT scans focusing on eight organs such as the liver, spleen, and kidneys.
- SegTHOR: A 2019 challenge dataset containing 40 3D thorax CT scans for "Organs at Risk" segmentation.
Results and Discussion
AFTer-UNet consistently outperformed state-of-the-art models, including TransUNet, Swin-Unet, and CoTr, across all tested datasets. On the Thorax-85 dataset, it achieved a Dice Similarity Coefficient (DSC) of 92.32%, notably surpassing the 3D-capable CoTr (91.39%). In the abdominal BCV dataset, it reached a DSC of 81.02%, a significant improvement over the standard U-Net baseline (74.68%).
Qualitative analysis (Figure 2) reveals that AFTer-UNet produces smoother and more anatomically consistent segmentations. This is particularly evident in challenging, elongated organs like the esophagus and trachea, where inter-slice context is vital for distinguishing them from surrounding tissues. Other models often produce "jittery" or disconnected regions in these areas, whereas AFTer-UNet maintains structural continuity.
Conclusion
AFTer-UNet represents a significant step forward in making Transformer-based 3D medical image segmentation practical. By decomposing 3D attention into axial components, the model achieves state-of-the-art accuracy while maintaining high computational efficiency. Future research may explore deeper integration of the axial fusion mechanism within the CNN backbone or more advanced axial sampling strategies to further enhance performance.
Summary updated