Manuscript Offprint
arXiv:2611.08652An Anatomy-guided 3D Segmentation Pipeline for Prostate Surgical Phantoms from CT Scans
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Full autonomy has been a long-term goal in robotic surgery and a near-to-medium-term goal for prostatectomy. Due to the relatively closed structure of the procedure, its standard-of-care robotic/laparoscopic solutions, and procedure economics, prostate procedures are an optimal early target for surgical automation. Prototyping and testing of possible solutions is done in constructed laboratory phantoms, either synthetic tissues or animal phantoms. To enable measurement of perceptual and robotic motion error, phantoms undergo volumetric imaging; these images are critical to both a potential deployed automatic system, used in planning motion and treatment (cutting, ablation, suturing, etc.), as well as post-hoc assessment of system performance. Rapid iteration on these phantom models yields small, inconsistent datasets, while the current workflow for human annotation is often anatomically unreliable and prohibitively time-consuming, rendering deep learning unsuitable at reasonable scales. To address these limitations, we present an automated 3D segmentation pipeline that uses classical medical image-processing techniques to encode the known anatomy of the phantoms as explicit geometric and intensity priors, which requires no training corpus and is transferred to each new phantom revision without re-annotation. Across 57 scans spanning multiple phantom revisions, our pipeline recovers the capsule interior at 0.83 median Dice on 11 contrast-suppressed scans and detects all 32 annotated focal lesions without false positives, completing a full scan in 2–8 minutes on commodity CPU hardware versus 1–2 hours by hand.
Keywords: Segmentation, deformable geometry, shape analysis, modality: CT, radiography
1. INTRODUCTION
Prostatectomy is the removal of the prostate in part or in whole. It is performed for two distinct indications, and the phantoms studied here are built for both. In benign prostatic hyperplasia (BPH), the gland enlarges and obstructs the urinary tract, threatening renal function if left untreated, and the tissue is removed in bulk. In localized prostate cancer, a discrete malignant focus is removed, either with the entire gland, or in focal therapy, on its own. A minimally invasive intervention via robotic or laparoscopic tooling is the standard surgical route for prostatectomy procedures, and autonomous robotic surgery is an increasingly promising route towards improving procedure outcomes. Precise spatial perception is crucial for robotic systems to navigate prostate anatomy and guide interventions. At the same time, 3D segmentation is also used in the laboratory development phase of these autonomous systems to evaluate the performance of both perception and automation systems. For both, the task is to partition each scan into four interlocking structures (lumen, capsule shell, lobe tissue, and focal lesions), where an error in one induces cascading errors in its neighbors.
Contemporary datasets are small and inconsistent even for phantom segmentations, due to the heterogeneity of possible phantoms and variability in their fabrication. Further, tissue contrast varies between scans, where at the low-contrast end components are nearly indistinguishable (Figure 1). Manual annotation is still prohibitively slow, taking 1–2 hours per scan. Each of these limitations makes data-hungry supervised learning models such as the common U-Net and successor models unsuitable for this environment. Therefore, we propose a fully
Corresponding Author, Daniel Moyer: daniel.moyer@vanderbilt.edu

(a)

