Machine Learning in Healthcare Open access

Time-Aware Contrastive Transformer for Longitudinal Patient Representation Learning

Arushi Arora, Anni Heinolainen, Linh Tran, Suvi Renkonen and 2 more

medRxiv | Jun 25, 2026

Scollr summary

What this paper is about

This work proposes the Time-Aware-Contrastive-Transformer (TACT), a transformer-based model that integrates explicit temporal modeling with a fully self-supervised contrastive learning framework and establishes a comprehensive framework for characterizing patient heterogeneity through the identification of potentially clinically meaningful subgroups with distinct progression profiles.

Full abstract

Read the full abstract

Abstract Learning high-quality longitudinal patient representations from irregular electronic health records (EHRs) is essential for understanding heterogeneity in time-evolving diseases such as cancer. Longitudinal patient representation learning methods often rely on external labels for downstream tasks or do not model the temporal dynamics between medical events explicitly, reducing the clinical applicability of learned disease trajectories. In this work, we propose the Time-Aware-Contrastive-Transformer (TACT), a transformer-based model that integrates explicit temporal modeling with a fully self-supervised contrastive learning framework. We introduce a sampling-based data augmentation work-flow that leverages hierarchical taxonomies of diagnoses and medications to enrich representation learning. Evaluated on a large real-world dataset, TACT demonstrates robust performance across patient representation and event embedding metrics and outperforms two time-aware transformer comparison models. Unlike the comparison models, TACT successfully bridges contrastive learning with medical hierarchies, allowing it to track precise disease trajectories and discover clinically actionable patient phenotypes. Consequently, this approach establishes a comprehensive framework for characterizing patient heterogeneity through the identification of potentially clinically meaningful subgroups with distinct progression profiles.

Direct answer

What can I do from this paper page?

Use this page to scan "Time-Aware Contrastive Transformer for Longitudinal Patient Representation Learning" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Machine Learning in Healthcare research, save the paper, or map adjacent work.

Authors

Researchers on this paper

Arushi Arora

middle | University of Helsinki

Anni Heinolainen

first | University of Helsinki

Linh Tran

middle | University of Helsinki | ORCID 0000-0001-8827-6471

Suvi Renkonen

middle | University of Helsinki | ORCID 0000-0003-1240-0661

Risto Renkonen

middle | University of Helsinki | ORCID 0000-0003-4455-2918

Miika Koskinen

last | University of Helsinki | ORCID 0000-0002-7267-5811

Research areas

Follow related topics

Citation

BibTeX

@article{Arora2026Time,
  title = {Time-Aware Contrastive Transformer for Longitudinal Patient Representation Learning},
  author = {Arushi Arora and Anni Heinolainen and Linh Tran and Suvi Renkonen and Risto Renkonen and Miika Koskinen},
  journal = {medRxiv},
  year = {2026},
  doi = {10.64898/2026.06.23.26356236},
  url = {https://doi.org/10.64898/2026.06.23.26356236}
}

FAQ

Using this paper in a discovery workflow

How do I find related work for this paper?

Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.

How can I keep up with new Machine Learning in Healthcare research papers?

Follow Machine Learning in Healthcare research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.

Can I cite this paper from this page?

This page includes a static BibTeX block for Time-Aware Contrastive Transformer for Longitudinal Patient Representation Learning. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.

Follow this research in Scollr

Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.

Get the app