TLDR: This research introduces Hallucination-Controlled Accuracy at k% (HCAcc@k%), a new metric to evaluate AI agents by balancing accuracy and reliability, and TrustEHRAgent, a confidence-aware AI agent for Electronic Health Records (EHR). TrustEHRAgent uses step-wise confidence estimation to assess its certainty at each reasoning step, allowing it to provide accurate answers when confident and abstain when uncertain. Experiments show TrustEHRAgent significantly outperforms baselines under strict reliability constraints, demonstrating its potential for safer clinical decision support by mitigating the risks of AI hallucinations.
Large language models (LLMs) are showing immense potential in healthcare, particularly for extracting and interpreting information from Electronic Health Records (EHRs). These powerful AI tools could revolutionize clinical decision support and patient care. However, a significant hurdle remains: the risk of LLMs producing ‘hallucinations’ or factual errors. In a clinical setting, such errors can have serious, even life-threatening, implications for patient safety and care quality.
Traditional evaluation methods for AI models in healthcare often fall short because they primarily focus on accuracy, assuming the model should always provide an answer. This approach overlooks the critical need for reliability – an AI agent’s ability to recognize its own limitations and, crucially, to abstain from answering when it’s uncertain. This is where the work of Yongwoo Song, Minbyul Jeong, and Mujeen Sung comes into play.
A New Approach to Trustworthy AI in Healthcare
In their research paper, “Trustworthy Agents for Electronic Health Records through Confidence Estimation”, the authors introduce two key innovations to address these challenges. First, they propose a novel metric called Hallucination-Controlled Accuracy at k% (HCAcc@k%). Unlike traditional accuracy metrics, HCAcc@k% explicitly quantifies the trade-off between accuracy and reliability across different confidence thresholds. This means it measures how accurate an AI agent is while ensuring that the rate of incorrect answers (hallucinations) stays below a certain acceptable level, which is vital for patient safety.
Second, they present TrustEHRAgent, a confidence-aware AI agent designed specifically for clinical question answering. This agent incorporates a unique ‘step-wise confidence estimation’ process. Imagine an AI agent working through a complex medical query; TrustEHRAgent doesn’t just give a final answer. Instead, it estimates its confidence at each step of its reasoning process. This allows the agent to track how certain it is as it gathers and interprets information, making it more aware of potential uncertainties.
How TrustEHRAgent Works
The TrustEHRAgent framework builds on existing code-based reasoning capabilities but adds these crucial reliability assessment components. The step-wise confidence estimation involves the agent explicitly assigning confidence scores (on a 0-10 scale) at each stage of resolving a clinical query. These scores consider factors like data quality, query complexity, and potential ambiguities in interpretation. These step-wise signals are then fed into a dedicated ‘Confidence Estimator’.
The Confidence Estimator takes the original clinical question, the agent’s reasoning history (enriched with those step-wise confidence signals), and the proposed final answer. It then synthesizes these inputs to compute an overall confidence score for the final answer. This score is then compared against a predefined reliability threshold. If the confidence is high enough, the agent provides the answer. If it falls below the threshold, the agent wisely abstains, preventing potentially harmful misinformation from reaching clinicians.
Impressive Results for Patient Safety
The experiments conducted on two widely used medical datasets, MIMIC-III and eICU, demonstrated the significant advantages of TrustEHRAgent. Under strict reliability constraints (e.g., HCAcc@70%, meaning at most 30% of provided answers can be incorrect), TrustEHRAgent achieved substantial accuracy improvements of 44.23% on MIMIC-III and 25.34% on eICU. Crucially, baseline methods often failed completely at these stringent thresholds, achieving 0% performance.
Even under traditional accuracy settings (HCAcc@0%, where all questions are attempted), TrustEHRAgent showed competitive performance, achieving 62.13% and 59.82% accuracy on MIMIC-III and eICU, respectively. This indicates that adding these reliability mechanisms does not compromise the agent’s core question-answering abilities; in fact, it can even lead to modest performance gains.
A compelling case study highlighted TrustEHRAgent’s practical benefits. In a complex analytical query, the agent maintained high confidence throughout, providing an accurate medication list. In contrast, when faced with an ambiguous medical abbreviation, its confidence systematically decreased, leading it to appropriately abstain from answering. This prevents potential misinterpretations that could lead to clinical errors.
Also Read:
- Advancing Medical AI: A Survey of Reasoning Capabilities in Large Language Models
- Assessing AI Safety in Healthcare Dialogues: The MATRIX Approach
The Future of Clinical AI
This research underscores the critical need for evaluation frameworks that go beyond simple accuracy for medical AI agents. The ability of an AI to know when it doesn’t know, and to transparently express that uncertainty, is paramount for safe and responsible deployment in healthcare. TrustEHRAgent represents a significant step towards developing trustworthy AI agents that can safely assist healthcare professionals in interpreting complex EHR data, ultimately prioritizing patient safety in high-risk clinical environments. You can read the full research paper here: Trustworthy Agents for Electronic Health Records through Confidence Estimation.


