Abstract
Deep learning models have achieved high accuracy in predicting patient diagnoses from Electronic Health Records (EHR), yet they remain "black boxes" that lack clinical interpretability and interactivity. We present II-KEA (Knowledge-Enhanced Agentic Causal Discovery), a multi-agent framework that shifts diagnosis prediction toward a transparent, causal-reasoning approach. By utilizing specialized Large Language Model (LLM) agents to synthesize medical knowledge and discover causal links, II-KEA provides clinicians with accurate predictions, actionable explanations, and the ability to refine results through interactive feedback.
Introduction: The Trust Gap in Clinical AI
While traditional deep learning models excel at pattern matching within EHR data, they face significant barriers to clinical adoption. First, they lack interpretability; a model might flag a high risk for sepsis without explaining the underlying clinical reasoning or the causal chain involved. Second, they lack interactivity; these static pipelines do not allow clinicians to inject real-time expertise or steer the model toward specific clinical concerns.
To bridge this gap, AI must move beyond simple correlation and toward causal discovery—understanding the mechanisms by which one condition leads to another.
The II-KEA Framework
II-KEA addresses these challenges through a collaborative loop of three specialized LLM agents (powered by GPT-4o mini):
- Knowledge Synthesis Agent: Utilizing Retrieval-Augmented Generation (RAG), this agent pulls "textbook" medical information from a vector database (sourced from Wikipedia and ICD-9 descriptions). It summarizes known relationships between a patient's history and potential future diseases.
- Causal Discovery Agent: This agent constructs a Directed Acyclic Graph (DAG) to represent causal links between diseases. It employs an iterative "Hypothesis-Fitting-Amendment" process, where proposed graphs are validated against real-world EHR data using a log-likelihood fitting score to ensure statistical grounding.
- Decision-Making Agent: The final agent integrates patient history, the validated causal graph, and synthesized medical knowledge to generate diagnosis predictions. Crucially, it supports Clinician Comments, allowing human experts to provide natural language feedback (e.g., "focus on kidney-related complications") to refine the output.
Experimental Evaluation
The framework was evaluated on two gold-standard clinical datasets: MIMIC-III (approx. 7,500 patients) and MIMIC-IV (10,000 patients). External medical knowledge was integrated via a RAG vector database built from Wikipedia pages corresponding to ICD-9 codes.
Key Results
II-KEA achieved state-of-the-art (SOTA) performance, outperforming both traditional deep learning models (e.g., RETAIN) and recent graph-based architectures (e.g., GT-BEHRT):
- Accuracy: On MIMIC-III, II-KEA reached a 28.61% weighted F1 score, a significant improvement over the previous best of 25.21%.
- Recall: The model demonstrated superior Recall@10 and Recall@20, indicating a higher likelihood of including true future diagnoses within its top suggestions.
- Ablation Analysis: Studies revealed that the Causal Discovery Agent is the most critical component. Removing this agent led to a sharper performance decline than removing the external knowledge base, underscoring that the structural reasoning of the model is more vital than raw fact retrieval.
Discussion and Future Directions
II-KEA demonstrates that agentic decomposition—breaking complex reasoning into specialized tasks—allows LLMs to handle clinical prediction with greater reliability. By grounding reasoning in both statistical data and external medical knowledge, the system avoids common pitfalls like hallucination.
However, limitations remain. The current reliance on Wikipedia could be improved by integrating professional sources like PubMed or clinical guidelines. Additionally, the computational overhead of multi-agent loops (approx. 87 seconds per patient) may be a factor in high-velocity emergency settings. Future work will focus on extending the framework to treatment planning and exploring multi-stakeholder interactions involving various medical specialists.
Summary updated