Accelerating Image-based Pest Detection on a Heterogeneous Multi-core Microcontroller
Authors:
- Luca BompaniLBLuca Bompani
- Olmo BaldoniOBOlmo Baldoni
- Francesco ContiFCFrancesco Conti
Preprint
Abstract
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_DetectionKeywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Artificial Neural Networks and Computer Vision’s-Based Phytoindication Systems for Variable Rate Irrigation ImprovingIEEE Access, 2022
- Insecticide resistance in the Cydia pomonella (L): Global status, mechanisms, and research directionsPesticide Biochemistry and Physiology, 2021
- Automated Pest Detection With DNN on the Edge for Precision AgricultureIEEE Journal on Emerging and Selected Topics in Circuits and Systems, 2021
- Searching for MobileNetV32019
- A chromosome-level genome assembly of Cydia pomonella provides insights into chemical ecology and insecticide resistanceNature Communications, 2019
- Focal Loss for Dense Object Detection2017
- Automatic moth detection from trap images for pest managementComputers and Electronics in Agriculture, 2016
- Predicting the emergence of the codling moth, Cydia pomonella (Lepidoptera: Tortricidae), on a degree‐day scale in North AmericaPest Management Science, 2013
- NIH Image to ImageJ: 25 years of image analysisNature Methods, 2012
- A simulation model of population dynamics of the codling moth, Cydia pomonellaEcological Modelling, 1985