EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases
Not on the map. Why?
Abstract (arXiv)
Machine learning models for clinical prediction rely on structured data extracted from Electronic Medical Records (EMRs), yet this process remains dominated by hardcoded, database-specific pipelines for cohort definition, feature selection, and code mapping. These manual efforts limit scalability, reproducibility, and cross-institutional generalization. To address this, we introduce EMR-AGENT (Automated Generalized Extraction and Navigation Tool), an agent-based framework that replaces manual rule writing with dynamic, language model-driven interaction to extract and standardize structured clinical data. Our framework automates cohort selection, feature extraction, and code mapping through interactive querying of databases. Our modular agents iteratively observe query results and reason over schema and documentation, using SQL not just for data retrieval but also as a tool for database observation and decision making. This eliminates the need for hand-crafted, schema-specific logic. To enable rigorous evaluation, we develop a benchmarking codebase for three EMR databases (MIMIC-III, eICU, SICdb), including both seen and unseen schema settings. Our results demonstrate strong performance and generalization across these databases, highlighting the feasibility of automating a process previously thought to require expert-driven design. The code will be released publicly at https://github.com/AITRICS/EMR-AGENT/tree/main. For a demonstration, please visit our anonymous demo page: https://anonymoususer-max600.github.io/EMR_AGENT/
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 47 references that are in the map. First posted on arXiv 1 Oct 2025.
Builds on
28 of 47 references.
References · 28
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 350
- 2017Multitask learning and benchmarking with clinical time series datacited by 287
- 2021Multi-Time Attention Networks for Irregularly Sampled Time Seriescited by 234
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2024Is Your LLM Secretly a World Model of the Internet? Model-Based Planning for Web Agentscited by 144
- 2019Set Functions for Time Seriescited by 137
16 more
- 2019MIMIC-Extract: A Data Extraction, Preprocessing, and Representation Pipeline for MIMIC-IIIcited by 121
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 101
- 2021Self-Supervised Transformer for Sparse and Irregularly Sampled Multivariate Clinical Time-Seriescited by 96
- 2023Time Series as Images: Vision Transformer for Irregularly Sampled Time Seriescited by 79
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 75
- 2023Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Eventscited by 46
- 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 42
- 2019Benchmarking machine learning models on multi-centre eICU critical care datasetcited by 35
- 2023Yet Another ICU Benchmark: A Flexible Multi-Center Framework for Clinical MLcited by 28
- 2023Learning Missing Modal Electronic Health Records with Unified Multi-modal Data Embedding and Modality-Aware Attentioncited by 25
- 2021Unifying Heterogeneous Electronic Health Records Systems via Text-Based Code Embeddingcited by 24
- 2023Clairvoyance: A Pipeline Toolkit for Medical Time Seriescited by 12
- 2024ACES: Automatic Cohort Extraction System for Event-Stream Datasetscited by 8
- 2024LG AI Research & KAIST at EHRSQL 2024: Self-Training Large Language Models with Pseudo-Labeled Unanswerable Questions for a Reliable Text-to-SQL System on EHRscited by 7
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Recordscited by 5
- 2022Self-Supervised Predictive Coding with Multimodal Fusion for Patient Deterioration Prediction in Fine-grained Time Resolutioncited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026EMR: Self-Evolving Medical Multi-Agent System via Experience Mining and Reuse
- 2026Automatic Construction of Clinical Scoring Systems with LLM Agents
- 2026DoctorAgents: an agentic framework to iteratively refine AutoML pipeline for small clinical temporal data
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation
- 2026ClinLens: Towards Long-Horizon Coding Agents for Longitudinal Multimodal Clinical Data Science
- 2026EHR-RAG: Bridging Long-Horizon Structured Electronic Health Records and Large Language Models via Enhanced Retrieval-Augmented Generation
- 2026AgentRx: A Benchmark Study of LLM Agents for Multimodal Clinical Prediction Tasks
- 2024ColaCare: Enhancing Electronic Health Record Modeling through Large Language Model-Driven Multi-Agent Collaboration