科研速览 · Science Skim继续刷下去 · Keep skimming →
◆ Scientific Reports2026-08-14· Computer science

Temporal graph transformer for next visit diagnosis prediction on electronic health records

Hua Zhang, Yuxing Shi, Shumin Zhang, Zhongheng Jian, Minsi Liang, Shuhong Zhang, Junchao Liang, Qiang Li

原始摘要(英文原文)· Original abstract
Next-visit diagnosis prediction with electronic health records (EHR) is critical for proactive medicine, but mainstream methods fail to simultaneously capture cross-visit temporal dependencies, inter-medical-event structural associations and the patient-visit-code hierarchical semantic relationships in EHR, and lack clinical interpretability. This study proposes EHRFormer, a temporal graph transformer model for EHR-based next-visit diagnosis prediction. We first construct a patient-specific temporal heterogeneous graph with timestamped visit nodes and heterogeneous medical event nodes to decouple medical event semantics and visit temporal states, and model intra-visit structural and cross-visit temporal relationships via two types of heterogeneous edges. A temporal-aware heterogeneous message passing mechanism integrated with Time2Vec-based time encoding is designed to fuse temporal and structural information, and meta-path-based global positional and local structural encoding are introduced to capture high-order medical event interactions. Additionally, a patient graph explainer module is developed to identify prediction-critical subgraphs and medical events for clinical interpretability. Extensive experiments on three real-world EHR datasets (MIMIC-III, MIMIC-IV, MarketScan CCAE) with core metrics of visit-level precision@k and code-level accuracy@k demonstrate that EHRFormer achieves state-of-the-art performance, strong noise robustness, and high inference efficiency with linear time complexity. The graph explainer can accurately identify clinically meaningful medical events consistent with clinical guidelines. EHRFormer realizes collaborative learning of EHR’s three-level hierarchical representations, unifying high prediction accuracy, reliable clinical interpretability and efficient inference, and provides a novel paradigm for EHR-based medical predictive modeling with notable clinical application value.
读原文 · Read the paper ↗

AI 追问PRO

登录后使用 AI 追问

讨论区

登录后参与讨论

相关论文 · Related

Temporal graph transformer for next visit diagnosis prediction on electronic health records — 科研速览 Science Skim