| Published Version Download ( PDF | 471kB) | License: Creative Commons Attribution 4.0 |
Optimized BERT-based NLP outperforms zero-shot methods for automated symptom detection in clinical practice
Diaz Ochoa, Juan G., Layer, Natalie, Mahr, Jonas, Mustafa, Faizan E, Menzel, Christian U., Müller, Martina
, Schilling, Tobias, Illerhaus, Gerald, Knott, Markus and Krohn, Alexander
(2025)
Optimized BERT-based NLP outperforms zero-shot methods for automated symptom detection in clinical practice.
Frontiers in Digital Health 7.
Date of publication of this fulltext: 26 Nov 2025 16:14
Article
DOI to cite this document: 10.5283/epub.78233
Abstract
Background: Large Language Models (LLMs) have raised broad expectations for clinical use, particularly in the processing of complex medical narratives. However, in practice, more targeted Natural Language Processing (NLP) approaches may offer higher precision and feasibility for symptom extraction from real-world clinical texts. NLP provides promising tools for extracting clinical information ...
Background: Large Language Models (LLMs) have raised broad expectations for clinical use, particularly in the processing of complex medical narratives. However, in practice, more targeted Natural Language Processing (NLP) approaches may offer higher precision and feasibility for symptom extraction from real-world clinical texts. NLP provides promising tools for extracting clinical information from unstructured medical narratives. However, few studies have focused on integrating symptom information from free texts in German, particularly for complex patient groups such as emergency department (ED) patients. The ED setting presents specific challenges: high documentation pressure, heterogeneous language styles, and the need for secure, locally deployable models due to strict data protection regulations. Furthermore, German remains a low-resource language in clinical NLP.
Methods: We implemented and compared two models for zero-shot learning—GLiNER and Mistral—and a fine-tuned BERT-based SCAI-BIO/BioGottBERT model for named entity recognition (NER) of symptoms, anatomical terms, and negations in German ED anamnesis texts in an on-premises environment in a hospital. Manual annotations of 150 narratives were used for model validation. The postprocessing steps included confidence-based filtering, negation exclusion, symptom standardization, and integration with structured oncology registry data. All computations were performed on local hospital servers in an on-premises implementation to ensure full data protection compliance.
Results: The fine-tuned SCAI-BIO/BioGottBERT model outperformed both zero-shot approaches, achieving an F1 score of 0.84 for symptom extraction and demonstrating superior performance in negation detection. The validated pipeline enabled systematic extraction of affirmed symptoms from ED-free text, transforming them into structured data. This method allows large-scale analysis of symptom profiles across patient populations and serves as a technical foundation for symptom-based clustering and subgroup analysis.
Conclusions: Our study demonstrates that modern NLP methods can reliably extract clinical symptoms from German ED free text, even under strict data protection constraints and with limited training resources. Fine-tuned models offer a precise and practical solution for integrating unstructured narratives into clinical decision-making. This work lays the methodological foundation for a new way of systematically analyzing large patient cohorts on the basis of free-text data. Beyond symptoms, this approach can be extended to extracting diagnoses, procedures, or other clinically relevant entities. Building upon this framework, we apply network-based clustering methods (in a subsequent study) to identify clinically meaningful patient subgroups and explore sex- and age-specific patterns in symptom expression.
Alternative links to fulltext
Involved Institutions
Details
| Item type | Article | ||||
| Journal or Publication Title | Frontiers in Digital Health | ||||
| Publisher: | Frontiers | ||||
|---|---|---|---|---|---|
| Volume: | 7 | ||||
| Date | 26 November 2025 | ||||
| Institutions | Medicine > Lehrstuhl für Innere Medizin I | ||||
| Identification Number |
| ||||
| Keywords | natural language processing (NLP), named entity recognition (NER), symptom extraction, large language models (LLM), fine-tuning, clinical NLP | ||||
| Dewey Decimal Classification | 600 Technology > 610 Medical sciences Medicine | ||||
| Status | Published | ||||
| Refereed | Yes, this version has been refereed | ||||
| Created at the University of Regensburg | Yes | ||||
| URN of the UB Regensburg | urn:nbn:de:bvb:355-epub-782334 | ||||
| Item ID | 78233 |
Download Statistics
Download Statistics