MIPO: Mutual Integration of Patient Journey and Medical Ontology for Healthcare Representation Learning

Xueping Peng, Guodong Long, Tao Shen, Sen Wang, Chengqi Zhang, Allison Clarke, Clement Schlegel · DOI

TL;DR

This paper introduces MIPO, a novel framework that jointly learns from a patient's historical medical records (their "journey") and a medical knowledge graph (ontology). By mutually reinforcing these two information sources, MIPO significantly improves the accuracy of predicting future diagnoses, especially in data-scarce scenarios, and provides more interpretable medical code representations.

What Problem Does This Paper Address?

Electronic Health Records (EHRs) are a treasure trove of patient information, crucial for predicting future health outcomes. While deep learning models, particularly those based on Transformers and RNNs, have shown promise in learning from these sequential, time-stamped records, they often falter when data is limited. Existing approaches that try to incorporate medical ontologies (knowledge graphs) into these models face two main challenges: 1) the ontologies themselves can be too small or uniform to provide robust learning signals, and 2) they often neglect the critical temporal context and dependencies within a patient's medical history. This paper aims to bridge this gap by proposing a method that effectively integrates both the patient's journey and a richer understanding of medical knowledge.

Methods

MIPO employs a Transformer-based architecture with two core interactive modules:

  • Task-Specific Representation Learning Module (P-Encoder): This module uses stacked Transformer encoders to capture local dependencies within a patient's visit and long-term dependencies across multiple visits, essentially learning the "patient journey."
  • Graph-Embedding Module (V-Encoder): This module integrates information from both the patient's visit records and the medical ontology. It uses an attention-based graph embedding approach (similar to GRAM) to learn representations of medical codes and their hierarchical relationships within the ontology.

The key innovation lies in the mutual integration of these modules. MIPO trains the model using two jointly optimized objectives:

  1. Sequential Diagnosis Prediction: Predicting the next medical visit based on the learned patient journey representation.
  2. Ontology-based Disease Typing: Predicting the broader disease category based on the learned ontology representations.

This dual-task learning creates a feedback loop where the patient journey representation benefits from the structured medical knowledge, and the ontology embedding is informed by the real-world context of patient visits.

Datasets

The proposed MIPO model was evaluated on two real-world, publicly available EHR datasets:

  • MIMIC-III: A large, de-identified dataset of ICU patients, containing medical records from over 7,000 patients over 11 years. Diagnosis codes follow the ICD9 standard.
  • eICU: Another large, multi-center, de-identified EHR dataset comprising data from over 16,000 ICU patients across the US between 2014-2015.

The authors specifically selected patients with at least two visits to ensure sufficient data for sequential analysis.

Key Insights and Ideas

  • Synergy between Patient Journey and Medical Ontology: The core insight is that neither the patient's historical data nor the medical knowledge graph alone is sufficient. Their mutual integration, where each informs the other, leads to superior representation learning.
  • Addressing Data Insufficiency: The proposed approach is particularly effective when EHR data is limited. By leveraging the structured knowledge from ontologies, MIPO can still achieve robust predictions, outperforming models that rely solely on sequential data.
  • Hierarchical Learning: MIPO employs a hierarchical structure, with the V-Encoder focusing on medical code and ontology integration, and the P-Encoder capturing the broader patient journey. This layered approach allows for a more nuanced understanding of the data.
  • Interpretable Representations: Beyond predictive accuracy, MIPO's learned medical code embeddings are shown to be more interpretable, forming distinct clusters that align with medical categories. This is crucial for building trust and understanding in clinical applications.

Key Results

  • Superior Predictive Performance: MIPO consistently outperformed several baseline models (BRNN, RETAIN, Dipole, KAME, GRAM) on both MIMIC-III and eICU datasets for sequential diagnosis prediction. For instance, on MIMIC, MIPO improved precision by up to 5.94% and accuracy by up to 3.11% (at k=5) compared to KAME and GRAM.
  • Robustness under Data Scarcity: In experiments varying training data size from 20% to 80%, MIPO maintained its performance advantage, especially in the low-data regimes (20% and 40%), demonstrating its resilience to data insufficiency.
  • Interpretable Embeddings: Visualizations (using t-SNE) of learned medical code embeddings showed that MIPO produced 18 distinct, non-overlapping clusters corresponding to medical categories, indicating a more interpretable representation compared to models without knowledge graph integration.

Limitations and Future Work

  • Ontology Size and Diversity: While MIPO aims to leverage ontologies, the paper acknowledges that the diversity and richness of the ontology itself can still be a limiting factor. Future work could explore using more comprehensive or dynamically updated medical knowledge graphs.
  • Computational Cost: Transformer-based models can be computationally intensive. While MIPO shows strong performance, further optimization for efficiency might be beneficial.
  • Generalizability to Other Tasks: The current work focuses on diagnosis prediction. Extending MIPO to other healthcare prediction tasks (e.g., treatment recommendation, patient outcome prediction) would be a valuable future direction.
  • Clinical Validation: While interpretability is demonstrated, further clinical validation and expert review would be necessary to fully assess MIPO's real-world applicability.

Summary updated

BibTeX
@inproceedings{peng2025mipo,
  author = {Xueping Peng and Guodong Long and Tao Shen and Sen Wang and Chengqi Zhang and Allison Clarke and Clement Schlegel},
  title = {{MIPO: Mutual Integration of Patient Journey and Medical Ontology for Healthcare Representation Learning}},
  booktitle = {IJCNN},
  year = {2025},
  doi = {10.1109/ijcnn64981.2025.11228235},
}
Figure