Modeling Patient Care Trajectories with Transformer Hawkes Processes

arXiv cs.LG / 4/8/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • The paper proposes a continuous-time model of patient care trajectories using a Transformer Hawkes Process to handle irregular, time-stamped healthcare events like visits, admissions, and emergencies.
  • It combines Transformer-based history encoding with Hawkes process dynamics to learn event dependencies and jointly predict both event type and time-to-next-event.
  • To cope with severe class imbalance among event types, the authors introduce an imbalance-aware training strategy that applies inverse square-root class weighting to improve sensitivity to rare but clinically important events.
  • Experiments on real-world datasets show improved predictive performance and generate clinically meaningful insights for identifying high-risk patient populations.

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.