Learning Lesion Margins from Bracketing Annotations

Doctors tolerate a tumor outline that is a little too large far more readily than one that is too small. A missed margin can leave cancer behind, while an extra millimeter of healthy tissue usually costs little. Segmentation models trained from cheap, sparse annotations ignore this asymmetry entirely. A sparse annotation here means a few quick strokes, or "scribbles," drawn inside the lesion and in the background, rather than a traced outline. The scribbles avoid the fuzzy edge precisely because nobody can place it reliably, so the model gets no training signal exactly where the image is most ambiguous. The usual fix of dilating or lowering the threshold afterward grows the outline by the same amount everywhere. That is too much where the edge is crisp and too little where it fades.

We propose a different annotation primitive with a matching learning objective. The annotator brackets the edge rather than tracing it. One stroke goes inside the lesion where they are sure it is lesion, and one loose loop goes outside, where they are sure the lesion has ended. Along any ray leaving the lesion center, the true edge then lies somewhere between two known distances. Statisticians call this an interval-censored observation, the same structure as a patient whose relapse is known only to have happened between two clinic visits. We train a 3D network to predict, for each direction, a probability distribution over where the edge lies, using the standard likelihood for interval-censored data. At test time, the clinician's cost ratio between missing tissue and including extra tissue picks a quantile of that distribution. The result is a margin that widens automatically where the image is ambiguous and stays tight where it is not, with one explicit, interpretable control knob.

Core Claim

The claim has two parts. First, bracketing annotations, which cost roughly as much as two scribbles, do give the network a real training signal in the ambiguous band. This is not true of ordinary voxel-wise losses, which treat unlabeled band voxels as missing information. The signal comes from one structural assumption: along a ray from the lesion center there is exactly one inside-to-outside transition. Second, under a fixed budget of missed lesion tissue, the margin taken from the learned edge distribution includes less healthy tissue than either a uniformly dilated or a re-thresholded mask from the strongest scribble baseline trained on the same strokes. Its per-case coverage should also match the nominal level.

Let $R_k$ be the true distance from a lesion seed to the edge along ray $k$. Let $a_k \le R_k \le b_k$ be the bracket given by the inner stroke and outer loop. The network outputs a survival curve $S_k(r) = P(R_k > r \mid \text{image})$, the probability that the lesion still extends past distance $r$. Training minimizes

$$\mathcal{L} = -\sum_k \log\big(S_k(a_k) - S_k(b_k)\big),$$

the probability the model assigns to the edge falling inside the observed bracket. If missing a lesion voxel costs $c_{FN}$ and including a healthy one costs $c_{FP}$, the expected-cost-minimizing outline includes distance $r$ along ray $k$ exactly when

$$S_k(r) \ge \frac{c_{FP}}{c_{FP}+c_{FN}}.$$

This follows from comparing the expected cost of excluding the voxel, $c_{FN} S_k(r)$, with the expected cost of including it, $c_{FP}(1-S_k(r))$. The cost ratio therefore never enters training. It is applied after the fact, on a quantity that is meant to be calibrated.

To keep the architecture inside the robust 3D regime, the backbone is a standard nnU-Net. It predicts a dense per-voxel "hazard," the probability that the edge occurs at this voxel given that it has not occurred yet along the ray. $S_k$ is the running product of one minus the hazard along each ray. A second head, trained with the partial loss on the inner strokes alone, finds lesion cores at test time; their component centroids serve as ray seeds, one set per lesion for multifocal disease.

Relation to Prior Work

Two papers motivate the problem. Embarrassingly Simple Scribble Supervision for 3D Medical Segmentation shows that nnU-Net with a partial loss, meaning a loss computed only on scribbled voxels, beats elaborate scribble methods across seven 3D tasks. That loss has nothing to say about unlabeled boundary voxels, and the paper scores only symmetric overlap. Semi-supervised Label Generation for 3D Multi-modal MRI Bone Tumor Segmentation shows that blinded experts preferred a model that slightly over-segmented bone tumors, in 60.56% of evaluations and 61.67% of majority votes. In that work the over-segmentation was an accident of clustering and region growing. We make the margin an explicit, adjustable quantity.

A second group handles ambiguity symmetrically, which our approach replaces. Learning to Segment Medical Images with Scribble-Supervision Alone grows scribbles with intensity-based random walks and CRF smoothing. It then withholds uncertain voxels from retraining. We instead turn uncertainty into a directed margin. Bounding Maps for Universal Lesion Detection softens box supervision with a fixed linear falloff that is symmetric about the center. We learn an image-dependent edge distribution. Structure Boundary Preserving Segmentation for Medical Image With Ambiguous Boundary regularizes fuzzy edges with boundary key points, but those points are computed from dense masks, so it does not reduce annotation cost.

Two papers shape how we evaluate. Aligning Evaluation with Clinical Priorities: Calibration, Label Shift, and Error Costs argues that cost-blind metrics mislead and that calibration matters. That is why our main metrics are cost curves and coverage, not Dice. A Methodological Framework for Measuring Spatial Labeling Similarity separates core misses from boundary disagreements in evaluating spatial transcriptomics maps. We adopt the same distinction with simple volumetric measures rather than its graph machinery. Finally, Whole Slide Pathology Image Patch Based Deep Classification shows that weighting losses by tumor proportion and miss severity sharply reduces false negatives. That result supports spatially specific costs, though at patch level and with costs fixed at training time.

Research Program

The work has three stages.

