MedKG-RAG: Patient Knowledge Graphs and LLM Reasoning for ICU Mortality Prediction
Keywords:
Knowledge Graphs, Large Language Models, Retrieval-Augmented Generation, ICU Mortality, MIMIC-III, EHR Reasoning, MedKG-RAGAbstract
This paper presents MedKG-RAG, a framework that constructs patient-level Knowledge Graphs (KGs) from MIMIC-III electronic health records (EHRs) and uses them to augment Large Language Model (LLM) prompts for ICU in-hospital mortality prediction. Using a cohort of 500 ICU patients (10% mortality, natural distribution), an ablation study is performed across three LLM inference conditions: (A) Zero-Shot with minimal demographics, (B) Flat Features with raw structured data, and (C) MedKG-RAG with full KG verbalization, alongside traditional ML baselines (Logistic Regression, XGBoost on ICD-9 bag-of-codes features). The principal finding is that KG verbalization dramatically improves LLM sensitivity for high-risk identification: MedKG-RAG achieves 0.82 recall for deceased patients versus 0.10 for Zero-Shot, with F1-Macro of 0.649, matching XGBoost (0.648). Traditional ML models retain superior AUC-ROC discrimination (LR: 0.808), suggesting that KGs improve LLM clinical reasoning while statistical models better capture population-level discriminative patterns. These results illuminate a complementary role for KG-augmented LLMs in safety-critical healthcare applications: maximizing sensitivity over specificity.
Downloads
References
T. R. Sumers, S. Yao, K. Narasimhan, and T. L. Griffiths, “Cognitive Architectures for Language Agents,” arXiv (Cornell University), mar. 2024, doi: https://doi.org/10.48550/arxiv.2309.02427.
S. Wang, J. Lin, X. Guo, J. Shun, J. Li, and Y. Zhu, “Reasoning of Large Language Models over Knowledge Graphs with Super-Relations,” arXiv.org, 2025. https://arxiv.org/abs/2503.22166
W. A. Knaus, E. A. Draper, D. P. Wagner, and J. E. Zimmerman, “APACHE II: a severity of disease classification system,” Critical Care Medicine, vol. 13, no. 10, pp. 818–829, Oct. 1985, Available: https://pubmed.ncbi.nlm.nih.gov/3928249/
C. Li et al., “LLaVA-Med: Training a Large Language-and-Vision Assistant for Biomedicine in One Day,” arXiv.org, Jun. 01, 2023. https://arxiv.org/abs/2306.00890
M. Rotmensch, Y. Halpern, A. Tlimat, S. Horng, and D. Sontag, “Learning a Health Knowledge Graph from Electronic Medical Records,” Scientific Reports, vol. 7, no. 1, Jul. 2017, doi: https://doi.org/10.1038/s41598-017-05778-z.
A. Johnson et al., “MIMIC-III, a Freely Accessible Critical Care Database,” 2016, doi: https://doi.org/10.1038/sdata.2016.35.
R. Miotto, L. Li, B. A. Kidd, and J. T. Dudley, “Deep Patient: An Unsupervised Representation to Predict the Future of Patients from the Electronic Health Records,” Scientific Reports, vol. 6, no. 1, May 2016, doi: https://doi.org/10.1038/srep26094.
C. van Walraven et al., “Derivation and validation of an index to predict early death or unplanned readmission after discharge from hospital to the community,” Canadian Medical Association Journal, vol. 182, no. 6, pp. 551–557, Mar. 2010, doi: https://doi.org/10.1503/cmaj.091117.
K. Singhal et al., “Large language models encode clinical knowledge,” Nature, vol. 620, Jul. 2023, doi: https://doi.org/10.1038/s41586-023-06291-2.
J. Wei et al., “Chain of Thought Prompting Elicits Reasoning in Large Language Models,” arXiv:2201.11903 [cs], Oct. 2023, Available: https://arxiv.org/abs/2201.11903
W. Dai et al., “InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning,” arXiv.org, May 10, 2023. https://arxiv.org/abs/2305.06500
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All papers should be submitted electronically. All submitted manuscripts must be original work that is not under submission at another journal or under consideration for publication in another form, such as a monograph or chapter of a book. Authors of submitted papers are obligated not to submit their paper for publication elsewhere until an editorial decision is rendered on their submission. Further, authors of accepted papers are prohibited from publishing the results in other publications that appear before the paper is published in the Journal unless they receive approval for doing so from the Editor-In-Chief.
IJISAE open access articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This license lets the audience to give appropriate credit, provide a link to the license, and indicate if changes were made and if they remix, transform, or build upon the material, they must distribute contributions under the same license as the original.


