Generalized Zero-Shot Text Classification for ICD Coding

Congzheng Song, Shanghang Zhang, Najmeh Sadoughi, Pengtao Xie, Eric P. Xing

Abstract

Automatic International Classification of Diseases (ICD) coding is essential for clinical documentation but is hindered by a long-tailed label distribution where many codes are rare or unseen during training. We present AGM-HT, an adversarial generative framework designed for Generalized Zero-Shot Learning (GZSL) in multi-label text classification. By synthesizing latent features for zero-shot codes using medical hierarchies and keyword reconstruction, AGM-HT enables accurate prediction of unseen diseases. Experimental results on the MIMIC-III dataset demonstrate a significant improvement in zero-shot F1 scores from zero to over 20%, while maintaining high performance on common codes.

Introduction

In modern healthcare, clinical notes are tagged with ICD codes to facilitate billing, reimbursement, and diagnostic tracking. Automating this process remains a challenging multi-label text classification task due to the extreme imbalance in label frequency. Of the approximately 17,000 unique ICD-9 codes, over half never appear in standard training sets. Traditional automated models excel at identifying frequent codes but fail entirely on these "zero-shot" (unseen) labels.

The goal of Generalized Zero-Shot Learning (GZSL) in this context is to develop a model capable of predicting both seen and unseen codes simultaneously. This paper introduces AGM-HT (Adversarial Generative Model with Hierarchical Tree structure) to bridge this gap by generating synthetic training data in the latent feature space.

Methodology: The AGM-HT Framework

The proposed AGM-HT framework circumvents the difficulty of generating raw clinical text by instead synthesizing latent features. The architecture consists of several key components:

1. Feature Extraction (ZAGRNN)

The base model is a Zero-shot Attentive Graph Recurrent Neural Network (ZAGRNN) trained on seen codes. To address the long-tailed distribution within the seen classes, a Label-Distribution-Aware Margin (LDAM) loss is employed.

2. Adversarial Latent Feature Generation

A Wasserstein GAN with Gradient Penalty (WGAN-GP) is used to generate synthetic latent features for zero-shot codes. The generator $G$ is conditioned on official ICD code descriptions, which are encoded via an LSTM to provide semantic context.

3. Hierarchical and Semantic Guidance

Since zero-shot codes lack real training features, the model leverages the ICD hierarchical tree. The discriminator $D$ is trained using real features from the "nearest sibling" of a zero-shot code. This forces the generator to produce features that are consistent with the medical taxonomy.

The AGM-HT adversarial generative framework leveraging hierarchical sibling codes and keyword reconstruction.

To ensure these features are semantically grounded, a keyword reconstruction module is added. This module acts as a pseudo-cycle consistency loss, requiring the generated features to reconstruct relevant medical keywords (e.g., "leukemia" for a leukemia-related code), preventing the generation of adversarial noise.

Experimental Setup

The model was evaluated using the MIMIC-III dataset, containing approximately 58,000 hospital admissions. Discharge summaries served as the input text. ICD-9 code information, including descriptions and hierarchical structures, was sourced from the CDC and augmented with clinical synonyms from online medical resources.

Results and Discussion

The primary breakthrough of AGM-HT is its ability to predict zero-shot codes where previous models failed completely.

Quantitative Performance

As shown in the table below, baseline models like ZAGRNN achieve a 0.00 F1 score on zero-shot codes. AGM-HT, particularly when combined with keyword reconstruction ($\mathcal{L}_{KEY}$), boosts the Micro F1 to 20.91% and the Macro F1 to 18.39%.

Comparison of zero-shot performance across different methods on the MIMIC-III dataset.

Importantly, this gain does not come at the expense of performance on seen codes. The model maintains a strong Micro F1 of 51.22% and an AUC of 96.70% for frequent labels, as the zero-shot classifiers are fine-tuned independently.

Qualitative Insights

T-SNE visualizations confirm that the generated features cluster logically near their real sibling codes. Furthermore, the keyword reconstructor successfully identifies highly relevant medical terms for unseen codes, such as "intoxicated" for an unseen poisoning code, validating the semantic integrity of the synthetic features.

Conclusion and Future Work

AGM-HT demonstrates that generating latent features guided by hierarchical priors and semantic keywords is a viable strategy for GZSL in clinical text classification. While the current implementation uses a CNN/RNN-based feature extractor due to the memory constraints of Transformers on long clinical notes, future work will focus on integrating efficient Transformer architectures like Longformer or BigBird to further enhance feature representation.

Summary updated

BibTeX
@inproceedings{song2020generalized,
  author = {Congzheng Song and Shanghang Zhang and Najmeh Sadoughi and Pengtao Xie and Eric P. Xing},
  title = {{Generalized Zero-Shot Text Classification for ICD Coding}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/556},
}
Figure