Submitted:
09 March 2024
Posted:
12 March 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Field Experiments

2.2. UAV Image Collection
2.3. Data Construction and Preprocessing
2.3.1. Image Preprocessing

2.3.2. Data Enhancements

2.4. YOLOv8 Model Framework
2.4.1. Backbone and Neck

2.4.2. Head

2.4.3. Loss Calculation
2.5. Assessment of Indicators
2.6. Test Parameter Setting and Training Process Analysis
| Experimental environment | |||
| Processor | 12th Gen Intel(R) Core(TM) i5-12600KF3.69 GHz | ||
| Operating system | Windows 10 | ||
| Ram | 64GB | ||
| Graphics card | NVIDIA GeForce RTX 3060 | ||
| Programming language | Python 3.8 | ||
| Model | YOLOv8n | YOLOv5、3 | Other |
| Deep learning libraries | CUDA11.7 | CUDA11.1 | CUDA 10.2 |
| Software | Ultralytics=8.0.105 Opencv=4.7.0.72 | Opencv=4.1.2 Numpy=1.18.5 |
Mmcv=2.0.0 Mmdet=3.0.0 Mmengine=0.9.1 |
3. Results
3.1. Model Comparison
| Category | Model | Backbone | Image size | AP50 | AP50:95 | Params | FLOPs |
| One-stage | YOLOv8n | New CSP-Darknet53 | 640×640 | 0.979 | 0.647 | 3.20M | 8.7G |
| YOLOv5n | CSP-Darknet53 | 640×640 | 0.955 | 0.511 | 1.90M | 4.5G | |
| SSD | VGG16 | 416×416 | 0.946 | 0.530 | 23.75M | 137.1G | |
| FCOS | Resnet50 | 640×640 | 0.925 | 0.495 | 31.84M | 78.6G | |
| YOLOv3-tiny | Tiny-Darknet | 640×640 | 0.922 | 0.453 | 8.44M | 13.3G | |
| RetinaNet | Resnet50 | 300×300 | 0.863 | 0.412 | 36.10M | 81.7G | |
| Two-stage | Defomermable DETR | Resnet50 | 640×640 | 0.941 | 0.474 | 36.10M | 27.4G |
| Cascade R-CNN | Resnet50 | 640×640 | 0.888 | 0.569 | 68.94M | 80.1G | |
| Faster R-CNN | Resnet50 | 640×640 | 0.887 | 0.530 | 41.12M | 78.1G |

3.2. Impact of Planting Density and Growth Stage on Seedling Detection
3.3. Impact of Flight Altitude and Growth Stage on Detection

