Abstract
Automatic pest detection and recognition using computer vision techniques are a hot topic in modern intelligent agriculture but suffer from a serious challenge: difficulty distinguishing the targets of similar pests in 2D images. The appearance-similarity problem could be summarized into two aspects: texture similarity and scale similarity. In this paper, we re-consider the pest similarity problem and state a new task for the specific agricultural pest detection, namely Appearance Similarity Pest Detection (ASPD) task. Specifically, we propose two novel metrics to define the texture-similarity and scale-similarity problems quantitatively, namely Multi-Texton Histogram (MTH) and Object Relative Size (ORS). Following the new definition of ASPD, we build a task-specific dataset named PestNet-AS that is collected and re-annotated from PestNet dataset and also present a corresponding method ASP-Det. In detail, our ASP-Det is designed to solve the texture-similarity by proposing a Pairwise Self-Attention (PSA) mechanism and Non-Local Modules to construct a domain adaptive balanced feature module that could provide high-quality feature descriptors for accurate pest classification. We also present a Skip-Calibrated Convolution (SCC) module that can balance the scale variation among the pest objects and re-calibrate the feature maps into the sizing equivalent of pests. Finally, ASP-Det integrates the PSA-Non Local and SCC modules into a one-stage anchor-free detection framework with a center-ness localization mechanism. Experiments on PestNet-AS show that our ASP-Det could serve as a strong baseline for the ASPD task.
Introduction: The Challenge of Appearance Similarity
Automated pest detection is a cornerstone of modern precision agriculture. However, standard computer vision models frequently falter when faced with the appearance similarity inherent in light-trap imagery. In these environments, many pest species exhibit nearly identical visual characteristics—similar wing textures, colors, and body shapes—making them difficult to distinguish even for human experts.
The authors formalize this challenge into two specific dimensions:
- Texture Similarity: Overlapping visual patterns across different species.
- Scale Similarity: Pests often share nearly identical spatial dimensions, rendering traditional "anchor-based" detectors ineffective as they rely on distinct spatial priors.
To address this, the researchers introduce the Appearance Similarity Pest Detection (ASPD) task, moving beyond general object detection to focus on fine-grained differentiation.
Quantifying Similarity and the PestNet-AS Dataset
To define the ASPD task rigorously, the paper introduces two quantitative metrics: Multi-Texton Histogram (MTH) for texture similarity and Object Relative Size (ORS) for scale similarity. These metrics demonstrate that agricultural pests occupy a much narrower and more overlapping feature space than objects in general-purpose datasets like MS COCO.
Supporting this new task is PestNet-AS, a large-scale dataset re-annotated from the original PestNet benchmark. It contains 87,672 images and 554,761 individual annotations across 24 sub-classes of Lepidoptera and Coleoptera.
The ASP-Det Framework
The proposed ASP-Det is a one-stage, anchor-free detection framework designed specifically for the ASPD task. Its architecture features two key innovations:
- Pairwise Self-Attention (PSA) & Non-Local Modules: These modules tackle texture similarity by learning complex relationships between feature points. This creates high-quality descriptors that allow the network to distinguish between species with overlapping visual patterns.
- Skip-Calibrated Convolution (SCC): This module addresses scale variation by re-calibrating feature maps across different levels of the feature pyramid. This ensures the model remains accurate even when pests are extremely small or clustered.
By adopting an anchor-free design, ASP-Det avoids the redundancy and localization errors common in anchor-based models when dealing with objects of nearly identical dimensions. A "center-ness" localization mechanism further refines results by suppressing low-quality bounding boxes far from the actual pest center.
Results and Performance
ASP-Det establishes a strong baseline on the PestNet-AS dataset, significantly outperforming general-purpose detectors:
- mAP: Achieved 45.0%, compared to YOLOv3 (30.8%) and Faster R-CNN (41.9%).
- AP50: Reached 74.9% at a 0.5 IoU threshold.
- Efficiency: A real-time variant (ASP-Det_RT) offers a 50% reduction in inference time with minimal accuracy loss, suitable for edge deployment.
- Recall: The model showed marked improvements in Mean Recall (MR), particularly for small-scale species that are often missed by traditional models.
Conclusion and Future Directions
While ASP-Det represents a significant step forward, challenges remain. Dense occlusions in traps can still lead to "omissions," and environmental factors can distort pest posture and color. Future research will focus on improving robustness against dense clusters and the diverse physical states of pests captured in the field.
Summary updated