Abstract
Action segmentation in untrimmed videos typically requires dense frame-level annotations, which are costly and time-consuming to obtain. This paper presents TAEC (Temporal-Aware Embedding and Clustering), a novel unsupervised framework that discovers and labels activities without human supervision. TAEC integrates a sequence-to-sequence temporal embedding network (SSTEN) with a flexible two-step clustering process. By leveraging temporal pretext tasks and cross-video cluster alignment, TAEC effectively handles videos with varied action orderings, achieving state-of-the-art performance on the Breakfast, YouTube Instructions, and 50 Salads benchmarks.
Introduction
Action segmentation involves assigning a semantic label to every frame in a long, untrimmed video (e.g., "cracking an egg," "pouring milk"). While supervised methods have made significant strides, the requirement for exhaustive manual annotations remains a major bottleneck. Unsupervised approaches aim to mitigate this, but often struggle with two key challenges: ignoring the inherent temporal dependencies between frames and assuming a rigid, fixed order of actions across different videos.
Human behavior is naturally variable; for instance, the sequence of steps in "making coffee" may differ between individuals. TAEC addresses these limitations by incorporating temporal awareness into the embedding space and allowing for flexible action ordering during the clustering phase. This allows the model to recognize actions even when their sequence changes between videos.
Methods
The TAEC framework consists of three primary stages: temporal-aware embedding, two-step clustering, and Viterbi decoding.
- Sequence-to-Sequence Temporal Embedding Network (SSTEN): To capture both visual and temporal information, TAEC employs SSTEN. The network is trained using two self-supervised pretext tasks: feature reconstruction and relative timestamp prediction. The latter task requires the model to predict a frame's position relative to the video's total duration (e.g., "this frame is at 20% of the total duration"), forcing it to learn long-range temporal dependencies.
- Two-Step Clustering: Unlike previous methods that assume a fixed action sequence, TAEC uses a two-step process. First, Within-Video Clustering groups similar frames within a single video using spectral clustering based on a combined visual-temporal similarity metric. Second, Cross-Video Global Assignment aligns these local clusters across the entire dataset. By treating clusters as nodes in a graph and solving an assignment problem, the model can identify the same action across different videos even if they occur at different times or in different orders.
- Viterbi Decoding: The final stage uses the discovered cluster assignments to perform Viterbi decoding, which smooths the frame-level predictions and ensures temporal coherence, preventing rapid label switching or "flickering" between labels.
Results
TAEC was evaluated on three benchmark datasets: Breakfast (1,712 videos), YouTube Instructions (YTI), and 50 Salads. The model achieved state-of-the-art results in the unsupervised category across all metrics. On the Breakfast dataset, TAEC reached a Mean over Frames (MoF) of 50.3%, a significant improvement over the previous best of 41.8%. On the challenging 50 Salads dataset (eval-level), it achieved 48.4% MoF, outperforming prior work by nearly 13%.
Qualitative analysis demonstrates that TAEC produces cleaner and more continuous action segments compared to standard K-means clustering, which often results in over-segmentation and noise. The model's ability to handle varied action sequences is particularly evident in the 50 Salads preparation tasks, which contain many repetitive actions and varied ordering.
Conclusion
TAEC demonstrates that incorporating temporal awareness and flexible cluster alignment is crucial for effective unsupervised action segmentation. By moving away from the "bag-of-images" and "fixed-order" assumptions, TAEC sets a new benchmark for the field. While challenges remain in distinguishing background noise from transitions, the success of temporal pretext tasks suggests a promising direction for future research in high-granularity action recognition.
Summary updated