Modeling Patient Care Trajectories with Transformer Hawkes Processes

Saumya Pandey, Varun Chandola
4/7/2026
cs.LGq-bio.QM

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pandey2026modeling,
  title  = {Modeling Patient Care Trajectories with Transformer Hawkes Processes},
  author = {Saumya Pandey and Varun Chandola},
  year   = {2026},
  eprint = {2604.05844},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.05844v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.05844.svg)](https://codeofpaper.com/paper/2604.05844)

Discussion