NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Unified Review of Deep Learning for Automated Medical Coding

Shaoxiong Ji, Wei Sun, Hang Dong, Honghan Wu, Pekka Marttinen · DOI

Introduction

Medical coding is the critical process of translating clinical documentation into standardized codes, such as the International Classification of Diseases (ICD). These codes are essential for healthcare billing, epidemiological research, and clinical decision support. Traditionally, this task has been performed manually by trained professionals—a process that is both labor-intensive and prone to inconsistencies. As deep learning has revolutionized natural language processing, its application to medical coding has grown rapidly, yet the research landscape remains fragmented.

The Challenges of Automated Coding

Automating medical coding presents unique hurdles that distinguish it from standard natural language processing (NLP) tasks. Clinical notes are often lengthy, unstructured, and laden with domain-specific jargon and abbreviations. Furthermore, the label space is vast, encompassing tens of thousands of potential codes.

Perhaps the most significant challenge is the extreme class imbalance. As shown in Figure 1, a small subset of codes appears frequently, while the vast majority reside in a "long tail," appearing only a handful of times across thousands of documents. This sparsity makes it exceptionally difficult for deep learning models to learn robust representations for rare conditions, leading to a significant performance gap between common and rare diseases.

The long-tail distribution of ICD codes, illustrating the extreme class imbalance in clinical datasets.

A Unified Encoder-Decoder Framework

To bring clarity to the field, this paper proposes a unified framework that decomposes medical coding models into four modular components. This taxonomy allows researchers to compare disparate architectures on a level playing field:

  • Encoder Modules: These extract semantic features from raw clinical text. Common architectures include Recurrent Neural Networks (RNNs) for sequential dependencies, Convolutional Neural Networks (CNNs) for local patterns, and Transformers for global context.
  • Deep Connections: Techniques like residual connections and embedding injection allow for deeper architectures that preserve information across layers, mitigating the vanishing gradient problem in complex models.
  • Decoder Modules: The decoder is responsible for code prediction. A breakthrough in this area is Label-wise Attention (LAN), which enables the model to attend to specific segments of a clinical note relevant to each individual code, effectively turning a massive classification task into targeted searches.
  • Auxiliary Information: Modern models increasingly leverage external knowledge, such as code descriptions, hierarchical relationships within the ICD system, and even Wikipedia articles, to improve performance on rare codes.
The proposed unified encoder-decoder framework, integrating clinical notes, external knowledge, and human-in-the-loop feedback.

Key Insights and Performance

The meta-analysis identifies the MIMIC-III dataset as the gold standard for benchmarking. Analysis reveals that models exploiting the hierarchical structure of medical ontologies perform significantly better. While top-performing models like RAC (Read, Attend, and Code) and MSMN (Multi-synonyms Matching Network) achieve impressive AUC-ROC scores above 94%, a substantial performance gap remains. Micro-F1 scores (weighted by frequency) are relatively high, but Macro-F1 scores (unweighted) often fall below 15%, underscoring the persistent difficulty of the "long tail" problem.

Future Directions

The field is currently transitioning toward Large Language Models (LLMs). While promising, LLMs must overcome challenges related to document length, data privacy, and the risk of "hallucinations" in high-stakes medical contexts. Future research should also focus on interpretability, ensuring that AI-generated codes are accompanied by verifiable explanations for human coders. Ultimately, the goal is a "human-in-the-loop" system where AI serves as a powerful assistant, handling routine cases and allowing human experts to focus on the most complex clinical scenarios.

Summary updated

BibTeX
@article{ji2022unified,
  author = {Shaoxiong Ji and Wei Sun and Hang Dong and Honghan Wu and Pekka Marttinen},
  title = {{A Unified Review of Deep Learning for Automated Medical Coding}},
  journal = {ACM Computing Surveys},
  year = {2022},
  doi = {10.1145/3664615},
}
Figure