I present UAV-Net, a detection model designed for accurate small UAV drone detection in complex environments. The rapid growth of low-altitude operations has made UAV drones common in inspection, mapping, delivery, agriculture, emergency response, and defense-related monitoring. At the same time, the misuse of UAV drones has created serious safety and security problems. Small UAV drones may enter restricted airspace, conduct unauthorized surveillance, carry prohibited payloads, or threaten airports, power facilities, and other critical infrastructure. For this reason, reliable detection of UAV drones has become an important requirement for modern monitoring systems. However, small UAV drones are difficult to detect because they occupy few pixels, appear under diverse flight attitudes, often suffer from motion blur, and are frequently embedded in cluttered sky, cloud, building, and vegetation backgrounds. I therefore propose UAV-Net as a high-precision and lightweight detector for small UAV drones, built on a single-stage architecture and improved through four coordinated mechanisms: an edge-aware convolution module, a multi-scale feature focusing network, a dynamic task decomposition and alignment detection head, and a generalized intersection-over-union regression loss.

The motivation for UAV-Net comes from the observation that general-purpose small-object detectors do not transfer ideally to UAV drones. General detectors are usually optimized for objects with moderate scale, relatively stable appearance, and clear texture. Small UAV drones violate these assumptions. Their visible structure often consists mainly of body, arms, rotors, and a thin contour against a high-brightness sky or a highly textured background. Consecutive downsampling can weaken edge information before the deeper layers have enough semantic capacity to identify the target. Multi-scale fusion may also lose fine spatial details when features must travel through many adjacent layers. Detection heads that treat classification and localization as independent branches can suffer from spatial misalignment. Finally, the bounding-box regression loss may impose aspect-ratio constraints that are not stable for UAV drones because their apparent shape changes with pitch, roll, yaw, and viewing angle. I designed UAV-Net to address these coupled issues rather than to improve a single stage in isolation.
My contributions can be summarized as follows. First, I designed an edge-aware convolution module, denoted EAC, that combines a Sobel-based gradient branch with a standard convolution branch and fuses them through channel concatenation and residual mapping. Second, I reconstructed the neck of the baseline detector and proposed a multi-scale feature focusing network, denoted MFF, which uses a central intermediate scale as an interaction hub and performs multi-scale focusing, bidirectional diffusion, and a second focusing stage. Third, I designed a dynamic task decomposition and alignment detection head, denoted DTDA, which shares feature extraction, dynamically decomposes features for classification and regression, applies deformable sampling to the regression branch, and applies spatial attention to the classification branch. Fourth, I replaced the original regression loss with GIoU to reduce unstable gradients caused by aspect-ratio penalties on small and pose-varying UAV drones. I evaluated the resulting model on the DUT Anti-UAV dataset, Det-Fly dataset, and VisDrone2019 dataset. The results indicate that UAV-Net improves precision, recall, mAP50, and mAP50-95 while preserving a lightweight parameter size and real-time inference speed suitable for edge deployment.
Problem Context and Design Principles
Detection of UAV drones differs from generic object detection in several important ways. A small UAV drone can appear as a compact dark or bright spot, a thin cross shape, a blurred streak, or a partially occluded object. Motion blur is common because both the UAV drone and the camera platform may move. In air-to-air detection, the target UAV drone may be viewed from above, below, or near the horizon, producing extreme changes in apparent shape. In ground-to-air detection, the UAV drone may be tiny and may contrast poorly with clouds or buildings. These conditions mean that a detector for UAV drones should preserve boundary cues, integrate multi-scale information efficiently, align classification and localization spatially, and avoid over-constraining the bounding-box geometry.
I organize the design principles of UAV-Net around four requirements. The first requirement is edge sensitivity. Small UAV drones are often recognized by contour and geometric structure rather than by internal texture. The second requirement is multi-scale continuity. The target scale may vary from a few pixels to a large fraction of the image, and weak details must not vanish before fusion. The third requirement is task alignment. Classification benefits from discriminative foreground evidence, while localization benefits from boundary and shape evidence. The fourth requirement is regression stability. The loss should remain stable when the apparent aspect ratio of a UAV drone changes rapidly across frames or viewpoints.
| Challenge for UAV Drones | Failure Mode in Generic Detectors | UAV-Net Response |
|---|---|---|
| Very small pixel footprint | Weak feature response after downsampling | EAC and MFF preserve edge and spatial detail |
| Motion blur and low contrast | Blurred boundaries and missed detections | Edge-aware convolution strengthens contour cues |
| Large scale variation | Insufficient cross-layer interaction | MFF uses multi-scale focusing and bidirectional paths |
| Pose and aspect-ratio variation | Unstable bounding-box regression | GIoU removes aspect-ratio penalties |
| Task conflict | Classification and localization misalignment | DTDA decomposes and aligns task-specific features |
| Complex backgrounds | False positives on buildings, clouds, or birds | Spatial attention in DTDA suppresses irrelevant regions |
These principles guided every design decision. I did not treat the backbone, neck, head, and loss as independent modules. Instead, I selected them so that they reinforce one another. EAC provides clearer edge representations at multiple stages. MFF transports those representations across scales with shorter paths. DTDA consumes the richer multi-scale features and separates task-specific evidence. GIoU then aligns the regression objective with the geometric variability of UAV drones. This coordinated design is the central reason for the performance gain observed in my experiments.
UAV-Net Architecture
UAV-Net is built on a lightweight single-stage baseline. I selected the smallest version of a recent YOLO-family model because it offers a favorable balance between speed, parameter count, and accuracy. The overall network retains the familiar backbone-neck-head structure, but each part is modified. The backbone uses EAC modules to enhance edge and spatial representation. The neck is replaced by MFF to improve cross-scale interaction. The head is replaced by DTDA to decouple and align classification and regression. The regression loss is changed to GIoU. The input resolution is set to 640×640 during training and evaluation, which is a practical choice for edge devices and still preserves enough detail for small UAV drones.
Edge-Aware Convolution Module
The EAC module addresses the weakness of standard convolution in capturing explicit edge gradients. A standard convolution can learn edge-like filters, but for small UAV drones the edge response is often weak and may be suppressed by background texture. I therefore add a Sobel-based branch that explicitly computes horizontal and vertical gradients and combines them into an edge feature. The original convolution branch remains to capture texture, corners, and spatial structure. The two branches are concatenated along the channel dimension, compressed by a 1×1 convolution, added to the input through a residual path, and mapped by another 1×1 convolution. This design requires no extra edge labels and can be trained end-to-end within the detector.
The EAC computation can be expressed as follows. Given an input feature map \(X\), the edge branch computes:
$$ F_{\text{edge}} = \operatorname{Sobel}_x(X) + \operatorname{Sobel}_y(X) $$
The spatial branch computes:
$$ F_{\text{conv}} = \operatorname{Conv}_{3\times3}(X) $$
The two are fused and residually connected:
$$ F_{\text{EAC}} = \operatorname{Conv}_{1\times1}\left( \operatorname{Concat}(F_{\text{edge}}, F_{\text{conv}}) \right) + X $$
I place EAC in different backbone stages so that edge information is reinforced at multiple resolutions. This matters because a small UAV drone may be visible mainly through a thin arm or rotor edge. If that edge is lost early, later layers cannot recover it. The residual connection also helps prevent background edges from overwhelming the target semantics. In my ablation study, replacing the original block with EAC improved mAP50 from 89.0% to 90.0% and mAP50-95 from 58.7% to 59.8% with nearly unchanged computational cost. The improvement is modest but consistent, and it becomes more significant when combined with MFF and DTDA.
| Block Module | Precision | Recall | mAP50 | mAP50-95 | GFLOPs | Params (M) |
|---|---|---|---|---|---|---|
| EAC | 0.942 | 0.830 | 0.900 | 0.598 | 6.4 | 2.57 |
| RepC3 | 0.946 | 0.825 | 0.898 | 0.598 | 6.9 | 2.98 |
| C3 | 0.925 | 0.840 | 0.897 | 0.592 | 5.5 | 2.42 |
| C2f | 0.934 | 0.816 | 0.893 | 0.591 | 6.1 | 2.63 |
| C3k2 | 0.933 | 0.818 | 0.890 | 0.587 | 6.3 | 2.58 |
| A2C2f | 0.919 | 0.796 | 0.879 | 0.571 | 6.4 | 2.97 |
The table shows that EAC achieves the highest mAP50 among the compared block modules while maintaining a low parameter count. RepC3 has slightly higher precision but uses more parameters and computation. C3 and C2f have lower mAP50. This supports my design choice: explicit edge modeling is beneficial for UAV drones, especially when the detector must remain lightweight.
Multi-Scale Feature Focusing Network
The MFF network is my reconstruction of the neck. Standard feature pyramid and path aggregation structures pass information between adjacent levels. Although effective, they require repeated convolution and resizing for non-adjacent levels. For small UAV drones, this can erode fine details. MFF instead treats the middle scale \(P_4\) as the interaction center. Features from \(P_3\), \(P_4\), and \(P_5\) are first aligned to the \(P_4\) resolution and fused. The fused representation is then distributed upward and downward to \(P_3\) and \(P_5\) through symmetric paths. Finally, a second focusing stage aggregates the enhanced features and redistributes them to the output levels.
The first focusing operation can be written as:
$$ F_{\text{fuse1}} = \operatorname{Concat}\left( \operatorname{ADown}(P_3), \operatorname{Conv}_{1\times1}(P_4), \operatorname{Upsample}(P_5) \right) $$
Here, ADown performs downsampling for the high-resolution feature, a 1×1 convolution adjusts the middle-scale channels, and nearest-neighbor upsampling increases the resolution of the deep feature. The resulting fused feature contains spatial detail from \(P_3\), balanced representation from \(P_4\), and semantic information from \(P_5\). I then apply parallel depthwise convolutions with different kernel sizes and a pointwise convolution:
$$ F_{\text{fuse2}} = \sum_{k \in \{5,7,9,12\}} \operatorname{PWConv}\left( \operatorname{DWConv}_k(F_{\text{fuse1}}) + F_{\text{fuse1}} \right) $$
The final output is obtained by residual addition:
$$ F_{\text{out}} = F_{\text{fuse1}} + F_{\text{fuse2}} $$
This design has three advantages for UAV drones. First, it shortens the information path between non-adjacent scales. Second, it uses multiple receptive fields to capture both local edges and broader context. Third, it preserves the original fused feature through residual connections, reducing information loss. In the ablation study, adding MFF increased recall from 81.8% to 85.5% and mAP50 from 89.0% to 90.8%. The computational cost increased from 6.3 to 7.6 GFLOPs, and inference speed decreased, but the model remained fast enough for real-time use. The precision decreased slightly because stronger recall can introduce background candidates, which is a common trade-off in detection.
| Feature Path | Role for UAV Drones | Operation |
|---|---|---|
| High-resolution path \(P_3\) | Preserves small target edges and location | ADown followed by fusion |
| Middle-scale path \(P_4\) | Balances detail and semantics | 1×1 convolution |
| Deep path \(P_5\) | Provides context and semantic discrimination | Upsampling and 1×1 convolution |
| Multi-receptive branch | Captures local contour and broader scene | Depthwise convolutions with kernels 5, 7, 9, 12 |
| Residual output | Retains fused information | Element-wise addition |
Dynamic Task Decomposition and Alignment Head
The DTDA head is designed to reduce the conflict between classification and localization for UAV drones. Classification benefits from features that highlight discriminative target regions, whereas localization benefits from features that capture boundaries, corners, and shape. If both tasks share exactly the same feature representation, one task may dominate or the two tasks may attend to different spatial locations. DTDA first applies shared convolutions to extract a common feature, then dynamically decomposes it into classification and regression features, and finally aligns each branch according to its task.
Given the neck output \(X_i\) at level \(i\), two shared convolution layers \(H_1\) and \(H_2\) produce a shared feature:
$$ F_i = \operatorname{Conv}_{1\times1}\left( \operatorname{Concat}(H_1(X_i), H_2(X_i)) \right) $$
A global average pooling operation \(P(\cdot)\) provides a global description. The task decomposition modules \(T_{\text{cls}}\) and \(T_{\text{reg}}\) use this description to generate task-specific features:
$$ F_i^{\text{cls}} = T_{\text{cls}}(F_i, P(F_i)) $$
$$ F_i^{\text{reg}} = T_{\text{reg}}(F_i, P(F_i)) $$
In the regression branch, I use dynamic deformable convolution to adapt the sampling grid to the irregular shape of UAV drones. An offset prediction convolution \(\Theta(\cdot)\) generates sampling offsets \(\Delta p_i\) and modulation masks \(m_i\):
$$ \Delta p_i, m_i = \Theta(F_i) $$
$$ F_i^{\mu\text{reg}} = \operatorname{DyDCNv2}(F_i^{\text{reg}}, \Delta p_i, m_i) $$
This allows the regression branch to focus on the UAV drone body, arms, and rotors rather than a fixed grid. In the classification branch, I generate a spatial attention map:
$$ G_i = \sigma\left( \operatorname{Conv}_{3\times3}\left( \operatorname{ReLU}\left( \operatorname{Conv}_{1\times1}(F_i) \right) \right) \right) $$
The classification feature is then recalibrated:
$$ F_i^{\mu\text{cls}} = F_i^{\text{cls}} \odot G_i $$
where \(\sigma\) is the sigmoid function and \(\odot\) denotes element-wise multiplication. The spatial attention map enhances foreground regions and suppresses sky, clouds, buildings, and vegetation. This is particularly useful for small UAV drones whose contrast with the background may be low. In the ablation study, DTDA achieved the highest precision among the single-module tests, reaching 95.5%, and improved mAP50-95 to 60.5%. The combination of task decomposition, deformable regression, and spatial attention therefore improves both false-positive suppression and localization quality.
| DTDA Component | Function | Benefit for UAV Drones |
|---|---|---|
| Shared convolution | Extracts common features | Reduces redundant computation |
| Task decomposition | Generates classification and regression features | Reduces task interference |
| DyDCNv2 regression | Adapts sampling to irregular shapes | Better localization under pose variation |
| Spatial attention | Recalibrates classification features | Suppresses complex background false positives |
| Scale-specific scaling | Adapts to level-dependent target size | Improves multi-scale detection |
GIoU Regression Loss
The baseline loss includes aspect-ratio penalties that can be unstable for UAV drones. Because a UAV drone changes its apparent width-to-height ratio as it pitches, rolls, and yaws, penalizing aspect ratio may force the model to fit a moving target. This can produce oscillatory gradients and slow convergence. For small targets, angular functions can also amplify tiny pixel errors. I therefore use GIoU, which depends on spatial coverage rather than aspect ratio.
The IoU is defined as:
$$ \text{IoU} = \frac{|A \cap B|}{|A \cup B|} $$
GIoU extends IoU by considering the smallest enclosing box \(C\):
$$ \text{GIoU} = \text{IoU} – \frac{|C \setminus (A \cup B)|}{|C|} $$
The loss is:
$$ L_{\text{GIoU}} = 1 – \text{GIoU} $$
This loss removes the explicit aspect-ratio constraint, reduces redundant penalties for symmetric UAV drone shapes, and normalizes errors through the enclosing region. In my loss comparison, GIoU achieved the best mAP50 and mAP50-95 among the tested losses, with mAP50 rising from 91.5% to 92.1% and mAP50-95 from 61.8% to 62.3% relative to the CIoU version when all other modules were present. It also attained a recall of 85.7%, which indicates that more UAV drones were successfully detected.
| Loss Function | Precision | Recall | mAP50 | mAP50-95 |
|---|---|---|---|---|
| CIoU | 0.950 | 0.849 | 0.915 | 0.618 |
| GIoU | 0.948 | 0.857 | 0.921 | 0.623 |
| Inner-DIoU | 0.959 | 0.840 | 0.913 | 0.611 |
| Inner-ShapeIoU | 0.946 | 0.846 | 0.915 | 0.611 |
| Focaler-EIoU | 0.936 | 0.842 | 0.906 | 0.606 |
| Focaler-MPDIoU | 0.942 | 0.845 | 0.904 | 0.603 |
| Wise-WIoU | 0.950 | 0.857 | 0.919 | 0.612 |
| Wise-Inner-SIoU | 0.949 | 0.842 | 0.920 | 0.614 |
Experimental Setup
I conducted all experiments under the same hardware and software conditions to ensure fair comparison. The operating system was Windows 11. The processor was an i9-14900HX with 32 GB memory. The GPU was an NVIDIA GeForce RTX 4060 Laptop GPU with 8 GB memory. The programming language was Python 3.10.16, the deep learning framework was PyTorch 2.1.0, and the CUDA version was 11.8. I used the same training hyperparameters for the baseline and all improved models unless a model required a specific setting. No pretrained weights were used in the ablation and comparison experiments, so the comparison reflects architecture and training from scratch. Input images were resized to 640×640. The training schedule and augmentation followed the official baseline configuration.
| Parameter | Value |
|---|---|
| Optimizer | SGD |
| Batch size | 16 |
| Epochs | 200 |
| Image size | 640×640 |
| Learning rate | 0.01 |
| AMP | True |
| Workers | 2 |
| NMS IoU | 0.7 |
| Momentum | 0.937 |
| Weight decay | 5×10⁻⁴ |
| Pretrained | False |
| Patience | 100 |
| Mosaic | 1.0 |
| Close mosaic | 0 |
I used three public datasets. The first was the DUT Anti-UAV detection subset, which contains 10,000 annotated images, including 5,200 training images, 2,200 test images, and 2,600 validation images, with 10,109 UAV drone instances. The images span a wide range of resolutions and contain more than 35 types of UAV drones under different lighting, weather, and background conditions. The average target area ratio is 0.013, and the smallest targets are extremely small. This dataset is suitable for evaluating detection of UAV drones in complex scenes. The second dataset was Det-Fly, which contains more than 13,000 images captured from an air-to-air viewpoint. It covers diverse UAV drone attitudes, including climb, dive, and below-horizon views. The third dataset was VisDrone2019, which contains many small objects across ten categories, including pedestrians, cars, trucks, and buses. I used it to test whether UAV-Net generalizes to small-object detection beyond UAV drones.
I used precision, recall, F1, mAP50, and mAP50-95 as accuracy metrics. I also report GFLOPs, parameter count, and FPS to evaluate efficiency. Precision and recall are defined as:
$$ \text{Precision} = \frac{TP}{TP + FP} $$
$$ \text{Recall} = \frac{TP}{TP + FN} $$
The F1 score is:
$$ F1 = \frac{2 \cdot \text{Precision} \cdot \text{Recall}}{\text{Precision} + \text{Recall}} $$
Average precision is computed as the area under the precision-recall curve:
$$ AP = \int_0^1 P(R)\,dR $$
Mean average precision is the average over classes:
$$ mAP = \frac{1}{N} \sum_{i=1}^{N} AP_i $$
For a single-class UAV drone detection task, the class average is taken over the UAV drone category. mAP50 uses an IoU threshold of 0.50, and mAP50-95 averages over thresholds from 0.50 to 0.95 in steps of 0.05. These metrics provide a comprehensive view of detection quality.
Results and Analysis
I evaluated UAV-Net through block comparison, loss comparison, ablation, full comparison, and cross-dataset generalization. The results consistently show that the coordinated design improves detection of UAV drones while maintaining a small model size and practical inference speed.
Ablation Study
The ablation study used the DUT Anti-UAV dataset. I started from the baseline detector and added EAC, MFF, DTDA, and GIoU in sequence. Each single module improved at least one key metric, and the full combination produced the best overall results. The baseline achieved 93.3% precision, 81.8% recall, 89.0% mAP50, and 58.7% mAP50-95. The full UAV-Net achieved 94.8% precision, 85.7% recall, 92.1% mAP50, and 62.3% mAP50-95. This corresponds to improvements of 1.5, 3.9, 3.1, and 3.6 percentage points, respectively.
| Model | Precision | Recall | mAP50 | mAP50-95 | GFLOPs | Params (M) | FPS |
|---|---|---|---|---|---|---|---|
| Baseline | 0.933 | 0.818 | 0.890 | 0.587 | 6.3 | 2.58 | 428 |
| +EAC | 0.942 | 0.830 | 0.900 | 0.598 | 6.4 | 2.57 | 433 |
| +MFF | 0.932 | 0.855 | 0.908 | 0.595 | 7.6 | 2.73 | 351 |
| +DTDA | 0.955 | 0.842 | 0.905 | 0.605 | 7.3 | 2.61 | 294 |
| +GIoU | 0.936 | 0.842 | 0.900 | 0.596 | 6.3 | 2.58 | 426 |
| +EAC+MFF | 0.943 | 0.843 | 0.902 | 0.603 | 7.6 | 2.72 | 320 |
| +EAC+MFF+DTDA | 0.950 | 0.849 | 0.915 | 0.618 | 7.7 | 2.60 | 265 |
| Full UAV-Net | 0.948 | 0.857 | 0.921 | 0.623 | 7.7 | 2.60 | 261 |
The single-module results reveal complementary effects. EAC improves all four accuracy metrics with almost no additional cost because it strengthens edge representation. MFF produces the largest recall gain, from 81.8% to 85.5%, and raises mAP50 to 90.8%. This happens because MFF injects shallow detail into deeper features and reduces the loss of small-target information. DTDA produces the highest precision, reaching 95.5%, and raises mAP50-95 to 60.5%. Its classification attention suppresses background false positives, while its deformable regression improves bounding-box tightness. GIoU alone improves recall from 81.8% to 84.2% with no change in parameters or GFLOPs, because it removes unstable aspect-ratio penalties and allows more predictions to exceed the IoU threshold.
When EAC and MFF are combined, recall reaches 84.3% and mAP50-95 reaches 60.3%. The edge cues produced by EAC are carried across scales by MFF, so the two modules reinforce each other. Adding DTDA further improves the model to 95.0% precision, 84.9% recall, 91.5% mAP50, and 61.8% mAP50-95. The detection head benefits from the richer multi-scale features from MFF, while its spatial attention filters the background noise that MFF may introduce. The final addition of GIoU raises recall to 85.7% and pushes mAP50 and mAP50-95 to 92.1% and 62.3%. The regression objective now matches the dynamic shape of UAV drones and the deformable regression branch of DTDA.
The ablation study therefore supports my main hypothesis: for small UAV drones, improvements in edge representation, cross-scale fusion, task alignment, and regression stability are not interchangeable. They address different bottlenecks, and their combination produces a larger gain than any single module.
Comparison with Other Detectors
I compared UAV-Net with representative two-stage, single-stage, lightweight, and small-object detection models. All models were trained and tested under the same dataset split and platform when implementations were available. Input size, batch size, and training epochs were kept the same. The comparison includes a two-stage R-CNN style detector, several lightweight YOLO versions, a larger YOLO variant, a transformer-based real-time detector, and several methods designed for small-object or UAV drone detection. The results show that UAV-Net achieves a strong balance between accuracy and efficiency.
| Model | mAP50 | mAP50-95 | GFLOPs | Params (M) | FPS |
|---|---|---|---|---|---|
| Faster-RCNN | 0.889 | 0.598 | 444.6 | 59.23 | 46 |
| YOLOv5n | 0.881 | 0.581 | 5.8 | 2.18 | 517 |
| YOLOv6n | 0.896 | 0.592 | 11.5 | 4.16 | 512 |
| YOLOv8n | 0.893 | 0.592 | 6.8 | 2.68 | 513 |
| YOLOv9t | 0.886 | 0.584 | 6.4 | 1.73 | 422 |
| YOLOv10n | 0.907 | 0.611 | 6.5 | 2.27 | 605 |
| YOLO11n | 0.890 | 0.587 | 6.3 | 2.58 | 428 |
| YOLO11s | 0.920 | 0.628 | 21.3 | 9.41 | 260 |
| YOLO12n | 0.880 | 0.583 | 5.8 | 2.51 | 269 |
| YOLOv13n | 0.877 | 0.575 | 6.2 | 2.45 | 318 |
| YOLO26n | 0.914 | 0.619 | 5.2 | 2.38 | 516 |
| HSP-YOLOv8 | 0.730 | 0.497 | – | 5.98 | – |
| F-YOLOv7 | 0.917 | 0.622 | 38.0 | 169 | 5.72 |
| DCR-YOLO | 0.888 | 0.586 | 6.1 | 2.43 | 457 |
| RT-DETR (ResNet50) | 0.903 | 0.520 | 125.6 | 41.94 | 136 |
| Hyper-YOLO | 0.907 | 0.606 | 9.5 | 3.62 | 316 |
| UAV-Net | 0.921 | 0.623 | 7.7 | 2.60 | 261 |
The comparison highlights several important points. Lightweight models such as YOLOv5n, YOLOv8n, and YOLOv9t are fast and small, but their accuracy on small UAV drones is limited. UAV-Net uses only 2.60 M parameters and 7.7 GFLOPs, yet it reaches 92.1% mAP50 and 62.3% mAP50-95. This is higher than most lightweight models and comparable to or better than much larger models. The two-stage detector and the transformer-based detector consume far more computation and parameters. The larger YOLO variant achieves 92.0% mAP50 and 62.8% mAP50-95, but it uses 9.41 M parameters and 21.3 GFLOPs. UAV-Net is therefore much more efficient while remaining close in accuracy. Among specialized small-object detectors, some use very large backbones or have very low FPS. UAV-Net maintains 261 FPS, which is suitable for real-time monitoring of UAV drones on edge hardware.
The comparison also shows that a specialized method does not automatically outperform a well-designed lightweight detector. Some methods reported lower mAP50 on this dataset, which suggests that their improvements may not transfer to the specific challenges of small UAV drones. UAV-Net is not designed to maximize a single metric without regard to cost. Instead, it aims at the best overall trade-off among accuracy, parameter count, computation, and speed. The experimental data support this goal.
Generalization on Det-Fly
I evaluated UAV-Net on the Det-Fly dataset to test air-to-air detection of UAV drones. This dataset is challenging because the target UAV drone is viewed from another UAV drone, and the viewing angle changes continuously. The model must handle pitch, dive, and below-horizon attitudes. The results show a consistent improvement over the baseline.
| Model | Precision | Recall | F1 | mAP50 | mAP50-95 | Params (M) | FPS |
|---|---|---|---|---|---|---|---|
| Baseline | 0.939 | 0.800 | 0.864 | 0.872 | 0.530 | 2.58 | 480 |
| UAV-Net | 0.952 | 0.842 | 0.894 | 0.888 | 0.548 | 2.60 | 271 |
UAV-Net improves precision from 93.9% to 95.2%, recall from 80.0% to 84.2%, F1 from 0.864 to 0.894, mAP50 from 87.2% to 88.8%, and mAP50-95 from 53.0% to 54.8%. The inference speed decreases because of the additional neck and head computation, but 271 FPS remains sufficient for real-time detection. The parameter increase is only 0.02 M. This experiment indicates that the improvements are not limited to ground-to-air images. The edge-aware and multi-scale mechanisms also help when the UAV drone is observed from another UAV drone.
Generalization on VisDrone2019
I further evaluated UAV-Net on VisDrone2019 to test generalization to small-object detection. This dataset is not limited to UAV drones; it contains ten categories of small objects. The purpose is to check whether the improvements are useful beyond the UAV drone category. The results show a small but consistent improvement in precision, recall, F1, mAP50, and mAP50-95.
| Model | Precision | Recall | F1 | mAP50 | mAP50-95 | Params (M) | FPS |
|---|---|---|---|---|---|---|---|
| Baseline | 0.385 | 0.290 | 0.314 | 0.268 | 0.150 | 2.58 | 282 |
| UAV-Net | 0.390 | 0.310 | 0.324 | 0.278 | 0.157 | 2.60 | 209 |
UAV-Net raises recall from 29.0% to 31.0% and mAP50 from 26.8% to 27.8%. The absolute scores are lower than on the UAV drone datasets because VisDrone2019 is a more general and crowded small-object benchmark. Nevertheless, the trend is positive. The model remains real-time at 209 FPS. This supports the claim that the EAC, MFF, DTDA, and GIoU design has broader value for small-object detection and is not overfitted to one dataset.
Qualitative Behavior and Error Analysis
Qualitative inspection of detection outputs shows that UAV-Net improves several recurring failure cases. In scenes with clear UAV drones against simple backgrounds, the baseline and UAV-Net both detect the targets, but UAV-Net often produces higher confidence and tighter boxes. In low-light and long-range scenes, the baseline may miss the UAV drone entirely, while UAV-Net detects it because edge and spatial details are preserved through the EAC and MFF pathways. In scenes with buildings, clouds, or birds, the baseline may produce false positives, while UAV-Net suppresses them through the spatial attention mechanism in DTDA.
The remaining errors are also informative. Very small UAV drones under severe motion blur can still be missed. When the UAV drone is partially occluded by a building or tree, the detector may localize only the visible part. When multiple UAV drones appear close together, the bounding boxes may overlap, and non-maximum suppression may remove a valid detection. These errors are not unique to UAV-Net, but they indicate directions for future work. Longer temporal context from video frames, tracking-by-detection, and motion-aware feature aggregation could help.
| Scene Condition | Observed Baseline Behavior | Observed UAV-Net Behavior | Primary Cause |
|---|---|---|---|
| Clear sky, medium range | Detects with moderate confidence | Detects with higher confidence and tighter box | EAC edge enhancement, DTDA regression |
| Low light, long range | Frequent missed detections | More successful detections | MFF detail preservation |
| Buildings and clouds | Occasional false positives | Fewer false positives | DTDA spatial attention |
| Pose variation | Loose or shifted boxes | Better box alignment | Dynamic deformable regression, GIoU |
| Severe motion blur | Missed or weak response | Improved but still challenging | Edge cues help, but blur remains difficult |
I also examined the effect of model complexity. The full UAV-Net uses 7.7 GFLOPs and 2.60 M parameters and runs at 261 FPS on the test platform. This is slower than the baseline, which runs at 428 FPS, but it is still well above the real-time threshold for many monitoring systems. The increase in computation comes mainly from MFF and DTDA. If an application requires even lower latency, the model can be pruned or distilled, or the input resolution can be reduced. The accuracy-speed trade-off can therefore be adjusted for different deployment scenarios.
Why the Four Improvements Work Together
The four improvements in UAV-Net address different stages of the detection pipeline, and their interaction explains the final gain. EAC improves the representation before the features are fused. MFF improves the transfer and integration of those features across scales. DTDA improves the use of the fused features in the two task branches. GIoU improves the optimization target for bounding-box regression. If only one stage is improved, the benefit may be limited by another bottleneck. For example, stronger edge features alone may not help if the neck loses them; a better neck may not help if the head cannot align tasks; and a better head may not reach its full potential if the loss imposes unstable aspect-ratio constraints. The ablation results support this reasoning because the full combination outperforms every partial combination.
| Combination | Main Bottleneck Addressed | Observed Effect |
|---|---|---|
| EAC only | Weak edge representation | Moderate accuracy gain at low cost |
| MFF only | Cross-scale detail loss | Large recall gain, some extra computation |
| DTDA only | Task conflict and background false positives | High precision and improved localization |
| GIoU only | Unstable aspect-ratio regression | Improved recall with no extra cost |
| EAC + MFF | Edge preservation and cross-scale transfer | Better detail retention for small UAV drones |
| EAC + MFF + DTDA | Task-aligned use of rich features | Strong balanced improvement |
| Full UAV-Net | All bottlenecks | Best mAP50 and mAP50-95 |
This coordination is particularly important for UAV drones because their appearance is unstable. A single-frame detector cannot rely on stable texture or shape. It must combine weak but complementary cues: edges, context, motion-blurred boundaries, and spatial location. UAV-Net does not rely on one cue. It strengthens edges, preserves them across scales, aligns task-specific features, and uses a geometry-robust loss. This makes the model more reliable in the presence of small size, pose variation, and background clutter.
Deployment Considerations
Deployment of UAV drone detection systems often occurs on edge devices with limited power and computation. Model size and latency therefore matter as much as accuracy. UAV-Net uses 2.60 M parameters and 7.7 GFLOPs, which is small enough for many embedded platforms. The model runs at 261 FPS on the experimental GPU, and it remains above 200 FPS on the more general VisDrone2019 test. These numbers indicate that UAV-Net can support real-time monitoring. If the target platform has lower capability, optimization techniques such as pruning, quantization, knowledge distillation, or TensorRT acceleration can be applied. Because the architecture is modular, one can also reduce the number of MFF branches or simplify the DTDA head for extremely constrained devices.
I also consider the practical issue of false alarms. In security applications, a false positive on a bird or building can waste operator attention and reduce trust. UAV-Net improves precision through DTDA spatial attention and GIoU regression. The precision on DUT Anti-UAV reaches 94.8%, and on Det-Fly it reaches 95.2%. This is important because a deployment system should not only detect UAV drones but also avoid excessive false alarms. At the same time, recall is also improved, which reduces missed threats. The balance between precision and recall is therefore better than the baseline.
| Deployment Factor | UAV-Net Property | Practical Implication |
|---|---|---|
| Model size | 2.60 M parameters | Suitable for embedded memory budgets |
| Computation | 7.7 GFLOPs | Feasible for edge inference |
| Speed | 261 FPS on test GPU | Supports real-time monitoring |
| Precision | 94.8% on DUT Anti-UAV | Fewer false alarms |
| Recall | 85.7% on DUT Anti-UAV | Fewer missed UAV drones |
| Modularity | Separate EAC, MFF, DTDA, GIoU | Easy to prune or adapt |
Limitations
UAV-Net has limitations. First, although it improves detection of small UAV drones, extremely tiny targets under severe motion blur remain difficult. Second, the model is still a single-frame detector. It does not explicitly use temporal information, so it cannot exploit motion continuity across video frames. Third, the experiments are performed on public datasets that may not cover every real-world condition, such as rain, fog, smoke, or adversarial camouflage. Fourth, the improved neck and head increase computation compared with the baseline. The model is still fast, but not the absolute fastest option. Fifth, the detection performance on VisDrone2019 shows that general small-object detection remains challenging, especially in crowded scenes with many overlapping instances. These limitations do not invalidate the method, but they define the boundary of the current contribution and point to future work.
Future Work
I plan to extend this work in several directions. First, I will collect more UAV drone images under diverse backgrounds and weather conditions, including rain, fog, snow, and urban clutter. I will also extract frames from video sequences to build a larger temporal dataset. Second, I will apply model pruning and knowledge distillation to reduce complexity and improve deployment efficiency on edge devices. Third, I will integrate the detector with a tracking module so that UAV drones can be tracked continuously in complex scenes. Temporal association can reduce missed detections caused by motion blur or brief occlusion. Fourth, I will explore multi-modal fusion with infrared or event cameras, which may improve robustness at night or in low-contrast conditions. Fifth, I will investigate lightweight attention and dynamic convolution variants to further reduce latency while preserving accuracy.
Another promising direction is adaptive computation. A detector for UAV drones could allocate more computation to regions that are likely to contain small targets and less computation to empty sky or ground. This could improve both speed and accuracy. Similarly, a temporal detector could use motion cues to distinguish UAV drones from birds and other small moving objects. These ideas are natural extensions of the current design because UAV-Net already separates edge, scale, task, and regression concerns. Each of these concerns can be extended with temporal or multi-modal information.
Conclusion
I proposed UAV-Net, a high-precision detection model for small UAV drones. The model improves a lightweight single-stage detector through four coordinated mechanisms. EAC strengthens edge and spatial representation using a Sobel-based branch and a standard convolution branch. MFF improves cross-scale interaction through multi-scale focusing, bidirectional diffusion, and a second focusing stage. DTDA reduces classification-localization conflict through shared feature extraction, dynamic task decomposition, deformable regression, and spatial attention. GIoU stabilizes bounding-box regression by removing aspect-ratio penalties that are unsuitable for pose-varying UAV drones. On DUT Anti-UAV, UAV-Net achieves 94.8% precision, 85.7% recall, 92.1% mAP50, and 62.3% mAP50-95, improving over the baseline by 1.5, 3.9, 3.1, and 3.6 percentage points. It also generalizes to Det-Fly and VisDrone2019, demonstrating value for air-to-air detection of UAV drones and for broader small-object detection. The model remains lightweight at 2.60 M parameters and 7.7 GFLOPs with 261 FPS, making it suitable for real-time edge deployment. I conclude that coordinated improvements across representation, fusion, task alignment, and regression are effective for detecting small UAV drones in complex environments. In future work, I will extend the method with temporal information, additional data, model compression, and tracking to build more robust and practical anti-UAV drone monitoring systems.
