Contextual Embeddings from Clinical Notes Improves Prediction of Sepsis

Fatemeh Amrollahi, Supreeth P. Shashikumar, Fereshteh Razmi, Shamim Nemati

TL;DR

Researchers have developed a deep learning model that significantly improves sepsis prediction by combining structured patient data (like heart rate and lab results) with contextual embeddings from unstructured clinical notes. By leveraging ClinicalBERT, the model captures nuanced clinician observations that traditional data misses, boosting the Area Under the Curve (AUC) from 0.81 to 0.84.

What Problem Does This Paper Address?

Sepsis is a life-threatening condition where the body’s response to infection damages its own tissues. It affects over a million Americans annually and is a leading cause of hospital mortality. While early detection is the "holy grail" of sepsis treatment, it remains difficult because early symptoms are often subtle and non-specific.

Most existing predictive models rely on structured data—the numbers found in Electronic Health Records (EHR) like blood pressure, temperature, and lab values. However, over 80% of EHR data is unstructured, consisting of free-text clinical notes, nursing reports, and physician observations. These notes contain vital "soft" information (e.g., a nurse noting a patient "looks dusky" or "seems confused") that structured data often fails to capture. The challenge is that unstructured text is messy, full of jargon, and difficult for standard algorithms to process without extensive manual labeling.

Methods

The authors propose a hybrid deep learning architecture that integrates both numerical and textual data:

  1. Text Processing (ClinicalBERT): Instead of using traditional keyword-counting methods (like TF-IDF), the researchers used ClinicalBERT, a version of the BERT language model specifically pre-trained on medical papers and clinical notes. This allows the model to understand context and negations (e.g., the difference between "patient has a cough" and "patient denies a cough").
  2. Feature Extraction: They extracted the activation levels from the last four hidden layers of ClinicalBERT to create a document-level representation of clinical notes.
  3. The Model (LSTM): These text embeddings were concatenated with 40 structured features (vitals, labs, and demographics). This combined feature vector was fed into a Long Short-Term Memory (LSTM) neural network, which is designed to recognize patterns in sequential data over time.
  4. Comparison: The team compared their "Model IV" against several baselines, including a model using only structured data and one using structured data combined with traditional TF-IDF text features.

Datasets

The study utilized the MIMIC-III (Medical Information Mart for Intensive Care) database, a large, publicly available dataset of de-identified health data.

  • Cohort Size: Over 40,000 patients, including 2,805 septic patients.
  • Data Types: Hourly windows of physiological data and all associated physician/nursing notes.
  • Exclusions: Patients under 18 or over 89, stays shorter than 8 hours or longer than a month, and those who were septic upon admission.

Key Insights and Ideas

  • Context is King: Traditional NLP methods like TF-IDF only capture the frequency of words. ClinicalBERT captures the meaning and structure of sentences, allowing the model to "read" the notes more like a human clinician would.
  • Latent Information: The study confirms that clinical notes provide "latent" features—information that isn't explicitly recorded in a lab test but is crucial for early diagnosis.
  • Efficiency in Layers: Interestingly, the researchers found that using the full 12 layers of BERT didn't improve performance but did increase computational cost. They achieved optimal results using just the last four layers.
  • Reducing False Alarms: By providing a more holistic view of the patient, the model doesn't just improve detection; it helps reduce the "noise" of false alarms that can lead to alarm fatigue in busy ICUs.

Key Results

The inclusion of contextual text embeddings provided a clear performance boost:

  • Structured Data Only (Baseline): AUC of 0.81.
  • Structured Data + TF-IDF: AUC of 0.82.
  • Structured Data + ClinicalBERT (Proposed): AUC of 0.84.
  • Specificity: At a high sensitivity level (0.85), the ClinicalBERT model achieved a specificity of 0.67, outperforming the structured-only model (0.63).
  • Notes Alone: Even using only clinical notes (no vitals or labs), the model achieved an AUC of 0.74, proving the high predictive value of clinician observations.

Limitations and Future Work

  • Computational Intensity: While more accurate, transformer-based models like BERT require significantly more computing power than simpler models, which could impact real-time deployment in resource-constrained hospitals.
  • Single-Center Data: The study relied on MIMIC-III, which comes from a single medical center. The authors note that further validation on diverse, multi-center datasets is needed to ensure the model generalizes across different hospital systems and note-taking styles.
  • Prospective Validation: While the retrospective results are promising, the next step is "bedside" testing to see how the model performs in a live clinical environment where data arrives in real-time.

Summary updated

BibTeX
@inproceedings{amrollahi2020contextual,
  author = {Fatemeh Amrollahi and Supreeth P. Shashikumar and Fereshteh Razmi and Shamim Nemati},
  title = {{Contextual Embeddings from Clinical Notes Improves Prediction of Sepsis}},
  booktitle = {Amia},
  year = {2020},
}
Figure