Skip to main content
QUICK REVIEW

[Paper Review] Improved Hierarchical Patient Classification with Language Model Pretraining over Clinical Notes

Jonas Kemp, Alvin Rajkomar|arXiv (Cornell University)|Sep 6, 2019
Machine Learning in HealthcareComputer Science50 references12 citations
TL;DR

This paper proposes a hierarchical recurrent neural network with language model pretraining (SHiP) to improve clinical note understanding in electronic health records. By preserving sequential structure and leveraging pretraining on note text, the model achieves state-of-the-art performance on hierarchical diagnosis classification tasks in the MIMIC-III dataset, with significant gains in AUROC and recall metrics over baseline models that ignore context or skip pretraining.

ABSTRACT

Clinical notes in electronic health records contain highly heterogeneous writing styles, including non-standard terminology or abbreviations. Using these notes in predictive modeling has traditionally required preprocessing (e.g. taking frequent terms or topic modeling) that removes much of the richness of the source data. We propose a pretrained hierarchical recurrent neural network model that parses minimally processed clinical notes in an intuitive fashion, and show that it improves performance for discharge diagnosis classification tasks on the Medical Information Mart for Intensive Care III (MIMIC-III) dataset, compared to models that treat the notes as an unordered collection of terms or that conduct no pretraining. We also apply an attribution technique to examples to identify the words that the model uses to make its prediction, and show the importance of the words' nearby context.

Motivation & Objective

  • To address the challenge of heterogeneous, unstructured clinical notes in EHRs that are often ignored or oversimplified in predictive modeling.
  • To improve hierarchical patient classification by preserving sequential and contextual information in clinical notes without extensive preprocessing.
  • To evaluate the effectiveness of language model pretraining in enhancing representation learning for clinical notes in a hierarchical deep learning framework.
  • To interpret model predictions using attribution techniques, identifying key words and phrases influencing outcomes.
  • To demonstrate that pretraining and hierarchical modeling jointly improve performance on downstream clinical prediction tasks.

Proposed method

  • The model uses a hierarchical attention network to process clinical notes, maintaining word order and applying attention to focus on relevant segments.
  • It employs a bidirectional LSTM over note tokens to generate context-sensitive representations, with hierarchical attention aggregating these into a single note embedding.
  • A language model pretraining objective is applied to the note-level LSTM, training it to predict the next word (or previous in bidirectional case) before end-to-end fine-tuning.
  • The model integrates note embeddings with structured EHR features (e.g., diagnoses, labs) via bagging over fixed time intervals to reduce sequence length.
  • A path-integrated gradients attribution method is used to compute word-level importance scores, with respect to a zero-vector baseline and 20 integration steps.
  • The architecture combines a patient history encoder (LSTM over time-bagged features) with a note-specific encoder (LSTM + attention), jointly trained on prediction loss.

Experimental results

Research questions

  • RQ1Does language model pretraining improve hierarchical classification performance on clinical notes compared to non-pretrained or bag-of-words baselines?
  • RQ2Can preserving sequential structure in clinical notes lead to better predictive performance than treating them as unordered term collections?
  • RQ3How do model predictions depend on specific words and their local context, as revealed by attribution methods?
  • RQ4What is the optimal configuration of sequence length, bagging duration, and pretraining schedule for clinical note modeling?
  • RQ5Does bidirectional modeling of notes yield better performance than unidirectional modeling in this context?

Key findings

  • The SHiP model achieved an AUROC of 0.889 (±0.002) on the weighted multilabel ICD-9 diagnosis task, outperforming the non-pretrained hierarchical model (0.869) and BOW baselines.
  • For primary CCS diagnosis, the SHiP model achieved a top-1 recall of 0.671 (±0.004) with 8-hour bagging, compared to 0.591 for non-pretrained models.
  • The bidirectional SHiP model showed a 0.012 higher top-1 recall and 0.008 higher AUROC than the unidirectional variant on the primary CCS task.
  • Pretraining up to 24 hours or until discharge yielded nearly identical performance (AUPRC 0.478 vs. 0.479), suggesting that earlier pretraining is sufficient.
  • Attribution analysis revealed that model predictions heavily rely on words and their immediate context, confirming the importance of local linguistic structure.
  • The model with 2500-token truncation for notes performed better than 1000-token truncation, especially for diagnosis tasks, indicating that longer context improves performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.