Deep Learning for UAV Drone Object Detection

In my work, I focus on object detection for UAV drone imagery. The central goal is to make a UAV drone capable of locating and recognizing targets automatically from visual data captured in flight. This problem is important because a UAV drone can reach places that are difficult or dangerous for humans, and it can provide a wide field of view from the sky. At the same time, a UAV drone image is not simply a larger version of a ground-level photograph. Targets are often small, densely packed, partially occluded, or captured under poor illumination. These properties make object detection for a UAV drone both valuable and difficult.

I organize my research around three connected ideas. First, I improve shallow feature extraction so that fine spatial details of small objects are preserved. Second, I redesign the allocation of receptive fields so that the feature extraction network is better matched to small-object detection in UAV drone scenes. Third, I build an adaptive low-light enhancement system so that a UAV drone can maintain stable detection when illumination is uneven or the scene is dark. Throughout this article, I use tables and formulas to summarize the main designs and experimental findings.

Background and Challenges

Object detection has moved from hand-crafted features to deep learning. Early detectors used sliding windows, histograms of oriented gradients, and deformable part models. Modern detectors use convolutional neural networks and transformer architectures. For a UAV drone, the detector must often operate in real time while maintaining accuracy on small objects. This creates a tension between speed and precision.

A UAV drone image often contains many small instances. A person, bicycle, car, or tricycle may occupy only a few dozen pixels. When a convolutional network repeatedly downsamples the feature map, the spatial resolution decreases, and small objects can disappear from the deeper layers. The deeper layers may have stronger semantic meaning, but they no longer have enough spatial detail to localize tiny targets. Therefore, for small-object detection in a UAV drone scene, enhancing shallow spatial detail learning is often more effective than merely increasing deep semantic learning.

Another challenge is receptive field design. The receptive field of a feature map pixel is the region in the original image that influences that pixel. If the receptive field is too small, the network lacks context and may fail to recognize an object. If the receptive field is too large, a single feature map pixel may cover multiple objects, and the detector may miss one of them or confuse the background with the target. For a UAV drone, small objects are common, so receptive field allocation must be carefully controlled.

Illumination is a third challenge. A UAV drone can change its angle quickly, and outdoor lighting can be uneven. At night, artificial light sources are sparse, so the image may be dark or have strong local brightness differences. Low-light images lose texture and color information, which makes small-object detection even harder. I therefore treat low-light enhancement as a preprocessing problem that must adapt to the input image rather than apply a fixed transformation to every frame.

Challenge Cause in UAV drone imagery Effect on detection
Small object size High flight altitude and wide field of view Fewer pixels, weaker appearance, low contrast
Resolution loss Repeated downsampling in the backbone Shallow detail disappears in deep layers
Receptive field mismatch Generic backbone design for medium and large objects Missed small targets or confused background
Uneven illumination Drone angle, shadows, artificial lights Lost texture, noise, color distortion
Occlusion and density Crowded scenes, overlapping targets Ambiguous boundaries and duplicate predictions

General Object Detection Framework

I analyze object detection models as a pipeline. An input image is processed by a backbone, then by a feature pyramid, and finally by a detection head. The backbone extracts hierarchical features. The feature pyramid fuses features from different levels. The detection head predicts class labels and bounding boxes. For a UAV drone, this pipeline must be efficient because the detector may need to run on an embedded device.

Two-stage detectors first generate region proposals and then classify and refine them. One-stage detectors directly predict classes and boxes from feature maps. One-stage detectors are generally faster and are more suitable for real-time UAV drone tasks. Transformer-based detectors use attention to model global relationships, but they often require more computation. In my research, I use a one-stage anchor-free detector as the base because it offers a good balance between speed and accuracy.

Family Representative idea Strength Weakness for UAV drone
Two-stage Region proposals followed by refinement High localization quality Slower inference; heavier computation
One-stage anchor-based Preset anchors and dense prediction Fast and stable Anchor design affects small objects
One-stage anchor-free Predict centers or keypoints Simpler design, fewer hyperparameters Needs careful positive sample assignment
Transformer-based Self-attention and set prediction Global context modeling Higher cost for real-time UAV drone use

