Next Article in Journal
Integrating Multi-Season Sentinel-1/2 and Topographic Features to Improve Tree Species Diversity Estimation Accuracy
Previous Article in Journal
Shape-Prior Dynamic Refinement Network with Diffusion Wavelets for Fine-Grained Ship Detection in Remote Sensing Images
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery

School of Missile Engineering, Rocket Force University of Engineering, Xi’an 710025, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2026, 18(16), 2650; https://doi.org/10.3390/rs18162650
Submission received: 2 July 2026 / Revised: 4 August 2026 / Accepted: 5 August 2026 / Published: 7 August 2026
(This article belongs to the Section Remote Sensing Image Processing)

Highlights

What are the main findings?
  • We develop MPC-DETR, a Multi-scale Patch Context Transformer that incorporates LGAF, DCFI, and PGMFF to improve small-object representation in UAV imagery.
  • Experimental results on VisDrone2019 demonstrate the effectiveness of the proposed model, with mAP50 and mAP50–95 reaching 52.5% and 33.3%.
What are the implications of the main findings?
  • MPC-DETR effectively tackles the challenges of weak feature responses, fine-grained information loss, dense object distributions, and complex background interference in UAV small-object detection.
  • MPC-DETR is suitable for practical UAV visual perception tasks, as it maintains real-time inference and generalizes well across different imaging modalities, including visible-light and infrared UAV datasets.

Abstract

Small-object detection in unmanned aerial vehicle (UAV) imagery remains challenging because target objects often occupy only a few pixels, exhibit weak feature responses, and are easily obscured by complex backgrounds. These aspects significantly limit the effectiveness of end-to-end detection systems. To overcome these limitations and enhance the detection accuracy in challenging UAV settings, this paper proposes MPC-DETR, a Multi-scale Patch Context Transformer that is based on RT-DETR. To begin with, a Local-Global Attention Fusion Module (LGAF) is proposed to capture fine-grained local features and long-range semantic relations of small objects. LGAF enhances feature representation through a lightweight multi-branch synergistic attention mechanism while introducing limited computational overhead. Second, a Dilated Context-Aware Feature Interaction Module (DCFI) is proposed to enhance the discriminative capability of high-level features in cluttered backgrounds and densely populated small-object scenes. DCFI allows more efficient feature aggregation and contextual comprehension through multi-scale contextual modeling and scale-adaptive feature interaction. Third, a Patch-Guided Multi-scale Feature Fusion Module (PGMFF) is developed to create a patch-guided contextual fusion approach that combines shallow, high-resolution features with deeper semantic information. This process improves the maintenance and representation of fine object information and minimizes information loss in feature propagation. The experimental results on the VisDrone2019 dataset show that MPC-DETR has an mAP50 and mAP50–95 of 52.5% and 33.3%, respectively, which are 4.6 and 4.0 percentage points higher than the baseline model. Further analyses of the UAVDT and HIT-UAV datasets also support the high generalization potential of the suggested method to various UAV-based small-object detection problems. In general, the findings suggest that MPC-DETR provides precise, strong, and efficient small-object detection in complicated UAV images.

1. Introduction

With their ability to operate flexibly, respond quickly to field demands, and acquire imagery over large spatial ranges, unmanned aerial vehicles (UAVs) have become essential data acquisition platforms in remote sensing applications. Object detection using UAVs has found wide application in different applications, including traffic surveillance [1,2], emergency rescue [3,4], agricultural surveillance [5,6], and military surveillance [7,8]. Compared with conventional ground-level imagery, UAV imagery is generally captured from top-down or oblique perspectives. It is characterised by substantial object-scale variation, dense object distributions, background clutter, and frequent occlusion. These properties pose serious problems to proper object detection. Among these challenges, small-object detection is particularly critical in UAV remote sensing. When imaging under high-altitude conditions, targets can be represented by a few pixels and have low texture content, blurred edges, and low contrast with the background. In this study, small objects are quantitatively defined according to the COCO-style scale criterion as instances with a bounding-box area smaller than 322 pixels. Consequently, detection models often fail to learn discriminative enough feature representations, resulting in missed detections, false alarms, and inaccurate localization.
Over the past few years, both CNN-based [9] and Transformer-based [10] object detection methods have made impressive progress in object detection tasks. CNN-based detectors primarily rely on convolutional operations to extract local features, textures, and object boundaries. However, the limited receptive fields of convolution and repeated downsampling in deep networks may cause the loss of fine-grained details. In contrast to conventional detectors, Transformer-based methods use self-attention to model dependencies among spatially distant features. Despite these advantages, their application to small-object detection remains challenging because of the high computational cost. With its streamlined detection pipeline, RT-DETR [11] provides competitive detection accuracy without sacrificing inference efficiency. However, several limitations remain. First, downsampling operations that are repeated in the backbone network are likely to deteriorate the positional and boundary information of small objects. Second, insufficient cross-scale context modeling in the original feature interaction module restricts its capacity to separate small targets from complex backgrounds. Third, shallow fine-grained features are not effectively retained and transferred in the existing multi-scale fusion architecture, which weakens small-object representation. To overcome these challenges, MPC-DETR, a Multi-scale Patch Context Transformer, is introduced for UAV-based small-object detection. The major contributions are as follows:
  • A Local-Global Attention Fusion Module (LGAF) is proposed to improve the network’s ability to capture fine-grained local features and long-range semantic dependencies associated with small objects. The module enhances feature representation by adding multi-branch synergistic attention to a lightweight feature extraction framework, without compromising computational efficiency.
  • A Dilated Context-Aware Feature Interaction Module (DCFI) is proposed to enhance the discriminative ability of high-level features in complicated backgrounds and high-density small-object conditions. The module does this by using multi-scale contextual modeling and scale-adaptive feature interaction, which allows better aggregation and use of contextual information.
  • A Patch-Guided Multi-scale Feature Fusion Module (PGMFF) is designed to establish a patch-guided contextual fusion strategy that combines shallow high-resolution features with deeper semantic representations. This design improves the conservation and expression of small-object fine-grained details during multi-scale feature fusion, and minimizes the loss of information during the process of feature propagation.

2. Related Work

2.1. CNN-Based Methods for Small-Object Detection in UAV Imagery

