Object Detection in Video with Spatial-temporal Context Aggregation

Hao Luo, Lichao Huang, Han Shen, Yuan Li, Chang Huang, Xinggang WangarXiv 2019

Abstract

Recent cutting-edge feature aggregation paradigms for video object detection rely on inferring feature correspondence. The feature correspondence estimation problem is fundamentally difficult due to poor image quality, motion blur, etc., and the results of feature correspondence estimation are unstable. To avoid the problem, we propose a simple but effective feature aggregation framework which operates on the object proposal-level. It learns to enhance each proposal's feature via modeling semantic and spatio-temporal relationships among object proposals from both within a frame and across adjacent frames. Experiments are carried out on the ImageNet VID dataset. Without any bells and whistles, our method obtains 80.3% mAP on the ImageNet VID dataset, which is superior over the previous state-of-the-arts. The proposed feature aggregation mechanism improves the single frame Faster RCNN baseline by 5.8% mAP. Besides, under the setting of no temporal post-processing, our method outperforms the previous state-of-the-art by 1.4% mAP.

Introduction

Object detection in video is significantly more challenging than in static images due to "image quality degeneration," including motion blur, video defocus, and occlusions. Existing high-end methods typically address this by aggregating features from neighboring frames. However, most rely on pixel-level correspondence—using optical flow or deformable convolutions to align pixels across time. When frames are blurry or objects are occluded, pixel-level motion estimation often fails, leading to illogical feature calibration. Furthermore, these methods frequently ignore broader semantic context, such as the co-occurrence of related objects (e.g., a "mouse" is usually found near a "computer").

Methodology

The proposed Spatial-temporal Context Aggregation (STCA) framework shifts the focus from pixel-level alignment to robust object proposal-level aggregation. Using a Region Proposal Network (RPN) from Faster R-CNN, the system identifies potential object regions and enhances their features by modeling relationships with other proposals.

The STCA Unit

The core component is the STCA Unit, which employs a self-attention mechanism to calculate dependency weights based on three pillars:

  1. Semantic Dependency: Content-based attention looking at visual features.
  2. Spatial Position Representation: Geometric constraints considering relative distance, scale, and translation within a frame.
  3. Temporal Position Representation: Encoding the relative time distance between frames.
The STCA architecture consists of two stages of feature enhancement using STCA units across multiple frames to build a global understanding of the video clip.

As shown in the architecture diagram, the system operates in two stages. Stage One enhances proposals using candidates from the same and adjacent frames. Stage Two further refines these features by aggregating proposals from different key frames, allowing for a deeper understanding of the entire video sequence.

Experimental Results

Evaluated on the ImageNet VID dataset (5,354 videos), STCA achieved a state-of-the-art 80.3% mAP. This represents a 5.8% mAP improvement over the single-frame Faster R-CNN baseline. Notably, STCA outperformed previous methods by 1.4% mAP even without temporal post-processing (e.g., Seq-NMS), demonstrating the inherent strength of the learned features. The additional computational overhead is relatively low, adding only about 7.3 ms per frame to inference time.

Qualitative comparison demonstrating that STCA maintains high confidence and correct classification in the presence of severe motion blur, where baseline and competing methods like MANet fail.

Key Insights

  • Proposals over Pixels: Shifting to proposal-level aggregation makes the system robust to local noise. If a specific patch of pixels is blurry, the overall "objectness" can still be captured and refined by looking at clearer versions of that object in nearby frames.
  • Contextual Reasoning: By modeling intra-frame context, the model can use "common sense" to resolve ambiguity. For instance, identifying a boat is easier when the model recognizes the surrounding "water" context in the same or adjacent frames.

Conclusion

STCA provides a robust, end-to-end trainable solution for video object detection that avoids the pitfalls of unstable pixel-level correspondence. While currently limited by a fixed inference window (defaulting to 31 frames), the framework demonstrates that proposal-level context is a powerful tool for overcoming image degradation. Future work may explore Transformer-based architectures to model even longer-range dependencies across video sequences.

Summary updated

BibTeX
@misc{luo2019object,
  author = {Hao Luo and Lichao Huang and Han Shen and Yuan Li and Chang Huang and Xinggang Wang},
  title = {{Object Detection in Video with Spatial-temporal Context Aggregation}},
  year = {2019},
  eprint = {1907.04988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04988},
}
Figure