Abstract:Aiming at the problem that weeds in small targets and overlapping occluded areas were difficult to identify under the complex environment of sweet potato field planting, and that the real-time performance was poor due to limited computing power of mobile devices, the YOLO 11n model was improved and a lightweight model (SCSF-YOLO 11n) was proposed for sweet potato seedling and weed identification that balanced accuracy and speed.Firstly, the ShuffleNetV2 lightweight network was adopted as the backbone feature extraction network to reduce the number of parameters and floating-point operations of the model.Secondly, the Context Guided Block was used to replace the bottleneck structure of the C3k2 module in the neck network, integrating the target area and surrounding environment information to reduce the interference of field background.To solve the problem of missing local detailed features caused by overlapping occlusion between sweet potato seedlings and weeds, the separated and enhancement attention module (SEAM) attention mechanism was integrated into the head network to extract and fuse multi-scale features, improving the identification ability of the model in occluded scenes.Finally, Focaler-MPDIoU was adopted as the loss function to accelerate the convergence speed of the model network and reduce its loss value.Experimental results showed that the improved model achieved precision, recall and mAP50 (mean average precision at 0.5 IoU) of 93.6%, 94.3% and 95.4% on the validation set, respectively, with only 1.4×10^6 parameters, 3.2 MB memory occupation, 3.1×10^9 floating-point operations and a processing speed of 112.6 frames per second.Compared with YOLO v5n, YOLOX-tiny, YOLO v7-tiny, YOLO v8n, YOLO v9t, YOLO v10n, YOLO 12n and DINO, the mAP50 was increased by 3.0, 4.1, 3.7, 4.6, 4.3, 5.8, 5.1 and 8.9 percentage points, respectively.Visualization results demonstrated that the improved model outperformed other models in scattered, dense and sweet potato seedling occluded scenes.Field tests deploying the improved model on NVIDIA Jetson Orin Nano showed that the mAP50 was 94.6%, and the average inference time for a single image was 33.26 ms, which met the requirements of mobile device deployment and real-time performance in complex sweet potato field environments.The research result can provide technical support for the subsequent industrial application of sweet potato field weeding robots.