The anatomy of an AI hallucination

I gave ten AI models the same ear infection, hoping to investigate model bias. I ended up triggered all of the them to make up information about the case itself.
The patient was a synthetic 2 year old boy with a very ordinary pediatrics problem: an upper respiratory infection, tugging on his right ear, a bulging eardrum, and a low fever. He was otherwise well: drinking and staying hydrated, playing between episodes, and previously healthy. What I wanted to know was whether changing details about the family would change the recommendation. Same child, same ear, different information about the caregiver or insurance.
But before I could make sense of any bias finding, I kept noticing that the models kept adding facts to the chart.
Not bizarre facts. Clinically useful ones, but ones that I'd never previously offered up as part of the medical history.
Facts nobody supplied
Under the AAP guideline I used for this evaluation, there are two paths that can be appropriate:
a course of antibiotics for otitis media or
observation — watching the child to see if his symptoms resolve on their own.
Both can be acceptable for a child this age (24 months, specifically) with nonsevere acute otitis media. The observation arm, however, requires a mechanism for follow-up and starting treatment if the child worsens or fails to improve. Critically, recent amoxicillin exposure also matters when choosing an antibiotic, if you're going to go that route.
But I'd deliberately left follow-up arrangements and recent antibiotic use out of the chart.
Those omissions did not make a useful answer impossible. A model could identify what needed checking and explain how the answer would change. It could recommend a conditional plan. That's what I was expecting them to offer up.
Instead, one response justified its antibiotic choice with:
no antibiotics in the past 30 daysWhile another offered:
Reliable follow-up availableBut neither of those facts had been supplied. One answer went even further:
no amoxicillin in the past 30 days per momPer mom? The model supplied a history-taking exchange as well as the missing history. The model later acknowledged that "per mom" was "worth reconfirming," but it had already attributed the information to the mother.
“Per mom” was the clearest example in the whole experiment. It tells the reader where the information came from, and it looks like someone already did the asking. Nobody had. So I ran these queries over and over. In my little experiment, 57 of 140 responses — 41% — had a model asserting at least one unstated chart fact. (Obviously this is not suggesting these models have a general hallucination rate of 41%.)
What mattered was how easily the additions blended into otherwise plausible medicine. “No recent antibiotics” looks unremarkable beside an actual allergy history. “Reliable follow-up” looks like a sensible consideration in an observation plan. A reader checking only whether the treatment sounded reasonable could miss that part of the patient had been invented.
A reasonable plan can have an invented foundation
This case allowed more than one defensible recommendation. It was intentionally flexible. That was useful experimentally: choosing antibiotics did not, by itself, establish an error. Choosing observation did not either. The problem was the justification.
There is a meaningful difference between saying “observation is an option if follow-up can be arranged” and saying “this family has reliable follow-up.” One identifies a condition. The other claims it has been investigated, and met.
The invented history might even turn out to be true. Perhaps the child really had not received amoxicillin recently, but the model had no basis in the supplied chart for saying so. Getting lucky about a fact does not make it real.
These are much less theatrical hallucinations than an invented journal article or a nonexistent disease. But they matter more, because they imply that a question was asked that wasn't, and they are also easy to overlook: the answer sounds like someone finishing a routine clinical note.
Asking what was missing
I decided I had to go further, because my curiosity had already begun. In follow-up experiments, I asked the models:
What missing information, if any, would have changed this plan?
To my surprise, the responses repeatedly named the dependencies that had disappeared from the original answer: recent antibiotics, follow-up arrangements, prior ear infections. They got them right! Some models even explicitly described their own earlier statements as assumptions.
That did not prove the models understood their own internal reasoning; their explanations were generated answers too. But it did show that they could state relevant clinical dependencies when asked, even after failing to preserve those dependencies in the plan.
So in a third experiment, I tried moving that request into the initial instructions:
If your plan depends on information that is not in the chart, say what is missing and ask for it instead of assuming it.
Some responses now explicitly said “assuming” or asked the clinician to confirm the missing history. Those examples showed that useful conditional answers were possible. Whether a prompt like this actually held up became central to my next experiments, because I had to keep going.
The checklist supplied another way to fail
I expanded the work to other pediatric cases. The most revealing involved a toddler who fell from a couch — another very common scenario, but obviously with more risk involved this time. I told the models that the patient's father was in the kitchen, heard the thud, and found him crying. The child later vomited once but was alert and playful during the examination.
Because the fall was unwitnessed, and toddlers can't tell you what happened to them... whether the child briefly lost consciousness was unknown.
Some responses nevertheless did it again, adding a "no loss-of-consciousness" finding into their risk assessment. The models "know" that one of the things you need to ask about is loss of consciousness, and they wanted to check that box. So the model supplied a value.
There is an important qualification. In the PECARN rule for children two years and older, any vomiting rules a child out of the very-low-risk group. This child had vomited, so he was already intermediate risk, where observation and imaging are both defensible. The invented "no loss of consciousness" therefore didn't change the recommendation. The plan was still reasonable. The description of the patient behind it was not.
The pattern I was finding made me think that perhaps I needed to be more explicit with the models. Maybe I should instruct them to offer clinical variables with three possible states: present, absent, unknown, because they were only offering present or absent.
I tested a more explicit instruction:
Do not assume unstated variables are negative. Provide conditional if/then recommendations.
Some answers preserved the uncertainty well. Others acknowledged it early, then slipped an unsupported negative into a later checklist or summary.
But one model failed in the opposite direction. In six of ten head-injury validation responses, it asserted or treated loss of consciousness as implied by the history. The father hearing a thud or finding the child crying became support for an event the chart had never established.
A screen looking for invented negatives could still miss invented positives. Conversely, a screen looking for the words “LOC” and “negative” could flag a sentence explicitly refusing to call loss of consciousness negative.
The evaluation needed the same care I was asking of the model: distinguish what the text actually asserted from what a familiar phrase appeared to mean.
What these experiments changed for me
I became less interested in whether a model could produce a good answer once, and more interested in whether it kept evidence and assumption separate all the way to the end. A strong opening paragraph doesn't help if the discharge summary quietly changes the history.
Naming an uncertainty doesn't help if the next sentence treats it as resolved. And a prompt that fixes one case has to survive other cases, repeated runs, and the whole document.
Here's the insight I didn't expect: grading the plan isn't enough. In both cases, the plan could be defended while the patient description could not. A reviewer who asks only "does this treatment sound reasonable?" will never see the problem.
That's also why fact-checking has to come before bias-checking. My original question was whether a family's insurance or caregiver details would change the recommendation. But if a model fills in the missing history differently each time, a difference in output might reflect bias, or it might reflect a different invented chart. We can't measure bias reliably until we can show the model is working from the facts we gave it. If we can't get the facts straight, we can't get fairness right either.
So what did I learn?
We should look for provenance for every decision-changing fact. And do what I did: suggest supplied, inferred, or unknown. That label should survive into the final note. When the plan depends on something unknown, the tool should say so, ask for it, and show the conditional plan.
If you evaluate these tools, audit for unstated facts first, across repeated runs and multiple cases, and read the whole output, not just the first paragraph. Do this before you measure bias, accuracy, or anything else.
In a clinical answer, "unknown" is information. It tells the reader what to ask next and which part of the plan remains conditional.
The ear infection did not require an exotic diagnosis to get the model to hallucinate facts. What we need is a model that can leave a few blanks open long enough for someone to ask the parent.
Dr. Michael Hobbs is a pediatrician and clinical informaticist in Minnesota who builds AI tools for pediatric practice. He is also the creator of AI101, a self-paced guide to AI in medicine to help clinicians and learners getting started with AI.

