Depth-Varying Class Priors for Box-Supervised 3D Lesion Segmentation

Drawing a 3D bounding box around a tumor is roughly fifteen times faster than tracing it voxel by voxel. Learning to segment from boxes alone is a natural fit for positive-unlabeled (PU) learning, where the model sees confirmed examples of one class plus a pool that mixes both classes. Voxels outside the box are known background; voxels inside are an unlabeled mixture of tumor and trapped healthy tissue. Correct PU training needs the class prior, the fraction of tumor hidden in that mixture, and the only published 3D method of this kind uses one global value. Yet a box is mostly tumor in its middle slices and almost entirely background near its top and bottom faces. A single prior is therefore wrong almost everywhere along the depth axis. It is most wrong at the lesion's ends, where the tumor is rare inside the box. PU theory says that is exactly where a misestimated prior does the most damage.

We propose to give each slice of each box its own interval of plausible tumor fractions rather than one number, and to train a 3D network against the worst case within each interval. Because the corrected PU risk is convex in the prior, the worst case always sits at an interval endpoint. Robustness therefore costs two loss evaluations per slice instead of an adversarial inner optimization. The intervals come from box geometry, calibrated on a handful of fully traced cases. The hypothesis is that this fixes the fragmented, over-grown lesion ends that box supervision produces, and does so more reliably than any single point estimate of the prior, whether global, geometric, or self-estimated.

Core Claim

In box-supervised volumetric segmentation, prior error is structured. It depends on where a slice sits within the box's depth, it is largest at the box ends, and a 2D model processing slices independently cannot share the information needed to correct it. Modeling the prior as a depth-indexed interval and minimizing the endpoint worst-case of a non-negative PU risk should improve boundary accuracy at peripheral slices. It should also make training stable when boxes are loose or lesions are far from ellipsoidal. The claim is falsifiable in two directions. If the true per-slice tumor fraction barely varies with depth, the premise fails. If a simple analytic geometric point prior matches the interval method, then robustness is unnecessary and the contribution reduces to "use the right point prior". That would still be a useful and publishable answer.

Relation to Prior Work

The closest work is 3D-BoxSup. It casts box-supervised brain tumor segmentation as voxel-level PU learning with a modified 3D U-Net, multi-scale patches and a non-negative risk estimator. It reaches Dice 0.62 on BraTS against 0.49 for treating the whole box as tumor. It uses one fixed prior and does not study how prior error varies within or across boxes. We keep its PU framing and its architecture, and change only how the prior enters the loss. Sketchy-3DIS handles imprecise 3D boxes in point clouds through feature-similarity pseudo-labeling with no risk estimator. It motivates our loose-box experiments but supplies no method we reuse.

Two results from the weak-supervision literature motivate the proposal. du Plessis et al. showed that PU learning tolerates prior error when the target class dominates the unlabeled pool but not when it is rare. Dai et al. confirmed that small misestimates hurt under imbalance. Together these predict that errors concentrate at peripheral box slices.

The method borrows from two sources. Lu et al. showed that high-capacity networks drive an uncorrected unbiased risk negative and overfit, and that clipping the offending term restores consistency; we inherit that correction. CLAPOR trains against adversarially perturbed priors for robustness. We share its goal, but its bi-level optimization runs at about 45 s/epoch against about 8 s for PRODEN on 2D images. That cost is hard to justify on 3D volumes, and our endpoint argument removes the need for an inner loop.

Two results constrain the design. SoLar estimates priors with a moving average of model predictions. Dai et al. found that this trick often hurts PU learning because early biased predictions feed back, and CLAPOR describes the same feedback loop under imbalance. We therefore never let model predictions recenter the prior. At most they may narrow an interval fixed in advance.

On the volumetric side, Roth et al. showed that independent 2D slice predictions give jagged through-plane contours. In their work, 3D Gaussian smoothing raised pancreas Dice from 56% to 68%. This defines the cheapest volumetric baseline we must beat.

Method

For box $b$ and axial slice $s$ inside it, let $U_{b,s}$ be the unlabeled voxels in that slice of the box and $B_b$ a shell of known background just outside the box. Let $\theta_{b,s}$ be the unknown tumor fraction of $U_{b,s}$, and let $\ell_+$ and $\ell_-$ be the losses for predicting tumor and background. We use a shell adjacent to the box rather than all outside voxels so that the background estimate resembles the tissue actually trapped inside. This partly addresses the selected-completely-at-random assumption that standard PU learning relies on. Rewriting the hidden tumor term through the mixture and clipping it as in Lu et al. gives the per-slice risk

$$R_{b,s}(\theta)=\max\big(0,\ \mathbb{E}_{U_{b,s}}[\ell_+]-(1-\theta)\,\mathbb{E}_{B_b}[\ell_+]\big)+(1-\theta)\,\mathbb{E}_{B_b}[\ell_-].$$

This is a maximum of affine functions of $\theta$, hence convex. Its maximum over an interval $[l_{b,s},u_{b,s}]$ is therefore attained at one of the two endpoints, and the robust objective is

$$\mathcal{L}=\sum_{b,s} w_{s}\,\max\big(R_{b,s}(l_{b,s}),\,R_{b,s}(u_{b,s})\big),$$

where $w_s$ weights slices by voxel count. Each slice's term is computed exactly with two evaluations.

The intervals start from geometry. A tight box touches the lesion on all six faces. For an ellipsoid inscribed in the box, the slice fraction at normalized depth $z\in[-1,1]$ is $(\pi/4)(1-z^2)$, which follows from the area of an ellipse inside its bounding rectangle. We fit a depth-dependent correction and quantile band to this profile using $k$ fully traced calibration cases, with $k=5$ by default. That band is the interval. An optional second stage narrows each interval toward the trained 3D network's own fraction estimate, after smoothing that estimate along depth. The narrowing is clamped so that it can only shrink the interval, never move it outside the calibrated band. The backbone is the 3D-BoxSup U-Net with its multi-scale patch inputs. Patch sampling is box-aligned so that each patch carries the depth coordinate of its slices.

