Abstract:Aiming at the problems of few algorithms for detecting sugarcane leaf disease, large model parameters and low recognition accuracy, a lightweight sugarcane leaf disease recognition algorithm based on YOLO v8n was designed. The algorithm took five common sugarcane leaf diseases as the research object. The standard convolution module and C2f module in the network structure were replaced by Ghost convolution module and C3Ghost module, respectively, to reduce the amount of model parameters and calculation. The EMA attention mechanism was added to the backbone network to enhance the multi-scale feature extraction and fusion of the algorithm. A small target detection layer was added to the model structure to enhance the detection effect of small targets in the data. The results showed that compared with the original YOLO v8n model, the precision, recall and mean average precision of the improved model in the test set were 90.4%, 95.7% and 95.3%, respectively, which were 2.8 percentage points, 11.0 percentage points and 4.3 percentage points higher than that of the original model. The parameters and model size were reduced by 46.5% and 41.3%, respectively, and the detection effect was significantly better than that of other lightweight detection algorithms, which can provide reference for the real-time detection of sugarcane leaf disease. This study can serve as an effective method for early disease monitoring of sugarcance to provide guidance for precision prevention and control, and can offer data support for sugarcane cultivation and management decisions, thereby effectively improving the efficiency and benefits of sugarcane cultivation.