cs.LGApr 7, 2026

Modeling Patient Care Trajectories with Transformer Hawkes Processes

Authors: Saumya Pandey, Varun Chandola

Organizations: Computational and Data-Enabled Sciences, University at Buffalo, Buffalo, USA · Department of Computer Science and Engineering, University at Buffalo, Buffalo, USA

Abstract

Patient healthcare utilization consists of irregularly time-stamped events, such as outpatient visits, inpatient admissions, and emergency encounters, forming individualized care trajectories. Modeling these trajectories is crucial for understanding utilization patterns and predicting future care needs, but is challenging due to temporal irregularity and severe class imbalance. In this work, we build on the Transformer Hawkes Process framework to model patient trajectories in continuous time. By combining Transformer-based history encoding with Hawkes process dynamics, the model captures event dependencies and jointly predicts event type and time-to-event. To address extreme imbalance, we introduce an imbalance-aware training strategy using inverse square-root class weighting. This improves sensitivity to rare but clinically important events without altering the data distribution. Experiments on real-world data demonstrate improved performance and provide clinically meaningful insights for identifying high-risk patient populations.

Figures & tables

Explore similar work

CardsList
  1. 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 +1Clinical PredictionTime Series Transformers

  2. NOAH: Learning the Full Patient Journey. A Longitudinal Multimodal Time-Aware Model for Representation and Forecasting

    Sep 8, 2026Tobias Susetzky, Raphael Rehms, Dmitrii Seletkov +5Irregular Time-Series ModelingClinical Prediction

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

    Mar 10, 2026Deyi Li, Zijun Yao, Qi Xu +4Disease Progression ModelingLongitudinal EHR Modeling