Can open source large language models be used for tumor documentation in Germany? : An evaluation on urological doctors’ notes
| dc.contributor.author | Lenz, Stefan | |
| dc.contributor.author | Ustjanzew, Arsenij | |
| dc.contributor.author | Jeray, Marco | |
| dc.contributor.author | Ressing, Meike | |
| dc.contributor.author | Panholzer, Torsten | |
| dc.date.accessioned | 2025-12-05T09:56:10Z | |
| dc.date.issued | 2025 | |
| dc.description.abstract | Background 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.doi | https://doi.org/10.25358/openscience-13819 | |
| dc.identifier.uri | https://openscience.ub.uni-mainz.de/handle/20.500.12030/13840 | |
| dc.language.iso | eng | |
| dc.rights | CC-BY-4.0 | |
| dc.rights.uri | https://creativecommons.org/licenses/by/4.0/ | |
| dc.subject.ddc | 610 Medizin | de |
| dc.subject.ddc | 610 Medical sciences | en |
| dc.title | Can open source large language models be used for tumor documentation in Germany? : An evaluation on urological doctors’ notes | en |
| dc.type | Zeitschriftenaufsatz | |
| jgu.identifier.uuid | af799763-88cd-4ea2-8022-b08a948d6e16 | |
| jgu.journal.title | BioData Mining | |
| jgu.journal.volume | 18 | |
| jgu.organisation.department | FB 04 Medizin | |
| jgu.organisation.name | Johannes Gutenberg-Universität Mainz | |
| jgu.organisation.number | 2700 | |
| jgu.organisation.place | Mainz | |
| jgu.organisation.ror | https://ror.org/023b0x485 | |
| jgu.pages.alternative | 48 | |
| jgu.publisher.doi | 10.1186/s13040-025-00463-8 | |
| jgu.publisher.eissn | 1756-0381 | |
| jgu.publisher.name | Biomed Central | |
| jgu.publisher.place | London | |
| jgu.publisher.year | 2025 | |
| jgu.rights.accessrights | openAccess | |
| jgu.subject.ddccode | 610 | |
| jgu.subject.dfg | Lebenswissenschaften | |
| jgu.type.dinitype | Article | en_GB |
| jgu.type.resource | Text | |
| jgu.type.version | Published version |