CLaP -- State Detection from Time Series

Arik Ermshaus, Patrick Schäfer, Ulf Leser
4/2/2025
cs.LGcs.AIcs.DB

No official code found. Best implementation: ermshaua/classification-label-profile (5 stars, BSD-3-Clause, last commit 2025-07-21).

Abstract

The ever-growing amount of sensor data from machines, smart devices, and the environment leads to an abundance of high-resolution, unannotated time series (TS). These recordings encode recognizable properties of latent states and transitions from physical phenomena that can be modelled as abstract processes. The unsupervised localization and identification of these states and their transitions is the task of time series state detection (TSSD). Current TSSD algorithms employ classical unsupervised learning techniques, to infer state membership directly from feature space. This limits their predictive power, compared to supervised learning methods, which can exploit additional label information. We introduce CLaP, a new, highly accurate and efficient algorithm for TSSD. It leverages the predictive power of time series classification for TSSD in an unsupervised setting by applying novel self-supervision techniques to detect whether data segments emerge from the same state. To this end, CLaP cross-validates a classifier with segment-labelled subsequences to quantify confusion between segments. It merges labels from segments with high confusion, representing the same latent state, if this leads to an increase in overall classification quality. We conducted an experimental evaluation using 405 TS from five benchmarks and found CLaP to be significantly more precise in detecting states than six state-of-the-art competitors. It achieves the best accuracy-runtime tradeoff and is scalable to large TS. We provide a Python implementation of CLaP, which can be deployed in TS analysis workflows.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

This is the supporting website for the paper: "CLaP - State Detection from Time Series"

50Python, Jupyter NotebookApr 20, 20231 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{ermshaus2025clap,
  title  = {CLaP -- State Detection from Time Series},
  author = {Arik Ermshaus and Patrick Schäfer and Ulf Leser},
  year   = {2025},
  eprint = {2504.01783},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.01783v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.01783.svg)](https://codeofpaper.com/paper/2504.01783)

Discussion