Generalized UAV Object Detection via Frequency Domain Disentanglement

Kunyu Wang, Xueyang Fu, Yukun Huang, Chengzhi Cao, Gege Shi, Zheng-Jun ZhaCVPR 2023

Abstract

When deploying the Unmanned Aerial Vehicles object detection (UAV-OD) network to complex and unseen real-world scenarios, the generalization ability is usually reduced due to the domain shift. To address this issue, this paper proposes a novel frequency domain disentanglement method to improve the UAV-OD generalization. Specifically, we first verified that the spectrum of different bands in the image has different effects to the UAV-OD generalization. Based on this conclusion, we design two learnable filters to extract domain-invariant spectrum and domain-specific spectrum, respectively. The former can be used to train the UAV-OD network and improve its capacity for generalization. In addition, we design a new instance-level contrastive loss to guide the network training. This loss enables the network to concentrate on extracting domain-invariant spectrum and domain-specific spectrum, so as to achieve better disentangling results. Experimental results on three unseen target domains demonstrate that our method has better generalization ability than both the baseline method and state-of-the-art methods.

Introduction

Object detection for Unmanned Aerial Vehicles (UAV-OD) is critical for autonomous navigation and surveillance. However, models often struggle with domain shift—where a detector trained in clear daylight fails when deployed in nighttime, fog, or different urban environments. While Domain Adaptation (DA) can mitigate this, it requires access to target-domain data during training, which is often impractical for real-world drone deployment.

This paper introduces a Domain Generalization (DG) approach that leverages the frequency domain. Unlike standard spatial convolutions that focus on local pixel neighborhoods, frequency-domain analysis captures global dependencies and separates "style" (domain-specific noise) from "content" (domain-invariant features like object shapes).

Methodology: Frequency Domain Disentanglement

The core innovation is a framework that explicitly disentangles features in the spectral domain. The process involves three primary components:

  1. Spectral Decomposition: Input images are converted into the frequency domain using a Fast Fourier Transform (FFT), yielding an amplitude spectrum (carrying style/illumination) and a phase spectrum.
  2. Learnable Filtering: Two filters, $\psi_{si}$ and $\psi_{ss}$, are trained to extract the domain-invariant and domain-specific spectra, respectively. The invariant component is used for the actual detection task.
  3. Instance-Level Contrastive Loss ($L_{con}$): This loss function guides the filters by "pulling together" features of the same object class in the invariant space while "pushing away" domain-specific noise.
The proposed frequency domain disentanglement framework, featuring learnable filters and instance-level contrastive loss.

The training follows an alternating optimization strategy, ensuring the detector and the disentanglement filters do not conflict, leading to a cleaner signal for the object detector.

Experiments and Results

The researchers evaluated the method on the UAVDT and VisDrone2019-VID benchmarks. The model was trained on daylight images and tested on three unseen domains: Various Scenes, Diverse Illumination (nighttime), and Adverse Weather (fog).

Key Performance Metrics

  • Overall Generalization: On the UAVDT benchmark, the method achieved an Average Precision (AP) of 29.4%, a significant improvement over the YOLOv5 baseline's 20.4%.
  • Illumination Robustness: The most dramatic gains occurred in nighttime tests, where the method reached 20.7% AP, compared to the baseline's 4.8%.
Qualitative comparison between the baseline and the proposed method across various challenging domains like nighttime and fog.

Visual results demonstrate that while the baseline model often fails to distinguish small vehicles from noise in dark or foggy conditions, the frequency-disentangled model maintains high detection accuracy.

Conclusion and Future Work

By moving beyond spatial pixels to the frequency domain, this research provides a robust solution for UAV-OD in unpredictable environments. The "Aha" moment came from discovering that middle- and high-frequency bands contain more domain-invariant information than low-frequency bands, which are heavily influenced by lighting style.

Future work will focus on increasing filter complexity to handle even more subtle domain shifts and exploring the integration of this frequency-domain approach with Transformer-based architectures to further enhance global dependency modeling.

Summary updated

BibTeX
@inproceedings{wang2023generalized,
  author = {Kunyu Wang and Xueyang Fu and Yukun Huang and Chengzhi Cao and Gege Shi and Zheng-Jun Zha},
  title = {{Generalized UAV Object Detection via Frequency Domain Disentanglement}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=HG5YPjF80P},
}
Figure