Patch-based Selection and Refinement for Early Object Detection

Tianyi Zhang, Kishore Kasichainula, Yaoxin Zhuo, Baoxin Li, Jae-Sun Seo, Yu Cao

Abstract: Early object detection (OD) is a crucial task for the safety of many dynamic systems. Current OD algorithms have limited success for small objects at a long distance. To improve the accuracy and efficiency of such a task, we propose a novel set of algorithms that divide the image into patches, select patches with objects at various scales, elaborate the details of a small object, and detect it as early as possible. Our approach is built upon a transformer-based network and integrates the diffusion model to improve the detection accuracy. As demonstrated on BDD100K, our algorithms enhance the mAP for small objects from 1.03 to 8.93, and reduce the data volume in computation by more than 77%.

Introduction

In autonomous driving and robotics, "early detection" is a life-saving requirement. To react in time, a system must detect hazards while they are still far away. However, at long distances, objects like pedestrians or cars occupy only a handful of pixels.

Standard object detection (OD) algorithms struggle with these tiny targets. While Super-Resolution (SR) can reconstruct lost details, applying high-end SR—especially modern Diffusion Models—to an entire high-definition frame is computationally ruinous. Most pixels in a driving scene (like the sky or empty road) are "background noise" that doesn't require expensive refinement. The challenge is: how do we get the hallucination power of Diffusion Models without the massive overhead of processing the whole image?

The challenge of early object detection: objects at a distance occupy very few pixels, leading to a sharp decline in detection performance (mAP) for standard models like YOLOv8.

Methods

The proposed framework, Dichotomized Patch Refinement (DPR), addresses this by upscaling only the "important" parts of an image. The pipeline consists of three stages:

  1. Patch-Selector: The image is divided into an 8x8 grid of patches. A hierarchical transformer-based encoder (inspired by the Swin Transformer) analyzes these patches. It uses a "classification token" and a Pyramid Loss function to determine if a patch contains an object (positive) or is just background (negative).
  2. Patch-Refiner: This is the core "dichotomy." Positive Patches are sent to a Conditional Diffusion Model (CDM). The CDM "elaborates" the details, upscaling a 16x16 patch to 128x128 by iteratively removing noise guided by the low-res input. Negative Patches are simply upscaled using cheap Bilinear Interpolation (BI).
  3. Patch-Organizer: The refined and interpolated patches are stitched back together into a complete, high-resolution image ready for a standard detector like YOLOv8.
The DPR pipeline: A Patch-Selector identifies regions of interest, which are then refined via a Conditional Diffusion Model (CDM) while background patches use simple interpolation.

Key Results

The study primarily uses the BDD100K (Berkeley DeepDrive) dataset. To simulate early detection, researchers focused on FBDD (Far BDD), where objects occupy less than 1.5% of the total pixels.

  • Accuracy Boost: On the FBDD subset, the mean Average Precision (mAP) jumped from 1.03 to 8.93 when upscaling from 128x128 to 1024x1024.
  • Efficiency: DPR reduced the data volume required for computation by 77.2% compared to full-image refinement. By identifying that only ~22.8% of patches actually contained objects, they could ignore nearly 80% of the image during the expensive diffusion process.
  • Superiority over Standard SR: DPR outperformed other state-of-the-art SR methods like SR3 and SwinIR. Specifically, it achieved a higher mAP (4.33) than SR3 (2.38) while being significantly faster because it processed fewer patches.

Conclusion

DPR demonstrates that leveraging the sparsity of objects in distant scenes allows for high-fidelity refinement using Diffusion Models without prohibitive costs. While the accuracy gains are significant, future work must address the inherent latency of iterative Diffusion Models to enable real-time deployment. Additionally, improving the Patch-Selector's recall is vital, as any false negative at the selection stage prevents the detector from ever seeing the refined hazard.

Summary updated

BibTeX
@inproceedings{zhang2024patch,
  author = {Tianyi Zhang and Kishore Kasichainula and Yaoxin Zhuo and Baoxin Li and Jae-Sun Seo and Yu Cao},
  title = {{Patch-based Selection and Refinement for Early Object Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=1E1hpUQDcm},
}
Figure