Perseus: Interactive Time Series Segmentation with Sparse Supervision via Stateful Memory

Ching Chang, Ming-Chih Lo, Chiao-Tung Chan, Wen-Chih Peng, Tien-Fu ChenarXiv 2025

TL;DR

Perseus introduces a stateful memory framework for interactive time series segmentation, solving the "contextual amnesia" that plagues existing sliding-window methods when human feedback is sparse and grouped. By decoupling prompt encoding from inference via an asynchronous Write-Read architecture, it maintains global consistency across unprompted gaps and achieves up to an 85% accuracy boost over stateless baselines.

What Problem Does This Paper Address?

Time series segmentation—such as identifying specific machine operations from sensor logs or tracking human activities from wearables—often requires domain experts to provide real-time feedback (prompts) to correct errors or select a specific level of granularity (e.g., distinguishing "Jogging" from general "Activity").

However, real-world human interaction is inherently bursty. Annotators typically mark clusters of prominent events and leave vast stretches of the timeline completely untouched. Existing prompt-based models rely on a stateless sliding-window approach: they only apply user guidance locally within the active window. Once the window moves past the user's prompt, the model suffers from contextual amnesia, completely forgetting the user's intent during unprompted regions.

The unprompted region failure mode in stateless baselines vs. the stateful solution of Perseus.

Methods

Perseus (Persistent Segmentation with User Supervision) transitions from synchronous processing to Asynchronous State Management using a distinct Write-Read architecture:

  1. Phase 1: Asynchronous Memory Write: When a user provides a sparse prompt (either a label correction or a boundary marker), the Prompt Encoder maps it into an embedding space. The Memory Encoder then uses cross-attention to fuse this prompt embedding with its surrounding local temporal context. This creates a compact memory token that is appended to a persistent Global Memory Bank.
  2. Phase 2: Sequential Memory Read: During inference, as the model evaluates sliding windows across the time series, the State Decoder (built on a Two-Way Transformer) actively queries the global memory bank. This allows the model to retrieve historical interaction context and apply the user's high-level intent even within completely unprompted windows.
Fig. 3. Overview of the Perseus framework featuring asynchronous state management. Phase 1 (Memory Write): Sparse prompts and their local context are asynchronously encoded into a persistent global state bank to update the memory tokens. Phase 2 (Memory Read): During sequential inference, the state decoder actively queries this memory bank to retrieve context for every sliding window, including unprompted ones. This decouples supervision from inference, allowing the model to progressively refine multi-granularity segmentation as the global state evolves.

Datasets

The authors evaluated Perseus across six diverse datasets spanning wearable healthcare and industrial manufacturing:

  • USC-HAD & PAMAP2: Public benchmarks recording human daily physical activities using wearable accelerometer and gyroscope sensors.
  • Pump (V35, V36, V38): Industrial datasets from hydraulic pump end-of-line testing, each annotated with over 40 fine-grained operational states.
  • IndustryMG: A proprietary industrial dataset featuring naturally annotated multi-granularity states (high-level production phases vs. fine-grained machine operations), providing a realistic testbed for hierarchical state transitions.

Key Insights and Ideas

  • The "Gapless Supervision Assumption" is Flawed: Traditional interactive segmenters implicitly assume that every sliding window will contain at least one prompt. Exposing models to realistic, grouped sparse feedback reveals that stateless architectures collapse when gaps emerge.
  • Decoupling Writing from Reading: By separating prompt ingestion (Write) from windowed inference (Read), localized human insights can be propagated globally across a long timeline without requiring model retraining or fine-tuning.
  • Richer Context Has a Limit: The authors discovered that while increasing the local context window ($T_{ctx}$) around a prompt generally improves memory token quality, excessively large windows introduce noise and dilute the precise temporal cues needed for alignment.

Key Results

  • Robustness to Grouped Supervision: Under a strict 5% prompt budget concentrated in bursts, stateless baselines like PromptTSS degraded sharply to near-random guessing (~35% accuracy) in extended unprompted regions. Perseus maintained robustness, achieving up to an 85% accuracy improvement in multi-granularity tasks.
  • High Data Efficiency: In iterative refinement scenarios, Perseus compounded the value of accumulated feedback, yielding an average per-iteration accuracy gain of 2.66 percentage points, compared to just 1.19 for the stateless baseline.
  • Minimal Computational Overhead: Because the Write-Read operations utilize compact token representations rather than high-dimensional feature maps, Perseus introduces negligible latency, maintaining a runtime profile highly similar to stateless models.
Fig. 4. Comparison of training and inference times per batch on the PAMAP2 dataset.

Limitations and Future Work

  • Clean Prompt Assumption: The evaluation simulates clean, accurate expert prompts. In practice, human annotators make mistakes, meaning future iterations must handle noisy or conflicting feedback.
  • Uncapped Memory Growth: The current memory bank uses simple accumulation. For exceptionally long sequences, an explicit eviction policy or a mechanism for forgetting/consolidating tokens will be required.
  • Active Learning Integration: The authors plan to integrate active learning loops so the system can autonomously identify the most informative unprompted windows, prompting the user only where feedback would provide the highest global impact.

Summary updated

BibTeX
@misc{chang2025perseus,
  author = {Ching Chang and Ming-Chih Lo and Chiao-Tung Chan and Wen-Chih Peng and Tien-Fu Chen},
  title = {{Perseus: Interactive Time Series Segmentation with Sparse Supervision via Stateful Memory}},
  year = {2025},
  eprint = {2510.09930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09930},
}
Figure