Convolutional Attention Models with Post-Processing Heuristics at CLEF eHealth 2020

Elias Moons, Marie-Francine MoensCLEF (Working Notes) 2020

Abstract

Automated medical coding—the assignment of standardized ICD-10 codes to clinical text—is a critical task for healthcare administration and research. However, it remains a significant challenge when training data is extremely scarce. This paper, presented at CLEF eHealth 2020, investigates methods to leverage the hierarchical structure of the ICD taxonomy to improve performance in low-data environments. By employing convolutional attention models alongside hierarchical loss functions and post-processing heuristics, the authors demonstrate that simple taxonomic smoothing can significantly boost predictive accuracy.

Introduction

Medical coding involves transforming unstructured physician notes into standardized codes like ICD-10. This is a massive multi-label classification problem, often involving thousands of possible categories. The authors focus on the CodiEsp dataset, which exemplifies a "small data" scenario: only 500 training documents are available to cover over 1,700 possible diagnostic codes. In such sparse environments, standard deep learning models struggle to generalize as most codes appear only a few times in the training set.

Distribution of code frequencies in the CodiEsp training set for diagnostic (left) and procedural (right) subtasks, illustrating the extreme data sparsity.

Methods

The researchers compared two primary architectures and introduced several hierarchical enhancements:

  1. Base Models:
    • DR-CAML: A Convolutional Neural Network (CNN) utilizing label-wise attention to focus on relevant text segments for each specific code.
  2. MVC-RLDA: A multi-view variant that employs multiple CNN kernels of varying sizes to capture both short phrases and longer contextual sentences.
  3. Hierarchical Objective: The training process was modified with a custom loss function ($loss_H$) that penalizes the model for predicting a "child" code without its corresponding "parent" code in the ICD taxonomy.
  4. Post-Processing Heuristics (H1–H7): The most novel contribution involves "smoothing" initial model predictions using the ICD-10 tree. For instance, Heuristic H1 recalculates a code's score by adding a weighted sum of the scores of its taxonomic neighbors.
The architecture of the multi-view convolutional attention model, showing the flow from input text (x) through various attention layers to final predictions.

Results and Discussion

The study utilized the CodiEsp dataset, consisting of 1,000 clinical cases. Due to data sparsity, models were primarily trained on the 50 most frequent codes.

Key findings include:

  • Model Complexity vs. Data Size: The more complex MVC-RLDA model underperformed compared to the simpler DR-CAML. With limited training samples, the additional parameters in the multi-view model likely led to overfitting on noise.
  • Effectiveness of Heuristics: Applying post-processing heuristics (specifically H1, based on simple node distance) provided a larger performance boost than incorporating the hierarchy directly into the loss function. For the diagnostic subtask, H1 nearly doubled the F1-score of the baseline CAML model (from 0.041 to 0.076).
  • Hierarchy as a Prior: The hierarchical structure serves as a vital "safety net," helping the model filter out illogical predictions when it is uncertain.

Conclusion

This research highlights that for automated medical coding with limited data, "nudging" final outputs via taxonomic heuristics is more robust than increasing model architectural complexity. While the overall scores remain low, reflecting the inherent difficulty of the task, the use of hierarchical priors offers a promising path forward for small-scale clinical datasets. Future work will focus on addressing the "long-tail" of rare codes and evaluating models on original non-translated clinical text.

Summary updated

BibTeX
@inproceedings{moons2020convolutional,
  author = {Elias Moons and Marie-Francine Moens},
  title = {{Convolutional Attention Models with Post-Processing Heuristics at CLEF eHealth 2020}},
  booktitle = {CLEF (Working Notes)},
  year = {2020},
  url = {https://openreview.net/forum?id=xsUdUym6oQr},
}
Figure