Weakly Supervised Learning Guided by Activation Mapping Applied to a Novel Citrus Pest Benchmark

Edson R. Bollis, Hélio Pedrini, Sandra AvilaWorkshops @ CVPR 2020 · DOI

Abstract

This paper presents a weakly supervised learning framework designed to automate the detection and classification of microscopic citrus pests. By leveraging saliency maps to guide patch extraction, the proposed method addresses the "needle in a haystack" challenge of identifying tiny mites in high-resolution imagery without requiring extensive manual bounding box annotations. Evaluated on the new Citrus Pest Benchmark (CPB), the system achieves 91.8% accuracy, demonstrating superior performance over manual patch selection and standard classification baselines.

Introduction

In citrus agriculture, microscopic pests such as mites are responsible for billions of dollars in annual losses. Current Integrated Pest Management (IPM) strategies rely on manual inspection, where human experts use magnifying glasses to count pests in orchards. This process is labor-intensive, slow, and prone to human error. While deep learning offers a path toward automation, two primary obstacles remain: the extreme scale difference between the tiny pests and high-resolution images, and the prohibitive cost of generating thousands of manual bounding box annotations for training.

Methodology

The researchers propose a weakly supervised Multiple Instance Learning (MIL) framework that utilizes internal model attention to bypass the need for manual localization. The pipeline operates in four distinct stages:

  1. Bag Model Training: An initial CNN (EfficientNet) is trained on full-sized images using only image-level labels (presence or absence of a pest).
  2. Patch-SaliMap Algorithm: Using Grad-CAM, the framework generates saliency maps to identify regions of high activation. The algorithm automatically extracts the top $k$ patches (e.g., 400x400 pixels) centered on these areas.
  3. Instance Model Fine-tuning: A second CNN is trained specifically on these high-resolution patches, allowing the model to learn fine-grained morphological features of the mites.
  4. Weighted Evaluation: During inference, the model evaluates all extracted patches and applies a weighted voting method, giving higher priority to patches with stronger saliency scores.

The Citrus Pest Benchmark (CPB)

To validate this approach, the authors introduced the Citrus Pest Benchmark (CPB), a novel dataset containing 10,816 images captured in Brazilian orchards. The data was collected using a mobile setup consisting of a smartphone and a 60x clip-on lens magnifier, covering six critical mite species and a negative class.

Smartphone equipped with a 60x lens magnifier used for data collection in Brazilian orchards.

Results and Discussion

The proposed framework achieved a state-of-the-art accuracy of 91.8% on the CPB dataset. Notably, this automated approach outperformed manual patch selection (86.0%) and standard full-image classification (81.2%). This suggests that the saliency-guided algorithm is more consistent at identifying discriminative features than human annotators.

A high-resolution patch of a citrus mite extracted via the Patch-SaliMap algorithm, preserving the fine-grained details necessary for species classification.

By utilizing EfficientNet-B0, the model maintains a small footprint (4.1 million parameters), making it highly suitable for future deployment on mobile devices for real-time field use.

Conclusion and Future Work

This research demonstrates that weakly supervised learning can effectively bridge the gap between high-resolution imagery and microscopic targets. Future work will focus on mitigating peripheral blur caused by low-cost lenses and optimizing the multi-step pipeline for real-time performance on mobile hardware. Additionally, the team aims to expand the model's capability to handle images containing multiple simultaneous pest species.

Summary updated

BibTeX
@inproceedings{bollis2020weakly,
  author = {Edson R. Bollis and Hélio Pedrini and Sandra Avila},
  title = {{Weakly Supervised Learning Guided by Activation Mapping Applied to a Novel Citrus Pest Benchmark}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00043},
}
Figure