The evolution of modern object detection has been largely driven by detectors constructed with CNN-based architectures. Ren et al. [12] introduced Faster R-CNN, where an RPN first generates candidate regions, which are subsequently classified and localized through bounding-box regression. Even though Faster R-CNN has high localization accuracy, the two-stage detection pipeline is relatively complex, which restricts inference efficiency. To further enhance the quality of detection, Cascade R-CNN [13] was proposed to gradually increase the IoU thresholds across multiple detection stages, thus improving the quality of detected proposals. The multi-stage architecture, however, presents significant computational complexity and inference overhead. Lin et al. [14] introduced RetinaNet, which adopts Focal Loss to alleviate the severe foreground–background class imbalance in object detection. This design greatly enhances the detection performance and still has a reasonably high inference efficiency. To meet the demand for efficient object detection, the YOLO series [15] and SSD [16] have become common choices in UAV imagery analysis. Although these methods provide faster inference, they remain limited in detecting distant small objects in aerial imagery, partly because of the restricted receptive fields of convolutional operations. To overcome the limitations of small object sizes, high-density distributions of objects, and the interference of background features in UAV imagery, many studies have suggested specialized enhancements to small-object detection. Chen et al. [17] developed DTSSNet by integrating feature refinement and scale-sensitive learning strategies. In particular, an attention-enhanced feature module was developed to enhance object representations at various scales by combining channel information and object-related semantic cues. Wang et al. [18] introduced FLDet, a lightweight detection system that is aimed at enhancing efficiency in complex aerial settings. The method employs a scale-sparse detection head with two branches for multi-scale objects and a partially interactive neck to reduce redundant computations during feature fusion. Tian et al. [19] designed MFDAFF-Net by incorporating multi-scale frequency-domain perception and dual-attention-guided feature fusion. Xiao et al. [20] introduced FBRT-YOLO, incorporating a feature complementary mapping module that combines fine-grained spatial information from shallow layers with high-level semantic representations from deeper layers. By preserving texture, edge, and spatial cues that may be weakened during successive downsampling, this method enhances the detection of small objects.
In general, current CNN-based detection techniques have considerable benefits in the real-time inference efficiency and local feature representation. However, these methods remain inadequate for modeling contextual interactions across distant spatial regions. In addition, as features pass through successive downsampling stages in deep convolutional networks, small-object details such as boundaries, textures, and location-related cues are progressively weakened, making accurate detection more difficult.

2.2. Transformer-Based Methods for Small-Object Detection in UAV Imagery

The high-quality global modeling of Transformers has created new opportunities in detecting small objects. Carion et al. [21] suggested DETR, which removes manually designed elements that are typically present in traditional detectors. In order to reduce computational complexity, RT-DETR provides an efficient object detection framework by streamlining the overall detection pipeline within a unified architecture. Based on these developments, other researchers have gone on to enhance Transformer-based detectors in terms of feature extraction, multi-scale interaction, and adaptation to UAV-specific scenarios. Zheng et al. [22] proposed Focus-DETR, which employs a cross-scale foreground selection mechanism to filter out large amounts of redundant background information from high-resolution feature maps. This, together with a dual-attention architecture to model candidate foreground regions, makes the algorithm less expensive to compute, and more focused on small-object regions by the model. Wang et al. [23] proposed BAP-DETR, which integrates a bi-partition attention processing mechanism with a dual-fusion encoder to reduce semantic inconsistencies during multi-scale feature fusion. Wu et al. [24] introduced ED-DETR, which combines convolutional operations with Transformer architectures to capture multi-scale features and introduce an edge-guided branch to refine the contour and structural representations of small objects. Chen et al. [25] introduced Freq-DETR, which strengthens weak responses from small targets through frequency-domain processing while suppressing interference from complex background textures. Zuo et al. [26] suggested EAV-DETR that explicitly represents arbitrary viewpoints and pose variations in UAV imagery, thus improving the detector’s adaptability to viewpoint variations and spatially imbalanced object distributions. To further resolve the background interference and feature fusion issues, Wang et al. [27] proposed CFP-DETR to address background interference and feature-fusion limitations. Zhang et al. [28] proposed MPI-DETR that uses a dual-stream ranked self-attention mechanism to combine spatially dispersed small-object information based on the intensity of feature responses. Moreover, its prompt-based multi-granularity fusion strategy uses deep semantic features to guide the refinement of shallow features. This strategy suppresses background interference and improves small-object representation. While Transformer-based detectors are well suited for global context modeling, their ability to detect small objects is still affected by several unresolved issues.
Overall, Transformer-based approaches have achieved substantial progress, although several limitations remain. To begin with, most existing methods insufficiently preserve low-level fine-grained features in the initial phases of backbone feature extraction, causing essential discriminative information for small-object representation to be progressively weakened. Second, the majority of current multi-scale feature fusion methods are based on feature concatenation or element-wise addition. Even though these operations make it easier to integrate information at various levels of features, they can also add a lot of background noise to the process of adding shallow features, which can diminish the discriminative ability of small-object representations. Therefore, achieving an effective balance between preserving shallow details and modeling high-level context continues to pose a key challenge for small-object detection.

3. Methodology

3.1. Overview of MPC-DETR

We propose MPC-DETR, a detection framework tailored to small targets in challenging UAV scenes. As shown in Figure 1, MPC-DETR is designed with three major optimization directions, namely enhanced backbone feature extraction, improved feature interaction in the encoder, and more effective multi-scale feature fusion. First, the LGAF is constructed within the backbone network. By incorporating the proposed MSAFormerBlock, LGAF enables the model to better capture fine-grained local textures and global semantic dependencies related to small objects. Second, DCFI is introduced into the encoder to enhance high-level semantic feature interaction through dilated contextual modeling. Lastly, to better preserve small-object details, PGMFF combines high-resolution shallow features with semantically rich deep features. The synergy among these modules enables MPC-DETR to deliver more reliable and accurate detection results in challenging UAV-based aerial environments.

3.2. LGAF

Small objects in UAV imagery are characterised by limited spatial extent, weak texture information, and substantial background interference. When only conventional convolutional operations are used, the model cannot effectively capture long-range contextual dependencies. Consequently, small-object regions may exhibit insufficient semantic responses. We introduce LGAF to enhance small-object representation, as shown in Figure 2. LGAF retains the lightweight multi-branch design of C2f while replacing its Bottleneck units with the proposed MSAFormerBlock. This design maintains fine-grained local information and models long-range dependencies among spatial locations, thus enhancing the representation power of high-level semantic features of small objects.
MSAFormerBlock is built around the proposed Multi-branch Synergistic Attention (MSA) module, whose structure is illustrated in Figure 3. To address the challenges of weak feature responses in UAV imagery, MSA initially splits the input feature map into patches and flattens them into a feature sequence. Positional embeddings are then added to preserve spatial location information. The input feature is simultaneously processed by three local attention branches, namely channel attention, pixel attention, and spatial attention, while the position-enhanced feature sequence is fed into a global multi-head self-attention branch. In particular, the channel-attention branch focuses on informative semantic channels, the pixel-attention branch reinforces fine-grained local responses, and the spatial-attention branch highlights discriminative spatial regions. Meanwhile, the multi-head self-attention branch captures long-range contextual dependencies between spatially distant regions. The outputs of the pixel-attention and channel-attention branches are first aggregated through matrix multiplication and activated by a Sigmoid function. The resulting attention map is then multiplied element-wise with the spatial-attention feature to construct a locally fused representation. Subsequently, this representation is integrated with the multi-head self-attention output and the residual feature through element-wise summation, producing the final output feature.
Overall, MSAFormerBlock enables LGAF to integrate local details, positional information, and global contextual dependencies. The proposed module enhances semantic responses in small-object regions.

3.3. DCFI

