Abstract
As two important textual modalities in electronic health records (EHR), both structured data (clinical codes) and unstructured data (clinical narratives) have recently been increasingly applied to the healthcare domain. Most existing EHR-oriented studies, however, either focus on a particular modality or integrate data from different modalities in a straightforward manner, which usually treats structured and unstructured data as two independent sources of information about patient admission and ignore the intrinsic interactions between them. In fact, the two modalities are documented during the same encounter where structured data inform the documentation of unstructured data and vice versa. In this paper, we proposed a Medical Multimodal Pre-trained Language Model, named MedM-PLM, to learn enhanced EHR representations over structured and unstructured data and explore the interaction of two modalities. In MedM-PLM, two Transformer-based neural network components are firstly adopted to learn representative characteristics from each modality. A cross-modal module is then introduced to model their interactions. We pre-trained MedM-PLM on the MIMIC-III dataset and verified the effectiveness of the model on three downstream clinical tasks, i.e., medication recommendation, 30-day readmission prediction and ICD coding. Extensive experiments demonstrate the power of MedM-PLM compared with state-of-the-art methods. Further analyses and visualizations show the robustness of our model, which could potentially provide more comprehensive interpretations for clinical decision-making.
Introduction
Electronic Health Records (EHR) are a cornerstone of clinical AI, yet they are fundamentally bifurcated into two modalities: structured data (standardized ICD-9 diagnosis codes or ATC medication codes) and unstructured data (free-text clinical narratives). Most current models treat these as independent silos, either focusing on a single modality or employing simple late-stage concatenation. This approach ignores the intrinsic interactions between modalities—for instance, a physician's note may clarify a specific drug dosage that a code only identifies generally, or a code may provide a high-level diagnosis that the narrative describes in granular detail. Failing to model these cross-modal interactions leads to a loss of critical clinical context.
Methodology
To address this gap, we propose MedM-PLM (Medical Multimodal Pre-trained Language Model), which utilizes a three-part architecture designed to capture both unimodal features and cross-modal interactions.
Architecture
The model consists of three primary components:
- Unimodal Module: Two separate Transformer-based encoders process the input modalities. For structured codes, Graph Attention Networks (GAT) incorporate hierarchical medical ontologies (e.g., the tree structure of ICD-9), ensuring the model understands categorical relationships. For unstructured text, a BERT-like architecture is initialized with ClinicalBERT weights.
- Cross-Modal Module: This core innovation uses a cross-attention mechanism. Instead of simple concatenation, the model uses the representation of clinical codes as a "query" to extract relevant information from the text, and vice versa, effectively bridging the granularity gap between the two data types.
- Pre-training Tasks: Two novel tasks were introduced to align the modalities: Text-to-Code Prediction (reconstructing masked codes using free-text notes) and Code-to-Code Prediction (reconstructing masked codes based on surrounding codes).
Experimental Results
MedM-PLM was pre-trained and evaluated using the MIMIC-III dataset, which contains EHR data from over 35,000 patients. We compared our model against state-of-the-art (SOTA) baselines, including G-BERT, Med-BERT, and ClinicalBERT, across three major clinical tasks.
Performance Across Downstream Tasks
- Medication Recommendation: MedM-PLM achieved an AUC of 95.57%, significantly outperforming G-BERT (94.38%).
- 30-Day Readmission Prediction: The model reached an AUC of 74.70%, a substantial improvement over ClinicalBERT (69.37%).
- ICD Coding: MedM-PLM demonstrated superior ability to map notes to standardized codes with an F1-score of 52.09%.
Robustness and Few-Shot Proficiency
A key finding was the model's efficiency with limited data. MedM-PLM maintains high performance even when fine-tuned on only 10% of the available dataset. This suggests that the multimodal pre-training successfully captures a form of "medical common sense" that generalizes well to smaller datasets or rarer clinical scenarios.
Discussion and Conclusion
MedM-PLM demonstrates that modeling the interaction between structured and unstructured EHR data is superior to treating them as independent features. By leveraging cross-modal attention, the model can synthesize a more granular and accurate patient representation.
Future research will focus on expanding the data scope to include temporal dynamics (long-term patient trajectories) and additional structured variables such as laboratory results and vital signs. Furthermore, addressing the sequence length limitations of current Transformer architectures will be critical for processing long-form discharge summaries without information loss.
Summary updated