Abstract
Accurate recognition of pest categories is crucial for effective pest control. Due to issues such as the large variation in pest appearance, low data quality, and complex real-world environments, pest recognition poses challenges in practical applications. At present, many models have made great efforts on the real scene dataset IP102, but the highest recognition accuracy is only 75%. To improve pest recognition in practice, this paper proposes a multi-image fusion recognition method. Considering that farmers have easy access to data, the method performs fusion recognition on multiple images of the same pest instead of the conventional single image. Specifically, the method first uses convolutional neural network (CNN) to extract feature maps from these images. Then, an effective feature localization module (EFLM) captures the feature maps outputted by all blocks of the last convolutional stage of the CNN, marks the regions with large activation values as pest locations, and then integrates and crops them to obtain the localized features. Next, the adaptive filtering fusion module (AFFM) learns gate masks and selection masks for these features to eliminate interference from useless information, and uses the attention mechanism to select beneficial features for fusion. Finally, the classifier categorizes the fused features and the soft voting (SV) module integrates these results to obtain the final pest category. The experimental results indicate that the proposed method achieves recognition accuracy of 96.1%, 100%, and 100% on IP102, D0, and ETP, respectively, using 5, 2, and 2 images.
Introduction: The "75% Accuracy Ceiling"
Automated pest recognition is a cornerstone of smart agriculture, yet it remains notoriously difficult in field conditions. While lab-based models boast high accuracy, real-world performance on datasets like IP102 has historically plateaued around 75%. This research addresses several critical hurdles:
- Intra-class variation: Pests look vastly different across growth stages (larva vs. pupa vs. adult).
- Inter-class similarity: Different species can appear nearly identical at certain stages.
- Data Quality: Field images are often blurry, poorly lit, or contain complex backgrounds where the pest is camouflaged.
Most existing models rely on a single image. This paper argues that since farmers can easily capture multiple photos of a pest from different angles, AI should leverage this multi-perspective information to resolve ambiguity, much like a human would rotate a leaf to identify a bug.
Methodology
The proposed architecture consists of two parallel paths: a General Branch (standard CNN) and an Improving Branch utilizing novel fusion logic.
Effective Feature Localization Module (EFLM)
Instead of processing the entire image, the EFLM examines activation maps from the last convolutional stage of a ResNet-50. It identifies regions with high "excitement" (likely the pest), integrates these across multiple layers, and crops the feature maps to focus strictly on the target. A threshold strategy that increases over training epochs allows the model to "explore" the whole image early on and "exploit" specific pest locations as it gains confidence.
Adaptive Filtering Fusion Module (AFFM)
This module is the core of the multi-image logic. It employs a multi-head self-attention mechanism enhanced by two critical filters:
- Gate Masks: These suppress noise and irrelevant background information within a single image.
- Selection Masks: These act as quality control, effectively "voting out" or discarding specific images from the set if they are too blurry or contain errors, ensuring only beneficial features are fused.
Finally, the Soft Voting (SV) module integrates the classification results from all images in the set to reach a final consensus.
Results and Discussion
The model was evaluated on three distinct benchmarks: IP102 (large-scale, noisy data), D0 (40 common crop pests), and ETP (Eight Tomato Pests).
- IP102 Dataset: The multi-image approach (using 5 images) reached 96.1% accuracy, a significant leap over the previous state-of-the-art (SOTA) of ~75%.
- D0 & ETP Datasets: The model achieved a perfect 100% accuracy using only two images.
- Ablation Studies: Removing the AFFM caused the largest performance drop (5.2%), proving that intelligent filtering of data is more critical than simply increasing the volume of data.
Conclusion
By moving from single-image analysis to an active filtering multi-image fusion approach, this research successfully breaks through the accuracy limitations of real-world pest recognition. While requiring multiple images increases the user's data collection effort, the dramatic gain in reliability makes it a viable solution for practical smart agriculture. The team has deployed these findings via a web application to assist farmers in reliable field identification.
Summary updated