cs.LGOct 14, 2026

TEX-MEX: Similarity-Guided Temporal Contrastive Learning for Time Series

Authors: Aditya Radhakrishnan, Maxwell A. Xu, Wanting Mao, Santosh Kumar, Harish Haresamudram, James M. Rehg

Organizations: Health Care Engineering Systems Center, University of Illinois Urbana-Champaign · Google · Department of Computer Science, University of Memphis

Abstract

Contrastive learning for time series depends on deciding which pairs of inputs should be treated as similar and dissimilar. Because few augmentations reliably preserve meaning in time series, prior methods have relied on two disjoint notions of similarity between windows: structural similarity, which relates windows with similar morphology, and temporal similarity, which relates windows that occur close together in time. We introduce TEX-MEX, to our knowledge the first approach to unify the two into a single relationship. Given a random batch of windows drawn across the dataset, TEX-MEX uses the encoder to identify which windows are structurally similar or dissimilar to each other. It then pulls each window toward the temporally shifted versions of similar windows and pushes it away from those of dissimilar ones, learning what typically accompanies similar windows in time. Across PPG, EEG, ECG, accelerometry, and continuous glucose monitoring, TEX-MEX broadly achieves state-of-the-art performance against contrastive, reconstructive, JEPA-based, and modality-specific approaches, establishing it as a strong general SSL objective. We further train a 560K-parameter PPG foundation model that achieves state-of-the-art performance across a broad range of downstream benchmarks while being roughly 50x smaller than the next-best unimodally pretrained PPG foundation model in our evaluation. We will release this foundation model open-source and open-weight to the community to support future work and practical applications.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. UTICA: Multi-Objective Self-Distllation Foundation Model Pretraining for Time Series Classification

    Mar 2, 2026Yessin Moakher, Youssef Attia El Hili, Vasilii FeofanovSelf-Supervised Time Series Representation LearningTime-Series Foundation Models

  2. Learning by Shifting: Temporal View Construction for Time Series Contrastive Learning

    Jun 20, 2026Abdul-Kazeem Shamba, Kerstin Bach, Gavin TaylorContrastive LearningTime Series Classification

  3. CoCoT-EEG: Contrastive-Pretrained Multiscale Convolutional Transformer for EEG Decoding

    Jul 10, 2026Gabriel Mahuas, Victoria Shevchenko, Ugo Tanielian +2Contrastive LearningHybrid CNN-Transformer Architectures