Abstract
Deep learning models in radiology often exhibit algorithmic bias across demographic groups due to feature entanglement. This study proposes a supervised contrastive learning (SCL) framework to mitigate such biases in chest X-ray (CXR) diagnosis. Evaluated on the MIDRC and NIH-CXR datasets, the proposed method significantly reduced the marginal AUC difference ($\Delta$mAUC) across sex, race, and age subgroups compared to baseline models (p < 0.0001), while maintaining high diagnostic performance.
Introduction
Automated diagnosis using deep learning has reached expert-level performance in chest X-ray interpretation. However, these models frequently suffer from "feature entanglement," where demographic attributes like age, sex, or race correlate with disease labels in training data. Consequently, models may rely on these sensitive attributes as shortcuts, leading to unfair diagnostic performance across different populations. This study addresses the need for concrete methods to enhance model fairness in the radiology domain.
Methods
The proposed framework utilizes a two-stage approach centered on Supervised Contrastive Learning (SCL). Unlike standard supervised learning that maps images directly to labels, SCL learns robust image embeddings by comparing pairs of images.
The core innovation lies in the selection of image pairs during pre-training:
- Positive Samples: Images with the same clinical label but from different demographic subgroups. This encourages the model to extract pathological features that are invariant to demographic differences.
- Negative Samples: Images with different clinical labels but from the same demographic subgroup. This teaches the model that demographic similarity is irrelevant for clinical diagnosis.
The model backbone (DenseNet-121) is first pre-trained using this contrastive objective and then fine-tuned for specific diagnostic tasks.
Datasets
The method was validated on two large-scale datasets:
- MIDRC (Medical Imaging and Data Resource Center): 77,887 CXR images from 27,796 patients for COVID-19 diagnosis, including sex, race, and age metadata.
- NIH-CXR: 112,120 images from 30,805 patients covering 14 thoracic abnormalities, evaluated for sex and age bias.
Results
Fairness was quantified using the marginal AUC difference ($\Delta$mAUC), representing the gap between the highest and lowest performing subgroups. A lower $\Delta$mAUC indicates higher fairness.
On the MIDRC dataset, the proposed method achieved a significant reduction in bias compared to the DenseNet-121 baseline:
- Sex Bias: $\Delta$mAUC decreased from 0.0116 to 0.0037.
- Race Bias: $\Delta$mAUC decreased from 0.2103 to 0.1819.
- Age Bias: $\Delta$mAUC decreased from 0.0999 to 0.0680.
Statistical analysis via paired T-tests confirmed these improvements were significant (p < 0.0001) across all subgroups compared to baseline models, including adversarial training (ADV) and standard SCL. Importantly, these fairness gains were achieved without compromising overall diagnostic accuracy.
Conclusion
Supervised contrastive learning effectively mitigates demographic bias in CXR diagnosis by decoupling clinical features from sensitive attributes. This approach provides a viable path toward more equitable and reliable AI-driven diagnostic tools in healthcare. Future work will explore probability calibration and the application of this method to other imaging modalities like CT and MRI.
Summary updated