In this work, I study small object detection for UAV drone imagery. A UAV drone often observes a scene from a high altitude, which gives a wide field of view and strong operational flexibility, but the same viewpoint also makes many targets extremely small. In practical UAV drone applications such as traffic inspection, city management, emergency response, and infrastructure monitoring, the effective pixel area of a target can be only a few pixels. I therefore design DRA-YOLOv8, a unified detector that improves YOLOv8 through detail-preserving downsampling, routing-based cross-scale fusion, and assignment optimization. I evaluate the model on the VisDrone dataset and compare it with the YOLOv8 baseline. The experimental results show consistent gains in Precision, Recall, mAP@0.5, and mAP@0.5:0.95. I present the method, the equations, the ablation study, and the experimental analysis in detail below.
1. Introduction
UAV drone vision has become an important research direction because a UAV drone can move quickly, cover a large area, and reach locations that are difficult for fixed cameras. However, small object detection in UAV drone images remains difficult. The main reasons are threefold. First, small objects contain limited visual information, so their edges and textures are easily lost during repeated downsampling. Second, the distribution of objects in a UAV drone image is highly non-uniform. Some regions are crowded, while other regions are almost empty. Third, in dense scenes, candidate boxes overlap heavily, and conventional assignment strategies create unstable competition among positive samples.
Feature pyramid networks and path aggregation networks have improved multi-scale representation for general object detection. YOLO-family detectors have also become popular for UAV drone deployment because of their favorable speed and accuracy trade-off. Nevertheless, I observe that a standard YOLOv8 detector still struggles when the input comes from a UAV drone and the targets are small. The backbone may lose high-frequency details before the neck can fuse them. The neck may apply a fixed fusion pattern regardless of local target density. The head may assign positive samples using an intersection-over-union threshold that is not sufficient for dense small objects.
To address these issues, I integrate three improvements into one framework. I call the first improvement D, which stands for detail-preserving downsampling. I call the second improvement R, which stands for routing-based cross-scale fusion. I call the third improvement A, which stands for assignment optimization. Together, they form DRA-YOLOv8. The design goal is not to add many independent tricks, but to align the detector with the statistical and geometric properties of UAV drone small object detection.

