ICD coding of death certificates with generative language models
PLOS Digital Health · 24.02.2026 · 5 (2) · e0001245
DOI: 10.1371/journal.pdig.0001245 ↗Kurz gefasst
Fachartikel in der Zeitschrift PLOS Digital Health, online erschienen am 24.02.2026. Verfasst von Isabel Coutinho und 4 weiteren Autor:innen. Beteiligte Einrichtung: INESC-ID, Lisbon, Portugal. Die Arbeit nennt 25 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Portuguese Recovery and Resilience Plan, Fundação para a Ciência e Tecnologia, Fundação para a Ciência e a Tecnologia.
Abstract (Originalsprache)
Although large language models can achieve remarkable results in most text generation tasks, these models have been less used in text classification problems, of which ICD coding of clinical documents is one example. In this work, we propose different strategies to adapt a LLaMA generative language model to the ICD coding task. In one such strategy, we only use a language modeling objective for training, followed by constrained decoding at inference time, rather than fine-tuning the model for discriminative classification. We specifically use free-text descriptions in Portuguese death certificates to train a relatively small LLaMA model for assigning ICD codes to the underlying cause of death, and we compare it against a BERT encoder model, which is typically used to address text classification tasks. Experiments show that generative language models can achieve strong results in ICD coding of death certificates, with a classification accuracy that is at least in line with the results obtained using encoder models. We thus demonstrate that language generation can be a suitable approach for ICD coding, allowing for multiple related tasks, such as coding the underlying or the multiple causes contributing for a death, to be performed with a single unified model.
Autor:innen und Institutionen
- INESC-ID, Lisbon, Portugal.
- Instituto Superior Técnico, University of Lisbon, Lisbon, Portugal.
- Priberam, Lisbon, Portugal.
- Direção-Geral da Saúde, Lisbon, Portugal.
ORCID-Profile: Isabel Coutinho, André Peralta-Santos
Förderung
- Portuguese Recovery and Resilience Plan
- Fundação para a Ciência e Tecnologia
- Fundação para a Ciência e a Tecnologia
Zitieren
APA
Coutinho, I., Correia, G. M., Martins, B., Moreira, A., & Peralta-Santos, A. (2026). ICD coding of death certificates with generative language models. PLOS Digital Health, 5(2), e0001245. https://doi.org/10.1371/journal.pdig.0001245
Vancouver
Coutinho I, Correia GM, Martins B, Moreira A, Peralta-Santos A. ICD coding of death certificates with generative language models. PLOS Digital Health. 2026;5(2):e0001245. doi:10.1371/journal.pdig.0001245
BibTeX
@article{Coutinho2026,
author = {Coutinho, Isabel and Correia, Gonçalo M and Martins, Bruno and Moreira, Afonso and Peralta-Santos, André},
title = {ICD coding of death certificates with generative language models},
journal = {PLOS Digital Health},
year = {2026},
volume = {5},
number = {2},
pages = {e0001245},
doi = {10.1371/journal.pdig.0001245}
}
EUVIMED