AI Agents Outperform Large Language Models in Making Headache Diagnoses from Free Text
Authors: Jim Blythe, Vipin Chawla, Rob Cowan and Alan Rapoport
Affiliations: (1) BonTriage, Inc., (2) Stanford University and (3) UCLA
Objective
Machine Learning (ML), large language models (LLMs) and more recently AI agents will make unprecedented contributions to headache diagnosis and care. We compare the performance of an LLM and an AI agent in making a diagnosis from the transcript of a discussion between an MD and a patient. The AI agent uses a validated tool that combines ICHD-3 best practices with expert insight (BonTriage.com).
Method
Twenty conversations were recorded between two MDs. The first played a patient diagnosed with migraine, cluster or tension-type headache. The second asked questions and made a diagnosis.
Experiment architecture
All judges make diagnoses based on the conversation between the expert and patient. The agent uses an expert-validated AI tool (Bon Triage) in its diagnosis and uses the LLM to extract data needed by the tool from the conversation.
Transcripts were created using an off-the-shelf speech recognition application (Zoom). The transcripts were used by both the LLM and the agent to make a diagnosis, each asking follow-up questions as needed.
Results
The agent made a correct diagnosis in 95% of the cases, slightly below the human expert, at 100%. The large language model diagnosed 70% of the cases correctly.
The proportion of headache types
| Judge | % correct |
|---|---|
| MD | 100% |
| Agent | 95% |
| Large language model | 70% |
Migraine without aura comprised 40% of the cases, 20% were migraine with aura, 25% were tension-type and 15% were cluster headaches. All judges correctly diagnosed all cases of migraine without aura. The large language model (LLM) missed four of five tension-type cases, and the agent missed one. Although prompted to choose migraine, tension-type or cluster headache, the large language model’s misdiagnoses included paroxysmal hemicrania and NDPH.
Conclusion
We are developing a new type of diagnostic aid based on this approach.
Approaches based on AI language models must engage humans during diagnosis to reduce mistakes. Our proposed approach will combine human input from three distinct sources. First, expert input is central to the construction of the BonTriage diagnostic tool, which has also been clinically validated [Cowan et al. 2021]. Second, the physician/nurse practitioner can review the proposed diagnosis using a clear explanatory structure created by the tool. Third, the patient can verify whether the language model has correctly extracted diagnostic variables from the text.