Manuscript Offprint

arXiv:2610.37819

Responsible Quantum Machine Learning for Medical Imaging: A Fairness Audit Across Sensitive Subgroups

Giovanni dos Santos Franco, Felipe Mahlow, Ellison Fernando Cardoso, José Adenaldo Santos Bittencourt, Felipe Fanchini

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

Abstract

Quantum machine learning (QML) has been increasingly explored for medical classification tasks, yet its behaviour under subgroup-aware fairness criteria remains insufficiently studied. This work presents an empirical fairness audit of classical and quantum classifiers for medical image classification, starting from the premise that QML should not be assumed to be inherently fair. Two healthcare scenarios are evaluated: dermatological lesion classification on DDI, using Fitzpatrick skin type as the sensitive attribute, and chest X-ray classification on CheXpert-derived data, using age group as the sensitive attribute. Using ResNet-18 embeddings as a common feature space, we train classical models (SVM and MLP) and quantum models (QSVM and QCNN), and evaluate them under a baseline setting and three fairness-mitigation settings: differentiable Equalized Odds (EO) regularisation, Gradient Reversal Learning (GRL), and their combination. State-of-the-art foundation models (PanDerm for DDI and EVA-X for CheXpert) are included as external references. The results suggest that quantum classifiers may achieve competitive aggregate performance while still exhibiting subgroup disparities. Because a reduction in the subgroup AUC gap can arise either from improvement of the worst-performing group or from degradation of the best-performing one, each mitigation setting is additionally assessed against a pre-specified non-inferiority margin relative to its own baseline. Under this criterion, several configurations that achieve the smallest absolute disparity—most notably QCNN with GRL on DDI—fail to qualify as clinically acceptable, because the disparity reduction is accompanied by a loss of global discrimination. Among the models trained in this study, QSVM with GRL+EO performed best on DDI and approached the PanDerm reference in the performance-fairness trade-off space, whereas on CheXpert QCNN with GRL achieved the highest aggregate performance among the trained models but increased subgroup disparity relative to its own baseline, and the EVA-X reference remained stronger overall. Overall, the findings indicate that fairness effects are model- and dataset-dependent, and that QML workflows require empirical subgroup-aware evaluation rather than assumptions of inherent fairness. All quantum models are evaluated in classical simulation; the study is therefore an audit of hybrid classical-quantum pipelines and does not claim a quantum advantage in predictive performance, fairness, or computational efficiency.

1 Introduction

Artificial intelligence (AI) has become increasingly relevant in medical image analysis, supporting tasks such as dermatological lesion classification, radiological screening, and clinical decision support [1, 2, 3]. Despite strong aggregate performance, medical AI systems may exhibit unequal behaviour across demographic and clinically relevant subgroups, including differences associated with age, sex, ethnicity, and skin tone [4, 5], mirroring broader evidence that AI systems can reproduce and amplify gender and ethnic stereotypes [6]. In dermatology, the Diverse Dermatology Images (DDI) dataset has highlighted limitations of AI models across Fitzpatrick skin type groups, while in chest radiography, fairness gaps and underdiagnosis bias have been reported in large-scale datasets such as CheXpert, MIMIC-CXR, and ChestX-ray14 [7, 8, 3]. These findings indicate that medical AI models should not be evaluated only through aggregate performance metrics; instead, it is necessary to analyse how performance varies across clinically and demographically relevant subgroups [9, 10, 11].

At the same time, quantum machine learning (QML) has emerged as a promising research direction at the intersection of quantum computing and machine learning [12]. Quantum support vector machines (QSVMs), variational quantum classifiers, and quantum convolutional neural networks (QCNNs) have been investigated as possible classifiers for high-dimensional data representations and hybrid classical-quantum workflows [13, 14, 15]. However, most practical QML studies still focus primarily on predictive performance, compactness, or near-term feasibility. If QML models are to be considered for healthcare-oriented applications, it may be important to evaluate them not only in terms of predictive performance, but also under responsible AI criteria, including fairness across sensitive groups [10, 11].

An important caveat applies to how fairness gains should be read in a medical context. A subgroup-disparity metric such as the group-wise AUC gap can decrease for two mechanically distinct reasons: because the worst-performing group improves, or because the best-performing group deteriorates [16, 17]. The two cases are indistinguishable at the level of the disparity metric alone, but they are not clinically equivalent: only the first represents a benefit to patients, whereas the second achieves statistical equality by degrading care for a subgroup that was previously well served [16, 18]. In the limiting case, a model that performs uniformly poorly across all groups would be assigned a disparity of zero [17]. For this reason, the present work does not treat a reduction in the AUC gap as intrinsically desirable. Disparity reductions are instead interpreted jointly with the change in predictive performance relative to the corresponding unmitigated baseline, under an explicit non-inferiority criterion defined in Section 2.6, in line with recommendations for fairness evaluation in medical imaging [19, 20].

