CT Liver Segmentation Via PVT-Based Encoding and Refined Decoding

Debesh Jha, Nikhil Kumar Tomar, Koushik Biswas, Gorkem Durak, Alpay Medetalibeyoglu, Matthew Antalek, Yury Velichko, Daniela P. Ladner, Amir Borhani, Ulas Bagci

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

PVTFormer Architecture

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.

Quantitative Performance Comparison

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

Abstract

Accurate liver segmentation from CT scans is essential for effective diagnosis and treatment planning. Computer-aided diagnosis systems promise to improve the precision of liver disease diagnosis, disease progression, and treatment planning. In response to the need, we propose a novel deep learning approach, PVTFormer, that is built upon a pretrained pyramid vision transformer (PVT v2) combined with advanced residual upsampling and decoder block. By integrating a refined feature channel approach with a hierarchical decoding strategy, PVTFormer generates high quality segmentation masks by enhancing semantic features. Rigorous evaluation of the proposed method on Liver Tumor Segmentation Benchmark (LiTS) 2017 demonstrates that our proposed architecture not only achieves a high dice coefficient of 86.78%, mIoU of 78.46%, but also obtains a low HD of 3.50. The results underscore PVTFormer’s efficacy in setting a new benchmark for state-of-the-art liver segmentation methods. The source code of the proposed PVTFormer is available at https://github.com/DebeshJha/PVTFormer.
BibTeX
@inproceedings{jha2024ct,
  author = {Debesh Jha and Nikhil Kumar Tomar and Koushik Biswas and Gorkem Durak and Alpay Medetalibeyoglu and Matthew Antalek and Yury Velichko and Daniela P. Ladner and Amir Borhani and Ulas Bagci},
  title = {{CT Liver Segmentation Via PVT-Based Encoding and Refined Decoding}},
  booktitle = {ISBI},
  year = {2024},
  url = {https://openreview.net/forum?id=Hjnu8WWItb},
}
Figure