NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

When a Window Is Not an Action: Selective Phase-Script Deliberation for Sliding-Window Human Activity Recognition

Qi Teng, Xueer WangNeurIPS 2026

TL;DR

Standard wearable-sensor systems slice continuous human motion into arbitrary, fixed-length time windows and force a neural network to guess the full activity from each tiny slice—like trying to identify an entire movie from a half-second clip. To fix this mismatch, the authors introduce PSDNet, a dual-system architecture that treats each window as partial motion evidence, checks how well it fits learned temporal "scripts," and only wakes up a heavier deliberation module when local evidence is genuinely ambiguous. It achieves state-of-the-art accuracy across eight benchmarks while keeping everyday inference fast and lightweight.

What Problem Does This Paper Address?

Imagine looking at a brief, 1-second snapshot of someone's accelerometer data: they are leaning forward. Are they sitting down, or standing up? What if the snapshot catches them Lifting a leg—are they walking upstairs or downstairs? Or worse, what if the window lands right on the boundary where "walking" transitions into "stopping"?

In Human Activity Recognition (HAR), continuous streams from smartwatches and phones are routinely chopped into fixed-length sliding windows (dictated by sampling rates or memory limits), and each window gets a single activity label. The authors point out a fundamental granularity mismatch: the supervision is at the activity level, while a short window often captures only a fragment (or phase) of a motion cycle.

Traditionally, researchers throw bigger encoders or wider temporal receptive fields at every single window to brute-force better accuracy. That wastes compute on easy, unambiguous windows (like steady jogging) while still treating context as a generic feature booster rather than asking whether a local motion fragment actually makes sense within an evolving action sequence.

Methods

Instead of forcing an immediate activity label onto every window, PSDNet (Phase-Script Deliberation Network) borrows a page from cognitive science with a fast-and-slow "System 1 / System 2" setup:

Figure 1: Overview of PSDNet. System 1 maps the current window and its short-term history into latent phase evidence, evaluates compatibility with class-specific phase scripts, and produces an evidential local prediction. The resulting uncertainty controls whether System 2 is activated. For uncertain windows, System 2 retrieves targeted context and applies a residual correction, with additional capacity focused on a small candidate set. A boundary branch provides auxiliary transition supervision but is not used as a hard routing rule.
  • System 1 (Phase-Script Local Recognition): Rather than mapping sensor features straight to classes, System 1 represents the current window as a mixture of learnable latent phase primitives (building blocks of motion). It combines this with a recurrent summary of recent history and compares the result against learnable, class-specific phase scripts—compact templates representing how phases evolve over short horizons for each activity. Using evidential deep learning, System 1 outputs both an initial prediction and a mathematical uncertainty score (Dirichlet entropy) reflecting whether the local evidence is decisive. An auxiliary boundary-detection head nudges the encoder to stay sensitive to transitions during training without hard-coding routing rules.
  • System 2 (Uncertainty-Triggered Deliberation): If System 1's uncertainty stays below a learned threshold, we're done! If uncertainty spikes above the threshold, System 2 wakes up. It retrieves targeted context from recent windows and computes a residual logit correction, focusing extra model capacity specifically on the Top-$K$ most likely candidate classes to resolve look-alike confusions.

Datasets

No new datasets are introduced; instead, the authors evaluate PSDNet under a unified protocol across eight diverse public HAR benchmarks:

  • Clean daily-activity sets: UCI, mHealth.
  • Complex, transition-heavy, or look-alike sets: USC, PAMAP2, DSADS, HAPT, UniMiB, and MotionSense.

Key Insights and Ideas

  • A window is evidence, not an action: Shifting the target abstraction from "classify this window" to "score whether this local motion phase fits a plausible short-term script" naturally resolves both transition errors and look-alike activities (like sit-down vs. stand-up).
  • Automatic difficulty adaptation: Because the uncertainty threshold is learned alongside a light budget regularizer, PSDNet automatically adapts how often it deliberates based on dataset ambiguity—triggering System 2 on 42.2% of windows on the tricky UniMiB dataset, but only 1.3% of windows on PAMAP2, with zero manual tuning.
  • Evidential uncertainty beats simple confidence: Gating System 2 via Dirichlet posterior entropy outperforms standard softmax-margin thresholding and random routing at matched compute budgets, proving it genuinely spots incomplete local evidence rather than just noisy predictions.
Figure 2: System 2 Deliberation Timelines on HAPT and PAMAP2. Temporal visualization of the PSDNet deliberation pipeline on representative test sequences from (a) HAPT and (b) PAMAP2. All five panels share a common horizontal axis denoting the sliding window index t within the test sequence. From top to bottom, the vertical axes represent: Sensor Norm, the L2 norm of the sensor feature vector; GT Label, color-coded ground-truth activity class; Uncertainty, Dirichlet-based predictive entropy from System 1, with the dashed line denoting the threshold β; Sys2 Trigger, windows where System 2 deliberation is activated; Pred Status, per-window outcome (Fixed by Sys2: corrected; Both wrong: both systems incorrect; Broken by Sys2: overridden incorrectly; Both correct).

Key Results

Across 10 independent runs, PSDNet takes first place in mean accuracy and weighted F1 on all eight benchmarks, beating 12 CNN- and sequence-based baselines (including DeepConvLSTM, Crossformer, DeepConvContext, and MoPFormer):

  • Biggest leaps on hard datasets: PSDNet hits 80.78% accuracy on UniMiB (+2.12 points over the best baseline, CALANet), 96.55% on PAMAP2 (+1.56 over DeepConvContext), and 96.66% on USC (+1.78 over DeepConvContext).
  • Crushing boundary errors: On PAMAP2, F1 right at ground-truth activity transitions jumps from 45.70% to 62.40%, and near-boundary F1 leaps from 74.50% to 88.90%.
  • Disambiguating twins: Across the top-3 most confused look-alike class pairs on PAMAP2, UniMiB, and USC, mutual confusion drops in all 9 pairs (e.g., reducing a major USC confusion pair by 7.91 percentage points and resolving another down to 0.00%).
  • Efficiency sweet spot: On PAMAP2, triggering System 2 on under 10% of windows captures within 0.1% of full-deliberation peak F1 (97.1%) at a fraction of the GFLOPs and latency.

Limitations and Future Work

While the authors note that PSDNet shines brightest when local evidence is incomplete or transition-adjacent (offering smaller margins on clean, unambiguous windows), it relies on valid preceding window history—if no history exists at the very start of a stream, it gracefully degrades to local-only System 1 recognition. For future work, the authors point toward designing richer phase-script structures, making the latent phase primitives explicitly human-interpretable, and developing adaptive deliberation policies tailored for longer, continuous streaming sequences.

Summary updated

BibTeX
@inproceedings{teng2026when,
  author = {Qi Teng and Xueer Wang},
  title = {{When a Window Is Not an Action: Selective Phase-Script Deliberation for Sliding-Window Human Activity Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=GWiH2LVHcr},
}
Figure