LeafAI: query generator for clinical cohort discovery rivaling a human programmer
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 76
- 2020Don't Parse, Generate! A Sequence to Sequence Architecture for Task-Oriented Semantic Parsingcited by 59
- 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
- 2020Knowledge Graph-based Question Answering with Electronic Health Recordscited by 19
- 2019Improving Semantic Parsing for Task Oriented Dialogcited by 15
- 2021Question Answering for Complex Electronic Health Records Database using Unified Encoder-Decoder Architecturecited by 9
- 2022The Leaf Clinical Trials Corpus: a new resource for query generation from clinical trial eligibility criteriacited by 9
- 2020Patient Cohort Retrieval using Transformer Language Modelscited by 7
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 4.
8 papers.
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Imagescited by 53
- 2024PhenoFlow: A Human-LLM Driven Visual Analytics System for Exploring Large and Complex Stroke Datasetscited by 9
- 2024Generalizable and Scalable Multistage Biomedical Concept Normalization Leveraging Large Language Modelscited by 7
- 2025Automated Survey Collection with LLM-based Conversational Agentscited by 6
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2025Natural Language Processing in Support of Evidence-based Medicine: A Scoping Reviewcited by 2
- 2024CACER: Clinical Concept Annotations for Cancer Events and Relationscited by 1
- 2025Large Language Model-Based Agents for Automated Research Reproducibility: An Exploratory Study in Alzheimer's Diseasecited by 0
- 2025Large Language Model-Based Agents for Automated Research Reproducibility: An Exploratory Study in Alzheimer's Disease29 May 2025
- 2025Natural Language Processing in Support of Evidence-based Medicine: A Scoping Review28 May 2025
- 2025Automated Survey Collection with LLM-based Conversational Agents2 Apr 2025
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
- 2024CACER: Clinical Concept Annotations for Cancer Events and Relations5 Sep 2024
- 2024PhenoFlow: A Human-LLM Driven Visual Analytics System for Exploring Large and Complex Stroke Datasets23 Jul 2024
- 2024Generalizable and Scalable Multistage Biomedical Concept Normalization Leveraging Large Language Models24 May 2024
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images28 Oct 2023
Similar, not cited
Close in wording, no citation either way
- 2026Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL
- 2023CohortGPT: An Enhanced GPT for Participant Recruitment in Clinical Study
- 2025AI-assisted workflow enables rapid, high-fidelity breast cancer clinical trial eligibility prescreening
- 2025TrialMatchAI: An End-to-End AI-powered Clinical Trial Recommendation System to Streamline Patient-to-Trial Matching
- 2023Large Language Models with Retrieval-Augmented Generation for Zero-Shot Disease Phenotyping
- 2025EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases
- 2023Improving Patient Pre-screening for Clinical Trials: Assisting Physicians with Large Language Models