An Exceptional Dataset For Rare Pancreatic Tumor Segmentation

Wenqi Li, Yingli Chen, Keyang Zhou, Xiaoxiao Hu, Zilu Zheng, Yue Yan, Xinpeng Zhang, Wei Tang, Zhenxing Qian

Abstract

Pancreatic Neuroendocrine Tumors (pNETs) are rare but clinically significant malignancies. Due to their scarcity and subtle presentation on CT scans, automated segmentation remains a major challenge for early detection. This paper introduces the first large-scale, well-annotated Contrast-Enhanced CT (CECT) dataset dedicated exclusively to pNETs, featuring scans from 469 patients. Alongside the dataset, we propose a novel "slice-wise weight loss" function that improves the performance of standard U-Net baseline models on this highly challenging segmentation task.

Introduction

Pancreatic cancer has a notoriously poor prognosis. While Pancreatic Ductal Adenocarcinoma (PDAC) is the most common form, Pancreatic Neuroendocrine Tumors (pNETs) represent a rare subset, accounting for less than 5% of cases. Because pNETs typically grow slower than PDAC, early detection and surgical resection can significantly improve patient survival rates.

However, segmenting pNETs on CT scans is exceptionally difficult. These tumors are often very small, do not necessarily alter the outer shape of the pancreas, and lack secondary indicators like duct dilation. Furthermore, existing public datasets (such as the Medical Segmentation Decathlon or NIH-PCT) either contain very few pNET examples or lack the precise, slice-by-slice tumor annotations required to train robust deep learning models. Consequently, models trained on general pancreatic datasets perform poorly when identifying pNETs.

Methodology

To establish a baseline for this new dataset, we employed a 2D segmentation pipeline using popular U-Net architectures, including U-Net, U-Net++, and Attention U-Net.

The proposed 2D segmentation pipeline, utilizing TotalSegmentator for initial pancreas localization followed by targeted tumor segmentation.

Preprocessing and Class Balancing

The pipeline begins by using a pre-trained TotalSegmentator model to isolate the pancreas in 3D CT scans. A 256x256 bounding box is then cropped around the pancreas on each 2D slice to focus the model's attention. Because tumors occupy a tiny fraction of the pancreas, the training data was balanced to a 1:1 ratio of tumor to non-tumor slices.

Slice-Wise Weight Loss

The core algorithmic contribution is a custom loss function designed to handle the high variance in tumor sizes across slices. For a given patient, 2D slices are ranked based on the pixel area of the ground-truth tumor. Slices with larger tumors are assigned higher loss weights, forcing the network to prioritize learning from more distinguishable tumor features before attempting to segment microscopic ones.

The pNETs Dataset

We introduce a proprietary dataset of 469 3D Contrast-Enhanced CT (CECT) scans, capturing both arterial and venous phases. This was processed into 21,122 class-balanced 2D slices. Ground-truth segmentation masks were annotated slice-by-slice by a medical student and verified by an expert radiologist. This dataset addresses the limitations of existing resources like MSD, NIH-PCT, and TCIA-PDA, which either lack specific pathology annotations or focus primarily on healthy tissue and PDAC.

Results and Discussion

The baseline models were evaluated using the Dice Similarity Coefficient (DSC). While the models achieved decent scores (DSC > 0.70) on general pancreas slices—indicating a low false-positive rate on healthy tissue—segmenting the actual tumor region of interest (ROI) proved much harder.

Qualitative comparison of segmentation results across different patients and slices, demonstrating the model's ability to identify pNETs of varying sizes.

The proposed slice-wise weight loss generally improved performance on tumor ROI segmentation. For instance, the U-Net++ ROI DSC improved from 0.366 to 0.433. These results suggest that in highly imbalanced medical imaging tasks, weighting the loss based on relative sample size helps the model avoid being overwhelmed by tiny, ambiguous pixels and promotes more robust feature extraction.

Conclusion and Future Work

While the new dataset and loss function provide a significant step forward, baseline models still struggle with recalling very small tumors. Future research should explore non-CNN architectures, such as Transformer or Mamba-based models, and utilize large vision foundation models prompted with medical prior knowledge. Additionally, transitioning to 3D architectures could leverage valuable spatial context between adjacent slices, albeit at a higher computational cost.

Summary updated

BibTeX
@inproceedings{li2025exceptional,
  author = {Wenqi Li and Yingli Chen and Keyang Zhou and Xiaoxiao Hu and Zilu Zheng and Yue Yan and Xinpeng Zhang and Wei Tang and Zhenxing Qian},
  title = {{An Exceptional Dataset For Rare Pancreatic Tumor Segmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=fax4FZNBa6},
}
Figure