arXiv:2610.19178cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19178

Diagnosing Low-Confidence Patient Profiles via Localized Harmful Covariate Shift Detection

Olivier Lefebvre, Hakima Laribi, Dan Poenaru, Martin Vallières

ABSTRACT

Before deploying clinical prediction models, their reliability must be assessed to ensure safe use. Errors may arise from distribution shifts between training and deployment or from heterogeneous performance where the model systematically underperforms for certain patient subgroups. Yet most post-hoc diagnostic methods evaluate reliability only at the population level, checking whether the deployment data resemble the training data and whether the model performs well on average, without accounting for heterogeneity that may cause some patients to be disproportionately affected. We propose a unified diagnostic pipeline that combines both perspectives. MED3pa first discovers interpretable low-confidence patient profiles, and Detectron is then applied within each profile to test whether its degradation is associated with a detectable harmful covariate shift. Across three clinical prediction tasks and three injected subgroup shifts in MIMIC-IV, we find that shift detectability itself is informative. An injected age shift, undetectable at the population level, was nonetheless localized to specific degraded profiles, whereas sex- and race-related shifts were detected broadly and therefore offered little guidance for identifying the most affected patients.

1 INTRODUCTION

Machine learning (ML) models developed for clinical decision support are typically validated using aggregate performance metrics such as the area under the receiver operating characteristic curve (AUC), sensitivity, and specificity, computed over an entire evaluation cohort. These global metrics can mask substantial heterogeneity in model reliability across individual patients and across subgroups of patients (Oakden-Rayner et al., 2020; Suresh et al., 2018). MED3pa (Lefebvre et al., 2026) addresses this by estimating, for a fixed and already-trained classifier (BaseModel), a confidence score for each individual patient and for profiles of patients, which are groups of patients defined by shared characteristics and with similar confidence levels. This identifies at-risk-of-error profiles with an interpretable tree structure, where the BaseModel exhibits reduced reliability and its predictions should be interpreted with caution. This approach, however, does not indicate why a given profile is affected. Potential causes include irreducible aleatoric variability, epistemic uncertainty due to underrepresentation during training, or a distribution shift between the training and deployment populations (Kendall & Gal, 2017; Lahoti et al., 2023).

Another line of work targets the detection of distributional mismatch between the BaseModel's training and deployment contexts, helping ensure the model operates only within a validated deployment distribution (Silva et al., 2025; Quiñonero-Candela et al., 2008). The Detectron (Ginsberg et al., 2023) focuses on detecting harmful covariate shifts (HCS), defined as any change in the covariate distribution between the training and deployment contexts that may weaken the generalization of a predictive model. Not every change in the input distribution degrades performance, as models may generalize beyond the exact support of their training distribution. The Detectron therefore ties HCS detection directly to the BaseModel's behavior, detecting only those shifts in the covariate distribution that affect its generalizability. Furthermore, despite that it is sample-efficient — requiring as few as ten test examples — the Detectron is designed and validated as a whole-population test and cannot determine whether a detected shift is confined only to a specific subgroup of patients.

These two methods are complementary as MED3pa identifies where a model underperforms and groups patients with similar predictive confidence using interpretable rules, while the Detectron can test if these localized failures are associated with a harmful distributional shift. A closely related work is SHIFT (Singh et al., 2025), which detects heterogeneous performance drift between training and deployment contexts and infers subgroup structure from the discovered shift patterns, which can lead to discrepancies between the subgroups flagged as shifted and the interpretable rule-defined subgroups (Lakkaraju et al., 2016; Singh et al., 2025). In contrast, our framework characterizes heterogeneous model reliability across patients, and performs harmful covariate shift detection within the actual rule-defined subgroups, thereby ensuring that the diagnostic test is applied precisely within interpretable regions of the population.

In this work, we therefore propose to use MED3pa's interpretable reliability profiles as localized regions in which Detectron can test for harmful covariate shift. This reveals shifts that are undetectable at the population level while distinguishing localized from population-wide degradation. We evaluate this combined framework in a controlled setting where the ground-truth shift is known by design, across three clinical prediction tasks and three injected subgroup shifts.