Manuscript Offprint

arXiv:2608.29891

MASQ: Mask-Aware Spatiotemporal Quantization for Unsupervised Skeleton Action Segmentation

Xinyao Qin, Linxiang Peng, Youbao Ye, Di Yang, Jiangtao Wang

Abstract

Unsupervised skeleton-based temporal action segmentation is a crucial task for understanding human behavior in long untrimmed sequences. Recent approaches often rely on discrete quantization to discover action boundaries from motion representations. However, when spatial masking is introduced for representation learning, it can introduce representation ambiguity, while discrete quantization further amplifies small fluctuations in the latent space. The interaction between these two factors often leads to unstable code switching and severe temporal jitter near action boundaries. To address these limitations, we propose a novel Mask-aware Action Spatiotemporal Quantization (MASQ) framework. Our framework decouples the conflicting tasks of spatial feature inference and temporal smoothing. In the spatial dimension, we introduce a Joint-Level Structured Dropout (JLSD) mechanism that masks the entire temporal trajectory of selected joints, to encourage the model to learn discriminative inter-joint coordination patterns. In the temporal dimension, we design a mask-aware velocity loss that enforces motion consistency only on visible joints, that prevents gradient conflicts caused by masked signals and stabilizing temporal predictions. Extensive experiments on three widely used skeleton datasets, including HuGaDB, LARa, and BABEL, demonstrate that the proposed MASQ framework significantly outperforms existing state-of-the-art unsupervised methods. In particular, our model establishes a comprehensive and substantial leading advantage in the Mean over Frames accuracy.

Introduction

Understanding human behavior in long untrimmed sequences (Farha and Gall 2019; Yi, Wen, and Jiang 2021; Behrmann et al. 2022; Li et al. 2024; Lin, Zhao, and Shou 2017) is an important problem in multimedia analysis. Temporal action segmentation aims to divide a long sequence into a series of semantic action segments without prior knowledge of their boundaries. This capability plays a key role in many applications, including industrial process monitoring, human–robot collaboration, and healthcare analysis.

Most existing approaches rely on fully supervised learning (Farha and Gall 2019; Yi, Wen, and Jiang 2021; Behrmann et al. 2022; Li et al. 2024). These methods require dense frame-level annotations that specify the exact action label for every frame. Such annotations are extremely expensive and time-consuming to collect, especially for long videos.

Figure

Figure 1: Main task of MASQ. JLSD masks complete joint trajectories, while the mask-aware velocity loss enforces temporal consistency only on visible joints. The learned features are quantized into discrete action tokens, producing coherent action segments and reducing the token flicker caused by naive masking and hard quantization.

To reduce this burden, unsupervised temporal action segmentation has attracted increasing attention (Sener and Yao 2018; VidalMata et al. 2021). Recent studies often adopt a discrete representation paradigm. They convert continuous motion signals into sequences of discrete action tokens and infer action boundaries from token transitions (Sedmidubsky et al. 2020; Spurio et al. 2025).

Current unsupervised segmentation methods (Sener and Yao 2018; VidalMata et al. 2021) are designed for RGB videos. However, compared with RGB videos, skeleton representations provide a structured description of human motion. They are robust to viewpoint changes, insensitive to background clutter, and naturally preserve privacy (Yan, Xiong, and Lin 2018; Gao et al. 2019; Gökay et al. 2025). These properties make skeleton data an appealing modality for human behavior understanding. Meanwhile, skeleton-based action understanding has been extensively studied in related tasks. Recent works demonstrate that skeleton representations are highly effective for supervised action recognition (Yan, Xiong, and Lin 2018; Gao et al. 2019; Gökay et al. 2025). In unsupervised learning, early studies (Wu et al. 2024; Yang et al. 2024) adopt contrastive learning to learn invariant motion features through data augmentation such as rotation or temporal cropping. More recently, masked reconstruction frameworks (Mao et al. 2023; Yan et al. 2023; Lin, Zhang, and Liu 2023; Thoker, Doughty, and Snoek 2021;

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

Zhang, Lin, and Liu 2023) have shown strong performance for skeleton representation learning. These methods mask parts of the body and require the network to reconstruct the missing joints. This strategy encourages the model to capture coordination relationships among different body parts.

However, these representation-learning strategies are mainly designed for short trimmed clips. In long untrimmed sequences, masking and quantization interact with temporal structure in a way that is easy to overlook. Randomly removing joint observations at isolated times creates discontinuities that are indistinguishable from genuine transitions to an unsupervised model. Hard quantization can then amplify small latent perturbations into frequent token changes. Conversely, applying a global velocity constraint to suppress these changes imposes motion supervision on joints whose features were intentionally removed. The core problem is not masking or smoothing separately, but their conflicting handling of missing data in discrete temporal models.

