Accelerating Image-based Pest Detection on a Heterogeneous Multi-core Microcontroller

Read original: arXiv:2408.15911 - Published 8/30/2024 by Luca Bompani, Luca Crupi, Daniele Palossi, Olmo Baldoni, Davide Brunelli, Francesco Conti, Manuele Rusci, Luca Benini
Total Score

0

Accelerating Image-based Pest Detection on a Heterogeneous Multi-core Microcontroller

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • Researchers developed a system to detect agricultural pests like the codling moth on a heterogeneous multi-core microcontroller.
  • The system uses a Viola-Jones object detection algorithm and a small convolutional neural network model.
  • Key contributions include accelerating the object detection algorithm and efficiently deploying the neural network on the microcontroller.

Plain English Explanation

The researchers created a system to automatically detect agricultural pests, like the codling moth, using a small microcontroller. This is important for smart agriculture applications where you need to monitor for pests in an affordable and energy-efficient way.

The system works by first using a Viola-Jones object detection algorithm to quickly scan images and find potential pest locations. Then, a small convolutional neural network classifies those regions to determine if a pest is actually present.

The key innovations were:

  1. Optimizing the Viola-Jones algorithm to run faster on the microcontroller's multiple processing cores.
  2. Efficiently deploying the neural network model so it could fit and run well on the limited memory and compute of the microcontroller.

This allows the system to quickly and accurately detect pests on-site, without needing a powerful computer. This is important for monitoring insect populations in remote agricultural settings.

Technical Explanation

The researchers designed a system to detect agricultural pests like the codling moth using a heterogeneous multi-core microcontroller. The core components are:

  1. Viola-Jones Object Detection: They used the Viola-Jones object detection algorithm to quickly scan images and identify regions containing potential pests. This algorithm works by using a cascade of simple classifiers to efficiently search for target objects.

  2. Convolutional Neural Network Classification: They trained a small convolutional neural network (CNN) model to classify the regions identified by Viola-Jones and determine if a pest is actually present. CNNs are well-suited for image recognition tasks like this.

To deploy this system on a resource-constrained microcontroller, the researchers had to make several optimizations:

  • Accelerated Viola-Jones: They parallelized the Viola-Jones algorithm to run efficiently on the microcontroller's multiple processor cores, reducing the overall detection time.
  • Compact CNN Model: They pruned and quantized the CNN model to significantly reduce its size and memory footprint, allowing it to fit on the microcontroller.

Through these innovations, the researchers were able to create an embedded pest detection system that can quickly and accurately identify pests like the codling moth on-site, without requiring a powerful external computer.

Critical Analysis

The researchers thoroughly evaluated their system's performance, showing it could achieve high accuracy while running efficiently on the target microcontroller hardware. However, a few potential limitations are worth considering:

  • Limited Pest Scope: The system was only tested on the codling moth, so its generalization to other pest species is unclear. Further research could explore its adaptability to a wider range of agricultural pests.

  • Environmental Factors: The paper does not address how the system would perform under varying environmental conditions, such as changes in lighting, camera angle, or background clutter. Real-world deployment would likely require additional robustness testing.

  • Hardware Constraints: While the microcontroller platform provides energy-efficient on-site processing, its limited resources may restrict the complexity of models that can be deployed. Exploring more powerful embedded processors could enable even more sophisticated pest detection capabilities.

Overall, this work demonstrates promising progress in bringing advanced computer vision techniques to resource-constrained agricultural monitoring applications. Continued research and development in this area could lead to valuable smart farming tools for improving crop yields and reducing pest damage.

Conclusion

The researchers developed an efficient system for image-based pest detection on a heterogeneous multi-core microcontroller. By optimizing a Viola-Jones object detection algorithm and deploying a compact convolutional neural network, they were able to create an embedded solution that can quickly and accurately identify agricultural pests like the codling moth in real-world settings.

This work advances the state of the art in smart agriculture by demonstrating how computer vision techniques can be adapted to run on resource-constrained hardware, enabling on-site pest monitoring and detection. Further research to expand the system's capabilities and robustness could lead to valuable tools for improving crop yields and reducing the environmental impact of pest infestations.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

Accelerating Image-based Pest Detection on a Heterogeneous Multi-core Microcontroller
Total Score

0

Accelerating Image-based Pest Detection on a Heterogeneous Multi-core Microcontroller

Luca Bompani, Luca Crupi, Daniele Palossi, Olmo Baldoni, Davide Brunelli, Francesco Conti, Manuele Rusci, Luca Benini

The codling moth pest poses a significant threat to global crop production, with potential losses of up to 80% in apple orchards. Special camera-based sensor nodes are deployed in the field to record and transmit images of trapped insects to monitor the presence of the pest. This paper investigates the embedding of computer vision algorithms in the sensor node using a novel State-of-the-Art Microcontroller Unit (MCU), the GreenWaves Technologies' GAP9 System-on-Chip, which combines 10 RISC-V general purposes cores with a convolution hardware accelerator. We compare the performance of a lightweight Viola-Jones detector algorithm with a Convolutional Neural Network (CNN), MobileNetV3-SSDLite, trained for the pest detection task. On two datasets that differentiate for the distance between the camera sensor and the pest targets, the CNN generalizes better than the other method and achieves a detection accuracy between 83% and 72%. Thanks to the GAP9's CNN accelerator, the CNN inference task takes only 147 ms to process a 320$times$240 image. Compared to the GAP8 MCU, which only relies on general-purpose cores for processing, we achieved 9.5$times$ faster inference speed. When running on a 1000 mAh battery at 3.7 V, the estimated lifetime is approximately 199 days, processing an image every 30 seconds. Our study demonstrates that the novel heterogeneous MCU can perform end-to-end CNN inference with an energy consumption of just 4.85 mJ, matching the efficiency of the simpler Viola-Jones algorithm and offering power consumption up to 15$times$ lower than previous methods. Code at: https://github.com/Bomps4/TAFE_Pest_Detection

