Efficient Object Detection Model for Real-time UAV Application

Subrahmanyam Vaddi, Dongyoun Kim, Chandan Kumar, Shafqat Ali Shad, Ali JannesariComputer 2021

Abstract

Unmanned Aerial Vehicles (UAVs) equipped with vision capabilities have become popular in recent years. Many applications have especially been employed object detection techniques extracted from the information captured by an onboard camera. However, object detection on UAVs requires high performance, which has a negative effect on the result. In this article, we propose a deep feature pyramid architecture with a modified focal loss function, which enables it to reduce the class imbalance. Moreover, the proposed method employed an end to end object detection model running on the UAV platform for real-time application. To evaluate the proposed architecture, we combined our model with Resnet and MobileNet as a backend network, and we compared it with RetinaNet and HAL-RetinaNet. Our model produced a performance of 30.6 mAP with an inference time of 14 fps. This result shows that our proposed model outperformed RetinaNet by 6.2 mAP.

Introduction

Deploying deep learning on Unmanned Aerial Vehicles (UAVs) presents a significant challenge due to the "triple threat" of constraints: low power consumption for flight endurance, small memory footprints on embedded hardware like the NVIDIA Jetson series, and the need for low latency to ensure safe real-time navigation.

Standard object detectors often struggle in this environment. Two-stage detectors are typically too computationally expensive for onboard processing, while single-stage detectors like YOLO or RetinaNet often grapple with extreme class imbalance. In aerial imagery, background elements (roads, vegetation) vastly outnumber the target objects (vehicles, pedestrians), leading to poor detection performance for small or sparse targets.

Methods

To address these challenges, the proposed model introduces two key architectural innovations:

Deep Feature Pyramid Network (DFPN)

The Deep Feature Pyramid Network (DFPN) extends the standard FPN by continuing to build pyramid structures until the output feature maps converge. This design creates a rich, scale-invariant representation, which is critical for UAV applications where objects can vary drastically in size depending on the drone's altitude and movement.

Architecture of the proposed Deep Feature Pyramid Network (DFPN).

Modified Focal Loss Function

To combat the background-heavy nature of aerial views, the authors modified the standard focal loss function. By squaring the $\alpha$ hyperparameter ($F = \alpha^2 \times c(1-p)^\gamma$), the model provides more aggressive suppression of background noise, forcing the network to focus on "hard" foreground objects. The model was designed for flexibility, supporting both ResNet backbones for maximum accuracy and MobileNet backbones for optimized speed and power efficiency.

Datasets and Evaluation

The model was trained using the VisDrone dataset, which comprises over 10,000 static images and 263 video sequences captured across 14 cities. With over 2.5 million manual annotations, it provides a robust benchmark for detecting pedestrians and vehicles in diverse urban environments and lighting conditions.

Key Results

The proposed model was deployed on a DJI Flame Wheel F450 quadcopter powered by an NVIDIA Jetson TX2. The ResNet-based variant achieved a peak accuracy of 30.6 mAP. The MobileNet-based version, optimized for real-time use, achieved 29.2 mAP at 14 FPS.

As shown in the performance comparison below, the proposed model significantly outperforms the baseline RetinaNet (23 mAP) by 6.2 mAP while maintaining competitive inference speeds for real-time application.

Performance comparison of the proposed model against RetinaNet and HAL-RetinaNet.

Switching to the MobileNet backbone reduced the model size by a factor of three and lowered power consumption from 120W to 85W, with only a marginal 1.4 mAP drop in accuracy compared to the ResNet version. This 35W reduction is critical for extending UAV flight endurance.

Conclusion

The proposed architecture demonstrates that combining a deep feature pyramid with a specialized loss function can effectively overcome the challenges of real-time object detection on UAVs. Future work will focus on reducing anchor box redundancy and improving robustness against occlusions and extreme environmental conditions.

Summary updated

BibTeX
@inproceedings{vaddi2021efficient,
  author = {Subrahmanyam Vaddi and Dongyoun Kim and Chandan Kumar and Shafqat Ali Shad and Ali Jannesari},
  title = {{Efficient Object Detection Model for Real-time UAV Application}},
  booktitle = {Computer},
  year = {2021},
  doi = {10.5539/cis.v14n1p45},
}
Figure