To address the shortcomings of the AIFI, including high computational cost, inability to perceive local details, and inability to model multi-scale context in UAV small-object detection, we introduce DCFI, as shown in Figure 4. DCFI primarily consists of Multi-scale Convolutional Attention (MSCA) [29], the proposed Dilated Feed Forward Network (DFFN), and Monte Carlo Attention (MCAttn) [30]. DCFI can boost the fine-grained perception ability of the model in small-object regions by combining multi-scale spatial context modeling, local neighborhood information enhancement, and scale-adaptive attention selection.
In the first stage, the input feature X is processed by MSCA for spatial context modeling. MSCA initially employs a 5 × 5 depth-wise convolution to extract basic local features. Subsequently, three groups of strip depth-wise convolutions with kernel sizes of 1 × 7 and 7 × 1, 1 × 11 and 11 × 1, and 1 × 21 and 21 × 1 are used to construct spatial receptive fields at various scales, thus capturing contextual information ranging from local details to global structures. A 1 × 1 convolution is then applied to generate a spatial attention map, which is utilized to reweight the input feature and obtain the output feature X 1 . This MSCA-based modeling enhances the responses of small objects and their surrounding informative regions while maintaining relatively low computational overhead.
In the second stage, the feature X 1 is fed into DFFN for local contextual enhancement. Unlike a conventional FFN, DFFN introduces dilated convolutions into the feed-forward mapping process to enlarge the receptive field and strengthen the modeling capability for local neighborhood information. The detailed process is formulated in Equations (1) and (2):
H 1 = GeLU ( Conv r = 1 ( LN ( X 1 ) ) )
X 2 = Conv r = 2 ( H 1 )
where H 1 denotes the intermediate feature, X 2 denotes the output feature, and r denotes the dilation rate. Conv r = 1 ( ) and Conv r = 2 ( ) denote dilated convolution operations with dilation rates of 1 and 2, respectively. By first modeling information within local neighborhoods and subsequently enlarging the receptive field, DFFN further enriches the contextual information surrounding small objects, thereby providing more comprehensive semantic support for the subsequent attention computation.
In the third stage, MCAttn is introduced for scale-adaptive feature enhancement. In MCAttn, the input feature X 2 is first processed by average pooling with three output sizes, namely 1 × 1, 2 × 2, and 3 × 3, to generate multi-scale attention responses, as formulated in Equation (3):
B i = ϕ i ( AvgPool i × i ( X 2 ) ) ,       i { 1 , 2 , 3 }
where AvgPool i × i ( ) denotes average pooling with an output size of i × i , and ϕ i represents the operation used to transform the pooled feature into an attention response compatible with X 2 .
Then, the multi-scale attention responses B 1 , B 2 , and B 3 are processed differently during training and inference. During training, one attention response is randomly selected from the three scales. The attention response during training is formulated in Equation (4):
A m t r a i n X 2 = p 1 B 1 + p 2 B 2 + p 3 B 3
where p 1 , p 2 , and p 3 are one-hot sampling indicators satisfying p i 0 , 1 and p 1 + p 2 + p 3 = 1 .
During validation and testing, random sampling is disabled to ensure deterministic and reproducible inference. Instead, the three scale-specific attention responses are averaged, as formulated in Equation (5):
A m t e s t X 2 = 1 3 B 1 + B 2 + B 3
In this manner, MCAttn uses stochastic scale selection during training to improve scale robustness, while employing deterministic multi-scale aggregation during inference. This strategy avoids dependence on a fixed pooling scale during training and ensures stable and reproducible predictions during testing. Since no stochastic scale selection is retained during inference, this deterministic aggregation eliminates the run-to-run variance attributable to random scale sampling.
Finally, the selected attention map is used to reweight the input feature, producing the enhanced feature X 3 , as formulated in Equation (6):
X 3 = X 2 σ A m X 2
where represents element-wise multiplication and σ indicates the sigmoid activation function. In this way, MCAttn avoids relying on a fixed pooling scale and improves the scale adaptability of the feature representation.
In the fourth stage, to further enhance the nonlinear representation capability and local contextual modeling ability of the output features, the MCAttn output feature X 3 is fed into the DFFN once again, producing the final output feature F o u t of DCFI.
In summary, through the coordinated integration of MSCA, DFFN, and MCAttn, DCFI achieves multi-scale spatial context modeling, enhanced local neighborhood information aggregation, and scale-adaptive attention selection. Compared with the original AIFI module, DCFI reduces the computational overhead associated with global self-attention while improving fine-grained feature perception and enhancing adaptability to object-scale variations in UAV imagery.

3.4. PGMFF

In UAV small-object detection, higher-level features contain rich semantic information but lack sufficient spatial details, whereas low-level features preserve abundant fine-grained information but exhibit relatively weak semantic representation. Directly fusing these features may introduce substantial background noise. We propose PGMFF, whose architecture is illustrated in Figure 5. First, SPDConv [31] is applied to the low-level feature S 2 , thereby reducing the spatial resolution while preserving fine-grained features. Subsequently, the features S 3 , S 4 , and F 5 are progressively fused. Specifically, F 5 is first upsampled and concatenated with S 4 . The resulting feature is then further upsampled and integrated with S 3 and the processed S 2 feature. By incorporating low-level detailed information and performing top-down multi-scale feature fusion, PGMFF enhances feature representation for small objects.
To further improve the fused features’ discriminative capability, we propose a Patch-Guided Fusion Block (PGFB) within PGMFF. The core component of PGFB is the Patch-Guided Context Attention (PGCA), whose architecture is displayed in Figure 6. Specifically, let the input feature be represented as F . At the initial stage, the channel dimension of the input feature is adjusted using a pointwise convolution, producing the intermediate feature F 1 , as formulated in Equation (7):
F 1 = PWConv ( F )
Subsequently, PGCA represents the input feature from three complementary views through local patch perception, global patch perception, and cascaded convolution. The local branch focuses on small patch regions, allowing it to capture edge structures and texture patterns. The global patch-aware branch adopts a larger patch size to incorporate broader contextual information surrounding the objects. Meanwhile, the cascaded convolution branch further enhances local spatial representation capability. The 3 branches’ outputs are denoted as F local , F global , and F conv , respectively, as formulated in Equations (8)–(10):
F local = PA 2 ( F 1 )
F global = PA 4 ( F 1 )
F conv = SC ( F 1 )
where PA 2 denotes the local perception branch with a patch size of 2, PA 4 denotes the global context perception branch with a patch size of 4, and SC ( ) denotes the cascaded convolution branch composed of multiple 3 × 3 convolution layers.
For each patch-aware branch, the input feature is first split into fixed-size, non-overlapping patch regions. Feature aggregation and attention weight generation are then carried out within individual patches. By locating salient responses inside each patch, this process guides the model toward regions that contain useful small-object cues. The enhanced patch features are then restored to their original spatial positions to obtain scale-specific representations. The various branches’ outputs are combined through element-wise addition to create a multi-branch representation F m that integrates local details, contextual information, and convolutional spatial features, as defined in Equation (11):
F m = F local + F global + F conv
After obtaining the fused feature F m , PGCA applies the Global Channel-Spatial Attention (GCSA) module for further feature refinement. GCSA optimizes the fused feature in three dimensions, namely, channel relationship modeling, inter-channel information interaction and spatial region enhancement. On the one hand, the module enhances the responses of informative semantic channels and facilitates information exchange across channels. Spatial attention on the other hand is used to highlight areas with small objects and inhibit irrelevant responses of complex backgrounds. Finally, the improved feature F g is processed by Dropout, BN, and ReLU activation to obtain the final output F out , which is mathematically defined in Equation (12):
F out = ReLU ( BN ( Dropout ( F g ) ) )
Overall, PGMFF can effectively combine local texture, spatial positional, and global contextual information by adding low-level detailed features, a multi-scale patch-aware mechanism, and GCSA-based attention enhancement, which enhances the feature representation ability in complex aerial scenes.

4. Experiments

4.1. Datasets