The training objective can be summarized as a combination of classification loss, objectness loss, and localization loss. For a prediction \(p\) and target \(y\), binary cross entropy is often used:

$$ \operatorname{BCELoss}(y,p)=-\frac{1}{n}\sum_{i=1}^{n}\left[y_i\log(p_i)+(1-y_i)\log(1-p_i)\right] $$

For localization, an IoU-based loss can be written as:

$$ L_{\text{IoU}}=1-\operatorname{IoU}(\hat{B},B) $$

If the predicted box is \(\hat{B}=(\hat{x},\hat{y},\hat{w},\hat{h})\) and the ground-truth box is \(B=(x,y,w,h)\), an auxiliary mean absolute error loss can be added:

$$ L_{\text{MAE}}=\frac{1}{4}\left(|\hat{x}-x|+|\hat{y}-y|+|\hat{w}-w|+|\hat{h}-h|\right) $$

The overall loss in my improved detector can be expressed as:

$$ \operatorname{Loss}=\frac{L_{\text{cls}}+L_{\text{obj}}+L_{\text{reg1}}+5L_{\text{reg2}}}{N_{\text{pos}}} $$

Here \(N_{\text{pos}}\) is the number of positive samples. This combination allows the model to learn classification and localization jointly while giving extra attention to box refinement.

Convolution Modules for Feature Extraction

I compare three convolution module families because they represent different ways of extracting features. The first is the CSP residual block used in YOLOX. It splits the input into two paths, reduces computation, and enriches gradient flow. The second is the MobileNet inverted residual block. It expands the channel dimension, applies depthwise separable convolution, and then projects back to a low dimension. The third is the ConvNeXt block, which uses a large depthwise convolution followed by pointwise convolutions and fewer normalization and activation layers.

Module Core structure Main advantage Main limitation for small UAV drone objects
CSP residual block Split, transform, concat Good gradient flow and efficiency Low-dimensional bottleneck may lose tiny details
MobileNet inverted residual Expand, depthwise, project High-dimensional feature extraction Addition shortcut may overemphasize large regions
ConvNeXt Large depthwise, pointwise, fewer activations Transformer-like design Fewer non-linearities may hurt small-sample targets

For a CSP block, if the output is \(x_3\) and the loss is \(L\), the gradient with respect to an earlier weight \(w_1\) can be written as:

$$ \frac{\partial L}{\partial w_1}=\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_2}\cdot\frac{\partial x_2}{\partial x_1}\cdot\frac{\partial x_1}{\partial w_1} $$

Because the CSP block has two paths, the gradient can also flow through the shortcut:

$$ \frac{\partial L}{\partial w_0}=\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_0}\cdot\frac{\partial x_0}{\partial w_0} $$

This multi-path gradient is beneficial, but the reduction to a low-dimensional space can still harm tiny objects. For depthwise separable convolution, the computation cost compared with standard convolution is:

$$ C_{\text{standard}}=H^2K^2C_{\text{in}}C_{\text{out}} $$

$$ C_{\text{depthwise}}=H^2K^2C_{\text{in}}+H^2C_{\text{in}}C_{\text{out}} $$

The ratio is approximately:

$$ \frac{C_{\text{depthwise}}}{C_{\text{standard}}}=\frac{1}{C_{\text{out}}}+\frac{1}{K^2} $$

This makes depthwise separable convolution attractive for UAV drone deployment. However, I find that the way features are routed and fused matters even more than raw computational cost.

UAV Drone Datasets and Evaluation

I use a large-scale UAV drone dataset because model performance depends heavily on data diversity. The dataset contains many scenes, weather conditions, and target densities. I also compare it with other UAV drone datasets in terms of size, task variety, and number of classes.

Dataset Images Task types Object classes
UAVDT 8,000 3 1
AU-AIR 32,823 1 8
DroneVehicle 56,878 1 5
VisDrone2019 261,908 5 12