This work presents an empirical fairness audit of classical and quantum machine learning models for medical image classification. The objective is to investigate whether QML classifiers exhibit measurable subgroup disparities and how these disparities compare with classical baselines under related experimental conditions. Two healthcare scenarios are considered: dermatological image classification using DDI, with Fitzpatrick skin type as the sensitive attribute, and chest X-ray classification using CheXpert-derived data, with age group as the sensitive attribute [7, 2]. In both cases, the images are first processed using the standard ResNet-18 preprocessing pipeline and then encoded with a ResNet-18 model pretrained on ImageNet. The resulting embeddings are used as input representations for the downstream classifiers. Classical baselines, including support vector machines and multilayer perceptrons, are compared with quantum models, including QSVMs and QCNNs. In addition, PanDerm and EVA-X are included in the results as state-of-the-art reference baselines for the dermatology and chest X-ray settings, respectively [21, 22].

In addition to auditing baseline behaviour, this study evaluates whether standard fairness mitigation strategies can be adapted to QML workflows. Equalized Odds (EO) is implemented as a differentiable training regularisation term rather than as a threshold-based adjustment. During training, the predicted probabilities are separated by true class and sensitive group, and the model is penalised when the group-wise mean predicted probabilities differ within the same class. This encourages the model to reduce group-dependent differences that are related to true positive and false positive behaviour while preserving end-to-end optimisation. Gradient Reversal Learning (GRL), in turn, is used as an adversarial representation-learning mechanism: during training, a sensitive-attribute predictor is encouraged to identify group information, while the feature representation is simultaneously encouraged to make this prediction difficult [23]. In this work, GRL is investigated as a fairness-aware mechanism for QML-based classifiers, and it is also combined with the differentiable EO regularisation term. To the best of our knowledge, this is one of the first empirical studies to apply GRL for fairness mitigation in QML-based medical image classification, and also one of the first to evaluate a combined GRL and differentiable EO strategy in QML workflows.

The study is guided by the following research questions:

  1. Do quantum machine learning classifiers exhibit demographic performance disparities in medical image classification tasks?

  2. How do these disparities compare with those observed in classical baselines trained on related feature representations?

  3. How do fairness mitigation strategies affect QML models in terms of predictive performance and subgroup disparity?

  4. When a mitigation strategy reduces subgroup disparity, does it do so while preserving global predictive performance within a pre-specified non-inferiority margin relative to the unmitigated baseline?

To address these questions, the models are evaluated using predictive metrics, including AUC, balanced accuracy, and F1-score, as well as demographic parity gap and AUC gap [9, 10, 11]. The evaluation compares baseline models, EO-mitigated models, GRL-based models, and the combined GRL+EO mitigation strategy, allowing the analysis of both predictive performance and subgroup disparity under different fairness-aware configurations.

The main contributions of this work are summarised as follows:

  1. Empirical fairness audit of QML in medical imaging. This work provides, to the best of our knowledge, one of the first empirical audits of demographic bias in QML models for medical image classification, complementing previous conceptual discussions on quantum fair machine learning [24, 25].

  2. Empirical use of GRL for fairness mitigation in QML. The study investigates Gradient Reversal Learning as a fairness-aware adversarial mechanism for QML workflows, aiming to reduce the information about sensitive attributes encoded in learned representations [23].

  3. Empirical evaluation of GRL combined with differentiable Equalized Odds in QML. The work evaluates a combined GRL+EO strategy, integrating adversarial representation learning with a differentiable Equalized Odds regularisation term for QML-based classifiers [9, 23].

  4. Comparison between classical and quantum classifiers. The study compares classical and quantum classifiers under a common fairness evaluation framework, allowing the analysis of whether QML models reproduce, amplify, or reduce subgroup disparities observed in classical pipelines [12, 13, 14].

  5. A non-inferiority criterion for reading performance–fairness trade-offs. The work introduces an explicit, pre-specified acceptability criterion under which a mitigation strategy is considered favourable only if it reduces subgroup disparity and does not degrade global predictive performance beyond a defined margin relative to its own unmitigated baseline. Applying this criterion to the present results separates configurations whose apparent fairness gain is accompanied by a loss of discriminative capacity from those in which it is not [16, 26].

Overall, this paper argues that QML should not be treated as inherently fairness-neutral or inherently fairness-improving. Quantum models may offer different computational structures and representation mechanisms, but they can still be affected by biased data distributions, subgroup imbalance, and sensitive information encoded in feature representations. Therefore, fairness auditing should become a standard part of QML evaluation in healthcare, alongside predictive performance, circuit design, computational cost, and hardware feasibility.

References (56)