Abstract
In recent years, computer-aided diagnosis has become an increasingly popular topic. Methods based on convolutional neural networks have achieved good performance in medical image segmentation and classification. Due to the limitations of the convolution operation, the long-term spatial features are often not accurately obtained. Hence, we propose a TransClaw U-Net network structure, which combines the convolution operation with the transformer operation in the encoding part. The convolution part is applied for extracting the shallow spatial features to facilitate the recovery of the image resolution after upsampling. The transformer part is used to encode the patches, and the self-attention mechanism is used to obtain global information between sequences. The decoding part retains the bottom upsampling structure for better detail segmentation performance. The experimental results on Synapse Multi-organ Segmentation Datasets show that the performance of TransClaw U-Net is better than other network structures. The ablation experiments also prove the generalization performance of TransClaw U-Net.
Introduction
Medical image segmentation—the task of automatically outlining organs or lesions in scans—is a cornerstone of modern computer-aided diagnosis. For years, the U-Net architecture, a U-shaped Convolutional Neural Network (CNN), has served as the industry standard. However, CNNs possess an inherent limitation: their receptive fields are local. Convolution kernels focus on small neighborhoods of pixels, which often leads to a "tunnel vision" effect where the model fails to capture long-range spatial dependencies.
In complex anatomical regions like the abdomen, global context is vital. Identifying the pancreas, for instance, often depends on understanding its spatial relationship to the stomach, kidneys, and aorta. While Transformers, originally designed for Natural Language Processing, excel at capturing these global relationships through self-attention, they often struggle with the fine-grained spatial details required for precise boundary delineation. TransClaw U-Net addresses this by bridging the gap between local pixel-level precision and global contextual understanding.
Proposed Architecture: TransClaw U-Net
The TransClaw U-Net architecture introduces a hybrid approach to the traditional U-Net framework, specifically targeting the encoding and decoding stages to optimize feature extraction.
Hybrid Encoding
Instead of feeding raw image patches directly into a Transformer, the model utilizes several initial convolution layers. These layers extract "shallow" spatial features, acting as a spatial anchor that preserves high-resolution details. This hybrid approach ensures that the fine-grained information necessary for accurate boundary recovery is not lost during the tokenization process.
Transformer Bottleneck
Following the initial CNN layers, the feature maps are partitioned into patches and processed through a 12-layer Transformer. By employing Multi-Head Self-Attention (MSA), the model allows every part of the image to interact with every other part, effectively capturing the global anatomical context that standard CNNs miss.
Claw Decoding
The "Claw" structure in the decoder represents a more sophisticated skip-connection mechanism. By fusing multi-scale features from various levels of the encoder directly into the upsampling path, the model ensures that the final segmentation maps are both contextually aware and spatially sharp.
Experimental Evaluation
Dataset and Metrics
The model was rigorously evaluated on the Synapse Multi-organ Segmentation Dataset, which consists of 30 abdominal CT scans (3,779 axial slices). The task involved segmenting eight distinct organs: the aorta, gallbladder, spleen, left kidney, right kidney, liver, pancreas, and stomach. The dataset was split into 18 cases for training and 12 for testing.
Performance was measured using two primary metrics:
- Dice Similarity Coefficient (DSC): Measures the overlap between the predicted segmentation and the ground truth.
- Hausdorff Distance (HD): Measures the distance between the boundaries of the prediction and the ground truth, where a lower score indicates higher boundary precision.
Key Results
TransClaw U-Net demonstrated superior performance compared to several state-of-the-art models, including the original U-Net and the Transformer-based TransUNet.
- DSC: The model achieved a score of 78.09%, outperforming TransUNet (77.48%) and U-Net (76.85%).
- HD: The model achieved a score of 26.38, a significant improvement over TransUNet’s 31.69, indicating much tighter boundary predictions.
- Organ-Specific Performance: The model was particularly effective at segmenting the liver (94.28%) and the kidneys, which are notoriously difficult due to their complex boundaries with adjacent tissues.
Discussion and Conclusion
Ablation studies conducted by the authors highlighted the critical role of skip connections. When these connections were reduced, the Dice score for organs like the aorta and pancreas dropped by over 10%, proving that global Transformer features must be anchored by local spatial information to achieve medical-grade precision.
While the model is computationally demanding—particularly as input resolution increases—it represents a significant step forward in hybrid architecture design. Future work will likely focus on optimizing the balance between CNN and Transformer layers to reduce memory overhead while maintaining high segmentation accuracy. TransClaw U-Net proves that in the realm of medical imaging, the most effective models are those that can successfully synthesize local details with a global perspective.
Summary updated