Coming soon — Shifaa AI is in private beta.Join the beta
Shifaa AI
AI in healthcare

Bias in medical AI: causes, examples and safeguards

How bias gets into clinical AI — proxy labels, skewed data, biased inputs, race correction and LLMs — with the evidence and a checklist for clinicians.

Shifaa AI Team16 min read

Bias in medical AI means that a system works less well, or recommends something different, for some groups of patients than for others. It is not hypothetical. A risk algorithm used for millions of US patients systematically under-referred Black patients for extra care (Obermeyer et al., Science, 2019). Chest X-ray classifiers have been shown to underdiagnose disease more often in under-served groups (Seyyed-Kalantari et al., Nature Medicine, 2021). And commercial chatbots have repeated debunked race-based medicine when asked clinical questions (Omiye et al., npj Digital Medicine, 2023).

This guide is for clinicians who use, choose or govern AI tools. It explains where bias comes from, walks through the cases that have actually been measured, and ends with the questions to ask before a tool touches your patients. It sits alongside our overview of AI in healthcare and our pieces on AI hallucinations and the strengths and limits of large language models.

Key takeaways

Bias usually enters through the data, the outcome a model is trained to predict, or the setting it is deployed in, and rarely through intent. Leaving race out of the inputs does not prevent it: models can learn race from proxies, and imaging models can predict it from X-rays. Overall accuracy can hide poor performance in subgroups, so ask for results broken down by group and for validation on patients like yours. Biased inputs matter too: pulse oximeters overestimate saturation more often in Black patients. Every output is decision support. The clinician decides, and can override.

What is bias in medical AI?

Bias in medical AI is a systematic difference in a model's accuracy or recommendations between groups of patients, for example by race, ethnicity, sex, age, language or insurance status. It is a property of how the model was built and used. A model can be accurate on average and still be consistently worse for one group.

Two related ideas get mixed up. Algorithmic bias is the model's systematic error. Fairness is the standard you hold it to, and there is more than one. You might want equal sensitivity across groups, equal positive predictive value, or equal access to the resource the model allocates. When underlying rates differ between groups these goals can conflict, so whoever deploys a tool has to choose which one matters for that use, and say so.

The World Health Organization made this a core principle in its 2021 guidance on AI for health. "Ensuring inclusiveness and equity" is one of its six principles, alongside protecting autonomy, promoting well-being and safety, transparency, accountability, and responsive, sustainable AI. The guidance calls bias a threat to inclusiveness and equity (WHO, Ethics and governance of artificial intelligence for health, 2021).

Where does bias in clinical AI come from?

Bias can enter at every stage of a model's life: the data it learns from, the label it is trained to predict, the inputs it receives, and the setting it is used in. Most documented cases trace back to one of these four. None of them needs anyone to have prejudiced intent.

  • Unrepresentative training data. If a group is scarce in the training set, the model learns less about it. Public skin-cancer image datasets record skin type for only about 2% of images, which is one reason dermatology AI performs worse on darker skin.
  • The wrong label, or a proxy label. A model learns to predict whatever outcome it was given. If that outcome is a stand-in, such as cost for need, or a past diagnosis for true disease, the model inherits every inequity baked into the stand-in.
  • Biased inputs. A measurement that is less accurate in some patients, such as a pulse oximetry reading, passes that error into every rule or model that uses it.
  • Encoded assumptions. Some long-standing clinical equations adjusted their output by race. When software automates them, the adjustment becomes invisible to the user.
  • Deployment shift. A model validated in one hospital, country or population can perform differently elsewhere, and nobody notices unless performance is measured locally.
  • The human response. Clinicians can over-trust confident output, a pattern called automation bias. A biased suggestion that is accepted without checking does the same harm as a biased decision.

What is the most famous example of AI bias in healthcare?

The best-known case is a commercial risk algorithm used by US health systems to choose patients for extra care-management support. It predicted future health-care costs, not illness. Because less had historically been spent on Black patients with the same needs, Black patients at a given risk score were considerably sicker than White patients.

