浙江农业学报 ›› 2025, Vol. 37 ›› Issue (9): 1933-1942.DOI: 10.3969/j.issn.1004-1524.20240836

• 植物保护 • 上一篇    下一篇

基于改进YOLOv8s的茶叶病虫害检测

刘睿1(), 王丽娟2,*(), 王秋皓1, 林旭东1, 郭启航1, 许多霖1, 李文妍1   

  1. 1 广东工业大学 国际教育学院, 广东 广州 510006
    2 广东工业大学 计算机学院, 广东 广州 510006
  • 收稿日期:2024-09-13 出版日期:2025-09-25 发布日期:2025-10-15
  • 作者简介:王丽娟,E-mail:1jwang@gdut.edu.cn
    刘睿(2003—),男,广东广州人,学士,主要从事深度学习、计算机视觉研究。E-mail:LR030107@163.com
  • 通讯作者: 王丽娟
  • 基金资助:
    广东省自然科学基金(2021A1515012556)

Detection of pest and disease in tea based on improved YOLOv8s

LIU Rui1(), WANG Lijuan2,*(), WANG Qiuhao1, LIN Xudong1, GUO Qihang1, XU Duolin1, LI Wenyan1   

  1. 1 College of International Education, Guangdong University of Technology, Guangzhou 510006, China
    2 The School of Computer Science and Technology, Guangdong University of Technology, Guangzhou 510006, China
  • Received:2024-09-13 Online:2025-09-25 Published:2025-10-15
  • Contact: WANG Lijuan

摘要:

茶叶种植中病虫害检测主要依靠传统的人工方法,存在效率低、准确性差的问题,本文提出一种改进的YOLOv8s模型,旨在实现茶叶病虫害的实时、高效检测。该模型构建了一个包含5类常见病虫害的数据集,通过引入卷积块注意力模块(CBAM),增强模型的表征能力,提升重要特征提取能力,提高了模型的识别精度;将FasterNet作为骨干网络,在保持高精度的同时缩短检测时间,降低模型复杂度;采用WIoU损失函数,有效解决了在图像处理过程中物体重叠的问题,提高了模型在实际情境下的检测性能。研究结果表明,与传统的YOLOv8s模型相比,改进后的YOLOv8s-CFW模型平均精度均值达到98.2%,提升3.7百分点,每秒浮点运算数(FLOPS)和参数量分别减少43.0%和45.2%,检测时间缩短了34.8%。改进模型在精度与轻量化方面均有显著提升,能满足实时检测需求,为茶叶病虫害的自动化检测提供了可靠的理论支持。

关键词: 茶叶, YOLOv8s, 病虫害检测, 轻量化

Abstract:

The detection of pests and diseases in tea cultivation mainly relies on traditional manual methods, which has problems of low efficiency and poor precision. This paper proposed an improved YOLOv8s model, which aimed to achieve real-time and efficient detection of pests and diseases in tea. A dataset containing five common pests and diseases was constructed in this model. By adding the convolutional block attention module (CBAM), the representation ability of model was enhanced, important feature extraction was enhanced, and the recognition precision of model was improved. The FasterNet backbone network was adopted to reduce detection time while maintaining high precision and significantly reduce the model complexity. By adopting the WIoU loss function, the object overlapping problem in the process of image processing was effectively solved and the detection performance of model in real situations was improved. The results showed that compared with the traditional YOLOv8s model, the mean average precision of improved YOLOv8s-CFW model reached 98.2%, which was improved by 3.7 percentage points, the floating-point operations per second (FLOPS) and parameter count were reduced by 43.0% and 45.2%, respectively, and the detection time was reduced by 34.8%.The improved model demonstrates significant improvements in both precision and lightweight, meets the requirements of real-time detection, and provides reliable theoretical support for the automated detection of pests and diseases in tea.

Key words: tea, YOLOv8s, detection of pest and disease, lightweight

中图分类号: