YOLO-DC: A Crop Detection and Counting Network for UAV-Based Agricultural Scenes
Highlights
- YOLO-DC is designed for crop detection and counting in UAV-based agricultural scenes.
- An LGCB attention module and a multi-scale detection head are designed to improve dense small-object detection.
- YOLO-DC achieves a favorable balance between crop detection accuracy and model efficiency.
- YOLO-DC demonstrates strong cross-crop transfer potential.
Abstract
1. Introduction
- (1)
- An improved YOLOv12 model oriented to agricultural crop counting tasks is constructed to address the characteristics of small, dense, heavily occluded crop targets and complex backgrounds in UAV agricultural images, thereby enhancing feature extraction capability, multi-scale representation ability, and adaptability to complex scenes.
- (2)
- A LGCB-AM module is designed for dense crop detection and counting. Instead of simply stacking existing operators, the module organizes local texture extraction, global modeling, foreground–background contrast enhancement, and boundary perception into a unified feature module. An input-dependent branch-gating strategy is further introduced to adaptively fuse complementary cues, thereby improving the discrimination of adhered and densely distributed crop targets.
- (3)
- A unified research framework for crop detection and counting in UAV agricultural scenarios is established, providing a feasible solution for rapid crop quantity acquisition in complex field environments and offering a useful reference for the task-specific design of agricultural vision perception models.
2. Materials and Methods
2.1. Crop Datasets
2.2. The Design Principle of YOLO-DC
2.2.1. YOLOv12
2.2.2. YOLO-DC
2.2.3. LGCB-AM
2.2.4. Multi-Scale Detection Head (MS-DH)
2.2.5. Evaluation Metrics
2.3. Comparison Experiments
2.4. Ablation Experiments
2.4.1. Ablation Experiment 1: Core Component Analysis
2.4.2. Ablation Experiment 2: Insertion Position of LGCB-AM
2.4.3. Ablation Experiment 3: Branch-Wise Analysis of LGCB-AM
2.5. Transfer Experiments
3. Results
3.1. Results and Analysis of Comparison Experiments
3.1.1. Results of Different Model in Wheat Dataset
3.1.2. Results and Analysis of Different Density for YOLO-DC
3.2. Results and Analysis of Ablation Experiments
3.2.1. Results and Analysis of Ablation Experiment 1
3.2.2. Results and Analysis of Ablation Experiment 2
3.2.3. Results and Analysis of Ablation Experiment 3
3.3. Results and Analysis of Transfer Experiments
4. Discussions and Future Work
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Shi, Y.; Zhu, Y.; Wang, X.; Sun, X.; Ding, Y.; Cao, W.; Hu, Z. Progress and development on biological information of crop phenotype research applied to real-time variable-rate fertilization. Plant Methods 2020, 16, 11. [Google Scholar] [CrossRef] [PubMed]
- Saiz-Rubio, V.; Rovira-Más, F. From smart farming towards agriculture 5.0: A review on crop data management. Agronomy 2020, 10, 207. [Google Scholar] [CrossRef]
- Shi, S.; Ye, Y.; Xiao, R. Evaluation of food security based on remote sensing data—Taking Egypt as an example. Remote Sens. 2022, 14, 2876. [Google Scholar] [CrossRef]
- Bégué, A.; Arvor, D.; Bellon, B.; Betbeder, J.; de Abelleyra, D.; Ferraz, R.P.D.; Verón, S.R. Remote sensing and cropping practices: A review. Remote Sens. 2018, 10, 99. [Google Scholar] [CrossRef]
- Yue, W.; Gao, J.; Yang, X. Estimation of gross domestic product using multi-sensor remote sensing data: A case study in Zhejiang province, East China. Remote Sens. 2014, 6, 7260–7275. [Google Scholar] [CrossRef]
- Yang, L.; Mansaray, L.R.; Huang, J.; Wang, L. Optimal segmentation scale parameter, feature subset and classification algorithm for geographic object-based crop recognition using multisource satellite imagery. Remote Sens. 2019, 11, 514. [Google Scholar] [CrossRef]
- Carvalho, O.L.F.; de Carvalho Junior, O.A.; Albuquerque, A.O.; Bem, P.P.; Silva, C.R.; Ferreira, P.H.G.; Borges, D.L. Instance segmentation for large, multi-channel remote sensing imagery using Mask R-CNN and a mosaicking approach. Remote Sens. 2020, 13, 39. [Google Scholar] [CrossRef]
- Wang, X.; Yang, W.; Lv, Q.; Huang, C.; Liang, X.; Chen, G.; Duan, L. Field rice panicle detection and counting based on deep learning. Front. Plant Sci. 2022, 13, 966495. [Google Scholar] [CrossRef] [PubMed]
- Zang, H.; Peng, Y.; Zhou, M.; Li, G.; Zheng, G.; Shen, H. Automatic detection and counting of wheat spike based on DMseg-Count. Sci. Rep. 2024, 14, 29676. [Google Scholar] [CrossRef] [PubMed]
- Wen, C.; Ma, Z.; Ren, J.; Zhang, T.; Zhang, L.; Chen, H.; Guo, W. A generalized model for accurate wheat spike detection and counting in complex scenarios. Sci. Rep. 2024, 14, 24189. [Google Scholar] [CrossRef] [PubMed]
- Chen, Y.; Li, X.; Jia, M.; Li, J.; Hu, T.; Luo, J. Instance segmentation and number counting of grape berry images based on deep learning. Appl. Sci. 2023, 13, 6751. [Google Scholar] [CrossRef]
- Wang, Y.; An, J.; Shao, M.; Wu, J.; Zhou, D.; Yao, X.; Zhu, Y. A comprehensive review of proximal spectral sensing devices and diagnostic equipment for field crop growth monitoring. Precis. Agric. 2025, 26, 54. [Google Scholar] [CrossRef]
- Zhao, Y.; Lei, S.; Han, X.; Xu, Y.; Li, J.; Duan, Y.; Sun, S. Research on the inversion method of dust content on mining area plant canopies based on UAV-borne VNIR hyperspectral data. Drones 2025, 9, 256. [Google Scholar] [CrossRef]
- Zhang, H.; Wang, L.; Tian, T.; Yin, J. A Review of Unmanned Aerial Vehicle Low-Altitude Remote Sensing (UAV-LARS) Use in Agricultural Monitoring in China. Remote Sens. 2021, 13, 1221. [Google Scholar]
- Zhu, J.; Yang, G.; Feng, X.; Li, X.; Fang, H.; Zhang, J.; He, Y. Detecting wheat heads from UAV low-altitude remote sensing images using deep learning based on transformer. Remote Sens. 2022, 14, 5141. [Google Scholar] [CrossRef]
- Li, H.; Wang, P.; Huang, C. Comparison of deep learning methods for detecting and counting sorghum heads in UAV imagery. Remote Sens. 2022, 14, 3143. [Google Scholar] [CrossRef]
- Lu, C.; Nnadozie, E.; Camenzind, M.P.; Hu, Y.; Yu, K. Maize plant detection using UAV-based RGB imaging and YOLOv5. Front. Plant Sci. 2024, 14, 1274813. [Google Scholar] [CrossRef] [PubMed]
- Liu, L.; Yang, F.; Liu, X.; Du, Y.; Li, X.; Li, G.; Song, Z. A review of the current status and common key technologies for agricultural field robots. Comput. Electron. Agric. 2024, 227, 109630. [Google Scholar] [CrossRef]
- David, E.; Madec, S.; Sadeghi-Tehran, P.; Aasen, H.; Zheng, B.; Liu, S.; Kirchgessner, N.; Ishikawa, G.; Nagasawa, K.; Badhon, M.A.; et al. Global Wheat Head Detection (GWHD) Dataset: A Large and Diverse Dataset of High-Resolution RGB-Labelled Images to Develop and Benchmark Wheat Head Detection Methods. Plant Phenomics 2020, 2020, 3521852. [Google Scholar] [CrossRef] [PubMed]
- Admin. Drone Rice Paddy Dataset (DRPD) for UAV-Based Rice Object Detection. Explorer’s Data Nest—Deep Learning Dataset Platform. 2026. Available online: https://www.dilitanxianjia.com/20906/ (accessed on 8 June 2026).
- Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-centric real-time object detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef]
- Lin, T.; 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]
- 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 Computer Vision—ECCV 2016, Amsterdam, The Netherlands, 11–14 October 2016; pp. 21–37. [Google Scholar]
- Tian, Z.; Shen, C.; Chen, H.; He, T. FCOS: Fully convolutional one-stage object detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 9627–9636. [Google Scholar]
- Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.-C. MobileNetV2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 4510–4520. [Google Scholar]
- Peng, Y.; Li, H.; Wu, P.; Zhang, Y.; Sun, X.; Wu, F. D-FINE: Redefine Regression Task in DETRs as Fine-Grained Distribution Refinement. In Proceedings of the Thirteenth International Conference on Learning Representations, Singapore, 24–28 April 2025. [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 Computer Vision—ECCV 2020, Glasgow, UK, 23–28 August 2020; pp. 213–229. [Google Scholar]
- Li, Y.; Wu, X.; Wang, Q.; Pei, Z.; Zhao, K.; Chen, P.; Hao, G. CSNet: A count-supervised network via multiscale MLP-Mixer for wheat ear counting. Plant Phenomics 2024, 6, 0236. [Google Scholar] [CrossRef] [PubMed]
- Chmcbs. HeadCount: A Semantic Segmentation Model for Counting Wheat Heads in Field Images. GitHub Repository. Available online: https://github.com/chmcbs/HeadCount (accessed on 8 June 2026).
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-time end-to-end object detection. arXiv 2024, arXiv:2405.14458. [Google Scholar]
- Jocher, G.; Qiu, J.; Liu, M.; Lyu, S.; Akyon, F.C.; Kalfaoglu, M.E. Ultralytics YOLO26: Unified Real-Time End-to-End Vision Models. arXiv 2026, arXiv:2606.03748. [Google Scholar]













| Model | Params (M) | p | R | mAP50 | mAP50-95 | MAE | RMSE | R2 |
|---|---|---|---|---|---|---|---|---|
| Faster R-CNN | 41.352 | 0.924 | 0.848 | 0.889 | 0.494 | 3.27 | 5.057 | 0.923 |
| DETR | 41.502 | 0.926 | 0.889 | 0.909 | 0.519 | 3.67 | 5.043 | 0.924 |
| RetinaNet | 32.222 | 0.909 | 0.824 | 0.851 | 0.467 | 4.20 | 6.211 | 0.885 |
| SSD300 | 23.746 | 0.882 | 0.803 | 0.833 | 0.437 | 5.12 | 7.732 | 0.821 |
| FCOS | 32.118 | 0.896 | 0.844 | 0.892 | 0.495 | 5.96 | 8.540 | 0.781 |
| D-FINE | 3.720 | 0.701 | 0.794 | 0.682 | 0.331 | 10.82 | 22.421 | 0.624 |
| SSDLite | 2.207 | 0.617 | 0.678 | 0.523 | 0.283 | 13.07 | 15.251 | 0.573 |
| CSNet | 94.313 | - | - | - | - | 6.79 | 9.077 | 0.735 |
| HeadCount | 26.678 | - | - | - | - | 7.96 | 10.100 | 0.695 |
| YOLOv10 | 2.707 | 0.888 | 0.840 | 0.919 | 0.561 | 5.19 | 7.862 | 0.815 |
| YOLOv12 | 2.520 | 0.916 | 0.846 | 0.929 | 0.558 | 3.65 | 5.237 | 0.917 |
| YOLOv26 | 2.504 | 0.905 | 0.854 | 0.930 | 0.560 | 3.28 | 4.775 | 0.932 |
| YOLO-DC | 2.731 | 0.910 | 0.871 | 0.934 | 0.567 | 3.02 | 4.470 | 0.939 |
| Density | Count Range | Images | Instances | AP50 | mAP50:95 | MAE | RMSE |
|---|---|---|---|---|---|---|---|
| Low-density | ≤27 | 25 | 568 | 0.950 | 0.591 | 2.12 | 2.67 |
| Medium-density | 28–37 | 25 | 779 | 0.955 | 0.572 | 1.88 | 2.57 |
| High-density | 38–60 | 25 | 1183 | 0.917 | 0.568 | 4.68 | 5.71 |
| Very high-density | ≥61 | 25 | 1703 | 0.938 | 0.578 | 4.16 | 5.89 |
| Model | mAP50-95 | MAE | RMSE |
|---|---|---|---|
| Baseline | 0.567 | 3.020 | 4.470 |
| Model 1-1 | 0.532 | 3.263 | 4.688 |
| Model 1-2 | 0.510 | 3.860 | 4.950 |
| Model 1-3 | 0.478 | 4.652 | 6.237 |
| Model | mAP50–95 | MAE | RMSE |
|---|---|---|---|
| Baseline | 0.567 | 3.020 | 4.470 |
| Model 2-1 | 0.532 | 3.190 | 4.698 |
| Model 2-2 | 0.557 | 3.060 | 4.583 |
| Model 2-3 | 0.513 | 3.350 | 4.884 |
| Model 2-4 | 0.499 | 3.610 | 4.943 |
| Model | mAP50–95 | MAE | RMSE |
|---|---|---|---|
| Baseline | 0.567 | 3.020 | 4.470 |
| Model 3-1 | 0.554 | 3.120 | 4.499 |
| Model 3-2 | 0.544 | 3.320 | 4.598 |
| Model 3-3 | 0.534 | 3.370 | 4.657 |
| Model 3-4 | 0.548 | 3.560 | 4.858 |
| Model | Training Method | mAP50 | MAE | RMSE |
|---|---|---|---|---|
| DETR | Finetune | 0.418 | 6.47 | 8.240 |
| Training from scratch | 0.396 | 6.89 | 9.145 | |
| YOLOv12 | Finetune | 0.433 | 4.62 | 6.789 |
| Training from scratch | 0.396 | 6.01 | 8.125 | |
| YOLOv26 | Finetune | 0.514 | 4.69 | 5.689 |
| Training from scratch | 0.418 | 5.81 | 7.257 | |
| YOLO-DC | Finetune | 0.582 | 3.82 | 5.018 |
| Training from scratch | 0.426 | 5.54 | 7.030 |
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
Bai, H.; Liu, L.; Kong, H.; Li, X.; Du, Y. YOLO-DC: A Crop Detection and Counting Network for UAV-Based Agricultural Scenes. Remote Sens. 2026, 18, 2187. https://doi.org/10.3390/rs18132187
Bai H, Liu L, Kong H, Li X, Du Y. YOLO-DC: A Crop Detection and Counting Network for UAV-Based Agricultural Scenes. Remote Sensing. 2026; 18(13):2187. https://doi.org/10.3390/rs18132187
Chicago/Turabian StyleBai, Haotian, Lei Liu, Haocheng Kong, Xiaoyu Li, and Yuefeng Du. 2026. "YOLO-DC: A Crop Detection and Counting Network for UAV-Based Agricultural Scenes" Remote Sensing 18, no. 13: 2187. https://doi.org/10.3390/rs18132187
APA StyleBai, H., Liu, L., Kong, H., Li, X., & Du, Y. (2026). YOLO-DC: A Crop Detection and Counting Network for UAV-Based Agricultural Scenes. Remote Sensing, 18(13), 2187. https://doi.org/10.3390/rs18132187

