Enhancing medical coding efficiency through domain-specific fine-tuned large language models
Medical coding is essential for healthcare operations yet remains predominantly manual, error-prone (up to 20%), and costly (up to $18.2 billion annually). Although large language models (LLMs) have shown promise in natural language processing, their application to medical coding has produced limited accuracy. In this study, we evaluated whether fine-tuning LLMs with specialized ICD-10 knowledge can automate code generation across clinical documentation. We adopted a two-phase approach: initial fine-tuning using 74,260 ICD-10 code-description pairs, followed by enhanced training to address linguistic and lexical variations. Evaluations using a proprietary model (GPT-4o mini) on a cloud platform and an open-source model (Llama) on local GPUs demonstrated that initial fine-tuning increased exact matching from <1% to 97%, while enhanced fine-tuning further improved performance in complex scenarios, with real-world clinical notes achieving 69.20% exact match and 87.16% category match. These findings indicate that domain-specific fine-tuned LLMs can reduce manual burdens and improve reliability.
Authors
- Jiang Bian (ORCID: https://orcid.org/0000-0002-2238-5429)
- Hao Liu (ORCID: https://orcid.org/0000-0002-1975-1272)
- Xing He
- Yan Zhuang (ORCID: https://orcid.org/0000-0003-3483-0988)
- Zhen Hou (ORCID: https://orcid.org/0000-0002-1465-3518)
Institutions
- Indiana University Health (US)
- Regenstrief Institute (US)
- Montclair State University (US)
- Indiana University – Purdue University Indianapolis (US)
Publication Details
- Journal
- npj Health Systems
- Published
- 2025-05-01
- DOI
- https://doi.org/10.1038/s44401-025-00018-3
- Citations
- 8
- Primary Topic
- Biomedical Text Mining and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 6.45
Funders
- National Institute on Aging