The first stage builds bracketing annotations. Initial experiments use the lesion tasks in ScribbleBench: BraTS2020 whole tumor, LiTS liver tumors, and KiTS2023 kidney tumors. Each simulated bracket consists of an inner stroke placed on an eroded copy of the dense mask and an outer loop drawn on a dilated copy whose width varies at random along the contour and between cases. This variation is not cosmetic. Interval-censored distributions can be identified only when brackets fall at varying positions relative to the truth. We will test this directly by shrinking the randomness until learning degrades. A small live study, in which a radiologist brackets about thirty LiTS and KiTS cases, will measure annotation time against scribbling and tracing. It will also check whether real envelopes vary as much as the simulated ones.

The second stage trains the hazard network with the interval-censored likelihood, using the core head for seeds. Two choices are fixed in advance: the number of rays, and the treatment of rays that leave the field of view, which become right-censored terms. The method assumes lesions are star-shaped as seen from the seed. We will report what fraction of ground-truth lesions in each dataset meet this assumption and analyze failures separately.

The third stage is an extension using routine clinical labels. RECIST measurements are line diameters that oncologists already record for tumor response. Their endpoints are exact edge observations on a few rays, which enter the likelihood as density terms rather than intervals. This links the method to the RECIST-anchored work in Weakly Supervised Lesion Co-Segmentation on Ct Scans.

Baselines

The naive reference point is nnU-Net with the partial loss trained on the inner strokes alone, with no background information beyond what nnU-Net infers. This shows what the cheapest scribble pipeline delivers.

The strongest existing method is nnU-Net with the partial loss from Embarrassingly Simple Scribble Supervision for 3D Medical Segmentation. For fairness it receives exactly the same bracketing annotations: inner strokes as foreground labels, and the outer loop plus everything beyond it as background labels. It uses the same nnU-Net configuration, epochs, and GPU budget. That paper reports a mean Dice of 0.813 across ScribbleBench, against 0.856 under dense supervision. No reported per-task result was found on Lacuna for this baseline on BraTS2020, LiTS, or KiTS2023, and none for any miss-rate or excess-volume metric. We will rerun it ourselves.

Because a raw baseline sits at one point on the miss/excess trade-off, we give it two sweeps. One lowers the decision threshold. The other applies uniform morphological dilation by $k$ voxels. Each traces a full curve. Its sweep parameters are tuned on the same validation split we use, with the same number of trials.

Dense full supervision serves as an upper bound, both with threshold sweeps and with our quantile rule applied to an ordinary probability map.

Three ablations isolate the key ingredients. The first replaces the censored ray likelihood with a voxel-wise partial loss on the same brackets while keeping the ray-based decoding. This tests whether the monotone ray structure creates the band signal. The second keeps the censored model but always decodes at the median, which isolates the cost-driven quantile. The third trains with fixed-width envelopes, which tests the identifiability argument.

The proposal beats the strongest baseline if, at matched lesion miss rates of 1%, 5%, and 10% of lesion voxels per case, it includes significantly less healthy tissue on at least two of the three tasks. Significance is assessed by paired per-case comparisons. It must also do this without a Dice loss larger than about one point.

Why not just…?

Why not just threshold or dilate the partial-loss model's output? This is the real threat, and the experiments are built around it. Both operations move the outline by a single global amount. In the band, the baseline's probabilities come from no supervision at all, so there is no reason to expect them to rank ambiguous voxels well. The decisive test is the matched-miss-rate comparison above. If the threshold-swept baseline's curve lies on or below ours, the core claim is false and we will report that. The paper's pancreatic and coronary examples illustrate how uniform growth spills into neighboring structures. Spillover into KiTS kidney parenchyma gives us a measurable version of the same concern.

Why not just up-weight false negatives in the cross-entropy loss? A global weight changes the training objective everywhere. The trade-off gets fixed before deployment, and the resulting probabilities are deliberately miscalibrated, which is the problem that Aligning Evaluation with Clinical Priorities warns about. More fundamentally, under partial loss the weight applies only to labeled voxels, which are never in the band. We include weighted partial loss at three weights as an extra baseline. We expect it to shift the cores without improving the band.

Why not just densely label a few cases and calibrate any model on them? Calibration on a small dense set is a sensible complement, and it may well correct global miscoverage. It still applies one adjustment per case, so it cannot make the margin wide in one direction and tight in another. We test it by giving the baseline twenty dense calibration cases. We then compare per-ray coverage error, meaning how far the observed coverage within each angular sector of the lesion departs from nominal, against our model, which receives no dense labels.

Proposed Experiments

The primary metric is the curve of missed lesion fraction against included healthy volume, reported per task. Secondary metrics are three. The first is per-case coverage: the fraction of cases whose quantile-$q$ outline contains at least the nominal fraction of the lesion, compared against the nominal level across $q$. The second is spatial calibration: whether the predicted interquantile width correlates with the actual boundary error of the dense-trained model, voxel region by voxel region. The third is Dice at the median, to confirm that overlap is not sacrificed.

Three results would settle the proposal. It fails if the threshold-swept partial-loss baseline matches our cost curve. It also fails if coverage is badly off nominal, meaning the distribution is not calibrated and the cost knob is cosmetic. The mechanism explanation is undermined if the voxel-wise ablation trained on brackets performs as well as the censored model, because that would mean the gain comes from the extra background stroke rather than from interval-censored learning. Finally, the live annotation study must show that bracketing costs a small fraction of tracing time. Otherwise the annotation-efficiency premise does not hold.