Related Experiment Video
Updated: Aug 11, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
HiRMD: A System for Mortality Prediction via LLM-Based High-Risk Information Extraction and Diagnosis
Objective:
To improve in-hospital mortality prediction from longitudinal electronic health records (EHRs) by extracting mortality-related high-risk clinical information and integrating heterogeneous clinical evidence.
Methods:
We propose HiRMD, an LLM-augmented mortality prediction system that combines high-risk information extraction, structured medical diagnosis, and cross-attention-based risk prediction. HiRMD first refines patients' disease, medication, and procedure records to retain mortality-relevant clinical events. It then guides LLMs with predefined clinical criteria to generate structured diagnostic sequences reflecting high-risk disease progression and treatment status. For final prediction, longitudinal visit records are encoded by a Bi-GRU, while ICU severity scores and LLM-derived diagnostic outputs are used as clinical priors to guide temporal representation learning through multi-head cross-attention.
Results:
Experiments on three public EHR datasets, including MIMIC-III, MIMIC-IV, and eICU, demonstrate the effectiveness of HiRMD compared with machine learning, deep learning, LLM-based, and ICU scoring baselines. HiRMD obtains the best AUROC and F1 scores on all three datasets. Additional analyses further support the effectiveness, stability, and clinical relevance of the proposed high-risk diagnostic representation.
Conclusion:
HiRMD effectively integrates LLM-based high-risk information extraction with longitudinal EHR modeling for accurate and interpretable in-hospital mortality prediction.
Significance:
This study demonstrates the potential of LLM-guided diagnostic semantics to better identify high-risk patients, enhance prediction traceability, and support clinically meaningful decision-making in high-risk healthcare scenarios.