1Shandong Agricultural Equipment Intelligent Engineering Laboratory; Shandong Provincial Key Laboratory of Horticultural, Machinery and Equipment; College of Mechanical and Electronic Engineering, Shandong Agricultural University, Tai’an 271000, China
2School of Construction Machinery, Shandong Jiaotong University, Jinan 250357, China
Received 16 Jan 2023 |
Accepted 08 Aug 2023 |
Published 29 Aug 2023 |
Berry thinning is one of the most important tasks in the management of high-quality table grapes. Farmers often thin the berries per cluster to a standard number by counting. With an aging population, it is hard to find adequate skilled farmers to work during thinning season. It is urgent to design an intelligent berry-thinning machine to avoid exhaustive repetitive labor. A machine vision system that can determine the number of berries removed and locate the berries removed is a challenge for the thinning machine. A method for instance segmentation of berries and berry counting in a single bunch is proposed based on AS-SwinT. In AS-SwinT, Swin Transformer is performed as the backbone to extract the rich characteristics of grape berries. An adaptive feature fusion is introduced to the neck network to sufficiently preserve the underlying features and enhance the detection of small berries. The size of berries in the dataset is statistically analyzed to optimize the anchor scale, and Soft-NMS is used to filter the candidate frames to reduce the missed detection of densely shaded berries. Finally, the proposed method could achieve 65.7 APbox, 95.0