AgroBot: A Robotic Convolutional Neural Network-Based System for Plant Disease Identification

DOI : 10.17577/IJERTV14IS030160

Download Full-Text PDF Cite this Publication

Text Only Version

AgroBot: A Robotic Convolutional Neural Network-Based System for Plant Disease Identification

Jubinakabeer

Jyothilekshmi S

BTech scholar, Dept. of EEE,

BTech scholar, Dept. of EEE,

College of Engineering Karunagappally,

College of Engineering Karunagappally,

Kollam, Kerala, India

Kerala, India

Noora NS

Kavya S

BTech scholar, Dept. of EEE,

BTech scholar, Dept. of EEE,

College of Engineering Karunagappally,

College of Engineering Karunagappally,

Kerala, India

Kerala, India

Savitha KP

Professor, Dept of EEE, College of Engineering Karunagappally,

Kerala, India

Abstract

Plant disease pose a significant threat to global food security, causing reduced crop yields and economic loses.Traditional detec- tion methods are time-consuming, expertise-dependent, and inaccessible to many farm-ers. One of the immediate concerns facing in agricultural sector is the timely detec-tion of plant disease which adversely affects the crop yields and food security. With re- cent breakthroughs in machine learning and computer vision, automated systems are now emerging as a viable solution. Convolutional Neural Networks, CNNs, have achieved out-standing success in image classification tasks, rendering them exceptionally well-suited for plant disease detection. This paper focuses on building a robust plant disease detec-tion system using CNNs and PlantVillage dataset. This approach not only improves the accuracy of disease detection but also contributes to the timely identification of plant health issues, aiding in more effective disease management strategies.

I INTRODUCTION

Agriculture is an inevitable factor for the existence of life.Plant diseases pose a big threat to the global agricultural economy, and these can cause monu-mental losses in crops and food safety if not diag-nosed early or wrongly diagnosed. Detecting plant disease early is the key to eliminating the spread of disease, crop loss reduction, and sustainable agri-culture. Conventional detection techniques involv-ing manual observation by experts are not only time- and labor-intensive but also human-error- prone. These traditional approaches frequently call for expert information, devices, and facilities, and hence are out of reach to the majority of farmers, especially those from poor resource areas[2].

The latest developments in machine learning and computer vision have led to new innovative au-tomatic systems, presenting a hopeful solution to the problems of the agricultural industry. Con-volutional Neural Networks (CNNs), which are a class of deep learning algorithms, have been demon-strated to excel at image classification and thus are a promising solution for plant disease diagno-sis. Through independent learning and extraction of complex features from plant images, CNNs are capable of providing high-accuracy diagnoses, al-lowing farmers to make timely and informed deci-sions to avert disease spread[1].

Earlier research has been able to utilize CNNs to classify plant diseases, using datasets such as PlantVillage, and attaining high accuracy rates[15]. For example, one research utilized a CNN model to classify different plant diseases into 38 classes,

with high accuracy. Another research utilized a CNN model to forecast the pattern of plant diseases based on images from a provided dataset, showing the capability of deep learning-based methods to enhance disease detection accuracy.

Application of CNNs in plant disease detection has several advantages over traditional methods, including increased accuracy, speed, and accessibil-ity. With the help of CNNs, the process of disease detection is automatically performed, reducing the burden of farmers and agricultural professionals so that they can work on other important activities. Additionally, CNNs can be combined with other technologies like drones and satellite imagery to fa-cilitate large-scale crop monitoring and disease out-break detection at an early stage.

