Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Rice Pest Detection Using Enhanced YOLOv8n with Multilayer Contextual Attention and Deformable Snake Convolution

Author 1: Shuangyuan Li Author 2: Jianglong Lin Author 3: Jiaming Liang Author 4: Tianyu Li
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 5 · Published 2026

DOI: 10.14569/IJACSA.2026.0170557

Abstract

Accurate and intelligent detection of rice pests is critical for ensuring food security and advancing precision agriculture. However, due to the small size, irregular morphology, dense distribution, and complex backgrounds of pest targets, traditional lightweight detection models often suffer from low recall and poor localization accuracy in real-world paddy field environments. To address these challenges, this study proposes an enhanced detection model, YOLO-Rice, based on the YOLOv8n framework. First, a Multilayer Contextual Attention (MLCA) module is embedded after the SPPF layer to collaboratively fuse channel, spatial, local, and global contextual information, thereby enhancing the model's sensitivity to subtle pest features. Second, the original C2f structure is redesigned into C2f-DS, which integrates Dynamic Snake Convolution (DSConv) to improve adaptive perception of deformable pest contours and irregular morphological edges. Finally, the conventional CIoU loss is replaced with a WIoU loss to guide the network to focus more effectively on hard-to-fit small and occluded targets. Extensive experiments on a self-constructed dataset of 11 common rice pest species demonstrate that YOLO-Rice achieves 84.8% Precision, 69.9% Recall, 78.7% mAP@0.5, and 63.4% mAP@0.5:0.95, representing significant improvements over the baseline YOLOv8n model. The proposed approach achieves an excellent balance between detection accuracy and computational efficiency, making it highly suitable for real-time deployment on UAVs and edge devices in agricultural pest monitoring applications.

Keywords

How to Cite this Article

Li, S., Lin, J., Liang, J., & Li, T. (2026). Rice Pest Detection Using Enhanced YOLOv8n with Multilayer Contextual Attention and Deformable Snake Convolution. International Journal of Advanced Computer Science and Applications, 17(5). https://doi.org/10.14569/IJACSA.2026.0170557

Li, Shuangyuan, et al.. "Rice Pest Detection Using Enhanced YOLOv8n with Multilayer Contextual Attention and Deformable Snake Convolution." International Journal of Advanced Computer Science and Applications, vol. 17, no. 5, 2026, https://doi.org/10.14569/IJACSA.2026.0170557.

@article{Li2026,
  title     = {Rice Pest Detection Using Enhanced YOLOv8n with Multilayer Contextual Attention and Deformable Snake Convolution},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {5},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Shuangyuan Li and Jianglong Lin and Jiaming Liang and Tianyu Li},
  doi       = {10.14569/IJACSA.2026.0170557},
  url       = {https://doi.org/10.14569/IJACSA.2026.0170557}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 12, December 2026
Paper Submission Due November 25, 2026
Review Notification December 15, 2026
Publication Date December 31, 2026