Abstract
Automated ICD coding is essential for healthcare operations, yet deep learning models often lack the transparency required for clinical trust. This study investigates the "anatomy" of evidence in medical coding, comparing AI-generated justifications against professional human annotations. By introducing nuanced match measures, we reveal that while supervised models effectively identify relevant text spans, a significant gap remains in achieving the exact justifications necessary for regulatory compliance.
Introduction
Assigning International Classification of Diseases (ICD) codes to patient records is a cornerstone of modern healthcare, influencing hospital reimbursement and clinical research. While Transformer-based models have achieved high performance in this multi-label classification task, they remain "black boxes." For a medical coder or regulatory body to trust an AI-generated code, the model must provide specific text evidence from discharge summaries.
Evaluating these explanations is challenging due to the complexity of clinical notes and the previous lack of high-quality "ground truth" annotations. This paper seeks to understand the characteristics of human-provided evidence and assesses how well state-of-the-art explainable AI (XAI) models can replicate it.
Methods
The investigation followed a multi-stage approach:
- Human Evidence Analysis: Analyzing the distribution and characteristics of human-annotated evidence.
- Model Evaluation: Testing 50 model seeds based on the PLM-ICD architecture (RoBERTa-based).
- Feature Attribution: Utilizing AttInGrad, which combines attention weights with "Input×Grad" gradients to identify decisive tokens.
- Match Measures: Proposing new metrics to categorize explanation quality, including Exact match (identical span), Proximate match (token overlap), and Partial match (within a 10-token context window).
Datasets and Human Evidence
The study utilizes the MDACE dataset, a subset of MIMIC-III containing 302 admissions re-annotated by professional coders. It features two labeling schemes: Inpatient (sufficient evidence) and Profee (complete evidence).
Analysis of the human evidence shows significant variation across note types. As seen in Figure 1, categories like "Discharge S." and "Physician" contain the highest average evidence counts, particularly in the Profee scheme, which requires exhaustive annotation of every condition mention.
Key Insights and Results
The Location of Evidence
A common assumption in clinical NLP is that "sufficient" evidence appears early in a document. However, the researchers found that evidence is distributed throughout discharge summaries, often clustering at both the beginning and the end of the record.
Model Performance and Attribution
- Supervision is Essential: Supervised models produced significantly more "Exact matches" than unsupervised ones. In roughly 80% of test cases, the supervised model identified at least one correct token.
- Semantic Near Misses: About half of "No Match" cases were semantically correct (e.g., the model highlighted "obese" while the human highlighted "obesity"), suggesting a need for synonym-aware metrics.
- Descriptions Matter: Much of the ground-truth evidence aligns with official ICD code descriptions, suggesting that hybrid systems combining deep learning with rule-based title matching could be effective.
Conclusion and Future Work
While current models are adept at finding relevant context, achieving "exact" evidence remains a hurdle for clinical deployment. The authors suggest that future work should move toward semantic similarity evaluations rather than strict token matching and explore how to better formalize the distinction between "sufficient" and "complete" evidence during model training.
Summary updated