Potato Plant Disease Detection Using Convolution Neural Network
Potato Plant Disease Detection Using Convolution Neural Network
DOI: http://dx.doi.org/10.31782/IJCRR.2020.122028
ABSTRACT .
Background: In countries like India, whose primary occupation is agriculture faces a huge loss when the crops get affected by
any disease. These diseases attack the crops in various stages and destroy the entire production. Since most of the diseases
are transmitted from one crop to another there is much need to detect the exact type of disease the crop has been affected so
that farmers can take the required steps to the “save the crops” and production. But detecting the kind of disease that a crop has
been affected is very difficult for farmers since there are various kinds of diseases.
Method: There are so many classification techniques, such as k-Nearest Neighbor Classifier, Probabilistic Neural Network, Ge-
netic Algorithm, Support Vector Machine, and Main Component Analysis, Artificial Neural Network, and Fuzzy Logic. It is difficult
to select the best classification method as compared to other methods the system will be more reliable. This article presents a
dissection of various techniques used to find the disease of the plants.
Results and Observation: The developed system is capable of detecting diseases in plants and is also capable of providing
treatments that can be used against them. To improve the health of the plant, we need to deal with it with sufficient knowledge
of the disease and cure. The framework proposed is implemented using python and the google GPU(Graphical Processor Unit)
used provided 80 % accuracy.
Conclusion: The proposed model used a convolution a neural network model based on SSD mobile network for data training.
Some checkpoints are created after training the model. We need to take the last Model Checkpoint to create a file that is used for
testing. A particular file type with the.pb extension is created by using the checkpoint file. The model provided 80% of accuracy.
Key Words: Plant Disease Detection, Neural networks, Genetic algorithm, KNN, PCA, Fuzzy Logi
During the early days, the specialist in this field was able to Motivation
manually track and examine plant diseases, who would no- The leaves are a delicate part of the plant; the assessment of
tice the light colour changes on the plant leaf, but this takes farm harvest is of dynamic importance. The leaf’s texture
Corresponding Author:
Pitchai R, Associate Professor, Department of Computer Science and Engineering, B.V. Raju Institute of Technology, Narsapur, Telangana,
India; Email: [email protected]
ISSN: 2231-2196 (Print) ISSN: 0975-5241 (Online)
Received: 06.07.2020 Revised: 13.08.2020 Accepted: 27.09.2020 Published: 27.10.2020
Int J Cur Res Rev | Vol 12 • Issue 20 • October 2020 152
Pitchai et al.: Potato plant disease detection using convolution neural network
and colour is the most significant visual property. There- ing coevolutionary neural networks. Raghavendran S et al.
fore it is important to identify leaf diseases to assess farm (2019)13 addressed the categorisation of leaf disease using
products, enhance the market value and comply with quality vector machine support technique. Sankaran et al. (2010)14
standards. This is also important to recognise and take ad- surveyed some of the advanced plant disease identification
ditional measures to further spread diseases. It’s going to be techniques.
too slow. When physical methods are used to classify and
Tyr Wiesner-Hanks et al. (2019)15 outlined a two-step pro-
categorize the method, we also need the professionals to en-
cess for producing large quantities of high-quality training
sure it gets incorrect, and who’s less readily available.
data with limited expert feedback. Liu, LOuyang, W and
The works are categorized according to colour, scale, etc. Wang, X et al. (2020)16 reviewed more than 300 research
When such procedures are documented in an automated sys- papers including several views on the detection of generic
tem by using the correct software design language, the effort objects: frameworks for identification, representation of ob-
becomes faster and error-free. There are two main features to ject characteristics, generation of object proposals, context
be achieved, speed and precision in the methods of machine- modelling, training strategies, and metrics for assessment. M
learning for plant disease detection. Technologies such as Pothen, E and D. M. L. Pai, (2020)17 suggested a classifica-
automated detection and classification of plant diseases us- tion system for the rice leaf disease.
ing floor image processing techniques are required. It proves
The following parameters were considered: bacterial leaf
useful for farmers and warns them at the right time before the
blight, Leaf smut and Brown spot diseased images, and
disease spreads over a wide area.
Otsu’s segmentation method was used. Sun et al. (2020)18
proposed the multi-scale detection of feature fusion using
Literature Survey neural networks of convolution. J. Li et al. (2020)19 proposed
T. Van der Zwet et al. (2002)1 developed a model of identi- a system for the identification, location and study of marine
fication of plant diseases using CNN to classify 13 differ- cucumber using a Faster R-CNN. W. As a new extraction
ent types of plant diseases. Tatem and Rogers et al. (2006)2 design for the Rice Blast detection Chen et al. (2020)20 im-
researched the Global Transportation Networks and the plemented a revolutionary spore germination method. Rasul
transmission of infectious diseases and their effects on epi- Ruzmetov et al. (2020)21 reviewed the morphological prop-
demiology in particular. J. R. Rohr et al. (2008)3 studied the erties of apple trees with cytosporosis disease. Anjan Kumar
relations between climate, disease transmission and declines Payra et al. (2013)22 protein function for prediction.
in amphibians. Steinwart and A. Christmann et al. (2008)4
used the algorithm K -means to cluster the data set. Mruna-
Methodology
lini R. et al. (2011)5 identified clustering of K-means and
The basic steps of plant disease detection are shown in figure
artificial intelligence in pattern recognition of crop diseases.
1. The steps involved in our methodology are,
A. New spectral indices (NSIs) developed by K. Mahlein et
al. (2013)6. NSI is useful for the identification of crops of 1. Image Acquisition
various diseases. 2. Image Pre-processing
3. Image Segmentation
H. Cartwright et al. (2015)7 identified the Artificial Neural 4. Feature Extraction
Networks to simulate human brain model functioning. Raj 5. Classification
Kumar et al. (2016)8 addressed Hybrid Features and Auto- 1. Image Acquisition: The initial procedure is to collect
mated Leaf Disease Detection and Classification Supervised all infected or diseased plant leaf images via a camera
Classifier. They also built a database consisting of around or a source, which stores all infected plant leaf data.
32,000 different species of plants that are pre-processed, The first photo is in RGB type (Red, Green and Blue).
such as image reshaping, resizing and converting to a collec- In this colour transformation method, a device-inde-
tion. Related processing happens on the test image as well. pendent colour-space transition is generated for an
H. Azizpour et al. (2016)9 used Convolution networks to ex- RGB leaf image and then used for the colour transfor-
amine many factors affecting transferability, design, training mation method.
data distribution, feature extraction etc. 2. Image Pre-processing: The contaminated plant leaf
in the picture produces noise. The noise here may be
J. Garcia Arnal Barbedo et al. (2018)10 used the Annotated dust, on the leaf sand and other stuff. To get more ac-
Plant Pathology Databases for the identification and recog- curacy it is important to remove the noisy data from
nition of diseases based on photos. G. Zhou et al. (2019)11 the image. Pre-processing techniques are then used to
suggested, using FCM-KM and Faster R-CNN fusion, a eliminate noisy image images. There are several pre-
technique to resolve the various problems with rice disease processing techniques available some of which are
detection accuracy. Adnan Mushtaq et al. (2019)12 proposed Image clipping, i.e. cropping of the image of the leaf
a model for plant disease detection and offers solutions us- to get the area of interest. Smoothing of the image is
achieved with the smoothing filter. Improvement of for training the data. SSD_Mobilenet is a neural network
the picture is carried out to improve the contrast. The algorithm which is used for object detection. SSD is a
result it generates is dependent on any one of the tech- framework used for multi-box detectors and Mobilenet is
niques used. used for classification. Only by combining both, it is used
3. Image Segmentation: Segmentation means partition- for object detection. The job of mobile net layers is to con-
ing the image into separate parts with the same fea- vert the pixels from input image to feature that defines the
tures, or having some resemblance. The segmentation image and hence it is used as a feature extractor. With the
can be achieved using various approaches such as help of the mobile net, we can classify the image category.
clustering k-means, converting an RGB image to HIS The following is the procedure for training and testing the
model etc. Here, we used the algorithm K Means. The
model.
clustering of K-means is used to classify objects based
on a collection of features into the number of classes Initially, we collect a few hundred images that contain the re-
K. Object classification is achieved by minimizing the quired leaf images i.e., potato diseased leaf from an external
sum of the squares of the distance between the object source. We need to annotate the infected potato images by
and the cluster in the query. using a software called LabelImg because we need to draw
4. Feature Extraction: Extraction of features plays a a box around the infected region for the leaf image and must
key role in detecting a plant disease. Extraction func- specify the class for it to train it. This Label Img software
tion is used in many image processing applications. automatically will create an Extensible Markup Language
Colour, texture, shape, edges etc. are the character- (XML) file that describes the leaf image with infected region
istics that can be used in the identification of plant dimensions. We need to split the images data into train and
diseases. Morphological results are found to provide
test samples. The train samples are used for training the mod-
better results than the other features. Texture means
el and test samples are used for testing the model whether it
how the image is formed in colour, the roughness, the
is producing the required results or not.
image’s hardness. This method collects the character-
istics of tainted vegetable leaves. As we have discussed in the above statement LabelImg
5. Classification: After the extraction of the function is software creates an XML file but the model( SSD mobile
done, a classifier is created which is used to identify net) does not accept the XML file for training we need to
the plant disease. Depending on their leaves, the plant change the XML file to another file format so that we can
disease can be classified and is defined as healthy and use that file to train the model. We can convert the XML
unhealthy leaves. The unhealthy leaf is further graded file to comma-separated values (CSV) file by using some
based upon the type of disease with which it has been code. After the conversion of a file from XML to CSV use
attacked.
the generated train.csv file to train the model. The ssd_mo-
bilenet model uses tensor flow as a backend for object
RESULTS detection. It takes more time to train the model in normal
systems. So we have used google open-source cloud plat-
Our system is capable of reliably detecting diseases on po- form i.e., Google Colaboratory which provides GPU en-
tato plants. We need to deal with this with ample knowl- vironment and storage space up to an extent for the user.
edge of the disease and cure to improve the plant’s health. It is faster when compared to normal systems that do not
The framework implemented using python and the google have a Graphical Processor Unit (GPU) accessibility. The
GPU(Graphical Processor Unit). Figure 2 provides samples platform runtime is only 12 hours So we have to be careful
of the results of our system. Figure 2.a shows Healthy early while training the model. To train the predefined model we
blight potato leaf, Figure 2.b shows Healthy late blight po- need to change some code in the model configuration file
tato leaf and Healthy potato leaf Figure 2.c. Our system de- to our requirement and save it.
livered 80 per cent accuracy.
While training, the model generates some checkpoint files at
some interval of time so we need to save those checkpoints
DISCUSSION accordingly to start the training from that checkpoint even
The input for the model is photos of potato leaf that include if the platform runtime restarts. We can start the training
two disease types, one of which is early bright and the other from a particular checkpoint by using a checkpoint file by
late bright. The images input which is passed to the model is changing some code in it. In the ssd_mobilenet configuration
as follows. To get more accuracy for the model, the input im- file, there will be something like execution steps. We need
ages are preprocessed to eliminate noise data, dust, and other to mention a value by which the training ends whenever it
stuff from the images. reaches the specified execution step. The output of the model
is as follows in fig 2.
We applied the transfer learning technique to a predefined
convolutional neural network model i.e., SSD mobile net
Int J Cur Res Rev | Vol 12 • Issue 20 • October 2020 154
Pitchai et al.: Potato plant disease detection using convolution neural network
Int J Cur Res Rev | Vol 12 • Issue 20 • October 2020 156