As a large-scale benchmark for UAV vision, VisDrone2019 [32] provides images acquired from multiple real-world environments, covering residential, urban road, and rural scenarios. The dataset includes various object categories, including pedestrians, motorcycles, trucks, tricycles, bicycles, cars, and buses, and is defined by a rich set of object categories and a variety of scene types. Due to the relatively high imaging altitude of UAV platforms, the objects are represented by a limited number of pixels, which is why it is a good fit in the research of small-object detection. The official dataset split is used in the experiments, which includes 6471 images to train, 548 images to validate, and 1610 images to test.
UAVDT [2] mainly contains three types of objects, namely buses, trucks, and cars. It has 24,778 training images and 15,598 validation images. Characteristics of the dataset include complicated traffic scenes, large object-scale variations, and harsh occlusions. The high proportion of small targets makes UAVDT suitable for evaluating small-object detection performance.
HIT-UAV [33] primarily contains infrared UAV imagery with weak target thermal responses and strong background interference. These characteristics make it suitable for evaluating aerial small-object detection performance. The dataset contains 2898 images, 2029 of which are training, 290 validation, and 579 testing.

4.2. Experimental Settings

All experiments were conducted on the VirtAI cloud platform using a B1.medium instance equipped with 16 GB of system memory and 12 GB of GPU memory. The software environment included Ubuntu 22.04, Python 3.10, PyTorch 2.0.1, and CUDA 11.8 for GPU acceleration. During training, the number of epochs was set to 200, the batch size was set to 8, and four workers were employed for data loading. AdamW was adopted as the optimizer, with an initial learning rate of 1 × 10−4 and a weight decay of 1 × 10−4. All input images were uniformly resized to 640 × 640 pixels.

4.3. Evaluation Metrics

In order to fully assess the detection performance and computational efficiency, GFLOPs, Params, mAP50, mAP50–95, R, and P are used as evaluation metrics. Among these metrics, mAP measures the overall detection performance across all categories, whereas mAP50 and mAP50–95 evaluate detection accuracy at different IoU thresholds. P is the fraction of correctly predicted positive samples out of all samples that are predicted to be positive, and R is the fraction of correctly detected positive samples out of all ground-truth positive samples. Params is a measurement of the size and structural complexity of the model, and GFLOPs is a measure of the cost of inference. APi indicates the i-th category’s average precision. The mAP, P, and R are calculated using Equations (13)–(15):
mAP = 1 N i = 1 N A P i
P = TP TP + FP
R = TP TP + FN
where FP and TP indicate the number of false and true positives, respectively; and FN denotes the number of false negatives.
To specifically evaluate the detection performance for small objects, we further report the Average Precision for small objects (APS) following the COCO evaluation protocol. Specifically, objects with a ground-truth bounding-box area smaller than 322 pixels are regarded as small objects.

4.4. Ablation Experiments

A series of ablation experiments on the VisDrone2019 dataset was designed to examine the influence of the proposed modules on small-object detection in UAV imagery. The LGAF, DCFI, and PGMFF were added to it separately and in combination. Table 1 shows the ablation results of various combinations of modules, where √ means that the respective module is used and—means that it is not used.
The single-module results show that LGAF, DCFI, and PGMFF all improve the detection performance of the baseline model. LGAF enhances mAP50 by 1.5 percentage points, from 47.9% to 49.4%. Meanwhile, APS increases from 18.4% to 19.2%, representing an improvement of 0.8 percentage points. These results indicate that LGAF effectively improves the backbone’s representation of small objects by integrating fine-grained local details with global semantic information. DCFI enhances mAP50 to 49.1%, a 1.2 percentage point enhancement over the baseline. Its APS also increases to 19.0%, indicating that dilated contextual modeling and scale-adaptive feature interaction improve the extraction of contextual information associated with small objects in complex backgrounds. PGMFF is the most significantly improved individual module, with mAP50 improving to 49.8% and R improving to 48.3%. In addition, PGMFF increases APS to 19.7%, which is the highest result among the single-module configurations. These findings indicate that the use of shallow high-resolution features and patch-guided multi-scale fusion are effective in reducing the loss of fine-grained small-object information. The complementarity of the suggested components is also evidenced by the dual-module results. The combination of LGAF and DCFI gives a higher mAP50 of 50.8% than either of the configurations with either of the modules. This combination also achieves an APS of 19.9%. This indicates that backbone feature improvement and contextual interaction modeling offer complementary feature representation improvements. The combination of LGAF and PGMFF has the highest performance of the two-module settings, with a mAP50 of 51.2% and an R of 49.5%, which suggests that the combination of improved backbone capabilities and shallow high-resolution information is especially useful in small-object localization and recognition. The combination of DCFI and PGMFF results in mAP50 of 50.9%. Meanwhile, its APS reaches 20.2%, confirming that contextual information modeling and multi-scale feature fusion jointly improve the discrimination between small objects and complex backgrounds. The model has the highest overall detection performance when LGAF, DCFI, and PGMFF are used together. The full model increases mAP50 from 47.9% to 52.5%, outperforming the baseline by 4.6 percentage points. In the meantime, mAP50–95 rises by 4.0 percentage points. More importantly, APS increases from 18.4% to 20.9%. P and R also improve to 61.9% and 46.8% to 65.0% and 51.2%, respectively, which means that both detection accuracy and object retrieval ability are improved. Compared with the baseline, the complete model increases the computational complexity from 57.1 to 70.2 GFLOPs and reduces the inference speed from 60 to 54 FPS; nevertheless, it still maintains real-time inference while achieving substantial improvements in detection accuracy.

4.5. Comparative Experiments

4.5.1. Comparison with Mainstream Detectors

MPC-DETR was compared with mainstream detectors on VisDrone2019 to evaluate its advantages in UAV small-object detection. The compared methods are Cascade R-CNN, Faster R-CNN, RetinaNet, YOLOv11 [34], YOLOv12 [35], YOLOv13 [36] and a number of recently developed UAV object detectors, including RT-DETR, DDQ-DETR [37], DTSSNet, FLDet, MCIA-YOLO [38], MFDAFF-Net, DEIM [39], RTUAV-YOLO [40], UAV-DETR [41], and MSA-DETR [42]. Since MPC-DETR is directly developed from RT-DETR, both models were independently trained ten times using different random seeds under identical experimental settings, and their mean performance and standard deviations are reported in Table 2.
Table 2 demonstrates that the performance of conventional two-stage detectors is relatively low in UAV aerial scenes. Cascade R-CNN has mAP50 scores of 39.5, which is significantly lower than the proposed method. Their APS values are also relatively low, reaching only 10.2% and 9.6%, respectively, indicating their limited capability to detect small objects in UAV imagery. YOLOv11, YOLOv12, and YOLOv13 achieve relatively high inference speeds, but their detection accuracy remains limited. For example, YOLOv11-L achieves a mAP50 of 43.8% and an APS of 13.8%, which is still considerably lower than that of MPC-DETR. This finding suggests that traditional convolution-based feature extraction algorithms might not be able to effectively detect small objects in a complicated background. Compared with the RT-DETR baseline, MPC-DETR improves mAP50 from 47.9% to 52.5%, corresponding to a gain of 4.6 percentage points. Meanwhile, mAP50–95 increases from 29.3% to 33.3%, and APS improves from 18.4% to 20.9%, representing gains of 4.0 and 2.5 percentage points, respectively. The consistently small standard deviations obtained across ten independent runs demonstrate that MPC-DETR exhibits stable detection performance under different random initializations. MPC-DETR is also highly competitive in comparison to the recently developed Transformer-based detectors. In particular, it achieves higher mAP50 by 0.9 and 0.3 percentage points over UAV-DETR and MSA-DETR, respectively, which once again confirms its usefulness in detecting small objects using UAVs. Moreover, MPC-DETR achieves the highest P and R among the compared methods, indicating fewer false positives and missed detections. It also achieves the highest APS of 20.9%, confirming its superior detection and localization performance for small objects. Compared to other models, MPC-DETR has 25.8 M parameters, requires 70.2 GFLOPs, and has an inference rate of 54 FPS. Its computational cost is higher than that of some lightweight models, but it still has relatively high real-time performance. Overall, the proposed method delivers reliable detection performance with manageable computational cost, indicating its practical value in challenging UAV-based aerial environments.

