arXiv:2610.41063cs.CVOct 2026

Manuscript Offprint

arXiv:2610.41063

Segment Anything Pancreas: A Unified MRI Segmentation Model for Pancreatic Cancer Radiotherapy

Zach Eidex, Mojtaba Safari, Kundan Thind, Parag J. Parikh, Zhen Tian, Xiaofeng Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Background: Accurate delineation of pancreatic tumors and organs at risk (OARs) is essential for MRI-guided radiotherapy. However, limited tumor annotations and incomplete anatomical labels across MRI datasets hinder the development of unified segmentation models.

Purpose: We propose Pancreas-MedNeXt, a unified model for segmenting the whole pancreas, pancreatic subregions, tumors, and surrounding OARs from a single MRI volume.

Methods: Pancreas-MedNeXt uses a shared MedNeXt encoder-decoder with supervised whole-pancreas and subregion pretraining, followed by multitask fine-tuning. Three output heads jointly predict the pancreas and its subregions (head, body, tail), the tumor, and the OARs (stomach, duodenum, bilateral kidneys). An annotation-aware loss allows training on partially labeled data without treating unannotated structures as background. The model was developed on four public MRI datasets (PanSegData, Cyst-X, AMOS, PANTHER). Pancreas and tumor segmentation were evaluated by three-fold cross-validation on 142 PANTHER patients (92 diagnostic MRI, 50 MR-Linac MRI). Subregion and OAR segmentation were evaluated on held-out Cyst-X and AMOS test sets, and pancreas and OAR segmentation on 33 external T1-weighted TotalSegmentator MRI scans. Performance was compared with nnU-Net, MedNeXt, VISTA3D, and Swin UNETR using the Dice similarity coefficient (DSC) and surface metrics, with 95% confidence intervals (CIs) from paired bootstrap resampling.

Results: Pancreas-MedNeXt achieved the highest mean pancreas and tumor DSC on both diagnostic and MR-Linac MRI among the evaluated methods. Tumor DSC was 58.41±26.53%58.41 \pm 26.53\% and 42.55±23.21%42.55 \pm 23.21\%, exceeding task-specific MedNeXt by 4.94 (95% CI: 0.28–9.45) and 5.89 (95% CI: 2.37–9.72) percentage points, respectively. Whole-pancreas DSC was 85.73±8.35%85.73 \pm 8.35\% and 70.66±11.28%70.66 \pm 11.28\%. Supervised pretraining improved head, body, and tail DSC by 2.01, 3.00, and 3.78 percentage points over the same model trained from scratch. On AMOS, the model achieved the highest DSC for the pancreas, duodenum, and right kidney. On external MRI, it achieved the highest DSC for all five organs, exceeding the next-best method by 4.92–8.85 percentage points.

Conclusion: Pancreas-MedNeXt segments tumors, pancreatic subregions, and OARs in a single model across diagnostic and MR-Linac MRI. This approach could streamline contouring and support quantitative image analysis and treatment planning for pancreatic cancer radiotherapy.

Keywords: pancreatic cancer, MRI segmentation, MR-guided radiotherapy, multitask learning, supervised pretraining

1 Introduction

Pancreatic cancer remains one of the most lethal types of cancer, with five-year relative survival below 15% in the United States 1^{1}. For patients with nonmetastatic, unresectable disease, radiotherapy provides a local treatment option after systemic therapy. Ablative and dose-escalated approaches have shown promising local control, motivating techniques that improve tumor coverage 2,3^{2,3}. MRI serves complementary roles in the treatment of pancreatic tumors. Diagnostic MRI characterizes the lesion and its anatomical extent, whereas a magnetic resonance linear accelerator (MR-Linac) acquires images in the treatment position to guide radiation delivery and online plan adaptation. Treatment planning requires delineation of the tumor and surrounding organs at risk (OARs), particularly the stomach and duodenum, whose proximity often limits the prescribed dose 4^{4}. Identifying both the tumor and the involved pancreatic subregion is important for radiation therapy contouring based on the NRG Oncology consensus guidelines used in the ongoing LAP100 study (NCT06958328) 5^{5}. Gastrointestinal OARs undergo substantial interfraction changes in position and shape, motivating contour reassessment on the images acquired for each treatment fraction 6^{6}. Repeated manual contour review and correction are time-consuming components of online adaptive radiotherapy 7^{7}. Automated segmentation could assist this process by delineating the lesion, gland and adjacent normal tissues, especially if the approach can cope with visual differences between MR-Linac and diagnostic MRI 8^{8}. A unified model that delineates the pancreatic tumor, gland and adjacent OARs across diagnostic and treatment MRI could support anatomical assessment and contouring throughout the radiotherapy workflow.