To address above challenges, we propose MASQ, a novel Mask-aware Action Spatiotemporal Quantization framework for unsupervised skeleton-based temporal action segmentation. The framework introduces two mechanisms. First, we design a Joint-Level Structured Dropout module that masks the entire temporal trajectory of randomly selected joints. This operation creates a spatial information bottleneck and encourages the model to infer the motion of masked joints from the remaining visible body parts. The design enables the network to learn stable coordination patterns across long action sequences. Second, we introduce a Mask-Aware Velocity Loss that applies temporal smoothness constraints only to visible joints. This mechanism preserves natural motion dynamics while avoiding gradient conflicts caused by masked joints. The two mechanisms work together to improve both representation robustness and temporal consistency.

We evaluate the proposed framework on three widely used skeleton action datasets. Extensive experiments demonstrate that our approach consistently outperforms existing unsupervised methods across multiple evaluation metrics (see Fig. 3). In particular, our method achieves substantial improvements in Mean over Frames accuracy, which reflects the quality of frame-level segmentation.

The contributions of this work are summarized as follows. (i) We propose MASQ, a novel framework for unsupervised skeleton-based temporal action segmentation that jointly addresses representation uncertainty and temporal instability in long motion sequences. (ii) We introduce a Joint-Level Structured Dropout mechanism that masks the entire temporal trajectory of selected joints, enabling the model to capture coordination relationships among body parts and learn more robust motion representations. (iii) We propose a Mask-Aware Velocity Loss that enforces temporal smoothness only on visible joints, which avoids conflicting supervision caused by masked joints and effectively reduces temporal jitter during segmentation. (iv) Extensive experiments on multiple benchmark datasets demonstrate that MASQ consistently outperforms existing unsupervised methods and achieves strong frame-level segmentation performance.

References (44)

  • An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling
  • Unified fully and timestamp supervised temporal action segmentation via sequence to sequence translation
  • Leveraging triplet loss for unsupervised action segmentation
  • Hugadb: Human gait database for activity recognition from wearable inertial sensor networks
  • Fast and unsupervised action boundary detection for action segmentation
  • Ms-tcn: Multi-stage temporal convolutional network for action segmentation
  • Skeleton-based action segmentation with multi-stage spatial-temporal graph convolutional neural networks
  • Optimized Skeleton-based Action Recognition via Sparsified Graph Regression
  • Skeleton Motion Words for Unsupervised Skeleton-Based Temporal Action Segmentation
  • Contrastive learning from extremely augmented skeleton sequences for self-supervised action recognition
  • Deep-aligned convolutional neural network for skeleton-based action recognition and segmentation
  • Unsupervised learning of action classes with continuous temporal embedding
  • Temporal convolutional networks for action segmentation and detection
  • MS-TCN++: multi-stage temporal convolutional network for action segmentation (opens arXiv in a new tab)
  • Li, Y.; Li, Z.; Gao, S.; Wang, Q.; Hou, Q.; and Cheng, M.-M. 2023. A decoupled spatio-temporal framework for skeleton-based action segmentation. arXiv preprint arXiv:2312.05830. (opens arXiv in a new tab)
  • Actionlet-dependent contrastive learning for unsupervised skeleton-based action recognition
  • Single Shot Temporal Action Detection
  • AMASS: Archive of motion capture as surface shapes
  • Masked motion predictors are strong 3d action representation learners
  • Lara: Creating a dataset for human activity recognition in logistics using semantic attributes
  • BABEL: Bodies, action and behavior with english labels
  • A tutorial on hidden Markov models and selected applications in speech recognition
  • Neuralnetwork-viterbi: A framework for weakly supervised video learning
  • Temporally-weighted hierarchical clustering for unsupervised action segmentation
  • Efficient parameter-free clustering using first neighbor relations
  • Motion words: A text-like representation of 3D skeleton sequences
  • Unsupervised learning and segmentation of complex activities from video
  • Hierarchical vector quantization for unsupervised action segmentation
  • Predict & cluster: Unsupervised skeleton based action recognition
  • Skeleton-contrastive 3D action representation learning
  • Permutation-aware activity segmentation via unsupervised frame-to-segment alignment
  • Neural discrete representation learning
  • Joint visual-temporal embedding for unsupervised learning of actions in untrimmed sequences
  • Sscap: Self-supervised co-occurrence action parsing for unsupervised temporal action segmentation
  • SCD-Net: Spatiotemporal Clues Disentanglement Network for Self-supervised Skeleton-based Action Recognition
  • Temporally consistent unbalanced optimal transport for unsupervised action segmentation
  • Unsupervised motion representation learning with capsule autoencoders
  • Skeletonmae: graph-based masked autoencoder for skeleton sequence pre-training
  • Spatial temporal graph convolutional networks for skeleton-based action recognition
  • ViA: View-invariant Skeleton Action Representation Learning via Motion Retargeting
  • Asformer: Transformer for action segmentation (opens arXiv in a new tab)
  • Contrastive positive mining for unsupervised 3d action representation learning
  • Prompted contrast with masked motion modeling: Towards versatile 3d action representation learning
  • Unsupervised representation learning with long-term dynamics for skeleton based action recognition