Abstract:Aiming at the problem that the traditional recognition network structure is redundant and has low universality, which leads to complex reasoning process and low efficiency, and it is difficult to meet the needs of dense growth marigold detection, an improved lightweight YOLOv5s marigold recognition method is proposed, and reliable data support is provided for the recognition method through appropriate data set enhancement technology. This method uses ShuffleNet V2 instead of CSPDarknet53 as the backbone network, and introduces the SimAM attention mechanism to reduce the network size and improve the detection efficiency of dense targets. The neck network adopts the Slim-neck structure, and combines the GSConv and VoV-GSCSP modules to improve the feature extraction efficiency of dense targets. During the training process, the WIoU error function is used and the bounding box is dynamically adjusted through Soft-NMS to enhance the generalization ability of the network. The results of example analysis and field measurement show that the average accuracy of the improved lightweight YOLOv5s network is 3.00 % higher than that of the existing commonly used model, the parameter amount is reduced by 6.44 MB, the number of floating-point operations per second is reduced by 14.70 G, the model volume is reduced by 12.24 MB, and the number of frames per second is increased by 47.19 frames. The network has strong robustness, which greatly reduces its application and promotion costs.