Agni – A Plant Disease Detection Robot

DOI : 10.17577/IJERTV12IS050158

Download Full-Text PDF Cite this Publication

Text Only Version

Agni – A Plant Disease Detection Robot

A O Santhosh

Student, Dept. Of EEE Dayananda Sagar Academy Of Technology And Management Bengaluru, India

A Sagar

Student, Dept. Of EEE Dayananda Sagar Academy Of Technology And Management Bengaluru, India

Govindaswamy M

Student, Dept. Of EEE Dayananda Sagar Academy Of Technology And Management Bengaluru, India

Sarina Anees

Student, Dept. Of EEE

Dayananda Sagar Academy Of Technology And Management Bengaluru, India

Monica K M

Professor, Dept. Of EEE Dayananda Sagar Academy Of Technology And

Management Bengaluru, India

Abstract Agriculture gives a huge economic growth to our country. With a good yield it also brings disease in crops, which affects the production of food crop. Therefore identifying the type of disease plays a very important role in agriculture. Detection of the various plant disease is the method to prevent the losses in yield quality and quantity. The study of plant disease means the study of visually observed patterns on the plant leaf. To identify the disease, image processing technique is used. Detection of disease can be observed by following steps which come under image processing technique i.e. image acquisition, image pre- processing, image segregation, feature extraction and classification. Further in this project, we aim to build a bot which uses algorithms to study various visually observable patterns on the leaf to detect and classify the disease. Crops such as tomato, potato and chili are considered in the project to detect their respective plant disease. With plant disease detection it will also be programmed to suggest the suitable pesticide to cure the disease of the plant. It will also have pesticide containers on-board, based on the suggested pesticide the spraying mechanism will spray the pesticide on plant.

