NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context Matters: Refining Object Detection in Video with Recurrent Neural Networks

Subarna Tripathi, Zachary C. Lipton, Serge J. Belongie, Truong Q. Nguyen

Abstract

Object detection in video is often hampered by temporal instabilities such as motion blur and compression artifacts, alongside the high cost of dense frame annotation. This paper introduces a two-stage framework that utilizes Recurrent Neural Networks (RNNs) to refine object detection by leveraging temporal context. By integrating a domain-adapted CNN "pseudo-labeler" with a Gated Recurrent Unit (GRU) refinement stage, the proposed method significantly enhances detection accuracy and temporal consistency, particularly in sparsely annotated datasets.

Introduction

While object detection in static images has reached high levels of performance, direct application to video remains challenging. Video sequences introduce unique difficulties: temporal variability due to motion blur, domain shifts between high-quality training sets and lower-quality online video, and the prohibitive cost of labeling every frame. Standard detectors often produce inconsistent results across consecutive frames, failing to exploit the inherent temporal continuity of video data. This research addresses these issues by using temporal context—the relationship between adjacent frames—to denoise and stabilize detections.

Methodology

The authors propose a two-stage pipeline designed to work effectively with sparse supervision.

The Pseudo-Labeler

The first stage employs a pre-trained YOLO (You Only Look Once) network. To adapt it to the target video domain with limited labels, the authors freeze the convolutional feature extraction layers and fine-tune only the top fully-connected layers. This "pseudo-labeler" generates initial, noisy bounding box predictions for every frame in the video.

RNN Refinement

The core of the framework is a Recurrent Neural Network (RNN) using Gated Recurrent Units (GRUs) to refine the pseudo-labels. The RNN processes sequences of these initial predictions to produce a more stable and accurate output. Training is guided by a multi-component loss function:

  • Strong Supervision: Standard detection loss on frames with ground truth.
  • Weak Supervision: A category-level loss assuming objects in labeled frames persist in neighboring unlabeled frames.
  • Smoothness Penalty: A regularizer enforcing continuous object movement between frames.
  • Similarity Constraint: A penalty ensuring the RNN does not deviate excessively from the initial CNN predictions.

Experimental Results

The model was evaluated on the YouTube-Objects dataset, which contains 155 videos across 10 classes with only 6,087 annotated frames.

The proposed RNN-PS model (incorporating the smoothness penalty) achieved a mean Average Precision (mAP) of 68.73, representing a 7.1 point improvement over the domain-adapted YOLO baseline (61.66). Qualitative analysis confirms that the RNN effectively "smooths out" classification errors caused by motion blur and maintains more consistent tracking of multiple object instances.

Figure 3: Qualitative results across various classes (bird, motorbike, car, cat, dog). For each class, the top row shows baseline detections and the bottom row shows the refined output, demonstrating superior temporal stability.

Discussion and Conclusion

The primary insight of this work is that temporal context serves as a powerful denoiser. By treating the refinement process as a sequence-to-sequence task, the model learns to rectify momentary failures of the base detector. Furthermore, the "target replication" strategy allows the model to learn effectively from unlabeled context frames.

Despite its success, the model faces limitations in extremely crowded scenes due to the underlying grid-based prediction of the YOLO architecture. Additionally, the smoothness penalty may struggle with exceptionally fast-moving objects. Future work will explore longer temporal sequences and the integration of optical flow to better handle complex dynamics and occlusions.

Summary updated

BibTeX
@inproceedings{tripathi2016context,
  author = {Subarna Tripathi and Zachary C. Lipton and Serge J. Belongie and Truong Q. Nguyen},
  title = {{Context Matters: Refining Object Detection in Video with Recurrent Neural Networks}},
  booktitle = {BMVC},
  year = {2016},
}
Figure