Abstract:Aiming to address the issues of small target size, varying pest postures, and low detection efficiency, and suboptimal performance of trapping devices during live rice pest identification, an intelligent recognition method was proposed based on an improved YOLO v8n model integrated with a one-to-three live targeted trapping device. By optimizing the structural design of the traditional targeted recognition equipment, a one-to-three live targeted trapping device was developed to enhance operational efficiency. For the construction of the dataset required for intelligent recognition, a frame-by-frame image clarity comparison and sorting method was proposed to improve data quality. Additionally, an adaptive module was introduced into the improved CBAM attention mechanism to enhance the model’s focus on target regions, and a high-resolution P2 layer was added to the AFPN structure to improve small target recognition capability. Comparative experiments demonstrated that the improved YOLO v8n model achieved a mean average precision (mAP@0.5) of 95.65% on the rice leaf folder dataset. Ablation experiments further verified that the enhanced CBAM module and the introduction of the P2 layer in the AFPN structure significantly improved model performance, resulting in optimal overall recognition capability. Field trials confirmed the practical effectiveness of the improved YOLO v8n model, achieving a recognition rate of over 90% for rice leaf folder pests across 60 mu (approximately 4 hectares) of rice fields when combined with the targeted identification device, demonstrating good robustness and stability. In summary, the intelligent recognition method for live rice pests based on YOLO v8n the improved model proposed effectively enhanced recognition accuracy and efficiency, providing a scientific basis for precise pest identification and control in rice fields, with strong practical application value and promotion potential.