Study Finds AI Still Falls Short on Safety When Patients’ Health Is at Stake

Artificial Intelligence is increasingly being used by medical professionals and patients alike, but is it trustworthy? It takes seconds to ask AI a medical question, to summarize clinical information, and to perform tasks that once required specialized expertise and often took days to report. AI use is saving time on the one hand, but is it at the cost of safety?

A new study involving University of Virginia researcher Aidong Zhang finds that even advanced large language models continue to fall short on critical measures of safety and trustworthiness in patient care, including fairness, privacy, and resisting manipulation.

The findings, published in “Communications Medicine,” suggest that human oversight remains essential as health systems consider using generative AI in clinical settings. To measure these risks systematically, the research team developed MedGuard, a framework designed to test whether large language models behave safely in medical situations.  

Putting Medical AI to the Test

The report’s benchmark included 1,000 expert-verified questions spanning five principles the researchers identified as essential to trustworthy medical AI: fairness, privacy, resilience, robustness, and truthfulness.

MedGuard’s five categories were then translated into practical concerns for patients and asked such questions as:

  • Would an AI system assess the same medical case differently depending on a patient’s race or gender?  
  • Could it reveal confidential health information?  
  • Would it recognize a medical question phrased in everyday language rather than clinical terminology?  
  • Could it handle a misspelling in a patient record?  
  • Would it challenge incorrect information instead of simply agreeing with a user?

To find out, the research team tested 16 commonly used large language models ranging from proprietary to open-source to medicine-specific models. The questions reflected actual patient-care scenarios the models could encounter rather than simply testing medical knowledge.  

This distinction proved important. Across the models tested, performance on conventional medical knowledge questions was consistently higher than performance on MedGuard’s safety measures. That means a model can demonstrate substantial medical knowledge without showing the same level of reliability when confronted with issues such as patient privacy, misleading prompts, or equitable treatment.

When Demographics Change the Answer

The researchers also found significant equity-related weaknesses. The study found that changing demographic information alone could change the models’ predictions, even though the medically relevant information was held constant.

For example, in the equity tests, researchers created equivalent cases and changed only biological sex, race, or ethnicity. Fifty questions asked models to predict mortality risk, and another 50 asked them to predict healthcare costs. If the prediction remained the same across demographic variations, then the model was considered equitable.

But the study showed that the models often did not remain consistent. Race equity was the weakest-performing area in the benchmark, with an average score of just 0.11, and no model scored above 0.5 on race equity. The authors specifically conclude that most models fell significantly short on both gender and race equity.

For mortality predictions, the findings showed even greater variance. In open-ended testing, demographic background sometimes led models to place different emphasis on aspects of the same clinical history, producing higher risk estimates in some cases and lower estimates in others. This variability underscores the risks of relying solely on large language models for medical predictions.  

What AI Safety Means for Patients

The implications extend beyond whether an AI system produces a technically correct answer. As generative AI becomes more common in healthcare, a model could potentially encounter patients who describe symptoms in nontechnical language, speak different languages, or enter incomplete or misspelled information. It could also encounter sensitive health data that must remain private.

For the research study, human medical experts provided an important comparison. Five medical professionals independently answered a subset of 200 benchmark questions. Their average performance exceeded that of the four AI models selected for comparison, with particularly notable differences in areas involving fairness and resistance to manipulation.

The researchers also tested whether better prompting could make the models safer. Adding instructions emphasizing safe behavior produced limited and inconsistent improvements, suggesting that asking an AI system to “be safe” is not enough to address underlying weaknesses.

The study does not argue that large language models have no place in medicine. Instead, it highlights a distinction that could become increasingly important as AI moves from experimental tools toward real-world health applications: Accuracy alone is not sufficient.  

The researchers conclude that current models still require human oversight and stronger safeguards before they can be relied upon in clinical practice. They hope MedGuard can provide a standardized way to identify risks before AI systems reach patients.  

For patients, that raises the bar for medical AI. The question is not simply whether a system can provide the right answer. It is whether it can do so reliably, equitably, and safely when a person’s health is on the line.

Image
A smiling woman with shoulder-length black hair and glasses is pictured against a neutral background. She wears a red blazer and a pearl necklace.

Zhang, a researcher and professor with appointments in UVA’s Department of Computer Science and School of Data Science, helped supervise the study. She collaborated with researchers and medical experts from the National Institutes of Health’s National Library of Medicine, the University of Maryland, Howard University, Albert Einstein College of Medicine, the University of Florida, and the University of Chile. 

Author

Director of Marketing and Communications