Introduction
Assigning International Classification of Diseases (ICD) codes is a fundamental administrative task in healthcare, typically performed retrospectively after patient discharge. While automated retrospective coding is well-established, it provides no real-time benefit for clinical decision support during a patient's stay. Prospective or "early" prediction poses a significant challenge due to data sparsity; initial clinical notes are often vague, and the comprehensive discharge summary is unavailable.
To address this, researchers developed the Multimodal Integrated Hierarchical Sequence Transformer (MIHST). By fusing clinical notes with objective tabular laboratory data, MIHST enables accurate diagnosis and treatment prediction throughout the patient's hospital trajectory.
The MIHST Architecture
The MIHST framework is designed to handle the shifting significance of different data modalities as a patient's stay progresses. The architecture follows a multi-stage pipeline:
- Dual Encoding: Clinical notes are processed in chunks using a domain-specific language model (RoBERTa-base-PM-M3-Voc). Simultaneously, laboratory measurements are encoded via TP-BERTa, a foundation model pre-trained specifically for tabular medical data.
- Modality Alignment and Pooling: A trainable mapping network aligns the textual and tabular embeddings into a shared feature space. To manage high-frequency events, feature pooling (max-pooling) condenses multiple lab results into a single representation per timestamp.
- Hierarchical Attention: The model employs a hierarchical transformer with causal masking to ensure predictions at any time point only utilize past information. Label-wise attention then correlates specific clinical events (e.g., a creatinine spike) with corresponding ICD codes (e.g., kidney failure).
- Weighted Temporal Loss: A novel loss function weights different time points. The final configuration uses a higher weight (0.6) for the final time point and lower weights (0.1) for intermediate snapshots (2, 5, and 13 days) to maintain accuracy across the entire stay.
Experimental Setup
The study utilized the MIMIC-III dataset, focusing on the top 50 most frequent ICD codes to establish a robust benchmark. The researchers extracted clinical notes and 22 key laboratory features, selected for their high correlation with clinical diagnoses.
Results and Discussion
MIHST was evaluated against several state-of-the-art baselines, including LAHST and HTDS, across multiple time cutoffs.
Key findings include:
- Early Prediction Superiority: MIHST significantly outperforms text-only models in the early stages of admission. At the 2-day mark, MIHST achieved a Micro-F1 of 48.2 and an AUC of 85.0, compared to LAHST's 46.1 and 82.9, respectively.
- Multimodal Advantage: The integration of lab data is most beneficial when clinical notes are sparse. As the stay progresses and notes become more comprehensive, the model dynamically adjusts its reliance between modalities.
- Generalist vs. Specialist Trade-off: While MIHST leads in early and mid-stay predictions, unimodal models optimized specifically for discharge summaries (like HTDS) retain a slight edge at the very end of the stay. This suggests that MIHST acts as a robust "generalist" for the entire patient journey.
Conclusion
MIHST represents a significant step toward real-time clinical decision support by providing accurate, early-stage ICD code predictions. By effectively integrating disparate data types and accounting for temporal dynamics, the model bridges the gap between sparse early-visit data and comprehensive post-discharge records. Future work will focus on scaling the model to handle the thousands of "long-tail" ICD codes and incorporating a broader range of features such as vital signs and medications.
Summary updated