Abstract
Accurately assigning standardized diagnosis and procedure codes from clinical text is crucial for healthcare applications. However, this remains challenging due to the complexity of medical language. This paper proposes a novel model that incorporates extreme multi-label classification tasks to enhance International Classification of Diseases (ICD) coding. The model utilizes deformable convolutional neural networks to fuse representations from hidden layer outputs of pre-trained language models and external medical knowledge embeddings fused using a multimodal approach to provide rich semantic encodings for each code. A probabilistic label tree is constructed based on the hierarchical structure existing in ICD labels to incorporate ontological relationships between ICD codes and enable structured output prediction. Experiments on medical code prediction on the MIMIC-III database demonstrate competitive performance, highlighting the benefits of this technique for robust clinical code assignment.
Introduction
Assigning International Classification of Diseases (ICD) codes to patient records is a cornerstone of modern healthcare, essential for billing, clinical decision support, and epidemiological research. However, manual coding is labor-intensive and error-prone due to the length and complexity of clinical notes, which are often filled with specialized jargon and abbreviations.
From a machine learning perspective, automated ICD coding is an Extreme Multi-Label Classification (XMLC) problem. It presents three primary hurdles: a massive label space consisting of tens of thousands of possible codes; a long-tail distribution where common codes dominate while rare diseases have very few training examples; and fragmented signals, where critical diagnostic information may be buried within thousands of words of a discharge summary.
Methodology: The ICDXML Framework
The authors introduce ICDXML, a framework designed to address these challenges through three innovative architectural pillars: dynamic semantic representations, biomedical knowledge integration, and probabilistic label trees.
Dynamic Semantic Representations
Standard Convolutional Neural Networks (CNNs) typically use a fixed stride and kernel size to process text. ICDXML instead employs 1D Deformable Convolutions. These adaptively adjust their sampling locations, allowing the model to flexibly fuse relevant information from different layers of a pre-trained language model (such as ClinicalLongformer). This approach recognizes that lower layers often capture local textual features while higher layers represent more abstract concepts. By dynamically fusing these layers, the model creates a more robust representation of the clinical note.
Biomedical Knowledge Integration
To bridge the gap between raw text and formal medical definitions, ICDXML incorporates external medical knowledge. It utilizes BioWordVec knowledge graph embeddings to represent medical concepts. These embeddings are fused with the text features using Multi-modal Factorized Bilinear (MFB) fusion. This technique addresses the "anisotropy gap"—the tendency of language model embeddings to occupy a narrow vector space—by projecting text and knowledge graph features into a shared space where they can effectively complement each other.
Probabilistic Label Trees (PLT)
To manage the computational complexity of thousands of labels, ICDXML organizes ICD codes into a hierarchical tree structure. Instead of performing a flat search across all possible codes, the model uses a top-down approach, first predicting broad categories and then narrowing down to specific codes.
The tree is constructed using a bottom-up clustering approach (the ISODATA algorithm), ensuring that the model respects the natural ontological relationships between diseases. This provides a strong inductive bias that significantly improves the prediction of rare, "long-tail" codes.
Experimental Evaluation
The researchers evaluated ICDXML using the MIMIC-III database, focusing on two benchmarks:
- MIMIC-III-50: A subset of the 50 most frequent codes.
- MIMIC-III-FULL: The complete dataset featuring 8,922 distinct ICD-9 codes, representing the true "extreme" classification challenge.
Key Results
ICDXML achieved state-of-the-art or highly competitive results. On the MIMIC-III-FULL dataset, it outperformed established models like EffectiveCAN and JointLAAT in Macro-F1 scores. This indicates that ICDXML is particularly effective at identifying a wide variety of diseases, including those in the long tail, rather than just the most common ones.
Ablation studies further revealed that the Probabilistic Label Tree was the most critical component; its removal led to the most significant drop in performance. This confirms that hierarchical structuring is essential for scaling to large label spaces.
Discussion and Future Work
While ICDXML demonstrates strong performance and scalability, the authors identify several avenues for future research. Currently, the label tree structure is static; allowing the tree to evolve and "learn" during training could further improve alignment with the data. Additionally, while deformable convolutions offer flexibility, more advanced attention mechanisms might capture even more complex semantic interactions within long clinical documents.
In conclusion, ICDXML provides a scalable and robust solution for automated ICD coding by combining advanced text representation techniques with hierarchical label management, paving the way for more efficient clinical documentation in hospital systems.
Reference: Wang, Z., Wang, Y., et al. (2024). ICDXML: enhancing ICD coding with probabilistic label trees and dynamic semantic representations. Scientific Reports, 14:18319. https://doi.org/10.1038/s41598-024-69214-9
Summary updated