HeteroMed: Heterogeneous Information Network for Medical Diagnosis

Anahita Hosseini, Ting Chen, Wenjun Wu, Yizhou Sun, Majid Sarrafzadeh

TL;DR

HeteroMed moves beyond treating Electronic Health Records (EHR) as simple sequences of events, instead modeling them as a Heterogeneous Information Network (HIN). By leveraging "metapaths" to capture complex semantic relationships between patients, symptoms, and treatments, the model achieves state-of-the-art accuracy in automated disease diagnosis and handles missing data more robustly than traditional methods.

What Problem Does This Paper Address?

Automated medical diagnosis using EHR data is notoriously difficult due to three main factors:

  1. Heterogeneity: EHRs contain a mix of structured data (lab results, medications), categorical data (gender, ethnicity), and unstructured text (clinical notes).
  2. Missing Values: Clinical data is rarely complete; a patient might not receive a specific test, creating "holes" that break traditional machine learning models.
  3. Semantic Complexity: Existing models often use "skip-gram" approaches (borrowed from NLP) that treat clinical events like words in a sentence. This captures co-occurrence but ignores the nature of the relationship. For example, a lab test and a diagnosis are fundamentally different entities, and their relationship carries specific medical meaning that simple co-occurrence models miss.

Methods

The authors introduce HeteroMed, which represents EHR data as a graph where nodes are patients and clinical events, and edges represent their relationships.

1. HIN Construction & Symptom Extraction

The authors don't just use raw codes. They use AutoPhrase (a phrase mining tool) to extract high-quality symptoms from unstructured nurse notes. They also discretize numerical data (e.g., binning ages or flagging lab results as "normal" vs. "abnormal") to turn them into distinct nodes in the network.

2. Metapaths

To capture higher-level medical logic, HeteroMed uses metapaths—predefined templates for walks through the graph. For example:

  • Patient → Symptom ← Patient: Identifies patients with similar clinical presentations.
  • Symptom → Patient → Prescription: Learns similarities between symptoms that lead to the same treatment.

3. Joint Embedding Framework

The core of HeteroMed is a dual-objective learning process:

  • Unsupervised Component: Learns the general structure of the medical network by predicting node neighborhoods based on metapaths.
  • Supervised Component: Uses a "hinge loss" ranking objective to specifically tailor these embeddings for diagnosis. It ensures that a patient’s representation is mathematically closer to their actual diagnosis codes than to incorrect ones.

Datasets

The study utilizes the MIMIC-III (Medical Information Mart for Intensive Care III) dataset, a standard benchmark in healthcare AI.

  • Scope: Data from ~46,000 patient stays at BIDMC hospital over 11 years.
  • Features: The authors pulled from tables covering procedures, prescriptions, microbiology, lab events, and discharge summaries.
  • Split: 36,641 stays for training and 10,000 for testing.

Key Insights and Ideas

  • Relations > Co-occurrence: The "aha moment" is that the type of connection matters. By forcing the model to follow specific metapaths (like linking a lab to a diagnosis), the embeddings become semantically richer than those generated by random walks.
  • Missing Data as a Feature: In a network-based approach, missing data isn't a "null value" to be imputed; it’s simply the absence of an edge. The model can still learn from the edges that do exist without the bias introduced by traditional imputation.
  • Treatment as a Signal for Diagnosis: Even though treatments occur after a diagnosis is made, the authors found that including treatment nodes in the unsupervised embedding phase significantly improved the model's ability to represent the pre-treatment symptoms and labs.

Key Results

HeteroMed was evaluated on two tasks: exact ICD-9 code prediction and general disease cohort prediction.

  • Exact Code Prediction: HeteroMed achieved a MAP@3 of 0.81, significantly outperforming the popular Med2vec (0.75) and standard skip-gram models (0.73).
  • Cohort Prediction: The model outperformed "Deep Mimic" (a deep learning baseline) and shallow models (Random Forest) across almost all 20 high-level disease categories.
  • Qualitative Superiority: In similarity searches, HeteroMed correctly identified "peripheral neuropathy" as highly related to Diabetes, whereas standard skip-gram models returned more generic or less relevant terms like "dietary change."

Limitations and Future Work

  • Temporal Dynamics: While HeteroMed captures complex relationships, it treats a patient stay as a static snapshot. It does not explicitly model the sequence or timing of events (e.g., Symptom A happened 2 hours before Lab B), which is a strength of Recurrent Neural Networks (RNNs).
  • Static Metapaths: The metapaths used in this study were manually selected based on clinical intuition. Future work could involve automated metapath discovery to find non-obvious relationships.
  • Broadening Scope: The authors suggest extending the network to include time-series data (like heart rate monitors) and using the model to suggest treatments alongside diagnoses.

Summary updated

BibTeX
@inproceedings{hosseini2018heteromed,
  author = {Anahita Hosseini and Ting Chen and Wenjun Wu and Yizhou Sun and Majid Sarrafzadeh},
  title = {{HeteroMed: Heterogeneous Information Network for Medical Diagnosis}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2018},
  url = {https://openreview.net/forum?id=FWU3Emr6T4rw},
}

Loading related content...

Figure