Skip to content

Menu

WorksPubMed

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

A preview from PubMed. Valency holds this work's metadata and abstract, not its full text.

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.

Paper details

Source

Source
PubMed
First available
Nov 24, 2026
Identifier
pubmed:43084238

Pick where to look, or just type