EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Lee, Kwanhyung, Hong, Sungsoo, Park, Joonhyung, Lim, Jeonghyeop, Choi, Juhwan, Yoon, Donghwee, Yang, Eunho
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915530400595968
author Lee, Kwanhyung
Hong, Sungsoo
Park, Joonhyung
Lim, Jeonghyeop
Choi, Juhwan
Yoon, Donghwee
Yang, Eunho
author_facet Lee, Kwanhyung
Hong, Sungsoo
Park, Joonhyung
Lim, Jeonghyeop
Choi, Juhwan
Yoon, Donghwee
Yang, Eunho
contents 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/
format Preprint
id arxiv_https___arxiv_org_abs_2510_00549
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases
Lee, Kwanhyung
Hong, Sungsoo
Park, Joonhyung
Lim, Jeonghyeop
Choi, Juhwan
Yoon, Donghwee
Yang, Eunho
Databases
Artificial Intelligence
I.2.7; H.2.8
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/
title EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases
topic Databases
Artificial Intelligence
I.2.7; H.2.8
url https://arxiv.org/abs/2510.00549