4.5.2. Cross-Dataset Generalization Experiments

Using RT-DETR as the reference model, we further assessed the generalization performance of MPC-DETR across the UAVDT and HIT-UAV datasets. Table 3 and Table 4 summarize the comparison results. On each dataset, both RT-DETR and MPC-DETR were trained in ten independent runs with distinct random seeds while all other experimental conditions were kept unchanged, and their mean performance and standard deviations are reported in the corresponding tables. On the UAVDT dataset, MPC-DETR achieves an mAP50 of 35.6%, which is 3.1 percentage points higher than the 32.5% achieved by RT-DETR. Meanwhile, R increases from 37.6% to 40.6%, indicating that the proposed approach enhances the ability to detect small objects in complex aerial traffic scenarios. More importantly, APS increases from 10.7% to 12.6%, corresponding to an improvement of 1.9 percentage points. These results demonstrate that MPC-DETR retains its advantage in small-object detection on the UAVDT dataset. On the HIT-UAV dataset, MPC-DETR achieves an mAP50 of 76.4%, outperforming the 74.4% achieved by RT-DETR by 2.0 percentage points. Meanwhile, mAP50–95 and APS increase from 48.0% to 50.8% and from 39.0% to 40.8%, yielding gains of 2.8 and 1.8 percentage points, respectively. These findings demonstrate that the proposed approach improves both feature representation and localization accuracy for small targets in infrared UAV images. The consistently small standard deviations observed across the ten independent runs demonstrate that MPC-DETR exhibits consistent detection performance across different random initializations. Overall, the consistent improvements achieved by MPC-DETR on both UAVDT and HIT-UAV highlight its strong generalization capability across different UAV detection scenarios and imaging modalities.

4.5.3. Comparison with Deterministic Multi-Scale Feature Routing Methods

To further assess the contribution of the stochastic scale-selection mechanism in MCAttn, we compared it with several deterministic multi-scale feature weighting and routing methods, including equal averaging, iAFF-based attentional fusion [43], DyHead-style scale-aware routing [44], and DPConv-based dynamic scale routing [45]. In all experiments, the complete MPC-DETR architecture was retained, and only the scale-processing component between the two DFFN blocks in DCFI was replaced. The remaining network components, training settings, dataset split, and evaluation protocol were kept unchanged to ensure a fair comparison. Equal averaging assigns identical weights to the three contextual scale responses during both training and inference. The iAFF-based method progressively integrates different scale responses through input-conditioned attention. DyHead-scale predicts normalized importance weights for different contextual scales and performs deterministic soft routing. DPConv dynamically adjusts the contributions of feature branches with different receptive fields according to the input features. For a fixed model and input, all these comparison methods produce deterministic outputs. In contrast, MCAttn randomly selects one contextual scale during training and deterministically averages all scale responses during inference.
As shown in Table 5, the deterministic routing methods generally outperform equal averaging, indicating that adaptive scale weighting is beneficial for multi-scale feature representation. DyHead-scale performs best, achieving an mAP50 of 52.1% and an APS of 20.5%. In comparison, MCAttn achieves 52.5% mAP50 and 20.9% APS, exceeding DyHead-scale by 0.4 percentage points on both metrics. These results indicate that randomly exposing the network to different contextual scales during training can reduce its dependence on a particular scale and improve the representation of small objects without explicitly predicting input-dependent routing weights. To assess inference stability, the same trained MCAttn checkpoint was evaluated ten times under identical settings. Since stochastic scale selection is disabled during validation and testing, no variation was observed in the evaluation metrics, confirming that the stochastic operation in Equation (4) does not introduce inference instability.

4.6. Edge-Device Inference Efficiency Analysis

The computational cost of each proposed module was further assessed on an NVIDIA Jetson AGX Orin (NVIDIA Corporation, Santa Clara, CA, USA) by measuring its contribution to the overall inference latency of MPC-DETR. Each model was compiled into a TensorRT engine and benchmarked in FP16 mode with a batch size of 1 and an input size of (640 × 640). Following 100 warm-up iterations, the mean inference latency was measured across 1000 runs. Image preprocessing and post-processing were excluded to ensure a fair comparison of model-forward latency.
As shown in Table 6, LGAF, DCFI, and PGMFF increase the inference latency by 0.5, 0.8, and 0.4 ms, respectively. Among them, DCFI introduces the largest latency increase because of its multi-scale attention and contextual feature-interaction operations, whereas PGMFF produces relatively limited additional overhead. After integrating all three modules, the inference latency increases from 16.7 to 18.5 ms, while MPC-DETR still maintains an inference speed of 54.0 FPS. Although the proposed modules introduce moderate computational overhead, MPC-DETR achieves gains of 4.6, 4.0, and 2.5 percentage points in mAP50, mAP50–95, and APS, respectively. The additional latency is accompanied by improvements in overall and small-object detection accuracy. These results suggest a reasonable accuracy–latency trade-off for UAV edge deployment.

4.7. Visualization Analysis

