Abstract
The first 24 hours of an Intensive Care Unit (ICU) stay represent a critical window for medication decisions that significantly impact patient outcomes. Predicting the effectiveness of these interventions is challenging due to the complex, multi-drug nature of ICU care and the inherent data imbalance in clinical datasets. This paper presents a Knowledge-aware Attention Network that integrates external biomedical knowledge graphs with a novel cross-attention mechanism and contrastive learning. Evaluated on the eICU Collaborative Research Database, our model demonstrates superior performance in predicting mortality, length of stay, and clinical severity scores compared to existing state-of-the-art methods.
Introduction
In the high-pressure environment of the ICU, medication errors are a significant concern, with studies suggesting over 10 errors per 100 patient days. The "golden window" of the first 24 hours is crucial for establishing effective treatment plans. However, existing machine learning models often struggle with a narrow focus on single drugs or diseases and fail to account for the "long-tailed" nature of critical outcomes like mortality.
To address these challenges, we propose a framework that contextualizes medication plans within the broader scope of a patient's diagnosis and external medical knowledge. By predicting metrics such as mortality, length of stay (LOS), and APACHE scores early in the admission, clinicians can better evaluate the potential effectiveness of their initial treatment strategies.
Methodology
The proposed framework consists of three primary components designed to enhance feature representation and handle data imbalance:
- Knowledge-Enhanced Module: The model incorporates the BIOS biomedical knowledge graph, which contains over 54 million terms. Using TorusE embeddings, the network captures complex relationships between drugs and diseases, providing a baseline understanding of pharmacological interactions that raw EHR data often lacks.
- Medication Feature Learning with Cross-Attention: Utilizing a BERT-small backbone, the model processes medication descriptions (name, dosage, route). A cross-attention mechanism is then applied between the medication sequence and the patient’s initial diagnoses, allowing the model to reason about drug effectiveness relative to specific clinical conditions.
- Hybrid Loss Function: To mitigate the impact of imbalanced data, we combine standard Cross-Entropy loss with a Supervised Contrastive Loss ($L_{CL}$). This approach forces the model to learn more discriminative features by pulling representations of patients with similar outcomes closer together in the embedding space.
Experimental Results
The model was evaluated using the eICU Collaborative Research Database, encompassing over 135,000 admissions. Our approach consistently outperformed state-of-the-art baselines, including UniHPF and MedGTX, across all primary tasks:
- Mortality Prediction: Achieved a Macro F1 of 0.6988, surpassing the previous best of 0.6813.
- Length of Stay (LOS > 7 days): Outperformed baselines with a Macro F1 of 0.6799.
- APACHE Score Prediction: Reached a Macro F1 of 0.7296.
Ablation studies confirmed that the cross-attention mechanism is a key driver of performance, effectively mimicking clinical reasoning by evaluating drugs in the context of the diagnosis. Furthermore, t-SNE visualizations indicated that the contrastive learning component successfully created more distinct clusters for different patient outcomes compared to baseline models.
Conclusion
By integrating external medical knowledge and employing sophisticated attention and loss mechanisms, the Knowledge-aware Attention Network provides a robust tool for predicting medication effectiveness in the ICU. Future work will focus on extending this model to dynamic, temporal medication plans and improving the interpretability of its predictions to better support clinical decision-making.
Summary updated