Introduction
Accurate liver segmentation is a cornerstone of computer-aided diagnosis, surgical planning, and cancer treatment. However, the liver is a "shape-shifter"—its size and morphology vary significantly across the population. Furthermore, it is packed tightly against other abdominal organs that often share similar intensities on a CT scan, making boundary detection difficult.
While manual segmentation is the gold standard, it is slow, subjective, and non-reproducible. Existing deep learning solutions often fall into two traps: 2D CNNs struggle to capture long-range spatial context, while 3D CNNs are computationally expensive and memory-intensive. The authors introduce PVTFormer, a transformer-based architecture that maintains global "spatial awareness" without the massive overhead of 3D convolutions.
Methodology
PVTFormer follows a classic encoder-decoder structure but with several modern upgrades designed for medical imaging tasks.
The PVTFormer Architecture
PVTFormer Architecture CT Liver Segmentation via PVT-based Encoding and Refined Decoding, page 3
The core components include:
- The Encoder (PVT v2): Instead of a standard ResNet or U-Net backbone, the model uses a pretrained Pyramid Vision Transformer (PVT v2 b3). PVT v2 uses a hierarchical structure to capture multi-scale features and employs linear spatial reduction attention, allowing it to process high-resolution images with lower computational complexity than original Transformers.
- Feature Refinement: Three feature maps from the encoder are passed through $1 \times 1$ convolutions, Batch Normalization, and ReLU to standardize feature channels to 64, ensuring the decoder remains efficient.
- The Up Block & Decoder Block: The "Up block" uses bilinear upsampling followed by a residual block to maintain anatomical details. The Decoder Block fuses these upsampled maps with high-resolution skip connections from the encoder, ensuring the final mask benefits from both deep semantic information and fine-grained spatial details.
Dataset and Training
The model was evaluated on the Liver Tumor Segmentation Benchmark (LiTS) 2017, a multi-center dataset containing 201 abdominal CT scans. The authors utilized 130 publicly available scans, split into training (70), validation (30), and testing (30) sets. Slices were resized to $256 \times 256$ pixels to balance training speed with model complexity.
Results and Discussion
PVTFormer was compared against eight established models, including U-Net, ResUNet++, and TransNetR. It achieved state-of-the-art performance on the LiTS dataset.
Key performance metrics include:
- Dice Coefficient: 86.78%, the highest among all tested models.
- mIoU (Mean Intersection over Union): 78.46%.
- Hausdorff Distance (HD): 3.50, where a lower score indicates predicted boundaries are very close to the actual edges.
The results suggest that the Transformer's self-attention mechanism is superior at understanding the global "neighborhood" of the liver, helping the model distinguish it from adjacent organs like the stomach or spleen. While the encoder leverages Transformers for global context, the decoder's reliance on Residual Blocks (CNN-based) highlights that convolutions remain effective for the fine-tuning required for sharp, pixel-perfect masks.
Limitations and Future Work
Despite its performance, PVTFormer requires more parameters (45.51M) than some lightweight competitors like TransNetR. Future work aims to extend the model to multi-organ and tumor-specific segmentation, as well as testing on broader multi-center datasets to ensure cross-manufacturer generalization.
Conclusion
PVTFormer demonstrates that combining a hierarchical Transformer encoder with a refined residual decoder significantly improves CT liver segmentation. By reaching a Dice coefficient of 86.78%, it sets a new benchmark for accuracy while maintaining computational efficiency through linear attention mechanisms.
Summary updated