arXiv:2610.32362cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32362

Detection and Validation of Hidden Subgroup Disparities in Clinical AI

Alceu Bissoto, Trung-Dung Hoang, Tim Flühmann, Nina Weng, Susu Sun, Christian F. Baumgartner, Lisa M. Koch

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

Abstract

Machine learning (ML) models used in clinical workflows often perform systematically differently across patient groups, raising concerns about equity and patient safety. Traditional subgroup analyses can expose such disparities only when rich metadata (e.g., patient demographics) is available and captures the sources of performance variation, conditions rarely met in practice. Algorithmic subgroup discovery methods offer a solution by identifying coherent groups from learned feature representations, but because true underlying stratifications are unknown, these methods are hard to evaluate. As a result, subgroup discovery has not been systematically applied or assessed for performance monitoring. Our main objective is to evaluate algorithmic subgroup discovery for performance monitoring, assessing the discovered subgroups' performance gaps and semantic coherence. Investigating cardiomegaly classification in a dataset of 223,228 chest X-rays, we showed that the discovered subgroups exhibited larger performance gaps (accuracies of 0.61–0.90) than traditional metadata-based analysis (0.80–0.94) and were frequently interpretable using patient, acquisition, and model metadata. As a proof of concept, we also showed that annotations from learned subgroups can be used to mitigate the biases they expose. We conclude that subgroup discovery is a practical and effective tool to enhance the performance validation and monitoring of ML systems in healthcare.

Introduction

Machine learning (ML) algorithms are implemented and commercialised as medical artificial intelligence (AI) devices at an unprecedented pace. In the US, for example, the FDA had approved 1,247 AI-assisted medical devices by May 2025, with 523 of these approvals occurring within the last 24 months [1][1]. This growth reflects the vast potential of AI for patient care. However, research shows that even the most capable AI models can reinforce societal biases and fail unpredictably in clinical settings [2][2]. Consequently, regulatory agencies worldwide are tightening policies governing the development and deployment of medical AI to enhance its fairness and robustness.

A critical concern is that ML models may perform systematically differently across patient subgroups [3, 4, 5, 6]. This has hampered past attempts at safely deploying medical AI, particularly in underserved populations [3, 4]. Model performance can depend on many factors [7], including patient attributes (e.g., sex, age, ethnicity) and image characteristics (e.g., image quality, artifacts, device manufacturer). Chest X-rays model's performances, for example, were shown to depend on biological sex [8, 9], support devices such as tracheotomy tubes and chest drains [10, 11], artifacts (e.g., laterality markers, highlight arrows) [12], and projection views [12] (anterior-posterior (AP) and posterior-anterior (PA)). Not understanding when and why an ML model systematically fails poses an avoidable danger to patients and delays the development of more robust models. Furthermore, systematic hidden model failures may violate regulators' demands for safety and effectiveness for all intended use populations of a medical device.

These challenges are central to ensuring the safe and equitable application of AI in healthcare. Recent guidelines for trustworthy medical AI development, reporting, and deployment increasingly stress the importance of detailed subgroup analyses (e.g., TRIPOD+AI [13]) and systematic bias assessments (e.g., FUTURE-AI [14], PROBAST+AI [15]). In response, current frameworks call on AI developers and dataset curators to explicitly identify and annotate potential sources of bias throughout the model development pipeline. Together with clinical metadata, such as patient attributes and data-specific characteristics, the annotation can then be used to define patient subgroups to assess group fairness and evaluate model robustness. In general, the richer the available annotations, the more precisely relevant subgroups can be defined, increasing the chance of uncovering meaningful performance gaps.

However, acquiring such rich metadata is inherently challenging: dataset collection is both time- and personnel-intensive, and privacy concerns can limit the scope of metadata collection. In practice, this can lead to severe reporting gaps, as exposed by a recent scoping review of FDA-approved medical AI devices [16][16]. According to their analysis, less than 4% of approved devices provide information on race or ethnicity, less than 1% report on socioeconomic factors, and less than 19% report on age subgroups [16][16].