(b)
Figure 1: The phantom and the pipeline that segments it. (a) A physical prostate surgical phantom, with NDI trackers and fiducial markers affixed. (b) Stage chain, with representative volumes at each stage; the high- and low-contrast raw scans at left differ in whether the capsule wall is visible at all.
deterministic, rule-based 3D segmentation pipeline that requires no training corpus and utilizes classical medical image-processing techniques, encoding known anatomy as geometric and intensity-based priors to generate multi-label segmentation. This work forms part of the development of an autonomous robotic endoscopy system for trans-urethral prostate intervention, in which accurate 3D segmentation is necessary to supply the spatial information required for procedural planning, depth estimation, mesh generation, tissue simulation, and outcome comparison.
2.1 Phantom Model and Image Acquisition
Our prostate phantoms are hydrogel-based tissue models designed for surgical training.⁸,⁹ NDI trackers (Polaris; Northern Digital Inc., Waterloo, ON, Canada) are attached to the phantom by tracing the tracker outline onto the phantom surface, excising the corresponding slot with a scalpel, and securing the tracker in place with cyanoacrylate adhesive (Figure 1a). Fiducial markers are fixed below the median lobe. The phantom is then mounted on a rigid frame, median lobe downward, for consistent positioning, and imaged with a mobile cone-beam CT scanner (xCAT XL; Xoran Technologies, Ann Arbor, MI, USA) at 120 kVp and 57.6 mAs, reconstructed with the vendor's Bone protocol at 0.3 mm isotropic voxel spacing. All series used this single protocol.
2.2 Pipeline Architecture
The pipeline is a linear stage chain, in the order from lumen, capsule, lobe, then focal lesions. The capsule and lesion stages have high- and low-contrast variants selected by a pipeline-wide contrast flag, while the lumen and lobe stages are contrast-independent and shared (Figure 1b). In the final output, labels are mutually exclusive, and conflicts are resolved by a fixed priority order: lumen, lesion, capsule, then lobe, so that structures are cut flush and no voxel carries two labels. The pipeline was implemented in Python using NumPy,¹⁰ SciPy,¹¹ scikit-image,¹² and SimpleITK.¹³
2.2.1 Lumen: The Spatial Anchor
The lumen is obtained by clustering the image histogram using Otsu's Method¹⁴ to extract all air in the scan, which appears as the darkest voxels (around -1000 to -410 HU). For room air outside of the physical phantom that may have been included, the structure is then geometrically shaved, utilizing a bounding-box circularity and extent as criteria until the cross-section is flat against the phantom model's major external wall (Algorithm A1). Because the lumen is an air/tissue boundary, it is recovered identically at both contrast levels and thus serves as the spatial anchor for all subsequent stages.
2.2.2 Capsule: The Prostate Boundary
High Contrast: Capsule, lobe, and focal lesions share contrast, so a threshold low enough to catch fainter parts of the wall can flood into the lobe or pick up a lesion. We therefore band-confine¹⁵ the capsule. Bright components anchored to a ring around the lumen seed the wall, a three-view visual hull¹⁶ closes the seed into an interior envelope, and a rind band about that envelope selects the wall itself, rejecting focal lesions and noise for free (Algorithm A2).
Low Contrast: As the capsule is essentially invisible here, its location is obtained from an atlas¹⁷,¹⁸ registered through the lumen (Algorithm A6) and thresholded to an interior envelope. Where thin-wall evidence exists, a ridge detector locates bright wall arcs,¹⁵ and the boundary is pulled onto them by a regularized displacement that decays back to the atlas where no arc is found, so that unobserved wall is never invented. The envelope is then hollowed into a shell and opened at the poles to thread the query lumen through (Algorithm A8).
Atlas Creation: The atlas is created from 11 verified, fully segmented high-contrast scans. Each capsule is filled into an interior solid, since thin shells average to mush, and all cases are first aligned to a prime lumen via principal component analysis, then averaged¹⁹ using groupwise diffeomorphic demons²⁰ (Algorithm A7).
2.2.3 Lobe: Defined, not Detected
The capsule is meant to be the hard geometric boundary, and lobe tissue shares the same HU as tissue outside of the capsule; geometry is used to ensure that lobe voxels do not bleed past the boundary. The lobe is defined by filling the capsule interior via a three-view visual hull,¹⁶ then subtracting the capsule shell and lumen (Algorithm A3).
2.2.4 Focal Lesions
High Contrast: With the lobe already labeled, we can obtain an adaptive threshold directly from the distribution within the lobe. The lobe core is eroded slightly to avoid contact with the capsule and lumen, then lesions are thresholded by a mean plus a factor times the standard deviation of the lobe's distribution (Algorithm A4).
Low Contrast: Here, the capsule is an atlas, so lesions may protrude outside the estimation. Furthermore, these lesions have an intensity much closer to the lobe. Thus, our strategy changes to use the atlas plus some margin to bound our search radius, then apply a local-mean contrast field. Where local intensity spikes, these areas are seeded and grown to the full size.²¹ Components that are too small, or whose contrast is inconsistent with lesion tissue, are then discarded (Algorithm A9). Where lesions indeed protrude outside of the capsule wall, the shell is locally stretched outwards via morphology until the lesions are fully contained. Lobe fills into the space created by the newly stretched shell, ensuring that lesions are fully enclosed (Algorithm A10).
3. EXPERIMENTS AND RESULTS
Our corpus consists of 57 CT scans spanning several revisions of the phantom formula, of which 11 are high-contrast, with 3 containing lesions, and the remainder low-contrast. High-contrast scans are the simpler case and supply reference segmentations rather than being measured, so they are used as a tool to help evaluate the low-contrast path. The nine annotated low-contrast series used for lesion scoring come from seven distinct phantoms; two of them contribute a second acquisition, taken after the phantom had dried between sessions (Lester) and with a differing number of implanted fiducial markers (Murphy), so the repeats vary imaging conditions rather than duplicating a measurement (Table B1). Each of the two studies below is built around a control that is capable of failing, so that a successful outcome is distinguishable from an uninformative one.
3.1 Study 1: Capsule Spoofing
Low-contrast capsule accuracy cannot be measured directly. The wall is absent from the image, so there is no boundary to annotate and no ground truth to score against. We therefore synthesized a low-contrast counterpart from each of the 11 high-contrast scans, suppressing the contrast of the capsule voxels by refilling them with the local mean and noise variance of the surrounding soft tissue,²² while leaving every other voxel in the volume unchanged, ran the low-contrast path on the synthetic scan, and scored its capsule against the high-contrast segmentation of the original, which serves as ground truth precisely because the wall was visible before it was

