Abstract
Integrating unstructured clinical notes with structured electronic health record (EHR) data presents a significant challenge in medical informatics. This paper introduces a novel multimodal fusion framework utilizing an "Attention Gating" mechanism. By dynamically prioritizing data modalities based on the specific clinical task—treating time-series data as primary for acute events and clinical notes as primary for complex diagnoses—the proposed model achieves state-of-the-art performance in predicting acute respiratory failure and patient diagnoses.
Introduction
Electronic Health Records (EHRs) are a rich source of information for deep learning, yet their multimodal nature makes them difficult to process. EHR data typically consists of three distinct types: time-invariant data (e.g., demographics), time-series data (e.g., vital signs), and unstructured clinical notes. While structured data is easier to model, clinical notes often contain the nuanced reasoning of medical professionals that sensors cannot capture.
The primary challenges in leveraging this data are twofold: first, the technical integration of disparate data types (sequences vs. text), and second, determining the relative importance of each modality for specific medical tasks.
Methods: The Multimodal Fusion Framework
The proposed architecture consists of three main stages: Encoding, Fusion, and Prediction.
Encoding
Specialized encoders are employed for each modality:
- Time-invariant (Ti): Processed through a fully-connected network with Linear and ReLU layers.
- Time-series (Ts): Evaluated using various architectures, including LSTM, CNN, and Transformers.
- Clinical Notes (Nt): Encoded using ClinicalBERT, a transformer model pre-trained on large-scale medical corpora.
Attention Gating and Fusion
The core innovation is the Multimodal Adaptation Gate (MAG). Unlike simple concatenation, MAG uses an "Attention Gating" mechanism to calculate a displacement vector from auxiliary data to shift the representation of the primary modality. This allows the model to dynamically adjust which data source drives the prediction.
Modality Switching
A critical insight of this work is that the "main" modality should vary by task. For acute emergencies like respiratory failure, time-series vitals provide the strongest signal. For complex long-term diagnoses, clinical notes become the primary modality.
Experimental Setup
The framework was evaluated using the MIMIC-III dataset, encompassing over 23,000 ICU visits. Structured data was preprocessed using the FIDDLE pipeline, while clinical notes were tokenized via WordPiece. The model was tested on two primary tasks:
- Diagnoses Prediction: Identifying disease groups from over 1,000 categories.
- Acute Respiratory Failure (ARF) Prediction: A binary classification task for a critical medical event.
Results and Discussion
The fusion models consistently outperformed state-of-the-art baselines that rely solely on structured data or naive integration methods.
Key Findings
- Modality Dominance: Clinical notes are the dominant modality for diagnosis prediction, as they synthesize all available evidence. Conversely, real-time vitals are more predictive for sudden emergencies like ARF.
- Fusion Efficacy: The
LstmBertmodel (prioritizing time-series) achieved an AUROC of 0.792 for ARF, while theBertEncodermodel (prioritizing notes) reached a Recall@30 of 0.587 for diagnoses. - Ablation Success: Removing any single modality resulted in a performance decline, confirming that demographics, vitals, and notes provide complementary views of patient health.
Conclusion
This research demonstrates that effective multimodal fusion in EHRs requires more than simple data aggregation. By employing task-specific attention gating, models can better mimic clinical reasoning. Future work will address challenges related to note sparsity and the high computational costs of large-scale transformer models in clinical settings.
Summary updated