C2FDrone: Coarse-to-Fine Drone-to-Drone Detection using Vision Transformer Networks

Sairam Vc Rebbapragada, Pranoy Panda, Vineeth N BalasubramanianarXiv 2024

TL;DR

C2FDrone introduces a novel coarse-to-fine drone-to-drone detection strategy that leverages Vision Transformers to spot minuscule, fast-moving drones in real-time. By first generating a coarse "objectness mask" to eliminate background noise and narrow the search space, the network primes a fine-grained transformer decoder to precisely localize targets. The approach achieves state-of-the-art results across three challenging benchmarks and runs efficiently on edge hardware.

What Problem Does This Paper Address?

Detecting a drone from another moving drone (drone-to-drone or D2D detection) is vastly more difficult than standard object detection. Drones are incredibly small—occupying a mere 0.05% to 0.08% of an entire video frame on average—and they easily blend into complex backgrounds like clouds, trees, and buildings. Compounding this, the simultaneous motion of both the tracking and target drones introduces severe motion blur, noise, and distortion.

Traditional Convolutional Neural Networks (CNNs) rely heavily on downsampling operations (like max-pooling), which inadvertently destroy the fine local details needed to spot tiny objects and can amplify image noise. Furthermore, uniformly scanning an entire frame for a tiny dot wastes computational power and increases false positives. C2FDrone addresses this by intelligently filtering out background noise and focusing attention only on regions likely to contain a drone.

Methods

The architecture of C2FDrone splits the detection pipeline into two primary stages: a coarse level for region proposal and noise reduction, and a fine-grained level for precise localization.

Fig. 2: Our Coarse-to-Fine detection approach. We process video frames with the Swin Transformer [14] followed by FPN [28] to obtain multi-scale features which are input to DAB DETR [15]. OEN refines the features from Swin layers 1, 2, and 3 by enhancing foreground details and reducing background noise. By computing the mean of the enhanced feature map and applying a threshold, we obtain coarse detection results that highlight the regions likely to contain objects. We utilize these regions to prime the DAB DETR decoder, significantly reducing search space and improving the localization performance. Green boxes - ground truth, Red boxes - model predictions. Lcls & Lreg are the classification and regression losses respectively, commonly used with DETR-family models [15]
  1. Feature Extraction: The model uses a Swin Transformer backbone combined with a Feature Pyramid Network (FPN) to capture global context and retain fine spatial details without the destructive downsampling typical of CNNs.
  2. Coarse Level (Object Enhancement Net): To combat distortion, the authors introduce the Object Enhancement Net (OEN). It aggregates features from the final layers of the Swin Transformer, suppresses background noise, and computes the mean activation across the channel dimension. Applying a threshold to this activation map yields a binary objectness mask—a coarse map highlighting regions likely to contain foreground objects.
  3. Fine-Grained Level (DAB-DETR): Instead of scanning the whole image, the 4D decoder queries (representing bounding box coordinates $x, y, w, h$) of a DAB-DETR model are explicitly initialized using the highlighted regions from the coarse objectness mask. The model also enforces a maximum size constraint ($A_{max}$) on these queries to prevent the decoder from looking for overly large objects, optimizing it specifically for tiny drones.

Datasets

The authors evaluated C2FDrone on three challenging, real-world drone-to-drone detection benchmarks:

  • FL-Drones: A dataset featuring low-resolution frames with high distortion and rapid drone movements.
  • NPS-Drones: An HD dataset (1920x1280 and 1280x760) characterized by extremely small drone sizes ranging down to 10x8 pixels.
  • Airborne Object Tracking (AOT): A massive dataset hosted by Amazon Prime Air containing over 5.9 million high-resolution grayscale images of various planned and unplanned airborne objects.

Key Insights and Ideas

  • Uniform Attention is Inefficient: Allocating equal computational attention across an entire frame is suboptimal when the target is a camouflaged dot. Narrowing the search space first drastically improves both accuracy and speed.
  • Harnessing Inherent Objectness: Foreground objects naturally trigger higher activation levels across feature channels. Averaging these channels provides a computationally cheap yet highly effective spatial prior (the objectness mask) to guide complex transformer decoders.
  • Decoder Priming: Initializing DETR queries with spatial priors derived from the objectness mask bypasses the slow convergence typically associated with DETR models in small-object detection tasks.
Fig. 1: A challenging frame from NPS Drones dataset [10]. Green boxes - ground truth, Red boxes - model predictions a) Traditional methods uniformly scan the entire frame for drones, leading to wasted effort and missed detections in complex scenarios b) Our method precisely localizes drones using a coarse-to-fine detection approach c) Coarse level narrows down the search space by generating an objectness mask d) Fine-grained level focuses on the refined search space, enhancing drone detection.

Key Results

C2FDrone consistently outperformed existing state-of-the-art methods (such as TransVisDrone and DogFight) across all benchmarks:

  • FL-Drones: Achieved a 7% improvement in F1 score and a 9% boost in Average Precision (AP@50) compared to the previous best method.
  • NPS-Drones: Improved the F1 score by 1% with a highly competitive AP of 0.93.
  • AOT Dataset: Demonstrated strong scalability on this massive dataset, yielding a 3% improvement in F1 score and a 2% increase in AP@50.
  • Edge Deployment: When deployed on an NVIDIA Jetson Xavier NX board using the Swin-T backbone, the model achieved a real-time processing speed of 31 FPS on 640-resolution frames.
  • Precision: The model achieved an exceptionally low False Positives Per Image (FPPI) rate of $3.2 \times 10^{-4}$ on the AOT dataset.

Limitations and Future Work

Not discussed in the paper.

Summary updated

Abstract

A vision-based drone-to-drone detection system is crucial for various applications like collision avoidance, countering hostile drones, and search-and-rescue operations. However, detecting drones presents unique challenges, including small object sizes, distortion, occlusion, and real-time processing requirements. Current methods integrating multi-scale feature fusion and temporal information have limitations in handling extreme blur and minuscule objects. To address this, we propose a novel coarse-to-fine detection strategy based on vision transformers. We evaluate our approach on three challenging drone-to-drone detection datasets, achieving F1 score enhancements of 7%, 3%, and 1% on the FL-Drones, AOT, and NPS-Drones datasets, respectively. Additionally, we demonstrate real-time processing capabilities by deploying our model on an edge-computing device. Our code will be made publicly available.
BibTeX
@misc{rebbapragada2024c,
  author = {Sairam VC Rebbapragada and Pranoy Panda and Vineeth N Balasubramanian},
  title = {{C2FDrone: Coarse-to-Fine Drone-to-Drone Detection using Vision Transformer Networks}},
  year = {2024},
  eprint = {2404.19276},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.19276},
}

Loading related content...

Figure