Abstract
Temporal action segmentation (TAS) aims to classify and locate actions within long, untrimmed sequences. While deep learning has advanced this field, few-shot TAS remains a significant challenge due to the high cost of labeling 3D skeletal data and the scarcity of training samples. This study proposes an efficient framework for few-shot skeleton-based TAS, featuring a data augmentation method based on motion interpolation and an improved model incorporating a Connectionist Temporal Classification (CTC) layer. Our approach significantly increases sample volume through action synthesis and enhances temporal alignment between predictions and ground truth. Extensive experiments on public and self-constructed datasets demonstrate the effectiveness of these methods in boosting performance for few-shot TAS tasks.
Introduction
Temporal Action Segmentation (TAS) is the process of identifying "what" action is occurring and "where" it starts and ends in a continuous video stream. In real-world applications like physical therapy or surveillance, we often deal with long, untrimmed sequences. However, training robust models for these tasks typically requires vast amounts of labeled data, which is notoriously expensive to acquire for 3D skeletal sequences.
Existing research often focuses on "trimmed" clips, leaving a gap in performance for untrimmed, real-world data. This paper addresses two primary hurdles: the lack of sufficient training data in few-shot scenarios and the difficulty of precisely aligning predicted action boundaries with actual human movement.
Proposed Framework
The authors introduce a two-pronged solution to overcome data scarcity and alignment issues, as illustrated in the overall pipeline below.
1. Data Augmentation via Motion Interpolation
To solve the data scarcity problem, the framework breaks down existing labeled sequences into "action primitives." These primitives are then recombined to synthesize a massive number of new, long sequences. To ensure transitions between different actions appear natural and continuous, the authors utilize Spherical Linear Interpolation (Slerp). This technique smooths joint rotations, effectively "filling in the blanks" between disparate poses. Theoretically, a small set of $M$ labeled sequences with $n$ primitives can generate $M^n$ synthetic sequences, providing a rich training signal from minimal initial data.
2. Optimized Model with CTC Layer
The baseline model—a Multi-Stage Spatial-Temporal Graph Convolutional Network (MS-GCN)—is enhanced by appending a Connectionist Temporal Classification (CTC) layer. While standard loss functions like Cross-Entropy penalize models heavily for minor frame-level misalignments at action boundaries, CTC focuses on the overall sequence and ordering. This "boundary buffer" improves the temporal alignment between the model's predictions and the ground truth, leading to more coherent segmentation results.
Experimental Results
The framework was evaluated across three datasets: a self-constructed Tai Chi dataset (20 sequences), the public UTD-MHAD2 (10 actions), and the large-scale PKU-MMD benchmark.
- Performance Gains: On the Tai Chi dataset, accuracy rose from a baseline of 77.6% to 89.5%. More importantly, the F1@50 score (measuring segment overlap) jumped from 0.606 to 0.846.
- Few-Shot Robustness: On UTD-MHAD2, the framework nearly doubled accuracy, moving from 48.4% to 89.3%.
- State-of-the-Art Comparison: Even on the large-scale PKU-MMD dataset, the proposed model achieved 69.2% accuracy, outperforming established models like ST-GCN (64.9%) and MS-TCN (65.5%).
Key Insights
- Synthetic Generalization: Models trained on sequences stitched together via Slerp generalize remarkably well to real-world, untrimmed human movements.
- Subject Diversity: Experiments indicated that adding data from different subjects (varying body types and styles) is more beneficial for model robustness than simply increasing the volume of synthetic samples from a single subject.
- CTC Utility: By relaxing the requirement for frame-perfect boundary precision, CTC allows the model to learn the underlying structure of action sequences more effectively.
Conclusion and Future Work
This framework demonstrates that robust temporal action segmentation is possible even with extremely limited labeled data. While Slerp is effective for smoothing transitions, it can struggle with very large "gaps" between actions (e.g., transitioning from sitting to standing). Future research will explore more sophisticated generative techniques, such as GANs or Diffusion Models, to create even more diverse and physically plausible transitions between action primitives.
Summary updated