Next Article in Journal
Mass Trapping as a Sustainable Approach for Scarabaeidae Pest Management in Crops and Grasslands
Previous Article in Journal
Design and Test of Straw Crushing and Spreading Device Based on Straw Mulching No-Tillage Planter
Previous Article in Special Issue
Computer Vision for Site-Specific Weed Management in Precision Agriculture: A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Rapid Identification and Accurate Localization of Walnut Trunks Based on TIoU-YOLOv8n-Pruned

1
College of Mechanical Engineering, Xinjiang University, Urumqi 830017, China
2
Xinjiang Institute of Engineering, Urumqi 830063, China
*
Author to whom correspondence should be addressed.
Agriculture 2025, 15(23), 2405; https://doi.org/10.3390/agriculture15232405
Submission received: 2 October 2025 / Revised: 13 November 2025 / Accepted: 19 November 2025 / Published: 21 November 2025

Abstract

Visual perception has become a prerequisite for the operation of automated walnut vibration harvesting robots under complex orchard conditions. This study proposes an effective trunk target detection algorithm, TIoU-YOLOv8n-Pruned, based on YOLOv8n. First, to enhance the accuracy of walnut trunk prediction boxes matching true boxes at high overlap levels, a TIoU loss function is introduced. Second, to mitigate vibration effect caused by the PTO axis of the tractor, vibration trajectory fitting and coordinate correction are performed by capturing multiple images per second. To meet the frame rate requirements for coordinate correction, channel pruning removes 55% of the model’s non-essential channels. Experimental results show that the number of parameters and GFLOPs of TIoU-YOLOv8-Pruned are 950,000 and 3.6 GFLOPs, respectively, while its accuracy and mAP@0.5:0.95 reach 94.1% and 57.2%, outperforming YOLOv5n, YOLOv8n, YOLOv11n, FasterNet-YOLOv8n, Ghost-YOLOv8n, ShuffleNetv2-YOLOv8n, MobileNetV3-YOLOv8n, EfficientNet-YOLOv8n, GhostNetV3-YOLOv8n and MobileNetV4-YOLOv8n. After trajectory fitting and coordinate correction, it significantly reduces vibration-induced errors and enhances localization accuracy. Overall, the TIoU-YOLOv8n-Pruned model demonstrates applicability for trunk identification and localization in walnut orchard mechanical shaking harvesting, offering theoretical guidance for developing automated shaking harvesting equipment.
Keywords: walnut harvesting; image recognition; loss functions; model pruning; coordinate correction walnut harvesting; image recognition; loss functions; model pruning; coordinate correction

Share and Cite

MDPI and ACS Style

Ye, C.; Xu, Y.; Zhou, J.; Li, C.; Fang, F.; Jin, Z. Rapid Identification and Accurate Localization of Walnut Trunks Based on TIoU-YOLOv8n-Pruned. Agriculture 2025, 15, 2405. https://doi.org/10.3390/agriculture15232405

AMA Style

Ye C, Xu Y, Zhou J, Li C, Fang F, Jin Z. Rapid Identification and Accurate Localization of Walnut Trunks Based on TIoU-YOLOv8n-Pruned. Agriculture. 2025; 15(23):2405. https://doi.org/10.3390/agriculture15232405

Chicago/Turabian Style

Ye, Chenchen, Yan Xu, Jianping Zhou, Chengcheng Li, Fubao Fang, and Zhengyang Jin. 2025. "Rapid Identification and Accurate Localization of Walnut Trunks Based on TIoU-YOLOv8n-Pruned" Agriculture 15, no. 23: 2405. https://doi.org/10.3390/agriculture15232405

APA Style

Ye, C., Xu, Y., Zhou, J., Li, C., Fang, F., & Jin, Z. (2025). Rapid Identification and Accurate Localization of Walnut Trunks Based on TIoU-YOLOv8n-Pruned. Agriculture, 15(23), 2405. https://doi.org/10.3390/agriculture15232405

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

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop