Manuscript Offprint

arXiv:2611.08962

Region-aware error triage for medical image segmentation with groupwise conformal risk control

Nishi Kanta Paul, Md Shihabul Islam Shovo, Hoileong Lee

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

Abstract

Segmentation masks are increasingly reviewed rather than redrawn, which requires knowing where a mask is likely wrong. Learned error maps rank pixels by risk, but the number of pixels to warn is chosen ad hoc, and calibrating one warning threshold over all error pixels may leave errors far from the predicted contour under-flagged. We propose RACE-Triage, a post-hoc error triage framework that leaves the segmentation mask unchanged. A risk network is trained on out-of-fold predictions from backbone-independent inputs. The predicted contour partitions each image into a boundary band and a non-boundary region, and conformal risk control is applied separately in each region to bound the expected fraction of missed errors among cases with errors there. On ISIC 2018 dermoscopy and BUSI breast ultrasound (where patient identifiers are unavailable, so independence across images is assumed), pooled control met its overall target but missed on average 31.8% and 36.4% of non-boundary errors. Regional control reduced these fractions to 19.3% and 20.9% and raised the recall of size-filtered false-negative components from 0.722 to 0.818 and from 0.611 to 0.763. The mean warned area grew by 1.6 and 4.9 percentage points, and its 95th percentile reached 23.5% and 38.5%. The effect held across three seeds and a second backbone, and area-matched heuristics did not reproduce it. On the external PH 2^{2} set, frozen thresholds exceeded both targets, whereas recalibration with 100 local images brought the mean over repeated splits below them. Regional calibration improves non-boundary error coverage at a measured increase in warned area.

Keywords: Medical image segmentation, Error detection, Conformal risk control, Uncertainty quantification, Quality control, Dermoscopy, Breast ultrasound

1. Introduction

Deep segmentation networks are now routine components of medical image analysis pipelines, from convolutional encoder-decoders [1, 2] to transformer-based and foundation models [3, 4]. In dermoscopy and breast ultrasound, recent architectures place particular emphasis on lesion boundaries and low-contrast margins [5, 6, 7], and boundary-oriented training objectives target contour accuracy directly [8, 9]. Even accurate models, however, produce masks that contain errors, and in practice a clinician or annotator still has to decide whether a mask can be used as it is. Inspecting every pixel of every image defeats the purpose of automation. A more useful system would indicate where the mask is likely to be wrong, so that review effort is spent where errors are concentrated. We refer to this task as post-segmentation error triage.

Uncertainty estimation is the usual starting point. Predictive entropy, Monte Carlo dropout, deep ensembles and test-time augmentation provide pixel-wise uncertainty maps [10, 11, 12, 13], and uncertainty-aware training has been proposed to align confidence with correctness [14]. Uncertainty and error are nevertheless different targets. Uncertainty maps of segmentation networks concentrate along predicted contours [15, 16], while confidently mislabelled regions, such as a missed lesion lobe or a spurious detection, can receive low uncertainty. Learned error and quality predictors address this gap more directly [17, 18, 19, 20]. A score map alone, however, does not specify how many pixels to warn. Thresholds are typically tuned by hand, and their consequences for the fraction of errors that a reviewer will miss are rarely quantified.

Conformal risk control (CRC) offers a principled way to set such thresholds [21, 22]. Given a nested family of warning sets and a bounded loss, such as the fraction of erroneous pixels that are not warned, CRC selects the smallest family member whose expected loss is guaranteed not to exceed a target, using only exchangeable calibration data. Related ideas have recently been applied to segmentation [23, 24, 25]. A single pooled target, however, averages per-image missed-error fractions whose denominators contain all errors of an image. Because most segmentation errors lie in thin bands along the predicted contour, contour errors dominate these denominators, and a pooled target can be met largely by covering those bands, while errors far from the contour remain under-flagged. These distant errors include whole missed regions and confident false positives. They are the errors that a reviewer who checks the contour will not find, and they often matter more than small boundary disagreements. The general phenomenon, that marginal guarantees can

∗^{*}Corresponding author.

Email addresses: nishikantapaul108@gmail.com (Nishi Kanta Paul), shihabul900@gmail.com (Md Shihabul Islam Shovo), hoileong@unimap.edu.my (Hoileong Lee) hide poor coverage of minority subgroups, is well documented in the conformal literature [26, 27, 28]. Group-wise risk control has recently been applied to anatomical structures in multi-organ segmentation [29]. To our knowledge, however, it has not been examined for spatial groups of segmentation errors defined by the predicted contour.

In this work we study whether allocating warnings separately near and away from the predicted contour provides useful protection against distant segmentation failures at an acceptable review cost. We propose RACE-Triage, a post-hoc framework that leaves the segmentation mask unchanged. A risk network is trained on out-of-fold predictions using only inputs whose meaning does not depend on the segmenter, namely the image, foreground probability, predicted mask and contour distance. As a result, it can be deployed with a final segmenter that it has never seen. The predicted contour partitions each image into a boundary band and a non-boundary region, and CRC is applied separately in each region to control the expected missed-error fraction among cases that contain errors there. We also examine an error-load-adaptive variant that scales the warning budget of each image by its predicted number of errors. The approach is evaluated on dermoscopy (ISIC 2018) and breast ultrasound (BUSI), with an external dermoscopy set (PH²) processed both with frozen thresholds and after local recalibration. Pooled and regional policies are compared on the same frozen risk map, and the evaluation reports missed-error risk together with the warned area, fragmentation and detection of size-filtered false-positive and false-negative components.

RACE-Triage differs from uncertainty estimation, including boundary-aware uncertainty training [14], in what it produces. Those methods produce or improve a score map; RACE-Triage takes a score map as given and decides how much of each region to warn so that a stated group-wise missed-error property holds. It also differs from conformal methods for segmentation [23, 24, 25], which calibrate pixel-wise prediction sets or case-level quality estimates, because it leaves the mask unchanged and controls the errors that a reviewer would miss in regions defined by the prediction. The calibration rule itself is standard conformal risk control.

The main contributions of this work are summarized as follows:

  • We formulate segmentation error triage as groupwise control of the expected missed-error fraction over a partition defined by the predicted contour, and we show that restricting calibration to error-positive cases preserves the conformal guarantee. The calibration rule itself is standard; the resulting nested warning families admit both fixed thresholds and error-load-adaptive budgets.

  • We describe an out-of-fold protocol for learning pixel error maps from backbone-independent inputs. This avoids feature-space mismatch between fold models and the deployed segmenter while keeping the error target honest.

  • We report a controlled study on two modalities and an external dataset. It shows that pooled control can meet

its overall target while missing about one third of non-boundary errors, and it quantifies the review area, fragmentation and component-level detection associated with regional control. Comparisons with uncalibrated allocation rules, per-image area-matched warnings, boundary-aware uncertainty training, three training seeds, a second backbone and target-site recalibration delimit what the calibration step contributes and when the guarantee applies.

The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 presents the error-map learning protocol, the spatial groups and the calibration procedure. Section 4 describes datasets, models and evaluation, Section 5 reports the results, Section 6 discusses implications and limitations, and Section 7 concludes the paper.

References (66)