arrow
Return

Developing a scalable pipeline for data extraction from clinical letters through resource-efficient prompt engineering

delete2026-08-13
delete0
delete
OA
AI
A
Ariel Yuhan Ong *
Q
Quang Nguyen
J
Justin Engelmann
F
Fares Antaki
M
Mertcan Sevgi
D
David A. Merle
L
Lie Ju
E
Eliot R. Dow
Y
Yukun Zhou
G
Gregory Maniatopoulos
Y
Yemisi Takwoingi
A
Alastair K. Denniston
P
Pearse A. Keane *
DOI:10.1038/s41746-026-03136-wdelete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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.
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

npj Digital Medicine cover
npj Digital Medicine
IF:
15.1
Papers:
3.1K
Citations:
1.5W

Organization

U
university college london
Scholars:
7.4K
Papers: 4.1K
Citations: 1
N
nihr birmingham biomedical research centre
Scholars:
11
Papers: 5
Citations: 1
C
cole eye institute and cleveland clinic
Scholars:
6
Papers: 3
Citations: 0
U
university of leicester
Scholars:
1.9W
Papers: 1.7W
Citations: 25
R
retinal consultants medical group
Scholars:
3
Papers: 3
Citations: 0
M
Moorfields Eye Hospital NHS Foundation Trust
Scholars:
1.3K
Papers: 1.0K
Citations: 1.8K
researcher View more organizations