Skip to main navigation Skip to search Skip to main content

Contrastive feature alignment in heterogeneous temporal modalities for time series classification

  • Seoul National University of Science and Technology (SNUST)

Research output: Contribution to journal › Article › peer-review

Abstract

Time series data, characterized by complex temporal dependencies and diverse structural patterns, are widely encountered in real-world domains such as healthcare, manufacturing, and finance. Accurate time series classification (TSC) requires models capable of capturing both fine-grained local dynamics and long-range global relationships. While sequence-based models have been predominantly employed for TSC, they often struggle to effectively model global structural patterns. Conversely, image-based transformations such as the Gramian Angular Field (GAF) enable temporal signals to be represented spatially, allowing vision-based architectures to capture complementary structural information. However, approaches relying solely on either modality may fail to fully exploit complementary information, and existing multimodal methods frequently lack an explicit alignment mechanism between temporal and spatial representations. To address these limitations, we propose a hybrid framework that performs patch-level contrastive feature alignment between a Transformer-based temporal encoder and a Vision Transformer (ViT)-based spatial encoder. By converting time series into Gramian Angular Difference Field (GADF) images and explicitly aligning temporally corresponding Transformer tokens and image patches, the proposed model jointly captures temporal dynamics and spatial structural patterns. The patch-level contrastive objective encourages fine-grained cross-modal correspondence between the heterogeneous representations. Extensive experiments on 127 benchmark datasets from the UCR archive demonstrate the effectiveness of the proposed approach. Our method achieves an average classification accuracy of 0.8298 and the best average rank of 3.30 among state-of-the-art baselines. Controlled ablation studies further show that patch-level alignment improves performance over the same multimodal architecture without contrastive learning and substantially outperforms global contrastive alignment, highlighting the importance of alignment granularity. These results demonstrate the effectiveness of structured cross-modal feature alignment and provide a promising direction for multimodal time series classification.

Original languageEnglish
Article number116333
JournalApplied Soft Computing
Volume203
DOIs
StatePublished - Nov 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 9 - Industry, Innovation, and Infrastructure
    SDG 9 Industry, Innovation, and Infrastructure

Keywords

  • Contrastive learning
  • Gramian angular difference field
  • Time series classification
  • Transformer

Cite this