基于改进YOLOv8的番茄叶片病害智能检测算法OA
Intelligent Tomato Leaf Disease Detection Algorithm Based on Improved YOLOv8
针对番茄叶部病害早期识别困难、传统YOLOv8模型参数量大难以部署到边缘设备的问题,提出一种基于Ghost轻量化卷积与CBAM注意力机制融合改进的番茄叶片病害智能检测方法.该方法以YOLOv8n为基础检测框架,将骨干网络中所有C2f模块替换为C3Ghost,下采样卷积替换为GhostConv,在保证特征提取能力的同时降低计算开销;并在空间金字塔池化模块(SPPF)之后与颈部三尺度输出特征前嵌入CBAM模块,通过通道注意力与空间注意力的双重串联,提升模型对病斑细粒度纹理与小目标病变的关注能力.在包含10852张图像、10类常见番茄病害的公开数据集上的实验结果表明,所提出的Ghost-CBAM融合模型在mAP@0.5∶0.95指标上达到0.8762,较原始YOLOv8n基线提升0.94百分点,较单一 CBAM改进提升0.25百分点;同时模型参数量仅为1.73×106,较基线减少42.5%,权重文件减小至3.7MB.该方法兼顾了检测精度与模型轻量化2个矛盾目标,为田间边缘部署提供了可行方案.
To address the challenges of early identification of tomato leaf diseases and the large parameter size of conventional YOLOv8 models that hinder edge deployment,an intelligent tomato leaf disease detection method integrating Ghost lightweight convolution and the CBAM attention mechanism is proposed.Based on the YOLOv8n framework,all C2f modules in the backbone are replaced with C3Ghost,and downsampling convolutions are replaced with GhostConv to reduce computational cost while maintaining feature extraction capability.CBAM modules are further inserted after the SPPF module and before the three-scale outputs in the neck,using cascaded channel and spatial attention to enhance the model's focus on fine-grained lesion textures and small targets.Experiments on a public dataset containing 10,852 images covering 10 common tomato diseases demonstrate that the proposed Ghost-CBAM model achieves an mAP@0.5∶0.95 of 0.8762,surpassing the original YOLOv8n baseline by 0.94 percentage points and the CBAM-only variant by 0.25 percentage points.Meanwhile,the model parameter count is reduced to only 1.73×106(42.5%smaller than the baseline),with a weight file of just 3.7 MB.The proposed method effectively balances detection accuracy and model lightweighting,offering a practical solution for edge deployment in field settings.
迟盛元;张晓洁;贾骐宁;孟凡松;赵艳芹
哈尔滨信息工程学院软件学院,哈尔滨 150431哈尔滨信息工程学院软件学院,哈尔滨 150431哈尔滨信息工程学院软件学院,哈尔滨 150431哈尔滨信息工程学院软件学院,哈尔滨 150431黑龙江科技大学计算机与信息工程学院,哈尔滨 150022
农业科技
机番茄叶片病害目标检测YOLOv8Ghost卷积CBAM注意力轻量化模型
tomato leaf diseaseobject detectionYOLOv8Ghost convolutionCBAM attentionlightweight model
《农业与技术》 2026 (9)
47-51,5
黑龙江省自然科学基金项目(项目编号:PL2025F048)哈尔滨信息工程学院校级自然科学基金项目(项目编号XZRJJ2026001)哈尔滨信息工程学院高年级课题(项目编号2526130103052,2526130103053)
评论