Skip to main content
QUICK REVIEW

[Paper Review] Read, Attend, and Code: Pushing the Limits of Medical Codes Prediction from Clinical Notes by Machines

Byung‐Hak Kim, Varun Ganapathi|arXiv (Cornell University)|Jul 10, 2021
Machine Learning in HealthcareComputer Science25 references20 citations
TL;DR

This paper introduces the Read, Attend, and Code (RAC) model, a self-attention and code-title guided attention-based neural network that outperforms prior state-of-the-art models in predicting ICD-9 medical codes from clinical notes. RAC achieves a 18.7% improvement in Macro-F1 and surpasses human coder performance on the MIMIC-III-full-label dataset, marking a milestone toward fully autonomous medical coding systems.

ABSTRACT

Prediction of medical codes from clinical notes is both a practical and essential need for every healthcare delivery organization within current medical systems. Automating annotation will save significant time and excessive effort spent by human coders today. However, the biggest challenge is directly identifying appropriate medical codes out of several thousands of high-dimensional codes from unstructured free-text clinical notes. In the past three years, with Convolutional Neural Networks (CNN) and Long Short-Term Memory (LTSM) networks, there have been vast improvements in tackling the most challenging benchmark of the MIMIC-III-full-label inpatient clinical notes dataset. This progress raises the fundamental question of how far automated machine learning (ML) systems are from human coders' working performance. We assessed the baseline of human coders' performance on the same subsampled testing set. We also present our Read, Attend, and Code (RAC) model for learning the medical code assignment mappings. By connecting convolved embeddings with self-attention and code-title guided attention modules, combined with sentence permutation-based data augmentations and stochastic weight averaging training, RAC establishes a new state of the art (SOTA), considerably outperforming the current best Macro-F1 by 18.7%, and reaches past the human-level coding baseline. This new milestone marks a meaningful step toward fully autonomous medical coding (AMC) in machines reaching parity with human coders' performance in medical code prediction.

Motivation & Objective

  • To establish a human-coding performance baseline on the MIMIC-III-full-label inpatient clinical notes dataset.
  • To develop a novel deep learning model, RAC, capable of accurately mapping unstructured clinical notes to high-dimensional medical codes.
  • To overcome the long-tail sparsity problem in medical coding by leveraging attention mechanisms and data augmentation.
  • To demonstrate that machine learning models can surpass human-level performance in medical code prediction.
  • To advance the vision of fully autonomous medical coding (AMC) in clinical workflows.

Proposed method

  • The RAC model uses convolved sentence embeddings as input representations for clinical notes.
  • It employs a self-attention mechanism to model dependencies across sentence vectors in the input sequence.
  • A code-title guided attention module aligns relevant text spans with specific medical codes by leveraging code descriptions.
  • The model treats medical code prediction as a set-to-set assignment problem, exploiting permutation equivariance to improve generalization.
  • Sentence permutation-based data augmentation is applied to increase training data diversity and improve generalization.
  • Stochastic weight averaging (SWA) is used during training to enhance model robustness and generalization on limited data.

Experimental results

Research questions

  • RQ1How does human coder performance compare to state-of-the-art machine learning models on the MIMIC-III-full-label clinical note coding benchmark?
  • RQ2Can a self-attention-based model effectively learn mappings from unstructured clinical notes to thousands of medical codes despite long-tail sparsity?
  • RQ3To what extent do code-title guided attention and data augmentation improve code prediction performance?
  • RQ4Does the RAC model achieve performance beyond human-level coding accuracy on this benchmark?
  • RQ5What components of the RAC architecture contribute most significantly to its performance gains?

Key findings

  • The RAC model achieves a 18.7% improvement in Macro-F1 over the previous state-of-the-art model, setting a new SOTA.
  • The model improves Macro-AUC by 3.0 percentage points, indicating better performance on rare and infrequent codes.
  • The RAC model surpasses the human coding baseline, demonstrating that machine learning systems can now exceed human performance on this task.
  • The combination of code-title guided attention and sentence permutation-based data augmentation significantly enhances model generalization.
  • The model converges within 10 epochs using a batch size of 16 on 4 NVIDIA T4 GPUs with an Adam optimizer and early stopping.
  • Precision@8 is used as the primary evaluation metric, reflecting real-world production use cases where a fixed number of top predictions are reviewed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.