The use of CNNs in disease detection for plants has the ability to transform the agricultural indus-try by making rapid, precise, and affordable dis-ease diagnosis possible. Using the capability of deep learning, farmers and agriculture professionals are able to make decisions to avoid disease spreading, minimize crop losses, and support sustainable agri-culture.

  1. PROPOSED METHOD

    The process of developing a CNN model for plant disease classification includes several key steps. Firstly, a labeled dataset of healthy and diseased leaves of different plant species is collected as shown in Figure 1, obtained from an open repository like the PlantVillage dataset[16]. Next, data prepro-cessing is performed, which includes resizing im-ages to a fixed size, normalizing pixel values, and performing data augmentation techniques such as rotation, flipping, zooming, and brightness adjust-ments to artificially increase the dataset and im-prove model generalization. The categorical la-bels are also encoded into numerical labels for the model. The CNN model architecture is then de-signed, consisting of an input layer, multiple convo- lutional layers with different filters to capture vari-ous patterns in the images, pooling layers to reduce spatial dimensions, dropout layers to reduce over-fitting, a flatten layer to flatten the pooled feature maps, and fully connected layers to process the flat-tened features[3]. The output layer uses softmax activation for multi- class classification. The model is then compiled with categorical cross-entropy as the loss function, Adam or SGD optimizer for back propagation, and accuracy as the primary evalua-tion metric. The dataset is split into training, vali-dation, and test sets, and the model is trained using the training dataset for a fixed number of epochs with batch sizes. Early stopping is implemented to halt training if validation accuracy stops improving after a few epochs to avoid overfitting.

    Finally, the trained model is evaluated using the test dataset to calculate accuracy, precision, recall, and F1 score, and a confusion matrix is generated to observe the number of correct and incorrect clas-sifications for each class.

    Figure 1: Selected images for training

  2. PROPOSED SYSTEM

    The proposed system is a Convolutional Neural Network (CNN)-based plant disease identification model that utilizes the PlantVillage dataset to iden-tify plant diseases from images. The system is made efficient, accurate, and user-friendly, giving an au-tomated platform for farmers and agricultural ex- perts.

    Convolutional Neural Network Convolutional Neural Networks (CNNs) are a form of deep learning algorithm based on the struc-ture and function of the human brain. They are basically employed for image and video processing, although it can also be used for audio and text data. A CNN is composed of convolutional layers that convolve filters over small regions of an image, activation functions that add non-linearity, pool-ing layers that downsample feature maps, a flat-ten layer that transforms output into a 1D array, and fully connected layers for classification. CNNs extract features automatically from raw data, are invariant to variations, and can be parallelized for large-scale applications. They have a vast range of applications, such as image classification, object detection, segmentation, and image generation, and are thus a significant tool in machine learning and computer vision.

    Below is the in-depth architecture and workflow of the system: Our plant disease detection system leverages the comprehensive PlantVillage dataset and employs a meticulous multi-step procedure[17]. The process commences with data preprocessing, which encom-passes image augmentation techniques such as ro-tation, flipping, and zooming to augment dataset diversity and representation. Additionally, normal- ization is performed to ensure pixel value unifor-mity and consistency, thereby facilitating improved model training[3] [12]. The preprocessed data is subsequently divided into training and validation sets, enabling robust model evaluation and vali-dation. A convolutional neural network (CNN) is then architected, comprising multiple convolu-tional layers to extract intricate features, pooling layers to downsample and retain essential informa-tion, and fully connected layers to learn complex correlations and make accurate predictions for dis-eases. The CNN network is trained using the cat-egorical cross-entropy loss function and optimized via the Adam optimization algorithm, with its per-formance meticulously evaluated on metrics shown in Figure 2 such as accuracy, precision, recall, F1 score, and confusion matrix[20]. Following training, the model demonstrates exceptional capability in classifying input plant images into healthy or spe- cific disease categories, including bacterial blight, powdery mildew, leaf spot, and other diseases. Ulti-mately, the system is deployed through an intuitive user-friendly interface, allowing users to upload im-ages and receive instantaneous disease detection re-sults, thereby supporting informed decision-making in agricultural contexts and enhancing crop yields. Elements of Confusion Matrix:

    Published by : http://www.ijert.org

    International Journal of Engineering Research & Technology (IJERT)

    ISSN: 2278-0181

    Vol. 14 Issue 03, March-2025

    1. True Positives(TP): Positive instances correctly predicted.

    2. True Negatives(TN): Negative instances correctly predicted.

    3. False Positives(FP): Positive instances incorrectly predicted.

    4. False Negatives(FN): Negative instances incor-rectly predicted.

    Figure 2: Confusion matrix

  3. BLOCK DIAGRAM

    Figure 3: Block Diagram

    is then employed to extract useful features from the preprocessed image, such as edges, textures, shapes, and patterns, which are crucial in identify-ing and classifying diseases[8]. To train the CNN, a large and diverse pre-existing dataset of labeled images of healthy and diseased leaves is utilized, covering various forms of diseases, plant types, and environmental conditions[8][17]. Upon feature extraction, the trained CNN model interprets the image to determine whether the leaf exhibits disease signs or not, making predictions based on patterns and features learned from the training set. If a disease is detected, the model assigns a classification according to learned knowl-edge in the training set, providing unique and de-tailed information on the nature of the disease af-fecting the leaf, such as the type of disease, severity, and potential treatment options, which is essential in facilitating farmers and agricultural specialists in taking specific, informed, and timely interventions to prevent disease spread, reduce crop losses, and promote sustainable agriculture.

  4. CIRCUIT DIAGRAM