Obermeyer and colleagues studied the algorithm in 2019. They described it as typical of an industry-wide approach and as affecting millions of patients. At the same risk score, Black patients had more signs of uncontrolled illness than White patients. Correcting the disparity would have raised the share of Black patients flagged for additional help from 17.7% to 46.5% (Obermeyer et al., Science, 2019).

The lesson is about labels, not race variables. The algorithm did not use race. Cost looked like a reasonable proxy for health need by ordinary accuracy measures, and the bias appeared anyway, because unequal access to care meant unequal spending. The authors reported that reformulating the algorithm so that it no longer used cost as a proxy for need eliminated the racial bias in predicting who needs extra care. For anyone choosing a tool, the question "what exactly does this model predict?" matters as much as "how accurate is it?"

Can imaging AI be biased even when it is accurate overall?

Yes. Headline accuracy averages over everyone in the test set. Studies of chest X-ray classifiers have found that they miss disease more often in under-served groups, and that models trained on data skewed towards one sex perform worse for the other. An overall figure can hide both.

Seyyed-Kalantari and colleagues tested chest X-ray classifiers across three large datasets and one multi-source dataset. The classifiers consistently and selectively underdiagnosed under-served patient populations. In other words, they more often labelled an abnormal film as showing "no finding". The rates were highest in intersectional subgroups, for example Hispanic female patients (Seyyed-Kalantari et al., Nature Medicine, 2021). A later letter in the same journal argued that some of the analyses did not adequately account for confounding. The debate is about how large the effect is, and the case for checking subgroup performance stands either way.

Data balance matters too. Larrazabal and colleagues trained three deep-learning architectures on two public chest X-ray datasets with different proportions of male and female patients. Performance fell consistently for the under-represented sex when a minimum balance was not met, and the authors warned that common metrics can mask poor performance in minority groups (Larrazabal et al., PNAS, 2020).

AI can detect race from medical images

One finding changed how researchers think about the problem. Gichoya and colleagues showed that standard deep-learning models could predict patients' self-reported race from medical images. The area under the curve was 0.91–0.99 on X-ray datasets, 0.87–0.96 for chest CT and 0.81 for mammography. The signal persisted when bone density information was removed and when images were corrupted or cropped (Gichoya et al., The Lancet Digital Health, 2022).

The implication is uncomfortable. Removing a race field from the data does not stop a model from using race-correlated information. The authors called this an enormous risk for model deployment in medical imaging. That is why fairness has to be measured in the outputs, by subgroup, rather than assumed from the inputs.

How do biased measurements feed biased algorithms?

An algorithm is only as fair as its inputs. Pulse oximetry is the clearest example: oximeters overestimate oxygen saturation more often in Black patients, so any triage rule, early-warning score or model that uses SpO2 inherits that error, however carefully the model itself was built.

In a 2020 letter, Sjoding and colleagues compared paired pulse oximetry and arterial blood gas readings. They used 10,789 pairs from 1,333 White and 276 Black patients at the University of Michigan. Among patients with an oximetry reading of 92–96%, occult hypoxaemia (arterial saturation below 88%) was found in 11.7% of Black patients versus 3.6% of White patients. Across their two cohorts, Black patients had nearly three times the frequency of occult hypoxaemia that pulse oximetry did not detect (Sjoding et al., New England Journal of Medicine, 2020). These are unadjusted, retrospective figures. The authors also noted that not every Black patient with a reading of 92–96% had occult hypoxaemia.

For AI the point generalises. If an input is less accurate for some patients, the model's output will be too. When a tool's suggestion depends heavily on a single measurement, ask whether that measurement is known to vary by group. Pulse oximetry is one input in the assessment of breathlessness, and it should not be the only one.

What is race correction, and why is medicine removing it?

Race correction means adjusting a clinical calculation according to a patient's recorded race. Many such adjustments were built into widely used equations and guidelines. Critics argue that they treat race as biology when it is mostly a marker of social and environmental exposure, and that they can steer care away from minority patients.

