arXiv:2610.37561cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37561

When uncertainty quantification fails: structural vulnerabilities and corrections for selective prediction under clinical class imbalance

Walter Endrizzi, Flavio Ragni, Raffaele Marchesi, Stefano Bovo, Monica Moroni, Giuseppe Jurman, Venet Osmani

Abstract

Background. Selective prediction systems improve the safety of clinical artificial intelligence by deferring ambiguous cases to human experts while automating high-confidence decisions. However, this safety mechanism relies entirely on the premise that uncertainty scores accurately reflect clinical ambiguity. In prognostic tasks characterized by severe class imbalance, where the clinical outcome of interest is a minority, this assumption breaks down. Standard uncertainty measures cease to capture clinically aligned ambiguity; instead, they become a proxy for class membership, systematically penalizing minority patients regardless of their individual predictive clarity.

Methods. We characterize three structural failure modes driving this breakdown: the mismatch between standard entropy's mathematical peak and the clinical decision threshold; the asymmetric spatial penalty in margin-based uncertainty; and structural uncertainty divergence of minority predictions driven by data scarcity. We propose three counter-mechanisms: an empirically validated threshold-aware ambiguity score that realigns maximum uncertainty with the clinical threshold, a class-conditioned rejection (CCR) mechanism ranking patients within their predicted trajectory rather than globally, and a class-stratified evaluation metric that prevents global risk scores from concealing automated minority exclusion.

Results. Across 56 synthetic conditions and three neurodegenerative cohorts spanning severe class imbalance to near-balanced conditions (multiple sclerosis, Parkinson's Disease, Alzheimer's Disease), our framework consistently maintained bounded, balanced risk across trajectories. In contrast, global metrics either collapsed minority Sensitivity or protected the minority at the expense of majority patients. An ablation study confirmed that applying CCR with standard entropy fails to protect the minority because it breaks within-class monotonicity when τ≠0.5\tau \neq 0.5. Combining CCR with threshold-aware metrics restores strict monotonicity, correctly identifies ambiguous patients, and safely mitigates minority exclusion.

Conclusions. Under clinical class imbalance, standard uncertainty quantification measures dataset sparsity rather than clinical ambiguity, creating a systemic illusion of safety. This bias is a correctable structural flaw. Clinical pipelines deploying selective prediction under imbalance should adopt threshold-aligned uncertainty measures and class-stratified evaluation. This reduces class-specific risk imbalance, supporting safer selective prediction under the evaluated conditions without silently excluding the most vulnerable patients.

Keywords: uncertainty, selective prediction, sample rejection, clinical AI, class imbalance, neurodegenerative disease, entropy, calibration, generalized risk-coverage curve

1 Introduction

Deployment of machine learning models in high-stakes clinical environments requires algorithmic systems that can reliably estimate their own limitations. In prognostic tasks, such as predicting the trajectories of neurodegenerative diseases [1−3][1-3], biological heterogeneity often makes definitive classification impossible. In these settings, the safety of an automated system depends on selective prediction: the mechanism by which an algorithm defers ambiguous cases to a human expert while automating high-confidence decisions [4][4].

Standard selective prediction relies on uncertainty quantification (UQ) metrics to rank patients for deferral. However, in real-world clinical prognosis, datasets are often highly imbalanced, with the class of highest clinical interest (such as rapid progressors) representing only a small minority. Under these conditions, standard UQ approaches may fail to provide reliable estimates of true predictive uncertainty; instead, they can become proxies for class membership. Because minority patients inherently lack dense feature representations, current uncertainty estimates become structurally biased [5, 6]. Therefore, algorithms learn to equate the minority class with high uncertainty, failing to disentangle triage-relevant ambiguity from dataset sparsity [7, 8].

This measurement failure is not a consequence of poor model training, but rather the result of distinct structural vulnerabilities inherent to standard post-hoc UQ metrics as they are commonly deployed in applied heuristic pipelines. The first vulnerability, the threshold-entropy mismatch, occurs because the mathematical peak of standard entropy (i.e. Shannon entropy) is rigidly anchored to a perfectly balanced decision threshold (0.50). This structural misalignment with the naturally shifted thresholds ( τ\tau) required for imbalanced data raises concerns about its appropriateness as an uncertainty measure [9]: when predicted probabilities fall near the balanced decision point, standard entropy may produce biased uncertainty estimates that reflect class imbalance rather than clinically aligned ambiguity. Consequently, clinically relevant minority patients are either erroneously automated or unnecessarily deferred due to an uncertainty calibration structure that is poorly aligned with the imbalanced decision space.

