JMIR formative research

Large Language Model Performance in Structured Data Extraction From Neurosurgical Electronic Health Records: Comparative Benchmark Study.

Martin Černý, Martin Májovský, Sanju Lama, Edward Guo, Hana Hallak, Rahul Singh, Homer Riva-Cambrin, Petr Šustek,

Department of Neurosurgery and Neurooncology, 1st Faculty of Medicine, Charles University, Military University Hospital Prague, U Vojenské nemocnice 1200, Prague, 16902, Czech Republic, +420 973 202 963. · Department of Clinical Neurosciences, Project neuroArm, Hotchkiss Brain Institute, University of Calgary, Calgary, AB, Canada.

Computational · n=172

Key points

From the paper's conclusion
  • Current LLMs can reliably extract structured clinical information from full, non-English EHRs, while older or smaller models show major limitations. A hybrid workflow-automated extraction with targeted validation-appears practical for research use.

Abstract

BACKGROUND: Large language models (LLMs) are increasingly used to extract information from electronic health records (EHRs). Given the rapid pace of LLM development, robust scenario-specific benchmarks are essential to evaluate clinical usefulness and support safe deployment. OBJECTIVE: This study aimed to compare contemporary LLMs for structured data extraction from real neurosurgical EHRs written in Czech. METHODS: In a prospective single-center cohort, 172 hospitalized patients provided informed consent for the use of anonymized EHRs. For each patient, predefined records were collected and concatenated. Ground truth for 35 data points was established by dual extraction with consensus. A standardized prompt requesting JSON output was submitted to 19 LLMs. The primary outcome was overall accuracy; secondary outcomes were category-level accuracy and the proportion of complete machine-readable outputs. RESULTS: A total of 6264 documents were collected (median 33, IQR 25-41 per patient). Ground truth was established with 92.6% initial interrater agreement before consensus. Several models produced complete JSON outputs for 100% of cases (Claude 4.1 Opus, Grok 4, and Gemini 2.5 Flash); GPT-4.1 (DeepSearch) and GPT-5 completed 99.4%. The highest accuracy was achieved by GPT-4.1 (87.6%), followed by GPT-4.5 (85.6%), Claude 4.1 (84.8%), and Grok 4 (84.2%). Accuracy declined by data type: binary (up to 95%), numeric (~89%), multiple-choice (~75%), and short text (~78%). CONCLUSIONS: Current LLMs can reliably extract structured clinical information from full, non-English EHRs, while older or smaller models show major limitations. A hybrid workflow-automated extraction with targeted validation-appears practical for research use.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers