mlsanityData to 7 Oct 2026

LeafAI: query generator for clinical cohort discovery rivaling a human programmer

arXiv 2304.06203 ↗First posted 13 Apr 2023cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Objective: Identifying study-eligible patients within clinical databases is a critical step in clinical research. However, accurate query design typically requires extensive technical and biomedical expertise. We sought to create a system capable of generating data model-agnostic queries while also providing novel logical reasoning capabilities for complex clinical trial eligibility criteria. Materials and Methods: The task of query creation from eligibility criteria requires solving several text-processing problems, including named entity recognition and relation extraction, sequence-to-sequence transformation, normalization, and reasoning. We incorporated hybrid deep learning and rule-based modules for these, as well as a knowledge base of the Unified Medical Language System (UMLS) and linked ontologies. To enable data-model agnostic query creation, we introduce a novel method for tagging database schema elements using UMLS concepts. To evaluate our system, called LeafAI, we compared the capability of LeafAI to a human database programmer to identify patients who had been enrolled in 8 clinical trials conducted at our institution. We measured performance by the number of actual enrolled patients matched by generated queries. Results: LeafAI matched a mean 43% of enrolled patients with 27,225 eligible across 8 clinical trials, compared to 27% matched and 14,587 eligible in queries by a human database programmer. The human programmer spent 26 total hours crafting queries compared to several minutes by LeafAI. Conclusions: Our work contributes a state-of-the-art data model-agnostic query generation system capable of conditional reasoning using a knowledge base. We demonstrate that LeafAI can rival an experienced human programmer in finding patients eligible for clinical trials.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 10 of its 78 references that are in the map. First posted on arXiv 13 Apr 2023.

Builds on

10 of 78 references.

References · 10

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 76
  4. 2020Don't Parse, Generate! A Sequence to Sequence Architecture for Task-Oriented Semantic Parsingcited by 59
  5. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  6. 2020Knowledge Graph-based Question Answering with Electronic Health Recordscited by 19
  7. 2019Improving Semantic Parsing for Task Oriented Dialogcited by 15
  8. 2021Question Answering for Complex Electronic Health Records Database using Unified Encoder-Decoder Architecturecited by 9
  9. 2022The Leaf Clinical Trials Corpus: a new resource for query generation from clinical trial eligibility criteriacited by 9
  10. 2020Patient Cohort Retrieval using Transformer Language Modelscited by 7

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 4.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL
  2. 2023CohortGPT: An Enhanced GPT for Participant Recruitment in Clinical Study
  3. 2025AI-assisted workflow enables rapid, high-fidelity breast cancer clinical trial eligibility prescreening
  4. 2025TrialMatchAI: An End-to-End AI-powered Clinical Trial Recommendation System to Streamline Patient-to-Trial Matching
  5. 2023Large Language Models with Retrieval-Augmented Generation for Zero-Shot Disease Phenotyping
  6. 2025EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases
  7. 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases
  8. 2023Improving Patient Pre-screening for Clinical Trials: Assisting Physicians with Large Language Models