Keywords Image Processing and its related terms.

  1. INTRODUCTION

    India is a cultivated country and about 70% of the population depends on agriculture. Farmers have large range of diverseness for selecting various suitable crops for cultivation. And with cultivation of crops it also brings disease on the plant which leads to the significant reduction in both the quality and quantity of agricultural products. The study of plant diseases refers to the study of visually observable patterns on the plants. Monitoring of plant and protecting it from diseases plays an important role in successful cultivation of crops in the farm.

    In early days, the monitoring and analysing of plant disease were done manually by an expert person on field. This requires tremendous amount of work and also requires more processing time. So introducing image processing technique in agriculture for the plant disease detection can help to detect the disease and treat it in time. In most of the cases disease symptoms are observed on the leaves, stem and fruit. The plant leaf for the detection of disease is considered as it is

    easier to study the leaf patterns. The type of plant disease is identified using image processing by taking the leaf image and running through algorithms like CNN. It provides information about the disease which infected the plant.

    In this project we are developing a robot which uses CNN to identify and classify plant disease based on the type. With plant disease it is coded to provide the suitable pesticide to treat it. In addition to this a spraying mechanism on-board is used to spray the suitable pesticide on the plant.

    Fig.1. Agricultural Field

  2. PROBLEM STATEMENT

    The major problem which is faced by farmers is Lack of yield due to crop diseases. Lack of technological advancement and appropriate farming techniques are responsible for the current state of the agriculture sector. The majority of the farmers live in rural India dont know to deal with the diseases of the plants and are unaware of which fertilizer or pesticides to be used. So farmers do not get the desired result, which is a main reason for giving up farming.

    Fig.2. Agricultural Processes

  3. OBJECTIVES The main objective of our project is :

    1. Early identification of disease in a plant.

      If early identification of disease in a plant is not done then the disease will not only spread in the plant about it will also spread to the nearby plants

      Fig.3. Diseased Plant

    2. Suggesting and spraying a suitable pesticides for the plant based on the disease.

      Based on the identified plant disease the suitable pesticides for plant is suggested and robot will spray the pesticide.

      Fig.4. Pesticide Spraying

    3. Agriculture field suitable mobility bot/vehicle.

      The bot will designed in such a way that it will suitable for moving in the agriculture field.

      Fig.5. Path For Bot Mobility

  4. LITERATURE SURVEY

    Sunil S[1] The suggested model employs pre- processing methods such as RGB to grayscale conversion, HE, K-means clustering, and contour tracing. To identify a sick leaf, machine learning techniques like SVM, K-NN, and CNN are applied. The proposed model's analysis works well with the accurate CNN machine learning technique.. Sai Kirthi…[2] This design is intended to be an autonomous agricultural field robot that operates at the microscopic level and offers consumers real-time disease detection and carefully regulated pesticide spraying. R Prakash[3] Implementation of the leaf disease detection and categorization method. K-Means segmentation is used to separate the sick section into its component parts. After that, GLCM texture characteristics are extracted, and SVM is used to classify the data. B Mishra[4] Several researchers have employed various methods of plant disease detection utilising image processing in recent years. BPNN, SVM, K-means clustering, Otsu's method, CCM, and SGDM were the main approaches used. V Pooja…[5] The identification of plant diseases using a variety of methodologies is the primary topic of this research. The performance of the system has been improved, leading to better results, by the consistent use of Support Vector Machines as a classifier as well as a variety of methods of feature extraction.

    Bandi Narasimha[6] This paper describes a webcam- based surveillance camera that operates on a Raspberry Pi. Videos can be transmitted over the internet in the same way that photos are. As a result, the camera's coverage area is exceptionally large. Compared to traditional CCTV cameras, drone cameras, and camera traps, it is more advanced. Nithin Vasanth…[7] It talks about an automated spraying system driven by solar energy. Using a DC pump and nozzle, a four-wheeled vehicle is automatically driven along a predetermined course while spraying herbicides. Chaitali G[8] Plant illness can be identified by looking at designs on leaves, and using an image processing technology, the clicked photo is sent directly to the DSS without any further input. Muhammad Ayaz[9] The paper concentrates on improved and more effective crop- growing methods. creation of novel techniques to increase

    crop handling and yield. The report took all of these factors into account and emphasised the importance of numerous technologies, particularly IoT. R P Narmadha[10] Recognizing paddy illnesses is the paper's goal. The method was created to automatically remove noise, reduce human error, and shorten the amount of time needed to measure the effects of paddy leaf disease. This study assesses digital image processing methods for spotting, identifying, and diagnosing crop leaf diseases. For greater accuracy, the k-mans clustering technique is employed to automatically detect the disease.

    V Gupta[11] An algorithm is suggested for cherry leaf image-based identification of powdery mildew disease. The suggested technique involves automated strategic background removal from the image before separating the required sick area. The suggested approach is examined using a set of open data from arXiv e-prints. The algorithm under test is 99% accurate. Vijai Singh[12] By utilising a genetic algorithm for picture segmentation, which automatically recognises and categorises plant diseases, plant disease can be detected in its early stages. Artificial neural networks, Bays classifiers, fuzzy logic, and hybrid algorithms can be used to improve classification in place of the suggested technique. S Abed[13] By developing an HSI model and utilising K- means clustering segmentation, GLCM is utilised for feature extraction, and SVM is used for image classification, two forms of bean leaf disease are diagnosed with 100% accuracy. Gurleen Kaur [14] This report basically focuses on the identification of plant diseases using a variety of methodologies. Use of different feature extraction methods and a reliable classifier, Support Vector Machines (SVM), have improved the system's performance and led to better outcomes. Md.Tariqul

    [15] the work is on detecting disease on affected plant by using image processing and CNN model for training the database. 94.29% accuracy can be seen in the model.

    Mohammed Khalid[16] leaf disease is detected using machine learning and image processing, GLCM and K- means clustering is used for feature extraction of leaf and by GUI model contrast enhancement of Colour of leaf is done from which SVM classifies the image and give 95.46% of accuracy in detection of leaf disease. S. Nema[17] The SVM image processing technique is described in the paper together with ideas for prevention in order to detect disease in wheat leaf plants. This image processing method makes it simple to recognise and categorise different plant diseases. An automated system that can make the first announcement of disease can be developed using a processor and the necessary equipment. Vidyashree Kanabur[18] the paper is made with a reference of a textbook name Computational Vision And Bio-Inspired Computing there are different image processing techniques mentioned with its applications. Thanjai Vadivel[19] The paper focuses on the tomato disease's programmed position with respect to the leaf. To identify tomato diseases and bugs, identification models have been developed utilising learning innovation. The

    basic decision is based on test photos for relative top indentation. The tomato crop illness is recognised using a CNN-based algorithm. Muhammad Amir[20] The suggested technique makes use of sensor devices to identify variables like temperature, stickiness, and leaf shade. Ranchers, businessmen, botanists, food designers, and physicians can all use the proposed approach in different regions. S. Kumar[21] By examining the plant's leaf pattern and using segmentation techniques like k-means clustering to extract different features, different plant illnesses can be detected. Different types of diseases are categorised using the Support Vector Machine (SVM) classifier and the Grey Level Co-occurrence Matrix (GLCM).

  5. METHODOLOGY

    The following parts are given to explain the methodology of the project:

      1. Part 1

        1. A bot which moves around the crop field.

        2. Captures the images of the plants.

      2. Part 2

        1. With the aid of machine learning, quick and effective image processing algorithms can be created.

        2. The first phase of the algorithms works with separating the healthy crop from the diseased crop, and the second task of the algorithms is focused on identifying the crop disease.

          The steps in image processing:

          1. Image acquisition

          2. Image Pre-processing

          3. Image segmentation

          4. Feature extraction

          5. Detection and classification of plant disease

      3. Part 3

        1. After disease detection, the suitable pesticide will be given.

        2. The bot will sprays the pesticide on the diseased plant.

  6. BLOCK DIAGRAM

    The block diagram of the project is illustrated in the Figure 6 and Figure 7. The Figure 6 shows the circuit controlled by the Raspberry pi. And the Figure 7 shows the circuit controlled by the Arduino Uno.

    Fig.6. Raspberry Pi Controlled Circuit

    Fig.7. Arduino Uno Controlled Circuit

  7. 3 DIMENSIONAL REPRESENTATION OF BOT

    The 3-Dimensional representation of the robot is shown in the Figure 8.

    Fig.8. 3-Dimensional Representation Of Bot

  8. FLOWCHART

    The flow of the project is shown in the flowchart in Figure 9.

    Fig.9. Flowchart

  9. TOOLS USED

    1. Tools used for Software Implementation

      1. Python

      2. Tensorflow

      3. OpenCV

      4. Google Colab

      5. Visual Studios

      6. Thonny

    2. Tools Used for Hardware Implementation

      1. Raspberry Pi 3B +

      2. Raspberry Pi Camera V2

      3. Arduino Uno

      4. L293D Motor Driver

      5. Relay 5V

      6. OLED Display

      7. CA-2596 DC-DC Buck Converter

      8. IR Reciever Module KY-022

      9. Johnson Motor 60 RPM

      10. Robot Wheels

      11. Aishang Solar Pump

      12. Servo Motor SG90/MG996R

      13. Battery 12V

      14. Bread Board

      15. Switches

      16. Connecting Wires :

    Single Stranded , Multistranded, Jumper Wires

  10. IMPLEMENTATION AND RESULTS

    1. Software Implementation

      1. Training model

        In this section a VGG19 model using transfer learning on a dataset of tomato images gets trained. The dataset is split into training and validation sets, and image data generators are used to perform data augmentation and preprocessing. The model is compiled using the Adam optimizer and categorical cross-entropy loss, and accuracy is used as the evaluation metric. Early stopping and model checkpoint callbacks are used to save the best model based on validation accuracy. Finally, the accuracy of the best model on the validation set is printed. And the result is as shown in figure 10-12.

        Fig.10. Training Model For Tomato Plant Disease using Dataset

        Fig.11. Training Model For Potato Plant Diseases Using Dataset

        path to an input image. And its result is as shown in Figure 13-15.

        Fig.13. Testing For Tomato Plant Disease By Loading Image

        Fig.14. Testing For Chilli Plant Diseases By Loading Image

        Fig.15. Testing For Potato Plant Diseases By Loading Image

        Fig.12. Training Model For Chilli Plant Diseases Using Dataset

      2. Plant disease detection testing- by loading image

        In this section the program is a Python script that uses a pre-trained deep learning model to predict the type of disease affecting a potato plant based on an input image. It first loads a trained model saved in an p file, then defines a mapping from class index to class name, and a dictionary mapping disease names to recommended pesticides. It then defines a function predict disease that loads and pre-processes an image, uses the trained model to make a prediction on the image, and returns the predicted disease name and the recommended pesticide based on the dictionary mapping. The example usage at the end of the program shows how to call the function with the

      3. Real Time Plant disease detection

        1. By live feed using webcam

          In this section the program here is an implementation of a plant disease detection system using a pre- trained deep learning model (ResNet50) and a webcam. It captures frames from the webcam, preprocesses them, feds them to the trained model for disease prediction, and displays the prediction result (disease name and recommended pesticide) on the frame. It uses OpenCV library for capturing frames, image preprocessing, and display. The output window will close if the user presses the 'q' key.

          Fig.16. Real time Plant Disease Detection using webcam to detect disease and its suitable pesticide

        2. By live feed using Raspberry Pi Camera To detect disease and spray suitable pesticide

          The program is a Python program for plant disease detection using a webcam and motor pumps for spraying pesticides. The program uses a trained deep learning model to classify the plant disease from the webcam image and recommends the appropriate pesticide for treatment. The program also activates the corresponding motor pump connected to a GPIO pin to spray the recommended pesticide. The program continuously displays the webcam image with the detected disease and recommended pesticide. The program ends when the user presses the 'q' key, and it releases the webcam, cleans up the GPIO pins, and closes the window.

          Fig.17. Real time Plant Disease Detection using webcam to detect disease and spray its suitable

          pesticide

        3. By live feed using Raspberry Pi Camera To detect disease with percentage of infection and spray suitable pesticide by exciting the motor pump for certain amount of time

          The program implements a real-time plant disease detection system using a webcam and a trained deep learning model. The system detects the type of disease affecting a plant in real-time, calculates the percentage of infection, recommends a pesticide to

          use, and activates a motor pump for the recommended time to spray the pesticide. The system uses OpenCV and TensorFlow for image processing and deep learning, respectively, and RPi.GPIO to control the motor pumps through GPIO pins on a Raspberry Pi. The system also displays the results on the webcam feed and exits upon the user pressing 'q'.

          Fig.18. Real time Plant Disease Detection using webcam to detect disease, spray its suitable pesticide and

          also calculate percentage of infection and pesticide spraying time

        4. By live feed using Raspberry Pi Camera To detect disease with percentage of infection and spray suitable pesticide by exciting the motor pump based on spraying time

          The section has a program which implements a plant disease detection system using a webcam and a trained deep learning model. It detects the disease on a plant leaf by capturing a frame from the webcam, pre-processes it, makes a prediction using the trained model, and activates the respective motor pump for the recommended pesticide. The detected disease, recommended pesticide, and the percentage of infection are displayed on the frame and an OLED display. The system can be stopped by pressing the 'q' key and the webcam and GPIO pins are released at the end of the program.

          Fig.19. Real time Plant Disease Detection using webcam to detect disease and spray its suitable pesticide and also display disease, pesticide, percentage of infection and pesticide spraying time on OLED display

      4. Localisation of Robot using Arduino Uno and L293D

        The section the program controls a 4-wheeled vehicle using an infrared remote control. The vehicle is equipped with four DC motors, which are connected to pins 1, 2, 3, and 4 on an Arduino board using an AFMotor library. The IRremote library is used to receive signals from the IR remote control, which are decoded and used to determine the direction in which the vehicle should move. The vehicle can move forwards, backwards, left, right, and stop based on the IR signal received. The motor speed is set to a fixed value of 255.

    2. Hardware Implementation

      1. Localisation of Robot using Arduino Uno and L293D

        Controlling a 4-wheeled vehicle using an infrared remote involves using an Arduino Uno with an L293D motor shield and a receiver KY022. The IR remote sends signals to the receiver, which is connected to the Arduino. The Arduino then interprets the signals and sends corresponding commands to the L293D motor shield to control the motors of the vehicle. This allows the user to remotely control the movement of the 4-wheeled vehicle.

        Fig.20. Connection Diagram of Localisation of Robot using Arduino Uno and L293D

      2. Real time Plant disease detection by Image Processing using Raspberry Pi 3B+ and Raspberry Pi Camera Module

        Real-time plant disease detection by image processing using Raspberry Pi 3B+ and the Raspberry Pi camera module is a system that utilizes computer vision algorithms to analyze images of plants captured by the camera module in real-time. The system detects any signs of plant disease and provides prompt feedback to the user, allowing them to take appropriate action to prevent further spread of the disease. This system is highly efficient and cost-effective, making it a valuable tool for farmers.

        Fig.21. Connection Diagram Of Real time Plant disease detection by Image Processing using Raspberry Pi 3B+ and Raspberry Pi Camera Module

      3. Pesticide Spraying Mechanism using Raspberry Pi 3B+ and Relay

    The Pesticide Spraying Mechanism using Raspberry Pi 3B+ and relay involves using image processing to detect plant diseases. Once a disease is detected, the system activates a motor to drive a pesticide spraying mechanism for a predetermined amount of time. This helps to efficiently and effectively apply pesticides only when and where

    they are needed, reducing waste and promoting environmentally-friendly practices in agriculture.

    Fig.22. Connection Diagram Of Pesticide Spraying Mechanism using Raspberry Pi 3B+ and Relay

    The Complete model implementation of hardware is done in three stages and it is shown in figures 23-25 as below:

    Fig.23. Hardware implementation Stage 1

    Fig.24. Hardware Implementation Stage 2

    Fig.25. Hardware Implementation Stage – 3

  11. CONCLUSION

    The detection and classification of plant diseases is crucial to maintaining the quality and quantity of agricultural products. In this project, a robot is developed to identify and classify plant diseases using image processing techniques and a convolutional neural network. The robot is also programmed to suggest and spray the suitable pesticide on the plant based on the type of disease detected. The project aims to address the major problem faced by farmers, which is the lack of yield due to crop diseases, and provide an early identification of plant disease, mobility for the agriculture field, and suitable fertilizers and pesticides to treat the disease.

    The project could be to incorporate a feedback loop to improve the accuracy of disease identification and

    pesticide selection. This could involve collecting data on the effectiveness of the suggested treatment and using it to improve the performance of the convolutional neural network and the robot's decision-making algorithm. Additionally, integrating the robot with a cloud-based platform could enable real-time data sharing and analysis, facilitating more informed decision-making by farmers and improving the overall efficiency of the agricultural system.

  12. ACKNOWLEDGEMENT

    We take this opportunity to express my sincere gratitude towards the institute, Dayananda Sagar Academy of Technology And Management for forwarding me opportunity to do project.

    We express our profound gratitude to Dr. M. Ravishankar, Principal, DSATM, Bangalore, for providing the necessary facilities and an ambient environment to work.

    We are grateful to Dr. K. Shanmukha Sundar, Head of Department, Electrical and Electronics Engineering, DSATM, Bangalore, for him valuable suggestions and advice throughout our work period.

    We would like to express our deepest gratitude and sincere thanks to our guide Prof. Monica .K.M, Assistant Professor, Department of Elecrical And Electronics Engineering, DSATM, Bangalore, for her keen interest and encouragement in the project whose guidance made the project into reality.

    We would like to thank all the staff members of Department of Electrical and Electronics Engineering for their support and encouragement during the course of this project.

    Definitely most, we would like to thank our parents, all my family members and friends, without whose help and encouragement this project would have been impossible.

  13. REFERENCES

[1] Sunil S. Harakannanavar, Jayashri M. Rudagi, Veena I Puranikmath, Ayesha Siddiqua, R Pramodhini. Plant leaf disease detection using computer vision and machine learning algorithms Science Direct Global Transitions Proceedings 3 (2022) 305310.

[2] Sai Kirthi Pilli, Bharathiraja Nallathambi, Smith Jessy George, Vivek Diwanji. eAGROBOT- A Robot for Early Crop Disease Detection using Image Processing IEEE.

[3] R Prakash, G P Saraswathy, G Ramalakshmi. Detection of leaf diseases and classifica- tion using digital image processing IEEE International Conference on Innovations in Information, Embedded and Communication Systems, 2017, pp. 14.

[4] B Mishra, S Nema, M Lambert, S Nema. Recent technologies of leaf disease detec- tion using image processing approach- review IEEE International Conference on Innovations in Information, Embedded and Communication Systems, 2017, pp. 15.

[5] V Pooja, R Das, V Kanchana, Identification of plant leaf diseases using image pro- cessing techniques IEEE International Conference on Technological Innovations in ICT for Agriculture and Rural Development, 2017, pp. 130133.

[6] Bandi Narasimha Rao, Reddy Sudheer, Mohan Aditya Sadhanala, Veerababu Tibirisettti, Sairam Muggulla. Movable Surveillance Camera using IoT and Raspberry Pi IEEE – 49239, 11th ICCCNT 2020 July 1-3, 2020 – IIT -Kharagpur.

