cs.LGMar 10, 2026

DT-BEHRT: Disease Trajectory-aware Transformer for Interpretable Patient Representation Learning

Authors: Deyi Li, Zijun Yao, Qi Xu, Muxuan Liang, Lingyao Li, Zijian Xu, Mei Liu

Organizations: University of Florida, Gainesville, Florida, USA · University of Kansas, Lawrence, Kansas, USA · MD Anderson Cancer Center, Houston, Texas, USA · University of South Florida, Tampa, Florida, USA

Abstract

The growing adoption of electronic health record (EHR) systems has provided unprecedented opportunities for predictive modeling to guide clinical decision making. Structured EHRs contain longitudinal observations of patients across hospital visits, where each visit is represented by a set of medical codes. While sequence-based, graph-based, and graph-enhanced sequence approaches have been developed to capture rich code interactions over time or within the same visits, they often overlook the inherent heterogeneous roles of medical codes arising from distinct clinical characteristics and contexts. To this end, in this study we propose the Disease Trajectory-aware Transformer for EHR (DT-BEHRT), a graph-enhanced sequential architecture that disentangles disease trajectories by explicitly modeling diagnosis-centric interactions within organ systems and capturing asynchronous progression patterns. To further enhance the representation robustness, we design a tailored pre-training methodology that combines trajectory-level code masking with ontology-informed ancestor prediction, promoting semantic alignment across multiple modeling modules. Extensive experiments on multiple benchmark datasets demonstrate that DT-BEHRT achieves strong predictive performance and provides interpretable patient representations that align with clinicians' disease-centered reasoning. The source code is publicly accessible at https://github.com/GatorAIM/DT-BEHRT.git.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MiGHT-EHR: A Multi-task Graph Transformer for Heterogeneous Temporal Electronic Health Records

    Aug 5, 2026Anirudh Rayas, Yuan Wang, Pavan TuragaHeterogeneous GNNsClinical Decision Support

  2. DT-Transformer: A Foundation Model for Disease Trajectory Prediction on a Real-world Health System

    May 14, 2026Yunying Zhu, Andrew R Weckstein, Kueiyu Joshua Lin +1HealthcareClinical Prediction

  3. Explainable Transformer Models for Clinical Prediction Tasks on Structured Electronic Health Records

    Aug 20, 2026Jun Ni Du, Lukas Adamek, Maxim Kryukov +4Clinical Outcome PredictionLongitudinal EHR Modeling