Research Program

The first step is diagnostic and takes days. We compute the true per-slice tumor fraction inside tight boxes for every BraTS case and for the NIH Pancreas CT volumes (82 cases), with boxes derived from the reference masks. We measure how much of its variance is explained by depth alone, by the analytic ellipsoid profile, and by the calibrated band. This tells us before any training whether the premise holds. The pancreas is included deliberately because it is elongated and curved, so the ellipsoid profile should fit poorly there.

The second step trains the method and all baselines under one protocol. The third step stress-tests prior robustness by perturbing boxes, since a loose box changes every slice's true fraction.

Baselines

The naive reference is Naive-BoxSup, which treats every voxel inside the box as tumor. 3D-BoxSup reports Dice 0.49 and 95th-percentile Hausdorff distance 20.86 mm for it on BraTS 2017/2018. Any PU variant should clear this easily, and it mainly calibrates our reimplementation.

The strongest existing method is 3D-BoxSup itself: non-negative PU risk with a single global prior. Its reported result is Dice 0.62 and Hausdorff 15.48 mm on BraTS 2017/2018, against a fully supervised reference the paper describes as often exceeding 0.85. We will reimplement it with the same backbone, patches, augmentation, epochs and five-fold split as our method. Its global prior will be tuned on the same $k$ calibration cases our intervals use, so neither side has extra labels. Beating it means a Dice gain of at least 0.03 and a lower Hausdorff distance in mean across folds, with a paired test over patients. The gain should concentrate in peripheral slices, defined as the outer 20% of box depth. A gain spread uniformly would suggest something other than prior structure is at work.

The most dangerous baseline is a geometric point prior. It uses the same per-slice loss with $\theta$ fixed to the calibrated center of the depth profile, with no interval. This is the ablation that isolates robustness from depth dependence. A second ablation uses the interval with the global (depth-independent) center, isolating depth dependence from robustness.

We also run a SoLar-style moving-average per-box prior starting from the global value, which represents self-estimated priors. We run a CLAPOR-style Dirichlet-perturbed prior with a bi-level loop as the expensive robust alternative, reporting wall-clock per epoch alongside accuracy. Finally, a 2D slice-wise PU model with per-slice intervals plus Roth-style 3D Gaussian smoothing tests whether volumetric context matters once the prior is right. All methods share the tuning budget: the same number of hyperparameter trials on the same validation fold.

Why not just…?

Why not just use the analytic ellipsoid profile as a point prior? This is the real threat. Gliomas are roughly blob-shaped, so the profile may be close enough. The geometric-point-prior ablation answers the question directly. Our expectation that intervals win rests on two observations. First, du Plessis et al. and Dai et al. show that errors at low tumor fractions are disproportionately harmful, and residual shape error is largest there. Second, the profile should fail on the pancreas and under loose boxes. If the point prior matches the interval method on BraTS, on the pancreas, and in the loose-box sweep, we will report that the simple fix suffices.

Why not just tune one global prior carefully, as 3D-BoxSup does? The diagnostic step quantifies how far a global value sits from each slice's true fraction. The peripheral-slice metric then shows whether that gap costs accuracy. If depth explains little of the true fraction's variance, the global prior is adequate and the project stops at the diagnostic.

Why not let the network estimate each box's prior from its own predictions? Dai et al. report that moving-average estimation often hurts PU learning. CLAPOR documents a feedback loop in which bad priors suppress minority predictions, which then worsen the priors: competing methods reach 22.64% minority accuracy on CIFAR-10 at 50:1 imbalance against CLAPOR's 52.40%. Peripheral box slices are exactly that minority regime. The SoLar-style baseline tests this on our data, and the clamped narrowing stage is our controlled version of self-estimation.

Why not just segment 2D slices and smooth in 3D? Roth et al. got a large gain from smoothing, from 56% to 68% Dice on pancreas, but their contours remained fragmented in low-contrast cases. Smoothing cannot recover a lesion end that every slice independently missed. The 2D-plus-smoothing baseline with the same intervals separates the prior's contribution from the 3D backbone's.

Proposed Experiments and Decisive Checks

The primary benchmark is BraTS 2017/2018 whole-tumor segmentation (285 cases), using tight boxes from the reference masks and five-fold cross-validation. We report Dice, 95th-percentile Hausdorff distance, peripheral-slice Dice, and absolute volume error. The secondary benchmark is NIH Pancreas CT, for which we found no reported box-supervised result on Lacuna. There, the fully supervised 2D-plus-smoothing figure of 68% from Roth et al. serves as a ceiling-style reference rather than a competitor.

The loose-box sweep enlarges and shifts boxes by 5–20% of each side, following the sketchy-box motivation of Sketchy-3DIS. Every point-prior method's assumed fraction becomes wrong under this perturbation. The interval method should degrade more gracefully: we predict a smaller Dice drop at 20% loosening than either the global prior or the geometric point prior.

Three outcomes would decide the question. First, the diagnostic must show that depth explains a substantial share of per-slice fraction variance. Second, the interval method must beat the geometric point prior on at least one of the pancreas set or the loose-box sweep, while staying within noise of it on tight BraTS boxes. Third, its training cost must stay within roughly 10% of 3D-BoxSup's, whereas the Dirichlet-perturbed baseline is expected to be several times slower. If the first outcome fails, depth-varying priors are not worth modeling for these lesions. If the second fails, the right recommendation is the analytic profile, and that is what we would publish.