Utilizing Large Language Models for Zero-Shot Medical Ontology Extension from Clinical Notes

Guanchen Wu, Yuzhang Xie, Huanwei Wu, Zhe He, Hui Shao, Xiao Hu, Carl YangarXiv 2025 · OpenReview

Abstract

Integrating novel medical concepts and relationships into existing ontologies can significantly enhance their coverage and utility for both biomedical research and clinical applications. Clinical notes, as unstructured documents rich with detailed patient observations, offer valuable context-specific insights and represent a promising yet underutilized source for ontology extension. Despite this potential, directly leveraging clinical notes for ontology extension remains largely unexplored. To address this gap, we propose CLOZE, a novel framework that uses large language models (LLMs) to automatically extract medical entities from clinical notes and integrate them into hierarchical medical ontologies. By capitalizing on the strong language understanding and extensive biomedical knowledge of pre-trained LLMs, CLOZE effectively identifies disease-related concepts and captures complex hierarchical relationships. The zero-shot framework requires no additional training or labeled data, making it a cost-efficient solution. Furthermore, CLOZE ensures patient privacy through automated removal of protected health information (PHI). Experimental results demonstrate that CLOZE provides an accurate, scalable, and privacy-preserving ontology extension framework, with strong potential to support a wide range of downstream applications in biomedical research and clinical informatics.

Introduction: The Challenge of Evolving Medical Knowledge

Medical ontologies serve as structured maps of medical knowledge, including diseases and symptoms, and are essential for clinical decision support and research. However, the rapid evolution of medical knowledge—exemplified by the COVID-19 pandemic—makes manual updates to these ontologies slow and labor-intensive. Clinical notes contain a wealth of new medical insights but present significant challenges: they are unstructured, contain sensitive Protected Health Information (PHI), and require complex hierarchical reasoning to integrate new terms correctly.

Existing methods often rely on rigid, non-scalable rules or supervised learning that requires expensive, human-labeled data. To overcome these barriers, researchers have developed CLOZE (CLinical Notes Ontology Zero-shot Extension), a framework designed to automate the extraction and integration of medical concepts into hierarchical ontologies without the need for task-specific training data.

The CLOZE Framework: A Two-Stage Pipeline

CLOZE utilizes a two-stage pipeline powered by Large Language Models (LLMs) and specialized biomedical embeddings to extend ontologies in a zero-shot manner. This approach avoids the need for massive labeled datasets while maintaining high accuracy.

The CLOZE two-stage pipeline for medical entity extraction and hierarchical ontology extension.

1. Medical Entity Extraction

The first stage focuses on identifying relevant concepts while preserving patient privacy. A De-identification Agent (using LLaMA-3-70B) masks PHI to ensure HIPAA compliance. Subsequently, an Entity-extraction Agent acts as a clinical expert to extract a deduplicated list of disease-related entities from the de-identified text.

2. Hierarchical Ontology Extension

The core innovation of CLOZE is its recursive approach to placing new entities within a hierarchy. Rather than a single-step placement, which is prone to hallucinations, CLOZE employs a hybrid strategy:

  • Semantic Matching: SapBERT, a specialized biomedical language model, identifies "anchor nodes" in the existing ontology.
  • Relation Determination: An LLM classifies the relationship between the new entity and the anchor node as Equivalence (synonym), Subsetting (more specific child), or Neither.
  • Recursive Search: If a "Subsetting" relationship is identified, the system moves down the hierarchy to find the precise insertion point, maintaining the ontology's structural integrity.

Experimental Evaluation

The framework was evaluated using a dataset of 100 expert-annotated clinical notes from a major U.S. hospital and the Disease Ontology (DO) as the base structure.

Key Results

CLOZE demonstrated superior performance in both extraction and placement tasks. The extraction agent outperformed standard biomedical NLP tools like Stanza and BioEN across multiple similarity thresholds, as shown in the table below.

Comparison of extraction performance (Precision, Recall, F1) between CLOZE (LLM) and baseline tools Stanza and BioEN at various thresholds.

In the ontology extension task, the CLOZE framework achieved a precision of 79.6%, significantly outperforming "one-time" LLM prompting (38.8%) and flat hierarchical baselines. Blind reviews by medical terminology experts further validated the framework, with CLOZE receiving top ratings for relevance and accuracy, nearly doubling the performance of the next best baseline.

Discussion and Future Work

CLOZE demonstrates that high-level medical reasoning can be performed locally using open-weights models like LLaMA-3-70B, ensuring data privacy without relying on external APIs. While the recursive search provides a logical trace of decisions, it increases computational costs due to multiple LLM calls per entity. Future work will aim to expand the framework's scope to include symptoms and medications, and improve the transparency of automated decisions for clinical auditing.

Summary updated

BibTeX
@misc{wu2025utilizing,
  author = {Guanchen Wu and Yuzhang Xie and Huanwei Wu and Zhe He and Hui Shao and Xiao Hu and Carl Yang},
  title = {{Utilizing Large Language Models for Zero-Shot Medical Ontology Extension from Clinical Notes}},
  year = {2025},
  eprint = {2511.16548},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.16548},
}
Figure