Knowledge Guided Multi-instance Multi-label Learning via Neural Networks in Medicines Prediction

Junyuan Shang, Shenda Hong, Yuxi Zhou, Meng Wu, Hongyan Li

Abstract

Automated medicine prescription is a critical yet challenging task in healthcare, particularly for patients with multiple co-occurring conditions (co-morbidity). Traditional machine learning models often struggle with the complex dependencies between diseases and the inherent skewness of clinical data. This paper proposes KG-MIML-Net, a novel deep learning framework that integrates structural medical knowledge and personalized contextual data. By utilizing hierarchical disease ontologies and patient-specific lab results, KG-MIML-Net significantly improves the accuracy of multi-drug prescriptions, outperforming existing state-of-the-art models by over 4% on real-world clinical datasets.

Introduction

In modern clinical practice, patients often present with multiple diagnoses, necessitating a "drug cocktail" rather than a single medication. Determining the optimal combination of medicines is a high-stakes task that requires understanding the intricate relationships between various diseases and their treatments. Automated systems for medicine prediction aim to assist clinicians in this process, but they face significant hurdles, including the hierarchical nature of medical diagnoses and the extreme imbalance in disease prevalence across patient populations.

The Challenge of Clinical Data Skewness

One of the primary obstacles in automated prescription is the "long-tail" distribution of medical codes. In clinical datasets, a small number of conditions are extremely common, while thousands of others appear only rarely. This data skewness makes it difficult for standard models to generalize across the full spectrum of possible diagnoses.

Figure 5: The long-tail distribution of diagnosis categories in clinical data, highlighting the data skewness problem.

Standard neural networks typically fail to learn robust representations for these rare diseases, leading to poor prescription performance for less common conditions. To address this, the authors of KG-MIML-Net propose moving beyond simple pattern matching by "guiding" the network with external medical knowledge.

The KG-MIML-Net Framework

The proposed framework is built upon an RNN Encoder-Decoder architecture (using LSTMs), enhanced with three specialized modules designed to incorporate different types of medical knowledge:

1. Tree Embedding Module (Structural Knowledge)

To mitigate the impact of data skewness, the model utilizes the ICD-9 ontology—a hierarchical classification of diseases. Instead of treating each disease code as an independent entity, the Tree Embedding Module learns representations based on the code's position in the hierarchy.

Figure 6: The hierarchical structure of ICD-9 codes used in the Tree Embedding Module to share information between common and rare diseases.

As shown in Figure 6, a rare disease (a leaf node) can inherit information from its broader parent categories (ancestor nodes). For example, a specific type of ischemic heart disease (414.01) shares features with its parent category (414). This structural prior ensures that the model maintains predictive power even for diseases it has rarely encountered during training.

2. Contextual Layer (Personalized Knowledge)

Diagnosis codes alone do not provide a complete picture of a patient's health. KG-MIML-Net incorporates a contextual layer that injects real-time physiological data—such as age, weight, and lab results (e.g., albumin levels or anion gaps)—directly into the decoding process. This allows the model to personalize the prescription based on the patient's actual physiological state.

3. Residual-Supervised Attention

Recognizing that not all diagnoses in a patient's record are equally critical, the model employs an attention mechanism supervised by "severity" weights. This helps the encoder focus on the most severe or clinically significant conditions when generating the drug list.

Experimental Evaluation

The researchers evaluated KG-MIML-Net using the MIMIC-III dataset, which contains de-identified health records from over 46,000 critical care patients. The model was tasked with predicting the set of medicines prescribed within the first 24 hours of a hospital stay, focusing on a filtered set of 2,000 diagnoses and 306 medicines.

The primary performance metric was the Jaccard similarity score, which measures the overlap between predicted and actual prescriptions. KG-MIML-Net achieved a score of 0.3466, representing a 4.4% improvement over the previous state-of-the-art model, Leap (0.3026), and a substantial gain over standard multi-layer perceptrons (0.2187). Ablation studies revealed that while all modules contributed to the performance, the Contextual Layer provided the most significant individual boost, highlighting the importance of personalized patient data.

Conclusion and Future Work

KG-MIML-Net demonstrates that integrating structural and contextual knowledge into deep learning models can significantly enhance the accuracy of automated medicine prediction. By leveraging medical ontologies to overcome data scarcity and using lab results for personalization, the framework provides a more robust and clinically relevant approach to prescription.

While the model is a significant step forward, the authors identify several areas for future improvement. These include incorporating explicit drug-drug interaction (DDI) checks to ensure safety, utilizing longitudinal patient history beyond the first 24 hours, and exploring more sophisticated search strategies like beam search for drug set generation.

Summary updated

BibTeX
@inproceedings{shang2018knowledge,
  author = {Junyuan Shang and Shenda Hong and Yuxi Zhou and Meng Wu and Hongyan Li},
  title = {{Knowledge Guided Multi-instance Multi-label Learning via Neural Networks in Medicines Prediction}},
  booktitle = {ACML},
  year = {2018},
}
Figure