3.4. Validation of YOLOv8n Seedling Counting Algorithm
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Erenstein, O.; Jaleta, M.; Sonder, K.; Mottaleb, K.; Prasanna, B.M. Global maize production, consumption and trade: trends and R&D implications. Food Security 2022, 14, 1295–1319. [Google Scholar] [CrossRef]
- LI shaoKun, Z.J. , DONG ShuTing, ZHAO Ming, LI ChaoHai, CUI YanHong, LIU YongHong, GAO JuLin, XUE JiQuan, WANG LiChun, WANG Pu, LU WeiPing, WANG JunHe, YANG QiFeng, WANG ZiMing.. Advances and Prospects of Maize Cultivation in China. Scientia Agricultura Sinica 2017, 50, 1941–1959. [Google Scholar]
- Kimmelshue, C.L.; Goggi, S.; Moore, K.J. Seed Size, Planting Depth, and a Perennial Groundcover System Effect on Corn Emergence and Grain Yield. 2022, 12, 437. [CrossRef]
- Onishi, M.; Ise, T. Explainable identification and mapping of trees using UAV RGB image and deep learning. Scientific reports 2021, 11, 903. [Google Scholar] [CrossRef]
- Candiago, S.; Remondino, F.; De Giglio, M.; Dubbini, M.; Gattelli, M. Evaluating multispectral images and vegetation indices for precision farming applications from UAV images. Remote sensing 2015, 7, 4026–4047. [Google Scholar] [CrossRef]
- Adão, T.; Hruška, J.; Pádua, L.; Bessa, J.; Peres, E.; Morais, R.; Sousa, J.J. Hyperspectral imaging: A review on UAV-based sensors, data processing and applications for agriculture and forestry. Remote sensing 2017, 9, 1110. [Google Scholar] [CrossRef]
- Wallace, L.; Lucieer, A.; Watson, C.; Turner, D. Development of a UAV-LiDAR system with application to forest inventory. Remote sensing 2012, 4, 1519–1543. [Google Scholar] [CrossRef]
- Liu Shuaibing, Y.G., Zhou Chengquan, Jing Haitao, Feng Haikuan, Xu Bo, Yang Hao. . Extraction of maize seedlingnumber information based on UA imagery. Transactions of the Chinese Society of Agricultural Engineering 2018, 34, 69–77.
- Bai, Y.; Nie, C.; Wang, H.; Cheng, M.; Liu, S.; Yu, X.; Shao, M.; Wang, Z.; Wang, S.; Tuohuti, N.; et al. A fast and robust method for plant count in sunflower and maize at different seedling stages using high-resolution UAV RGB imagery. Precision Agriculture 2022, 23, 1720–1742. [Google Scholar] [CrossRef]
- Liu, T.; Yang, T.; Li, C.; Li, R.; Wu, W.; Zhong, X.; Sun, C.; Guo, W. A method to calculate the number of wheat seedlings in the 1st to the 3rd leaf growth stages. Plant Methods 2018, 14, 101. [Google Scholar] [CrossRef] [PubMed]
- Xu, B.; Chen, L.; Xu, M.; Tan, Y. Path Planning Algorithm for Plant Protection UAVs in Multiple Operation Areas. Transactions of the Chinese Society for Agricultural Machinery 2017, 48, 75–81. [Google Scholar]
- Quan, L.; Feng, H.; Lv, Y.; Wang, Q.; Zhang, C.; Liu, J.; Yuan, Z. Maize seedling detection under different growth stages and complex field environments based on an improved Faster R–CNN. Biosystems Engineering 2019, 184, 1–23. [Google Scholar] [CrossRef]
- Zhang, Y.; Xiao, D.; Liu, Y.; Wu, H. An algorithm for automatic identification of multiple developmental stages of rice spikes based on improved Faster R-CNN. The Crop Journal 2022, 10, 1323–1333. [Google Scholar] [CrossRef]
- Gao, J.X.; Tan, F.; Cui, J.P.; Ma, B. A Method for Obtaining the Number of Maize Seedlings Based on the Improved YOLOv4 Lightweight Neural Network. Agriculture-Basel 2022, 12. [Google Scholar] [CrossRef]
- Zhang, X.; Zhu, D.; Wen, R. SwinT-YOLO: Detection of densely distributed maize tassels in remote sensing images. Computers and Electronics in Agriculture 2023, 210. [Google Scholar] [CrossRef]
- Li, R.; Wu, Y.P. Improved YOLO v5 Wheat Ear Detection Algorithm Based on Attention Mechanism. Electronics 2022, 11. [Google Scholar] [CrossRef]
- Zhang, Y.; Li, M.Z.; Ma, X.X.; Wu, X.T.; Wang, Y.J. High-Precision Wheat Head Detection Model Based on One-Stage Network and GAN Model. Frontiers in Plant Science 2022, 13. [Google Scholar] [CrossRef] [PubMed]
- Tzutalin, D. Labelimg. git code. 2015.
- Pathak, D.; Raju, U.J.O. Content-based image retrieval using feature-fusion of GroupNormalized-Inception-Darknet-53 features and handcraft features. 2021, 246, 167754.
- He, K.; Zhang, X.; Ren, S.; Sun, J.J.I.t.o.p.a.; intelligence, m. Spatial pyramid pooling in deep convolutional networks for visual recognition. 2015, 37, 1904–1916. [CrossRef]
- Xiao, B.; Nguyen, M.; Yan, W.Q. Fruit ripeness identification using YOLOv8 model. Multimedia Tools and Applications 2023. [Google Scholar] [CrossRef]
- Li, X.; Wang, W.; Wu, L.; Chen, S.; Hu, X.; Li, J.; Tang, J.; Yang, J.J.A.i.N.I.P.S. Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection. 2020, 33, 21002–21012.
- Li, X.; Chen, J.; He, Y.; Yang, G.; Li, Z.; Tao, Y.; Li, Y.; Li, Y.; Huang, L.; Feng, X. High-through counting of Chinese cabbage trichomes based on deep learning and trinocular stereo microscope. Computers and Electronics in Agriculture 2023, 212, 108134. [Google Scholar] [CrossRef]
- Zhu, X.; Su, W.; Lu, L.; Li, B.; Wang, X.; Dai, J.J.a.p.a. Deformable detr: Deformable transformers for end-to-end object detection. 2020.
- Song, G.; Liu, Y.; Wang, X. Revisiting the sibling head in object detector. In Proceedings of the Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2020; pp. 11563–11572.
- Wu, Y.; Chen, Y.; Yuan, L.; Liu, Z.; Wang, L.; Li, H.; Fu, Y. Rethinking classification and localization for object detection. In Proceedings of the Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2020; pp. 10186–10195.
- Li, X.; Chen, J.; He, Y.; Yang, G.; Li, Z.; Tao, Y.; Li, Y.; Li, Y.; Huang, L.; Feng, X.J.C.; et al. High-through counting of Chinese cabbage trichomes based on deep learning and trinocular stereo microscope. 2023, 212, 108134. [CrossRef]
- Liu, S.; Baret, F.; Andrieu, B.; Burger, P.; Hemmerlé, M.J.F.i.P.S. Estimation of wheat plant density at early stages using high resolution imagery. 2017, 8, 739. [CrossRef]
- Liu, M.; Su, W.-H.; Wang, X.-Q.J.R.S. Quantitative Evaluation of Maize Emergence Using UAV Imagery and Deep Learning. 2023, 15, 1979. [CrossRef]
- Feng, Y.; Chen, W.; Ma, Y.; Zhang, Z.; Gao, P.; Lv, X.J.R.S. Cotton Seedling Detection and Counting Based on UAV Multispectral Images and Deep Learning Methods. 2023, 15, 2680. [CrossRef]
- Gong, Y.; Yu, X.; Ding, Y.; Peng, X.; Zhao, J.; Han, Z. Effective fusion factor in FPN for tiny object detection. In Proceedings of the Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2021; pp. 1160–1168.





| Year | 2021 | 2023 | ||||
| Station | Qianxiaili Village |
High Yielding Gield | Peasant Household | Dongsheng Village |
Agricultural Cooperative |
|
| Image acquisition Stage (leaves) | 2、3、4、6 | 3 | 3 | 2-6 | 3 | |
| Flight speed (m/s) | 2.1 | 2.3 | 2.0 | 2.0 | 2.5 | |
| photo interval (s) | 1 | 2 | 2 | 2 | 2 | |
| Height above ground (m) | 20 | 20 | 20 | 20、40、60 | 20 | |
| Overlap rate along tracks (%) | 75 | 73 | 75 | 80 | 75 | |
| Overlap rate across tracks (%) | 85 | 75 | 80 | 80 | 75 | |
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. |
© 2024 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 (http://creativecommons.org/licenses/by/4.0/).