Can open source large language models be used for tumor documentation in Germany? : An evaluation on urological doctors’ notes

dc.contributor.authorLenz, Stefan
dc.contributor.authorUstjanzew, Arsenij
dc.contributor.authorJeray, Marco
dc.contributor.authorRessing, Meike
dc.contributor.authorPanholzer, Torsten
dc.date.accessioned2025-12-05T09:56:10Z
dc.date.issued2025
dc.description.abstractBackground Tumor documentation in Germany is currently a largely manual process. It involves reading the textual patient documentation and filling in forms in dedicated databases to obtain structured data. Advances in information extraction techniques that build on large language models (LLMs) could have the potential for enhancing the efficiency and reliability of this process. Evaluating LLMs in the German medical domain, especially their ability to interpret specialized language, is essential to determine their suitability for the use in clinical documentation. Due to data protection regulations, only locally deployed open source LLMs are generally suitable for this application. Methods The evaluation employs eleven different open source LLMs with sizes ranging from 1 to 70 billion model parameters. Three basic tasks were selected as representative examples for the tumor documentation process: identifying tumor diagnoses, assigning ICD-10 codes, and extracting the date of first diagnosis. For evaluating the LLMs on these tasks, a dataset of annotated text snippets based on anonymized doctors’ notes from urology was prepared. Different prompting strategies were used to investigate the effect of the number of examples in few-shot prompting and to explore the capabilities of the LLMs in general. Results The models Llama 3.1 8B, Mistral 7B, and Mistral NeMo 12 B performed comparably well in the tasks. Models with less extensive training data or having fewer than 7 billion parameters showed notably lower performance, while larger models did not display performance gains. Examples from a different medical domain than urology could also improve the outcome in few-shot prompting, which demonstrates the ability of LLMs to handle tasks needed for tumor documentation. Conclusions Open source LLMs show a strong potential for automating tumor documentation. Models from 7–12 billion parameters could offer an optimal balance between performance and resource efficiency. With tailored fine-tuning and well-designed prompting, these models might become important tools for clinical documentation in the future. The code for the evaluation is available from https://github.com/stefan-m-lenz/UroLlmEval. We also release the data set under https://huggingface.co/datasets/stefan-m-lenz/UroLlmEvalSet providing a valuable resource that addresses the shortage of authentic and easily accessible benchmarks in German-language medical NLP.en
dc.identifier.doihttps://doi.org/10.25358/openscience-13819
dc.identifier.urihttps://openscience.ub.uni-mainz.de/handle/20.500.12030/13840
dc.language.isoeng
dc.rightsCC-BY-4.0
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subject.ddc610 Medizinde
dc.subject.ddc610 Medical sciencesen
dc.titleCan open source large language models be used for tumor documentation in Germany? : An evaluation on urological doctors’ notesen
dc.typeZeitschriftenaufsatz
jgu.identifier.uuidaf799763-88cd-4ea2-8022-b08a948d6e16
jgu.journal.titleBioData Mining
jgu.journal.volume18
jgu.organisation.departmentFB 04 Medizin
jgu.organisation.nameJohannes Gutenberg-Universität Mainz
jgu.organisation.number2700
jgu.organisation.placeMainz
jgu.organisation.rorhttps://ror.org/023b0x485
jgu.pages.alternative48
jgu.publisher.doi10.1186/s13040-025-00463-8
jgu.publisher.eissn1756-0381
jgu.publisher.nameBiomed Central
jgu.publisher.placeLondon
jgu.publisher.year2025
jgu.rights.accessrightsopenAccess
jgu.subject.ddccode610
jgu.subject.dfgLebenswissenschaften
jgu.type.dinitypeArticleen_GB
jgu.type.resourceText
jgu.type.versionPublished version

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
can_open_source_large_languag-20251205105610288119.pdf
Size:
2.77 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
5.14 KB
Format:
Item-specific license agreed upon to submission
Description:

Collections