YOLOv7‐PSAFP: Crop pest and disease detection based on improved YOLOv7

Lujia Du,Junlong Zhu,Muhua Liu,Lin Wang
DOI: https://doi.org/10.1049/ipr2.13304
IF: 2.3
2024-12-15
IET Image Processing
Abstract:We propose a crop pest and disease detection network structure based on YOLOv7, named YOLOv7‐PSAFP. First, we construct a progressive Spatial Adaptive Feature Pyramid network to address the inconsistency and conflict of features at different levels and the inability to fuse features across levels. Second, we use a combination of varifocal loss and loss rank mining functions to reduce the interference of cluttered backgrounds and the imbalance between positive and negative samples. The detection of pests and diseases in crops is currently a hot topic. The complexity of pest and disease object in the field, combined with inconsistent features across different levels, poses challenges for network detection. Additionally, the complex agricultural production environment tends to generate many interfering negative samples, which significantly complicates pest and disease differentiation. To address these two issues, the YOLOv7‐PSAFP network structure was first proposed. Based on YOLOV7, the progressive Spatial Adaptive Feature Pyramid (PSAFP) was introduced. Second, a combination of the Varifocal Loss and Loss Rank Mining loss functions was used for calculating the object loss, which reduces the interference of useless negative examples during training. On the filtered‐plant‐village‐dataset and rice‐corn pest dataset, the mAP results of YOLOv7‐PSAFP were 84.7% and 93.3% , which are 2.9% and 2.1% higher than the baseline model (YOLOv7), respectively. The code for this paper is located at https://github.com/DuLJ72/PSAFP.
computer science, artificial intelligence,engineering, electrical & electronic,imaging science & photographic technology
What problem does this paper attempt to address?