Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddings

Gonçalo Gomes, Isabel Coutinho, Bruno Martins
2/5/2024
cs.CLcs.AI

No official code found. Best implementation: gecgomes/ICD_Coding_MSAM (6 stars, MIT, last commit 2025-08-19).

Abstract

Although the International Classification of Diseases (ICD) has been adopted worldwide, manually assigning ICD codes to clinical text is time-consuming, error-prone, and expensive, motivating the development of automated approaches. This paper describes a novel approach for automated ICD coding, combining several ideas from previous related work. We specifically employ a strong Transformer-based model as a text encoder and, to handle lengthy clinical narratives, we explored either (a) adapting the base encoder model into a Longformer, or (b) dividing the text into chunks and processing each chunk independently. The representations produced by the encoder are combined with a label embedding mechanism that explores diverse ICD code synonyms. Experiments with different splits of the MIMIC-III dataset show that the proposed approach outperforms the current state-of-the-art models in ICD coding, with the label embeddings significantly contributing to the good performance. Our approach also leads to properly calibrated classification results, which can effectively inform downstream tasks such as quantification.

View on arXivView PDF

Code Implementations(1)

MIT

Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddings

60Python, Jupyter NotebookFeb 2, 20241 years agoMIT

Cite this paper

@article{gomes2024accurate,
  title  = {Accurate and Well-Calibrated ICD Code Assignment Through Attention Over Diverse Label Embeddings},
  author = {Gonçalo Gomes and Isabel Coutinho and Bruno Martins},
  year   = {2024},
  eprint = {2402.03172},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.03172v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.03172.svg)](https://codeofpaper.com/paper/2402.03172)

Discussion