Toward Cross-Hospital Deployment of Natural Language Processing Systems: Model Development and Validation of Fine-Tuned Large Language Models for Disease Name Recognition in Japanese
Open Access
- 8 July 2025
- journal article
- research article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 13, e76773
Abstract
Background: Disease name recognition is a fundamental task in clinical natural language processing, enabling the extraction of critical patient information from electronic health records. While recent advances in large language models (LLMs) have shown promise, most evaluations have focused on English, and little is known about their robustness in low-resource languages such as Japanese. In particular, whether these models can perform reliably on previously unseen in-hospital data, which differs from training data in writing styles and clinical contexts, has not been thoroughly investigated. Objective: This study evaluated the robustness of fine-tuned LLMs for disease name recognition in Japanese clinical notes, with a particular focus on their performance on in-hospital data that was not included during training. Methods: We used two corpora for this study: (1) a publicly available set of Japanese case reports denoted as CR, and (2) a newly constructed corpus of progress notes, denoted as PN, written by ten physicians to capture stylistic variations of in-hospital clinical notes. To reflect real-world deployment scenarios, we first fine-tuned models on CR. Specifically, we compared a LLM and a baseline-masked language model (MLM). These models were then evaluated under two conditions: (1) on CR, representing the in-domain (ID) setting with the same document type, similar to training, and (2) on PN, representing the out-of-domain (OOD) setting with a different document type. Robustness was assessed by calculating the performance gap (ie, the performance drop from in-domain to out-of-domain settings). Results: The LLM demonstrated greater robustness, with a smaller performance gap in F 1 -scores (ID–OOD = −8.6) compared to the MLM baseline performance (ID–OOD = −13.9). This indicated more stable performance across ID and OOD settings, highlighting the effectiveness of fine-tuned LLMs for reliable use in diverse clinical settings. Conclusions: Fine-tuned LLMs demonstrate superior robustness for disease name recognition in Japanese clinical notes, with a smaller performance gap. These findings highlight the potential of LLMs as reliable tools for clinical natural language processing in low-resource language settings and support their deployment in real-world health care applications, where diversity in documentation is inevitable.Keywords
This publication has 19 references indexed in Scilit:
- Assessing domain adaptation in adverse drug event extraction on real-world breast cancer recordsInternational Journal of Medical Informatics, 2024
- Advancing entity recognition in biomedicine via instruction tuning of large language modelsBioinformatics, 2024
- Improving large language models for clinical named entity recognition via prompt engineeringJournal of the American Medical Informatics Association, 2024
- Few-shot clinical entity recognition in English, French and Spanish: masked language models outperform generative model prompting2024
- Rethinking domain adaptation for machine learning over clinical languageJAMIA Open, 2020
- 2018 n2c2 shared task on adverse drug events and medication extraction in electronic health recordsJournal of the American Medical Informatics Association, 2020
- Clinical information extraction applications: A literature reviewJournal of Biomedical Informatics, 2018
- Natural language processing systems for capturing and standardizing unstructured clinical information: A systematic reviewJournal of Biomedical Informatics, 2017
- Evaluating temporal relations in clinical text: 2012 i2b2 ChallengeJournal of the American Medical Informatics Association, 2013
- Frontiers of biomedical text mining: current progressBriefings in Bioinformatics, 2007