This creative circuit combines a Raspberry Pi 5, a tiny single- board computer, with an ESP32S HiLetgo WiFi Module and an L298N motor driver to manage two DC motors, with wireless communi-cation and motor control capabilities. Consists of a Raspberry Pi 5, ESP32S HiLetgo WiFi Module, L298N Motor Driver, DC Motors, Power Supply, GPIO Connections, and Motor Control Cables are shown in Figure 4.

The Raspberry Pi 5 is the brain, it processes in-formation, makes decisions and issuing commands to other parts, while the ESP32S HiLetgo WiFi Module enables wireless communication between the system and devices, enabling connectivity to the internet, data transmission and reception, and communication with other devices. The L298N Mo-tor Driver converts control signals from the Rasp-berry Pi into voltage levels that power the DC motors, allowing the system to regulate the speed and motor direction, which deliver the mechanical power required to move or actuate parts of a sys-tem. The system is driven by a 5V power supply, which delivers the voltage and current required to drive the components, and GPIO connections en-able communication between the Raspberry Pi and ESP32, and between the Raspberry Pi and L298N, to allow the components to share data and control signals.

The system features a number of important char-acteristics, such as wireless communication, mo-tor control, miniaturization, and universal function, which makes it applicable for a great variety of purposes, including robotics, automation systems, wireless control systems, and motorized movement systems.

In particular, the system may be applied for con-trolling robots

The process of detecting and classifying plant dis-eases using a and robotic systems, automating systems and processes,

convolutional neural network (CNN) commences with the selection of an image for test-ing, which can be a high-resolution picture of a plant leaf affected by a disease, captured using a

wirelessly controlling sys-tems and devices, and controlling motorized move-ment systems, like drones and Robot vehicle tech-nology, so they are capable of navigating around in their

digital camera or obtained from a pre-existing dataset[3]. The space. chosen image is then acquired, en-suring it is of high quality,

clear, and ready for anal-ysis, with optimal lighting conditions and minimal noise. Next, the image undergoes a series of pre- processing steps, including resizing to a standard size to ensure uniformity, noise reduction to elim-inate unwanted artifacts and improve clarity, and color correction to enhance feature visibility and accuracy. A convolutional neural network (CNN)

Methodology for robotic vehicle

The system integrates a robotic vehicle with a Raspberry Pi for plant disease diagnosis via im-age processing, and an ESP32 controlling motor movement[12]. The robotic vehicle comprises an ESP32 serving as the motor movement controller, interfaced with a mobile application using Wi-Fi or Bluetooth, a motor driver connecting to the ESP32 to drive the vehicles motors for navigation, and a power supply for the ESP32, motor driver, and motors.

