Abstract
Unmanned aerial vehicle (UAV) aerial object detection is increasingly important for traffic monitoring, emergency rescue, and environmental perception. However, vehicle detection in heavy rain, dense fog, blizzards, and backlit night scenes suffers from target information loss, feature misalignment, and unstable performance. We, therefore, construct a new severe-weather UAV dataset, Severe-Weather UAV (SWUAV), and propose the real-time Dynamic AlignAir Network (DANet). SWUAV contains 18,195 red–green–blue (RGB) aerial images covering 12 adverse weather/illumination conditions with 236,392 vehicle instances. After the high-resolution backbone features, we insert a cross-scale adaptive alignment module that performs adaptive channel calibration, contrastive self-attention, and geometric/semantic remapping to reduce scale drift/mismatch, suppress noise, and strengthen degraded target cues; we then design a dynamic adaptive alignment head (DAAH) with a shared encoder and a deformable regression branch to mitigate classification–regression mismatch under adverse conditions while further reducing complexity. On SWUAV, DANet raises the YOLOv11-s baseline average precision (AP)/AP50 (AP at intersection over union, IoU = 0.50) from 43.9%/62.6% to 46.9%/64.8%, with only 8.65 M parameters, 22.7 giga floating-point operations (GFLOPs), and a 323.47 frames-per-second (FPS) end-to-end throughput (3.09 ms per image at batch size 16), outperforming EdgeYOLO-s and RT-DETR. The dataset and code are publicly available.
1. Introduction
Deep neural network detectors have progressed rapidly on natural images [1,2] and been extended to aerial imagery. Directly transferring generic models to low-altitude unmanned aerial vehicle (UAV) scenes remains difficult [3]: (1) rain/snow streaks, haze scattering, backlighting, and night backgrounds significantly weaken target visibility and edges, causing feature and model mismatch; (2) degradation mechanisms are heterogeneous in severe weather: atmospheric scattering mainly explains fog/haze attenuation and airlight effects, while rain/snow streak occlusion, accumulation effects, and nighttime/backlit glare introduce additional non-uniform disturbances, leading to marked performance drops in out-of-distribution scenes, such as blizzards, dense fog, heavy rain, and night [4,5,6,7].
Public UAV datasets have spurred research but share gaps: VisDrone-DET 2019 [8] focuses on urban flights with few extreme-weather or night samples. UAVDT [9] stresses traffic monitoring, yet many images come from consecutive video frames with high redundancy. UAV123 [10] targets single-object tracking with one class. DroneVehicle [11] offers fine-grained vehicle splits but mainly in clear daytime. Overall, blizzards, dense fog, heavy rain, backlight, and night are under-represented, and dense multi-vehicle scenes are limited, making robustness and cross-dataset generalization hard to evaluate; large remote-sensing sets (e.g., DOTA, xView) likewise lack low-altitude severe-weather coverage.
We, therefore, build the Severe-Weather UAV (SWUAV) dataset: 18,195 red–green–blue (RGB) aerial images covering blizzards, freezing rain, dense fog, heavy rain, and backlit night across 12 weather/illumination combinations, with diverse traffic scenes. It is intended for multi-scale detection under adverse conditions and for models that must adapt to complex environmental interference.
Detection models fall into two-stage and one-stage paradigms [12,13,14,15,16,17]. Two stages (e.g., Faster R-CNN) offer higher accuracy but heavier models; one stage (YOLO, SSD, RetinaNet) balances accuracy and speed. Detection Transformer (DETR)-style transformers unify proposal generation and post-processing but demand more computing and training stability. In severe-weather UAV scenes with small and crowded objects, limitations persist: (1) shallow spatial details are diluted, causing cross-scale semantic–spatial mismatch and missed or drifted detections; (2) heads across scales and between classification/regression lack alignment and are noise-sensitive under low visibility; and (3) a redundant structure and large parameters hinder lightweight edge deployment. Recent adverse-weather detection studies further explore image-adaptive preprocessing (IA-YOLO [18], ERUP-YOLO [19]), restoration-detection coupling (TogetherNet [20], DTFA [21]), feature decorrelation (ILM/DAM [22]), and lightweight multiscale redesigns (MASFNet [23], YOLO-FOD [24]). These methods report gains on adverse-weather road-scene benchmarks, but most focus on ground-view domains and do not explicitly address the coupled cross-scale and task-alignment issues in low-altitude UAV traffic scenes.
To address this, we propose the Dynamic AlignAir Network for complex-weather UAV vehicle detection: the Cross-scale Adaptive Contrastive Tokenizer (CACT) aligns shallow geometry with deep semantics in high-resolution space, and the Dynamic Adaptive Alignment Head (DAAH) aligns classification and regression across scales on shared encodings, improving accuracy and robustness under adverse-weather conditions while retaining real-time performance.
2. Related Work
Unlike ground traffic monitoring or natural-scene detection, UAV detection under adverse weather faces unique perception obstacles: low-altitude platforms must maintain stable recognition amid continuous rain, snow reflections, haze scattering, and backlit nights, while the aerial viewpoint amplifies occlusion, scale changes, and target density. For fog/haze-dominated visibility degradation, we adopt the classical atmospheric-scattering approximation [4,5]:
Here is the camera observation, is the true radiance, is the transmission along the line of sight, and is the background light. In fog/haze conditions, a larger and a stronger reduce contrast, blur edges, and shift colors. For rain/snow and nighttime/backlit scenes, additional effects (e.g., dynamic streak occlusion, accumulation, and non-uniform glare) are not explicitly modeled by Equations (1) and (2) and are represented phenomenologically by and . This formulation serves as a compact mixed-degradation abstraction for performance analysis in low-visibility UAV detection.
Existing public UAV datasets—VisDrone-DET 2019 [8], UAVDT [9], UAV123 [10], and DroneVehicle [11]—mainly cover clear daytime or mild weather, with limited blizzard, dense fog, heavy rain, backlight, or night samples. Many frames are highly repetitive, categories can be single, and high-density traffic scenes are scarce, making it hard to assess robustness and generalization. Large remote-sensing sets (e.g., DOTA, xView), likewise, lack low-altitude severe-weather support. SWUAV helps narrow these gaps by providing 18,195 images over 12 weather/illumination conditions, 30 traffic scenes, and 236,392 vehicle annotations (car, truck, bus, van, freight car), improving extreme-weather coverage, scene diversity, and dense multi-class detection.
General object detection has evolved from two-stage to one-stage to Transformer frameworks [1,2]. For UAV imagery (large view, small and dense targets, pose changes, computing limits), specialized models such as Efficient-YOLO [25], BPD-YOLO [26], ELNet [27], and RSW-YOLO [28] enhance lightweight UAV detection under small-and-dense settings.
In adverse-weather detection, IA-YOLO [18] and ERUP-YOLO [19] introduce differentiable image-adaptive preprocessing before detection, TogetherNet [20] and DTFA [21] bridge restoration and detection through joint or teacher-guided feature alignment, independence-based decorrelation learning [22] reduces spurious weather-feature correlations at instance and image levels, and lightweight architectures such as MASFNet [23] and YOLO-FOD [24] strengthen multiscale fusion under computing constraints. These advances improve robustness on adverse-weather road-scene benchmarks, but severe-weather low-altitude UAV settings remain underexplored.
For severe-weather UAV detection, three gaps remain: limited benchmark coverage for dense low-altitude adverse-weather traffic, the insufficient modeling of UAV-specific cross-scale semantic–spatial mismatch, and weak joint alignment of classification/regression across scales. We thus propose DANet (Dynamic AlignAir Network) to improve accuracy and stability in severe-weather UAV detection.
Our contributions are summarized as follows:
- SWUAV dataset. To the best of our knowledge, we release one of the few UAV traffic detection datasets explicitly designed for severe-weather and low-visibility scenarios, with 236k vehicle instances across blizzard, dense fog, heavy rain, backlight, and night scenes in 30 traffic settings, supporting robustness and domain-generalization research.
- Dynamic AlignAir Network. CACT plus DAAH provide an effective real-time solution for traffic detection under extreme weather and complex environments.
- Comprehensive evaluation. Extensive experiments benchmark current real-time detectors and validate SWUAV and DANet; the data and code are publicly available for follow-up work.
3. Severe-Weather UAV Dataset
To advance UAV traffic detection under complex weather, we build the SWUAV dataset (examples in Figure 1).
Figure 1.
Example detection results for specific object categories in the Severe-Weather UAV (SWUAV) dataset.
It contains 18,195 RGB aerial images at resolution, covering blizzards, dense fog, heavy rain, backlit night, and other adverse scenes, with 236,392 annotated vehicle instances (car, truck, bus, van, freight car). Each image shows about 13 targets on average (distribution in Figure 2), spanning smooth road traffic, as well as dense toll plazas, river-crossing interchanges, port yards, and logistics hubs. Below, we describe the construction process and statistics of SWUAV.
Figure 2.
Distribution of the number of instances per image in the SWUAV dataset.
3.1. Dataset Collection, Annotation, and Splitting
Dataset creation followed three phases: collection/filtering, annotation, and splitting. Data were collected from numerous traffic sites across multiple urban regions using four UAV units from the same DJI-series consumer platform family and were supplemented with publicly available aerial footage captured under severe-weather conditions. The collected videos cover diverse traffic environments, viewpoints, and weather/illumination conditions. Candidate frames were manually screened to remove near-duplicates and low-quality samples, ensuring annotation quality and visual consistency. Although camera parameters vary slightly across units, this variability reflects realistic UAV imaging conditions, rather than controlled laboratory settings. To mitigate potential geographic or scene bias, both the training and testing splits include samples collected from multiple regions. Annotation followed an “auto-suggest + manual refinement” workflow: a vision foundation model generated candidate boxes, annotators corrected and completed them in CVAT, and class consistency was checked in a unified review. YOLO-format instance boxes ensure compatibility; the totals are 207,427 cars, 10,451 trucks, 6144 buses, 5914 vans, and 6456 freight cars. For splitting, SWUAV uses roughly 7:1:2: 12,680 train, 1947 val, 3568 test images with class ratios aligned, forming a moderately difficult benchmark for severe-weather UAV detection/segmentation and for reproducible baselines.
3.2. Dataset Characteristics and Statistics
Existing UAV detection datasets like VisDrone-DET 2019 mainly cover clear or overcast scenes. UAVDT focuses on city traffic with fair weather. UAV123/DroneVehicle target tracking or daytime vehicle identification. Samples for extreme weather and night illumination remain scarce, weakening robustness under low visibility and complex lighting. To address this gap, SWUAV spans 12 real weather/illumination combinations (Table 1) and significantly expands image scale, weather diversity, and scene complexity compared with VisDrone-DET 2019 (Figure 3).
Table 1.
Weather and illumination conditions covered by SWUAV.
Figure 3.
Comparison of SWUAV and VisDrone-DET 2019 datasets.
Instance counts and categories. SWUAV provides 236,392 vehicle instances across five categories (car, truck, bus, van, freight car), richer than UAVDT and DroneVehicle. Over 70% of scenes contain more than seven instances; 31.43% fall in the 11–20 range, and 18.24% exceed 20 (Figure 2), far denser than VisDrone-DET or UAV123, enabling stress tests of multi-target discrimination and robustness in congested traffic.
Channel-intensity characteristics. We compute the mean intensity per channel across all images and compare with VisDrone2019 (mainly clear daytime) in Figure 4. VisDrone peaks sharply at 100–115, indicating mid-level brightness typical of clear daylight. SWUAV shows broader dual peaks with a high-intensity mode at 140–160 but lower overall peak height and flatter curves, with larger variance. This reflects coexisting low-light/cool regions (fog, rain, snow) and high-brightness regions (backlight, snow reflections, nighttime lamps), giving a wider luminance range and combined color attenuation. SWUAV, therefore, covers more complex illumination and weather, helping models learn robust features under low visibility, strong contrast, and color distortion.
Figure 4.
SWUAV average channel intensity distribution.
Scene diversity. SWUAV uses unified imaging settings for real-time deployment while covering 30+ scenes, such as toll plazas, river-crossing interchanges, port yards, highway ramps, and residential parking lanes (Figure 5), capturing disturbances like wet lenses, beacon glare, condensation, and reflections. Compared with UAV123 and DroneVehicle (mainly clear daytime) and VisDrone-DET (clear/overcast with few night scenes), SWUAV offers high-density, multi-class vehicle distributions under extreme weather, low light, and complex backgrounds, enabling challenging yet practical evaluation and design of feature enhancement/alignment strategies for severe weather.
Figure 5.
Examples of scene diversity in the SWUAV dataset.
Quantitative weather distribution comparison: Table 2 summarizes per-condition image counts for SWUAV and the available weather labels in UAVDT-M. Note that UAVDT only provides daylight/night/fog attributes, so other severe-weather categories are not annotated.
Table 2.
Weather distribution comparison between SWUAV and UAVDT-M.
4. DANet Network Model
Figure 6 shows the overall DANet architecture for UAV vehicle detection under complex weather. It introduces two core modules: the Cross-scale Adaptive Contrastive Tokenizer (CACT) and the Dynamic Adaptive Alignment Head (DAAH). CACT uses cross-scale contrastive attention in a loop of channel splitting, dynamic calibration, complementary mapping, and feature aggregation to align shallow geometry with deep semantics at a high resolution, improving separability and stability for hard or confusing targets. DAAH applies scale-adaptive calibration on shared encodings, using deformable convolutions for geometric alignment in regression and probabilistic gating for semantic focus in classification, yielding consistent multi-scale predictions and improved output stability under adverse-weather conditions.
Figure 6.
Overall framework of the Dynamic AlignAir Network.
4.1. Cross-Scale Adaptive Contrastive Tokenizer (CACT)
Repeated down-sampling in the backbone weakens spatial details and breaks semantic consistency across scales, causing the detection head to make inconsistent decisions on the same target. We propose the Cross-scale Adaptive Contrastive Tokenizer (CACT) to address this. Using the SPPF output P5 feature
as input, CACT performs channel splitting, stacked Adaptive Contrastive TSSA (ACT) blocks, and channel reconstruction to encode shallow geometry as dynamic tokens and realign them in a high-resolution semantic space. The structure is shown in Figure 7.
Figure 7.
Framework of the Cross-Scale Adaptive Contrastive Tokenizer and Token-Shift Self-Attention.
4.1.1. Channel Split
We first apply cv1 (Conv + BN + SiLU) for linear rearrangement while preserving the spatial size and activating channels. The 512 channels are then divided into two equal branches: keeps the original semantics as a long-range residual, and enters the ACT path for explicit calibration:
This preserves shallow spatial cues for later enhancement, providing an alignment space for adaptive attention.
4.1.2. Adaptive Contrastive TSSA
The Adaptive Contrastive Token-Shift Self-Attention (ACT) block is the key component of CACT, aiming to recalibrate multi-scale semantics with minimal computing (Figure 7). On input , it performs dynamic modulation, sequence modeling, contrastive attention, second-stage modulation, and channel aggregation, with each step conditioning the next to form complementary mappings.
4.1.3. Channel-Wise Adaptive Tuning (DynamicTanh 1)
Feeding raw features directly into attention would amplify background noise and amplitude drift. We first apply DynamicTanh modulation to suppress noise and stabilize amplitudes:
where and .
4.1.4. Explicit Sequencing for Long-Range Dependencies (Flatten and Permute)
Convolutional features are local; to expose long-range relations, we flatten the feature map into a token sequence:
Sequencing provides an attention-friendly representation so self-attention can model distant semantic coupling beyond convolutional receptive fields.
4.1.5. Contrastive Multi-Head Self-Attention (Attention TSSA)
To avoid ambiguous notation, we provide the implementation-equivalent form of Attention TSSA. In ACT, attention is computed from token statistics through head-wise saliency gating and contrastive shrinkage:
Here, is normalized across heads for each token (head-wise competition), while is further normalized across tokens within each head. The contrast function is defined as , where is the weighted channel energy. Therefore, performs inverse-energy shrinkage, suppressing over-activated channels.
4.1.6. Complexity Analysis of ACT
The ACT attention core above is implemented via normalization, reduction, and weighted aggregation over tokens, with complexity and no explicit affinity construction. Considering the full ACT block, the major terms are
with . Thus, ACT remains linear in token number at fixed channel width and head configuration. Relative to the YOLOv11-s baseline, adding CACT keeps the overall giga floating-point operations (GFLOPs) at 21.3 (rounded to one decimal), indicating marginal network-level overhead. Functionally, ACT emphasizes head competition through and channel suppression through while modeling token interactions through token-statistics weighting. Empirical latency/memory scaling of ACT under identical feature resolutions is further reported in Section 5.6.
4.1.7. Second-Stage Modulation to Curb Amplitude Drift (DynamicTanh 2)
Attention redistribution can still cause amplitude drift. We remap to feature space and apply a second DynamicTanh before channel mixing:
where and . This rebalances channel magnitudes so the FFN receives well-scaled inputs.
4.1.8. Channel Aggregation with Residual Output (FFN)
To enable stacking multiple ACT blocks without gradient decay, we mix channels via a two-layer feed-forward network ( conv + SiLU + conv):
The output preserves spatial layout while injecting contrastively reweighted semantics with stable gradient flow.
4.1.9. Cumulative Effect and Benefits
Dynamic modulation plus sequencing cleans and enriches features before attention; contrastive attention with second-stage tuning boosts salient regions and corrects spatial bias without runaway amplification; residuals keep gradients stable across stacked ACT blocks. Thus, CACT delivers semantic consistency and spatial alignment for complex weather, providing high-quality priors for classification and regression.
4.1.10. Feature Fusion (Concat + cv2)
The calibrated feature Y is concatenated with branch_a and projected back to 512 channels via cv2 (Conv + BN + SiLU):
This serves as input to the next CACT block and, after stacking, feeds the DAAH head alongside ScaleFusion outputs P4/P3 for multi-scale decoding. CACT, therefore, executes a lightweight loop of channel splitting, dynamic alignment, complementary mapping, and feature aggregation, propagating shallow spatial cues into deep semantics and mitigating cross-scale bias for stable detection in adverse weather.
4.2. Dynamic Adaptive Alignment Head (DAAH)
Separating classification and regression heads often leads to weak task interaction and inconsistent scales. DAAH addresses this with shared encoding, task decoupling, and dynamic alignment (Figure 8), reducing complexity while jointly optimizing both tasks.
Figure 8.
Framework of the Dynamic Adaptive Alignment Head.
Shared feature encoding. Independent feature extractors for each task inflate parameters and memory. DAAH uses shared convolutional layers to fuse shallow and deep features per scale via two conv+GroupNorm (GN) stages, producing
GN stabilizes features, especially for small batches. To handle magnitude differences across scales, a learnable Scale module calibrates each level with a multiplicative gain:
keeping responses aligned and reducing prediction bias.
Task decoupling with tailored alignment. Classification focuses on semantics, while regression demands geometric alignment; naive sharing can cause interference. We, therefore, map shared features to task-specific subspaces using global average pooling (GAP) to extract the context, followed by lightweight gating to obtain and . Context-guided decoupling reduces task interference while preserving shared cues.
Regression alignment relies on deformable convolution (DyDCNv2): predicted offsets and masks adapt sampling positions and weights, capturing key geometry and improving localization under shape variation and occlusion.
Classification alignment uses multi-scale probabilistic gating. Cascaded and convolutions produce a gate map,
with Sigmoid output in . Element-wise modulation, , enhances informative regions, combining channel interaction and spatial awareness. This suppresses noise and emphasizes high-confidence areas, boosting semantic focus in cluttered or low-light scenes (rain, fog, snow).
Cross-scale prediction aggregation. The regression branch maps aligned features to channels for distributed predictions (center offsets and size), while the classification branch outputs class probabilities. Training keeps all scale outputs ; inference concatenates and decodes via DFL and dist2bbox for final boxes, avoiding redundant multi-scale processing and reducing latency. The Scale module further harmonizes scale responses so weights are distributed consistently across levels.
Overall, DAAH aligns tasks and space on shared encodings: shared convolutions cut parameters, while Scale maintains scale fitness; regression gains geometric adaptivity via DCNv2; and classification focuses semantics via probabilistic gating. This collaborative design improves head stability and reliability under complex weather with minimal overhead.
5. Experiments
We validate the proposed approach through comparative and ablation studies.
5.1. Implementation Details
All experiments run on an NVIDIA GeForce RTX 4070 Ti GPU (NVIDIA Corporation, Santa Clara, CA, USA) with PyTorch 2.2.2+cu121. We train for 200 epochs with stochastic gradient descent (SGD), momentum 0.937, weight decay 0.0005, batch size 16, and initial learning rate 0.001. Images are resized by letterbox to ; the other training settings follow the official defaults. The evaluation follows COCO-style detection metrics, including AP (AP@[0.50:0.95]), AP50, and AP75. The inference for evaluation uses single-scale inputs with test-time augmentation disabled (augment = False). The predictions are post-processed by non-maximum suppression (NMS) (validation defaults: conf = 0.001, iou = 0.7, max_det = 300), and AP is computed from the post-NMS detections. The baseline in all comparisons is YOLOv11-s (official Ultralytics implementation), trained and evaluated under the same data split, image size, optimizer schedule, and post-processing protocol as DANet; DANet replaces only the designated modules (CACT and/or DAAH) for a controlled comparison.
For speed reporting, we use native PyTorch .pt inference on a single GPU, without TensorRT acceleration. Unless otherwise specified, speed is measured on the SWUAV test split with batch size 16 and single-precision floating point (FP32). We report frames per second, FPS (infer), as and FPS as . For YOLOX-s and EdgeYOLO-s, we use external evaluation logs that provide forward and forward+NMS time; therefore, FPS (infer) is derived from forward time and FPS from forward+NMS. To complement the complexity discussion, additional module-level latency/memory performance profiling of ACT is reported in Section 5.6.
5.2. Detection Results on SWUAV
We adopt YOLOv11-s as the baseline and compare with UAV baselines of the same input size. As shown in Table 3, YOLOv11-s yields 43.9% AP and 62.6% AP50, while our method reaches 46.9% AP and 64.8% AP50, improving AP and AP50 by 3.0 and 2.2 points. With CACT and DAAH, our network fuses semantics across levels and dynamically aligns classification/regression, markedly boosting detection. The model has 8.65 M parameters and about 22.7 GFLOPs, with 323.47 FPS end-to-end throughput (3.09 ms per image, batch size 16), indicating strong real-time potential.
Table 3.
Comparison with state-of-the-art detectors on the SWUAV test set in terms of accuracy, computing, parameters, and speed. FPS(infer) denotes forward throughput, while FPS denotes end-to-end throughput (preprocess + inference + postprocess). The full speed protocol is described in Section 5.1.
Table 3 also shows that DANet achieves the highest accuracy among models with the same input size, outperforming RetinaNet (30.4% AP at ) by 16.5 points. Compared with EdgeYOLO-s, DANet attains higher accuracy (46.9% AP) and faster inference throughput (423.82 FPS(infer)) with fewer parameters (8.65 M) and lower computing (22.7 G); its end-to-end speed is 323.47 FPS, demonstrating strong effectiveness for multi-scale detection in UAV imagery. Size-wise AP indicates that gains are more pronounced on medium/large objects (APM: 45.2 → 47.1, APL: 36.3 → 44.2), while small-object performance remains comparable (APS: 14.4 → 14.2).
Repeated-Run Stability
To evaluate run-to-run variation, we repeat DANet training and testing three times with different random seeds under the same protocol. As summarized in Table 4, the mean performance is 46.81 AP, 64.89 AP50, and 54.77 AP75, with low standard deviations (0.12/0.14/0.06). The corresponding 95% confidence intervals are narrow, indicating stable gains across repeated runs, rather than isolated single-run fluctuation.
Table 4.
Repeated-run stability of DANet on the SWUAV test split (three seeds).
Table 5.
Per-class AP on the WeatherDrone test split.
Figure 9.
PR and F1-confidence curve comparison between YOLOv11-s baseline and DANet on the WeatherDrone test split. (a) YOLOv11-s baseline: PR curve. (b) DANet: PR curve. (c) YOLOv11-s baseline: F1-confidence curve. (d) DANet: F1-confidence curve.
Figure 9, together with Table 5, provides a class-level view of the improvement on minority categories. For Truck/Bus/Van/Freight car, AP increases from 40.6/58.3/27.3/25.8 to 43.7/61.0/29.8/30.5. The PR curves show that these classes maintain higher precision over a broad recall range, and the corresponding AP50 values in the legends also rise (Truck: 58.3% → 61.0%, Van: 42.3% → 44.2%, Freight car: 36.4% → 42.2%). In the F1-confidence plots, the all-class peak improves from 0.63 to 0.65, with the best operating confidence shifting from 0.312 to 0.342. Under the same evaluation settings, the total number of output detections on the test split is 463,487 for DANet versus 468,735 for YOLOv11-s (about ). Overall, the curves indicate a more favorable precision-recall balance under severe-weather conditions, especially for low-frequency vehicle classes.
Figure 10 compares baseline and DANet outputs. Baseline heatmaps focus on misplaced regions and miss targets, indicating strong interference; DANet better adapts to background, covering and analyzing detection areas more completely. In Figure 10, the first-row baseline misdetects a car with a heavily offset box, whereas DANet localizes it correctly and also detects the adjacent truck bed. In the second row, DANet detects a vehicle occluded by an overpass that the baseline misses. DANet thus reduces false detections, yields tighter boxes, and improves detection of medium/large objects and hard occlusion cases in complex low-visibility scenes.
Figure 10.
Visualization of heatmaps and detection results for the baseline model and ours.
5.3. Ablation Experiments
We conduct ablation studies on CACT and DAAH on SWUAV to analyze their impact on accuracy and complexity (Table 6).
Table 6.
Ablation of CACT and DAAH in DANet on the test set. Checkmark denotes enabled and blank denotes disabled.
The baseline YOLOv11-s achieves 43.9% AP, 62.6% AP50, and 51.9% AP75 with 9.41 M parameters and 21.3 GFLOPs.
Adding only CACT improves AP to 45.5% (+1.6), AP50 by 1.7, and AP75 by 1.8 while slightly reducing parameters to 9.35 M with a negligible computational overhead. This indicates that cross-scale adaptive contrastive calibration enhances feature consistency across different semantic levels under adverse conditions without increasing model complexity.
Using only DAAH raises AP to 46.4% (+2.5), with the largest gain observed in AP75 (+2.7), suggesting that deformable alignment and probabilistic gating effectively improve localization and classification quality, particularly under stricter intersection over union (IoU) thresholds. The parameters are reduced to 8.71 M, while GFLOPs increase to 22.7 due to the use of deformable convolution.
Enabling both modules yields 46.9/64.8/54.4 for AP/AP50/AP75 (gains of 3.0/2.2/2.5) while compressing parameters to 8.65 M with a slight increase in computation. Relative to CACT-only, adding DAAH brings +1.4/+0.5/+0.7 AP/AP50/AP75; relative to DAAH-only, adding CACT brings +0.5/+0.2/−0.2. This indicates that CACT and DAAH are partially complementary with overlapping effects.
5.4. Cross-Dataset Experiments
To evaluate cross-dataset generalization, we directly test models trained on SWUAV on VisDrone-DET and RTTS without target-domain training. VisDrone uses the vehicle-only val split (car, truck, bus, van) and retains negative images; RTTS keeps only the overlapping car and truck classes and retains negative images without car/truck to keep evaluation strict. Table 7 reports target-domain metrics together with source-to-target degradation from SWUAV, and Table 8 provides a per-category AP50 degradation breakdown.
Table 7.
Cross-dataset evaluation and source-to-target degradation from SWUAV.
Table 8.
Per-category AP50 source-to-target degradation (shared classes only).
Cross-dataset evaluation indicates substantial source-to-target degradation from SWUAV to both VisDrone and RTTS. In AP50, YOLOv11-s drops by 51.84 and 59.81 percentage points on VisDrone and RTTS, while DANet (Ours) drops by 53.75 and 61.93, respectively, confirming severe domain shift for both models.
The per-category AP50 analysis shows that degradation is strongly class-dependent. On VisDrone, the bus exhibits the largest drop (80.30/81.14 p.p. for YOLOv11-s/DANet), while the car and truck are comparable in magnitude (61.02/58.81 and 57.62/60.38 p.p.), and the van is relatively smaller (34.91/37.53 p.p.). On RTTS, both shared classes are heavily degraded, with the car at around 89.5 p.p. for both models. These patterns indicate that cross-domain degradation is heterogeneous across categories, rather than uniform.
Under strictly controlled settings (identical SWUAV source training data, detector family, and evaluation protocol), DANet (Ours) still yields consistent but modest target-domain gains in AP50/AP75/AP and F1 on both datasets (VisDrone: +0.29/+0.21/+0.16 AP50/AP75/AP points; RTTS: +0.08/+0.11/+0.11). Although improvements are more stable on dominant categories, gains are not exclusively limited to a single class. In addition, DANet (Ours) shows a higher target recall but slightly lower target precision, indicating a recall-oriented trade-off, rather than indiscriminate over-prediction. Taken together, these observations suggest that the gains mainly arise from improved architectural robustness/generalization, while the residual dataset mismatch remains.
5.5. Internal Ablation of DAAH
To further clarify the role of each alignment component under an unchanged framework, we perform a component-wise internal ablation of DAAH on the SWUAV validation split, as summarized in Table 9. The first row reports the CACT-enhanced model with the native YOLOv11 detection head (without DAAH), while the remaining rows report DAAH variants with different combinations of DyDCNv2, probabilistic gating, and scale calibration.
Table 9.
Internal ablation of DAAH on SWUAV validation split. Checkmark denotes enabled and blank denotes disabled.
Compared with the CACT model using the native head, replacing the head with a DAAH variant while disabling all internal alignment components yields only limited gains. On top of this fixed DAAH structure, enabling alignment components further increases AP/AP50/AP75 from 46.20/64.31/54.44 to 46.97/65.17/55.33; this alignment-induced improvement accounts for 51.3%, 78.2%, and 73.0% of the total gains over the CACT model with the native head, respectively, indicating that the main performance improvement comes from the alignment mechanism itself, especially under stricter IoU criteria. Component-wise, removing DyDCNv2 causes the largest degradation (46.97 → 45.50 AP), and removing probabilistic gating also reduces performance (46.97 → 46.58 AP), showing that geometric adaptive sampling and semantic gating are the primary drivers. In contrast, scale calibration has a more moderate effect on AP but still improves AP50, AP75, and F1 calibration in the full configuration. Overall, DyDCNv2, probabilistic gating, and scale calibration act complementarily, with DyDCNv2 and gating playing the dominant roles.
5.6. Latency and Memory Scaling Analysis of ACT
To validate ACT efficiency in practice, we perform module-level performance profiling against a comparison module, i.e., C2PSA in YOLOv11, which uses standard global self-attention. Unless otherwise specified, the performance profiling follows the setup in Section 5.1. The module-specific settings are: , , , FP32, batch size 1, and forward-only evaluation. The inputs are with . For each resolution, we use 10 warmup interations and 40 timed iterations (CUDA events). The memory is reported as incremental peak allocation, defined as , where denotes the peak allocated GPU memory during timed forward passes, and denotes the allocated GPU memory immediately before timing.
At (), standard attention can be faster because fixed runtime overhead dominates. From onward, ACT is consistently faster, and the latency gap widens with resolution. At , standard attention reaches OOM, while ACT still runs. Local non-monotonic fluctuations of (e.g., vs. for ACT) are expected from CUDA allocator reuse and shape-dependent backend workspace selection; however, the overall trend and high-resolution boundary remain consistent with the linear-token complexity analysis. The detailed resolution-wise latency and memory results are summarized in Table 10.
Table 10.
Module-level latency and memory scaling of ACT versus a standard self-attention baseline under identical feature resolutions.
6. Conclusions
We present SWUAV, a new severe-weather UAV aerial dataset with 18,195 images across 12 adverse weather and illumination conditions and diverse traffic scenes, providing a challenging basis for UAV traffic detection in complex environments. We also propose DANet, a detection framework that improves robustness under adverse-weather conditions, combining the Cross-Scale Adaptive Contrastive Tokenizer (CACT) and the Dynamic Adaptive Alignment Head (DAAH). CACT aligns shallow geometric details with deep semantics in high-resolution space via channel splitting and contrastive attention, alleviating semantic fading under adverse-weather noise, especially for hard and occluded targets; DAAH introduces deformable convolution and probabilistic gating on shared encodings to dynamically align classification/regression and multi-scale features, improving stability and discrimination with controlled parameters and computing. DANet improves accuracy and enhances robustness in complex real-world conditions, including low visibility, heavy occlusion, and mixed vehicle types. Within this scope, the image-formation terms are used as a practical mixed-degradation representation to support improved detection performance under diverse adverse weather and illumination conditions.
Extensive experiments on SWUAV show that DANet surpasses mainstream detectors on AP, AP50, and AP75, especially in dense traffic and adverse weather. Ablations confirm the effectiveness of CACT and DAAH, particularly for multi-scale alignment and minority-class recognition. Future work will extend SWUAV and DANet to more dynamic traffic and UAV trajectory scenarios, and incorporate multimodal sensors (e.g., infrared, thermal) to further boost detection under harsh weather. Overall, SWUAV and DANet demonstrate improved performance and generalization under diverse conditions and provide a strong data/tooling foundation for traffic detection in severe-weather UAV imagery.
Author Contributions
Conceptualization, L.Z.; methodology, L.Z. and Y.L.; software, L.Z.; validation, L.Z. and Y.L.; formal analysis, L.Z. and Y.L.; resources, Y.L.; data curation, L.Z.; writing—original draft preparation, L.Z.; writing—review and editing, L.Z. and Y.L.; visualization, L.Z.; supervision, Y.L.; project administration, Y.L.; funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Key Research and Development Program of China (2023YFC3304903), the National Natural Science Foundation of China (62362025, 62163010, 62162021), the Hainan Provincial Key Research and Development Program (ZDYF2022GXJS224), and the Technological Innovation Program of Scientific Research Institutes in Hainan Province (KYYSGY2023-003, SQKY2022-003).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The SWUAV dataset, including raw UAV images and annotations, is available at https://github.com/Chien-Abyss/SWUAV-DANet (accessed on 3 February 2026). The source code of the proposed Dynamic AlignAir Network is openly available at the same repository.
Acknowledgments
The first author thanks the corresponding author, Yihong Li, for guidance and valuable suggestions on this work. During the preparation of this work, the authors used ChatGPT (OpenAI, GPT-5.1) to improve clarity and grammar. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Zou, Z.; Shi, Z.; Guo, Y.; Ye, J. Object Detection in 20 Years: A Survey. Proc. IEEE 2023, 111, 257–276. [Google Scholar] [CrossRef] [Scilit]
- Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-End Object Detection with Transformers. In Proceedings of the European Conference on Computer Vision (ECCV), Glasgow, UK, 23–28 August 2020; pp. 213–229. [Google Scholar] [CrossRef] [Scilit]
- Hua, W.; Chen, Q. A Survey of Small Object Detection Based on Deep Learning in Aerial Images. Artif. Intell. Rev. 2025, 58, 162. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Sun, J.; Tang, X. Single Image Haze Removal Using Dark Channel Prior. IEEE Trans. Pattern Anal. Mach. Intell. 2011, 33, 2341–2353. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Narasimhan, S.G.; Nayar, S.K. Vision and the Atmosphere. Int. J. Comput. Vis. 2002, 48, 233–254. [Google Scholar] [CrossRef] [Scilit]
- Valanarasu, J.M.A.; Patel, V.M. TransWeather: Transformer-Based Restoration of Images Degraded by Adverse Weather Conditions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; pp. 2353–2363. [Google Scholar] [CrossRef] [Scilit]
- Li, B.; Peng, X.; Wang, Z.; Xu, J.; Feng, D. AOD-Net: All-in-One Dehazing Network. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 4780–4788. [Google Scholar] [CrossRef] [Scilit]
- Du, D.; Zhu, P.; Wen, L.; Bian, X.; Ling, H.; Hu, Q.; Peng, T.; Zheng, J.; Wang, X.; Zhang, Y.; et al. VisDrone-DET2019: The Vision Meets Drone Object Detection in Image Challenge Results. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), Seoul, Republic of Korea, 27–28 October 2019; pp. 213–226. [Google Scholar] [CrossRef] [Scilit]
- Du, D.; Qi, Y.; Yu, H.; Yang, Y.; Duan, K.; Li, G.; Zhang, W.; Huang, Q.; Tian, Q. The Unmanned Aerial Vehicle Benchmark: Object Detection and Tracking. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 375–391. [Google Scholar] [CrossRef] [Scilit]
- Mueller, M.; Smith, N.; Ghanem, B. A Benchmark and Simulator for UAV Tracking. In Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 11–14 October 2016; pp. 445–461. [Google Scholar] [CrossRef] [Scilit]
- Sun, Y.; Cao, B.; Zhu, P.; Hu, Q. Drone-Based RGB-Infrared Cross-Modality Vehicle Detection via Uncertainty-Aware Learning. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 6700–6713. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit]
- Lin, T.-Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature Pyramid Networks for Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 2117–2125. [Google Scholar] [CrossRef] [Scilit]
- Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 11–14 October 2016; pp. 21–37. [Google Scholar] [CrossRef] [Scilit]
- Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and Efficient Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 10781–10790. [Google Scholar] [CrossRef] [Scilit]
- Feng, C.; Zhong, Y.; Gao, Y.; Scott, M.R.; Huang, W. TOOD: Task-Aligned One-Stage Object Detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 3490–3499. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Ren, G.; Yu, R.; Guo, S.; Zhu, J.; Zhang, L. Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions. arXiv 2022, arXiv:2112.08088. [Google Scholar] [CrossRef] [Scilit]
- Ogino, Y.; Shoji, Y.; Toizumi, T.; Ito, A. ERUP-YOLO: Enhancing Object Detection Robustness for Adverse Weather Condition by Unified Image-Adaptive Processing. arXiv 2025, arXiv:2411.02799. [Google Scholar]
- Wang, Y.; Yan, X.; Zhang, K.; Gong, L.; Xie, H.; Wang, F.L.; Wei, M. TogetherNet: Bridging Image Restoration and Object Detection Together via Dynamic Enhancement Learning. arXiv 2022, arXiv:2209.01373. [Google Scholar] [CrossRef] [Scilit]
- Hu, R.; Xiang, Y.; Ren, A.; Liu, F.; Liu, Y. A Lightweight Framework for Robust Object Detection in Adverse Weather Based on Dual-Teacher Feature Alignment. Neurocomputing 2026, 660, 132726. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Xuan, S.; Li, Z. Robust Object Detection in Adverse Weather with Feature Decorrelation via Independence Learning. Pattern Recognit. 2026, 169, 111790. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Fang, T.; Lu, H.; Zhang, W.; Lan, R. MASFNet: Multiscale Adaptive Sampling Fusion Network for Object Detection in Adverse Weather. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4702815. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Yuan, T.; Ren, A.; Kuo, Y.; Xiong, X. YOLO-FOD: Lightweight Object Detection Based on Multibranch and Multiscale Feature Fusion for Adverse Weather. Neurocomputing 2026, 659, 131778. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Zhang, Z. Efficient YOLO: A Lightweight Model for Embedded Deep Learning Object Detection. In Proceedings of the IEEE International Conference on Multimedia & Expo Workshops (ICMEW), London, UK, 6–10 July 2020; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Chao, M.; Peng, C.; Yun, L.; Zhang, C.; Wang, H.; Chen, Z. A Lightweight Small Object Detection Model for UAV Images Based on Deep Semantic Integration. Sci. Rep. 2025, 15, 31888. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Ma, J.; Zhang, J. ELNet: An Efficient and Lightweight Network for Small Object Detection in UAV Imagery. Remote Sens. 2025, 17, 2096. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Shang, J.; Wang, X.; Zhang, Q.; Wang, X.; Li, J.; Wang, Y. RSW-YOLO: A Vehicle Detection Model for Urban UAV Remote Sensing Images. Sensors 2025, 25, 4335. [Google Scholar] [CrossRef] [Scilit]
- Xu, S.; Wang, X.; Lv, W.; Chang, Q.; Cui, C.; Deng, K.; Wang, G.; Dang, Q.; Wei, S.; Du, Y.; et al. PP-YOLOE: An Evolved Version of YOLO. arXiv 2022, arXiv:2203.16250. [Google Scholar] [CrossRef] [Scilit]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal Loss for Dense Object Detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar] [CrossRef] [Scilit]
- Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving into High Quality Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 6154–6162. [Google Scholar] [CrossRef] [Scilit]
- Ge, Z.; Liu, S.; Wang, F.; Li, Z.; Sun, J. YOLOX: Exceeding YOLO Series in 2021. arXiv 2021, arXiv:2107.08430. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Zha, J.; Sun, J.; Li, Z.; Wang, G. EdgeYOLO: An Edge-Real-Time Object Detector. In Proceedings of the 42nd Chinese Control Conference (CCC), Tianjin, China, 24–26 July 2023; pp. 7507–7512. [Google Scholar] [CrossRef] [Scilit]
- Zhou, L.; Liu, Z.; Zhao, H.; Hou, Y.-E.; Liu, Y.; Zuo, X.; Dang, L. A Multi-Scale Object Detector Based on Coordinate and Global Information Aggregation for UAV Aerial Images. Remote Sens. 2023, 15, 3468. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-Time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; pp. 16965–16974. [Google Scholar] [CrossRef] [Scilit]
- Jocher, G. Ultralytics YOLOv5, Version 7.0. Zenodo. 2020. Available online: https://zenodo.org/records/7347926 (accessed on 3 February 2026).
- Jocher, G.; Chaurasia, A.; Qiu, J. YOLO by Ultralytics (Version 8.0.0). Available online: https://github.com/ultralytics/ultralytics (accessed on 4 February 2026).
- Wang, C.-Y.; Yeh, I.-H.; Liao, H.-Y.M. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. arXiv 2024, arXiv:2402.13616. [Google Scholar] [CrossRef] [Scilit]
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. arXiv 2024, arXiv:2405.14458. [Google Scholar]
- Ultralytics. YOLOv11 Models. Available online: https://docs.ultralytics.com/models/yolov11/ (accessed on 4 February 2026).
- Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-Centric Real-Time Object Detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.









