MS-TCN: Multi-Stage Temporal Convolutional Network for Action Segmentation

Yazan Abu Farha, Jürgen Gall

TL;DR

This paper introduces the Multi-Stage Temporal Convolutional Network (MS-TCN), a novel architecture for action segmentation in videos that refines predictions iteratively across multiple stages. By leveraging dilated temporal convolutions and a custom smoothing loss, MS-TCN achieves state-of-the-art results on challenging datasets while operating at full temporal resolution, offering a more efficient and accurate approach to understanding video content.

What Problem Does This Paper Address?

Action segmentation in long, untrimmed videos is a crucial task for applications like surveillance, robotics, and video analysis. The challenge lies in accurately identifying the start and end times of specific actions within a continuous stream of video frames. Traditional methods often involve a two-step process: first predicting frame-wise probabilities and then feeding these into a separate temporal model. While recent approaches have utilized temporal convolutions to directly classify frames, they often operate at a reduced temporal resolution (e.g., 1-3 frames per second), potentially losing fine-grained temporal information. This paper aims to address this by proposing a method that works at full temporal resolution and iteratively refines action segment predictions for improved accuracy and temporal precision.

Methods

The core of the proposed solution is the Multi-Stage Temporal Convolutional Network (MS-TCN). This architecture is built upon a single-stage TCN (SS-TCN), which itself is a sequence of dilated 1D convolutional layers. Key features of the SS-TCN include:

  • Dilated Convolutions: These are used to increase the receptive field exponentially with depth without increasing the number of parameters or layers, allowing the model to capture long-range temporal dependencies. The dilation factor doubles at each layer (1, 2, 4, ..., 512).
  • No Pooling Layers: Unlike many temporal models, MS-TCN avoids pooling layers to maintain full temporal resolution.
  • Residual Connections: These are incorporated to facilitate gradient flow through the network.

The multi-stage aspect is where the MS-TCN truly innovates. Instead of a single pass, the MS-TCN consists of multiple stages (the paper evaluates up to five, settling on four for experiments). Each stage takes the frame-wise probabilities predicted by the previous stage as input and refines them. This iterative refinement process allows the model to progressively improve its predictions, leading to more accurate segmentation.

A novel smoothing loss is also introduced. This loss function, a truncated mean squared error over frame-wise log-probabilities, penalizes over-segmentation errors. It encourages consecutive frames to have similar class probabilities, leading to smoother and more accurate action boundaries. This is used in conjunction with a standard cross-entropy classification loss.

Datasets

The proposed MS-TCN was evaluated on three widely-used action segmentation datasets:

  • 50Salads: Contains 50 videos with 17 action classes, focusing on salad preparation activities.
  • Georgia Tech Egocentric Activities (GTEA): Features 28 videos of egocentric activities (e.g., preparing coffee) with 11 action classes.
  • Breakfast dataset: A large dataset with 1,712 videos of breakfast preparation activities across 48 different actions.

The paper also mentions using I3D features extracted from videos as input to the model, and in some experiments, improved dense trajectories (IDT) features were also used.

Key Insights and Ideas

  • Iterative Refinement is Key: The multi-stage architecture, where each stage refines the output of the previous one, significantly improves action segmentation quality compared to a single-stage model, even with the same number of parameters. This highlights the benefit of progressively learning and correcting predictions.
  • Full Temporal Resolution Matters: Operating at the full temporal resolution of the video, rather than downsampled rates, leads to better performance, especially in capturing precise action boundaries.
  • Dilated Convolutions for Receptive Field: The use of dilated convolutions is an effective way to build a large temporal receptive field without the computational overhead of deeper networks or larger kernels.
  • Smoothing Loss for Boundary Precision: The proposed smoothing loss is crucial for reducing over-segmentation errors, which are a common problem in action segmentation. It effectively encourages smoother predictions and sharper action boundaries.
  • Probabilities, Not Features, for Refinement: Passing only the predicted probabilities to subsequent stages (rather than concatenating raw features) leads to better performance. This suggests that the model learns to leverage the temporal context encoded in the probabilities more effectively than by mixing in potentially ambiguous raw features.

Key Results

  • State-of-the-Art Performance: MS-TCN achieved state-of-the-art results on all three tested datasets (50Salads, GTEA, Breakfast) across multiple evaluation metrics, including F1 score and segmental edit distance.
  • Significant Improvement with Stages: A multi-stage architecture (even just two stages) provided a substantial boost in performance over a single-stage TCN. The four-stage MS-TCN consistently outperformed previous methods.
  • Smoothing Loss Effectiveness: The proposed smoothing loss improved F1 scores by up to 5% compared to using only cross-entropy loss, demonstrating its effectiveness in reducing over-segmentation.
  • Efficiency: The fully convolutional nature of MS-TCN makes it significantly faster for both training and testing compared to recurrent models like LSTMs. Training the four-stage MS-TCN was reported to be four times faster than training a Bi-LSTM.
  • Temporal Resolution Robustness: The model performed well even at a low temporal resolution of 1 fps, though higher resolutions yielded better frame-wise accuracy.

Limitations and Future Work

  • Receptive Field Limitations on Long Videos: While dilated convolutions help, the paper notes that performance slightly degrades on very long videos due to the limited receptive field. This suggests that further improvements might involve architectures better suited for extremely long sequences.
  • Impact of Features: While I3D features generally performed well, the paper found that for certain datasets like Breakfast, appearance features didn't significantly help, suggesting that motion features might be more critical in some contexts.
  • Hyperparameter Sensitivity: The smoothing loss has hyperparameters (λ and τ) that influence performance. While the paper explores their impact, finding optimal values might require careful tuning.

The authors suggest that their fully convolutional architecture is inherently efficient, and future work could explore further optimizations or extensions to handle even longer videos or more complex action hierarchies.

Summary updated

BibTeX
@inproceedings{farha2019ms,
  author = {Yazan Abu Farha and Jürgen Gall},
  title = {{MS-TCN: Multi-Stage Temporal Convolutional Network for Action Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00369},
}
Figure