Read more

8/30/2024

🤿

Total Score

0

A Deep Learning-based Pest Insect Monitoring System for Ultra-low Power Pocket-sized Drones

Luca Crupi, Luca Butera, Alberto Ferrante, Daniele Palossi

Smart farming and precision agriculture represent game-changer technologies for efficient and sustainable agribusiness. Miniaturized palm-sized drones can act as flexible smart sensors inspecting crops, looking for early signs of potential pest outbreaking. However, achieving such an ambitious goal requires hardware-software codesign to develop accurate deep learning (DL) detection models while keeping memory and computational needs under an ultra-tight budget, i.e., a few MB on-chip memory and a few 100s mW power envelope. This work presents a novel vertically integrated solution featuring two ultra-low power System-on-Chips (SoCs), i.e., the dual-core STM32H74 and a multi-core GWT GAP9, running two State-of-the-Art DL models for detecting the Popillia japonica bug. We fine-tune both models for our image-based detection task, quantize them in 8-bit integers, and deploy them on the two SoCs. On the STM32H74, we deploy a FOMO-MobileNetV2 model, achieving a mean average precision (mAP) of 0.66 and running at 16.1 frame/s within 498 mW. While on the GAP9 SoC, we deploy a more complex SSDLite-MobileNetV3, which scores an mAP of 0.79 and peaks at 6.8 frame/s within 33 mW. Compared to a top-notch RetinaNet-ResNet101-FPN full-precision baseline, which requires 14.9x more memory and 300x more operations per inference, our best model drops only 15% in mAP, paving the way toward autonomous palm-sized drones capable of lightweight and precise pest detection.

Read more

7/2/2024

👀

Total Score

0

Low Cost Machine Vision for Insect Classification

Danja Brandt, Martin Tschaikner, Teodor Chiaburu, Henning Schmidt, Ilona Schrimpf, Alexandra Stadel, Ingeborg E. Beckers, Frank Hau{ss}er

Preserving the number and diversity of insects is one of our society's most important goals in the area of environmental sustainability. A prerequisite for this is a systematic and up-scaled monitoring in order to detect correlations and identify countermeasures. Therefore, automatized monitoring using live traps is important, but so far there is no system that provides image data of sufficient detailed information for entomological classification. In this work, we present an imaging method as part of a multisensor system developed as a low-cost, scalable, open-source system that is adaptable to classical trap types. The image quality meets the requirements needed for classification in the taxonomic tree. Therefore, illumination and resolution have been optimized and motion artefacts have been suppressed. The system is evaluated exemplarily on a dataset consisting of 16 insect species of the same as well as different genus, family and order. We demonstrate that standard CNN-architectures like ResNet50 (pretrained on iNaturalist data) or MobileNet perform very well for the prediction task after re-training. Smaller custom made CNNs also lead to promising results. Classification accuracy of $>96%$ has been achieved. Moreover, it was proved that image cropping of insects is necessary for classification of species with high inter-class similarity.

Read more

4/29/2024

Investigation to answer three key questions concerning plant pest identification and development of a practical identification framework
Total Score

0

Investigation to answer three key questions concerning plant pest identification and development of a practical identification framework

Ryosuke Wayama, Yuki Sasaki, Satoshi Kagiwada, Nobusuke Iwasaki, Hitoshi Iyatomi

The development of practical and robust automated diagnostic systems for identifying plant pests is crucial for efficient agricultural production. In this paper, we first investigate three key research questions (RQs) that have not been addressed thus far in the field of image-based plant pest identification. Based on the knowledge gained, we then develop an accurate, robust, and fast plant pest identification framework using 334K images comprising 78 combinations of four plant portions (the leaf front, leaf back, fruit, and flower of cucumber, tomato, strawberry, and eggplant) and 20 pest species captured at 27 farms. The results reveal the following. (1) For an appropriate evaluation of the model, the test data should not include images of the field from which the training images were collected, or other considerations to increase the diversity of the test set should be taken into account. (2) Pre-extraction of ROIs, such as leaves and fruits, helps to improve identification accuracy. (3) Integration of closely related species using the same control methods and cross-crop training methods for the same pests, are effective. Our two-stage plant pest identification framework, enabling ROI detection and convolutional neural network (CNN)-based identification, achieved a highly practical performance of 91.0% and 88.5% in mean accuracy and macro F1 score, respectively, for 12,223 instances of test data of 21 classes collected from unseen fields, where 25 classes of images from 318,971 samples were used for training; the average identification time was 476 ms/image.

Read more

7/26/2024