Abstract:Aiming at the problems of poor real-time performance, low accuracy, false detections, and missed detections in current apple leaf disease target detection algorithms in complex environments, focusing on common diseases such as black rot, gray spot, rust, and scab on apple leaves, an improved YOLO v8-based detection model for apple leaf diseases was constructed. Firstly, the traditional convolution operation (Conv) was replaced with partial convolution (PConv), and based on PConv, the C2f_Faster module was designed to replace the C2f module in the backbone network, reducing the computational load of the model without compromising its accuracy. Secondly, a triple attention mechanism was added after the spatial pyramid pooling module (SPPF) to enhance feature extraction capabilities in complex backgrounds. Finally, the CIoU loss function in YOLO v8 was replaced with the minimum point distance-based intersection over union loss function MPDIoU to improve the localization accuracy of disease targets. Validation experiments showed that, for a dataset of apple leaf disease images collected in natural scenes, the computational load and parameter count of the optimized network architecture were reduced by 20.9% and 23%, respectively, compared with the original YOLO v8n baseline model. Meanwhile, precision, recall, and mAP@0.5 was increased by 1.5, 2.9, and 2.2 percentage points, reaching 89.2%, 91.4%, and 94.6%, respectively. Compared with YOLO v3, YOLO v5, YOLO v8n, YOLO v9n, and YOLO v10n models, mAP@0.5 was improved by 3.5, 3.0, 2.2, 2.4, and 2.6 percentage points, respectively. The method proposed significantly improved recognition accuracy while maintaining real-time processing performance, providing reliable technical support for the development of edge computing detection systems for apple leaf diseases.