Although probability rescaling and threshold moving are well-established techniques for optimizing classification performance under severe imbalance [10][10], their implications for realigning uncertainty estimation remain largely unexplored.

A second vulnerability concerns the spatial penalty introduced by margin-based uncertainty. The Classification Margin partially addresses the entropy-threshold mismatch by measuring uncertainty relative to the operative decision threshold rather than to 0.50. However, it still penalizes predictions strictly by their absolute distance from the threshold. When the decision boundary is tightly compressed against the majority-class space, this can disproportionately flag confident majority-class patients for rejection. Margin-based UQ may appear to protect minority predictions, but it does so by systematically deferring confident majority-class cases, yielding an undesirable and clinically fragile trade-off. Although previous works have identified structural failure modes in margin-based confidence [11][11] and learning with rejection [12][12], these analyses assume relatively balanced decision spaces and do not account for the asymmetric spatial penalty introduced by extreme class imbalance.

Finally, this ranking failure is compounded by structural uncertainty divergence. Because of their underlying sparsity, minority predictions inherently carry systematically higher ensemble disagreement than majority predictions, even when evaluated at the exact same distance from the decision boundary. Recent research in long-tailed medical imaging corroborates this phenomenon, observing that rare classes naturally exhibit wider confidence intervals strictly as a function of their frequency [13][13].

Taken together, these mechanisms show that standard global ranking instruments are intrinsically limited under severe class imbalance, as they can conflate decision-level uncertainty with class prevalence, decision-boundary geometry, and minority-class sparsity.

Standard evaluation frameworks commonly fail to detect these vulnerabilities. Although recent literature has begun to identify the structural limitations of standard selective evaluation paradigms [14][14], the specific masking effect caused by extreme class imbalance remains unaddressed. As systems defer patients, safety is commonly evaluated using multi-threshold metrics such as the Area Under the Risk-Coverage Curve (AURC) [15][15] or its recent refinement, the Area Under the Generalized Risk-Coverage Curve (AUGRC) [16][16]. However, because these metrics aggregate risk across the entire global population, an algorithm can mathematically improve its global score by systematically excluding the harder-to-predict minority class. In this way, standard evaluation can reward automated minority exclusion, masking algorithmic bias under the guise of improved overall safety.

Contributions. Addressing this gap requires moving beyond global ranking and toward class-stratified uncertainty measurement and evaluation. In this paper, we characterize the structural vulnerabilities of standard UQ under clinical class imbalance, propose a framework of well-motivated, empirically validated measurement and evaluation instruments, and demonstrate their efficacy across synthetic and real-world neurodegenerative prognostic tasks. We validate the proposed framework across 56 controlled synthetic conditions and three real-world neurodegenerative patient cohorts comprising multiple sclerosis, Parkinson's Disease, and Alzheimer's Disease. Specifically, we make the following contributions:

• Threshold-aware ambiguity score ( HτH_{\tau}): We demonstrate that standard Shannon entropy fails under class-conditioned rejection (CCR) when τ≠0.5\tau \neq 0.5 by breaking within-class monotonicity. To restore correct ordinal ranking, we introduce HτH_{\tau}, an empirically validated geometric construction. By design, HτH_{\tau} operates as a nonlinear, information-theoretic alternative to the linear decision margin, satisfying three key structural properties: continuity across the probability space, strict monotonicity within each predicted class, and exact reduction to standard Shannon entropy at parity ( τ=0.5\tau = 0.5).

  • CCR (Class-Conditioned Rejection): A class-conditioned rejection mechanism that isolates intra-class ambiguity, establishing a structural, mechanical mechanism to prevent minority exclusion.

  • ccAUGRC (Class-Conditioned Area Under the Generalized Risk-Coverage Curve): An evaluation decomposition that prevents risk-masking by quantifying the generalized risk-coverage trade-off independently for each clinical trajectory.

References (38)