Evidence-Grounded Large Language Model Reasoning for Patient Safety Using Knowledge Graphs and Retrieval-Augmented Generation: Development and Evaluation Study
Abstract Background Large language models have shown substantial potential for supporting clinical reasoning, but their use in patient safety applications remains constrained by limited access to structured clinical knowledge, variable evidence grounding, and difficulty tracing generated reasoning to supporting sources. Knowledge graphs can provide structured representations of clinical and safety concepts, while retrieval-augmented generation can incorporate relevant biomedical evidence into model inputs. Objective This study aimed to develop and evaluate an integrated framework for evidence-grounded patient safety reasoning that combines a large language model, a patient-safety knowledge graph, and retrieval-augmented generation. The study examined how structured knowledge and evidence retrieval contribute to concept extraction and reasoning performance. Methods The framework was developed using adult intensive care data from the Medical Information Mart for Intensive Care (MIMIC)-III and MIMIC-IV. Patient safety concepts were normalized using established clinical terminology and patient safety classifications and represented within a structured knowledge graph. An LLaMA-based language model adapted using low-rank adaptation was used for concept extraction and reasoning. Retrieval-augmented generation incorporated relevant biomedical literature, patient safety resources, clinical guidelines, and drug-related knowledge using biomedical sentence embeddings and a FAISS-based vector index. Retrieved evidence was ranked using cosine similarity and incorporated into the model context together with relevant graph information. Performance was evaluated using F1, area under the receiver operating characteristic curve, and area under the precision-recall curve. Component ablation analyses examined the effects of removing the knowledge graph, low-rank adaptation, and retrieval augmentation.
- Link
- https://doi.org/10.21203/rs.3.rs-11197970/v1
- Found by
- Crossref
- Authors
- Sharare Taheri Moghadam, Md Shafiqur Rahman Jabin
- Organizations
- Iran University of Medical Sciences, Linnaeus University
- Categories
- evaluation
- Published
- 2026-10-18
- Last seen by the radar
- 2026-10-20
- Citations
- 0
- Radar score
- 26.75 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat; Primary record: Crossref