Toward Digital Twins in the Intensive Care Unit: A Medication Management Case Study

Behnaz Eslami, Majid Afshar, M. Samie Tootooni, Timothy S. Miller, Matthew M. Churpek, Yanjun Gao, Dmitriy DligachmedRxiv 2024

Abstract

Context-specific fine-tuning of large language models is crucial for developing effective digital twins, offering foundational insights for personalized clinical decision support.

Introduction

The Intensive Care Unit (ICU) is a high-pressure environment characterized by extreme data density and critical decision-making. Clinicians often face cognitive overload while managing patients with complex, multi-system failures. While Large Language Models (LLMs) have demonstrated potential in medical domains, a generalized "one-size-fits-all" AI often overlooks the distinct "cultures" and treatment protocols inherent to different ICU specialties. For example, the management of hemodynamic instability in a Medical ICU (MICU) may differ significantly from the approach taken in a Cardiothoracic ICU (CTICU).

This study explores the development of "functional digital twins"—surrogate models designed to reflect these specialty-specific behaviors—to provide more accurate, context-aware clinical decision support.

Methodology: The Medication Prediction Task

The researchers framed medication management as a sequence generation task. Using LLaMA-3 (8B-Instruct) as a base, they employed Low-Rank Adaptation (LoRA) for efficient fine-tuning. This technique allows the model to capture specialty-specific nuances by updating only a small fraction of the total parameters, preventing overfitting on the relatively small specialty datasets.

The core task involved processing ICU discharge summaries where all medication mentions were replaced with a [MEDICATION] token. The model was then required to predict the missing medications based on the surrounding clinical context, such as the Chief Complaint and History of Present Illness.

Example of the medication masking and prediction task using clinical notes.

Dataset and Specialty Distribution

The study utilized the MIMIC-III (Medical Information Mart for Intensive Care III) database, a comprehensive open-access repository. The dataset was partitioned by ICU specialty to train distinct "twins."

Distribution of clinical notes across ICU specialties in the MIMIC-III dataset.

As shown in the distribution above, the Medical ICU accounts for nearly half of the available data (49.7%), providing a robust foundation for training. Other specialties, including Cardiothoracic (15.5%) and Surgery (13.1%), offered smaller but highly specialized subsets for comparative analysis.

Key Insights: Specialty-Specific "Style"

A primary finding of the research is that specialty-specific training is indispensable. The model fine-tuned on Medical ICU notes significantly outperformed those trained on other domains when tested on MICU data. Notably, the Cardiothoracic ICU twin performed the worst on Medical ICU tasks, underscoring the "tribal knowledge" and distinct prescribing preferences between these specialties.

Furthermore, the study demonstrated that simple prompt engineering—telling a zero-shot LLM to "act as a Medical ICU physician"—was insufficient to bridge this gap. The nuanced decision-making patterns are deeply embedded in the historical clinical notes and require supervised fine-tuning (SFT) to be effectively replicated.

Results and Performance

The performance was evaluated using BERTScore to capture semantic similarity, acknowledging that clinicians often use synonyms or drug classes interchangeably.

  • SFT Superiority: The best-performing model (fine-tuned on 16,330 MICU notes) achieved a BERTScore of 0.842.
  • Zero-Shot Limitations: In contrast, the zero-shot baseline reached a BERTScore of only 0.721 and an exact match accuracy of just 1%.
  • Data Scaling: Performance improved as the training set size increased from 4,000 to 16,000 notes, suggesting that more specialty-specific data continues to refine the "twin's" accuracy.

Conclusion and Future Directions

This work redefines the "digital twin" not as a real-time replica of a single patient, but as a domain-specific functional twin that replicates the collective decision-making behavior of a clinical team. While current models are "offline" and limited to a single hospital system, they provide a blueprint for future real-time, patient-specific simulations that incorporate lab results, procedures, and event forecasting.

Summary updated

BibTeX
@misc{eslami2024toward,
  author = {Behnaz Eslami and Majid Afshar and M. Samie Tootooni and Timothy S. Miller and Matthew M. Churpek and Yanjun Gao and Dmitriy Dligach},
  title = {{Toward Digital Twins in the Intensive Care Unit: A Medication Management Case Study}},
  year = {2024},
  doi = {10.1101/2024.12.20.24319170},
  howpublished = {medRxiv},
}
Figure