TAEC: Unsupervised Action Segmentation with Temporal-Aware Embedding and Clustering

Wei Lin, Anna Kukleva, Horst Possegger, Hilde Kuehne, Horst Bischof

Introduction

Temporal action segmentation—the task of labeling every frame in a video with a specific action (e.g., "cutting onion," "pouring oil," "frying egg")—is a critical component of video understanding. However, manual annotation is prohibitively labor-intensive. While unsupervised methods aim to automate this process, they typically struggle with two major hurdles: temporal neglect, where frames are treated as independent data points, and rigid ordering, where models assume every video follows a fixed sequence of steps.

TAEC (Temporal-Aware Embedding and Clustering) introduces a state-of-the-art framework that discovers and labels recurring actions in long, untrimmed videos without human intervention. By explicitly modeling temporal relationships during both feature learning and clustering, TAEC effectively handles variations in action duration and ordering across different videos.

Methodology

The TAEC pipeline is structured into three distinct stages designed to capture both local and global temporal context.

The TAEC pipeline: (a) Feature Embedding via SSTEN, (b) Within-Video Clustering, (c) Cross-Video Global Assignment, and (d) Viterbi Decoding.

1. Sequence-to-Sequence Temporal Embedding Network (SSTEN)

Moving away from traditional frame-wise processing, TAEC utilizes a Temporal Convolutional Network (TCN)-based autoencoder. This network processes entire sequences of video features and is trained on two complementary pretext tasks:

  • Feature Reconstruction: Learning to rebuild the original input features to preserve visual information.
  • Relative Timestamp Prediction: Predicting a frame's position in the video (on a scale of 0 to 1). This forces the model to learn the "flow" of time, creating a more robust representation of action progression.

2. Two-Step Clustering

To avoid the pitfalls of global K-means (which assumes a uniform action order), TAEC employs a hierarchical approach:

  • Within-Video Clustering: Frames are first clustered within individual videos using spectral clustering to ensure local temporal consistency.
  • Cross-Video Global Assignment: This core innovation treats clusters from different videos as nodes in an N-partite graph. By solving a global assignment problem, the algorithm aligns similar actions (e.g., "pouring" in Video A and Video B) across the entire dataset. This allows the model to remain resilient even when the order of actions varies between subjects.

3. Viterbi Decoding

Finally, the model applies Viterbi decoding to smooth the predictions. This standard algorithm finds the most likely sequence of hidden states, ensuring that the final action labels make logical sense over time.

Experimental Results

TAEC was evaluated on three benchmark datasets: Breakfast (1,712 kitchen activity videos), YouTube Instructions (150 videos with background noise), and 50 Salads (50 videos with highly repetitive and varied action orders).

Qualitative results showing the refinement from initial within-video clustering to the final segmentation across three different activities.

TAEC achieved state-of-the-art performance across all benchmarks:

  • Breakfast: Reached a 50.3% Mean over Frames (MoF), a significant improvement over the previous unsupervised baseline of 41.8%.
  • 50 Salads: On the challenging "eval" level (12 classes), TAEC achieved 48.4% MoF, outperforming the previous best of 39.2%.
  • YouTube Instructions: Demonstrated high robustness even in the presence of background "noise" frames, outperforming recent unsupervised works in nearly every metric.

Key Insights and Limitations

The success of TAEC highlights that relative time is a powerful signal; asking a model to predict a frame's position leads to cleaner, more distinct clusters than visual features alone. Furthermore, prioritizing flexibility over uniformity via the N-partite graph approach allows the model to mirror real-world human behavior more accurately than rigid sequence models.

Despite these gains, challenges remain. The global assignment problem is computationally complex (NP-hard), requiring efficient heuristics for massive datasets. Additionally, the model is sensitive to the balance between reconstruction and time-prediction loss ($\lambda$). Future work may focus on optimizing these assignments for larger scales and improving the discovery of extremely repetitive actions within a single video.

Summary updated

BibTeX
@inproceedings{lin2023taec,
  author = {Wei Lin and Anna Kukleva and Horst Possegger and Hilde Kuehne and Horst Bischof},
  title = {{TAEC: Unsupervised Action Segmentation with Temporal-Aware Embedding and Clustering}},
  booktitle = {CVWW},
  year = {2023},
  url = {https://openreview.net/forum?id=oG7_mlEZgm-},
}
Figure