Real-Time Detection and Validation of a Target-Oriented Model for Spindle-Shaped Tree Trunks Leveraging Deep Learning
Abstract
1. Introduction
2. Materials and Methods
2.1. Construction of Trunk-Seek
2.1.1. Data Collection and Customized Dataset
2.1.2. Construction of Target-Oriented Model
2.2. Model Deployment, Training, and Evaluation Metrics
2.3. Test Bench Overview
2.4. Comprehensive Validation
2.4.1. Object Detection Model Confirmation
2.4.2. Tracking Algorithm Analysis
2.4.3. The PTA Evaluation
2.4.4. Orchard Validation
3. Results and Discussion
3.1. Analysis of Detection Model Results
3.2. Tracking Algorithm Evaluation
3.3. P&T Results
3.4. The Results of Orchard Validation
3.5. Discussion
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zhang, C.; Valente, J.; Kooistra, L.; Guo, L.; Wang, W. Orchard Management with Small Unmanned Aerial Vehicles: A Survey of Sensing and Analysis Approaches. Precis. Agric. 2021, 22, 2007–2052. [Google Scholar] [CrossRef]
- Bai, Q.; Luo, H.; Fu, X.; Zhang, X.; Li, G. Design and Experiment of Lightweight Dual-Mode Automatic Variable-Rate Fertilization Device and Control System. Agriculture 2023, 13, 1138. [Google Scholar] [CrossRef]
- You, A.; Parayil, N.; Krishna, J.G.; Bhattarai, U.; Sapkota, R.; Ahmed, D.; Whiting, M.; Karkee, M.; Grimm, C.M.; Davidson, J.R. Semiautonomous Precision Pruning of Upright Fruiting Offshoot Orchard Systems: An Integrated Approach. IEEE Robot. Autom. Mag. 2023, 30, 10–19. [Google Scholar] [CrossRef]
- Zahid, A.; Mahmud, M.S.; He, L.; Heinemann, P.; Choi, D.; Schupp, J. Technological Advancements towards Developing a Robotic Pruner for Apple Trees: A Review. Comput. Electron. Agric. 2021, 189, 106383. [Google Scholar] [CrossRef]
- Lei, X.; Liu, J.; Jiang, H.; Xu, B.; Jin, Y.; Gao, J. Design and Testing of a Four-Arm Multi-Joint Apple Harvesting Robot Based on Singularity Analysis. Agronomy 2025, 15, 1446. [Google Scholar] [CrossRef]
- Zhang, L.; Li, M.; Zhu, X.; Chen, Y.; Huang, J.; Wang, Z.; Hu, T.; Wang, Z.; Fang, K. Navigation Path Recognition between Rows of Fruit Trees Based on Semantic Segmentation. Comput. Electron. Agric. 2024, 216, 108511. [Google Scholar] [CrossRef]
- Zheng, K.; Yang, S.; Gao, Y.; Wang, X.; Wang, J.; Song, S.; Zhai, C.; Chen, L. Numerical Simulation and Optimization Design of a Novel Longitudinal-Flow Online Fertilizer Mixing Device. Comput. Electron. Agric. 2025, 237, 110546. [Google Scholar] [CrossRef]
- Sun, J.; Chen, Z.; Song, R.; Fan, S.; Han, X.; Zhang, C.; Wang, J.; Zhang, H. An Intelligent Self-Propelled Double-Row Orchard Trenching and Fertilizing Machine: Modeling, Evaluation, and Application. Comput. Electron. Agric. 2025, 229, 109818. [Google Scholar] [CrossRef]
- Liu, H.; Wang, L.; Shi, Y.; Wang, X.; Chang, F.; Wu, Y. A Deep Learning-Based Method for Detecting Granular Fertilizer Deposition Distribution Patterns in Centrifugal Variable-Rate Spreader Fertilization. Comput. Electron. Agric. 2023, 212, 108107. [Google Scholar] [CrossRef]
- Ozdarici-Ok, A.; Ok, A.O. Using Remote Sensing to Identify Individual Tree Species in Orchards: A Review. Sci. Hortic. 2023, 321, 112333. [Google Scholar] [CrossRef]
- Tang, Y.; Qiu, J.; Zhang, Y.; Wu, D.; Cao, Y.; Zhao, K.; Zhu, L. Optimization Strategies of Fruit Detection to Overcome the Challenge of Unstructured Background in Field Orchard Environment: A Review. Precis. Agric. 2023, 24, 1183–1219. [Google Scholar] [CrossRef]
- Huang, Y.; Qian, Y.; Wei, H.; Lu, Y.; Ling, B.; Qin, Y. A Survey of Deep Learning-Based Object Detection Methods in Crop Counting. Comput. Electron. Agric. 2023, 215, 108425. [Google Scholar] [CrossRef]
- Gongal, A.; Amatya, S.; Karkee, M.; Zhang, Q.; Lewis, K. Sensors and Systems for Fruit Detection and Localization: A Review. Comput. Electron. Agric. 2015, 116, 8–19. [Google Scholar] [CrossRef]
- Gao, F.; Fang, W.; Sun, X.; Wu, Z.; Zhao, G.; Li, G.; Li, R.; Fu, L.; Zhang, Q. A Novel Apple Fruit Detection and Counting Methodology Based on Deep Learning and Trunk Tracking in Modern Orchard. Comput. Electron. Agric. 2022, 197, 107000. [Google Scholar] [CrossRef]
- Nan, Y.; Zhang, H.; Zeng, Y.; Zheng, J.; Ge, Y. Intelligent Detection of Multi-Class Pitaya Fruits in Target Picking Row Based on WGB-YOLO Network. Comput. Electron. Agric. 2023, 208, 107780. [Google Scholar] [CrossRef]
- Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. In Proceedings of the 2014 IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 23–28 June 2014. [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, Amsterdam, The Netherlands, 11–14 October 2016; Leibe, B., Matas, J., Sebe, N., Welling, M., Eds.; Springer International Publishing: Cham, Switzerland, 2016; pp. 21–37. [Google Scholar]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016. [Google Scholar]
- Cao, Z.; Gong, C.; Meng, J.; Liu, L.; Rao, Y.; Hou, W. Orchard Vision Navigation Line Extraction Based on YOLOv8-Trunk Detection. IEEE Access 2024, 12, 104126–104137. [Google Scholar] [CrossRef]
- Brown, J.; Paudel, A.; Biehler, D.; Thompson, A.; Karkee, M.; Grimm, C.; Davidson, J.R. Tree Detection and In-Row Localization for Autonomous Precision Orchard Management. Comput. Electron. Agric. 2024, 227, 109454. [Google Scholar] [CrossRef]
- Tu, S.; Huang, Y.; Huang, Q.; Liu, H.; Cai, Y.; Lei, H. Estimation of Passion Fruit Yield Based on YOLOv8n + OC-SORT + CRCM Algorithm. Comput. Electron. Agric. 2025, 229, 109727. [Google Scholar] [CrossRef]
- Karim, M.J.; Nahiduzzaman, M.; Ahsan, M.; Haider, J. Development of an Early Detection and Automatic Targeting System for Cotton Weeds Using an Improved Lightweight YOLOv8 Architecture on an Edge Device. Knowl.-Based Syst. 2024, 300, 112204. [Google Scholar] [CrossRef]
- Sanchez, P.R.; Zhang, H. Precision Spraying Using Variable Time Delays and Vision-Based Velocity Estimation. Smart Agric. Technol. 2023, 5, 100253. [Google Scholar] [CrossRef]
- Zhong, Z.; Zheng, L.; Zheng, Z.; Li, S.; Yang, Y. Camera Style Adaptation for Person Re-Identification. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018. [Google Scholar]
- Terven, J.; Córdova-Esparza, D.-M.; Romero-González, J.-A. A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS. Mach. Learn. Knowl. Extr. 2023, 5, 1680–1716. [Google Scholar] [CrossRef]
- Zhang, Y.; Sun, P.; Jiang, Y.; Yu, D.; Weng, F.; Yuan, Z.; Luo, P.; Liu, W.; Wang, X. ByteTrack: Multi-Object Tracking by Associating Every Detection Box. In Proceedings of the Computer Vision—ECCV, Tel Aviv, Israel, 23–27 October 2022; Avidan, S., Brostow, G., Cissé, M., Farinella, G.M., Hassner, T., Eds.; Springer Nature: Cham, Switzerland, 2022; pp. 1–21. [Google Scholar]
- Bewley, A.; Ge, Z.; Ott, L.; Ramos, F.; Upcroft, B. Simple Online and Realtime Tracking. In Proceedings of the 2016 IEEE International Conference on Image Processing (ICIP), Phoenix, AZ, USA, 25–28 September 2016; pp. 3464–3468. [Google Scholar]
- Zhai, C.; Fu, H.; Zheng, K.; Zheng, S.; Wu, H.; Zhao, X. Establishment and experimental verification of deep learning model for on-line recognition of field cabbage. Trans. Chin. Soc. Agric. Mach. 2022, 53, 293–303. [Google Scholar] [CrossRef]
- Du, Y.; Zhao, Z.; Song, Y.; Zhao, Y.; Su, F.; Gong, T.; Meng, H. StrongSORT: Make DeepSORT Great Again. IEEE Trans. Multimed. 2023, 25, 8725–8737. [Google Scholar] [CrossRef]
- Aharon, N.; Orfaig, R.; Bobrovsky, B.-Z. BoT-SORT: Robust Associations Multi-Pedestrian Tracking. arXiv 2022, arXiv:2206.14651. [Google Scholar]
- Darkpgmr GitHub—Darkpgmr/DarkLabel: Video/Image Labeling and Annotation Tool. Available online: https://github.com/darkpgmr/DarkLabel (accessed on 5 August 2025).
- JonathonLuiten GitHub—JonathonLuiten/TrackEval: HOTA (and Other) Evaluation Metrics for Multi-Object Tracking (MOT). Available online: https://github.com/JonathonLuiten/TrackEval (accessed on 5 August 2025).
- Ma, B.; Hua, Z.; Wen, Y.; Deng, H.; Zhao, Y.; Pu, L.; Song, H. Using an Improved Lightweight YOLOv8 Model for Real-Time Detection of Multi-Stage Apple Fruit in Complex Orchard Environments. Artif. Intell. Agric. 2024, 11, 70–82. [Google Scholar] [CrossRef]
- Pinto de Aguiar, A.S.; Neves dos Santos, F.B.; Feliz dos Santos, L.C.; de Jesus Filipe, V.M.; Miranda de Sousa, A.J. Vineyard Trunk Detection Using Deep Learning—An Experimental Device Benchmark. Comput. Electron. Agric. 2020, 175, 105535. [Google Scholar] [CrossRef]
- Saha, S.; Noguchi, N. Smart Vineyard Row Navigation: A Machine Vision Approach Leveraging YOLOv8. Comput. Electron. Agric. 2025, 229, 109839. [Google Scholar] [CrossRef]















| Configuration | Parameters |
|---|---|
| CPU | Intel Xeon Gold 5218R |
| GPU | NVIDIA RTX 3090 |
| Operating system | Windows10 Pro |
| GPU computing platform | CUDA 11.6 |
| Library | Pytorch 1.13.1 |
| Hyper Parameters | Values |
|---|---|
| Optimizer | AdamW |
| Learning rate | 0.001 |
| Momentum | 0.937 |
| Weight decay | 0.0005 |
| Batch size | 16 |
| Epoch | 500 |
| Model | Dataset | P (%) | R (%) | mAP50 | Weight Size (MB) | FPS (ms) | FPS for Edge Device (ms) |
|---|---|---|---|---|---|---|---|
| YOLOv5n | Original | 90.9 | 89.5 | 0.931 | 5.30 | 30.43 | - |
| YOLOv6n | 89.9 | 88.8 | 0.932 | 8.70 | 38.01 | ||
| YOLOv8n | 88 | 88.1 | 0.927 | 6.23 | 38.03 | ||
| YOLOv11n | 89.1 | 88.9 | 0.933 | 5.52 | 29.71 | ||
| YOLOv5n | Combined | 95.2 | 92.0 | 0.971 | 5.18 | 32.78 | 27.21 |
| YOLOv6n | 97.6 | 92.8 | 0.961 | 8.32 | 37.77 | 31.93 | |
| YOLOv8n | 97.8 | 95.8 | 0.989 | 6.01 | 38.11 | 32.53 | |
| YOLOv11n | 98.2 | 95.0 | 0.974 | 5.23 | 30.41 | 25.74 |
| Scene | Method | HOTA (%) ↑ | MOTA (%) ↑ | IDF1 (%) ↑ | IDSW ↓ | Triggering/Total |
|---|---|---|---|---|---|---|
| Unoccluded | SORT | 71.883 | - | 88.768 | 163 | 66/72 |
| Strong-SORT | 74.896 | 89.433 | 92.362 | 48 | 68/72 | |
| BoT-SORT | 93.977 | 94.033 | 96.281 | 136 | 70/72 | |
| ByteTrack | 95.17 | 94.329 | 96.532 | 136 | 70/72 | |
| Occlusion | SORT | 40.525 | - | 45.624 | 80 | 35/40 |
| Strong-SORT | 37.897 | 38.104 | 38.7 | 95 | 32/40 | |
| BoT-SORT | 51.241 | 39.266 | 68.407 | 99 | 37/40 | |
| ByteTrack | 51.274 | 41.896 | 68.279 | 63 | 39/40 |
| d (cm) | v (m/s) | Triggering/Total | Ptrig (%) | Err (cm) | T (ms) |
|---|---|---|---|---|---|
| 4.0 | 0.3 | 50/50 | 100 | 1.42 | 47 |
| 0.5 | 47/50 | 94 | 1.18 | 24 | |
| 0.7 | 44/50 | 88 | 0.58 | 8 | |
| 7.0 | 0.3 | 48/50 | 96 | 3.24 | 108 |
| 0.5 | 48/50 | 96 | 2.80 | 56 | |
| 0.7 | 44/50 | 88 | 1.97 | 28 | |
| 10.0 | 0.3 | 49/50 | 98 | 4.23 | 141 |
| 0.5 | 49/50 | 98 | 3.6 | 72 | |
| 0.7 | 42/50 | 84 | 2.37 | 34 |
| Group | Dataset | Light Intensity (1 × 104 Lux) | Count/Total | Ptrig (%) |
|---|---|---|---|---|
| 1 | Original | 1.53–9.95 | 1326/1979 | 67.00 |
| 2 | Combined | 1794/1979 | 91.08 |
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
Zheng, K.; Yang, S.; Wang, Z.; Fu, H.; Wang, X.; Zou, W.; Zhai, C.; Chen, L. Real-Time Detection and Validation of a Target-Oriented Model for Spindle-Shaped Tree Trunks Leveraging Deep Learning. Agronomy 2026, 16, 210. https://doi.org/10.3390/agronomy16020210
Zheng K, Yang S, Wang Z, Fu H, Wang X, Zou W, Zhai C, Chen L. Real-Time Detection and Validation of a Target-Oriented Model for Spindle-Shaped Tree Trunks Leveraging Deep Learning. Agronomy. 2026; 16(2):210. https://doi.org/10.3390/agronomy16020210
Chicago/Turabian StyleZheng, Kang, Shuo Yang, Zhichong Wang, Hao Fu, Xiu Wang, Wei Zou, Changyuan Zhai, and Liping Chen. 2026. "Real-Time Detection and Validation of a Target-Oriented Model for Spindle-Shaped Tree Trunks Leveraging Deep Learning" Agronomy 16, no. 2: 210. https://doi.org/10.3390/agronomy16020210
APA StyleZheng, K., Yang, S., Wang, Z., Fu, H., Wang, X., Zou, W., Zhai, C., & Chen, L. (2026). Real-Time Detection and Validation of a Target-Oriented Model for Spindle-Shaped Tree Trunks Leveraging Deep Learning. Agronomy, 16(2), 210. https://doi.org/10.3390/agronomy16020210