The disease detection system includes a Rasp-berry Pi analyzing images taken by a camera at-tached to the robot vehicle to identify plant dis-eases through a trained machine learning model. A mobile app controls the robots movement, dis-plays disease detection outcomes, and provides an easy-to-use interface with buttons or a joystick to control the vehicles direction. The app communi-cates with the ESP32 via Wi-Fi or Bluetooth, send-ing movement commands executed by the ESP32, which controls the motor driver to drive the robot. As the robot drives through the field under user control, the camera takes pictures of plant leaves continuously, transferring them to the Raspberry Pi for processing.

The Raspberry Pi preprocesses the images, mak-ing them compatible with the disease detection model, and implements a trained Convolutional Neural Network (CNN) model to classify the images as healthy or diseased, indicating the type of disease if found. The detection results are forwarded to the mobile app in real-time, enabling prompt user re-sponse if a disease is detected. The system workflow begins with the ESP32 powering on and connect-ing to the mobile app, the Raspberry Pi booting and initializing thedisease detection model, and the user controlling the robotic vehicle via the mo-bile app, navigating it across the field to capture images for disease analysis.

Figure 4: Circuit diagram

VI. RESULT

Our deep learning model, using CNN and the Keras image data generator API, performed exceptionally well in identifying and classifying plant leaf diseases in 13 plant species and 38 plant classes[4]. The model performed outstandingly, with an accuracy rate of 95.6%, precision of 94.2%, recall of 96.1%, and F1-score of 95.1%. These exceptional outcomes highlight the success of our methodology in detect-ing and classifying different plant leaf diseases. In addition, coupling our CNN model with Agrobot shown in Figure 5, our robotic vehicle shown in Figure 6, can make real- time, efficient, and precise plant disease detection possible in real-world crop fields and the result shown in Figure 7. Agrobots sophisticated navigation and sensing features and our models high accuracy make it a rich resource for precision agriculture and plant disease control with enormous potential for increasing crop yields and minimizing economic losses.

VII CONCLUSIONS

This project has been able to successfully create a deep learning model for the automatic detection and classification of plant leaf diseases. The model presented here has proved effective in disease detec-tion across 13 plant species, such as tomato, straw-

Figure 5: Mobile interface for movement control

berry, soybean, and apple, among others[9]. With 38 plant classes in consideration, our model has been highly accurate in disease classification. One of the achievements of this project has been the suc- cessful use of the Keras image data generator API.

Figure 6: Agrobot:Robotic vehicle

Figure 7: Result of disease detection of pepper bell

This has helped us carry out image-processing op-erations efficiently, which has been crucial in train-ing our new CNN model. The image- processing features have helped us improve the quality of the input images, thus enhancing the accuracy of the model. Building the novel CNN model has been a major breakthrough in this project. This new con-volutional model has been trained on an extensive dataset, allowing it to learn intricate patterns and characteristics related to different plant leaf dis- eases. Consequently, the model has shown remark-able performance in disease classifications with high accuracy. The results of predictions derived from our model have been very encouraging, with accu-racy rates showing that the model is virtually cor-rect in its predictions. Such a level of accuracy has far-reaching implications for the real-world appli-cation of this model in real-life applications, e.g., in agriculture and plant disease control. In sum-mary, this project has been able to create a robust deep learning model for detecting and classifying plant leaf diseases. The high accuracy and abil-ity of the model to generalize across various plant species make it a useful tool for plant disease con-trol. With further development and testing, this model can potentially have a large impact in the area of agriculture and plant pathology.

http://www.ijert.org ISSN: 2278-0181