[7] Nithin Vasanth, Akash G, Srikanth KR, Pavan Srikanth TN, Ruma Sinha. Solar Powered Automatic Pesticides Sprayer IEEE International Conference on Energy, Communication, Data Analytics and Soft Computing (ICECDS-2017).

[8] Chaitali G Dhaware, K H Wanjale. A modern approach for plant leaf disease classi- fication which depends on leaf image processing IEEE International Conference on Computer Communication and Informatics, 2017, pp.1216 .

[9] Muhammad Ayaz, Mohammad Ammad-Uddin, Zubair Sharif, Ali Mansour and El-Hadi M.Aggoune, Internet-of- Things (IoT)-Based Smart Agriculture: Toward Making the Fields Talk IEEE Access, 2019.

[10] R P Narmadha, G Arulvadivu. Detection and measurement of paddy leaf disease symptoms using image processing IEEE International Conference on Computer Communication and Informatics, 2017, pp. 14.

[11] V Gupta, N Sengar, M Dutta, C Travieso, J Alonso. Automated segmentation of pow- dery mildew disease from cherry leaves using image processing IEEE International Conference and Workshop on Bioinspired Intelligence, 2017, pp. 14.

[12] Vijai Singh, A.K. Misra. Detection of plant leaf diseases using image segmentation and soft computing techniques Inf. Process. Agricult. 4 (1) (2017) 4149.

[13] S. Abed, A Esmaeel, A novel approach to classify and detect bean diseases based on image processing IEEE Symposium on Computer Applications Industrial Electronics, 2018, pp. 297 302.

[14] Gurleen Kaur Sandhu, Rajbir Kaur. Plant Disease Detection Techniques: A Review IEEE International Conference on Automation, Computational and Technology Management (ICACTM), 2019.

[15] Md.Tariqul Islam. Plant disease detection using CNN model and image processing Int. J. Eng. Res. Technol. 09 (10) (2020) 291297.

[16] Mohammed Khalid Kaleem, Nitin Purohit, Kassahun Azezew, Smegnew Asemie. A modern approach for detection of leaf diseases using image processing and ML based SVM classifier Turkish J. Comput. Math. Educ. 12 (13) (2021) 33403347.

[17] S. Nema, A. Dixit. Wheat Leaf Detection and Prevention Using Support Vector Ma- chine International Conference on Circuits and Systems in Digital Enterprise Technology, 2018, pp. 15.

[18] Vidyashree Kanabur, Sunil S. Harakannanavar, Veena I. Puranikmath, Dat- taprasad Torse. Detection of Leaf Disease Using Hybrid Feature Extraction Tech- niques and CNN Classifier Springer Comput. (2019) 12131220.

[19] Thanjai Vadivel, R. Suguna. Automatic recognition of tomato leaf disease using fast enhanced learning with image processing Taylor Francis, Acta Agricult. Scandinavica, Sect. B Soil Plant Sci. 71 (1) (2021) 113.

[20] Muhammad Amir Nawaz, Tehmina khan, Rana Mudassar Rasool, Maryam Kausar, Amir Usman, Tanvir Fatima Naik Bukht, Rizwan Ahmad and Jaleel Ahmad. Plant Disease Detection using Internet of Thing (IoT) Int. J. Adv. Comput. Sci. Appl. 11 (1) (2020).

[21] S. Kumar, K. Prasad, A. Srilekha, T. Suman, B.P. Rao, J.N. Vamshi Krishna. Leaf Dis- ease Detection and Classification based on Machine Learning IEEE International Conference on Smart Technologies in Computing, Electrical and Electronics, 2020, pp. 361365.