Comparative Study on Rice Pest Detection Performance Using YOLOv5 Enhanced with Three C3 Attention Modules

中国是全球最大的水稻生产国,种植面积常年约占全球总量的20%。虫害是制约水稻产量和品质的主要因素之一,传统虫害检测方法主要依赖人工观察和性诱捕法,但两者均存在局限性,难以满足现代农业对虫害的精准防控需求。随着农业智能化的发展与深度学习的广泛应用,基于深度学习的农作物病虫害智能检测已成为研究热点方向。本文针对上述问题,依据实际场景采用目标检测方法对水稻害虫进行检测,对YOLOv5 (You Only Look Once version 5)检测算法进行改进,在其基础上引入三种主流注意力机制——ECA (Efficient Channel Attention)、CBAM (Convolutional Block Attention Module)和SE (Squeeze-and-Excitation),分别构建改进模块C3ECA、C3CBAM和C3SE,分别替代原主干网络中的C3模块,从而形成三种改进模型:YOLOv5s-C3ECA、YOLOv5s-C3CBAM与YOLOv5s-C3SE。通过在公开稻田害虫图像数据集上的训练与测试,实验结果表明,与原始的YOLOv5s相比,YOLOv5s-C3CBAM和YOLOv5s-C3ECA改进模型在[email protected]、[email protected]:0.95分别有不同程度的提升,其中YOLOv5s-C3CBAM在[email protected]、[email protected]:0.95上分别提升1.2%和0.3%;YOLOv5s-C3ECA在[email protected]、[email protected]:0.95上分别提升2.5%和1.1%。结果表明,所提出的改进策略在保持模型轻量化的同时提升了水稻害虫目标的检测精度与稳定性,适用于资源受限场景下的农业智能终端部署,具有良好的实际应用价值。China is the largest rice producer worldwide, with a planting area accounting for approximately 20% of the global total. Pest infestation is one of the primary factors limiting rice yield and quality. Traditional pest detection methods mainly rely on manual inspection and sex pheromone trapping, both of which have limitations and fail to meet the precise pest control requirements of modern agriculture. With the development of agricultural intelligence and the widespread application of deep learning, deep learning-based intelligent detection of crop pests and diseases has become a research hotspot. To address these issues, this study employs an object detection approach for rice pest identification and improves the YOLOv5 (You Only Look Once version 5) detection algorithm by introducing three mainstream attention mechanisms—ECA (Efficient Channel Attention), CBAM (Convolutional Block Attention Module), and SE (Squeeze-and-Excitation). Corresponding improved modules C3ECA, C3CBAM, and C3SE are constructed to replace the original C3 modules in the backbone network, forming three improved models: YOLOv5s-C3ECA, YOLOv5s-C3CBAM, and YOLOv5s-C3SE. Experiments conducted on a publicly available rice pest image dataset demonstrate that compared with the original YOLOv5s, the YOLOv5s-C3CBAM and YOLOv5s-C3ECA models achieve varying degrees of improvement in [email protected] and [email protected]:0.95, with YOLOv5s-C3CBAM improving by 1.2% and 0.3%, and YOLOv5s-C3ECA improving by 2.5% and 1.1%, respectively. The results indicate that the proposed improvement strategy enhances detection accuracy and stability of rice pest targets while maintaining model lightweight characteristics, making it suitable for deployment on resource-constrained agricultural intelligent terminals and offering significant practical value.

Authors

Publication Details

Journal
Computer Science and Application
Published
2025-01-01
DOI
https://doi.org/10.12677/csa.2025.158196
Citations
1
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
1.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Study on Rice Pest Detection Performance Using YOLOv5 Enhanced with Three C3 Attention Modules

珈毅 沈
1 citations
Computer Science and Application
Smart Agriculture and AI
1.75
article

Comparative Study on Rice Pest Detection Performance Using YOLOv5 Enhanced with Three C3 Attention Modules

珈毅 沈
article en
1 citations

Abstract

中国是全球最大的水稻生产国,种植面积常年约占全球总量的20%。虫害是制约水稻产量和品质的主要因素之一,传统虫害检测方法主要依赖人工观察和性诱捕法,但两者均存在局限性,难以满足现代农业对虫害的精准防控需求。随着农业智能化的发展与深度学习的广泛应用,基于深度学习的农作物病虫害智能检测已成为研究热点方向。本文针对上述问题,依据实际场景采用目标检测方法对水稻害虫进行检测,对YOLOv5 (You Only Look Once version 5)检测算法进行改进,在其基础上引入三种主流注意力机制——ECA (Efficient Channel Attention)、CBAM (Convolutional Block Attention Module)和SE (Squeeze-and-Excitation),分别构建改进模块C3ECA、C3CBAM和C3SE,分别替代原主干网络中的C3模块,从而形成三种改进模型:YOLOv5s-C3ECA、YOLOv5s-C3CBAM与YOLOv5s-C3SE。通过在公开稻田害虫图像数据集上的训练与测试,实验结果表明,与原始的YOLOv5s相比,YOLOv5s-C3CBAM和YOLOv5s-C3ECA改进模型在[email protected]、[email protected]:0.95分别有不同程度的提升,其中YOLOv5s-C3CBAM在[email protected]、[email protected]:0.95上分别提升1.2%和0.3%;YOLOv5s-C3ECA在[email protected]、[email protected]:0.95上分别提升2.5%和1.1%。结果表明,所提出的改进策略在保持模型轻量化的同时提升了水稻害虫目标的检测精度与稳定性,适用于资源受限场景下的农业智能终端部署,具有良好的实际应用价值。China is the largest rice producer worldwide, with a planting area accounting for approximately 20% of the global total. Pest infestation is one of the primary factors limiting rice yield and quality. Traditional pest detection methods mainly rely on manual inspection and sex pheromone trapping, both of which have limitations and fail to meet the precise pest control requirements of modern agriculture. With the development of agricultural intelligence and the widespread application of deep learning, deep learning-based intelligent detection of crop pests and diseases has become a research hotspot. To address these issues, this study employs an object detection approach for rice pest identification and improves the YOLOv5 (You Only Look Once version 5) detection algorithm by introducing three mainstream attention mechanisms—ECA (Efficient Channel Attention), CBAM (Convolutional Block Attention Module), and SE (Squeeze-and-Excitation). Corresponding improved modules C3ECA, C3CBAM, and C3SE are constructed to replace the original C3 modules in the backbone network, forming three improved models: YOLOv5s-C3ECA, YOLOv5s-C3CBAM, and YOLOv5s-C3SE. Experiments conducted on a publicly available rice pest image dataset demonstrate that compared with the original YOLOv5s, the YOLOv5s-C3CBAM and YOLOv5s-C3ECA models achieve varying degrees of improvement in [email protected] and [email protected]:0.95, with YOLOv5s-C3CBAM improving by 1.2% and 0.3%, and YOLOv5s-C3ECA improving by 2.5% and 1.1%, respectively. The results indicate that the proposed improvement strategy enhances detection accuracy and stability of rice pest targets while maintaining model lightweight characteristics, making it suitable for deployment on resource-constrained agricultural intelligent terminals and offering significant practical value.

Computer Science and ApplicationVol. 15(08)
Zero hunger
Openalex Percentile: Top 13%
Smart Agriculture and AI
1.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.