Abstract
Knowledge Graph Completion (KGC) is a critical task in the medical domain, where relationships between symptoms, diseases, and treatments are often incomplete. Traditional path-based reasoning methods struggle with the "long-tail" distribution of medical data, where rare entities and paths appear infrequently, leading to poor generalization. This paper introduces a novel approach that leverages the pre-trained BERT language model to encode textual descriptions of entities and relationships. By converting symbolic paths into natural language templates, the model transforms reasoning into a semantic computing task. Experimental results on the Chinese Symptom Knowledge Graph (CSKG) demonstrate a 5.83% improvement over previous state-of-the-art methods, achieving a Mean Average Precision (MAP) of 54.52%.
Introduction
Knowledge Graphs (KGs) serve as the backbone for modern medical AI applications, including clinical decision support and automated diagnosis. However, these graphs are inherently incomplete. Medical Knowledge Graph Completion (MedKGC) aims to predict missing triples (head entity, relation, tail entity) to enrich these knowledge bases.
Path-based reasoning is a prominent technique for MedKGC, utilizing the multi-hop chains of connections between entities to infer direct relationships. For instance, a path connecting a disease to a symptom and then to a department can suggest a direct link between the disease and that department. However, the effectiveness of these models is often hampered by the "sparsity" problem.
The Challenge of Data Sparsity
Medical data typically follows a long-tail distribution. In the Chinese Symptom Knowledge Graph (CSKG), a significant portion of the data is extremely sparse. Specifically, over 35% of entities and 41% of paths appear only once in the entire dataset.
Traditional models treat these paths as unique symbolic IDs. When a model encounters a rare path during testing that it did not see during training, it lacks the necessary context to interpret it. This "out-of-vocabulary" issue for paths makes symbolic reasoning fragile in specialized medical domains.
Methodology
To overcome the limitations of symbolic IDs, this research proposes shifting the reasoning framework toward textual semantics using the BERT (Bidirectional Encoder Representations from Transformers) model. The methodology consists of two primary components:
1. BERT Enhanced Entity Representation
Instead of relying solely on entity IDs, the model utilizes BERT to encode the textual descriptions of entities. For example, an entity like "Jujube Bark" is represented by its semantic description ("drug, traditional Chinese medicine"). This allows the model to map rare entities into a shared semantic space where their functional similarities (e.g., both being "drugs") can be recognized and leveraged.
2. BERT Enhanced Path Representation
The core contribution of this work is the conversion of symbolic paths into natural language sentences using predefined templates. A path consisting of multiple nodes and relations is transformed into a readable sentence.
As shown in the figure above, a path might be translated as: "The related symptom of anomalous pulmonary venous drainage is respiratory distress, and the related department of respiratory distress is respiratory medicine." BERT encodes these sentences into vectors, allowing the model to perform reasoning based on the linguistic meaning of the path rather than an abstract ID. An attention mechanism is then applied to weigh the most relevant paths when making a final prediction.
Experimental Results
The proposed model was evaluated on the CSKG dataset, which contains over 629,000 triples and 59,000 entities. The BERT-enhanced path representation model achieved a Mean Average Precision (MAP) of 54.52%, outperforming the previous state-of-the-art (48.85%) by a margin of 5.83%.
Key findings include:
- Superiority over Baselines: The model outperformed the traditional Path Ranking Algorithm (PRA) by 10.74%.
- Complex Reasoning: In specific categories such as "disease-related body parts," the model showed a 22.42% improvement, indicating that textual semantics are particularly effective for complex anatomical and clinical reasoning.
- Interpretability: By using attention weights on human-readable sentences, the model provides a level of transparency, allowing researchers to verify the clinical logic behind a predicted link.
Conclusion and Future Work
By bridging the gap between symbolic reasoning and natural language processing, this research provides a robust solution to the sparsity problem in medical KGs. While the use of BERT introduces higher computational costs, the gains in accuracy and generalizability are substantial. Future research will focus on knowledge distillation to create more efficient versions of the model and exploring the integration of graph structural topology with textual information for even deeper reasoning capabilities.
Summary updated