Intriguing Effect of the Correlation Prior on ICD-9 Code Assignment

Zihao Yang, Zhang Chenkang, Muru Wu, Xujin Chris Liu, Lavender Yao Jiang, Kyunghyun Cho, Eric Karl Oermann · DOI

Abstract

Automated assignment of International Classification of Diseases (ICD-9) codes to clinical notes is a critical task for hospital administration and epidemiological research. However, the extreme label imbalance inherent in medical coding presents a significant challenge for AI models. This paper investigates whether incorporating "correlation priors"—domain knowledge about the relationships between different medical codes—can improve classification accuracy. By testing state-of-the-art transformer models on the MIMIC-III dataset using multitasking and specialized loss functions, the authors uncover a surprising counter-effect: adding these priors often degrades model performance. This study highlights the complex trade-off between domain knowledge integration and model complexity in clinical NLP.

The Challenge of Label Imbalance

Assigning ICD-9 codes is a monumental task due to the sheer volume and technical nature of the classification system. For machine learning models, the primary hurdle is label imbalance. A small number of "popular" codes appear in thousands of records, while a vast "long tail" of rare diseases may appear only a handful of times.

The long-tail distribution of medical codes illustrates the extreme label imbalance that models must navigate.

Current language models struggle significantly with these rare codes. The researchers hypothesized that leveraging the known correlations between diagnoses and auxiliary data—such as procedures (CPT codes) or insurance groupings (DRG codes)—could act as a helpful "prior" to guide model predictions, particularly for the difficult rare classes.

Methodology: Integrating Domain Knowledge

The study evaluated three transformer architectures: ClinicalBERT, RoBERTa, and Longformer. Two primary methods were used to integrate correlation priors:

  1. Multitasking: Models were trained to simultaneously predict ICD-9 codes and auxiliary codes (CPT or DRG). The goal was to help the model learn the underlying relationships between related medical concepts (e.g., a specific surgery and its corresponding diagnosis).
  2. CorrLoss Regularization: A specialized loss function, CorrLoss, was implemented to penalize the model if the correlations between its predicted labels deviated from the ground-truth correlations found in the training data.

These methods were tested on both the full MIMIC-III dataset and MIMIC-III-50, a subset containing the 50 most frequent codes.

Key Insights: The "More Info" Paradox

Contrary to expectations, the inclusion of auxiliary tasks and correlation-based loss functions consistently led to a decrease in overall performance. This phenomenon, which the authors describe as a "more info" paradox, suggests that the increased complexity of the output space (the "curse of dimensionality") often outweighs the benefits provided by the extra signal.

Performance changes (F1, Precision, Recall) relative to label balance and correlation strength, showing high volatility in the long tail.

As shown in the analysis of performance changes, the impact of these priors is highly nuanced. Labels with low "balance" (rare codes) or weak correlations with auxiliary tasks were the most sensitive, exhibiting wild swings in performance when priors were introduced. This volatility suggests that correlation priors are not a universal solution but depend heavily on the specific distribution of the labels.

Quantitative Results

The performance drop was most evident in the controlled MIMIC-III-50 scenario:

  • Macro F1 Scores: ClinicalBERT’s score dropped from 0.4528 to 0.397 when CPT codes were added as an auxiliary task.
  • CorrLoss Impact: The addition of CorrLoss regularization further decreased performance across nearly all model configurations.
  • Dataset Sensitivity: On the full, highly imbalanced MIMIC-III dataset, the impact was negligible, as the models already struggled to achieve high baseline scores on rare classes.

Limitations and Future Directions

The authors note that the "strength" of the CorrLoss regularization was not exhaustively tuned, which may have impacted the results. Additionally, the computational cost of these experiments limited the ability to run multiple random seeds to confirm statistical stability. Future research is needed to quantify the exact tipping point where the benefit of dependency information is overtaken by the complexity of the learning task.

Ultimately, this research serves as a cautionary tale for medical AI development: simply "plugging in" domain knowledge does not guarantee improved outcomes. Model architectures must be carefully balanced against the added complexity of the data they are designed to process.

Summary updated

BibTeX
@inproceedings{yang2023intriguing,
  author = {Zihao Yang and Zhang Chenkang and Muru Wu and Xujin Chris Liu and Lavender Yao Jiang and Kyunghyun Cho and Eric Karl Oermann},
  title = {{Intriguing Effect of the Correlation Prior on ICD-9 Code Assignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-srw.19},
}
Figure