TinyDef-DETR: UAV Power Line Defect Detection
- The paper introduces TinyDef-DETR, enhancing UAV power line inspection by integrating lossless downsampling, edge-sensitive convolutions, and dual-domain attention.
- It augments the standard DETR framework with modules like SPD, EEConv, and CSDMAM to preserve spatial details and improve small-object localization with modest computational cost.
- Empirical results on CSG-ADCD and VisDrone benchmarks demonstrate significant gains in precision, recall, and small-object AP compared to baseline RT-DETR-R18.
Searching arXiv for the specified paper and closely related work to ground the article in current literature. TinyDef-DETR is a DETR-based framework for UAV power line defect detection that was proposed to address small and ambiguous defects against complex backgrounds, particularly in settings where conventional detectors suffer from detail loss due to strided downsampling, weak boundary sensitivity in lightweight backbones, and insufficient integration of global context with local cues. Built on RE-DETR-R18, it augments the backbone and neck with a stride-free space-to-depth module for lossless downsampling, an edge-enhanced convolution for boundary-aware feature extraction, a cross-stage dual-domain multi-scale attention module to jointly capture global and local information, and a Focaler-Wise-SIoU regression loss to improve localization of small objects. Experiments on the CSG-ADCD dataset and further validation on the VisDrone benchmark are reported as showing improved precision, recall, and small-object performance with only modest computational overhead (Cui, 7 Sep 2025).
1. Problem setting and design rationale
TinyDef-DETR was developed for automated inspection of transmission lines using UAVs, where the task includes detecting polluted or broken insulators, missing tie wires, bird nests, and related defects that typically occupy fewer than pixels and blend into highly cluttered backgrounds such as vegetation, towers, and shadows (Cui, 7 Sep 2025). The motivating diagnosis is fourfold: mainstream detectors incur loss of detail due to strided downsampling, exhibit weak boundary sensitivity in lightweight CNN backbones, insufficiently fuse global context with local cues, and treat easy and hard samples equally in bounding-box regression.
The framework was therefore designed to satisfy four stated objectives: preserve pixel-level detail, inject edge and gradient priors, jointly capture global and local information in a lightweight module, and adaptively reweight regression loss toward moderately hard samples (Cui, 7 Sep 2025). This places TinyDef-DETR within a line of small-object DETR adaptations in which architectural changes are concentrated before the standard encoder–decoder, while the end-to-end set-prediction formulation is retained. A plausible implication is that the model aims to improve the quality of features and regression targets without abandoning the DETR operating regime.
2. System architecture
TinyDef-DETR builds on RE-DETR-R18, described as a DETR variant using ResNet-18, and inserts three plug-in modules into the backbone and neck before the features are passed into the standard DETR encoder–decoder and box/class heads (Cui, 7 Sep 2025). The summarized pipeline is: input to a Detail-Enhanced ResNet, with EEBlock inserted; before each downsampling in ResNet, a Space-to-Depth module reorganizes spatial information into channels; Cross-Stage Dual-Domain Multi-Scale Attention Blocks are distributed in the backbone; then the features are processed by the Transformer encoder–decoder as in DETR; finally, classification and 4-D box regression are optimized by Focaler-Wise-SIoU loss.
The principal architectural extensions beyond standard DETR are four components. EEConv replaces the second convolution in each residual block to obtain sharper boundary features. Space-to-Depth stride-free downsampling is inserted before each backbone stride-2 operation for lossless detail preservation. CSDMAM introduces a large receptive-field branch, a local branch, and a dual-domain FCSA branch. Focaler-Wise-SIoU modifies box regression with IoU-based regression, geometric penalties, and non-monotonic focal modulation (Cui, 7 Sep 2025).
This organization indicates that TinyDef-DETR is not a redesign of the Transformer core but a targeted enhancement of the visual front end and localization loss. That division of labor is consistent with the paper’s emphasis on small-defect perception rather than on changing DETR matching or decoding itself.
3. Detail-preserving and edge-aware feature extraction
The stride-free Space-to-Depth module, denoted SPD in the summary, operates on an input feature map with downsampling factor . It produces by re-partitioning each patch into channels: where denotes channel concatenation (Cui, 7 Sep 2025). No pixels are discarded. A subsequent convolution with stride 1 fuses these 0 channels back to a chosen 1: 2
The edge-enhanced convolution, EEConv, trains with four parallel branches 3, 4, corresponding to Central Difference Conv, Horizontal Difference Conv, Vertical Difference Conv, and standard 5 convolution. Their weights and biases are fused at training time: 6 The fused response after convolution, batch normalization, and activation is written as
7
For inference, batch normalization is absorbed using per-channel scale 8, yielding
9
The summary states that EEConv therefore collapses into a single 0 convolution plus 1 with zero overhead (Cui, 7 Sep 2025).
Taken together, SPD and EEConv target two early-stage failure modes of small-object detection: information removal during downsampling and the loss of weak contours. The ablation results reported for the model support the interpretation that these modules contribute substantially even before the addition of more elaborate attention blocks.
4. Cross-stage dual-domain multi-scale attention
CSDMAM is the principal context-aggregation mechanism in TinyDef-DETR. Given an input 2, a 3 convolution first produces 4 (Cui, 7 Sep 2025). The module then combines three branches.
The large branch uses three depthwise convolutions with kernels 5, 6, and 7, with 8, to model long-range context. The local branch uses a 9 depthwise convolution to preserve pixel details. The dual-domain FCSA branch transforms the normalized feature into the frequency domain through a 2D DFT: 0 where 1 is obtained from GAP followed by a 2 convolution. The inverse transform yields
3
where 4 is produced by another GAP and 5 convolution. A lightweight feature-guidance module then refines 6 (Cui, 7 Sep 2025).
The branches are summed, including the residual path: 7 Following CSP, the channels are split into a branch and an identity part and fused by a final 8 convolution: 9
The module is explicitly intended to jointly capture global and local information in both spatial and frequency domains (Cui, 7 Sep 2025). The reported ablation behavior is notable: CSDMAM alone produces a slight drop in 0 to 1, and the summary states that its gains emerge once combined with detail-preserving modules. This suggests that the attention mechanism depends on sufficiently informative low-level features and is not, in isolation, the main source of improvement.
5. Regression objective: Focaler-Wise-SIoU
TinyDef-DETR uses Focaler-Wise-SIoU for box regression. Let the predicted box be 2 and the target box be 3. The standard IoU is
4
To increase high-IoU discriminability, IoU is normalized with 5 and 6: 7
With center displacement 8, the angle penalty is defined as
9
The distance cost over the smallest enclosing box 0 is
1
The shape cost is
2
The core SIoU term is then
3
The difficulty-adaptive component is introduced through
4
where the expectation is computed with EMA and momentum 5. The non-monotonic focal modulation is written as
6
The final Focaler-Wise-SIoU loss is
7
The paper summary describes this loss as adapting regression toward moderately hard samples and augmenting IoU-based regression with geometric penalties and non-monotonic focal modulation (Cui, 7 Sep 2025). A plausible implication is that the regression signal is shaped not merely by overlap magnitude but also by center geometry and relative sample difficulty, which is particularly relevant for tiny defects where small coordinate shifts can dominate the overlap error.
6. Training setup, datasets, and empirical results
Two datasets are reported. CSG-ADCD contains 8 UAV images of transmission lines, split into 9k train, 0k val, and 1k test, with 2 instances over 3 defect classes; 4 of instances are small, defined as smaller than 5 pixels (Cui, 7 Sep 2025). VisDrone contains approximately 6k images plus 7 videos across 8 generic UAV categories and dense small objects. Preprocessing resizes the longer side to 9 pixels and pads to 0 with a gray border. The implementation uses PyTorch 2.3.1, CUDA 12.1, Ubuntu 20.04, and an RTX 3090 with 24 GB. Optimization uses AdamW for 1 epochs with the default DETR learning schedule and batch size as in RE-DETR. Evaluation uses COCO metrics: Precision, Recall, 2, 3, and the scale-sensitive 4 and 5 (Cui, 7 Sep 2025).
On CSG-ADCD, the summary reports the following quantitative comparison against the baseline RT-DETR-R18 and selected reference models.
| Model | GFLOPs | Key results |
|---|---|---|
| RT-DETR-R18 | 57.0 | Prec 0.369, Rec 0.177, 6 0.163, 7 0.071 |
| TinyDef-DETR | 65.3 | Prec 0.534, Rec 0.263, 8 0.275, 9 0.106 |
| YOLO 11m | 67.7 | 0 0.173 |
| DINO | – | 1 0.224 |
For TinyDef-DETR relative to RT-DETR-R18, the reported changes are 2 GFLOPs, 3 Precision, 4 Recall, 5 6, and 7 8 (Cui, 7 Sep 2025). The same summary states that, compared to top-performing YOLO variants and heavier DETR-based models, TinyDef-DETR achieves higher detection accuracy on small defects with a favorable FLOPs/accuracy trade-off.
On VisDrone, RT-DETR-R18 achieves 9, 0, 1, and 2, whereas TinyDef-DETR reaches 3, 4, 5, and 6 (Cui, 7 Sep 2025). The reported improvements are 7 in 8, 9 in 00, 01 in 02, and 03 in 04. The summary interprets this as confirmation that SPD, EEConv, CSDMAM, and Focaler-Wise-SIoU address generic small-object weaknesses rather than overfitting to power-line imagery.
7. Ablations, limitations, and relation to adjacent work
The ablation study is summarized over four innovations: EER, SPD, CSDMAM, and FWS. The baseline with none of the four innovations uses 05 GFLOPs and obtains Precision 06, Recall 07, 08 09, and 10 11 (Cui, 7 Sep 2025). Adding EER only preserves 12 GFLOPs while reaching Precision 13, Recall 14, 15 16, and 17 18. Adding SPD only gives 19 GFLOPs, Precision 20, Recall 21, 22 23, and 24 25. Adding FWS only keeps 26 GFLOPs and yields Precision 27, Recall 28, 29 30, and 31 32. Adding CSDMAM only raises cost to 33 GFLOPs and results in a slight drop in 34 to 35. The full combination reaches 36 GFLOPs, Precision 37, Recall 38, 39 40, and 41 42 (Cui, 7 Sep 2025).
The reported takeaways are that EER and SPD each give large precision and recall gains at near-zero extra cost, Focaler-Wise-SIoU significantly raises 43, and CSDMAM best leverages the detail-preserved, edge-enhanced features when used in combination. These findings counter a possible misconception that the attention block is the sole driver of performance; the ablation evidence instead attributes much of the improvement to the interaction between detail preservation, edge-sensitive representation, and regression design.
The stated limitations are class imbalance in CSG-ADCD, limited environmental diversity, modest performance on ultra-small objects smaller than 44 pixels or heavily occluded defects, and the need for pruning, quantization, or efficient-architecture search for real-time onboard UAV deployment on low-power hardware (Cui, 7 Sep 2025). The future directions listed in the summary are temporal and multi-view fusion, self-supervised or foundation-model pretraining on large aerial corpora, incorporation of physics or CAD-based structural priors, coupled detection and segmentation or keypoint refinement, semi- or weakly supervised learning for unlabeled video, and hardware-aware compression.
Within the broader DETR literature for tiny aerial targets, TinyDef-DETR can be contrasted with D45R-DETR, which addresses tiny object detection in aerial images using Dual-Domain Density Refinement, fusing spatial and frequency domain information and using a predicted density map to guide encoder sparsification and query initialization (Wen et al., 6 Jan 2026). This suggests a convergent research pattern: recent small-object DETR variants increasingly combine dual-domain representations with task-specific guidance mechanisms, but they differ in the locus of intervention. TinyDef-DETR focuses on lossless downsampling, edge enhancement, multi-scale dual-domain attention, and difficulty-adaptive regression, whereas D46R-DETR centers its refinement on density estimation and query/object matching (Wen et al., 6 Jan 2026).