NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Can Current Explainability Help Provide References in Clinical Notes to Support Humans Annotate Medical Codes?

Byung-Hak Kim, Zhongfen Deng, Philip S. Yu, Varun Ganapathi

Abstract

While deep learning models have achieved human-level performance in medical coding, their "black box" nature limits their utility in clinical workflows. We present xRAC (explainable Read, Attend, and Code), a framework designed to extract text snippets from clinical notes as evidence for predicted codes. We evaluate two approaches: an attention-based method (xRAC-ATTN) and a knowledge distillation method (xRAC-KD). Our results demonstrate that xRAC-ATTN achieves state-of-the-art performance. However, a human-grounded evaluation reveals a significant "expertise gap": professional medical coders find AI-generated explanations significantly less useful than laypeople do, suggesting that current explainability metrics may not reflect real-world clinical utility.

Introduction

Medical coding—the process of transforming free-text clinical notes into standardized alphanumeric codes (like ICD-10)—is a high-stakes, time-consuming task requiring deep domain expertise. While Transformer-based models have reached performance parity with humans in predicting these codes, they suffer from a "trust deficit." Professional coders require specific evidence—the "receipts"—within a note to justify a diagnosis. Most current models fail to provide these references, particularly for the "long tail" of rare medical codes.

Methods: The xRAC Framework

The xRAC framework explores two primary methods for evidence extraction:

  1. xRAC-ATTN (Attention-based): This method leverages the internal attention scores of a Transformer model to identify words the model prioritized, extracting the surrounding text as a justificatory snippet.
  2. xRAC-KD (Knowledge Distillation): A model-agnostic approach where a complex "teacher" model distills its knowledge into simpler, inherently interpretable linear "student" models.

To address performance issues with rare codes, we introduced two novel loss functions: Code Prior Matching (CPM), which ensures the model learns features for all codes equally, and Text Prior Matching (TPM), which encourages the model to attend to the entire clinical note rather than just frequent tokens.

Experimental Setup

The study utilizes the MIMIC-III dataset, containing de-identified clinical data from over 40,000 patients. We focused on discharge summaries, which are dense, unstructured documents typically paired with multiple medical codes.

Key Results

Quantitatively, the xRAC-ATTN model achieved state-of-the-art results, outperforming or matching the base RAC model across several key metrics, including Micro F1 and hierarchical F1 scores. This confirms that adding explainability components does not necessarily degrade predictive performance.

Performance comparison of xRAC variants against baseline models on the MIMIC-III dataset.

The Expertise Gap in Human Evaluation

The most striking finding of this research is the subjectivity of explainability. In a study of 3,813 predicted codes, we compared the perceptions of lay annotators (Group A) and professional medical coders (Group B).

Human evaluation results comparing lay annotators (Group A) and professional coders (Group B).

As shown in the evaluation data, laypeople found AI-generated snippets "informative" nearly 80% of the time for the xRAC-ATTN model. However, professional coders were far more critical, finding the same snippets useful only 62% of the time. This gap was even more pronounced for the xRAC-KD model, where laypeople gave a 57.25% informative rating compared to a staggering 9.36% from professionals. The Jaccard Similarity between the two groups was lower than 40%, indicating that without medical training, humans cannot accurately judge the validity of an AI's clinical explanation.

Discussion and Conclusion

Our findings highlight that AI accuracy does not equate to human utility. A model may correctly predict a code, but if the highlighted evidence is clinically irrelevant—such as highlighting "dental extractions" as evidence for a "heart catheterization" code—it fails to support professional workflows.

Future work will focus on human-in-the-loop studies to see if these snippets actually improve coder efficiency in real-time. Additionally, we aim to move beyond simple text highlighting toward generating natural language justifications that explain the clinical logic mapping a finding to a specific medical code.

Summary updated

BibTeX
@inproceedings{kim2022can,
  author = {Byung-Hak Kim and Zhongfen Deng and Philip S. Yu and Varun Ganapathi},
  title = {{Can Current Explainability Help Provide References in Clinical Notes to Support Humans Annotate Medical Codes?}},
  booktitle = {LOUHI @ EMNLP},
  year = {2022},
  doi = {10.18653/v1/2022.louhi-1.3},
}
Figure