I choose VisDrone2019 as my main benchmark. It offers rich scenes, multiple cities, various lighting conditions, and a large number of small instances. For image object detection, the official split includes 6,471 training images and 548 validation images. The test set contains 1,610 images and 77,547 objects. The class distribution is highly imbalanced. Vehicles and pedestrians dominate, while other classes appear less often. This imbalance is useful because it tests whether a detector can handle both frequent and rare classes.

Size category Area criterion Role in UAV drone detection
Small \(8^2 \le \text{area} < 32^2\) Main challenge for UAV drone scenes
Medium \(32^2 \le \text{area} < 96^2\) Common in many detection benchmarks
Large \(\text{area} \ge 96^2\) Less frequent in high-altitude UAV drone images
Very small \(\text{area} < 8^2\) Extreme case, often ignored or hard to label

I apply data augmentation to improve generalization. Random affine transformations, random flipping, mosaic augmentation, and mixup are used during training. Mosaic combines four images into one, which increases the number of small objects in a training sample. Mixup blends two samples and can improve robustness. Near the end of training, I disable heavy augmentation so that the model converges on the true data distribution.

High-Dimensional Feature Extraction for Small Objects

My first main contribution is a convolution module called ATDE, which stands for Attention To Detail. The motivation is simple: small objects lose detail when a network reduces the feature map to a low-dimensional bottleneck. I want to keep the original input information, combine it with transformed features, and then map the combined tensor to a higher-dimensional space for richer extraction.

The ATDE module uses depthwise separable convolution with kernel size \(k\). It can stack \(n\) such convolutions. After each convolution, batch normalization and SiLU activation are applied. Batch normalization is:

$$ \operatorname{BN}(x_i)=\gamma\frac{x_i-\mu_B}{\sqrt{\sigma_B^2+\epsilon}}+\beta $$

SiLU is:

$$ \operatorname{SiLU}(x)=x\cdot\frac{1}{1+e^{-x}} $$

The module has two key structures. The first is a multi-level concatenation structure. Instead of adding the input to the output, I concatenate the original input and the intermediate feature maps. This avoids the problem that an additive shortcut may strengthen large regions and weaken small regions. The second is a high-dimensional mapping structure. A \(1\times1\) convolution expands the concatenated tensor to a higher dimension, and another \(1\times1\) convolution projects it back.

If the module has two large convolutions, the gradient can be written as:

$$ \frac{\partial L}{\partial w_1}=\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_2}\cdot\frac{\partial x_2}{\partial x_1}\cdot\frac{\partial x_1}{\partial w_1}+\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_1}\cdot\frac{\partial x_1}{\partial w_1} $$

$$ \frac{\partial L}{\partial w_0}=\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_2}\cdot\frac{\partial x_2}{\partial x_1}\cdot\frac{\partial x_1}{\partial x_0}\cdot\frac{\partial x_0}{\partial w_0}+\frac{\partial L}{\partial x_3}\cdot\frac{\partial x_3}{\partial x_1}\cdot\frac{\partial x_1}{\partial x_0}\cdot\frac{\partial x_0}{\partial w_0} $$

These richer gradient paths help the shallow layers learn fine spatial patterns. I place ATDE in the first stage of the backbone, where the feature map is still large and spatial information is still precise.

Stage-1 block \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M) \(AP_{\text{small}}\)
CSPResBlock 0.175 0.327 66.9 8.941 0.090
ATDE dim=0 0.181 0.340 70.4 8.940 0.093
ATDE dim=1 0.183 0.341 68.6 8.966 0.097
ATDE dim=2 0.186 0.346 68.5 8.991 0.097
ATDE dim=4 0.190 0.353 68.3 9.040 0.100

The table shows that increasing the expansion ratio improves small-object accuracy. The best result is obtained when the expansion ratio is 4. The \(AP_{0.5}\) is 2.6 percentage points higher than the baseline. The parameter increase is small, and the inference speed remains practical for a UAV drone.

