Abstract
The ability to identify and temporally segment fine-grained human actions throughout a video is crucial for robotics, surveillance, education, and beyond. Typical approaches decouple this problem by first extracting local spatiotemporal features from video frames and then feeding them into a temporal classifier that captures high-level temporal patterns. We describe a class of temporal models, which we call Temporal Convolutional Networks (TCNs), that use a hierarchy of temporal convolutions to perform fine-grained action segmentation or detection. Our Encoder-Decoder TCN uses pooling and upsampling to efficiently capture long-range temporal patterns whereas our Dilated TCN uses dilated convolutions. We show that TCNs are capable of capturing action compositions, segment durations, and long-range dependencies, and are over a magnitude faster to train than competing LSTM-based Recurrent Neural Networks. We apply these models to three challenging fine-grained datasets and show large improvements over the state of the art.
Introduction
Action segmentation involves identifying "what" is happening in a video and precisely "when" each action starts and ends. This task is particularly challenging in fine-grained scenarios, such as cooking or assembly, where visually similar actions (e.g., "cutting a tomato" vs. "peeling a cucumber") require significant temporal context to distinguish accurately.
Historically, Recurrent Neural Networks (RNNs), specifically Long Short-Term Memory (LSTM) networks, have been the standard for this task. However, RNNs suffer from three major limitations:
- Sequential Bottleneck: Frames must be processed one by one, preventing parallelization and leading to slow training times.
- Vanishing Gradients: RNNs often struggle to maintain information over long durations, making it difficult to capture dependencies across several minutes of video.
- Over-segmentation: RNN-based predictions are prone to "flickering," where the model rapidly toggles between labels for a single continuous activity.
To address these issues, this research introduces Temporal Convolutional Networks (TCNs), which leverage hierarchical 1D convolutions to capture long-range temporal patterns more efficiently and accurately than recurrent models.
Proposed Architectures
The paper proposes two distinct TCN architectures designed to capture multi-scale temporal information.
Encoder-Decoder TCN (ED-TCN)
The ED-TCN architecture is inspired by the "SegNet" style used in image segmentation. It employs a series of 1D convolutions and max-pooling layers to compress the temporal resolution (the encoder), followed by upsampling and convolutions to restore the original resolution (the decoder). This structure allows the model to capture a very large temporal window efficiently while maintaining precise frame-level predictions.
Dilated TCN
Inspired by WaveNet, the Dilated TCN uses "dilated" convolutions—filters that skip over frames at regular intervals. By increasing the dilation factor exponentially with each layer, the model's receptive field expands rapidly without a corresponding increase in parameters or loss of temporal resolution. This architecture also incorporates skip connections to facilitate deeper networks and better gradient flow.
Evaluation and Metrics
The models were evaluated on three challenging datasets:
- 50 Salads: 50 videos of salad preparation (5-10 minutes each).
- GTEA (Georgia Tech Egocentric Activities): 28 first-person videos of kitchen activities.
- MERL Shopping: 106 surveillance-style videos of retail interactions.
A key contribution of this work is the emphasis on the Segmental F1 score. Standard frame-wise accuracy often fails to penalize over-segmentation (flickering). The Segmental F1 metric rewards models for correctly identifying the order and timing of action intervals, providing a more meaningful measure of quality for real-world applications.
Key Results
- Superior Accuracy and Smoothness: On the 50 Salads dataset, the ED-TCN achieved 64.7% accuracy, significantly outperforming the Bi-LSTM's 55.7%. Qualitatively, TCNs produce much cleaner segments with far fewer over-segmentation errors.
- Massive Speedup: Because convolutional layers allow for parallelization on GPUs, TCNs are significantly faster to train. The authors report that an ED-TCN can be trained in approximately 1 minute, compared to 30 minutes for a Bi-LSTM on the same hardware.
- Long-range Robustness: Synthetic experiments demonstrated that TCNs are more robust to long-range dependencies and time delays than LSTMs, which tend to degrade as the gap between relevant features increases.
Conclusion and Future Work
TCNs represent a significant step forward in temporal modeling for video. By replacing recurrence with hierarchical convolutions, they offer better performance, smoother predictions, and an order-of-magnitude improvement in training speed.
Future research directions include addressing memory constraints for very deep models and moving toward end-to-end training that integrates spatial CNN feature extraction directly with the temporal convolutional layers. Additionally, while "acausal" models (using both past and future context) perform best for offline analysis, developing more robust "causal" (past-only) TCNs remains a priority for real-time robotics and surveillance applications.
Summary updated