Con4m: Context-aware Consistency Learning Framework for Segmented Time Series Classification
Junru Chen, Tianyu Cao, Jing Xu, Jiahe Li, Zhilong Chen, Tao Xiao, Yang Yang
TL;DR
Con4m tackles segmented time series classification under multiple duration classes by explicitly modeling contextual information across consecutive segments and harmonizing boundary label inconsistencies. It introduces a three-component framework: a Gaussian-prior continuous contextual encoder, a context-aware predictor with neighbor-consistency and monotonicity constraints, and a label-consistency training scheme with curriculum-based harmonization. The approach yields robust improvements across four MVD datasets, demonstrating resilience to boundary disturbances and providing evidence that contextual data and label coherence substantially boost discriminative power in segmented TSC. The work highlights the importance of temporal dependencies in segmented time series and offers practical, end-to-end mechanisms to leverage them in real-world applications.
Abstract
Time Series Classification (TSC) encompasses two settings: classifying entire sequences or classifying segmented subsequences. The raw time series for segmented TSC usually contain Multiple classes with Varying Duration of each class (MVD). Therefore, the characteristics of MVD pose unique challenges for segmented TSC, yet have been largely overlooked by existing works. Specifically, there exists a natural temporal dependency between consecutive instances (segments) to be classified within MVD. However, mainstream TSC models rely on the assumption of independent and identically distributed (i.i.d.), focusing on independently modeling each segment. Additionally, annotators with varying expertise may provide inconsistent boundary labels, leading to unstable performance of noise-free TSC models. To address these challenges, we first formally demonstrate that valuable contextual information enhances the discriminative power of classification instances. Leveraging the contextual priors of MVD at both the data and label levels, we propose a novel consistency learning framework Con4m, which effectively utilizes contextual information more conducive to discriminating consecutive segments in segmented TSC tasks, while harmonizing inconsistent boundary labels for training. Extensive experiments across multiple datasets validate the effectiveness of Con4m in handling segmented TSC tasks on MVD. The source code is available at https://github.com/MrNobodyCali/Con4m.