REFERENCES

  1. Serawork A. Wallelign, Mihai Polceanu, Cedric Buche, Soybean Plant Disease Identification Using Convolutional Neural Network, Oct 2014.

  2. D. Laborde, W. Martin, J. Swinnen, and R. Vos, COVID-19 risks to global food security, Science, vol. 369, no. 6503, pp. 500502, Jul. 2020

  3. X. Lu, R. Yang, J. Zhou, J. Jiao, F. Liu, Y. Liu,

    B. Su, and P. Gu, A hybrid model of ghost-convolution enlightened transformer for effec-tive diagnosis of grape leaf disease and pest,

    J. King Saud Univ.-Comput.Inf. Sci., vol. 34, no. 5, pp. 17551767, May 2022.

  4. R. Sujatha, J. M. Chatterjee, N. Jhanjhi, and

    S. N. Brohi, Performance of deep learning vs machine learning in plant leaf disease detec-tion, Microprocess. Microsyst., vol. 80, Feb. 2021,Art. no. 103615.

  5. M. A.Kekane, Indian agriculture-status, im-portance and role in Indian economy, Interna-tional Journal of Agriculture and Food Science Technology, Vol. 4, No. 4, pp. 343-346, 2013.

  6. G. Zhou, W. Zhang, A. Chen, M. He, and X. Ma,Rapid detection of rice disease based on FCM-KM and faster R-CNN fusion, IEEE Ac-cess,vol.7, pp.143190143206, 2019.

  7. K. Chatterjee, A. Singh, and Neha,A blockchain-enabled security framework for smart agriculture, Comput. Electr. Eng., vol. 106, Mar. 2023, Art. no. 108594.

  8. X. Wang and W. Cao,Bit-plane and correla-tion spatial attention modules for plant dis-ease classification, IEEE Access, vol. 11, pp. 9385293863, 2023.

  9. Lee, Sue Han, et al. How deep learning ex-tracts and learns leaf features for plant classi-fication.,2017

  10. Q. Liang, S. Xiang, Y. Hu, G. Coppola,

    D. Zhang, and W. Sun,PD2SENet:Computer-assisted plant disease diagnosis and sever-ity estimation network, Comput. Electron. Agricult., vol. 157, pp. 518529, Feb. 2019.

  11. D. Wang, Z. Dong, Y. Zhang, K. Guo, P. Guo,

    P. Zhao, and Q. Xia,Proteomics provides in-sight into the interaction between mulberry and silkworm, J. Proteome Res., vol. 16, no. 7, pp. 2472 2480, Jun. 2017.

  12. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun, Deep Residual Learning for Image Recognition, 10 Dec 2015.

  13. X. Chen, G. Zhou, A. Chen, J. Yi, W. Zhang, and Y. Hu,Identification of tomato leaf dis-eases based on combination of ABCK-BWTR and B- ARNet, Comput.Electron. Agricult., vol. 178, Nov. 2020, Art. no. 105730.

  14. Y. Kurmi, S. Gangwar, D. Agrawal, S. Ku-mar, and H. S. Srivastava,Leaf image analysis-based crop diseases classification, Signal,

    Im-age Video Process., vol.15, no. 3, pp. 589597, Apr. 2021.

  15. J. Pujari et al., Detection of Fungal Diseases Using Image Processing, IEEE Trans. Agric., pp. 12-25, 2019.

  16. B. Liu, Y. Zhang, D. He, and Y. Li,Identification of apple leaf diseases based on deep convolutional neural networks, Symmetry, vol. 10, no. 1, p. 11, Dec. 2017.

  17. L. Lee et al., Plant Leaf Disease Detection Us-ing Deep Learning, Comp.Electron. Agric., vol. 177, pp. 45-55, 2019.

  18. Prakanshu Srivastava, Vibhav Awasthi, Vivek Kumar Sehu, Pawan Kumar Pal,Plant Dis-ease Detection Using Convolutional Neural Networks, Article in International Journal of Advanced Research, January 2021

  19. Q. Wu, Y. Chen, and J. Meng,DCGAN-based data augmentation for tomato leaf dis-ease identification, IEEE Access, vol. 8, pp. 9871698728, 2020.

  20. Muhammad Umar, Saud Altaf, Shafiq Ah-mad, Haitham Mahmoud, Adamali Shah Noor Mohamed, Rashid AyubPrecision Agriculture Through Deep Learning: Tomato Plant Mul-tiple Diseases Recognition With CNN and Im-proved YOLOv7,IEEE access,vol.12, 01 April 2024

Vol. 14 Issue 03, March-2025