To qualitatively evaluate the proposed method, three representative aerial scenes were selected from the VisDrone2019 dataset. Figure 7 compares the visual detection performance of different methods, where Figure 7a gives the input images, and Figure 7b and Figure 7c correspond to RT-DETR and MPC-DETR, respectively. The red dashed boxes indicate the regions selected for detailed comparison. The first column presents a long-distance road scene in which the objects are relatively small and some targets are strongly affected by illumination conditions and background interference. RT-DETR exhibits several missed detections of distant pedestrians and vehicles, whereas MPC-DETR successfully detects more small-scale objects, demonstrating its stronger perception capability for distant small targets. The second column shows a dense multi-object scene at a road intersection, where pedestrians, vehicles, and non-motorized vehicles are densely distributed and exhibit partial occlusions and substantial scale variations. RT-DETR tends to miss objects in densely populated regions, whereas MPC-DETR detects small objects more completely in both the road and intersection areas. The third column presents a multi-scale object scene with a complex background. Distant road objects are small and often obscured by trees, buildings, and nearby vehicles. Compared with RT-DETR, MPC-DETR provides more stable detection results for objects at different scales, with a noticeable reduction in missed detections.
To provide a more balanced evaluation of cross-dataset generalization, we further present qualitative results on the UAVDT and HIT-UAV datasets. The red dashed boxes highlight representative challenging regions involving distant objects, dense distributions, occlusion, and low-contrast targets. As shown in Figure 8, the selected UAVDT samples cover a wide intersection, a long-distance urban road, and a nighttime traffic scene. RT-DETR produces several missed detections for distant and densely distributed vehicles, particularly near image boundaries and under low-illumination conditions. In comparison, MPC-DETR detects more small targets and provides more complete detection results across different traffic densities and illumination conditions. Nevertheless, a few extremely small or heavily occluded objects remain difficult to identify, indicating that further improvement is still needed for severe scale degradation and occlusion. Figure 9 presents representative infrared scenes from HIT-UAV, including moving vehicles, densely parked vehicles, and targets partially obscured by surrounding structures. Owing to weak thermal contrast and background interference, RT-DETR misses several small targets. MPC-DETR provides more complete detection results and improves the localization of low-contrast targets.
We further employed Grad-CAM on the VisDrone2019 dataset to visualize and compare the attention regions of RT-DETR and MPC-DETR, thereby validating MPC-DETR’s effectiveness from a feature-response standpoint. The results are shown in Figure 10. As can be observed from Figure 10, the feature response regions of RT-DETR are relatively dispersed, with certain ineffective activations appearing in background regions such as roads, buildings, and trees. In addition, RT-DETR does not focus sufficiently on distant small objects and densely distributed targets. In contrast, MPC-DETR exhibits more concentrated high-response regions and is able to cover target areas more accurately. In particular, in scenes involving distant road targets, dense object distributions, and complex backgrounds, MPC-DETR demonstrates stronger feature attention to small-scale objects. The Grad-CAM results further suggest that the proposed method improves feature discrimination and object localization.
To further evaluate the generalization of the feature-response capability, Grad-CAM visualizations on UAVDT dataset are provided in Figure 11. Figure 11a shows the original images, while Figure 11b and Figure 11c present the activation maps of RT-DETR and MPC-DETR, respectively. The selected samples cover three representative UAV traffic scenes, including a wide intersection, a long-distance road, and a nighttime intersection with dense traffic. As shown in Figure 11, RT-DETR mainly focuses on several visually salient vehicles, while its responses to distant, densely distributed, and marginal small targets are relatively weak or discontinuous. In contrast, MPC-DETR produces more compact and continuous activation regions around vehicles and pedestrians and suppresses irrelevant background responses more effectively. This advantage remains evident under different object distances, traffic densities, and illumination conditions, indicating that MPC-DETR provides more stable feature representations for small objects across different UAV scenes.

5. Discussion

The experimental results indicate that the performance improvement of MPC-DETR is mainly attributed to the complementary modelling of fine-grained details, multi-scale context, and shallow–deep feature interaction. Rather than relying on a single enhancement mechanism, the proposed framework improves small-object representation at different stages of the detection pipeline. The consistent performance gains on VisDrone2019, UAVDT, and HIT-UAV also suggest that these improvements are not limited to a specific dataset or imaging modality. Meanwhile, the edge-device results show that the increased computational cost remains within a real-time operating range, demonstrating a reasonable trade-off between detection accuracy and inference efficiency. Nevertheless, several limitations remain. Extremely small and heavily occluded objects are still difficult to detect because their discriminative visual information may be severely degraded. In addition, the current evaluation does not fully cover variations in weather, motion blur, flight altitude, illumination, and sensor domains. The increased model complexity may also restrict deployment on UAV platforms with limited computing resources. Future work will therefore focus on lightweight model design and improving robustness under more challenging real-world conditions.

6. Conclusions

To address the challenges of dense object distributions, complex background interference, and fine-grained information loss in UAV imagery, this paper proposed MPC-DETR, a small-object detection framework based on RT-DETR. MPC-DETR integrates LGAF, DCFI, and PGMFF to enhance local-global feature representation, multi-scale contextual interaction, and shallow–deep feature fusion. Experimental results on the VisDrone2019 dataset show that MPC-DETR achieves 52.5% mAP50 and 33.3% mAP50–95, outperforming the baseline by 4.6 and 4.0 percentage points, respectively. Experiments on UAVDT and HIT-UAV further demonstrate its generalization capability across different UAV scenes and imaging modalities. In addition, MPC-DETR maintains real-time inference performance, indicating its potential for practical UAV visual perception applications.

Author Contributions

Q.W. performed software development, data curation, validation, conceptualization, and visualization. Z.Z. (Zhili Zhang) provided funding acquisition, formal analysis, and supervision. Z.Z. (Zhaofa Zhou) undertook project administration, resource provision, and manuscript review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This work received support from the National Natural Science Foundation of China under Grant No. 62305393.

Data Availability Statement

