Unsupervised Action Segmentation by Joint Representation Learning and Online Clustering

Sateesh Kumar, Sanjay Haresh, Awais Ahmed, Andrey Konin, M. Zeeshan Zia, Quoc-Huy Tran

TL;DR

This paper introduces a novel method for unsupervised action segmentation in videos by jointly learning video representations and clustering them online. By leveraging "temporal optimal transport," it preserves the temporal order of actions, leading to more effective segmentation and significantly reduced memory requirements compared to previous offline methods.

What Problem Does This Paper Address?

Understanding human activities in videos is crucial for many applications, but accurately segmenting complex activities into their constituent actions (temporal action segmentation) is challenging. Traditional approaches often require extensive frame-level annotations, which are costly and time-consuming to obtain. While weakly-supervised methods exist, they still rely on some form of labels (like action order or presence). Unsupervised methods aim to bypass these annotation requirements by learning from unlabeled videos. However, existing unsupervised methods typically separate representation learning from clustering, requiring the entire dataset's features to be stored offline, leading to high memory demands. This paper addresses the need for an effective, memory-efficient, and fully unsupervised method for temporal action segmentation.

Methods

The core innovation lies in a joint representation learning and online clustering framework. Instead of a sequential approach, this method uses video frame clustering as a pretext task to directly optimize for action segmentation.

Key techniques include:

  • Temporal Optimal Transport (TOT): This is the central novel component. It extends standard optimal transport by incorporating a temporal regularization term. This term preserves the temporal order of actions, ensuring that frames occurring earlier in a video are more likely to be assigned to earlier clusters, and vice-versa. This is crucial for learning effective representations that capture the sequential nature of activities.
  • Online Clustering: Unlike prior methods that store all features and cluster them offline, this approach processes data in mini-batches. This significantly reduces memory requirements, making it scalable to large datasets.
  • Cross-Entropy Loss: Used for learning representations by minimizing the difference between predicted cluster assignments and the pseudo-labels generated by the optimal transport module.
  • Temporal Coherence Loss: An additional self-supervised loss that encourages temporally close frames to be mapped to nearby points in the embedding space, further leveraging temporal information.

Datasets

The proposed method was evaluated on several public datasets and a newly introduced one:

  • 50 Salads: A dataset of cooking activities.
  • YouTube Instructions (YTI): Videos demonstrating various tasks.
  • Breakfast: A dataset of everyday activities.
  • Desktop Assembly: A newly introduced dataset featuring 76 videos of actors assembling a desktop computer, with 22 distinct actions in a fixed order.

Key Insights and Ideas

  • Joint Learning is Key: The paper strongly advocates for jointly learning representations and clustering, showing it's more effective than sequential approaches. This allows the clustering process to provide feedback that improves representation learning.
  • Temporal Order Matters: Explicitly incorporating temporal order through "temporal optimal transport" significantly boosts performance, highlighting the sequential nature of human actions.
  • Memory Efficiency is Achievable: The online, mini-batch processing approach drastically reduces memory footprints, making unsupervised segmentation more practical for large-scale video analysis.
  • Pretext Task Effectiveness: Using video frame clustering as a pretext task directly aligns the learned representations with the downstream goal of action segmentation.

Key Results

The proposed method, TOT+TCL, consistently achieved state-of-the-art or competitive results across multiple datasets.

  • On 50 Salads (Eval granularity), TOT+TCL achieved an F1-Score of 48.2, outperforming previous methods like CTE [43] by 11.9%.
  • On YouTube Instructions, TOT+TCL achieved the best performance with an F1-Score of 32.9 and MOF of 45.3%.
  • On the Breakfast dataset, TOT outperformed CTE by 4.6% and 5.7% in F1-Score and MOF, respectively.
  • On the Desktop Assembly dataset, TOT+TCL achieved the best F1-Score of 53.4 and MOF of 58.1%.
  • The method demonstrated significantly less memory requirements compared to offline methods, processing mini-batches instead of the entire dataset.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Equal Partition Constraint: The assumption of equal partition for clusters might not hold for activities with highly variable action lengths. However, they note it works reasonably well in practice due to soft assignments and mini-batch processing.
  • Fixed Order Prior: The fixed order prior assumes a consistent sequence of actions. While it works well for the tested datasets, it might struggle with significant permutations or missing actions.
  • TCL Performance: The Temporal Coherence Loss (TCL) performs well on datasets with small/medium intra-class variations but can be less effective with large variations.

Future work directions include:

  • Handling order variations and background frames more robustly.
  • Extending the approach to include additional self-supervised losses, such as visual cues or action-level cues.
  • Exploring deep supervision for hierarchical segmentation.
  • Investigating multi-level clustering to handle unknown activity classes.

Summary updated

BibTeX
@inproceedings{kumar2022unsupervised,
  author = {Sateesh Kumar and Sanjay Haresh and Awais Ahmed and Andrey Konin and M. Zeeshan Zia and Quoc-Huy Tran},
  title = {{Unsupervised Action Segmentation by Joint Representation Learning and Online Clustering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=l7op5acHnB4},
}
Figure