AI Alignment in Medical Imaging: Unveiling Hidden Biases Through Counterfactual Analysis

Haroui Ma, Francesco Quinzan, Theresa Willem, Stefan Bauer
4/28/2025
cs.LGeess.IVstat.ML

No official code found. Best implementation: mHaoruikk/AI-Alignment-Medical-Imaging (0 stars, MIT, last commit 2025-04-28).

Abstract

Machine learning (ML) systems for medical imaging have demonstrated remarkable diagnostic capabilities, but their susceptibility to biases poses significant risks, since biases may negatively impact generalization performance. In this paper, we introduce a novel statistical framework to evaluate the dependency of medical imaging ML models on sensitive attributes, such as demographics. Our method leverages the concept of counterfactual invariance, measuring the extent to which a model's predictions remain unchanged under hypothetical changes to sensitive attributes. We present a practical algorithm that combines conditional latent diffusion models with statistical hypothesis testing to identify and quantify such biases without requiring direct access to counterfactual data. Through experiments on synthetic datasets and large-scale real-world medical imaging datasets, including \textsc{cheXpert} and MIMIC-CXR, we demonstrate that our approach aligns closely with counterfactual fairness principles and outperforms standard baselines. This work provides a robust tool to ensure that ML diagnostic systems generalize well, e.g., across demographic groups, offering a critical step towards AI safety in healthcare. Code: https://github.com/Neferpitou3871/AI-Alignment-Medical-Imaging.

View on arXivView PDF

Code Implementations(1)

MIT
01Python, Jupyter NotebookApr 28, 20251 years agoMIT

Similar Papers

Cite this paper

@article{ma2025alignment,
  title  = {AI Alignment in Medical Imaging: Unveiling Hidden Biases Through Counterfactual Analysis},
  author = {Haroui Ma and Francesco Quinzan and Theresa Willem and Stefan Bauer},
  year   = {2025},
  eprint = {2504.19621},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19621v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.19621.svg)](https://codeofpaper.com/paper/2504.19621)

Discussion