What AI Cannot Do: Limitations and Common Misconceptions

Realistic expectations for AI in medicine — the gap between headline results and clinical reality, why "AI will replace doctors" is wrong, and the problems AI is genuinely bad at.


In 2016 Geoffrey Hinton, one of the pioneers of deep learning, said that we should stop training radiologists, because within five years deep learning would do the job better. Ten years on, radiologists are still being trained and are still in demand. (To be fair, he said it as part of an extemporaneous explanation of what neural nets were best at, but now we all get to feel smug by bringing it up over and over again.)

Hinton was right that the models would get good at reading images. He wasn't familiar with the wide disparity of datasets between institutions, and he and many others underestimated the distance between a model that scores well on a test set and a tool that improves care. Most of what goes wrong in medical AI goes wrong in the space between lab datasets and real-world imaging.

A model learns whatever predicts the label

A model has no idea what disease is. It finds whatever pattern in the training data best separates the labels we provide in advance, and it has no way of knowing whether that pattern is pathology, coincidence, or the letters "SET 1" added to the X-ray image when the data was organized.

In 2018 John Zech and colleagues trained a network to detect pneumonia on chest radiographs from several hospitals. It performed well on new films from the hospitals it had trained on and much worse on films from elsewhere. They finally figured out that the network had learned what hospital the film came from because of peculiarities of the equipment used. The hospitals the training data came from had a much higher incidence of pneumonia because they specialized in that and received referrals for suspected cases. The origin hospital turned out to be the best predictor of whether a film would show pneumonia.

Luke Oakden-Rayner and colleagues described a similar problem with pneumothorax. Many of the pneumothorax films in a public dataset showed a chest drain, because the patient had already been treated. A model can score well by finding drains. On the untreated pneumothorax, which is the only case that anybody cares about, it does much worse.

This is called shortcut learning. Rulers and ink markings next to skin lesions, portable-film markers, scanner model, even the text burned into the corner of an image have all served as shortcuts. The model is doing exactly what it was asked to do. The trouble is that the shortcut stops working when the setting changes.

You guard against it by testing on data from sites that contributed nothing to training, and by checking performance in the subgroups where the shortcut would be absent (see 5.4 Multi-Site External Validation and 7.1 Sources of Bias in Medical AI).

It works on data that looks like its training data

A model's reported performance holds for cases drawn from the same source as its training set. Change the scanner vendor, the imaging protocol, the patient population or the way clinicians write notes, and performance usually drops. Sometimes it drops a little and sometimes a great deal, and you cannot tell which in advance. About the only thing we're sure of is that it won't get any better.

The sepsis prediction model built into Epic's electronic health record was reported by its developer to have an AUC between 0.76 and 0.83. When Andrew Wong and colleagues evaluated it at the University of Michigan in 2021, the AUC was 0.63, and the model missed about two thirds of the patients who developed sepsis.

A Google Health team deployed a diabetic retinopathy screening model in clinics in Thailand and reported in 2020 that more than a fifth of the images were rejected as ungradable, largely because of lighting conditions in the clinics. The model had been accurate on good images. The clinics could not reliably produce good images.

We could go on and on with examples like this, and we often do. The point isn't schadenfreude though, the point is to continuously remind ourselves to stay humble and skeptical of lab-only results. The technical name is distribution shift, and it is the most common reason a published model disappoints (see 2.6 Multi-Site and Multi-Device Data). Shift also happens over time at a single site, as equipment, practice and patients change, which is why a deployed model has to be monitored (see 6.12 Post-Market Surveillance and Real-World Monitoring).

It doesn't know what it doesn't know

Show a knee image to a model for chest X-rays. Don't be surprised if it returns a high probability of pneumonia. Nothing in a standard model says "what idiot sent me this knee image?" the way an actual radiologist would.

The probability it reports is also not a reliable measure of certainty. Modern networks tend to be overconfident, and a stated 95% may be right far less often than that (see 4.4 Calibration). A clinician who is unsure says so, orders another test or asks a colleague. A model produces a number regardless.

It is limited by its labels

A supervised model learns to reproduce its labels, errors included. If the labels came from one radiologist, the model learns that radiologist's habits. If they came from billing codes, it learns to predict billing.

That puts a ceiling on performance. When two experts agree with each other 85% of the time, a model scoring 95% against one of them has probably learned that reader's quirks. It has not exceeded human accuracy (see 5.7 Reference Standards and Ground Truth in Medical AI).

The same applies to historical decisions. A model trained on who was referred, admitted or treated learns past practice, along with whatever inequities were in it (see 7.2 Demographic Fairness).

It is weakest on rare things