Even under ideal conditions, where multiple metadata attributes are available for a large, heterogeneous population, metadata may only partially align with the major hidden factors of variation that affect ML model performance. As a result, traditional metadata-defined subgroups may fail to reveal relevant performance gaps. Metadata annotations often reflect concepts that are meaningful for human interpretation and categorization, yet may be irrelevant to how machine learning models stratify data to make predictions. For example, stratifying a chest X-ray dataset by patient sex may be of limited value for auditing performance, since observed differences are often driven by correlated factors such as the presence of support devices (e.g., tubes and lines) rather than sex itself [9, 11]. In contrast, stratifying by projection (AP vs PA) is crucial. Standard radiology interpretation emphasizes that the PA view is preferred for assessing cardiomegaly because the AP view magnifies the cardiac silhouette [17]. Accordingly, deep learning models perform better on PA studies than on AP studies for cardiomegaly-related labels (see Table 2). Unrecognized subsets of data are referred to as hidden stratifications. As we will demonstrate in this study, even in one of the most comprehensively annotated large-scale datasets available, CheXpertPlus [18], which contains over 80 annotated factors including patient socio-demographics, comorbidities, and image characteristics for more than 200,000 samples, hidden stratifications remain prevalent. While manual inspection of model errors can sometimes reveal these issues, it is generally infeasible at scale and particularly challenging in medical imaging, where relevant differences across samples are often subtle.

Algorithmic subgroup discovery [19, 20] appears as a potential solution for this problem, as it can learn data stratifications that are relevant to a specific ML prediction model and dataset. The subgroup divisions are found by training unsupervised clustering methods (e.g., mixture models, k-means) on learned feature representations of the data. Aside from the predictions from the investigated model, subgroup discovery methods also leverage complementary knowledge from models trained with different objectives (e.g., multi-modal, generative) or with more data. These models have been used so far only on toy datasets with predefined biases for easier evaluation. We believe they might also be useful for performance evaluation and model surveillance, but they have yet to be proven effective in real-world medical contexts. The main challenge of using subgroup discovery techniques is how to validate the discovered subgroups, as hidden stratifications by definition lack ground-truth labels for evaluation.

In this article, we thoroughly investigate algorithmic subgroup discovery [19, 21] for detailed model performance evaluation (Fig. 1). For subgroup discovery techniques to be effective, they should satisfy two key criteria: (1) they must reveal substantial performance disparities across groups, and (2) the identified subgroups should exhibit semantic coherence. That is, subgroup members should exhibit interpretable characteristics, whether related to patient (demographics, comorbidities), acquisition, or model factors. We define our research questions as:

• Do algorithmic subgroup discovery systematically expose performance gaps across different metrics?

  • Are the discovered subgroups semantically coherent, and can we associate them with existing metadata?

• Can the discovered subgroups be leveraged to mitigate the performance disparities they expose?

We employ a richly annotated real-world radiology dataset of chest x-ray images for a cardiomegaly-versus-all task to support a comprehensive evaluation. Using this dataset, we first contrast performance gaps identified through metadata-defined subgroups with those revealed by subgroup discovery. We then

A. Traditional subgroup analysis

Figure

B. Subgroup discovery

Figure

C. Proposed: subgroup performance analysis in hidden stratifications

Figure

D. Performance Gaps

Figure

E. Subgroup profile

Figure 1 From traditional subgroup analysis to algorithmic subgroup discovery for performance monitoring. (a) Traditional subgroup analysis detects disparate patient outcomes, but it is limited to annotated metadata. (b) Subgroup discovery reveals hidden stratifications but lacks performance validation. (c) We bridge this gap by applying subgroup discovery for performance analysis in both (d) controlled synthetic settings and (e) real-world scenarios with unknown subgroups.

characterize the discovered subgroups with our proposed method for creating metadata profiles, i.e. sets of metadata attributes that explain the similarities among samples within the same subgroup.

We argue that subgroup discovery can be an effective and easily implemented tool to enhance the performance validation and monitoring of ML systems in medicine. In this article, we expand on our prior work [21][21] , where we demonstrated preliminary evidence that algorithmic subgroup discovery can expose systematic performance gaps of medical ML models. Specifically, we propose a way to characterise found subgroups using existing metadata, which we call subgroup profiles. Moreover, we report additional metrics beyond accuracy and perform a statistical analysis of our results. Overall, our main contributions are:

  • We provide the first comprehensive evidence that subgroup discovery can systematically expose performance gaps in medical imaging, identifying meaningful subgroups in both synthetic and real-world settings.

  • We demonstrate that discovered subgroups exhibit significantly larger performance disparities than conventional demographic metadata, revealing critical gaps missed by traditional fairness auditing.

  • We show that discovered subgroups are cohesive and that many exhibit statistically significant associations with annotated metadata.

  • We demonstrate that discovered subgroups can be effective for mitigating biases.

References (24)