Pancreatic Lesion Segmentation on PanTS: Where a CT Pipeline Fails

Fig. 3 of arXiv:2611.29861 by Kang-Won Byun: four contrast CT test scans from PanTS (90th-percentile case, median case, a missed clearly darker lesion and a lesion-free scan) with the CT-only and duct-map lesion predictions, correct in green, missed in orange, extra in blue.

Most automated pancreatic cancer pipelines on CT start the same way. Segment the pancreas, segment anything that looks like a lesion inside it, then decide what each candidate is. The lesion masks in that middle step are usually poor, and low scores are often put down to small or iso-attenuating tumours without a breakdown of where the overlap is lost.

A preprint posted on 23 November 2026, arXiv:2611.29861 by Kang-Won Byun, an independent researcher, builds a complete pancreas, duct and lesion pipeline on PanTS, a large public pancreatic CT dataset, tests one idea once on a held-out test set under a rule fixed in advance, and then takes the lesion error apart. There is no new architecture. If you ship pancreas AI inside a viewer or a clinical platform, the breakdown is more useful than another leaderboard entry, because it tells you which kind of mistake your users will see.

The pipeline, stage by stage

  • Stage 1, pancreas. A 3D SegResNet (the MONAI implementation) segments the pancreas on the full contrast-enhanced CT. The region of interest is the predicted pancreas plus a 30 mm margin, resampled to 0.8 x 0.8 x 1.0 mm.
  • Stage 2, duct maps. A second SegResNet predicts the main pancreatic duct (MPD) and the common bile duct (CBD) inside that region, thresholded at 0.5.
  • Stage 3, lesion. Two lesion models with the same configuration and the same training. One sees the CT only. The other sees the CT plus the two predicted duct maps, following earlier work that stacked duct masks as extra network inputs. Both output a pancreas mask and a lesion mask.

The data are PanTS: 4007 training scans (417 with a lesion), 150 validation scans and 737 test scans (127 with a lesion). Scans duplicated in the PANORAMA collection were removed before splitting. The PanTS lesion label is a single class that mixes pancreatic ductal adenocarcinoma, neuroendocrine tumours, cystic neoplasms and non-neoplastic cysts, so “lesion” here means any labelled pancreatic lesion, not cancer. Each model was trained on one 12 GB RTX 3060, and the released inference script runs a scan in about 10 seconds on that card.

Duct maps found more lesions and painted more normal pancreas

The pre-registered comparison came out flat. Test lesion Dice was 0.213 with duct maps and 0.209 with CT only, a paired difference whose confidence interval spans zero. The duct maps did change behaviour. The model touched more lesions (74.8% against 66.9%), and it also drew larger predictions in scans with no lesion at all.

Both models predicted a lesion somewhere in nearly every lesion-free test scan (100.0% with duct maps, 99.8% with CT only). The maximum lesion probability was at least 0.999 in almost all scans, with or without a lesion, so it carried almost no information about whether a lesion was present (scan-level AUC below 0.5 for both models). As shipped, the lesion mask cannot answer “is there something here?”. Row D of the featured image shows the median lesion-free scan, where the duct-map model painted 15.7 ml.

Where the overlap is lost

Using out-of-fold predictions on training scans, the author tested the obvious fix first. Deleting every predicted component that does not touch the lesion, the best any component filter could do, raised mean Dice only from 0.285 to 0.309. Stray blobs in lesion scans are a small part of the problem.

Most of the loss sits in the component that does land on the lesion. In found cases it measured a median 12.8 ml against a lesion of 5.9 ml, covered about half of the lesion, and was mostly not lesion. The excess lay inside the predicted pancreas, often several millimetres from the lesion, and had almost the same intensity as normal pancreas. That explains why raising the probability threshold made Dice worse and why classifiers on candidates did not help. A 3D CNN on CT crops around each candidate did not beat the plain component volume as a filter.

Dark lesions were the worst case

