Quantitative Analysis of Deep Leaf: a Plant Disease Detector on the Smart Edge

Diagnosis of plant health conditions is gaining significant attention in smart agriculture. Timely recognition of early symptoms of a disease can help avoid the spread of epidemics on the plantations. In this regard, most of the existing solutions use some AI techniques on smart edge devices (IoTs or intelligent Cyber Physical Systems), typically equipped with a hardware like sensors and actuators. However, the resource constraints on such devices like energy (power), memory and computation capability, make the execution of complex operations and AI algorithms (neural network models) for disease detection quite challenging. To this end, compression and quantization techniques offer viable solutions to reduce the memory footprint of neural networks while maximizing performance on the constrained devices. In this paper, we realized a real intelligent CPS on top of which we implemented an AI application, called Deep Leaf running on a microcontroller of the STM32 family, to detect coffee plant diseases with the help of a Quantized Convolutional Neural Network (Q-CNN) model. We present a quantitative analysis of Deep Leaf by comparing five different deep learning models: a 32-bit floating point model, a compressed model, and three different types of quantized models exhibiting differences in terms of accuracy, memory utilization, average inference time, and energy consumption. Experimental results show that the proposed Deep Leaf detector is able to correctly classify the plant health condition with an accuracy of 96%, thus demonstrating the feasibility of our approach on a Smart Edge platform.

[1]  Santhosh Kumar S,et al.  Diseases Detection of Various Plant Leaf Using Image Processing Techniques: A Review , 2019, 2019 5th International Conference on Advanced Computing & Communication Systems (ICACCS).

[2]  Vikas Chandra,et al.  CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs , 2018, ArXiv.

[3]  Alessio Brutti,et al.  Compact Recurrent Neural Networks for Acoustic Event Detection on Low-Energy Low-Complexity Platforms , 2020, IEEE Journal of Selected Topics in Signal Processing.

[4]  Luca Benini,et al.  Work-in-Progress: Quantized NNs as the Definitive Solution for Inference on Low-Power ARM MCUs? , 2018, 2018 International Conference on Hardware/Software Codesign and System Synthesis (CODES+ISSS).

[5]  Marimuthu Palaniswami,et al.  Internet of Things (IoT): A vision, architectural elements, and future directions , 2012, Future Gener. Comput. Syst..

[6]  Sajal K. Das,et al.  A survey on fog computing for the Internet of Things , 2019, Pervasive Mob. Comput..

[7]  Michał Grochowski,et al.  Data augmentation for improving deep learning in image classification problem , 2018, 2018 International Interdisciplinary PhD Workshop (IIPhDW).

[8]  Adem Tuncer,et al.  Plant Leaf Disease Detection and Classification Based on CNN with LVQ Algorithm , 2018, 2018 3rd International Conference on Computer Science and Engineering (UBMK).

[9]  Yundong Zhang,et al.  Hello Edge: Keyword Spotting on Microcontrollers , 2017, ArXiv.

[10]  Jianxin Wu,et al.  ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression , 2017, 2017 IEEE International Conference on Computer Vision (ICCV).

[11]  Antonio Puliafito,et al.  I/Ocloud: Adding an IoT Dimension to Cloud Infrastructures , 2018, Computer.

[12]  Manuel Roveri,et al.  Intelligent Cyber-Physical Systems for Industry 4.0 , 2018, 2018 First International Conference on Artificial Intelligence for Industries (AI4I).

[13]  Yunhui Guo,et al.  A Survey on Methods and Theories of Quantized Neural Networks , 2018, ArXiv.

[14]  Shima Ramesh Maniyath,et al.  Plant Disease Detection Using Machine Learning , 2018, 2018 International Conference on Design Innovations for 3Cs Compute Communicate Control (ICDI3C).

[15]  Antonio Puliafito,et al.  Using Deep Reinforcement Learning for Application Relocation in Multi-Access Edge Computing , 2019, IEEE Communications Standards Magazine.

[16]  Danilo Pau,et al.  Intelligent Recognition of TCP Intrusions for Embedded Micro-controllers , 2019, ICIAP Workshops.