(a) Capsule localization after spoofing
| Manual | Spoofed | All | |
|---|---|---|---|
| Series | 9 | 3 | 12 |
| Lesions | 26 | 6 | 32 |
| Detected | 26 | 6 | 32 |
| False pos. | 0 | 0 | 0 |
| Median Dice | 0.911 | 0.932 | — |
| Median Recall | 0.994 | 0.970 | — |
| Median Precision | 0.857 | 0.937 | — |
(b) Focal lesion results
Figure 2: Results of the two studies. (a) Capsule localization after contrast spoofing, pooled over the 11 cases and binned into 20 normalized axial positions; ribbons are interquartile ranges. Top: blue is how well the true wall is recovered; red is the predicted surface with no true counterpart. Bottom: mean true-wall voxels per slice, indicating where the wall exists to be found. Per-case results are given in Table B2. (b) Manual denotes the manually annotated low-contrast series. Dice, recall, and precision are computed once per series over all its lesion voxels; the table reports the median across series. Per-series detail is given in Table B1.
removed. The atlas is built from these same cases, so this measures transfer under a removed wall rather than generalization to an unseen phantom. Because the spoof does not alter air, a correct pipeline must reproduce the original lumen exactly; we require bit-identical lumen agreement as the control.
That control passed in every case (lumen Dice = 1.0000, 11 of 11), so all capsule disagreement is attributable to the atlas rather than to the spoof. Interior Dice was median 0.829 (range 0.790–0.881), with recall 0.819 and precision 0.883. Boundary error, reported as a directed pair of per-case average surface distances (ASD), was 2.36 mm from the true capsule to the prediction and 7.91 mm in the reverse direction; the asymmetry holds in every case (median 3.4×, range 1.8–5.0×) and is over-extension rather than a failure to find the wall (Figure 2a).
3.2 Study 2: Lesion Recall
Lesions are scored per matched component. each annotated lesion, obtained manually by user-guided active-contour segmentation in ITK-SNAP or by high-contrast spoofing, is paired with the detection of greatest overlap, and recall and Dice are computed on that pair. Any component picked up by the detector that does not have an annotated counterpart counts as a false positive. Fiducial markers and NDI trackers serve as our controls, as they share lesion characteristics by being bright and compact.
All 32 annotated lesions were detected, with no false positives on any series (Figure 2b). On the nine manually annotated low-contrast series (26 lesions), per-lesion recall was median 0.997 (mean 0.979, minimum 0.872), with 24 of 26 lesions at or above 0.90 recall, and Dice was median 0.976 (mean 0.937, minimum 0.730). On the three spoofed series (6 lesions), scored against the high-contrast lesion masks of the same scans, per-lesion recall was median 0.985 and Dice median 0.941. No fiducial markers or NDI trackers were labeled as a lesion.
4. CONCLUSION
We presented a deterministic, training-free pipeline that partitions a prostate surgical phantom scan into four interlocking structures across contrast levels utilizing geometric and intensity-based priors to reconstruct the anatomy. What transfers is the organizing principle: segmenting each structure through the observable channel, and supplying a prior only where the image carries no evidence. The limitation lies at the same seam. Where the wall is invisible, the atlas is the only source of boundary, and it overextends at the poles, where no wall constrains it. At 2–8 minutes per scan on commodity CPU hardware, compared with 1–2 hours by hand, the pipeline removes the annotation bottleneck that keeps these datasets too small to learn from.
ACKNOWLEDGMENTS
Research reported in this publication was supported by the Advanced Research Projects Agency for Health (ARPA-H) under the ALISS project, Award Number D24AC00415-00. The ARPA-H award of up to $11,935,038 provided 100% of the financial support for this work. The opinions and findings in this paper are solely the responsibility of the authors and do not necessarily represent the official views of ARPA-H.
REFERENCES
[1] Goueli, R., Badlani, G. H., Welliver, C., et al., “Management of lower urinary tract symptoms attributed to benign prostatic hyperplasia: AUA guideline (2026) part I: Presentation and evaluation,” Journal of Urology 216(2), 143–151 (2026).
[2] Goueli, R., Badlani, G. H., Welliver, C., et al., “Management of lower urinary tract symptoms attributed to benign prostatic hyperplasia: AUA guideline (2026) part III: Procedural/surgical management,” Journal of Urology 216(2), 161–170 (2026).
[3] Eastham, J. A., Barocas, D., Chu, C., et al., “Clinically localized prostate cancer: AUA/ASTRO guideline amendment (2026),” Journal of Urology 216(1), 2–11 (2026).
[4] Ślusarczyk, A., Gurwin, A., Barnaś, A., et al., “Outcomes of focal therapy for localized prostate cancer: A systematic review and meta-analysis of prospective studies,” European Urology Oncology 8(6), 1653–1672 (2025).
[5] Attanasio, A., Scaglioni, B., De Momi, E., Fiorini, P., and Valdastri, P., “Autonomy in surgical robotics,” Annual Review of Control, Robotics, and Autonomous Systems 4, 651–679 (2021).
[6] Isensee, F., Jaeger, P. F., Kohl, S. A. A., Petersen, J., and Maier-Hein, K. H., “nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation,” Nature Methods 18(2), 203–211 (2021).
[7] Wasserthal, J., Breit, H.-C., Meyer, M. T., Pradella, M., Hinck, D., Sauter, A. W., Heye, T., Boll, D. T., Cyriac, J., Yang, S., Bach, M., and Segeroth, M., “TotalSegmentator: Robust segmentation of 104 anatomic structures in CT images,” Radiology: Artificial Intelligence 5(5), e230024 (2023).
[8] Saba, P., Shepard, L., Gopal, N., Setia, S., Jain, R., Quarrier, S., Miller, N., Krambeck, A., Humphreys, M., and Ghazi, A., “Design and validation of a non-biohazardous simulation model for holmium laser enucleation of the prostate (HoLEP),” Urology Video Journal 16, 100184 (2022).
[9] Shepard, L., Schuler, N., Narang, G., Setia, S., Das, A., Miller, N., Humphreys, M., Krambeck, A., and Ghazi, A., “From consensus to validation: A multicenter study for design and development of a holmium laser enucleation of the prostate hydrogel simulation platform,” Journal of Endourology 38, 60–67 (Jan. 2024).
[10] Harris, C. R., Millman, K. J., van der Walt, S. J., et al., “Array programming with NumPy,” Nature 585(7825), 357–362 (2020).
[11] Virtanen, P., Gommers, R., Oliphant, T. E., et al., “SciPy 1.0: fundamental algorithms for scientific computing in Python,” Nature Methods 17(3), 261–272 (2020).
[12] van der Walt, S., Schönberger, J. L., Nunez-Iglesias, J., Boulogne, F., et al., “scikit-image: image processing in Python,” PeerJ 2, e453 (2014).
[13] Lowekamp, B. C., Chen, D. T., Ibáñez, L., and Blezek, D., “The design of SimpleITK,” Frontiers in Neuroinformatics 7, 45 (2013).
[14] Otsu, N., “A threshold selection method from gray-level histograms,” IEEE Transactions on Systems, Man, and Cybernetics 9(1), 62–66 (1979).
[15] Soille, P., [Morphological Image Analysis: Principles and Applications], Springer-Verlag, Berlin, Heidelberg, second ed. (2004).
[16] Laurentini, A., “The visual hull concept for silhouette-based image understanding,” IEEE Transactions on Pattern Analysis and Machine Intelligence 16(2), 150–162 (1994).
[17] Iglesias, J. E. and Sabuncu, M. R., “Multi-atlas segmentation of biomedical images: A survey,” Medical Image Analysis 24(1), 205–219 (2015).
[18] Klein, S., van der Heide, U. A., Lips, I. M., van Vulpen, M., Staring, M., and Pluim, J. P. W., “Automatic segmentation of the prostate in 3D MR images by atlas matching using localized mutual information,” Medical Physics 35(4), 1407–1417 (2008).
[19] Joshi, S., Davis, B., Jomier, M., and Gerig, G., “Unbiased diffeomorphic atlas construction for computational anatomy,” NeuroImage 23(Suppl. 1), S151–S160 (2004).
[20] Vercauteren, T., Pennec, X., Perchant, A., and Ayache, N., “Diffeomorphic demons: efficient non-parametric image registration,” NeuroImage 45(1), S61–S72 (2009).
[21] Vincent, L., “Morphological grayscale reconstruction in image analysis: applications and efficient algorithms,” IEEE Transactions on Image Processing 2(2), 176–201 (1993).
[22] Valverde, S., Oliver, A., and Lladó, X., “A white matter lesion-filling approach to improve brain tissue volume measurements,” NeuroImage: Clinical 6, 86–92 (2014).
[23] Dice, L. R., “Measures of the amount of ecologic association between species,” Ecology 26(3), 297–302 (1945).
[24] Taha, A. A. and Hanbury, A., “Metrics for evaluating 3D medical image segmentation: analysis, selection, and tool,” BMC Medical Imaging 15(1), 29 (2015).
[25] Maier-Hein, L., Reinke, A., Godau, P., Tizabi, M. D., et al., “Metrics reloaded: recommendations for image analysis validation,” Nature Methods 21(2), 195–212 (2024).
[26] Reinke, A., Tizabi, M. D., Baumgartner, M., Eisenmann, M., et al., “Understanding metric-related pitfalls in image analysis validation,” Nature Methods 21(2), 182–194 (2024).
[27] Yushkevich, P. A., Piven, J., Hazlett, H. C., Smith, R. G., Ho, S., Gee, J. C., and Gerig, G., “User-guided 3D active contour segmentation of anatomical structures: significantly improved efficiency and reliability,” NeuroImage 31(3), 1116–1128 (2006).
APPENDIX A. ALGORITHMS
Algorithm A1 Lumen mask — the contrast-independent anchor
Require: CT volume Ensure: Lumen mask 1: 2: 3: shave end slices off each face of until the cross-section meets its shape target removes the slack air gaps 4: return
Why it anchors everything: the shave removes whole axial slices, so the two ends of are -perpendicular flat faces that mark the phantom's true axial extent — reused by every later stage.
Algorithm A2 Capsule mask, high contrast — envelope-band selection
Require: ; lumen ; bright level ; faint level ; trim level and edge level Ensure: Capsule mask ; interior envelope 1: components of that touch 2: 3: 4: every component of that touches 5: 6: 7: 8: return ,
seed the wall off the lumen ring rind band about the envelope surface whole components, not faint wall, distance-constrained bridge gaps; the poles stay open edge trim: keep bright or wall-edge
Three load-bearing choices. Capsule and lobe are HU-connected (the lobe reaches ~464 HU), so every recovery step must be band-confined — a global cut at floods straight through the lobe. Selecting whole components rather than intersecting with matters: the intersection discards ~61% of the true wall, whereas whole components keep each arc at its own thickness and reject interior lesions for free. And the trim's edge term preserves the faint true wall a pure-HU cut would eat; the re-close is intersected back with the pre-trim mask, so it can never bulge into lobe or exterior.
Algorithm A3 Lobe mask — defined geometrically, not detected
Require: Capsule ; lumen ; raw ; envelope ; pole tissue floor Ensure: Lobe mask 1: 2: 3: 4: 5: 6: return
capsule and lumen outrank the lobe lobe = fill(interior) – capsule – lumen severs the thin necks leaks escape through smooth, then re-cut pole protrusion, outside the envelope
Why geometry and not intensity: the lobe cannot be separated from the capsule by HU, but it can be defined by containment — everything inside the capsule that is not lumen is lobe, so imaging artifacts inside the boundary are included automatically. Two steps guard that definition: the re-cut, because the closing can bulge past the wall; and the pole step, because real tissue exits the open poles outside the envelope where every interior-clipped step misses it, with the HU floor admitting that tissue while rejecting the slack air gap beside it.
Algorithm A4 Focal lesions, high contrast
Require: ; lobe ; factor ; size floor ; roundness floor ; count cap
Ensure: Lesion label map
1: 2: 3: 4: 5: 6: the largest of , labeled largest-first without overwrite, each passed through REGULARIZE (Algorithm A5)
▷ core: drops the bright inner-wall rim ▷ adaptive: the lobe's own bright tail
▷ opening by reconstruction ▷ gate the raw component
Three choices that matter. The core erosion excludes the bright partial-volume rim on the inner capsule wall, which otherwise both inflates and thresholds in as a false lesion. Reconstruction replaces a plain opening, which erased a real 31k-voxel lesion outright. And the gate reads the raw component because REGULARIZE raises roundness — gating after it would let an elongated artifact round up into a false lesion.
Algorithm A5 REGULARIZE — per-lesion shape regularization
Require: Component ; ellipsoid factor ; hull votes ; median radius
Ensure: Regularized component
1: fit the centroid and covariance of , refitting three times on the inliers ▷ robust: an artifact tail cannot stretch the axes
2: ▷ ellipsoid cap — a pure trim
3: ▷ fills craters FILLHOLES cannot reach
4: ▷ round the surface, trim thin spikes
Why cap before hull, and why one setting fits every lesion: the cap runs first so the convex hull cannot bridge across an elongated CT streak and re-absorb it. Both steps are self-limiting — a genuinely round lesion lies inside its own ellipsoid and equals its own hull, so neither can inflate it — which is why the same three values serve both contrast levels. The hull is what recovers a heterogeneous lesion's hollow core, an open crater that no hole-filling can reach. The cap is a no-op below ~200 voxels, where the covariance is unstable.
Algorithm A6 ALIGNLUMEN — lumen-referenced similarity alignment
Require: Moving lumen ; fixed lumen
Ensure: Similarity transform
1: 2: ▷ covers the roll-degenerate lumen
3: for do
4: ▷ seeding avoids the wrong-flip basin
5: keep only if ▷ guard: cannot worsen a GT-less scan
6: end for
7: return the candidate of highest final Dice
Why the final score and not the flip score: the flips enumerate only discrete 180° poses, so a residual continuous roll can survive the choice, and on a roll-degenerate lumen — two largest eigenvalues near-equal — the PCA axes and therefore all four flips are ill-determined. Ranking after refinement is what makes the selection regression-free; the spread of the flip scores is retained as a free confidence signal at apply time.
Why deformable here but not at apply time: shells average to mush, so the filled interior is stored; and because every case is a segmented interior rather than an image, the warp is legitimate and sharpens the consensus (fuzzy band 44%→13%). At apply time only the lumen is observable, so Algorithm A8 stays similarity-only.
Algorithm A7 Capsule atlas construction (offline, high-contrast corpus)
Require: High-contrast cases ; prime case index Ensure: Occupancy map over the prime grid 1: for each case do 2: ; store the filled interior, never the shell 3: end for 4: align through the lumen 5: repeat 6: warp every aligned onto by diffeomorphic demons on interior signed-distance maps, and re-average 7: until converged 8: return
Algorithm A8 Capsule mask, low contrast — atlas transfer with arc snap
Require: ; lumen ; atlas over prime lumen ; occupancy cut ; shell thickness ; pole clearance Ensure: Capsule mask ; interior envelope 1: transferred interior envelope 2: white top-hat, locally z-scored 3: regularized pull of onto the arcs 4: opens both poles; enforces lumen capsule 5: return
Evidence-gated by construction. A ridge detector is used so broad bright lobe and partial-volume regions are ignored while faint thin walls survive. The snap decays back to the atlas away from the arcs, so where no wall is seen the boundary stays where the atlas put it and unobserved wall is never invented.
Algorithm A9 Focal lesions, low contrast — tissue-only local contrast
Require: ; envelope ; lumen ; box half-width ; tissue floor ; seed level and grow level ; contrast band ; size floor ; cap Ensure: Lesion label map 1: tissue 2: local contrast against tissue alone 3: search region 4: above the seed floor 5: that meet grow, to fill the lesion interior 6: shape-neutral gate, deliberately not roundness 7: return the largest of , labeled as in Algorithm A4
Two constraints a reimplementation must keep. must exceed the largest lesion: with a smaller box the local mean tracks the lesion itself and its interior contrast vanishes, and excluding air keeps the lumen from dragging the background estimate down. The gate is shape-neutral because these lesions are genuinely oblong — the floor drops marginal lobe blobs, the ceiling drops ultra-bright compact vessels and calcifications.
Why the geometry moves and not the lesion: the capsule here is a registered prior while the lesion is read from the image, so where the two disagree it is the boundary that should move — clipping the lesion would discard observed tissue to preserve an estimate. The falloff keeps that push local: a uniform one inflates the whole gland, a hard one leaves a bump, and a lesion already deep inside gives and contributes nothing. Reading the pristine masks and writing separate reconciled ones makes the stage idempotent, so the stretch can never compound.
Algorithm A10 Lesion reconcile, low contrast — grow the geometry to the lesion
Require: Pristine capsule , interior , lobe ; lumen ; lesion map ; lobe pad ; shell thickness ; pole clearance ; stretch spread
Ensure: Reconciled capsule , interior , lobe
1: if every lies in with a collar from then return unchanged
2: full at the lesion, zero at
3: stretch, contain, close pockets
4: neighborhood of change
5: re-shell locally, splice into the global wall
6: reopen the poles; hold the lobe collar
7: absorb the lesion and its collar
8: return
Table A1: Parameter values. Radii and half-widths are in voxels unless marked mm.
| Alg. | Parameter | Value |
|---|---|---|
| A1 | morphology radii (open, close) | 2, 2 |
| A2 | bright level faint level / growthband depth (inner, outer)trim level / edge / closing radii (band, planar, trim) | 300 HU240 HU / 36, 2240 HU / 120 / 1.55, 30, 10 |
| A3 | opening / closing radiuspole tissue floor | 5, 5−300 HU |
| A4 | core erosion / factor size floor / roundness | 1 / 1.08000 / 0.6 |
| A5 | ellipsoid , hull votes, median | 1.25, 3, 2 |
| A7 | corpus size / groupwise sweepsdeformable working resolution | 11 / 32.0 mm iso |
| A8 | occupancy cut / shell pole clearance top-hat scale / / min. arc sizesnap reach / clamp / spread | 0.5 / 329 / 1.2 / 10012 / 20 / 2.5 (mm) |
| A9 | box half-width / tissue floor seed / grow contrast band size floor / ROI margin | 40 / −200 HU110 / 60[85, 170]3000 / 25 |
| A4, A9 | lesion count cap | 3 |
| A10 | lobe pad / stretch spread de-burr opening / closing radius | 3 / 20 mm1, 1 |
APPENDIX B. DATA
Table B1: Per-series focal lesion results. Dice, recall, and precision are computed on the union of lesions within each series. The suppressed series are high-contrast scans passed through the low-contrast path, scored against the high-contrast segmentation of the same scan. Lester and Murphy each appear twice, numbered in acquisition order, as two separate scanning sessions of the same phantom.
| Series | GT lesions | Detected | Dice | Recall | Precision |
|---|---|---|---|---|---|
| Low contrast, manual annotation | |||||
| Leo | 3 | 3 | 0.894 | 0.940 | 0.853 |
| Larry | 3 | 3 | 0.860 | 0.948 | 0.786 |
| Lester 1 | 3 | 3 | 0.890 | 0.994 | 0.806 |
| Lester 2 | 3 | 3 | 0.911 | 0.973 | 0.857 |
| Louis | 2 | 2 | 0.896 | 0.956 | 0.843 |
| Matthew | 3 | 3 | 0.990 | 0.995 | 0.984 |
| Monty | 3 | 3 | 0.988 | 0.996 | 0.981 |
| Murphy 1 | 3 | 3 | 0.990 | 1.000 | 0.981 |
| Murphy 2 | 3 | 3 | 0.987 | 1.000 | 0.975 |
| Median | — | 26/26 | 0.911 | 0.994 | 0.857 |
| Suppressed low-contrast | |||||
| Suppressed 1 | 2 | 2 | 0.911 | 0.998 | 0.838 |
| Suppressed 2 | 2 | 2 | 0.932 | 0.927 | 0.937 |
| Suppressed 3 | 2 | 2 | 0.982 | 0.970 | 0.994 |
| Median | — | 6/6 | 0.932 | 0.970 | 0.937 |
Table B2: Per-case results for the capsule suppression study, ordered by descending interior Dice. Volumes are of the capsule interior. Average surface distance (ASD) is the mean, over every voxel of one boundary, of the Euclidean distance to the nearest voxel of the other; it is reported as a directed pair because the two directions measure different things: GT→pred. measures how well the true capsule is covered; pred.→GT measures predicted surface having no true counterpart. HD95 is the 95th-percentile Hausdorff distance over the same distances, reported in preference to the maximum, which a single voxel dominates. Lumen Dice is the validity control, not a result: the suppression does not alter air, so a correct pipeline must reproduce the original lumen exactly.
| Case | GT(mL) | Pred.(mL) | Dice | Recall | Prec. | GT → pred.(mm) | Pred. → GT(mm) | HD95(mm) | LumenDice |
|---|---|---|---|---|---|---|---|---|---|
| Case 1 | 182.5 | 181.6 | 0.881 | 0.878 | 0.883 | 1.55 | 7.15 | 28.1 | 1.0000 |
| Case 2 | 181.7 | 159.2 | 0.873 | 0.819 | 0.934 | 1.74 | 5.96 | 22.4 | 1.0000 |
| Case 3 | 151.5 | 157.3 | 0.847 | 0.863 | 0.831 | 1.85 | 9.04 | 35.9 | 1.0000 |
| Case 4 | 167.0 | 169.8 | 0.847 | 0.854 | 0.839 | 1.82 | 9.01 | 32.8 | 1.0000 |
| Case 5 | 148.3 | 159.5 | 0.841 | 0.873 | 0.811 | 1.95 | 8.87 | 34.6 | 1.0000 |
| Case 6 | 189.9 | 144.7 | 0.829 | 0.730 | 0.958 | 2.54 | 4.47 | 10.5 | 1.0000 |
| Case 7 | 207.1 | 152.9 | 0.823 | 0.715 | 0.969 | 3.09 | 5.71 | 19.5 | 1.0000 |
| Case 8 | 174.2 | 164.7 | 0.813 | 0.790 | 0.836 | 2.36 | 7.91 | 26.7 | 1.0000 |
| Case 9 | 205.4 | 160.0 | 0.804 | 0.715 | 0.919 | 2.66 | 5.06 | 13.3 | 1.0000 |
| Case 10 | 208.0 | 156.6 | 0.800 | 0.701 | 0.932 | 2.89 | 8.13 | 26.8 | 1.0000 |
| Case 11 | 139.3 | 168.5 | 0.790 | 0.872 | 0.721 | 2.56 | 12.02 | 36.9 | 1.0000 |
| Median | 181.7 | 159.5 | 0.829 | 0.819 | 0.883 | 2.36 | 7.91 | 26.8 | 1.0000 |