Abstract
Automated International Classification of Diseases (ICD) coding is essential for modern healthcare systems, yet it remains challenging due to the extreme "long-tail" distribution of codes and the high level of noise in clinical notes. We present ISD (Interactive Shared representation networks with self-Distillation), a novel framework designed to address these hurdles. By employing a shared attention mechanism, the model enables rare codes to leverage information from more frequent ones. Furthermore, a self-distillation mechanism is introduced to filter out irrelevant text by aligning representations of messy clinical notes with clean, standardized code descriptions. Experimental results on MIMIC-II and MIMIC-III benchmarks show that ISD achieves state-of-the-art performance, particularly in identifying infrequent medical conditions.
Introduction
ICD coding involves assigning standardized alphanumeric codes to patient clinical notes, a process critical for medical billing, epidemiological studies, and hospital management. Manually performing this task is labor-intensive and error-prone due to the vast number of possible codes and the length and complexity of clinical documentation.
Two primary challenges hinder existing automated systems:
- The Long-Tail Problem: Frequent codes (e.g., hypertension) dominate training data, while thousands of rare codes have very few examples, making it difficult for models to learn their specific features.
- Noisy Text: Clinical notes often contain redundant templates and irrelevant information. It is estimated that only about 10% of the text in a typical note is relevant to the final assigned codes.
Methodology
The ISD framework addresses these challenges through a multi-stage architecture and a specialized training strategy.
Model Architecture
The core architecture consists of several key components designed to extract and refine medical information:
- Multi-Scale CNN Encoder: This captures local semantic patterns across various phrase lengths within the clinical note.
- Shared Attention Mechanism: Unlike traditional label-specific attention which struggles with rare labels, ISD learns a set of shared queries. This allows rare codes to "borrow" knowledge from shared representations, improving their detectability.
- Interactive Transformer Decoder: This module captures the co-occurrence relationships between different ICD codes within the context of a specific patient's note.
Self-Distillation and Pretext Tasks
To combat the noise in clinical text, ISD utilizes a self-distillation mechanism. This approach involves a "teacher" path that processes clean, standardized descriptions of the target codes and a "student" path that processes the original, noisy clinical note. The student is trained to minimize the distance between its representation and the teacher's "clean" version, effectively learning to ignore irrelevant text.
Additionally, the model is pre-trained on two pretext tasks to better model code interactions:
- Missing Code Completion: Predicting a missing code from a partial set of annotated codes.
- Wrong Code Removal: Identifying an incorrectly added "decoy" code.
Experiments and Results
The model was evaluated on the MIMIC-II and MIMIC-III datasets, which are standard benchmarks for clinical NLP.
Performance on MIMIC-III
On the MIMIC-III full dataset (8,921 codes), ISD achieved a Macro-F1 score of 0.119, outperforming the previous state-of-the-art model, JointLAAT (0.107). Macro-F1 is a particularly rigorous metric as it weights all codes equally, highlighting ISD's superior performance on rare diseases.
Performance on MIMIC-II
On the MIMIC-II dataset, the model demonstrated high precision, achieving a P@8 of 0.564. This indicates that over half of the top eight predicted codes were correct.
Ablation Study
Ablation experiments confirmed the importance of the self-distillation component. Removing this mechanism led to a significant performance drop, validating its effectiveness as a denoising filter for clinical text.
Conclusion
The ISD framework represents a significant advancement in automatic ICD coding. By combining shared attention mechanisms to handle the long-tail problem with a self-distillation process for denoising, the model achieves new state-of-the-art results on benchmark datasets. Future work will focus on improving the interpretability of shared representations and testing the model's generalizability across diverse hospital systems.
Summary updated