Optimized BERT-based NLP outperforms Zero-Shot Methods for Automated Symptom Detection in Clinical Practice
Preprint
Abstract
Background Large Language Nodels (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.Keywords
This publication has 27 references indexed in Scilit:
- The aluminum standard: using generative Artificial Intelligence tools to synthesize and annotate non-structured patient dataBMC Medical Informatics and Decision Making, 2024
- Integrating structured and unstructured data for predicting emergency severity: an association and predictive study using transformer-based natural language processing modelsBMC Medical Informatics and Decision Making, 2024
- Symptom Network Analysis and Unsupervised Clustering of Oncology Patients Identifies Drivers of Symptom Burden and Patient Subgroups With Distinct Symptom PatternsCancer Medicine, 2024
- Utilizing BERT for Information Retrieval: Survey, Applications, Resources, and ChallengesACM Computing Surveys, 2024
- New Coding Guidelines Reduce Emergency Department Note Bloat But More Work Is NeededAnnals of Emergency Medicine, 2023
- Machine translation of standardised medical terminology using natural language processing: A scoping reviewNew Biotechnology, 2023
- Are the BERT family zero-shot learners? A study on their potential and limitationsArtificial Intelligence, 2023
- Information extraction from German radiological reports for general clinical text and language understandingScientific Reports, 2023
- A Deep Language Model for Symptom Extraction From Clinical Text and its Application to Extract COVID-19 Symptoms From Social MediaIEEE Journal of Biomedical and Health Informatics, 2022
- Fast-Find: A novel computational approach to analyzing combinatorial motifsBMC Bioinformatics, 2006