Plant Disease Detection Using CNN
Plant Disease Detection Using CNN
Abstract: These days crops are being affected by various types of bacteria and fungi which
leads to huge menace to food patronage. It is very difficult to identify these diseases, because
of the paucity of the basic infrastructure. As the smartphones are emerging and improvement
in computer-mission enabled that neural network has suggested for wireless-based disease
diagnosis. Using a dataset that includes different types of ailing and healthy plant leaflet
images, we train a Deep Neural Network (C-NN) to diagnose different types of crop diseases.
The model we created achieves a good accuracy as shown in the result page. This approach
creates a path for wireless-based crop analysis on a gigantic scale.
The main support of human existence on Whenever the disease is identified correctly
earth is with the help of food and the plants. on its earliest appearance could be an
Plants which produce good quality food are important step for effective disease control.
prone to a variety of diseases because of This process is supported by many
external conditions of the environment. Due organisations. Furthermore, due to
to this, there is a huge loss in agriculture. advancement in technology this plant
Therefore early detection and necessary diagnosis can be done online by providing
remedies are to be taken to save our valuable the required information.
time and money. In the way that there will
The current process for identifying diseases completed on these images and group them
is observation through the naked eye by into an array. Then it's divided into testing
experts. For this process, they should and training. Then it's fed to our C-NN
continuously monitor the plants which can model and accuracy is noted.
be expensive. At an equivalent time in a few
In this project, we propose a unique deep
countries, they don't have suitable services,
learning architecture that uses a
maybe they will contact experts, but
Convolutional Neural Network (C-NN).
consulting them can be laborious and
These algorithms take images as input and
expensive in most cases. In these cases, the
convolve it with predefined filters as a part
most favourable technique for farming
of the process. A BXB sized image is taken
community is to opt for automatic detection
and it is convolved with a kernel of a certain
for plant diseases which operates just by
size. This process helps the model to learn a
observing the leaf of a diseased plant and it's
feature of the image and these features after
a non-expensive process
each operation are learnt by a respective
Plant disease detection by observing is a feature map. These maps can help us in
strenuous task as well as it is not accurate understanding the image and work with
enough. If the above-recommended weights.
technique is employed, it will take time to
CNN can be contained in different
detect the disease in a visual way. Most
convolution layers in which sets of different
common disease symptoms that can be seen
filters are used to identify the required
in plants mostly occur on a leaf which could
pattern counting with other layers like
resemble coloured spots which can be a sign
pooling. In classification of image, patterns
of fungal or bacterial infection
are squeezed through convolution and the
In this report, we present an efficient and different layers which are present in the
effective method for disease detection. The model repetitively to get the outputs
workflow of disease detection is described respectively. So therefore to train a model, a
as follows. First, images are located in the dataset is given for training as input to the
directory and therefore the pre-processing is model along with that, the weights and
kernel parameters are given to extract the applied not only in the agriculture domain,
patterns in the hidden layers to solve the but also in various domains which is
problem. If an error is occurred at the output successful. So therefore we apply this
side, then by using a technique called back technique for leaf disease detection
propagation is used to reduce the classified automatically. This detection in the early
error. In this model we have visualized the stage could be beneficial in terms of
layers present, to identify the behaviour of economic and production.
the method design for plant disease
diagnosis.
SYSTEM ANALYSIS
The images we have used in this model were
taken from the internet sources. The dataset Existing System
contains both types of ailing and healthy
Outbreak of plant diseases can lead to death
plant leaflet images which are of fifteen
and famine. The result of famine in 1943
thousand images with fifteen different types
which was caused by helminthosporium
of crop diseases. The images were rifted into
caused a heavy loss of crop yield and deaths
training and testing data-sets that comprises
in North India. These losses are caused by
the ratio of 7:3. The image size we have
not taking preventive steps to protect the
taken in this model is 256 X 256 which are
crop-yield by identifying the disease and
used to feed into our model. This is highly
treating them.
recommended architecture as there are
repeating convolution sections such that it Continuous monitoring of experts is needed
makes it difficult to interpret by the other which is the main default method for
layers in the model. identifying crop diseases. This is an
expensive method for both small scale and
In the recent study, it has been said that deep
large scale farmers. Furthermore, in
learning which is a front line for image
developing third world countries, there is a
based processing gives us accurate or
shortage of experts and consulting them
meticulous results and huge potential in
agriculture areas. This modern technique is
could be expensive and time consuming for training and remaining thirty percent for
them. testing. These images are generally
appearing in the form of a matrix holding
the values of the cells in the form of
Proposed System neurons. These neurons are fed as an input
to the layers of the network. The
There are a number of strategies currently
construction of the CNN model is done for
used to utilize computer-based systems of
further analysis. Now, the model is tested
plants derived from images to specific
for implementation. If the model is accurate,
classifier systems as input parameters.
then the data is satisfied with the network or
In this proposed system the images are else the model is modified for achieving
collected. These images are given as input to better construction.
our proposed classifier and it displays the
disease it has affected with. To make this
possible we have created a model using
Convolutional Neural Network. This can be
useful to both small scale and large scale
farmers as this could be more accurate and
less time consuming. Moreover it could be
helpful to poor farmers as it could be less
expensive.
SYSTEM DESIGN
System Architecture
Input Layer
Convolutional Layer
IMPLEMENTATION
Batch Normalization Layer
which performs random shifts, rotations, knowledge on the test set which we created
crops and flips on our image dataset. earlier and accuracy is calculated
After testing the model we save it with the ● After this the dataset is
help of a library called pickle. Then the divided into test and training
model is saved in GDrive. To test the model set based on requirement.
we trained we will be uploading an image ● After pre-processing, the next
belonging to a certain plant which is move is to encode the labels
affected by the disease. After uploading the with LabelEncoder and
file in drive we will be accessing it using its thereby dividing the dataset
file path and then pre-process and predict into two groups, train and test
the class it belongs using predict_class sets. Additionally we will be
function and print the result. transforming input features to
Tensors for both numeric and
categorical variables and
RESULT column features are
described.
In this project we have designed a program
using CNN. The programming language
being used is python. Its packages which are
We have trained our model and saved it
being here are numpy, sklearn, matplotlib,
before exploring results. Let's have a glance
keras, scikit-learn. The following are the
at the summary of our model. The summary
steps to be taken in
of our model’s Architecture is
order to achieve experimental results.
[2] How Convolutional Neural Networks [5] Plant Disease Detection and its Solution
Diagnose Plant Disease. Volume: 2019, using Image Classification. Volume 119 No.
Article ID: 9237136, DOI: 14 2018, 879-884 ISSN: 1314-3395
10.34133/2019/9237136.
[6] Plant Leaf Recognition Using a
[3] Detection of Plant Disease by Leaf Convolution Neural Network March 2017
Image Using Convolution Neural Networks DOI: 10.5391/IJFIS.2017.17.1.26
978-1-5386-9353-7/19/ ©2019 IEEE