Semi-supervised Sequence Classification through Change Point Detection

Nauman Ahad, Mark A. Davenport

Introduction

Deep learning has significantly advanced sequence classification in domains such as healthcare monitoring and industrial sensing. However, these models typically demand large volumes of precisely segmented and labeled data. In many real-world applications, obtaining such labels is prohibitively expensive and time-consuming, requiring domain experts to manually identify transition points between activities. While semi-supervised learning (SSL) offers a path forward by utilizing unlabeled data, traditional approaches often rely on reconstruction-based objectives (e.g., autoencoders), which may not align perfectly with the goal of classification.

This paper proposes SSL-CP (Semi-Supervised Learning via Change Points), a framework that leverages unsupervised change point detection (CPD) to extract structural constraints from unlabeled time-series data. By identifying shifts in data distributions, the model generates "free" similarity signals that guide the learning of discriminative features.

Methodology: SSL-CP Framework

The core innovation of SSL-CP lies in transforming the output of an unsupervised segmentation process into pairwise constraints for representation learning.

1. Unsupervised Segmentation and Constraint Generation

The process begins by applying a non-parametric CPD algorithm, such as Maximum Mean Discrepancy (MMD), to the unlabeled sequence. MMD detects changes by comparing data distributions within sliding windows. Once change points are identified, the framework generates two types of pairs:

  • Similar Pairs: Sub-sequences extracted from the same segment (between two change points) are assumed to share the same class label.
  • Dissimilar Pairs: Sub-sequences extracted from adjacent segments (separated by a change point) are assumed to belong to different classes.
Figure 1: Generation of similar and dissimilar pairs based on detected change points.

2. Representation Learning

These pairs are used to train a 1D Temporal Convolutional Network (TCN). The training objective employs a hinge loss based on the Kullback-Leibler (KL) divergence between the predicted distributions of the pairs. This forces the network to map similar segments close together and dissimilar segments far apart in the latent feature space.

3. Classification

Following the unsupervised pre-training phase, a standard classifier is trained on the learned representations using the limited available labeled data. The authors also incorporate entropy regularization to further refine decision boundaries in the semi-supervised setting.

Experimental Evaluation

The researchers evaluated SSL-CP against supervised baselines and autoencoder-based SSL on several benchmarks, including synthetic statistical shifts, the chaotic Mackey-Glass switching sequence, and real-world datasets like WISDM Activity Recognition.

Key Results

SSL-CP demonstrates superior performance, particularly when labeled data is extremely scarce. On the Mackey-Glass dataset with only 20 labels, SSL-CP achieved an F1 score of 0.96, compared to 0.55 for a purely supervised model and 0.73 for an autoencoder. On synthetic data with just 10 labels, the method reached an F1 score of 0.99, significantly outperforming the supervised baseline of 0.90.

Discussion and Insights

The primary advantage of SSL-CP is its ability to capture the inherent "clustered" structure of sequential data without human intervention. Visualizing the feature space using t-SNE reveals that SSL-CP produces significantly more distinct and tighter clusters for different classes than autoencoders, which often result in overlapping representations.

Figure 3: t-SNE visualizations comparing the feature spaces of an Autoencoder and SSL-CP. SSL-CP shows much clearer class separation.

This suggests that learning pairwise constraints derived from temporal structure is a more effective proxy for classification than signal reconstruction. However, the framework's performance is tied to the accuracy of the underlying CPD algorithm. False positives in change point detection can introduce noisy constraints, a challenge observed in the WISDM dataset that required additional filtering to maintain performance.

Conclusion

SSL-CP provides a robust framework for semi-supervised sequence classification by treating change point detection as a natural source of supervision. By focusing on "what is like what" rather than "how to rebuild the signal," it achieves state-of-the-art results in low-label regimes. Future work will focus on improving CPD robustness to noise and exploring multi-modal sensor integration.

Summary updated

BibTeX
@inproceedings{ahad2021semi,
  author = {Nauman Ahad and Mark A. Davenport},
  title = {{Semi-supervised Sequence Classification through Change Point Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i8.16814},
}
Figure