In 2020 Vyas, Eisenstein and Jones reviewed race-adjusted algorithms across specialties. They argued that many of these adjustments could direct more attention or resources to White patients than to racial and ethnic minorities, and that by embedding race in the basic data and decisions of health care, the algorithms propagate race-based medicine (Vyas, Eisenstein & Jones, New England Journal of Medicine, 2020).

Kidney function is the best-known reversal. In 2021 the CKD-EPI collaboration published new equations for estimated GFR without a race term. Equations combining creatinine and cystatin C were the most accurate and narrowed the differences between Black and non-Black participants (Inker et al., New England Journal of Medicine, 2021). A US task force of the National Kidney Foundation and the American Society of Nephrology recommended adopting the race-free 2021 creatinine equation, with wider use of cystatin C to confirm kidney function (National Kidney Foundation).

Most of this debate has been American, and other health systems record ethnicity differently or not at all. The principle travels, though. Any software that automates a clinical equation also automates its assumptions, so it is worth knowing which version of an equation your laboratory, EHR or decision support tool actually uses.

Are large language models biased in clinical answers?

Yes, in measurable ways. Large language models learn from vast amounts of text, including outdated and wrong medical claims, and they can repeat them fluently. Studies have found commercial chatbots reproducing race-based medicine and stereotyping who gets which disease. The risk is greatest when the question concerns a specific patient group.

Omiye and colleagues asked four commercially available LLMs questions built around race-based medicine and common misconceptions about race, drawn from physician discussion and earlier work on trainees' false beliefs. Every model gave some answers that perpetuated race-based medicine, and the models were not always consistent when asked the same question again (Omiye et al., npj Digital Medicine, 2023).

Zack and colleagues tested GPT-4 on education, diagnostic reasoning, plan generation and patient assessment tasks. They found that it did not appropriately model the demographic diversity of medical conditions and consistently produced clinical vignettes that stereotyped demographic presentations. In the management tasks, it was significantly less likely to recommend advanced imaging, such as CT, MRI or abdominal ultrasound, for Black patients than for White patients (Zack et al., The Lancet Digital Health, 2024).

These studies tested specific model versions, and newer models may behave differently. That is exactly why a vendor's claim about a current model should come with current evidence. Fluency is not accuracy. Our guide to ChatGPT for doctors covers safe everyday use in more detail.

Why does an AI tool that worked elsewhere fail in your clinic?

Because performance is local. Patient mix, disease prevalence, documentation habits, equipment and workflow all differ between sites, and a model can lose accuracy when any of them changes. A tool validated by its developer, or at another hospital, has not been validated on your patients.

The clearest example is a proprietary sepsis prediction model embedded in a major US electronic health record. When Wong and colleagues evaluated it independently in hospitalised patients, they found poor discrimination and calibration. It generated alerts on 18% of hospitalised patients yet missed 67% of the patients who had sepsis. Figures reported by the developer and a partner health system had put its area under the curve at 0.76–0.83 (Wong et al., JAMA Internal Medicine, 2021; Habib, Lin & Grant, JAMA Internal Medicine, 2021).

That study was about overall performance, not about any demographic group. But the mechanism is the same one that produces subgroup bias: a model meets a population it was not tuned for. If a tool can drift that far between sites, it can drift between groups within one site. Local validation and ongoing monitoring are the defence against both.

How can clinicians spot and reduce AI bias?

Clinicians cannot audit a model's code, but they can ask the right questions before adoption, watch for outputs that do not fit the patient, and keep the final decision. Most of the protection comes from three habits: demanding subgroup evidence, insisting on local validation, and treating every output as a suggestion.

Before you adopt a tool

  • What exactly does it predict? If the label is a proxy, such as cost, past referral or a prior diagnosis code, ask how the proxy differs between groups.
  • Who was in the training and test data? Ask for the demographic make-up, where the data came from, and which groups were too small to evaluate.
  • How does it perform by subgroup? Ask for sensitivity, specificity and calibration by sex, age band, ethnicity and any other group relevant to your population. A single overall number is not enough.
  • Has it been validated on patients like yours? External validation in a different country or care setting is not the same as validation in your clinic.
  • Does it rely on inputs known to vary by group? Pulse oximetry and race-adjusted equations are the obvious examples.
  • Who monitors it after go-live, and who can switch it off? Bias that is not measured will not be found.

