Hierarchical Label-wise Attention Transformer Model for Explainable ICD Coding

Leibo Liu, Oscar Perez-Concha, Anthony Nguyen, Vicki Bennett, Louisa Jorm
4/22/2022
cs.LGcs.CL
transformer-attention

Official code: leiboliu/HiLAT (5 stars, Python, Apache-2.0, last commit 2023-10-27).

Abstract

International Classification of Diseases (ICD) coding plays an important role in systematically classifying morbidity and mortality data. In this study, we propose a hierarchical label-wise attention Transformer model (HiLAT) for the explainable prediction of ICD codes from clinical documents.

Show full abstract

HiLAT firstly fine-tunes a pretrained Transformer model to represent the tokens of clinical documents. We subsequently employ a two-level hierarchical label-wise attention mechanism that creates label-specific document representations. These representations are in turn used by a feed-forward neural network to predict whether a specific ICD code is assigned to the input clinical document of interest. We evaluate HiLAT using hospital discharge summaries and their corresponding ICD-9 codes from the MIMIC-III database. To investigate the performance of different types of Transformer models, we develop ClinicalplusXLNet, which conducts continual pretraining from XLNet-Base using all the MIMIC-III clinical notes. The experiment results show that the F1 scores of the HiLAT+ClinicalplusXLNet outperform the previous state-of-the-art models for the top-50 most frequent ICD-9 codes from MIMIC-III. Visualisations of attention weights present a potential explainability tool for checking the face validity of ICD code predictions.

View on arXivView PDF

Code Implementations(1)

leiboliu/HiLATOfficial100%
Apache-2.0

Hierarchical Label-wise Attention Transformer Model for Explainable ICD Coding

55Python, ShellJan 25, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2022hierarchical,
  title  = {Hierarchical Label-wise Attention Transformer Model for Explainable ICD Coding},
  author = {Leibo Liu and Oscar Perez-Concha and Anthony Nguyen and Vicki Bennett and Louisa Jorm},
  year   = {2022},
  eprint = {2204.10716},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.10716}
}

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/2204.10716.svg)](https://codeofpaper.com/paper/2204.10716)

Discussion