Accelerating real-world data collection using large language models in rare neoplasms: a bone sarcoma example

Background: Real-world data collection in oncology remains a challenge due to the complex and unstructured format of medical notes. Recently, large language models (LLMs) have demonstrated success in extracting information from free-text data across various domains. This study evaluates the performance of multiple small LLMs as information extractors on Polish medical notes. Materials and methods: Electronic health records (EHRs) of 302 bone sarcoma patients treated in a reference center between 2016 and 2022 were selected. Five variables-pathology type, tumor size, localization, grade, and primary resection-were annotated by an experienced oncologist. Multiple prompting techniques and four LLMs were used to query the models with the task of returning the value for each variable using an XML tag. Additionally, among non-concordant values we distinguished valid results, i.e. of expected format and containing a key word/phrase from a per-variable, expert-devised list. An ensemble voting approach was applied, selecting values appearing in the majority of valid outputs. Results: Single-model accuracy was modest (17.5%-30.3%) and highly prompt-dependent. The tumor localization values turned out to be the easiest to assess with an accuracy of up to 36.2%. The majority of non-concordant values were non-valid. The voting strategy improved performance significantly, with 83.6% overall accuracy, peaking at 90.0% for the resection type variable. Conclusions: Our study highlights the potential of using lightweight LLMs in the automation of data extraction from medical notes, which could significantly accelerate clinical research. A singular small LLM is not yet sufficient for real use cases in non-English settings; however, prompt engineering and ensemble methods can greatly improve performance.

Authors

Institutions

Publication Details

Journal
ESMO Real World Data and Digital Oncology
Published
2026-04-17
DOI
https://doi.org/10.1016/j.esmorw.2026.100705
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Accelerating real-world data collection using large language models in rare neoplasms: a bone sarcoma example

B. Szostakowski, M. Wągrodzki, M. Rosinska, P. Teterycz et al.
ESMO Real World Data and Digital Oncology
Topic Modeling
article

Accelerating real-world data collection using large language models in rare neoplasms: a bone sarcoma example

B. Szostakowski, M. Wągrodzki, M. Rosinska, P. Teterycz, S. Rynkun, P Rutkowski
article en

Abstract

Background: Real-world data collection in oncology remains a challenge due to the complex and unstructured format of medical notes. Recently, large language models (LLMs) have demonstrated success in extracting information from free-text data across various domains. This study evaluates the performance of multiple small LLMs as information extractors on Polish medical notes. Materials and methods: Electronic health records (EHRs) of 302 bone sarcoma patients treated in a reference center between 2016 and 2022 were selected. Five variables-pathology type, tumor size, localization, grade, and primary resection-were annotated by an experienced oncologist. Multiple prompting techniques and four LLMs were used to query the models with the task of returning the value for each variable using an XML tag. Additionally, among non-concordant values we distinguished valid results, i.e. of expected format and containing a key word/phrase from a per-variable, expert-devised list. An ensemble voting approach was applied, selecting values appearing in the majority of valid outputs. Results: Single-model accuracy was modest (17.5%-30.3%) and highly prompt-dependent. The tumor localization values turned out to be the easiest to assess with an accuracy of up to 36.2%. The majority of non-concordant values were non-valid. The voting strategy improved performance significantly, with 83.6% overall accuracy, peaking at 90.0% for the resection type variable. Conclusions: Our study highlights the potential of using lightweight LLMs in the automation of data extraction from medical notes, which could significantly accelerate clinical research. A singular small LLM is not yet sufficient for real use cases in non-English settings; however, prompt engineering and ensemble methods can greatly improve performance.

ESMO Real World Data and Digital OncologyVol. 12
National Institute of Oncology (HU), Postgraduate School of Molecular Medicine (PL), The Maria Sklodowska-Curie National Research Institute of Oncology (PL)
Agencja Badań Medycznych
Openalex Percentile: Top 12%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.