When you use a tool

  • Notice the mismatch. When a suggestion does not fit the history and examination, trust the patient in front of you and look for the reason.
  • Be wary of demographic shortcuts. If an output seems to hinge on a patient's race, sex or language rather than their findings, question it.
  • Resist automation bias. A systematic review found that erroneous decision-support advice increased the risk of an incorrect decision by 26% (Goddard, Roudsari & Wyatt, JAMIA, 2012). Make checking a habit, not an afterthought.
  • Document your reasoning. Record why you accepted or overrode a suggestion. It protects the patient, supports audit and shows where a tool goes wrong.
  • Report it. Tell whoever governs the tool locally when you see a pattern, so it can be measured rather than argued about.

What developers and dataset curators should do

Clinicians are the last line, not the only line. The STANDING Together consensus, developed through an international Delphi study with patients, dataset curators, data users and institutions, sets out 29 recommendations. One part covers how dataset curators should document the composition and limitations of health datasets. The other covers how data users should identify and mitigate algorithmic bias, including proactively evaluating effects across population groups (STANDING Together, The Lancet Digital Health). Vendors who can show their work against standards like this are easier to trust.

Illustrative example: a risk tool in a group practice

This is illustrative: a composite, not a real clinic, tool or patient. A group practice is offered software that flags patients for a proactive chronic-disease review. The vendor quotes strong overall accuracy. Before signing, the clinical lead asks what the model predicts and learns it was trained on past emergency admissions, an outcome that depends on access to care as well as on illness. The lead asks for performance by age, sex and ethnicity and for any validation outside the vendor's home market; the vendor has neither for the practice's population. The practice runs the tool in parallel for three months without acting on it, then compares who was flagged with who clinicians judged to need review. Only then does it decide whether, and for whom, to use it.

Is AI bias worse than human bias?

Not necessarily, but it behaves differently. Human bias varies from clinician to clinician and from day to day. Algorithmic bias is consistent and applied at scale, so a single flawed model can affect every patient it touches. The upside of that consistency is that it can be measured and corrected in a way individual judgement rarely can.

The risk-algorithm case shows both sides. Its bias was systematic and invisible to the clinicians using it, but once researchers measured it, a change of label reduced it. eGFR shows the same scale effect in reverse: one change to an equation changes the result for every patient it is applied to. The aim is not to choose between human and machine judgement. It is to keep a clinician who understands both in charge of the decision.

How we approach this at Shifaa AI

Shifaa AI is an AI clinical assistant for doctors and clinics, currently in private beta ahead of launch. It drafts structured notes with the AI medical scribe and offers differential diagnosis support that suggests possibilities to consider. It does not diagnose: every output is a draft or a suggestion that the clinician reviews, edits and signs, and the clinician can always override it. Its AI features send consultation data to disclosed sub-processors, OpenAI and Anthropic, so the bias questions above apply to the underlying models too. That is one more reason the clinician's judgement, and a documented rationale (our free SOAP note template has room for it), stay central. For how decision support should fit around clinical judgement, see our guide to clinical decision support systems and our explainer on what a differential diagnosis is.

Frequently asked questions

What is bias in medical AI?

It is a systematic difference in how well an AI system works, or in what it recommends, for different groups of patients, such as by race, sex, age or insurance status. It usually comes from the data the model learned from, the outcome it was trained to predict, or the setting it is used in, not from any intent.

Does removing race from the inputs make an AI system fair?

No. A widely used US care-management algorithm did not use race as an input and was still racially biased, because it predicted health-care costs and less money had been spent on Black patients. Imaging models can also infer self-reported race from X-rays and CT scans, so bias can enter without a race variable.

Can large language models be biased in clinical answers?

Yes. A study of four commercial models found every one repeated some debunked race-based medical claims, and a GPT-4 evaluation found it stereotyped the demographics of disease in clinical vignettes. Treat a chatbot's answer about a specific patient group as a claim to check against a primary source.

What can an individual clinician do about AI bias?