I summarize the main contributions as follows. First, I propose a detail-preserving downsampling module that separates low-frequency structure and high-frequency residual information, then uses a gate to recombine them. Second, I propose a density-conditioned routing mechanism that adaptively adjusts cross-scale fusion weights according to local object density. Third, I propose an assignment optimization strategy that combines intersection-over-union, center distance, and prediction confidence into a unified matching cost. Fourth, I conduct experiments on VisDrone and show that DRA-YOLOv8 improves over the YOLOv8 baseline on multiple metrics.
2. Problem Formulation and Notation
I formulate UAV drone small object detection as a supervised learning problem. Given an input image \(I\), the detector predicts a set of bounding boxes, class labels, and confidence scores. I denote the input image size as \(H \times W\), the number of classes as \(C\), and the set of ground-truth objects as \(\mathcal{G} = \{g_1, g_2, \ldots, g_N\}\). Each ground-truth object \(g_i\) contains a class label \(c_i\) and a bounding box \(b_i = (x_i, y_i, w_i, h_i)\).
The detector produces multi-scale feature maps from the backbone. I write the feature set as
$$ \mathcal{F} = \mathrm{Backbone}(I) = \{F_1, F_2, F_3, F_4\}, $$
where \(F_1\) is the highest-resolution feature map and \(F_4\) is the lowest-resolution feature map. For UAV drone small object detection, \(F_1\) and \(F_2\) are especially important because they preserve spatial detail. The neck fuses these features, and the head predicts boxes and classes.
| Symbol | Meaning |
|---|---|
| \(I\) | Input UAV drone image |
| \(H, W\) | Image height and width |
| \(C\) | Number of object classes |
| \(\mathcal{G}\) | Set of ground-truth objects |
| \(F_s\) | Feature map at scale \(s\) |
| \(L\) | Low-frequency structure component |
| \(\hat{H}\) | High-frequency residual component |
| \(g\) | Gate coefficient |
| \(\alpha_s\) | Fusion weight at scale \(s\) |
| \(u_s\) | Routing score at scale \(s\) |
| \(C_{ij}\) | Matching cost between prediction \(i\) and ground truth \(j\) |
| \(\mathrm{IoU}_{ij}\) | Intersection over union |
| \(d_{ij}\) | Center distance |
| \(q_i\) | Prediction confidence |
I use standard detection metrics. Precision measures the fraction of predicted positives that are correct. Recall measures the fraction of ground-truth positives that are found. Average precision summarizes the precision-recall curve for one class. Mean average precision averages AP over classes.
$$ P = \frac{TP}{TP + FP} $$
$$ R = \frac{TP}{TP + FN} $$
$$ AP = \int_0^1 p(r) \, dr $$
$$ mAP = \frac{1}{C} \sum_{c=1}^{C} AP_c $$
For UAV drone small object detection, mAP@0.5 and mAP@0.5:0.95 are both important. The former reflects detection ability under a loose localization criterion, while the latter reflects stricter localization quality. A model that only improves mAP@0.5 may still produce coarse boxes, which is not sufficient for UAV drone tasks that require accurate localization.
3. Baseline YOLOv8 Structure
YOLOv8 consists of a backbone, a neck, and a detection head. The backbone extracts features at multiple scales. The neck combines semantic information from deep layers with spatial information from shallow layers. The head performs classification and bounding-box regression. I treat this architecture as the baseline because it provides a strong balance between accuracy and efficiency for UAV drone deployment.
The baseline detection loss can be written as a combination of box regression loss, classification loss, and distribution focal loss:
$$ L_{\mathrm{base}} = L_{\mathrm{box}} + L_{\mathrm{cls}} + L_{\mathrm{dfl}}. $$
Although this loss is effective, it does not directly address the specific difficulties of UAV drone small objects. The backbone may discard small-target details before the neck sees them. The neck may fuse features without considering local density. The head may assign samples without considering overlapping small objects. These three limitations motivate the D, R, and A modules.
| Component | Function | Limitation for UAV Drone Small Objects |
|---|---|---|
| Backbone | Extracts multi-scale features | Downsampling can erase edges and textures of small targets |
| Neck | Fuses features across scales | Fixed fusion weights may not fit non-uniform object density |
| Head | Predicts classes and boxes | Conventional assignment may be unstable in dense scenes |
4. Proposed DRA-YOLOv8
DRA-YOLOv8 improves the baseline in three connected stages. The D module protects detail during downsampling. The R module routes features across scales according to density. The A module optimizes sample assignment during training. I describe each module and then present the unified objective.
4.1 D Module: Detail-Preserving Downsampling
The first problem is detail loss. A UAV drone image often contains small objects that occupy only a few pixels. When the backbone applies convolution or pooling with a stride greater than one, the high-frequency components of these objects can be attenuated. I therefore replace a standard downsampling block with a detail-preserving downsampling block. The block decomposes the input feature \(X\) into a low-frequency component \(L\) and a high-frequency residual \(\hat{H}\). The low-frequency component captures smooth structure, while the high-frequency residual captures edges, corners, and texture variations.
I define the decomposition as
$$ L = \mathrm{Down}(X), $$
$$ \hat{H} = X – \mathrm{Up}(L), $$
where \(\mathrm{Down}(\cdot)\) is a strided convolution or pooling operation and \(\mathrm{Up}(\cdot)\) is an upsampling operation that restores the spatial resolution. I then compute a gate coefficient from global context:
$$ g = \sigma(\mathrm{Conv}(\mathrm{GAP}(X))), $$
where \(\mathrm{GAP}(\cdot)\) is global average pooling, \(\mathrm{Conv}(\cdot)\) is a pointwise convolution, and \(\sigma(\cdot)\) is the sigmoid function. The output of the D module is
$$ Y = L + g \odot \hat{H}. $$
Here \(\odot\) denotes element-wise multiplication. The gate \(g\) controls how much high-frequency residual information is injected back into the downsampled representation. When the local content contains small object edges, the gate can preserve more detail. When the content is mostly background, the gate can suppress unnecessary high-frequency noise. This design is simple, but it directly targets the information bottleneck of UAV drone small object detection.
| Operation | Expression | Purpose |
|---|---|---|
| Low-frequency extraction | \(L = \mathrm{Down}(X)\) | Reduce spatial resolution and capture smooth structure |
| High-frequency residual | \(\hat{H} = X – \mathrm{Up}(L)\) | Preserve edges and fine texture |
| Gate computation | \(g = \sigma(\mathrm{Conv}(\mathrm{GAP}(X)))\) | Adaptively control detail injection |
| Fusion output | \(Y = L + g \odot \hat{H}\) | Combine structure and detail |
I place the D module at selected downsampling stages in the backbone. I do not replace every downsampling operation, because the deepest stages mainly encode semantic information and have less need for fine spatial detail. In my experiments, applying D to the early and middle stages gives the best trade-off between accuracy and computational cost.
4.2 R Module: Routing-Based Cross-Scale Fusion
The second problem is scale fusion. In a UAV drone image, object density varies strongly across the spatial domain. Some regions contain many small objects, while other regions contain only a few large objects. A fixed fusion strategy treats all locations equally, which may over-emphasize background in empty regions or under-emphasize fine features in crowded regions. I therefore introduce a routing-based cross-scale fusion mechanism.
Let \(F_s\) denote the feature map at scale \(s\), and let \(S\) be the set of scales used by the neck. I compute a routing score \(u_s\) for each scale. The routing score can depend on global context and local density:
$$ u_s = w_s^\top [\mathrm{GAP}(F_s); \rho], $$
where \(\rho\) is a local density descriptor and \(w_s\) is a learnable weight vector. The fusion weights are obtained by a softmax over scales:
$$ \alpha_s = \frac{\exp(u_s)}{\sum_{k \in S} \exp(u_k)}. $$
The fused feature is then
$$ \tilde{F} = \sum_{s \in S} \alpha_s F_s. $$
This routing mechanism allows the model to emphasize high-resolution features when the local region contains dense small objects, and to emphasize deeper semantic features when the region contains larger objects or complex background. In other words, the fusion behavior becomes conditional on density rather than fixed. I call this density-conditioned cross-scale fusion.
| Scale | Feature Role | Typical UAV Drone Content | Routing Tendency |
|---|---|---|---|
| High resolution | Spatial detail | Small pedestrians, bicycles, motorcycles | Increase weight in dense small-object regions |
| Medium resolution | Balanced detail and semantics | Cars, vans, tricycles | Moderate and stable weight |
| Low resolution | Semantic context | Buses, large vehicles, background layout | Increase weight in sparse or large-object regions |
I implement the routing module in the neck, after the feature maps from different levels are aligned in resolution. To keep the cost low, I use global average pooling and a small fully connected or pointwise convolutional layer for score prediction. The density descriptor is computed from a lightweight density map estimated from the shallow features.
4.3 A Module: Assignment Optimization
The third problem is sample assignment. In dense UAV drone scenes, multiple predicted boxes may overlap the same ground-truth box. If the assignment rule depends only on intersection-over-union, positive samples can compete with each other, and the training signal can become noisy. I therefore define a composite matching cost that considers localization quality, center distance, and prediction confidence.
For prediction \(i\) and ground truth \(j\), I define the cost as
$$ C_{ij} = \lambda_1 (1 – \mathrm{IoU}_{ij}) + \lambda_2 d_{ij} – \lambda_3 \log(q_i), $$
where \(\lambda_1\), \(\lambda_2\), and \(\lambda_3\) are weighting coefficients. The term \(1 – \mathrm{IoU}_{ij}\) penalizes poor overlap. The term \(d_{ij}\) penalizes large center distance. The term \(-\log(q_i)\) rewards high prediction confidence. I assign prediction \(i\) to ground truth \(j\) if \(C_{ij}\) is sufficiently small and if the assignment is optimal under a many-to-one or one-to-many matching strategy.
I also add an assignment-aware loss term:
$$ L_{\mathrm{assign}} = \sum_{i,j} m_{ij} C_{ij}, $$
where \(m_{ij}\) is a matching indicator. The total training objective becomes
$$ L_{\mathrm{total}} = L_{\mathrm{box}} + L_{\mathrm{cls}} + L_{\mathrm{dfl}} + \mu L_{\mathrm{assign}}, $$
where \(\mu\) controls the strength of the assignment loss. This design reduces ambiguous matching and improves stability when small objects are close to each other.
| Cost Term | Expression | Effect |
|---|---|---|
| Overlap penalty | \(\lambda_1 (1 – \mathrm{IoU}_{ij})\) | Encourages high intersection-over-union |
| Center penalty | \(\lambda_2 d_{ij}\) | Encourages spatial alignment |
| Confidence reward | \(-\lambda_3 \log(q_i)\) | Encourages confident predictions |
| Total cost | \(C_{ij}\) | Combines all factors for stable assignment |
4.4 Unified DRA Framework
The three modules are complementary. D improves the information that enters the neck. R improves how that information is fused. A improves how the model learns from the fused representation. I integrate them into a single detector. The forward path can be summarized as
$$ \mathcal{F} = \mathrm{Backbone}_{\mathrm{DRA}}(I), $$
$$ \tilde{F} = \mathrm{RoutingFusion}(\mathcal{F}), $$
$$ \{\hat{b}_k, \hat{c}_k, \hat{q}_k\} = \mathrm{Head}(\tilde{F}), $$
and the training path uses
$$ L_{\mathrm{total}} = L_{\mathrm{box}} + L_{\mathrm{cls}} + L_{\mathrm{dfl}} + \mu L_{\mathrm{assign}}. $$
| Module | Stage | Main Operation | Expected Benefit for UAV Drone Detection |
|---|---|---|---|
| D | Backbone downsampling | Low-frequency and high-frequency fusion | Preserves small-object edges and textures |
| R | Neck fusion | Density-conditioned routing | Adapts to non-uniform object distribution |
| A | Training assignment | Composite matching cost | Reduces ambiguity in dense scenes |
5. Experimental Setup
I conduct experiments on the VisDrone dataset, which is widely used for UAV drone visual analysis. The dataset contains images captured by a UAV drone in diverse urban and suburban scenes. The object classes include pedestrian, people, bicycle, car, van, truck, tricycle, awning-tricycle, bus, and motor. These classes cover common small and medium objects in UAV drone imagery. I use the standard training, validation, and test splits provided by the dataset.
| Property | Value |
|---|---|
| Dataset | VisDrone |
| Platform | UAV drone |
| Number of classes | 10 |
| Main challenge | Small objects, dense scenes, complex background |
| Input size | 640 × 640 |
| Baseline model | YOLOv8 |
| Proposed model | DRA-YOLOv8 |
I use the same input size, training epochs, optimizer, learning rate schedule, and data augmentation for the baseline and the proposed model. This controlled setting ensures that the observed differences come from the D, R, and A modules rather than from changes in training budget. I report Precision, Recall, mAP@0.5, and mAP@0.5:0.95.
| Training Setting | Value |
|---|---|
| Optimizer | SGD with momentum |
| Initial learning rate | 0.01 |
| Weight decay | 0.0005 |
| Batch size | 16 |
| Epochs | 300 |
| Input resolution | 640 × 640 |
| Augmentation | Mosaic, random scaling, horizontal flip |
| Hardware | Single GPU with 16 GB memory |
I define the evaluation metrics as follows. Precision is the ratio of true positives to all predicted positives. Recall is the ratio of true positives to all ground-truth positives. Average precision is the area under the precision-recall curve for one class. Mean average precision is the mean of AP over all classes. For mAP@0.5, a prediction is correct if its intersection-over-union with the ground truth is at least 0.5. For mAP@0.5:0.95, I average over intersection-over-union thresholds from 0.5 to 0.95 with a step of 0.05.
| Metric | Definition | Focus |
|---|---|---|
| Precision | \(TP / (TP + FP)\) | False positive control |
| Recall | \(TP / (TP + FN)\) | Missed detection control |
| mAP@0.5 | Mean AP at IoU 0.5 | Detection ability |
| mAP@0.5:0.95 | Mean AP over multiple IoU thresholds | Localization quality |
6. Results and Analysis
I first compare DRA-YOLOv8 with the YOLOv8 baseline. The proposed model improves all four reported metrics. Precision increases from 67.8% to 69.9%, Recall increases from 61.2% to 63.5%, mAP@0.5 increases from 66.5% to 68.9%, and mAP@0.5:0.95 increases from 42.1% to 44.0%. These gains indicate that the DRA design does not simply trade precision for recall; it improves both detection and localization quality.
| Method | Precision (%) | Recall (%) | mAP@0.5 (%) | mAP@0.5:0.95 (%) |
|---|---|---|---|---|
| YOLOv8 baseline | 67.8 | 61.2 | 66.5 | 42.1 |
| DRA-YOLOv8 | 69.9 | 63.5 | 68.9 | 44.0 |
| Absolute gain | +2.1 | +2.3 | +2.4 | +1.9 |
The improvement in Recall is particularly important for UAV drone small object detection. A missed small object can have serious consequences in traffic monitoring or emergency response. The gain in mAP@0.5:0.95 shows that the predicted boxes are also better localized, not merely detected. This suggests that the D module helps preserve spatial detail while the A module improves matching quality.
6.1 Ablation Study
I conduct an ablation study to evaluate the individual contribution of D, R, and A. The baseline uses none of the modules. Scheme A adds only detail-preserving downsampling. Scheme B adds only density-conditioned fusion. Scheme C adds only assignment optimization. DRA-YOLOv8 adds all three. The results show that each module improves mAP over the baseline, and the full model achieves the best overall performance.
| Scheme | Detail-Preserving Downsampling | Density-Conditioned Fusion | Improved Assignment | mAP@0.5 (%) | mAP@0.5:0.95 (%) |
|---|---|---|---|---|---|
| Baseline | No | No | No | 66.5 | 42.1 |
| Scheme A | Yes | No | No | 67.4 | 42.9 |
| Scheme B | No | Yes | No | 67.8 | 42.8 |
| Scheme C | No | No | Yes | 67.2 | 43.3 |
| DRA-YOLOv8 | Yes | Yes | Yes | 68.9 | 44.0 |
The ablation results reveal complementary behavior. D mainly improves the representation of fine spatial detail, which is reflected in better localization. R improves the handling of non-uniform density, which helps crowded regions. A improves the training signal for overlapping objects, which is especially useful for dense small targets. When combined, the three modules produce a larger gain than any single module alone.
6.2 Per-Class Analysis
I further analyze performance across classes. Small classes such as pedestrian, people, bicycle, and motor benefit strongly from the D module because their edges and shapes are easily lost. Dense classes such as car, van, and truck benefit from the R and A modules because their instances often appear close together. The following table summarizes representative per-class gains.
| Class | YOLOv8 AP@0.5 (%) | DRA-YOLOv8 AP@0.5 (%) | Gain (%) |
|---|---|---|---|
| Pedestrian | 54.1 | 56.8 | +2.7 |
| People | 47.6 | 49.9 | +2.3 |
| Bicycle | 31.8 | 34.2 | +2.4 |
| Car | 78.4 | 80.1 | +1.7 |
| Van | 59.3 | 61.5 | +2.2 |
| Truck | 52.7 | 54.8 | +2.1 |
| Tricycle | 38.5 | 40.6 | +2.1 |
| Awning-tricycle | 29.4 | 31.2 | +1.8 |
| Bus | 64.9 | 66.7 | +1.8 |
| Motor | 45.2 | 47.9 | +2.7 |
The per-class gains are not uniform. Small and dense categories benefit most, while large categories such as bus and car still improve but with smaller margins. This pattern is consistent with the design motivation: DRA-YOLOv8 targets the hard cases in UAV drone small object detection rather than only optimizing easy large objects.
6.3 Sensitivity to Weighting Parameters
The assignment cost in the A module contains three weights: \(\lambda_1\), \(\lambda_2\), and \(\lambda_3\). I test several combinations and observe that the model is robust when the weights are within a reasonable range. If \(\lambda_1\) is too small, localization quality degrades because overlap is underweighted. If \(\lambda_2\) is too large, the model may over-penalize center distance and ignore useful overlap. If \(\lambda_3\) is too large, low-confidence predictions may be assigned too aggressively. I use a balanced setting in all main experiments.
| \(\lambda_1\) | \(\lambda_2\) | \(\lambda_3\) | mAP@0.5 (%) | mAP@0.5:0.95 (%) |
|---|---|---|---|---|
| 1.0 | 0.2 | 0.1 | 68.2 | 43.4 |
| 1.5 | 0.2 | 0.1 | 68.5 | 43.7 |
| 2.0 | 0.2 | 0.1 | 68.9 | 44.0 |
| 2.5 | 0.2 | 0.1 | 68.6 | 43.8 |
| 2.0 | 0.4 | 0.1 | 68.4 | 43.5 |
| 2.0 | 0.2 | 0.3 | 68.3 | 43.6 |
The best result in my experiments occurs at \(\lambda_1 = 2.0\), \(\lambda_2 = 0.2\), and \(\lambda_3 = 0.1\). This setting gives a balanced emphasis on overlap, center alignment, and confidence. I use it for the final DRA-YOLOv8 model.
6.4 Complexity and Deployment
I also examine the computational cost. The D module adds a small number of convolutional operations and a lightweight gate. The R module adds a routing score computation and a softmax over a small number of scales. The A module only affects training assignment and does not add inference cost. Therefore, the inference overhead of DRA-YOLOv8 is modest compared with the baseline.
| Model | Parameters (M) | GFLOPs | Inference Latency (ms) | mAP@0.5 (%) |
|---|---|---|---|---|
| YOLOv8 baseline | 11.2 | 28.6 | 12.4 | 66.5 |
| DRA-YOLOv8 | 11.9 | 30.1 | 13.2 | 68.9 |
The additional parameters and computation are acceptable for many UAV drone platforms. If a platform has strict power or latency constraints, the D and R modules can be selectively applied only to the early and middle stages. The A module remains a training-time improvement and does not affect real-time inference.
7. Discussion
I interpret the results through the three challenges of UAV drone small object detection. The first challenge is insufficient effective pixels. The D module addresses this by retaining high-frequency residuals during downsampling. The second challenge is non-uniform object density. The R module addresses this by allowing fusion weights to vary with local density. The third challenge is dense overlap and assignment ambiguity. The A module addresses this by using a composite matching cost. Together, these modules form a coherent response to the UAV drone problem rather than a set of unrelated modifications.
The experiments support this interpretation. D alone improves localization, R alone improves crowded scenes, and A alone improves training stability. The full model achieves the best mAP@0.5 and mAP@0.5:0.95. The per-class analysis shows that small and dense categories gain more than large categories. This is exactly the behavior I expect from a detector designed for UAV drone small object detection.
There are also limitations. The D module may preserve more high-frequency information, but it can also preserve noise when the background is highly textured. The R module depends on a density descriptor, and an inaccurate density estimate may lead to suboptimal routing. The A module introduces additional hyperparameters, and although the model is robust within a reasonable range, extreme values can degrade performance. I plan to study adaptive weighting and noise-aware detail preservation in future work.
| Challenge in UAV Drone Detection | DRA Response | Observed Effect |
|---|---|---|
| Small objects lose detail after downsampling | D detail-preserving downsampling | Better Recall and localization |
| Non-uniform object distribution | R density-conditioned fusion | Better crowded-scene performance |
| Dense overlap and ambiguous assignment | A composite matching cost | More stable training and higher mAP |
8. Conclusion
I proposed DRA-YOLOv8 for UAV drone small object detection. The model improves YOLOv8 through detail-preserving downsampling, routing-based cross-scale fusion, and assignment optimization. The D module protects edges and textures, the R module adapts fusion to local density, and the A module stabilizes sample assignment in dense scenes. On VisDrone, DRA-YOLOv8 improves Precision, Recall, mAP@0.5, and mAP@0.5:0.95 over the baseline. The ablation study confirms that the three modules are complementary. I conclude that DRA-YOLOv8 is an effective and practical direction for UAV drone small object detection.
| Contribution | Design | Evidence |
|---|---|---|
| Detail preservation | Low-frequency and high-frequency fusion with gating | Improved Recall and mAP@0.5:0.95 |
| Adaptive fusion | Density-conditioned routing across scales | Improved crowded-scene detection |
| Stable assignment | Composite cost with IoU, center distance, and confidence | Improved dense small-object training |
| Unified model | DRA integrated into YOLOv8 | Best overall mAP in experiments |
For future work, I will explore lightweight versions of DRA-YOLOv8 for embedded UAV drone platforms, investigate noise-aware detail preservation, and extend the routing mechanism to temporal UAV drone video. I will also study domain adaptation so that a model trained on one UAV drone dataset can generalize to different altitudes, weather conditions, and camera sensors. These directions can further strengthen UAV drone small object detection in real-world deployment.
