基于YOLO的面向中药材病虫害检测的轻量化自适应注意力模型
Lightweight Self-Adaptive Attention Model for Traditional Chinese Medicinal Herb Pest/Disease Detection Based on YOLO
摘要: 中药材病虫害检测面临小目标高密度分布与复杂背景干扰的双重挑战。本文提出一种轻量化自适应检测模型Agri-YOLO,通过多尺度自适应注意力(MAA)模块动态融合局部纹理与全局语义特征,并设计Ghost-ECA轻量化主干网络,在降低模型复杂度的同时提升小目标检测能力。实验表明,在自建数据集上,Agri-YOLO的mAP@0.5达到89.4% (较YOLOv8n提升6.2%),小目标漏检率从35.7%显著降至13.1%,参数量仅1.5 M (减少52%),计算量降至3.4 GFLOPs (降低61%)。该模型为复杂农业场景下的实时病虫害检测提供了高效解决方案。
Abstract: Pest detection in traditional Chinese medicinal herbs faces dual challenges of small objects with high-density distribution and complex background interference. This paper proposes Agri-YOLO, a lightweight adaptive detection model. The model dynamically integrates local texture and global semantic features through a Multi-Scale Adaptive Attention (MAA) module, and employs a Ghost-ECA lightweight backbone network to reduce model complexity while enhancing small object detection capability. Experimental results on our self-built dataset show that Agri-YOLO achieves a mAP@0.5 of 89.4% (6.2% higher than YOLOv8n), reduces the small object miss rate from 35.7% to 13.1%, and maintains only 1.5 M parameters (52% reduction) with 3.4 GFLOPs computational complexity (61% reduction). This model provides an efficient solution for real-time pest detection in complex agricultural scenarios.
文章引用:向伟栋, 龙玲, 汪华章. 基于YOLO的面向中药材病虫害检测的轻量化自适应注意力模型[J]. 计算机科学与应用, 2025, 15(6): 168-177. https://doi.org/10.12677/csa.2025.156167

参考文献