Data and code for this study can be obtained from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, N.; Ye, M.; Zhou, L.; Tang, S.; Gan, Y.; Liang, Z.; Zhu, X. Self-prompting analogical reasoning for UAV object detection. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2025; Volume 39, pp. 18412–18420. [Google Scholar]
  2. 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, Munich, Germany, 8–14 September 2018; pp. 370–386. [Google Scholar]
  3. Jiao, Z.; Wang, M.; Qiao, S.; Zhang, Y.; Huang, Z. Transformer-based object detection in low-altitude maritime UAV remote sensing images. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4210413. [Google Scholar] [CrossRef]
  4. Jankovic, B.; Jangirova, S.; Ullah, W.; Khan, L.U.; Guizani, M. UAV-assisted real-time disaster detection using optimized transformer model. In Proceedings of the IEEE Symposium on Computers and Communications; IEEE: Piscataway, NJ, USA, 2025; pp. 1–7. [Google Scholar]
  5. Kelly, M.; Feirer, S.; Hogan, S.; Lyons, A.; Lin, F.; Jacygrad, E. Mapping orchard trees from UAV imagery through one growing season: A comparison between OBIA-based and three CNN-based object detection methods. Drones 2025, 9, 593. [Google Scholar] [CrossRef]
  6. Das, A.; Yang, Y.; Subburaj, V.H. YOLOv7 for weed detection in cotton fields using UAV imagery. AgriEngineering 2025, 7, 313. [Google Scholar] [CrossRef]
  7. Luo, M.; Zhao, R.; Zhang, S.; Chen, L.; Shao, F.; Meng, X. IM-CMDet: An intra-modal enhancement and cross-modal fusion network for small object detection in UAV aerial RGBT imagery. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5008316. [Google Scholar] [CrossRef]
  8. Qin, H.; Xu, T.; Li, T.; Chen, Z.; Feng, T.; Li, J. MUST: The first dataset and unified framework for multispectral UAV single object tracking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 10–17 June 2025; pp. 16882–16891. [Google Scholar]
  9. Kim, Y. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, Doha, Qatar, 25–29 October 2014; pp. 1746–1751. [Google Scholar]
  10. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
  11. 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; IEEE: Piscataway, NJ, USA, 2024; pp. 16965–16974. [Google Scholar]
  12. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. In Proceedings of the 28th Conference on Neural Information Processing Systems (NIPS), Montreal, QC, Canada, 7–12 December 2015; pp. 91–99. [Google Scholar]
  13. Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving into high quality object detection. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–22 June 2018; pp. 6154–6162. [Google Scholar]
  14. 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, Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar]
  15. Chen, C.; Zheng, Z.; Xu, T.; Guo, S.; Feng, S.; Yao, W.; Lan, Y. YOLO-based UAV technology: A review of the research and its applications. Drones 2023, 7, 190. [Google Scholar] [CrossRef]
  16. 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; Springer International Publishing: Cham, Switzerland, 2016; pp. 21–37. [Google Scholar]
  17. Chen, L.; Liu, C.; Li, W.; Xu, Q.; Deng, H. DTSSNet: Dynamic training sample selection network for UAV object detection. IEEE Trans. Geosci. Remote Sens. 2024, 62, 1–16. [Google Scholar] [CrossRef]
  18. Wang, S.; Liu, K.; Huang, J.; Li, X. Fldet: Faster and lighter aerial object detector. IEEE Trans. Circuits Syst. Video Technol. 2024, 35, 4450–4463. [Google Scholar]
  19. Tian, S.; Zhang, B.; Cao, L.; Kang, L.; Tian, J.; Xing, X. MFDAFF-net: Multiscale frequency-aware and dual attention-guided feature fusion network for UAV imagery object detection. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 18, 10640–10656. [Google Scholar] [CrossRef]
  20. Xiao, Y.; Xu, T.; Xin, Y.; Li, J. FBRT-YOLO: Faster and better for real-time aerial image detection. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2025; Volume 39, pp. 8673–8681. [Google Scholar]
  21. 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; Springer International Publishing: Cham, Switzerland, 2020; pp. 213–229. [Google Scholar]
  22. Zheng, D.; Dong, W.; Hu, H.; Chen, X.; Wang, Y. Less is more: Focus attention for efficient DETR. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–6 October 2023; pp. 6674–6683. [Google Scholar]
  23. Wang, Z.; Yu, P.; Zhang, X.; Sun, H. BAP-DETR: Efficient drone object detection network based on bipartite attentive processing and dual fusion encoder. Comput. Vis. Image Underst. 2025, 260, 104565. [Google Scholar] [CrossRef]
  24. Wu, J.; Yu, J.; Li, Q.; Tang, Y.; Zhu, M. ED-DETR: An edge-guided dual-branch feature optimization network for enhanced small object detection in UAV images. iScience 2026, 29, 115230. [Google Scholar] [CrossRef] [PubMed]
  25. Chen, J.; Liu, N.; Sun, H.; Wang, Y. Freq-DETR: Frequency-aware transformer for real-time small object detection in unmanned aerial vehicle imagery. Expert Syst. Appl. 2025, 298, 129710. [Google Scholar] [CrossRef]
  26. Zuo, H.; Ning, M.; Shu, Y.; Huang, S.; Sun, C. EAV-DETR: Efficient Arbitrary-View oriented object detection with probabilistic guarantees for UAV imagery. ISPRS J. Photogramm. Remote Sens. 2026, 233, 575–587. [Google Scholar] [CrossRef]
  27. Wang, S.; Zhihang, G.; Yu, Z.; Zhangbing, Z. CFP-DETR: Collaborative feature purification network with spatial alignment for aerial small object detection. Remote Sens. 2026, 18, 1750. [Google Scholar] [CrossRef]
  28. Zhang, J.; Xie, B.; Lin, L.; Yang, L.; Zhang, X.; Meng, Y.; Xie, X.; Zhang, Y.; Zhang, W. MPI-DETR: Multi-Grain Prompt and Intensity-Guided Transformer for Small-Object Detection in UAV Imagery. Remote Sens. 2026, 18, 1763. [Google Scholar] [CrossRef]
  29. Guo, M.H.; Lu, C.Z.; Hou, Q.; Liu, Z.; Cheng, M.M.; Hu, S.M. SegNeXt: Rethinking convolutional attention design for semantic segmentation. In Advances in Neural Information Processing Systems 35; Neural Information Processing Systems Foundation, Inc.: San Diego, CA, USA, 2022; Volume 35, pp. 1140–1156. [Google Scholar]
  30. Dai, W.; Liu, R.; Wu, Z.; Wu, T.; Wang, M.; Zhou, J.; Yuan, Y.; Liu, J. Exploiting scale-variant attention for segmenting small medical objects. IEEE Trans. Neural Netw. Learn. Syst. 2026, 37, 3161–3175. [Google Scholar] [CrossRef] [PubMed]
  31. Sunkara, R.; Luo, T. No more strided convolutions or pooling: A new CNN building block for low-resolution images and small objects. In Proceedings of the Joint European Conference on Machine Learning and Knowledge Discovery in Databases; Springer Nature: Cham, Switzerland, 2022; pp. 443–459. [Google Scholar]
  32. Du, D.; Zhu, P.; Wen, L.; Bian, X.; Lin, H.; Hu, Q. VisDrone-DET2019: The vision meets drone object detection in image challenge results. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops; IEEE: Piscataway, NJ, USA, 2019; pp. 213–216. [Google Scholar]
  33. Suo, J.; Wang, T.; Zhang, X.; Chen, H.; Zhou, W.; Shi, W. HIT-UAV: A high-altitude infrared thermal dataset for Unmanned Aerial Vehicle-based object detection. Sci. Data 2023, 10, 227. [Google Scholar] [CrossRef] [PubMed]
  34. Khanam, R.; Hussain, M. YOLOv11: An overview of the key architectural enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar]
  35. Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-centric real-time object detectors. In Advances in Neural Information Processing Systems 38; Information Processing Systems Foundation, Inc.: San Diego, CA, USA, 2026; Volume 38, pp. 78433–78457. [Google Scholar]
  36. Lei, M.; Li, S.; Wu, Y.; Hu, H.; Zhou, Y.; Zheng, X.; Gao, Y. YOLOv13: Real-time object detection with hypergraph-enhanced adaptive visual perception. arXiv 2025, arXiv:2506.17733. [Google Scholar]
  37. Zhang, S.; Wang, X.; Wang, J.; Pang, J.; Lyu, C.; Zhang, W.; Luo, P.; Chen, K. Dense distinct query for end-to-end object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 18–22 June 2023; pp. 7329–7338. [Google Scholar]
  38. Wang, J.; Ma, M.; Huang, P.; Mei, S.; Zhang, L.; Wang, H. Remote sensing small object detection based on multicontextual information aggregation. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 18, 8248–8260. [Google Scholar] [CrossRef]
  39. Huang, S.; Lu, Z.; Cun, X.; Yu, Y.; Zhou, X.; Shen, X. DEIM: DETR with improved matching for fast convergence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 10–17 June 2025; pp. 15162–15171. [Google Scholar]
  40. Zhang, R.; Hou, J.; Li, L.; Zhang, K.; Zhao, L.; Gao, S. RTUAV-YOLO: A family of efficient and lightweight models for real-time object detection in UAV aerial imagery. Sensors 2025, 25, 6573. [Google Scholar] [CrossRef] [PubMed]
  41. Zhang, H.; Liu, K.; Gan, Z.; Zhu, G.N. UAV-DETR: Efficient end-to-end object detection for unmanned aerial vehicle imagery. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems; IEEE: Piscataway, NJ, USA, 2025; pp. 15143–15149. [Google Scholar]
  42. Li, Z.; Qi, L. MSA-DETR: A multi-scale attention augmented model for small object detection in UAV imagery. Remote Sens. 2026, 18, 1179. [Google Scholar] [CrossRef]
  43. Dai, Y.; Gieseke, F.; Oehmcke, S.; Wu, Y.; Barnard, K. Attentional feature fusion. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 5–9 January 2021; pp. 3560–3569. [Google Scholar]
  44. Dai, X.; Chen, Y.; Xiao, B.; Chen, D.; Liu, M.; Yuan, L.; Zhang, L. Dynamic head: Unifying object detection heads with attentions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2021; pp. 7373–7382. [Google Scholar]
  45. Wu, Z.; Li, S.; Chen, C.; Qin, H.; Hao, A. Salient object detection via dynamic scale routing. IEEE Trans. Image Process. 2022, 31, 6649–6663. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Overall architecture of MPC-DETR.
