基于改进YOLOv8的水稻病虫害检测方法研究:融合SCSA注意力机制与WiOUv3损失函数
Improved YOLOv8 for Rice Pest and Disease Detection with SCSA Attention and WiOUv3 Loss
DOI: 10.12677/csa.2026.1610320, PDF,   
作者: 沈珈毅, 周泽润, 沈云飞, 朱 宣, 黄金城*:盐城工学院信息工程学院,江苏 盐城;宋芷欣:盐城工学院材料科学与工程学院,江苏 盐城;杨舒雅:南通大学数学与统计学院,江苏 南通
关键词: YOLOv8;SCSA注意力机制;WiOUv3损失函数;小目标检测;YOLOv8; SCSA Attention Mechanism; WiOU Version 3 Loss Function; Small Object Detection
摘要: 传统的水稻病虫害检测方法通常存在小目标识别精度低、背景干扰强以及特征提取能力有限的问题。为解决这些挑战,本研究提出了一种基于YOLOv8 (You Only Look Once version 8)的改进水稻病虫害检测框架。该方法引入SCSA (Spatial-Channel-Spatial Attention)注意力机制,用来增强特征表达能力。本研究采用WiOUv3 (Wise Intersection over Union Version 3)替代传统IoU损失。该损失函数综合考虑预测框与真实框之间的重叠区域和中心距离,引入动态梯度权重机制。本研究在公开水稻病虫害数据集上进行评估,性能指标包括mAP@0.5、mAP@0.5:0.95、Precision和Recall。结果表明,YOLOv8-SCSA-WiOU在mAP@0.5指标上达到0.834,mAP@0.5:0.95为0.689,相比基线YOLOv8n的0.800和0.655有显著提升,Precision和Recall同样有所提高。
Abstract: Traditional rice pest and disease detection methods often suffer from low accuracy in detecting small targets, strong background interference, and limited feature extraction capabilities. To address these challenges, this study proposes an improved rice pest and disease detection framework based on YOLOv8 (You Only Look Once version 8). The proposed method incorporates the SCSA (Spatial-Channel-Spatial Attention) attention mechanism to enhance feature representation. In addition, WiOUv3 (Wise Intersection over Union Version 3) is employed to replace the conventional IoU loss function. The proposed loss function jointly considers the overlap region and center distance between the predicted and ground-truth bounding boxes and introduces a dynamic gradient weighting mechanism. The proposed method is evaluated on a publicly available rice pest and disease dataset using mAP@0.5, mAP@0.5:0.95, Precision, and Recall as performance metrics. Experimental results show that YOLOv8-SCSA-WiOU achieves an mAP@0.5 of 0.834 and an mAP@0.5:0.95 of 0.689, which are significantly higher than 0.800 and 0.655, respectively, for the baseline YOLOv8n. Precision and Recall are also improved.
文章引用:沈珈毅, 周泽润, 沈云飞, 朱宣, 黄金城, 宋芷欣, 杨舒雅. 基于改进YOLOv8的水稻病虫害检测方法研究:融合SCSA注意力机制与WiOUv3损失函数[J]. 计算机科学与应用, 2026, 16(10): 171-181. https://doi.org/10.12677/csa.2026.1610320

参考文献

[1] Ghosh, A., Sarkar, R. and Barman, D. (2026) Context-Aware Pesticide Recommendation via Few-Shot Pest Recognition for Precision Agriculture. arXiv: 2601.00243.
[2] Adhikari, P., Kumar, R., Iyengar, S.R.S. and Kaur, R. (2021) What a Million Indian Farmers Say? A Crowdsourcing-Based Method for Pest Surveillance. arXiv: 2108.03374.
[3] Qiang, J., Zhao, L., Wang, H., Xu, T., Jia, Q. and Sun, L. (2025) YOLO-PEST: A Novel Rice Pest Detection Approach Based on YOLOv5s. Plant Methods, 21, Article No. 121.
https://doi.org/10.1186/s13007-025-01438-w
[4] Yin, J., Huang, P., Xiao, D. and Zhang, B. (2024) A Lightweight Rice Pest Detection Algorithm Using Improved Attention Mechanism and YOLOv8. Agriculture, 14, Article 1052.
https://doi.org/10.3390/agriculture14071052
[5] Tong, Z., Chen, Y., Xu, Z. and Yu, R. (2023) Wise-IoU: Bounding Box Regression Loss with Dynamic Focusing Mechanism. arXiv: 2301.10051.
[6] Yaseen, M. (2024) What Is YOLOv8: An In-Depth Exploration of the Internal Features of the Next-Generation Object Detector. arXiv: 2408.15857.
[7] Si, Y., Xu, H., Zhu, X., Zhang, W., Dong, Y., Chen, Y., et al. (2025) SCSA: Exploring the Synergistic Effects between Spatial and Channel Attention. Neurocomputing, 634, Article ID: 129866.
https://doi.org/10.1016/j.neucom.2025.129866
[8] Shen, J.Y., Ran, W.H., Huang, J.C., Han, L.J., Jiao, T.H., Wang, X.Y., Li, J.Y. and Wang, J.W. (2025) Comparative Study on Rice Pest Detection Performance Using YOLOv5 Enhanced with Three C3 Attention Modules. Computer Science and Application, 15, 41-49.
https://doi.org/10.12677/csa.2025.158196