Introduction
Assigning standardized medical codes (ICD) to clinical notes is a critical yet error-prone bottleneck in modern healthcare. This task, known as Electronic Medical Record (EMR) coding, is essential for billing, clinical research, and hospital management. However, it presents three significant challenges: an extreme label space with thousands of potential codes, a severe data imbalance where rare codes (the "long tail") lack sufficient training examples, and the inherent complexity of long, unstructured clinical narratives.
Standard deep learning models typically excel at identifying frequent codes but struggle with rare ones because they cannot learn robust parametric weights from just a few examples. This paper introduces a hybrid neural architecture designed to overcome these limitations by combining standard Convolutional Neural Networks (CNNs) with "Matching Networks" to leverage similar past cases for better prediction.
Proposed Architecture
The authors propose a Semi-Parametric Multi-Head Matching Network. This architecture is "semi-parametric" because it utilizes fixed parameters for general feature extraction while relying on the data itself (a support set) for specific, rare-case logic.
Core Components:
- Parametric Feature Extractor (CNN): A standard CNN processes clinical text into a fixed-size vector representation.
- Non-Parametric Matching Network: Inspired by few-shot learning, the model maintains a "support set" (a memory bank of training examples). When classifying a new note, the model searches this set for similar cases and uses their labels to inform its predictions.
- Multi-Head Attention: The model uses multiple "heads" to project text into different subspaces, allowing it to identify neighbors that are similar across various clinical dimensions.
- MetaLabeler: To avoid the pitfalls of a static 0.5 probability threshold in imbalanced multi-label settings, a separate regression module predicts the specific number of labels a document should have.
Experimental Evaluation
The model was evaluated on two gold-standard datasets: MIMIC-II (a smaller, hierarchical dataset) and MIMIC-III (a larger dataset with over 37,000 training examples and nearly 7,000 unique labels).
Key Results
The proposed Match-CNN consistently outperformed state-of-the-art baselines, including Grounded Recurrent Neural Networks (GRNNs). The gains were particularly notable on the larger, more imbalanced MIMIC-III dataset.
As shown in the results, the Match-CNN ensemble improved Recall@40 (the ability to find correct codes within the top 40 suggestions) by nearly 5% over a standard CNN. Ablation studies further confirmed the importance of the matching component; removing it led to a nearly 5% drop in Micro PR-AUC, proving that the "memory" of similar cases is vital for performance.
Discussion and Future Work
The success of the Match-CNN rests on the homophily assumption: patient cases described similarly in notes likely share medical codes. By "borrowing" strength from similar training examples, the model identifies rare codes it hasn't seen enough to learn via standard weights. Furthermore, the MetaLabeler significantly boosts performance by treating label count as a secondary prediction task rather than relying on a flat threshold.
Future work aims to improve the selection process for the "support set" and explore zero-shot learning by incorporating ICD hierarchy knowledge graphs. This would allow the model to predict codes it has never encountered in the training data by leveraging their relationships to known parent categories.
Summary updated