Figure 1. Overall architecture of MPC-DETR.
Remotesensing 18 02650 g001
Figure 2. Architecture of the improved backbone network.
Figure 2. Architecture of the improved backbone network.
Remotesensing 18 02650 g002
Figure 3. Architecture of MSA.
Figure 3. Architecture of MSA.
Remotesensing 18 02650 g003
Figure 4. Architecture of DCFI.
Figure 4. Architecture of DCFI.
Remotesensing 18 02650 g004
Figure 5. Architecture of PGMFF.
Figure 5. Architecture of PGMFF.
Remotesensing 18 02650 g005
Figure 6. Architecture of PGCA.
Figure 6. Architecture of PGCA.
Remotesensing 18 02650 g006
Figure 7. Comparison results of visualization experiments on VisDrone2019 dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Figure 7. Comparison results of visualization experiments on VisDrone2019 dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Remotesensing 18 02650 g007
Figure 8. Comparison results of visualization experiments on UAVDT dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Figure 8. Comparison results of visualization experiments on UAVDT dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Remotesensing 18 02650 g008
Figure 9. Comparison results of visualization experiments on HIT-UAV dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Figure 9. Comparison results of visualization experiments on HIT-UAV dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR.
Remotesensing 18 02650 g009aRemotesensing 18 02650 g009b
Figure 10. Comparison of Grad-CAM heatmaps on VisDrone2019 dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR. In the Grad-CAM visualization, red regions indicate high activation intensity, yellow regions indicate moderate activation intensity, and blue regions indicate low activation intensity.
Figure 10. Comparison of Grad-CAM heatmaps on VisDrone2019 dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR. In the Grad-CAM visualization, red regions indicate high activation intensity, yellow regions indicate moderate activation intensity, and blue regions indicate low activation intensity.
Remotesensing 18 02650 g010
Figure 11. Comparison of Grad-CAM heatmaps on UAVDT dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR. In the Grad-CAM visualization, red regions indicate high activation intensity, yellow regions indicate moderate activation intensity, and blue regions indicate low activation intensity.
Figure 11. Comparison of Grad-CAM heatmaps on UAVDT dataset. (a) Initial image. (b) RT-DETR. (c) MPC-DETR. In the Grad-CAM visualization, red regions indicate high activation intensity, yellow regions indicate moderate activation intensity, and blue regions indicate low activation intensity.
Remotesensing 18 02650 g011
Table 1. Results of the ablation experiments.
Table 1. Results of the ablation experiments.
NumberLGAFDCFIPGMFFP (%)R (%)mAP50 (%)mAP50–95
(%)
APS (%)Params (M)FPSGFLOPs
1---61.946.847.929.318.419.86057.1
2--63.147.649.430.619.222.55860.9
3--62.847.449.130.319.021.75959.6
4--63.448.349.831.019.721.06061.8
5-64.049.050.831.619.924.35664.9
6-64.449.551.231.920.423.75666.4
7-64.149.250.931.720.222.95765.6
865.051.252.533.320.925.85470.2
Table 2. Comparative results on the VisDrone2019 dataset.
Table 2. Comparative results on the VisDrone2019 dataset.
ModelP (%)R (%)mAP50 (%)mAP50–95 (%)APS (%)Params (M)FPSGFLOPs
RT-DETR61.9 ± 0.346.8 ± 0.347.9 ± 0.229.3 ± 0.118.4 ± 0.219.86057.1
Faster R-CNN49.536.739.223.29.641.231208.4
Cascade R-CNN50.236.439.523.810.269.326236.7
RetinaNet47.738.136.922.19.136.434210.3
YOLOv11-L54.042.343.826.713.825.36795.3
YOLOv12-L53.642.143.126.213.426.47085.6
YOLOv13-L54.241.943.726.513.727.66380.3
DDQ-DETR54.044.544.826.115.641.61286.7
DTSSNet55.643.841.125.213.910.19146.8
FLDet-N50.340.537.622.911.61.25612.3
MCIA-YOLO56.444.642.726.114.57.910539.5
MFDAFF-Net56.845.143.927.015.224.97872.6
DEIM57.249.150.530.918.919.25680.5
RTUAV-YOLO52.541.142.925.913.84.019428.9
UAV-DETR63.250.551.632.119.816.85271.4
MSA-DETR63.949.152.233.220.318.95079.4
MPC-DETR (Ours)65.0 ± 0.251.2 ± 0.352.5 ± 0.233.3 ± 0.120.9 ± 0.125.85470.2
Table 3. Performance comparison on the UAVDT dataset.
Table 3. Performance comparison on the UAVDT dataset.
ModelP (%)R (%)mAP50 (%)mAP50–95 (%)APS (%)
RT-DETR54.2 ± 0.337.6 ± 0.432.5 ± 0.216.5 ± 0.210.7 ± 0.2
MPC-DETR (Ours)57.1 ± 0.240.6 ± 0.335.6 ± 0.218.7 ± 0.112.6 ± 0.1
Table 4. Performance comparison on the HIT-UAV dataset.
Table 4. Performance comparison on the HIT-UAV dataset.
ModelP (%)R (%)mAP50 (%)mAP50–95 (%)APS (%)
RT-DETR83.1 ± 0.271.4 ± 0.374.4 ± 0.248.0 ± 0.239.0 ± 0.2
MPC-DETR (Ours)88.6 ± 0.272.1 ± 0.276.4 ± 0.150.8 ± 0.140.8 ± 0.1
Table 5. Performance comparison on VisDrone2019 dataset.
Table 5. Performance comparison on VisDrone2019 dataset.
MethodP (%)R (%)mAP50 (%)mAP50–95 (%)APS (%)
Equal averaging63.749.651.332.019.7
iAFF-based64.150.151.732.420.0
DyHead-scale64.650.752.132.920.5
DPConv-based 64.350.451.932.720.3
MCAttn65.051.252.533.320.9
Table 6. Module-wise inference latency on the edge computing platform.
Table 6. Module-wise inference latency on the edge computing platform.
NumberLGAFDCFIPGMFFLatency (ms)Latency Increase (ms)FPS
1---16.7-60.0
2--17.20.558.1
3--17.50.857.0
4--17.10.458.5
518.51.954.0
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.

Share and Cite

MDPI and ACS Style

Wang, Q.; Zhou, Z.; Zhang, Z. MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery. Remote Sens. 2026, 18, 2650. https://doi.org/10.3390/rs18162650

AMA Style

Wang Q, Zhou Z, Zhang Z. MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery. Remote Sensing. 2026; 18(16):2650. https://doi.org/10.3390/rs18162650

Chicago/Turabian Style

Wang, Quanxiang, Zhaofa Zhou, and Zhili Zhang. 2026. "MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery" Remote Sensing 18, no. 16: 2650. https://doi.org/10.3390/rs18162650

APA Style

Wang, Q., Zhou, Z., & Zhang, Z. (2026). MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery. Remote Sensing, 18(16), 2650. https://doi.org/10.3390/rs18162650

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop