Optimizing tomato detection and counting in smart greenhouses: A lightweight YOLOv8 model incorporating high- and
Zhimin Tian1, Huijuan Hao1, Guowei Dai2,3,4
1Hebei University of Water Resources and Electric Engineering, Cangzhou, Hebei, China.
Abstract:
Tomato harvesting in intelligent greenhouses is crucial for reducing costs and optimizing management. Agricultural robots, as an automated solution, require advanced visual perception. This study proposes a tomato detection and counting algorithm based on YOLOv8 (TCAttn-YOLOv8). To handle small, occluded tomato targets in images, a new detection layer (NDL) is added to the Neck and Head decoupled structure, improving small object recognition. The ColBlock, a dual-branch structure leveraging Transformer advantages, enhances feature extraction and fusion, focusing on densely targeted regions and minimizing small object feature loss in complex backgrounds. C2fGhost and GhostConv are integrated into the Neck network to reduce model parameters and floating-point operations, improving feature expression. The WIoU (Wise-IoU) loss function is adopted to accelerate convergence and increase regression accuracy. Experimental results show that TCAttn-YOLOv8 achieves an mAP@0.5 of 96.31%, with an FPS of 95 and a parameter size of 2.7 M, outperforming seven lightweight YOLO algorithms. For automated tomato counting, the R2 between predicted and actual counts is 0.9282, indicating the algorithm's suitability for replacing manual counting. This method effectively supports tomato detection and counting in intelligent greenhouses, offering valuable insights for robotic harvesting and yield estimation research.
Related Concept Videos
Light Acquisition
Difference from Background: Limit of Detection
The LOD indicates the presence or absence...
Improving Translational Accuracy
Reducing Line Loss
With a step-up transformer at the source, the voltage is increased, thereby reducing the current in the transmission lines since power loss...
Extraction: Advanced Methods
Force Classification
Contact and non-contact forces are two of the most widely used categories of forces. As the name suggests, contact forces require physical contact between two objects to act upon each other. Examples of contact forces include frictional,...


