09

Learning/AI Basics/Chapter 9

Chapter 9 · Risks

Why AI fails

An AI tool that performed well in its studies can fail in your hospital, or fail slowly months after go-live. The causes are well known and fall into a handful of patterns. Knowing their names helps you ask the right questions before deployment and recognise problems after.

⏱ 4 min read⚡ Takeaways: 30 s❓ Self-check includedinShare on LinkedIn
In a hurry? The takeaways30-second read
  1. Dataset shift: your patients, equipment and habits differ from the study.
  2. Drift: performance changes over time; only monitoring reveals it.
  3. Bias: average performance can hide poor results for some groups.
  4. Shortcut learning, out-of-scope use and integration errors cause many real failures.

Got these four points? You have the essentials. Read on for the explanations, examples and traps.

01Dataset shift: your patients are not the training patients

A model learns the patterns of its training data. When the data it meets in practice differs, performance drops. Common sources in hospitals:

Source of shiftExample
PopulationTrained on adults, used on adolescents; trained in a referral centre, used in primary care
Equipment and protocolsNew CT scanner, different image reconstruction, new lab analyser with different units
Documentation habitsDifferent templates, abbreviations, languages, coding rules
Care pathwaysEarlier treatment changes what the record looks like before an event
PrevalenceDisease far rarer than in the study population (Chapter 7)

02Drift: the world changes after go-live

Even in the same hospital, things change: new clinical guidelines, a new EHR version, a pandemic, new staff habits. The model stays frozen while the world moves, and its performance can degrade gradually. During the COVID-19 pandemic, several hospital prediction models saw their performance change because patient mix and care patterns shifted abruptly.

Drift is invisible without monitoring. Track, over time, the volume of alerts, the share of positive outputs, agreement with clinicians and, when possible, actual outcomes.

03Bias and unfair performance

A model can perform well on average and poorly for a specific group. Typical causes:

  • Under-representation: few examples of a group in training data (for example darker skin tones in dermatology image sets).
  • Biased labels: the “truth” reflects unequal care. An algorithm used to allocate care management in the US used past healthcare costs as a proxy for health needs. Because less money had historically been spent on Black patients with the same level of illness, it under-estimated their needs (Obermeyer et al., Science, 2019).
  • Proxy variables: postcode, language or insurance type standing in for social disadvantage.
✓What to ask

Were results reported by age, sex, ethnicity (where lawful to collect) and other relevant groups? Was the training population similar to ours? Will we monitor performance by group after deployment?

04Shortcut learning

Models find the easiest pattern that predicts the label, even if it is clinically meaningless: a hospital marker on an X-ray, a chest drain visible on images of treated pneumothorax, the type of scanner used for sicker patients. The model seems accurate but has learned a shortcut that breaks as soon as conditions change. Good studies look for shortcuts through external validation and by examining what the model attends to.

05Out-of-scope use

Every regulated tool has an intended use: patients, inputs, setting and role. Using it outside that scope, such as on children when it was validated on adults, or as a screening tool when it was designed for symptomatic patients, removes the basis for trusting it and may shift legal responsibility to the hospital. LLM assistants are especially exposed: they will answer any question, including ones they were never evaluated for.

06Integration failures

Many incidents come from the plumbing rather than the model:

  • The wrong patient's data or images sent to the AI, or results returned to the wrong record.
  • Missing data: a document type not indexed, a lab feed not connected, so the AI works on an incomplete picture.
  • Silent outages: the AI stops returning results and nobody notices that “no alert” now means “no analysis”.
  • Version changes in the EHR, PACS or interfaces that alter the inputs.

07Security and adversarial risks

AI systems add new attack surfaces: cloud connections, vendor remote access, model files and, for language models, prompt injection (Chapter 6). Images and inputs can, in principle, be manipulated to fool a model. These risks belong in the hospital's normal cybersecurity governance: access control, multi-factor authentication, logging, patching, supplier security clauses and incident procedures.

08The human side

Finally, AI can fail through the way people use it: over-trusting it, ignoring it, or changing their behaviour in ways nobody anticipated. These human factors deserve their own chapter.

Self-check 9

Six months after go-live, a stroke-detection tool flags far fewer cases than in the first month, and nobody has complained. Name two possible explanations and one way you would have detected the problem earlier.

Show the answer

Possible causes: an integration problem (images no longer sent to the AI, a protocol or scanner change that breaks the input), or drift in case mix or imaging. You would have caught it earlier by monitoring the number and share of positive outputs and the system's availability over time, with alert thresholds.

If you can answer out loud in a minute, you have understood the chapter.

Found this useful?Share it with your team or your network.
inShare on LinkedIn

Adapted from AI Basics for Hospital Professionals, edition 1, November 2026. Educational content only: not legal, regulatory or clinical advice, and no product recommendation. Facts and dates checked as of November 2026; verify regulatory dates at the official sources.