Automated segmentation has been investigated for pancreatic tumor assessment and MRI-guided radiotherapy. Liang et al. 9^{9} investigated pancreatic tumor segmentation on multiparametric MRI, and Shojaei et al. 7^{7} developed abdominal OAR auto-contouring for adaptive MRI-guided pancreatic radiotherapy. PanSegNet extended whole-pancreas segmentation across multicenter T1-weighted, T2-weighted and CT datasets 10^{10}. For more detailed gland assessment, Hong et al. 11^{11} transferred whole-pancreas representations learned from CT and MRI to head, body and tail segmentation. Staged anatomical transfer also appears in PANTHER methods, which use broad anatomy and pancreatic lesion supervision before adapting to diagnostic and therapeutic MRI 12^{12}. These studies establish a rationale for learning pancreatic anatomy before more specialized segmentation tasks. More broadly, DoDNet demonstrated organ and tumor segmentation from partially labeled datasets, while TotalSegmentator MRI provides extensive anatomical coverage across MRI acquisitions 13,14^{13,14}. VISTA3D and the MRI foundation model Triad further demonstrate the use of pretrained representations across segmentation tasks 15−17^{15-17}. Together, this literature supports transfer learning and shared representations, but the cited pancreatic studies evaluate gland, tumor, regional anatomy or OAR segmentation in separate task configurations. Whether a single MRI model can retain regional pancreatic anatomy while learning tumors and surrounding organs remains a clinically relevant question, particularly for MR-Linac imaging, where a model must delineate the lesion within the anatomy available for treatment guidance.

Pancreatic tumor, glandular anatomy and OAR segmentation serve distinct purposes in pancreatic cancer care. Tumor masks describe the lesion, while OAR masks support assessment of nearby normal tissue during radiotherapy planning. Whole-pancreas masks provide an anatomical reference for tumor localization and assessment of gland involvement, while head, body and tail masks permit regional measurements that would be obscured by a whole-gland average. Pancreatic subregions have been used for regional fat analysis, illustrating their role in quantitative imaging beyond the definition of a treatment target 18^{18}. A model providing all of these masks could support tumor assessment, organ contouring and regional imaging within the same examination. Training such a model is complicated by incomplete annotation coverage. PanSegData and Cyst-X provide whole-pancreas labels, the Cyst-X subregion release supplies head, body and tail masks, PANTHER provides pancreas and tumor labels, and AMOS supplies abdominal organ annotations 10,11,19−21^{10,11,19-21}. No single source used here provides the complete set. Simply pooling their label maps would assign contradictory meanings to background, because a visible structure may be annotated in one dataset and unannotated in another. The labels also describe different anatomical levels. Whole-pancreas masks overlap the head, body and tail, and a tumor may occupy part of a subregion or extend beyond the apparent gland. Multitask training must therefore use available supervision without treating missing annotations as negative examples, while preserving the relationship between whole-gland anatomy, regional anatomy and tumor extent. For MRI, this also permits scans acquired with different clinical protocols to contribute to a common anatomical representation. An anatomy-first curriculum is attractive because it uses the more widely available gland labels before introducing the less extensively annotated tumor task, while retaining the regional and organ outputs required for broader pancreatic assessment.

We propose Pancreas-MedNeXt, a unified MRI model that combines supervised pancreatic pretraining with an annotation-aware multitask objective (https://github.com/zacheidex/Segment-Anything-Pancreas). Its training curriculum progresses from whole-pancreas segmentation to subregion segmentation and then to simultaneous pancreatic, tumor and abdominal organ segmentation. The final model accepts one MRI volume and produces all nine region masks with a shared MedNeXt encoder-decoder. Whole-pancreas and subregion outputs share an anatomical hierarchy, while a separate tumor output permits overlap with the gland. This formulation allows datasets with incomplete annotations to supervise the same model without requiring additional manual labeling. The study addresses whether this approach improves pancreas and tumor segmentation across diagnostic and MR-Linac MRI while retaining regional and abdominal organ performance. The principal contributions are:

  1. A unified MRI model for the whole pancreas, head, body, tail, tumor, stomach, duodenum, right kidney and left kidney. Evaluation demonstrates improved pancreas and tumor segmentation on diagnostic and MR-Linac MRI, together with subregion and abdominal organ capabilities on their respective datasets.

  2. A supervised MRI training curriculum that transfers whole-pancreas and subregion representations into multitask fine-tuning, together with a matched from-scratch ablation evaluating the contribution of this pretraining strategy.

  3. Compact subregion, tumor and OAR heads attached to one shared decoder, with an annotation-aware loss for learning from partially labeled datasets. The output design preserves the relationship between whole pancreas and its subregions while allowing the tumor mask to overlap pancreatic anatomy.

References (24)