Does the magic of BERT apply to medical code assignment? A quantitative study

Comput Biol Med. 2021 Dec:139:104998. doi: 10.1016/j.compbiomed.2021.104998. Epub 2021 Oct 30.

Abstract

Unsupervised pretraining is an integral part of many natural language processing systems, and transfer learning with language models has achieved remarkable results in downstream tasks. In the clinical application of medical code assignment, diagnosis and procedure codes are inferred from lengthy clinical notes such as hospital discharge summaries. However, it is not clear if pretrained models are useful for medical code prediction without further architecture engineering. This paper conducts a comprehensive quantitative analysis of various contextualized language models' performances, pretrained in different domains, for medical code assignment from clinical notes. We propose a hierarchical fine-tuning architecture to capture interactions between distant words and adopt label-wise attention to exploit label information. Contrary to current trends, we demonstrate that a carefully trained classical CNN outperforms attention-based models on a MIMIC-III subset with frequent codes. Our empirical findings suggest directions for building robust medical code assignment models.

Keywords: BERT; Medical code assignment; Pretrained language models; Quantitative study.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Language*
  • Natural Language Processing*