An Improved YOLOv8-Based Method for Detecting Pests and Diseases on Cucumber Leaves in Natural Backgrounds

The accurate detection and identification of pests and diseases on cucumber leaves is a prerequisite for scientifically controlling such issues. To address the limited detection accuracy of existing models in complex and diverse natural backgrounds, this study proposes an improved deep learning netw...

Full description

Saved in:
Bibliographic Details
Main Authors: Jiacong Xie, Xingliu Xie, Wu Xie, Qianxin Xie
Format: Article
Language:English
Published: MDPI AG 2025-03-01
Series:Sensors
Subjects:
Online Access:https://www.mdpi.com/1424-8220/25/5/1551
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:The accurate detection and identification of pests and diseases on cucumber leaves is a prerequisite for scientifically controlling such issues. To address the limited detection accuracy of existing models in complex and diverse natural backgrounds, this study proposes an improved deep learning network model based on YOLOv8, named SEDCN-YOLOv8. First, the deformable convolution network DCNv2 (Deformable Convolution Network version 2) is introduced, replacing the original C2f module with an improved C2f_DCNv2 module in the backbone feature extraction network’s final C2f block. This enhances the model’s ability to recognize multi-scale, deformable leaf shapes and disease characteristics. Second, a Separated and Enhancement Attention Module (SEAM) is integrated to construct an improved detection head, Detect_SEAM, which strengthens the learning of critical features in pest and disease channels. This module also captures the relationship between occluded and non-occluded leaves, thereby improving the recognition of diseased leaves that are partially obscured. Finally, the original CIOU loss function of YOLOv8 is replaced with the Focaler-SIOU loss function. The experimental results demonstrate that the SEDCN-YOLOv8 network achieves a mean average precision (mAP) of 75.1% for mAP50 and 53.1% for mAP50-95 on a cucumber pest and disease dataset, representing improvements of 1.8 and 1.5 percentage points, respectively, over the original YOLOv8 model. The new model exhibits superior detection accuracy and generalization capabilities, with a model size of 6 MB and a detection speed of 400 frames per second, fully meeting the requirements for industrial deployment and real-time detection. Therefore, the SEDCN-YOLOv8 network model demonstrates broad applicability and can be effectively used in large-scale real-world scenarios for cucumber leaf pest and disease detection.
ISSN:1424-8220