[1] Appiah, O., Hackman, K.O., Diakalia, S., Codjia, A.K.D., Bêbê, M., Ouedraogo, V., et al. (2025) TOM2024: Datasets of Tomato, Onion, and Maize Images for Developing Pests and Diseases AI-Based Classification Models. Data in Brief, 59, Article ID: 111357. [Google Scholar] [CrossRef] [PubMed]
[2] Yue, X., Qi, K., Na, X., et al. (2025) Deep Learning for Recognition and Detection of Plant Diseases and Pests. Neural Computing and Applications, 37, 11265-11310.
[3] Shoaib, M., Sadeghi-Niaraki, A., Ali, F., Hussain, I. and Khalid, S. (2025) Leveraging Deep Learning for Plant Disease and Pest Detection: A Comprehensive Review and Future Directions. Frontiers in Plant Science, 16, Article 1538163. [Google Scholar] [CrossRef] [PubMed]
[4] Wang, S., Xu, D., Liang, H., Bai, Y., Li, X., Zhou, J., et al. (2025) Advances in Deep Learning Applications for Plant Disease and Pest Detection: A Review. Remote Sensing, 17, Article 698. [Google Scholar] [CrossRef
[5] Pazhanivelan, S., Ragunath, K.P., Sudarmanian, N.S., Satheesh, S. and Shanmugapriya, P. (2025) Deep Learning-Based Multi-Class Pest and Disease Detection in Agricultural Fields. Journal of Scientific Research and Reports, 31, 538-546. [Google Scholar] [CrossRef
[6] Sharada, K., Choudhary, S.L., Harikrishna, T., Dixit, R.S., Suman, S.K., Ayyappa Chakravarthi, M., et al. (2025) GeoAgriGuard: AI-Driven Pest and Disease Management with Remote Sensing for Global Food Security. Remote Sensing in Earth Systems Sciences, 8, 409-422. [Google Scholar] [CrossRef
[7] Li, M., Tao, Z., Yan, W., Lin, S., Feng, K., Zhang, Z., et al. (2025) Apnet: Lightweight Network for Apricot Tree Disease and Pest Detection in Real-World Complex Backgrounds. Plant Methods, 21, Article No. 4. [Google Scholar] [CrossRef] [PubMed]
[8] Yu, X., Yao, X. and Gao, J. (2025) Study on Plant Diseases and Insect Pests Recognition Based on Deep Learning. IAENG International Journal of Computer Science, 52, 111-120.
[9] Yuan, Y., Sun, J. and Zhang, Q. (2024) An Enhanced Deep Learning Model for Effective Crop Pest and Disease Detection. Journal of Imaging, 10, Article 279. [Google Scholar] [CrossRef] [PubMed]
[10] Jelali, M. (2024) Deep Learning Networks-Based Tomato Disease and Pest Detection: A First Review of Research Studies Using Real Field Datasets. Frontiers in Plant Science, 15, Article 1493322. [Google Scholar] [CrossRef] [PubMed]
[11] Lv, P., Xu, H., Zhang, Y., Zhang, Q., Pan, Q., Qin, Y., et al. (2024) An Improved Multi-Scale Feature Extraction Network for Rice Disease and Pest Recognition. Insects, 15, Article 827. [Google Scholar] [CrossRef] [PubMed]
[12] Qiu, K., Zhang, Y., Ren, Z., Li, M., Wang, Q., Feng, Y., et al. (2024) SpemNet: A Cotton Disease and Pest Identification Method Based on Efficient Multi-Scale Attention and Stacking Patch Embedding. Insects, 15, Article 667. [Google Scholar] [CrossRef] [PubMed]
[13] Li, H., Tan, B., Sun, L., Liu, H., Zhang, H. and Liu, B. (2024) Multi-Source Image Fusion Based Regional Classification Method for Apple Diseases and Pests. Applied Sciences, 14, Article 7695. [Google Scholar] [CrossRef
[14] Sun, H., Nicholaus, I.T., Fu, R. and Kang, D. (2024) YOLO-FMDI: A Lightweight Yolov8 Focusing on a Multi-Scale Feature Diffusion Interaction Neck for Tomato Pest and Disease Detection. Electronics, 13, Article 2974. [Google Scholar] [CrossRef
[15] Christakakis, P., Papadopoulou, G., Mikos, G., Kalogiannidis, N., Ioannidis, D., Tzovaras, D., et al. (2024) Smartphone-based Citizen Science Tool for Plant Disease and Insect Pest Detection Using Artificial Intelligence. Technologies, 12, Article 101. [Google Scholar] [CrossRef
[16] Fu, X., Ma, Q., Yang, F., Zhang, C., Zhao, X., Chang, F., et al. (2024) Crop Pest Image Recognition Based on the Improved Vit Method. Information Processing in Agriculture, 11, 249-259. [Google Scholar] [CrossRef
[17] Yang, J., Liu, T., Yoon, S., et al. (2024) Editorial: Advanced AI Methods for Plant Disease and Pest Recognition. Frontiers in Plant Science, 15, Article 1434320. [Google Scholar] [CrossRef
[18] Li, R., He, Y., Li, Y., Qin, W., Abbas, A., Ji, R., et al. (2024) Identification of Cotton Pest and Disease Based on CFNet-VoV-GCSP-LSKNet-YOLOv8s: A New Era of Precision Agriculture. Frontiers in Plant Science, 15, Article 1348402. [Google Scholar] [CrossRef] [PubMed]
[19] Quach, L., Nguyen, Q.K., Nguyen, Q.A. and Lan, L.T.T. (2024) Rice Pest Dataset Supports the Construction of Smart Farming Systems. Data in Brief, 52, Article ID: 110046. [Google Scholar] [CrossRef] [PubMed]
[20] Li, B., Yang, S. and Wang, Z. (2024) Multimodal Application of GAN in the Image Recognition of Wheat Diseases and Insect Pests. International Journal of Advanced Computer Science and Applications, 15, 1023-1031. [Google Scholar] [CrossRef