Models learn from examples, and rare conditions are, well, rare. A model can score well overall while failing on the uncommon presentation, the rare subtype or the group of patients who were scarce in the training data. If a condition only appears in 1 out of a thousand examples, a model could just say "nope" every time and report a 99.9% success rate. Averages hide this, so ask for results broken down by subgroup.

Rarity also reduces the value of a positive result. In a screening population where one person in a hundred has the disease, a model with 90% sensitivity and 90% specificity produces about eleven false positives for every true one. The model is no worse than it was on a balanced test set. The population is different (see 4.1 Classification Metrics).

It cannot explain itself reliably

Heat maps that show where a network "looked" appear in a great many papers. They are less trustworthy than they seem. In 2018 Julius Adebayo and colleagues showed that some popular methods produce similar-looking maps even after the model's learned weights are replaced with random numbers, which means the map was reflecting the image and not the model.

A heat map over the right part of the lung does not show that the model used the right reasoning, and a clinician can easily read their own reasoning into it. Use these maps to hunt for obvious shortcuts. They are not evidence that a prediction is correct (see 7.4 Explainability and Interpretability in Clinical AI).

It sees only what it is given

A radiologist reads the image, the request, the history and the previous study, and phones the ward when something doesn't fit. An image model gets the pixels, and it doesn't know how to use the phone.

It also can't tell an association from a cause. A model that predicts who will deteriorate does not tell you whether intervening would help. That is a causal question, and a model that only predicts outcomes cannot answer it.

Accuracy is not benefit

Suppose a model really is as accurate as its paper claims, at your site, on your patients. It still may not help!

Its output has to reach someone who can act, at a time when acting is possible, in a form they will trust and not learn to ignore. An alert that fires forty times a shift gets dismissed. And the benefit has to be measured in outcomes: fewer missed cancers, shorter time to treatment, less unnecessary testing. Few AI tools have been tested that way in prospective trials, and fewer still in randomized ones (see 5.1 Technical Validation vs. Clinical Validation and 8.1 From Model to Product: The Implementation Gap).

Five misconceptions

"AI will replace doctors." It automates specific tasks: measuring a volume, flagging a film for early review, drafting a report. A job is many tasks plus the responsibility for the patient, and nobody has automated that. The more useful question for a study is whether clinicians working with the tool do better than clinicians without it (see 5.5 Reader Studies).

"The model beat the experts." Look at how the comparison was run. Often the readers had no history, no prior studies and a time limit, on a test set enriched with disease, and were scored against a reference standard that favored the model. That is a comparison with experts working under conditions they never work under (and that the model will not work under if deployed to the real world).

"More data will fix it." This has become Received Wisdom in the age of ChatGPT and its cousins, but it's not necessarily true in a medical context. More of the same data teaches the model the same shortcuts and the same label errors more firmly. Better labels, and data from more kinds of sites, usually help more (see 2.1 Why Data Quality Matters More Than Model Complexity).

"It's objective." A model is consistent, in that it gives the same answer to the same input. But it inherits its judgments from its labels and its training population, so consistency and absence of bias are different properties.

"A high AUC means it works." AUC measures how well the model ranks cases on the test set it was given. It says nothing about calibration, performance at your threshold, performance at your site, or benefit to patients (see 4.2 The ROC Curve and AUC).

What AI is good at

None of this means the technology doesn't work or isn't helpful. It means it works within limits. Within them, AI does well on narrow, well-defined, repetitive tasks with plentiful examples and a clear reference standard: outlining organs for radiotherapy planning, measuring volumes, counting cells, ordering a worklist so that the likely urgent films are read first, checking image quality at acquisition. Projects that stay inside those limits and are validated on the population they will be used in tend to succeed.

(That last paragraph may not age well. I'm OK with that.)

For your own study, that translates into a pretty short list of preconditions. Define a narrow task. Get the labels right. Test on data from somewhere else. Report subgroups. And measure whether anything improved for the patient.

Key takeaways

  • A model learns whatever pattern predicts the label, including shortcuts such as hospital markers or chest drains, and those fail when the setting changes.
  • Reported performance holds for data like the training data. Expect a drop at a new site, on a new scanner or in a new population, and test for it.
  • A model gives an answer for every input, including ones it was never trained on, and its confidence scores are often too high.
  • Performance is capped by label quality, and a model trained on past decisions reproduces past practice.
  • Rare conditions and under-represented groups are where models fail most, and overall averages hide it.
  • Heat maps are not reliable explanations of what a model did.
  • An accurate model is not yet a useful one. Benefit has to be shown in outcomes, ideally in a prospective study.
  • AI does best on narrow, repetitive, well-defined tasks with a clear reference standard.

This article is part of the AI in Clinical Research Knowledge Base.