MDACE: MIMIC Documents Annotated with Code Evidence

Hua Cheng, Rana Jafari, April Russell, Russell Klopfer, Edmond Lu, Benjamin Striner, Matthew R. Gormley

Abstract

We introduce a dataset for evidence/rationale extraction on an extreme multi-label classification task over long medical documents. One such task is Computer-Assisted Coding (CAC) which has improved significantly in recent years, thanks to advances in machine learning technologies. Yet simply predicting a set of final codes for a patient encounter is insufficient as CAC systems are required to provide supporting textual evidence to justify the billing codes. A model able to produce accurate and reliable supporting evidence for each code would be a tremendous benefit. However, a human annotated code evidence corpus is extremely difficult to create because it requires specialized knowledge. In this paper, we introduce MDACE, the first publicly available code evidence dataset, which is built on a subset of the MIMIC-III clinical records. The dataset – annotated by professional medical coders – consists of 302 Inpatient charts with 3,934 evidence spans and 52 Profee charts with 5,563 evidence spans. We implemented several evidence extraction methods based on the EffectiveCAN model (Liu et al., 2021) to establish baseline performance on this dataset. MDACE can be used to evaluate code evidence extraction methods for CAC systems, as well as the accuracy and interpretability of deep learning models for multi-label classification. We believe that the release of MDACE will greatly improve the understanding and application of deep learning technologies for medical coding and document classification.

Introduction

In the healthcare sector, Computer-Assisted Coding (CAC) is a critical, high-stakes task. It falls under the umbrella of Extreme Multi-Label Text Classification (XMLTC), where models must assign specific diagnosis and procedure codes (e.g., ICD-10) from a library of tens of thousands to a single patient encounter. While deep learning has significantly improved code prediction accuracy, these models often operate as "black boxes." For billing, auditing, and clinical validity, a code is insufficient without the specific narrative evidence in the clinical note to back it up.

Until now, the gold-standard research database, MIMIC-III, contained codes and notes but lacked explicit links between them. This paper introduces MDACE, the first publicly available dataset providing human-annotated evidence spans for medical codes in long clinical documents, moving the field toward true, auditable explanation.

The MDACE Dataset

The MDACE dataset is built on a subset of the MIMIC-III clinical records, annotated by professional medical coders using the INCEpTION tool.

  • Scale and Scope: The dataset includes 302 Inpatient charts (3,934 evidence spans) and 52 "Profee" (Professional Fee) charts (5,563 evidence spans).
  • Annotation Standards: Annotations were performed using the modern ICD-10 system and subsequently mapped back to the ICD-9 codes found in MIMIC-III using General Equivalence Mappings (GEMs).
  • Diverse Note Types: Unlike many studies restricted to discharge summaries, MDACE incorporates various note types, including Physician, Radiology, and Nursing notes, providing a more holistic view of the patient encounter.

Methodology

To establish a baseline for evidence extraction, the authors utilized EffectiveCAN, a state-of-the-art convolutional neural network designed for medical coding. The model processes discharge summaries through Word2Vec embeddings and a series of Residual Squeeze-and-Excitation blocks.

Overview of the EffectiveCAN architecture with Supervised Attention for code evidence extraction.

The study explored four distinct approaches to extract evidence from the model's internal representations:

  1. Unsupervised Attention: Utilizing the model's internal attention weights as a "soft mask" to identify important tokens without explicit evidence training.
  2. Supervised Attention (SA): Training the attention mechanism directly using a Kullback–Leibler (KL) divergence loss to align model attention with human-annotated spans.
  3. Linear Tagging Layer: Adding a feed-forward layer on top of the document representations to predict token-level evidence.
  4. CNN Tagging Layer: A sequence-tagging approach using a 1D-convolutional layer to capture local context around evidence tokens.
Comparison of evidence extraction heads: (a) Linear/Attention-based and (b) CNN-based tagging layers.

Key Insights and Results

The Supervised Attention (SA) method emerged as the most effective approach across most metrics. On Inpatient discharge summaries, the SA model achieved a Token Match F1 score of 43.0 and an Exact Span Match F1 of 27.8.

Sufficient vs. Complete Evidence

A key finding was the tension between "sufficient" and "complete" evidence. Inpatient coders often stop once they find enough evidence to justify a code, whereas Profee coding requires finding all instances of evidence. This discrepancy suggests that models might identify valid evidence that human coders omitted, complicating evaluation.

The "Note Gap"

The research revealed that while discharge summaries contain approximately 87% of evidence for Inpatient coding, they are insufficient for Profee coding. For the latter, Physician and Radiology notes are significantly more critical, highlighting the need for multi-note analysis.

Performance on Spans

The models were notably better at identifying short, single-token evidence (e.g., "asthma") than multi-token spans (e.g., "peptic ulcer disease"). The SA model correctly predicted 90.9% of short spans but only 17.6% of multi-token spans exactly. Furthermore, the more complex tagging layers (Linear and CNN) underperformed compared to Supervised Attention, likely due to the high parameter count requiring more training data than currently available.

Conclusion and Future Work

MDACE represents a significant step toward explainable AI in clinical settings. However, challenges remain, including human annotation errors and the technical hurdle of processing massive clinical notes that often exceed the input limits of standard neural networks. Future work will involve expanding the dataset to MIMIC-IV and exploring architectures that can better handle long-range dependencies and the complex terminology inherent in clinical narratives.

Summary updated

BibTeX
@inproceedings{cheng2023mdace,
  author = {Hua Cheng and Rana Jafari and April Russell and Russell Klopfer and Edmond Lu and Benjamin Striner and Matthew R. Gormley},
  title = {{MDACE: MIMIC Documents Annotated with Code Evidence}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  url = {https://openreview.net/forum?id=htFO1c0VCg},
}
Figure