The paper stratifies lesions by how their attenuation compares with normal pancreas. Roughly a third of out-of-fold lesions had the same attenuation as the gland around them. For those, the CT holds little boundary information, and low overlap is expected from any intensity-driven model.

Clearly darker lesions, which intensity alone separates from normal tissue, had the lowest coverage, both out of fold and on the test set, where their Dice was 0.088. Row C of the featured image is the median missed lesion of that kind: small, obvious to the eye, and untouched by both models. The author could not tell whether this is a learning problem or a lesion-type effect, since PanTS does not separate cysts from solid lesions and some of these lesions sit near water attenuation. Small lesions also did badly, as you would expect.

The duct diameter carried more signal than the lesion mask

Taking the maximum diameter of the predicted MPD as a scan-level score separated lesion scans from lesion-free scans with a test AUC of 0.794, much better than anything the lesion output gave. Part of that came from duct-map voxels lying on the lesion itself; removing them lowered the AUC to 0.758. An MPD diameter of at least 5 mm was specific (95.9%) but present in fewer than half of the lesion scans (44.1% sensitivity). The CBD diameter was weak and added nothing. These diameter analyses were specified after the main test run, and the paper says so.

This matches how radiologists already read pancreatic CT. Main duct dilation is a known secondary sign, and iso-attenuating tumours are sometimes found only because the duct stops at them.

What I would hang on a scan

If I were wiring this kind of pipeline into a viewer, I would not show the lesion mask as a finding. I would show the pancreas outline and the duct maps as overlays, report the maximum MPD diameter in millimetres with the slice where it occurs, and present lesion candidates as a review layer ranked by volume, with a note that nearly every scan will have some. The released infer.py already writes the pieces for this: pancreas, MPD, CBD and lesion masks as NIfTI on the input CT grid, plus a summary.json with region box, volumes, the number of lesion components, the maximum lesion probability and the maximum MPD and CBD diameters. Converting the masks to DICOM SEG and the diameters to a structured report is ordinary platform work.

For a team training its own lesion model, the paper’s method doubles as a checklist: test the oracle component filter before building a candidate classifier, measure coverage by attenuation stratum, and report predictions in lesion-free scans next to Dice.

Limits

  • One public dataset, no external test set and no reader study. PanTS has no patient identifiers, so the split is by scan and repeat scans of one patient may cross splits.
  • The lesion label has no type. Nothing here is specific to pancreatic cancer.
  • Contrast phases differ between partitions: venous-phase scans were 77.3% of the test set and 50.0% of training. Test Dice was lower than validation and out-of-fold Dice.
  • The test set had been used once before, to compare duct models. The duct-map benefit was tested for one architecture and one training length, and there is no nnU-Net baseline.
  • Out-of-fold analyses used two of five folds, and stages 1 and 2 were in-sample for those scans.

Licence, code and status

The paper is an arXiv preprint under CC BY-NC-SA 4.0 and has not been peer reviewed. Code for preprocessing, training, inference and evaluation, plus the data splits, is on GitHub at Kang812/pants-lesion-failure-analysis, and its tests show the scripts reproduce the saved test masks and per-case values on eight test scans. The code licence is listed as “to be chosen”, so treat it as all rights reserved for now. Trained weights are not included; you would have to retrain the four SegResNets. PanTS itself is on Hugging Face (BodyMaps/PanTSMini and BodyMaps/iPanTSMini) under CC BY-NC-SA 4.0, which rules out direct commercial use of models trained on it without a separate agreement. This is a research analysis, not a medical device, and none of its outputs are validated for diagnosis.

Source: Kang-Won Byun, “Where does pancreatic lesion segmentation fail on public CT? An attenuation-stratified analysis of a duct-guided pipeline on PanTS”, arXiv:2611.29861. Featured image built from Fig. 3 of the preprint (CC BY-NC-SA 4.0) with credit to the author.

We build custom medical imaging platforms — advanced DICOM viewers, AI segmentation, and the clinical systems around them.

Copyright © 2026 PYCAD. All Rights Reserved.