OSCAR: Ontology-Grounded Semantic Retrieval of Heterogeneous Clinical EHR Datasets

Haemin Lee, Yining Yuan, Yifei Wang, Xiangbo Zhang, Sandeep John Philip, J. Ben Tamo, Micky C. Nnamdi, Jieru Li, Yishan Zhong, May Dongmei WangBHI 2026

TL;DR

Finding the right public clinical dataset for a medical research question is surprisingly manual, mostly because every hospital database names its tables and columns differently. OSCAR solves this by mapping raw database schemas into a shared vocabulary of standardized clinical concepts—without touching any patient data—and using two lightweight graphs to match both explicit and implied clinical needs. On a benchmark of six major ICU datasets, this simple semantic abstraction boosts retrieval accuracy (NDCG@3) from 0.645 (BioBERT) to 0.832, with graph reasoning pushing top-rank precision even higher.

What Problem Does This Paper Address?

Imagine you are a clinical researcher who wants to study how fluid overload affects acute kidney injury. You know there are massive public ICU databases out there—like MIMIC-IV, eICU, or AmsterdamUMCdb—but which ones actually have the variables you need?

Today, answering that question means manually reading data dictionaries. Automated keyword search fails because of schema heterogeneity: clinically identical concepts are named completely differently across repositories. For example, microbiology culture results are called microbiologyevents in MIMIC-IV, microLab in eICU-CRD, and microbiologyresults in AmsterdamUMCdb. Even modern dense text embeddings (like BioBERT) treat schemas as flat text and miss implicit clinical relationships—like knowing that a query about acute kidney injury progression implicitly requires fluid balance and renal function labs, even if the researcher never typed those words.

Methods

OSCAR (Ontology-grounded Semantic Clinical dAtaset Retrieval) sidesteps full, expensive data harmonization by operating purely on schema metadata (table names, column names, and field descriptions).

Fig. 1. Overview of OSCAR. Offline, raw EHR schema metadata are normalized into OMOP-style clinical entity sets, which are used to build a semantic entity graph (entity co-occurrence) and a dataset overlap graph (schema similarity across datasets). At query time, a clinical question is mapped to clinical entities, expanded through the semantic entity graph to retrieve candidates, and re-ranked by dataset-level overlap support.
  1. Offline Semantic Entity Abstraction: Using GPT-4 (with manual expert review) and the OMOP Common Data Model as a reference, OSCAR maps each dataset's raw schema into a shared vocabulary of 91 OMOP-style clinical entities (e.g., demographics, labs, microbiology, ventilation). This runs once offline—no LLM calls are needed at query time.
  2. Two Schema-Derived Graphs:
  3. Semantic Entity Graph ($G_{\text{entity}}$): Connects clinical entities that frequently co-occur across datasets, allowing the system to infer related concepts.
  4. Dataset Overlap Graph ($G_{\text{overlap}}$): Connects datasets based on the Jaccard similarity of their entity sets.
  5. Online Two-Stage Retrieval:
  6. Stage 1 (Query-Guided Entity Matching): A natural-language query is encoded with PubMedBERT-MS-MARCO to find the top-$k$ matching seed entities. OSCAR then expands these seeds 1-hop and 2-hop through $G_{\text{entity}}$ (with decaying weights) to recover implied clinical requirements, scoring datasets by their coverage.
  7. Stage 2 (Overlap-Aware Re-ranking): The top-$K$ candidate datasets are gently re-ranked using $G_{\text{overlap}}$ as a local consistency signal, ensuring broad dataset similarity supports—but never overrides—query-specific relevance.

Datasets

  • Clinical EHR Benchmark: The authors evaluate on six public ICU/EHR datasets using only their raw schema CSVs: AmsterdamUMCdb, eICU-CRD, HiRID, MIMIC-IV, PIC, and SICdb.
  • Queries & Judgments: They introduce a benchmark of 36 clinical queries across six categories (Direct, Indirect, Multi-domain, Rare feature, Temporal, and Comparative), with 216 query-dataset relevance labels (0/1/2 scale) generated by GPT-4 and audited by two expert reviewers.
  • External Generalization: To test whether the approach generalizes beyond healthcare, they also evaluate on ScienceAgentBench (102 scientific analysis tasks across 76 dataset folders, with ground-truth dataset names masked).

Key Insights and Ideas

  • Semantic abstraction does the heavy lifting: Simply mapping heterogeneous schema terms into a shared clinical entity space accounts for the largest jump in performance—far more than using stronger text embeddings on raw schema text.
  • Graphs are best used selectively: Using the dataset overlap graph alone hurts performance (two datasets can share many entities yet differ on a specific query). Combining both graphs in a single stage also muddies the ranking. Separating them into entity-based candidate generation followed by overlap-based re-ranking gives the best balance.
  • Graph expansion shines on implicit queries: When a researcher states a clinical goal rather than exact variable names (e.g., "fluid overload and acute kidney injury"), 2-hop expansion on $G_{\text{entity}}$ recovers the latent lab and fluid-balance requirements.

Key Results

  • Overall Performance: Entity overlap alone raises NDCG@3 from 0.645 (BioBERT) to 0.832 (and 0.846 with IDF weighting). Full OSCAR achieves the best top-rank precision, with MRR = 0.850, Hit@1 = 0.778, and NDCG@6 = 0.915.
  • Category Breakdown: On Indirect queries, graph expansion boosts NDCG@3 from 0.884 to 0.928 and achieves a perfect 1.000 MRR.
  • External Generalization: On ScienceAgentBench, OSCAR outperforms TF-IDF and BM25 across all metrics (e.g., 0.647 Hit@1 and 0.759 MRR vs. BM25's 0.628 and 0.737), showing promise beyond clinical schemas.

Limitations and Future Work

  • Rare-Feature Bottleneck: Queries asking for highly specialized variables (like intraoperative vitals or high-frequency waveforms) are the hardest to retrieve (only 1/6 Top-1), because those concepts are underrepresented in the 91-entity vocabulary.
  • Schema Size Bias: Datasets with fewer normalized entities (like AmsterdamUMCdb) can be under-ranked despite high relevance, as graph-based scoring naturally favors denser entity connectivity.
  • Future Directions: The authors plan to expand the shared entity vocabulary, incorporate dataset-specific rare-feature descriptors, and test rarity-aware graph weighting across larger, more diverse clinical repositories.

Summary updated

BibTeX
@inproceedings{lee2026oscar,
  author = {Haemin Lee and Yining Yuan and Yifei Wang and Xiangbo Zhang and Sandeep John Philip and J. Ben Tamo and Micky C. Nnamdi and Jieru Li and Yishan Zhong and May Dongmei Wang},
  title = {{OSCAR: Ontology-Grounded Semantic Retrieval of Heterogeneous Clinical EHR Datasets}},
  booktitle = {BHI},
  year = {2026},
  url = {https://openreview.net/forum?id=E8PR4Dpr7D},
}
Figure