Guided Attention Network for Object Detection and Counting on Drones

Yuanqiang Cai, Dawei Du, Libo Zhang, Longyin Wen, Weiqiang Wang, Yanjun Wu, Siwei Lyu

Object detection and counting from drones are notoriously difficult tasks. From a high-altitude perspective, objects like cars or pedestrians become tiny clusters of pixels, often lost against cluttered backgrounds or obscured by shadows and weather. Traditional computer vision models often struggle with these "small object" problems.

In their paper, "Guided Attention Network for Object Detection and Counting on Drones," Yuanqiang Cai and his team propose GANet, an anchor-free architecture designed specifically to navigate the unique challenges of aerial imagery.

TL;DR

GANet is a novel anchor-free detection and counting framework that uses dual attention modules—Background Attention (BA) and Foreground Attention (FA)—to better distinguish small objects from cluttered drone environments. By combining these with a specialized weather-simulating data augmentation strategy, the model achieves state-of-the-art performance on major drone benchmarks.

What Problem Does This Paper Address?

Drone-based computer vision faces three primary hurdles:

  1. Scale Variation: Objects appear at vastly different sizes depending on the drone's altitude.
  2. Cluttered Backgrounds: From above, a roof or a patch of pavement can easily be mistaken for a vehicle.
  3. Environmental Constraints: Drones operate in diverse lighting (day/night) and weather (fog/clouds), which can degrade image quality.

Existing "anchor-based" models (like Faster R-CNN) rely on pre-defined boxes that don't scale well to tiny objects. Conversely, "anchor-free" models often lack the structural information needed to tell an object apart from a complex background. GANet aims to bridge this gap by "guiding" the network's attention to exactly what matters.

Methods

The GANet architecture consists of three main components:

1. Background Attention (BA) Module

Unlike typical unsupervised attention, the BA module is weakly supervised. It uses image-level classification (simply knowing if an object is present in the image or not) to force different feature map channels to focus specifically on either the foreground or the background. This "cleans" the feature pyramid, ensuring that the semantic information passed to the next stage is discriminative.

2. Foreground Attention (FA) Module

To improve localization without using anchors, the FA module captures both global and local appearance. It predicts four corner maps (top-left, top-right, bottom-left, and bottom-right) for each object. By looking at the corners, the model gains a sense of the object's structure and boundaries, which is much more effective for small objects than simply looking for a center point.

3. Specialized Data Augmentation

The authors introduced two new types of noise to make the model robust:

  • BNoise (Brightness Noise): Simulates extreme sunny or night-time conditions by adjusting global contrast.
  • PNoise (Perlin Noise): Simulates the visual interference of clouds and foggy weather.

Datasets

The model was evaluated on three challenging benchmarks:

  • UAVDT: A large-scale dataset for Unmanned Aerial Vehicle Detection and Tracking.
  • CARPK: A dataset specifically for counting cars in parking lots from drone views.
  • PUCPR+: A subset of the PKLot dataset, featuring high-altitude views of parking areas.

Key Insights and Ideas

  • Weak Supervision as a Guide: Using simple image-level labels to train the Background Attention module is a clever way to improve feature quality without requiring exhaustive pixel-level masks.
  • The Power of Corners: By focusing on corner regions (defined as 1/9th the size of the object), the model effectively "votes" on the existence of a bounding box. If a box doesn't have enough "reliable corners," it's discarded, significantly reducing false positives in cluttered scenes.
  • Weather Robustness: The inclusion of Perlin noise (PNoise) was particularly effective. The ablation study showed that models trained with PNoise performed significantly better in "foggy" scene categories compared to standard models.

Key Results

GANet outperformed several heavy hitters in the field, including YOLOv3, Faster R-CNN, and SSD:

  • UAVDT: Achieved an [email protected] of 47.2%, significantly higher than the 20.3% achieved by YOLOv3.
  • Counting Accuracy: On the CARPK dataset, GANet achieved a Mean Absolute Error (MAE) of 4.61, outperforming the previous state-of-the-art (SA+CF+CRT) which sat at 5.42.
  • Ablation Success: Adding the BA and FA modules together improved the Average Precision (AP) by roughly 8% over the baseline GANet without those modules.

Limitations and Future Work

While GANet shows impressive results, the paper focuses primarily on single-class detection and counting (specifically vehicles). The authors acknowledge this and state that their future work will involve expanding the method to multi-class object detection (e.g., distinguishing between cars, pedestrians, and cyclists simultaneously). Additionally, while the anchor-free approach is efficient, the computational overhead of processing four separate corner maps alongside score and location maps is a factor for real-time deployment on edge devices (like the drones themselves).

Summary updated

BibTeX
@inproceedings{cai2020guided,
  author = {Yuanqiang Cai and Dawei Du and Libo Zhang and Longyin Wen and Weiqiang Wang and Yanjun Wu and Siwei Lyu},
  title = {{Guided Attention Network for Object Detection and Counting on Drones}},
  booktitle = {ACM Multimedia},
  year = {2020},
  doi = {10.1145/3394171.3413816},
}
Figure