3D-DETNet: a single stage video-based vehicle detector

Suichan Li, Feng Chen2018

TL;DR

This paper introduces 3D-DETNet, a novel single-stage detector for video-based vehicle detection. By integrating 3D convolutions to capture temporal motion cues with a focal loss function to address class imbalance, 3D-DETNet achieves state-of-the-art performance and high detection speeds, outperforming existing methods on challenging video datasets.

What Problem Does This Paper Address?

Detecting vehicles in videos is crucial for applications like driver assistance and traffic surveillance. While deep learning has revolutionized object detection in static images, directly applying these methods to video often leads to performance degradation. This is primarily due to challenges unique to video, such as motion blur and video defocus, which can significantly impair recognition accuracy. Existing single-stage detectors, known for their speed, struggle with these video-specific issues, while two-stage detectors, though more accurate, are too slow for real-time applications. This paper aims to bridge this gap by developing a single-stage detector that effectively leverages temporal information from video to improve accuracy without sacrificing speed.

Methods

The proposed 3D-DETNet is a single-stage detector that combines several key components:

  • DarkNet-Conv23 Backbone: This network, a modified Darknet-19, acts as the feature extractor. It's pre-trained on ImageNet and is responsible for generating rich spatial feature representations from individual video frames.
  • 3DConvNet for Temporal Feature Extraction: This is the core innovation for video processing. Unlike traditional methods that might process frames independently or use 2D convolutions, 3DConvNet applies 3D convolutions to the spatial feature maps generated by the backbone. This allows it to capture motion and temporal information encoded across multiple contiguous video frames. Importantly, it takes feature maps as input, not raw frames, making it more efficient.
  • 2DConvNet for Prediction: Following the 3DConvNet, a standard 2D convolutional network is used to process the spatiotemporal features and predict bounding box coordinates and class probabilities. It utilizes anchor boxes, similar to YOLO, to efficiently propose object locations.
  • Focal Loss: To address the class imbalance problem inherent in object detection (where background is far more common than objects), the authors adopt a focal loss function. This loss down-weights the contribution of easy-to-classify examples (like background) and focuses training on hard-to-classify examples, thereby improving accuracy.

The entire network is trained end-to-end.

Datasets

  • UA-DETRAC: This dataset is used for both training and evaluation. It comprises 10 hours of video footage captured in various conditions (sunny, cloudy, rainy, night) with over 140,000 frames and 8,250 annotated vehicles, totaling 1.2 million bounding boxes.
  • ImageNet: Used for pre-training the Darknet-Conv23 backbone.

Key Insights and Ideas

  • Leveraging 3D Convolutions on Feature Maps: A key insight is that 3D convolutions can effectively capture temporal information not by processing raw video frames directly, but by operating on the spatial feature maps extracted by a 2D backbone. This approach balances the need for temporal context with computational efficiency.
  • Focal Loss for Improved Accuracy: The paper highlights that focal loss is crucial for improving the accuracy of single-stage detectors, particularly in scenarios with significant class imbalance, which is common in object detection.
  • Synergy of Temporal and Spatial Features: The combination of a strong spatial feature extractor (DarkNet-Conv23) with a temporal feature extractor (3DConvNet) and an effective loss function (focal loss) leads to a significant performance boost for video-based detection.
  • Challenging Scenarios Benefit Most: The proposed method shows particularly strong improvements in challenging scenarios like rainy and night conditions, underscoring the value of its temporal modeling capabilities.

Key Results

  • State-of-the-Art Performance: 3D-DETNet achieves the best mean Average Precision (mAP) on the UA-DETRAC test dataset, outperforming established methods like DPM, ACF, and R-CNN.
  • High Detection Speed: The model achieves a detection speed of 26 frames per second (fps) on a moderate commercial GPU, making it suitable for real-time applications.
  • Focal Loss Optimization: Experiments showed that a focal loss focusing parameter ($\gamma$) of 2 yielded the best results for their task, outperforming standard cross-entropy loss and other focal loss configurations.
  • Improved Performance in Challenging Conditions: On the UA-DETRAC validation set, 3D-DETNet significantly outperforms YOLO, especially in rainy and night scenarios, achieving an overall mAP of 82.86 compared to YOLO's 80.23.

Limitations and Future Work

  • Limitations:
    • The paper notes that due to memory limitations, only three frames are used as input for the 3DConvNet during training. This might limit the extent of temporal information captured.
  • While the speed is good (26 fps), it's still a trade-off compared to purely 2D single-stage detectors that might achieve even higher frame rates but with lower accuracy.
  • Future Work:
    • The authors plan to further investigate the capabilities of 3D Convolution networks.
  • They aim to improve the performance of vehicle detection in video by exploring more advanced temporal modeling techniques.

Summary updated

BibTeX
@misc{li2018d,
  author = {Suichan Li and Feng Chen},
  title = {{3D-DETNet: a single stage video-based vehicle detector}},
  year = {2018},
  doi = {10.1117/12.2502012},
}
Figure