Self-supervised Hierarchical Representation for Medication Recommendation

Yuliang Liang, Yuting Liu, Yizhou Dang, Enneng Yang, Guibing Guo, Wei Cai, Jianzhe Zhao, Xingwei Wang

TL;DR

This paper introduces HIER, a novel hierarchical encoder that leverages the inherent structure of medical codes (like diagnoses and procedures) to create richer patient representations for medication recommendation. By explicitly modeling the hierarchical relationships, HIER significantly improves recommendation accuracy and efficiency compared to existing methods that treat these codes as independent entities.

What Problem Does This Paper Address?

Medication recommendation systems aim to suggest appropriate drug combinations based on a patient's health history, typically derived from electronic health records (EHRs). A crucial aspect of EHRs is the representation of medical concepts like diagnoses and procedures. Current approaches often represent these concepts using one-hot encodings, which are then embedded into a low-dimensional space. While effective for many tasks, this method overlooks the inherent hierarchical structure present in medical coding systems like the International Classification of Diseases (ICD). For instance, "Respiratory Diseases" is a broader category that encompasses more specific conditions like "Chronic Respiratory Diseases" and further down to "Chronic Bronchitis." Ignoring this hierarchy leads to suboptimal generalization performance, as models fail to capture the relationships and commonalities between related medical terms. This paper addresses this gap by proposing a method to explicitly incorporate this hierarchical structure into patient representations.

Methods

The core contribution of this paper is the Hierarchical encoder (HIER), a plug-in module designed to replace traditional embedding layers in existing medication recommendation models. HIER has two main components:

  • Relation Embedding: This component captures the neighbor hierarchical relationships. It works by iteratively aggregating the embedding of a medical code with its parent codes in the hierarchy. This process, applied over multiple layers, creates a "relation embedding" that reflects the code's position relative to its ancestors. This aggregation is optimized using a self-supervised objective that encourages the embedding of a code to be closer to its parent's embedding and farther from a randomly selected code's embedding.
  • Position Encoding: This component captures the global hierarchical position. It achieves this by treating the medical code (e.g., "250.01") as a sequence of digits. Each digit is then converted into a one-hot encoding, and these are concatenated to form a multi-hot encoding. This encoding is then passed through a linear layer and a ReLU activation to adjust it to the desired dimension.

The final hierarchical representation is obtained by adding the relation embedding and the position encoding. This HIER module can be seamlessly integrated into various existing medication recommendation architectures without requiring significant modifications to the backbone.

Datasets

The paper uses two extensively used real-world clinical datasets for evaluation:

  • MIMIC-III: A widely used critical care database.
  • MIMIC-IV: A more recent, freely accessible electronic health record dataset.

The authors pre-process these datasets, filtering out patients with only one visit to ensure they reflect long-term health status and medication response. They also retain "tail" diagnoses and procedures to maintain a more realistic clinical setting. The data is split into training, validation, and test sets with an 8:1:1 ratio.

Key Insights and Ideas

  • Hierarchy Matters: The paper strongly demonstrates that explicitly modeling the hierarchical structure of medical codes (diagnoses and procedures) is crucial for improving medication recommendation. Existing methods that treat these codes as independent entities miss out on valuable relational information.
  • Self-Supervised Learning for Structure: The use of a self-supervised objective to optimize the relation embedding is a clever way to learn hierarchical relationships without requiring explicit labels for these relationships during the main recommendation task.
  • Complementary Nature of Relation and Position Encoding: The ablation study shows that both relation embedding and position encoding contribute to performance gains, with their combination yielding the best results. This suggests that capturing both local (parent-child) and global (position within the hierarchy) information is beneficial.
  • Improved Generalization: The HIER method not only improves accuracy but also leads to better convergence efficiency and enhanced generalization capabilities, as evidenced by the performance curves.

Key Results

  • Consistent Performance Improvement: HIER consistently improves the performance of four baseline models (RETAIN, GAMENet, SafeDrug, and MoleRec) across both MIMIC-III and MIMIC-IV datasets. For instance, it improved GAMENet by 5.66% in Jaccard score, 3.82% in F1 score, and 3.73% in PRAUC on MIMIC-III.
  • Reduced Drug-Drug Interactions (DDIs): While not directly optimized for, HIER also showed a tendency to reduce DDIs in certain cases, suggesting that better representations of patient conditions can lead to safer recommendations.
  • Faster Convergence: The proposed method significantly improves training convergence efficiency, with models continuing to improve beyond the point where baseline models start to overfit or stabilize.
  • Visual Evidence of Structure: t-SNE visualizations of embeddings clearly show that HIER creates distinct clusters for medical codes that correspond to their hierarchical categories, unlike traditional embeddings which exhibit a uniform distribution.

Limitations and Future Work

  • Limitations: The paper acknowledges that while HIER reduces DDIs, it does not directly target drug-drug interactions. The performance gains in DDI reduction are a secondary effect of improved patient representation.
  • Future Work: The authors plan to investigate the applicability of HIER across different healthcare applications beyond medication recommendation. They also aim to evaluate the model in diverse clinical settings to assess its generalizability and robustness.

Summary updated

BibTeX
@inproceedings{liang2024self,
  author = {Yuliang Liang and Yuting Liu and Yizhou Dang and Enneng Yang and Guibing Guo and Wei Cai and Jianzhe Zhao and Xingwei Wang},
  title = {{Self-supervised Hierarchical Representation for Medication Recommendation}},
  booktitle = {DASFAA},
  year = {2024},
}
Figure