EMERGE: Enhancing Multimodal Electronic Health Records Predictive Modeling with Retrieval-Augmented Generation

Yinghao Zhu, Changyu Ren, Zixiang Wang, Xiaochen Zheng, Shiyun Xie, Junlan Feng, Xi Zhu, Zhoujun Li, Liantao Ma, Chengwei Pan

TL;DR

This paper introduces EMERGE, a novel framework that enhances predictive modeling for electronic health records (EHRs) by integrating multimodal data (time-series and clinical notes) with external medical knowledge. EMERGE uses Retrieval-Augmented Generation (RAG) to extract and align medical entities with a knowledge graph, creating richer patient summaries that improve prediction accuracy for critical health outcomes.

What Problem Does This Paper Address?

Electronic Health Records (EHRs) contain a wealth of information, including structured time-series data (like lab results) and unstructured clinical notes. While integrating these multimodal data sources has improved clinical prediction capabilities, existing models often struggle to capture the nuanced medical context necessary for accurate predictions. Previous attempts to incorporate external medical knowledge, such as knowledge graphs (KGs), have faced limitations like focusing solely on structured data, extracting knowledge that isn't directly useful for prediction, or relying on LLMs that can "hallucinate" incorrect information. This paper addresses the challenge of effectively leveraging both multimodal EHR data and rich external medical knowledge to build more accurate and context-aware predictive models.

Methods

EMERGE employs a Retrieval-Augmented Generation (RAG) approach to tackle these challenges. The core of the method involves:

  • Multimodal EHR Embedding Extraction:
    • Time-Series Data: A Gated Recurrent Unit (GRU) is used to encode the time-series data, capturing temporal dependencies. Abnormal features are identified using a z-score method.
  • Clinical Notes: A medical domain language model (Clinical-LongFormer) is used to extract potential disease names from clinical notes.
  • RAG-Driven Enhancement Pipeline:
    • Entity Extraction and Alignment: Large Language Models (LLMs) are prompted to extract disease entities from both time-series (abnormal features) and clinical notes. These extracted entities are then aligned with a professional knowledge graph (PrimeKG) using semantic similarity (cosine similarity of embeddings). This step includes refinement to remove irrelevant or hallucinated entities.
  • Knowledge Retrieval: Beyond just entity names, definitions, descriptions, and relationships from the KG are retrieved for the aligned entities.
  • Summary Generation: The retrieved knowledge is used to prompt an LLM to generate a concise, task-relevant summary of the patient's health status. This summary is then encoded into an embedding (hRAG).
  • Adaptive Multimodal Fusion Network: The embeddings from time-series data (hts), clinical notes (hNote), and the RAG-generated summary (hRAG) are fused using an adaptive multimodal fusion network. This network employs cross-attention mechanisms to allow modalities to attend to each other, creating a richer, unified representation (z) that is then fed into a final MLP for prediction.

Datasets

The study utilizes two widely recognized EHR datasets:

  • MIMIC-III: A large, publicly available database comprising de-identified health-related data associated with patients who stayed in intensive care units.
  • MIMIC-IV: The successor to MIMIC-III, offering updated and expanded data.

These datasets were preprocessed to extract 17 lab test features and 2 demographic features for time-series data. Clinical notes were also processed to remove de-identification placeholders and standardize text. The external knowledge base used is PrimeKG, which integrates information from 20 high-quality resources.

Key Insights and Ideas

  • RAG for Medical Context: The core innovation is using RAG not just for text generation, but to enrich predictive modeling by grounding LLM outputs with structured external medical knowledge (KG). This helps overcome LLM hallucination issues and injects crucial medical context.
  • Beyond Triples: Incorporating entity definitions and descriptions from the KG, in addition to relationships, provides a more comprehensive semantic understanding of the patient's condition.
  • Adaptive Cross-Attention Fusion: The proposed fusion network, utilizing cross-attention, effectively integrates information from disparate modalities (time-series, notes, and KG-enhanced summary), allowing for a more holistic patient representation.
  • Robustness to Data Sparsity: The framework demonstrates remarkable resilience even when trained with a very small percentage of the available data, which is a critical advantage in real-world clinical scenarios where data can be scarce.

Key Results

EMERGE consistently outperformed several state-of-the-art baseline models on both MIMIC-III and MIMIC-IV datasets for in-hospital mortality and 30-day readmission prediction tasks. For instance, on MIMIC-IV mortality prediction, EMERGE achieved an AUROC of 89.50±0.57, outperforming the best baseline (GraphCare) which achieved 89.13±0.57. Ablation studies confirmed the effectiveness of each component: using multiple modalities is better than single ones, the RAG-generated summary significantly boosts performance, and the proposed cross-attention fusion network is superior to simpler fusion methods.

Limitations and Future Work

  • LLM API Usage: The authors note that for some patients in MIMIC-III, LLM summarization failed due to content censor policies, and these were replaced with "None." This highlights a potential dependency on LLM availability and policy.
  • Computational Cost: While not explicitly detailed as a limitation, RAG frameworks and LLM usage can be computationally intensive.
  • Future Work: The paper suggests that EMERGE is a step towards more effective utilization of multimodal EHR data, implying that further refinements and applications of this approach are possible. The robustness to data sparsity also opens doors for applications in resource-limited settings.

Summary updated

BibTeX
@inproceedings{zhu2024emerge,
  author = {Yinghao Zhu and Changyu Ren and Zixiang Wang and Xiaochen Zheng and Shiyun Xie and Junlan Feng and Xi Zhu and Zhoujun Li and Liantao Ma and Chengwei Pan},
  title = {{EMERGE: Enhancing Multimodal Electronic Health Records Predictive Modeling with Retrieval-Augmented Generation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  url = {https://openreview.net/forum?id=Vy2ilfZ4nL},
}
Figure