Video Imprint Segmentation for Temporal Action Detection in Untrimmed Videos

Zhanning Gao, Le Wang, Qilin Zhang, Zhenxing Niu, Nanning Zheng, Gang Hua

Introduction

Temporal action detection in untrimmed videos is a complex task that requires identifying the precise start and end times of actions, along with their categories, within long sequences often filled with cluttered backgrounds. Traditional approaches typically rely on "detection by classification," generating numerous temporal proposals and classifying them individually, or using frame-by-frame processing with Recurrent Neural Networks (RNNs) or 3D CNNs. However, these paradigms struggle with the inherent variability in video lengths, leading to high computational costs and difficulties in achieving dense, efficient per-frame predictions.

This paper introduces a novel framework called Temporal Detection By Spatial Segmentation (DBS). By recasting temporal action detection as a spatial semantic segmentation problem, the authors circumvent the challenges of variable-length sequences. The core of this approach is the "video imprint," a fixed-size 2D tensor that compresses video features into a format suitable for standard Fully Convolutional Networks (FCNs).

The DBS Framework

The DBS framework operates through a three-step process that translates a time-series problem into a spatial one, leveraging the efficiency of mature 2D image segmentation architectures.

Overview of the DBS framework: from input video to video imprint, spatial segmentation, and final temporal proposal generation.

1. Video Imprint Generation

Instead of processing a sequence of frames, the model uses an epitome model to compress CNN features into a fixed-size 2D "video imprint." This imprint captures both temporal and spatial interdependencies, mapping frames with similar visual content to spatially proximate locations on a grid. This process naturally suppresses redundant information, such as long static backgrounds, while preserving the essential action features.

2. Spatial Segmentation via FCN

Once the video is represented as a fixed-size, image-like tensor, a standard FCN is applied to segment it. The FCN classifies different spatial regions of the imprint into specific action categories. Because the imprint automatically groups similar frames into spatial neighborhoods, an entire action instance spanning hundreds of frames can be compressed into a single "blob" on the grid, simplifying the classification task.

3. Reverse Projection

During inference, the spatial segmentation scores generated by the FCN are projected back into the temporal video space using the imprint's posterior probabilities. This yields dense, frame-level prediction scores, which are then used to determine the final start and end times of the actions.

Training and Mapping

To train the FCN, temporal annotations from the original video must be mapped to the spatial coordinates of the video imprint. This mapping allows the model to learn the relationship between temporal segments and their corresponding spatial representations.

Mapping temporal annotations and background segments from the video timeline to the spatial annotation maps in the video imprint.

This spatial representation also enables clever data augmentation. Since the FCN only requires spatial annotation maps, the authors can incorporate entirely different datasets of trimmed videos (like UCF101) to augment training for untrimmed detection, significantly boosting the model's robustness.

Key Results and Efficiency

The DBS framework achieves state-of-the-art performance across major benchmarks while maintaining extreme efficiency:

  • Accuracy: On THUMOS'14, the framework achieved a per-frame labeling mAP of 47.8% and a temporal action detection mAP of 34.3% (at IoU 0.5). It also outperformed existing methods on ActivityNet v1.2 and v1.3.
  • Memory Efficiency: The compact imprint and simple FCN architecture require less than 200MB of memory, a significant reduction from the ~1GB required by prior dense-labeling models.
  • Inference Speed: The system is remarkably fast, processing a 50-second video in just 1 second. The FCN inference step itself takes only ~55 milliseconds.

Conclusion

By converting temporal detection into a spatial segmentation task, the DBS framework offers a highly efficient and accurate solution for analyzing untrimmed videos. While the current method relies on pre-extracted CNN features and a separate imprint generation step, future work will focus on developing an end-to-end training algorithm. This would allow temporal annotations to directly optimize the video imprint generation, potentially leading to even more powerful feature representations.

Summary updated

BibTeX
@inproceedings{gao2019video,
  author = {Zhanning Gao and Le Wang and Qilin Zhang and Zhenxing Niu and Nanning Zheng and Gang Hua},
  title = {{Video Imprint Segmentation for Temporal Action Detection in Untrimmed Videos}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018328},
}
Figure