MPC-DETR: A Multi-Scale Patch Context Transformer for Small Object Detection in UAV Imagery
Highlights
- 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%.
- 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
1. Introduction
- 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
2.2. Transformer-Based Methods for Small-Object Detection in UAV Imagery
3. Methodology
3.1. Overview of MPC-DETR
3.2. LGAF
3.3. DCFI
3.4. PGMFF
4. Experiments
4.1. Datasets
4.2. Experimental Settings
4.3. Evaluation Metrics
4.4. Ablation Experiments
4.5. Comparative Experiments
4.5.1. Comparison with Mainstream Detectors
4.5.2. Cross-Dataset Generalization Experiments
4.5.3. Comparison with Deterministic Multi-Scale Feature Routing Methods
4.6. Edge-Device Inference Efficiency Analysis
4.7. Visualization Analysis
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- 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]
- 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]
- 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]
- 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]
- 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]
- Das, A.; Yang, Y.; Subburaj, V.H. YOLOv7 for weed detection in cotton fields using UAV imagery. AgriEngineering 2025, 7, 313. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Khanam, R.; Hussain, M. YOLOv11: An overview of the key architectural enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]












| Number | LGAF | DCFI | PGMFF | P (%) | R (%) | mAP50 (%) | mAP50–95 (%) | APS (%) | Params (M) | FPS | GFLOPs |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | - | - | 61.9 | 46.8 | 47.9 | 29.3 | 18.4 | 19.8 | 60 | 57.1 |
| 2 | √ | - | - | 63.1 | 47.6 | 49.4 | 30.6 | 19.2 | 22.5 | 58 | 60.9 |
| 3 | - | √ | - | 62.8 | 47.4 | 49.1 | 30.3 | 19.0 | 21.7 | 59 | 59.6 |
| 4 | - | - | √ | 63.4 | 48.3 | 49.8 | 31.0 | 19.7 | 21.0 | 60 | 61.8 |
| 5 | √ | √ | - | 64.0 | 49.0 | 50.8 | 31.6 | 19.9 | 24.3 | 56 | 64.9 |
| 6 | √ | - | √ | 64.4 | 49.5 | 51.2 | 31.9 | 20.4 | 23.7 | 56 | 66.4 |
| 7 | - | √ | √ | 64.1 | 49.2 | 50.9 | 31.7 | 20.2 | 22.9 | 57 | 65.6 |
| 8 | √ | √ | √ | 65.0 | 51.2 | 52.5 | 33.3 | 20.9 | 25.8 | 54 | 70.2 |
| Model | P (%) | R (%) | mAP50 (%) | mAP50–95 (%) | APS (%) | Params (M) | FPS | GFLOPs |
|---|---|---|---|---|---|---|---|---|
| RT-DETR | 61.9 ± 0.3 | 46.8 ± 0.3 | 47.9 ± 0.2 | 29.3 ± 0.1 | 18.4 ± 0.2 | 19.8 | 60 | 57.1 |
| Faster R-CNN | 49.5 | 36.7 | 39.2 | 23.2 | 9.6 | 41.2 | 31 | 208.4 |
| Cascade R-CNN | 50.2 | 36.4 | 39.5 | 23.8 | 10.2 | 69.3 | 26 | 236.7 |
| RetinaNet | 47.7 | 38.1 | 36.9 | 22.1 | 9.1 | 36.4 | 34 | 210.3 |
| YOLOv11-L | 54.0 | 42.3 | 43.8 | 26.7 | 13.8 | 25.3 | 67 | 95.3 |
| YOLOv12-L | 53.6 | 42.1 | 43.1 | 26.2 | 13.4 | 26.4 | 70 | 85.6 |
| YOLOv13-L | 54.2 | 41.9 | 43.7 | 26.5 | 13.7 | 27.6 | 63 | 80.3 |
| DDQ-DETR | 54.0 | 44.5 | 44.8 | 26.1 | 15.6 | 41.6 | 12 | 86.7 |
| DTSSNet | 55.6 | 43.8 | 41.1 | 25.2 | 13.9 | 10.1 | 91 | 46.8 |
| FLDet-N | 50.3 | 40.5 | 37.6 | 22.9 | 11.6 | 1.2 | 56 | 12.3 |
| MCIA-YOLO | 56.4 | 44.6 | 42.7 | 26.1 | 14.5 | 7.9 | 105 | 39.5 |
| MFDAFF-Net | 56.8 | 45.1 | 43.9 | 27.0 | 15.2 | 24.9 | 78 | 72.6 |
| DEIM | 57.2 | 49.1 | 50.5 | 30.9 | 18.9 | 19.2 | 56 | 80.5 |
| RTUAV-YOLO | 52.5 | 41.1 | 42.9 | 25.9 | 13.8 | 4.01 | 94 | 28.9 |
| UAV-DETR | 63.2 | 50.5 | 51.6 | 32.1 | 19.8 | 16.8 | 52 | 71.4 |
| MSA-DETR | 63.9 | 49.1 | 52.2 | 33.2 | 20.3 | 18.9 | 50 | 79.4 |
| MPC-DETR (Ours) | 65.0 ± 0.2 | 51.2 ± 0.3 | 52.5 ± 0.2 | 33.3 ± 0.1 | 20.9 ± 0.1 | 25.8 | 54 | 70.2 |
| Model | P (%) | R (%) | mAP50 (%) | mAP50–95 (%) | APS (%) |
|---|---|---|---|---|---|
| RT-DETR | 54.2 ± 0.3 | 37.6 ± 0.4 | 32.5 ± 0.2 | 16.5 ± 0.2 | 10.7 ± 0.2 |
| MPC-DETR (Ours) | 57.1 ± 0.2 | 40.6 ± 0.3 | 35.6 ± 0.2 | 18.7 ± 0.1 | 12.6 ± 0.1 |
| Model | P (%) | R (%) | mAP50 (%) | mAP50–95 (%) | APS (%) |
|---|---|---|---|---|---|
| RT-DETR | 83.1 ± 0.2 | 71.4 ± 0.3 | 74.4 ± 0.2 | 48.0 ± 0.2 | 39.0 ± 0.2 |
| MPC-DETR (Ours) | 88.6 ± 0.2 | 72.1 ± 0.2 | 76.4 ± 0.1 | 50.8 ± 0.1 | 40.8 ± 0.1 |
| Method | P (%) | R (%) | mAP50 (%) | mAP50–95 (%) | APS (%) |
|---|---|---|---|---|---|
| Equal averaging | 63.7 | 49.6 | 51.3 | 32.0 | 19.7 |
| iAFF-based | 64.1 | 50.1 | 51.7 | 32.4 | 20.0 |
| DyHead-scale | 64.6 | 50.7 | 52.1 | 32.9 | 20.5 |
| DPConv-based | 64.3 | 50.4 | 51.9 | 32.7 | 20.3 |
| MCAttn | 65.0 | 51.2 | 52.5 | 33.3 | 20.9 |
| Number | LGAF | DCFI | PGMFF | Latency (ms) | Latency Increase (ms) | FPS |
|---|---|---|---|---|---|---|
| 1 | - | - | - | 16.7 | - | 60.0 |
| 2 | √ | - | - | 17.2 | 0.5 | 58.1 |
| 3 | - | √ | - | 17.5 | 0.8 | 57.0 |
| 4 | - | - | √ | 17.1 | 0.4 | 58.5 |
| 5 | √ | √ | √ | 18.5 | 1.9 | 54.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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
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
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 StyleWang, 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 StyleWang, 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