Stage-1 block \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M)
CSPResBlock 0.175 0.327 66.9 8.941
ConvNeXt 0.170 0.321 63.2 8.959
MobileNet 0.186 0.345 68.7 9.025
ResNet 0.172 0.323 69.6 8.936
ResNeXt 0.172 0.323 68.3 8.928
ATDE dim=4 0.190 0.353 68.3 9.040

I also visualize the feature maps from the ATDE module. When the expansion ratio increases, the feature map responds more completely to small objects. The visual evidence confirms that high-dimensional mapping helps the network retain spatial details. This is especially important for a UAV drone because small targets are often only a few pixels wide.

Slow-Growth Receptive Field Strategy

My second main contribution is the SGRF strategy, which stands for Slow Growth Receptive Field. The receptive field of a feature map is computed recursively. For layer \(n\), the receptive field is:

$$ RF_n=RF_{n-1}+(k_n-1)\prod_{i=1}^{n-1}s_i $$

Here \(k_n\) is the kernel size at layer \(n\), and \(s_i\) is the stride at layer \(i\). This formula shows that the receptive field accumulates. If the kernel size is large in a shallow layer, the receptive field grows quickly. If the kernel size remains large in deep layers, the receptive field may become too large for small objects.

The SGRF strategy has two principles. First, increase the effective receptive field in the shallow network by using larger convolution kernels. Second, reduce the growth rate of the receptive field in later stages. This is different from the common practice of keeping the same kernel size in every stage.

Design choice Shallow receptive field Deep receptive field growth Effect on small UAV drone objects
Small kernels everywhere Small Moderate Insufficient context
Large kernels everywhere Large Fast Too much background, missed targets
SGRF Large Slow Better detail and context balance

To implement SGRF, I simplify the stem structure. The original stem uses a focus operation that slices the image into four lower-resolution parts. Although it preserves pixel values, it reduces the actual spatial resolution and can blur edges. I replace it with a \(3\times3\) convolution with stride 2, which directly learns low-level features from the original image. This helps the network capture edges, corners, and contours without an extra slicing step.

I also use larger convolution kernels in the shallow ATDE module. For example, a \(7\times7\) depthwise convolution provides a larger effective receptive field than a stack of small kernels, and it does not introduce the discontinuities of dilated convolution. I then reduce the kernel size stage by stage. The kernel schedule becomes \((7,5,3,3)\). I also reduce the depth of the second stage so that the first prediction feature map retains more spatial detail.

Kernel schedule \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M) \(AP_{\text{small}}\)
(7,5,3,3) 0.201 0.368 72.6 9.649 0.110
(3,3,3,3) 0.195 0.361 72.7 9.644 0.105
(5,5,5,5) 0.194 0.360 72.2 9.668 0.104
(7,7,7,7) 0.196 0.358 71.5 9.703 0.104

The SGRF schedule gives the best overall result. It improves small-object accuracy while keeping the model efficient. The all-large schedule increases the receptive field too quickly, which hurts small-object localization. The all-small schedule lacks enough context in the shallow layers.

I further design a mixed spatial pyramid pooling module called MixSPP. The original SPP uses multiple pooling windows and then a convolution block. I change it to a parallel and progressive fusion structure. The depthwise convolution and pooling branches run in parallel, and the pooled features are fused one by one. This reduces parameters and improves speed. It also keeps the receptive field from growing too fast, which supports the SGRF strategy.

Stage-4 module \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M)
SPP + CSPBlock 0.175 0.327 66.9 8.941
MixSPP 0.175 0.330 68.8 8.422

The ATDeNet backbone combines the simplified stem, the ATDE modules, the SGRF kernel schedule, and MixSPP. I compare it with several mainstream backbones under the same training settings.

Backbone \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M)
CSPDarkNet (YOLOX-S) 0.175 0.327 66.9 8.941
ConvNeXt 0.147 0.282 64.8 9.142
MobileNet 0.185 0.351 72.4 10.42
CSPDarkNet (YOLOv8-S) 0.181 0.337 71.6 9.808
ATDeNet 0.201 0.368 72.6 9.649

ATDeNet improves \(AP_{0.5}\) by 4.1 percentage points over the original baseline. It also improves small-object average precision from 0.090 to 0.110. This shows that the SGRF strategy is effective for a UAV drone detector.

I test the backbone in another framework to verify robustness. Using YOLOv8-S as a base, replacing its backbone with ATDeNet still improves \(AP_{0.5}\) from 0.326 to 0.354. This suggests that the benefit is not tied to one specific detector framework.

Backbone in YOLOv8-S \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M)
CSPDarkNet (YOLOv8-S) 0.187 0.326 77.8 11.139
ATDeNet 0.207 0.354 80.0 10.98

I also evaluate the model at a higher input resolution. When the preset image size is \(800\times800\), both the baseline and my model improve, but my model still maintains a clear advantage.

Backbone at 800×800 \(AP_{0.5:0.95}\) \(AP_{0.5}\) FPS Params (M)
CSPDarkNet (YOLOX-S) 0.204 0.377 66.0 8.941
ATDeNet 0.221 0.404 68.5 9.649

The training curves also support the design. The ATDeNet model has lower classification loss and lower bounding-box loss than the baseline throughout training. The confusion matrix shows that most classes are recognized more accurately. Visual detection examples show fewer missed targets in crowded and low-light scenes.

Adaptive Low-Light Enhancement for UAV Drone Detection

My third contribution is an adaptive low-light enhancement system for a UAV drone. The system has three modules: a low-light recognition module, a low-light enhancement module, and a detection module. The detection module uses the SGRF-based detector described above. The recognition module decides whether enhancement is needed. The enhancement module brightens and restores the image before detection.

The recognition module uses a histogram-based method with a sliding window. A normal image has a histogram spread across the middle intensity range. A low-light image has most pixels concentrated in the dark range. Instead of computing one global histogram, I scan the image with overlapping windows. For each window, I compute the mean \(\mu\) and variance \(\sigma^2\). The brightness indicator is:

$$ \theta_i=0.1\mu+\sigma^2 $$

I set a brightness threshold of 120. If the indicator is below the threshold, the window is marked as low-light. If more than one quarter of the windows are low-light, the whole image is considered low-light. This sliding-window design avoids the problem that a global histogram may ignore local uneven illumination.

Test set Image type Images Time Accuracy
LOL Low-light 485 4.65 s 98.7%
LOL Normal 485 4.65 s 95.4%
VisDrone2019 Low-light 480 17.7 s 92.5%
VisDrone2019 Normal 300 15.1 s 96.7%

The enhancement module is based on a generative adversarial network. I train a U-Net generator to transform a low-light image into a normal-light image. The discriminator has a global branch and a local branch. The global branch evaluates the whole image, while the local branch evaluates random patches. The generator uses an attention map derived from the input brightness to focus on important regions. In my design, I also replace some small convolutions with a larger \(7\times7\) convolution to increase the receptive field in the shallow layers.

The Retinex model is a classical motivation for low-light enhancement. It assumes that an image \(I\) can be decomposed into reflectance \(R\) and illumination \(L\):

$$ I=R\cdot L $$

In the logarithmic domain, this becomes:

$$ \log R=\log I-\log L $$

More recent models also include a degradation term:

$$ I=R\cdot L+E=\tilde{R}\cdot L+E $$

In my adversarial training, I do not require paired low-light and normal-light images. I only need low-light images and normal-light images from similar scenes. The generator loss includes a self-feature-preserving loss to keep object features consistent:

$$ L_{\text{SFP}}=\frac{1}{W_iH_i}\sum_{x=1}^{W_i}\sum_{y=1}^{H_i}\left\|\phi_i(I)-\phi_i(G(I))\right\|_2^2 $$

The global discriminator loss is:

$$ L_{\text{global}}=\mathbb{E}_{x\sim P_{\text{fake}}}\left[(D(x_f,x_r)-1)^2\right]+\mathbb{E}_{x\sim P_{\text{real}}}\left[(D(x_r,x_f))^2\right] $$

The local discriminator loss is:

$$ L_{\text{local}}=\mathbb{E}_{x\sim P_{\text{fake}}}\left[(C(x_f)-1)^2\right] $$

The overall enhancement loss combines these terms:

$$ \operatorname{Loss}=L_{\text{SFP}}^{\text{global}}+L_{\text{SFP}}^{\text{local}}+L_{\text{global}}+L_{\text{local}} $$

After enhancement, the detection module is applied. I test on 480 low-light images from the VisDrone2019 test set. Model A is the detector without enhancement. Model B is the detector with enhancement.

Model \(AP_{0.5}\) Observation
Model A: detector only 0.302 Many small targets missed in dark regions
Model B: enhancement + detector 0.343 Better visibility and fewer missed targets

The results show a 4.2 percentage point improvement in \(AP_{0.5}\) under low-light conditions. The enhanced images are closer to the normal-light average. Visual comparisons confirm that the system improves confidence for buses and cars in dark areas and reduces missed cars in complex scenes. This makes the UAV drone detection system more stable at night or under uneven illumination.

Integrated Findings and Discussion

I summarize the main experimental results in one table. The baseline is YOLOX-S. The high-dimensional ATDE version improves small-object detection. The SGRF version further improves the receptive field allocation. The low-light system adds adaptive preprocessing for difficult illumination.

Method Main change \(AP_{0.5}\) Small-object gain Notes
Baseline YOLOX-S Original CSPDarkNet 0.327 0.090 Reference model
ATDE (dim=4) High-dimensional shallow extraction 0.353 0.100 +2.6 AP\(_{0.5}\)
SGRF + ATDeNet Slow receptive field growth 0.368 0.110 +4.1 AP\(_{0.5}\)
Low-light system Adaptive enhancement 0.343 on dark subset Improved recall Stabilizes UAV drone detection

The results support three conclusions. First, shallow detail preservation is critical for small UAV drone objects. Second, receptive field size should not grow too quickly in deeper layers. Third, low-light enhancement can recover useful visual information before detection. Together, these ideas form a coherent pipeline for UAV drone object detection.

Limitations and Future Directions

I also identify limitations. The SGRF strategy improves small-object accuracy but can slightly reduce large-object accuracy. This is an inherent trade-off. A future design could use dynamic receptive field selection or separate branches for different object scales. Another limitation is viewpoint. My detector performs best in near-vertical views, while oblique views still cause missed and false detections. More data and viewpoint-aware feature extraction could help. A third limitation is that the low-light enhancement and detection modules are trained separately. An end-to-end system could improve information exchange and training efficiency. Finally, occlusion in dynamic UAV drone videos remains a challenging problem. Temporal modeling and tracking could be combined with detection to handle occluded targets.

I plan to continue working on scale-balanced receptive fields, viewpoint-robust feature extraction, end-to-end low-light detection, and temporal association for a moving UAV drone. These directions can further improve the reliability and practicality of UAV drone object detection in real-world missions.

Conclusion

In my research, I developed a deep learning pipeline for UAV drone object detection. I proposed the ATDE module to preserve and extract high-dimensional shallow details. I proposed the SGRF strategy to allocate receptive fields more appropriately for small objects. I designed ATDeNet and MixSPP to implement this strategy efficiently. I also built an adaptive low-light enhancement system that uses histogram-based recognition and adversarial enhancement. The experiments on VisDrone2019 show consistent gains: the high-dimensional module improves \(AP_{0.5}\) by 2.6 percentage points, and the SGRF-based detector improves \(AP_{0.5}\) by 4.1 percentage points over the baseline. The low-light system improves detection on dark images by 4.2 percentage points. These results demonstrate that careful feature extraction, receptive field design, and illumination preprocessing can significantly improve the performance of a UAV drone in challenging visual conditions.

Scroll to Top