PrTransH: Embedding Probabilistic Medical Knowledge from Real World EMR Data

Linfeng Li, Peng Wang, Yao Wang, Jinpeng Jiang, Buzhou Tang, Jun Yan, Shenghui Wang, Yuting LiuarXiv 2019

Introduction

Knowledge Graph (KG) embedding models typically represent relationships as binary facts—either a triplet exists or it does not. While this deterministic approach works for general knowledge, it is often insufficient for the medical domain. In healthcare, relationships are inherently probabilistic; for instance, a specific symptom may only manifest in a fraction of patients diagnosed with a particular disease. Standard models like TransE or TransH, which minimize geometric distance between entities, struggle to capture this uncertainty. This paper introduces PrTransX, a framework designed to embed the statistical probability of medical relationships directly into vector representations.

Methodology

The PrTransX framework enhances existing translation-based models (TransE, TransH, TransR, etc.) by incorporating two key innovations: a mapping function and a probability-aware loss function.

Mapping Geometric Distance to Probability

The core of PrTransX is a mathematical mapping function, $\Phi$, which translates the "score" (the geometric distance between head and tail entities in the embedding space) into a probability value between 0 and 1. This allows the model to quantify the likelihood of a relationship based on its spatial positioning.

Probability-Based Loss Function

Unlike traditional margin-based loss functions that only rank true triplets above false ones, PrTransX introduces a loss component that penalizes discrepancies between the model's predicted probability and the actual statistical probability derived from raw Electronic Medical Record (EMR) data. This ensures that the embeddings reflect the real-world frequency of medical events.

Improved Negative Sampling

To further refine the model, the authors improved the negative sampling process. Instead of randomly swapping entities to create "false" facts, they utilized medical domain knowledge (ICD-10 hierarchies) to ensure that valid medical subtypes were not incorrectly labeled as false relationships during training.

Knowledge Graph Construction

The construction of the probabilistic KG involves extracting triplets from unstructured EMR data and aggregating them to determine relationship strengths.

Extraction and aggregation of EMR data into probabilistic triplets.

As illustrated in the figure above, multiple visit records are processed to identify common associations (e.g., disease to symptom). The frequency of these associations across the dataset determines the final probability assigned to each triplet in the knowledge graph. This approach treats uncertainty as a core feature to be learned rather than noise to be removed.

Experimental Setup

The study utilized a massive dataset from Southwest Hospital in China, comprising over 10 million EMR documents from 3.7 million patients. The resulting KG contains 258,333 triplets across categories such as Disease, Medicine, Symptom, and Laboratory tests. To ensure rigorous evaluation, a "gold standard" set of 335 triplets was manually verified by medical experts.

Results and Discussion

PrTransX consistently outperformed deterministic baselines across all tested algorithms. Key findings include:

  • Improved Ranking: PrTransR achieved a Hits@10 score of 63.2%, a significant increase over the 51.6% achieved by standard TransR.
  • Reduced Mean Rank: The Mean Rank for TransD improved from 74.6 to 49.9, indicating that probabilistic logic helps the model better organize the entity space.
  • Specificity Advantage: The model showed superior performance on specific relations (e.g., disease_to_operation) compared to broader ones (e.g., disease_to_examination), suggesting that medical logic constraints enhance embedding precision.

Conclusion

By treating uncertainty as a fundamental feature, PrTransX provides a more accurate representation of medical knowledge than traditional deterministic models. Future work will focus on integrating these probabilistic embeddings into Clinical Decision Support Systems (CDSS) to evaluate their utility in real-time diagnostic environments.

Summary updated

BibTeX
@misc{li2019prtransh,
  author = {Linfeng Li and Peng Wang and Yao Wang and Jinpeng Jiang and Buzhou Tang and Jun Yan and Shenghui Wang and Yuting Liu},
  title = {{PrTransH: Embedding Probabilistic Medical Knowledge from Real World EMR Data}},
  year = {2019},
  eprint = {1909.00672},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.00672},
}
Figure