Comparative analysis of attentional mechanisms in rice pest identification.

Journal: Scientific reports
Published Date:

Abstract

Accurate detection of rice pests helps farmers take timely control measures. This study compares different attention mechanisms for rice pest detection in complex backgrounds and demonstrates that a human vision-inspired Bionic Attention (BA) mechanism outperforms most traditional attention mechanisms in this task and is applicable to all major mainstream and novel models. Bionic Attention (BA) assists the main branch in recognition by additionally labeling important features of each rice pest category and inputting the additional category labels as bionic information into the network during the input stage. This study applies Bionic Attention to dominant entity classical and novel networks, including YOLOv5s, YOLOv8n, SSD, Faster R-CNN, YOLOv9-e, and YOLOv10-X, and compares it with classical attention mechanisms such as CBAM, SE, and SimAM to verify its feasibility. Meanwhile, this study introduces more detailed evaluation metrics to assess Bionic Attention, including Classification Error, Localization Error, Cls and Loc Error, Duplicate Detection Error, Background Error, and Missed GT Error. Experimental results show that Bionic Attention improves detection performance by indirectly enhancing the loss function, allowing the model to acquire more fine-grained information during the feature extraction stage, thereby improving detection accuracy.

Authors

  • Yongjun Xiao
    College of Information Engineering, Sichuan Agricultural University, Ya'an, 625000, China.
  • Xiangruo Zhang
    College of Water Conservancy and Hydropower Engineering, Sichuan Agricultural University, Ya'an, 625000, China.
  • Ziao Chen
    College of Law, Sichuan Agricultural University, Ya'an, 625000, China.
  • Jingxuan Tan
    College of Information Engineering, Sichuan Agricultural University, Ya'an, 625000, China.
  • Linyu Zhou
    College of Computer Science, China West Normal University, Nanchong, 637002, Sichuan, China.
  • Chunxian Jiang
    College of Agronomy, Sichuan Agricultural University, Cheng du, 611130, China.
  • Lijia Xu
    College of Mechanical and Electrical Engineering, Sichuan Agriculture University, Ya'an 625014, China.
  • Zhiyong Li
    School of Biological Science and Medical Engineering, Southeast University, Nanjing, 210096, China.