Scale Optimization for Full-Image-CNN Vehicle Detection

Yang Gao, Shouyan Guo, Kaimin Huang, Jiaxin Chen, Qian Gong, Yang Zou, Tong Bai, Gary Overett · DOI

Abstract

Many state-of-the-art general object detection methods make use of shared full-image convolutional features (as in Faster R-CNN). This achieves a reasonable test-phase computation time while enjoying the discriminative power provided by large Convolutional Neural Network (CNN) models. Such designs excel on benchmarks which contain natural images but which have very unnatural distributions, i.e. they have an unnaturally high-frequency of the target classes and a bias towards a "friendly" or "dominant" object scale. In this paper we present further study of the use and adaptation of the Faster R-CNN object detection method for datasets presenting natural scale distribution and unbiased real-world object frequency. In particular, we show that better alignment of the detector scale sensitivity to the extant distribution improves vehicle detection performance. We do this by modifying both the selection of Region Proposals, and through using more scale-appropriate full-image convolution features within the CNN model. By selecting better scales in the region proposal input and by combining feature maps through careful design of the convolutional neural network, we improve performance on smaller objects. We significantly increase detection AP for the KITTI dataset car class from 76.3% on our baseline Faster R-CNN detector to 83.6% in our improved detector.

Introduction: The Challenge of Natural Scale Distributions

Most state-of-the-art object detectors are designed and tested on "general" benchmarks like PASCAL VOC or MS COCO. These datasets often exhibit an "unnatural" distribution where target objects appear frequently and at a "friendly" or dominant scale—usually large and centered. In contrast, real-world domains like autonomous driving, represented by the KITTI dataset, feature a "domain-natural" distribution. As a vehicle moves, other cars appear at a vast range of scales, from a few pixels wide in the distance to filling the entire frame nearby.

A typical street scene from the KITTI dataset illustrating the wide range of vehicle scales encountered in real-world driving.

Standard detectors struggle in these environments because their deep convolutional layers have massive receptive fields. For a tiny, distant car, a large receptive field captures excessive background noise, diluting the signal needed for accurate detection. This paper addresses this by aligning the detector's internal "vision" with the actual scale distribution of the environment.

Methodology: Architectural Adaptations for Scale

To overcome the limitations of standard Faster R-CNN (using a ZF-Net backbone), four primary architectural modifications were implemented:

  1. Anchor Box Optimization ($ZF_{anchor}$): The original anchor scales ($128^2, 256^2, 512^2$) were supplemented with smaller scales ($32^2$ and $64^2$) to target the high frequency of small vehicles in KITTI.
  2. Multi-layer Proposals ($ZF_{ml}$): Feature maps from conv4 and conv5 were concatenated. The shallower conv4 layer retains fine-grained spatial information crucial for locating small objects.
  3. Multi-scale Proposals ($ZF_{ms}$): Parallel convolutional kernels ($1\times1, 3\times3, 5\times5$) were added to the conv4 layer to capture features at multiple scales simultaneously before reaching the Region Proposal Network (RPN).
  4. Residual Block Embedding ($ZF_{res}$): A residual connection between conv4 and conv5 was introduced to preserve lower-level features while learning higher-level abstractions.

The final integrated model, $ZF_{combin}$, combines these techniques into a single pipeline.

Results and Discussion

The optimizations yielded significant performance gains. The $ZF_{combin}$ model achieved 83.6% AP on the KITTI car class, a substantial improvement over the 76.3% AP baseline. Notably, these gains were almost entirely driven by improved sensitivity to vehicles smaller than 100 pixels wide.

Heatmaps comparing object scale distributions (width vs. height), highlighting the shift toward smaller object sensitivity and the natural distribution of the KITTI dataset.

The research also highlighted benchmark bias: while the modifications provided a +7.3% gain on KITTI, they only offered a marginal +0.9% gain on PASCAL VOC. This confirms that scale optimization is highly domain-dependent. Furthermore, the $ZF_{res}$ model demonstrated faster convergence during training, suggesting that residual connections aid in learning the complex feature diversity required for multi-scale detection.

Conclusion

For real-world applications like autonomous driving, general-purpose benchmarks are insufficient. Effective vehicle detection requires aligning the CNN's architecture—specifically its anchor scales and feature map resolutions—with the natural scale distribution of the target domain. By prioritizing the detection of small, distant objects through multi-layer and multi-scale feature integration, we can significantly enhance the reliability of vision systems in dynamic environments.

Summary updated

BibTeX
@misc{gao2018scale,
  author = {Yang Gao and Shouyan Guo and Kaimin Huang and Jiaxin Chen and Qian Gong and Yang Zou and Tong Bai and Gary Overett},
  title = {{Scale Optimization for Full-Image-CNN Vehicle Detection}},
  year = {2018},
  eprint = {1802.06926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.06926},
}
Figure