Developing a scalable pipeline for data extraction from clinical letters through resource-efficient prompt engineering.
Ariel Yuhan Ong, Quang Nguyen, Ishani Barai, Justin Engelmann, Fares Antaki, Mertcan Sevgi, David A Merle, Lie Ju,
Institute of Ophthalmology, University College London, London, UK. ariel.ong@nhs.net. · Institute of Ophthalmology, University College London, London, UK.
Key points
From the paper's conclusion- We introduce a scalable, resource-efficient, and high-performance information extraction pipeline that leverages large language models (LLMs) to address these challenges.
Abstract
Free-text clinical records represent an untapped wealth of data for secondary use, but realising their potential is limited by resource demands necessary for accurate information extraction at scale. We introduce a scalable, resource-efficient, and high-performance information extraction pipeline that leverages large language models (LLMs) to address these challenges. Our pipeline was developed and tested using real-world dual specialist-annotated ophthalmic clinical letters, and achieved strong performance with a proprietary model in development, yielding a maximum micro-averaged F1 score of 0.954 (95% CI 0.941-0.967) for diagnosis across nine conditions through iterative prompt refinement alone, also demonstrating strong generalisability (micro-F1 0.945-0.980) in temporal validation. This approach was extended to other models in the same family and 17 LLMs from seven open-weight LLM families. Beyond performance, we develop a multi-dimensional assessment for deployment in data extraction tasks, including an error taxonomy and Pareto frontier analyses to systematically map the operational trade-offs across different LLM configurations. A robust approach to operationalisation in real-world workflows at scale may help lay the foundation for next-generation data pipelines that accelerate scientific discovery and power continuous learning health systems.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Exploratory Implementation and Feasibility Report of CLASS (Clinical LLM Abstraction & Structuring System), A Large Language Model Pipeline for Extracting Unstructured Data From Clinical Notes.Journal of medical systems · 2026
- Ensuring Reliability of Curated Electronic Health Record–Derived Data: The Validation of Accuracy for Large Language Model–/Machine Learning–Extracted Information and Data (VALID) FrameworkJCO Clinical Cancer Informatics · 2026
- LINS: A general medical Q&A framework for enhancing the quality and credibility of LLM-generated responsesNature Communications · 2025
- Agentic Pipeline for Large-Scale Clinical Data Queries in Enterprise Electronic Health RecordsmedRxiv · 2026
- Prompt Engineering of Large Language Models for Medication Dose Calculation.Clinical pharmacology and therapeutics · 2026
- Large language models for zero-shot procedure extraction in orthopedic surgery: a comparative evaluationScientific Reports · 2026