Ask for performance results broken down by patient subgroup, check whether the tool was validated on patients like yours, treat outputs as suggestions you can override, and notice when a recommendation does not fit the patient in front of you. Report suspected bias to whoever governs the tool locally.

References

  • Obermeyer Z, Powers B, Vogeli C, Mullainathan S. Dissecting racial bias in an algorithm used to manage the health of populations. Science 2019;366(6464):447–453. pubmed.ncbi.nlm.nih.gov/31649194
  • Seyyed-Kalantari L, Zhang H, McDermott MBA, Chen IY, Ghassemi M. Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations. Nature Medicine 2021;27(12):2176–2182. nature.com/articles/s41591-021-01595-0
  • Larrazabal AJ, et al. Gender imbalance in medical imaging datasets produces biased classifiers for computer-aided diagnosis. PNAS 2020;117(23):12592–12594. doi.org/10.1073/pnas.1919012117
  • Gichoya JW, Banerjee I, Bhimireddy AR, et al. AI recognition of patient race in medical imaging: a modelling study. The Lancet Digital Health 2022;4(6):e406–e414. pubmed.ncbi.nlm.nih.gov/35568690
  • Sjoding MW, et al. Racial bias in pulse oximetry measurement. New England Journal of Medicine 2020;383(25):2477–2478. pubmed.ncbi.nlm.nih.gov/33326721
  • Vyas DA, Eisenstein LG, Jones DS. Hidden in plain sight — reconsidering the use of race correction in clinical algorithms. New England Journal of Medicine 2020;383(9):874–882. pubmed.ncbi.nlm.nih.gov/32853499
  • Inker LA, Eneanya ND, et al. New creatinine- and cystatin C–based equations to estimate GFR without race. New England Journal of Medicine 2021;385(19). doi.org/10.1056/NEJMoa2102953
  • National Kidney Foundation. Recommendations for implementing the CKD-EPI 2021 race-free eGFR calculation: guidelines for clinical laboratories. kidney.org
  • Omiye JA, Lester JC, Spichak S, Rotemberg V, Daneshjou R. Large language models propagate race-based medicine. npj Digital Medicine 2023;6:195. nature.com/articles/s41746-023-00939-z
  • Zack T, Lehman E, Suzgun M, et al. Assessing the potential of GPT-4 to perpetuate racial and gender biases in health care: a model evaluation study. The Lancet Digital Health 2024;6(1):e12–e22. pubmed.ncbi.nlm.nih.gov/38123252
  • Wong A, Otles E, et al. External validation of a widely implemented proprietary sepsis prediction model in hospitalized patients. JAMA Internal Medicine 2021;181(8):1065–1070. pubmed.ncbi.nlm.nih.gov/34152373
  • Habib AR, Lin AL, Grant RW. The Epic Sepsis Model falls short — the importance of external validation. JAMA Internal Medicine 2021. doi.org/10.1001/jamainternmed.2021.3333
  • Goddard K, Roudsari A, Wyatt JC. Automation bias: a systematic review of frequency, effect mediators, and mitigators. Journal of the American Medical Informatics Association 2012;19(1):121–127. academic.oup.com/jamia/article/19/1/121/733445
  • STANDING Together collaboration. Tackling algorithmic bias and promoting transparency in health datasets: the STANDING Together consensus recommendations. The Lancet Digital Health. pmc.ncbi.nlm.nih.gov/articles/PMC11668905
  • World Health Organization. Ethics and governance of artificial intelligence for health: WHO guidance. Geneva: WHO; 2021. iris.who.int/handle/10665/341996
Medical disclaimer. This article is for general information for healthcare professionals. It is not medical advice, and Shifaa AI provides clinical decision support only — it does not provide a diagnosis, and the treating clinician is responsible for all decisions and patient care.
Coming soon · private beta

Be first to try Shifaa AI.

Shifaa AI is in private beta. Join the beta to get early access, or share your feedback and interest — we’d love to build this with the doctors who’ll use it.

Or write to [email protected]

  • Free at launch
  • iOS & Android
  • Doctor stays in control