Papers
Topics
Authors
Recent
Search
2000 character limit reached

TinyDef-DETR: UAV Power Line Defect Detection

Updated 10 July 2026
  • 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 32×3232\times 32 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 3×33\times 3 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 1×11\times 1 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 XRS×S×CX\in\mathbb R^{S\times S\times C} with downsampling factor scale=2\mathit{scale}=2. It produces XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)} by re-partitioning each 2×22\times 2 patch into channels: X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr), where \bigoplus denotes channel concatenation (Cui, 7 Sep 2025). No pixels are discarded. A subsequent 3×33\times 3 convolution with stride 1 fuses these 3×33\times 30 channels back to a chosen 3×33\times 31: 3×33\times 32

The edge-enhanced convolution, EEConv, trains with four parallel branches 3×33\times 33, 3×33\times 34, corresponding to Central Difference Conv, Horizontal Difference Conv, Vertical Difference Conv, and standard 3×33\times 35 convolution. Their weights and biases are fused at training time: 3×33\times 36 The fused response after convolution, batch normalization, and activation is written as

3×33\times 37

For inference, batch normalization is absorbed using per-channel scale 3×33\times 38, yielding

3×33\times 39

The summary states that EEConv therefore collapses into a single 1×11\times 10 convolution plus 1×11\times 11 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 1×11\times 12, a 1×11\times 13 convolution first produces 1×11\times 14 (Cui, 7 Sep 2025). The module then combines three branches.

The large branch uses three depthwise convolutions with kernels 1×11\times 15, 1×11\times 16, and 1×11\times 17, with 1×11\times 18, to model long-range context. The local branch uses a 1×11\times 19 depthwise convolution to preserve pixel details. The dual-domain FCSA branch transforms the normalized feature into the frequency domain through a 2D DFT: XRS×S×CX\in\mathbb R^{S\times S\times C}0 where XRS×S×CX\in\mathbb R^{S\times S\times C}1 is obtained from GAP followed by a XRS×S×CX\in\mathbb R^{S\times S\times C}2 convolution. The inverse transform yields

XRS×S×CX\in\mathbb R^{S\times S\times C}3

where XRS×S×CX\in\mathbb R^{S\times S\times C}4 is produced by another GAP and XRS×S×CX\in\mathbb R^{S\times S\times C}5 convolution. A lightweight feature-guidance module then refines XRS×S×CX\in\mathbb R^{S\times S\times C}6 (Cui, 7 Sep 2025).

The branches are summed, including the residual path: XRS×S×CX\in\mathbb R^{S\times S\times C}7 Following CSP, the channels are split into a branch and an identity part and fused by a final XRS×S×CX\in\mathbb R^{S\times S\times C}8 convolution: XRS×S×CX\in\mathbb R^{S\times S\times C}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 scale=2\mathit{scale}=20 to scale=2\mathit{scale}=21, 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 scale=2\mathit{scale}=22 and the target box be scale=2\mathit{scale}=23. The standard IoU is

scale=2\mathit{scale}=24

To increase high-IoU discriminability, IoU is normalized with scale=2\mathit{scale}=25 and scale=2\mathit{scale}=26: scale=2\mathit{scale}=27

With center displacement scale=2\mathit{scale}=28, the angle penalty is defined as

scale=2\mathit{scale}=29

The distance cost over the smallest enclosing box XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}0 is

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}1

The shape cost is

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}2

The core SIoU term is then

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}3

The difficulty-adaptive component is introduced through

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}4

where the expectation is computed with EMA and momentum XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}5. The non-monotonic focal modulation is written as

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}6

The final Focaler-Wise-SIoU loss is

XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}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 XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}8 UAV images of transmission lines, split into XRS2×S2×(C22)X'\in\mathbb R^{\frac S2\times\frac S2\times (C\cdot 2^2)}9k train, 2×22\times 20k val, and 2×22\times 21k test, with 2×22\times 22 instances over 2×22\times 23 defect classes; 2×22\times 24 of instances are small, defined as smaller than 2×22\times 25 pixels (Cui, 7 Sep 2025). VisDrone contains approximately 2×22\times 26k images plus 2×22\times 27 videos across 2×22\times 28 generic UAV categories and dense small objects. Preprocessing resizes the longer side to 2×22\times 29 pixels and pads to X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),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 X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),1 epochs with the default DETR learning schedule and batch size as in RE-DETR. Evaluation uses COCO metrics: Precision, Recall, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),2, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),3, and the scale-sensitive X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),4 and X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),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, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),6 0.163, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),7 0.071
TinyDef-DETR 65.3 Prec 0.534, Rec 0.263, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),8 0.275, X(u,v,:)=i=01j=01X(2u+i,  2v+j,  :),X'(u,v,:) =\bigoplus_{i=0}^{1}\bigoplus_{j=0}^{1} X\bigl(2u+i,\;2v+j,\;:\bigr),9 0.106
YOLO 11m 67.7 \bigoplus0 0.173
DINO \bigoplus1 0.224

For TinyDef-DETR relative to RT-DETR-R18, the reported changes are \bigoplus2 GFLOPs, \bigoplus3 Precision, \bigoplus4 Recall, \bigoplus5 \bigoplus6, and \bigoplus7 \bigoplus8 (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 \bigoplus9, 3×33\times 30, 3×33\times 31, and 3×33\times 32, whereas TinyDef-DETR reaches 3×33\times 33, 3×33\times 34, 3×33\times 35, and 3×33\times 36 (Cui, 7 Sep 2025). The reported improvements are 3×33\times 37 in 3×33\times 38, 3×33\times 39 in 3×33\times 300, 3×33\times 301 in 3×33\times 302, and 3×33\times 303 in 3×33\times 304. 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 3×33\times 305 GFLOPs and obtains Precision 3×33\times 306, Recall 3×33\times 307, 3×33\times 308 3×33\times 309, and 3×33\times 310 3×33\times 311 (Cui, 7 Sep 2025). Adding EER only preserves 3×33\times 312 GFLOPs while reaching Precision 3×33\times 313, Recall 3×33\times 314, 3×33\times 315 3×33\times 316, and 3×33\times 317 3×33\times 318. Adding SPD only gives 3×33\times 319 GFLOPs, Precision 3×33\times 320, Recall 3×33\times 321, 3×33\times 322 3×33\times 323, and 3×33\times 324 3×33\times 325. Adding FWS only keeps 3×33\times 326 GFLOPs and yields Precision 3×33\times 327, Recall 3×33\times 328, 3×33\times 329 3×33\times 330, and 3×33\times 331 3×33\times 332. Adding CSDMAM only raises cost to 3×33\times 333 GFLOPs and results in a slight drop in 3×33\times 334 to 3×33\times 335. The full combination reaches 3×33\times 336 GFLOPs, Precision 3×33\times 337, Recall 3×33\times 338, 3×33\times 339 3×33\times 340, and 3×33\times 341 3×33\times 342 (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 3×33\times 343, 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 3×33\times 344 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 D3×33\times 345R-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 D3×33\times 346R-DETR centers its refinement on density estimation and query/object matching (Wen et al., 6 Jan 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TinyDef-DETR.