Professional Documents
Culture Documents
A Project Report on
Bachelor of Engineering
In
Anand T – 1NH17EC006
Under the guidance of
Ms. S Gayathri,
Assistant Professor,
Dept. of ECE,
NHCE, Bengaluru
Certificate
Certified that the Final-project entitled “Automatic Leaf Disease Classifier” is carried out by
Mr. Anand T bearing USN : 1NH17EC006 bonafide students of NHCE, Bengaluru, in partial
fulfilment for the award of Bachelor of Engineering in Electronics and Communication of the
Visvesvaraya Technological University, Belagavi during the year 2020-2021. It is certified
that all corrections/suggestions indicated for Assessment have been incorporated in the
report deposited in the department library. The Final-project report has been approved as it
satisfies the academic requirements in respect of the Final- project work prescribed for the
said degree.
____________________ ____________________
EXTERNAL VIVA
1. 1.
2. 2.
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of my project would
be impossible without the set of people, whose guidance and encouragement crowned our
effort with success.
I have great pleasure in expressing my deep sense of gratitude to Dr. Mohan Manghnani,
Chairman of New Horizon Education Institution for providing us with the necessary
infrastructure and pleasant environment.
I would like to thank Dr. Sanjeev Sharma, HOD, Department of Electronics and
Communication Engineering, for his abundant support and encouragement.
I would like to thank Ms. S Gayathri, our project guide, Department of Electronics and
Communication Engineering, for constantly monitoring the development of the project and
setting up precise deadline. Her valuable suggestions were the key factors in the completion
of project.
I would also like to thank the teaching and non-teaching staff of Department of Electronics
and Communication Engineering, for their extreme support and my friends, who always
supported me during the course of my project.
Finally I would like to thank God for keeping us safe during the course of completing this
project and making this project a successful one.
Anand T -1NH17EC006
DECLARATION
I hereby declare that the project work entitled “Automatic Leaf Disease Classifier”
submitted by me to the Department of Electronics and Communication Engineering, NHCE
Bengaluru, is a record bonfide project work carried by me under the guidance Ms. Gayathri,
NHCE. This project work is submitted in the partial fulfillment of the requirements for the
award of the degree Bachelor of Engineering in Electronics and Communication.
I further declare that the work reported in this project has not been submitted and will not be
submitted, either in parts or in full, for the award of any degree in this institute or any other
institute or university.
Anand T -1NH17EC006
Abstract
Agriculture is a key source of livelihood. Agriculture provides employment opportunities for
village people on large scale in developing country like India. India's agriculture is composed
of many crops and according to survey nearly 70% population is depends on agriculture.
Most of Indian farmers are adopting manual cultivation due to lagging of technical
knowledge. Farmers are unaware of what kind of crops that grows well on their land. When
plants are affected by heterogeneous diseases through their leaves that will effects on
production of agriculture and profitable loss. Also reduction in both quality and amount of
agricultural production. Leaves are important for fast growing of plant and to increase
production of crops. Identifying diseases in plants leave is challenging for farmers also for
researchers. Currently farmers are spraying pesticides to the plants but it effects human
directly or indirectly by health or also economically. To detect these plant diseases many
fast techniques need to be adopt. In this paper, we have done survey on different plants
disease and various advance techniques to detect these diseases.
Content
Abstract 5
1. Introduction 10
2. Literature Survey 14
3. Requirement Specifications 18
3.1.2 Keras 19
3.1.3 Numpy 20
4. Methodology 23
4.2.1 Python 28
4.2.2 Numpy 28
5. Testing 40
5.1.3 Rust 42
LIST OF FIGURES
4.9 Dilation 32
4.10 Erosion 32
Chapter-01
Introduction
The primary occupation of India is agriculture. India ranks second in the agricultural
output worldwide. The economy of India is predominantly dependent on the agricultural
productivity. About 70% of the villages and many other rural areas depend on agriculture
only. Agriculture provides employment to about 60% of the population and pays about 17%
of the total GDP (Gross Domestic Product). Therefore it is very important to detect the
diseases that affect the plants for a better agricultural activity. In olden days the farmers
were very well versed in agriculture and could identify the diseases by just looking at the
plants. But now due to the unpredictable climatic conditions and the highly polluted
environment, the plants are getting affected by many new diseases that the farmers are not
able to identify and finally incur loss in their business which ultimately affects the Indian
economy. The most predominantly grown crops in India are rice, wheat, jowar, pulses,
cotton, coffee, rubber etc. All these crops grow based on the strength of their leaves and
roots. The existing methodology of detection of plant diseases through the naked eyes
which requires more man labour, equipped laboratories, expensive diseases are not that
accurate and my lead to wrong usage of the pesticides and insecticides that can cause long
term resistance of the pathogens, reducing the ability of the crops to fight back. It can also
cause the soil to loose its strength and it will take many years to get back to normal state.
Hence, accurate detection of diseases is required in order to strengthen the field of
agriculture and out economy. Most types of diseases affect the leaves of the plants which
the farmers get more difficulties in identifying them and are not able to provide the
precaution to those plants due to the lack of knowledge about those diseases. In current
day among this field, the image processing method is suitable, efficient and reliable in the
field of disease detection. With the help of the leaf images the automatic leaf disease
classifier can identify the colour, spots etc on the leaf and determine the type of disease
that has affected the plant. Hence, this can be a fast process and the farmers can save a lot
of time. The first implementation of plant disease detection using image processing was
done by Shen WeizhegWuyachun Chen Zhanliang and Wi Hangda.
Keeping all these points in mind we have done the project to overcome most of the
challenges that are listed.
computed threshold value, then zero value is assigned to the red, green and blue
components of the this pixel.
In the infected clusters, inside the boundaries, remove the masked cells.
Obtain the useful segments to classify the leaf diseases. Segment the components
using genetic algorithm
Chapter-02
Literature Survey
Yan-cheng zang Han-Ping Mao, Bo Hu, Ming-xi Li in paper titled Feature
Selection of Cotton Disease Leaves Image Based on Fuzzy Feature Selection
Techniques[1] proposed the fuzzy feature selection approach -fuzzy curves (FC) and
surfaces (FS) – for cotton leaves disease image feature selection. This research is done
in two steps .Firstly to automatically and quickly isolate a small set of significant
features from a set of original features according to their significance and to eliminate
spurious features they make use of FC. Secondly to isolate the features dependent on
the significant features, utilize FS. This approach is useful for practical classification
applications which reduce the dimensionality of the feature space. The feature
selection technique has faster execution speed and higher classification success rate
because it does not suffer from the local minima problems inherent in the nonlinear
modeling techniques typically used in forward selection and backward elimination.
Ajay A. Gurjar, Viraj A. Gulhane describes Eigen feature regularization and
extraction technique by this detection of three diseases can be done. This system is
having more accuracy, than that of the other feature detection techniques. With this
method about 90% of detection of Red spot i.e. fungal disease is detected [2].
Dheeb Al Bashish & et al. proposed image processing based work is consists of
the following main steps : In the first step the acquired images are segmented using
the K-means techniques and then secondly the segmented images are passed through
a pre-trained neural network .The images of leaves taken from AlGhor area in Jordan.
Five diseases that are prevalent in leaves were selected for this research; they are:
Early scorch, Cottony mold, Ashen mold, late scorch, tiny whiteness. The experimental
result indicates that the neural network classifier that is based on statistical
classification support accurate and automatic detection of leaf diseases with a
precision of around 93% [3].
In [4], diagnosis system for grape leaf diseases is proposed. The proposed
system is composed of three main parts: Firstly grape leaf color extraction from
complex background, secondly grape leaf disease color extraction and finally grape
leaf disease classification. In this analysis back-propagation neural network with a
self-organizing feature map together is utilize to recognize colors of grape leaf.
Further MSOFM and GA deployed for grape leaf disease segmentation and SVM for
classification. Finally filtration of resulting segmented image is done by Gabor
Wavelet and then SVM is again applied to classify the types of grape leaf diseases.
This system can classify the grape leaf diseases into three classes: Scab disease, rust
disease and no disease. Even though there are some limitations of extracting
ambiguous color pixels from the background of the image. The system demonstrates
very promising performance for any agricultural product analysis.
In [5] “Extraction of the Rice leaf disease image based on BP neural network “
by Libo Liu & et al proposed a system for classifying the healthy and diseased part of
rice leaves using BP neural network as classifier. In this study rice brown spot was
select as a research object. The images of rice leaves were acquired from the
northern part of Ningxia Hui autonomous region. Here the color features of diseases
and healthy region were served as input values to BP neural network. The result
shows that this method is also suitable to identify the other diseases.
In [6], Tushar H Jaware & et al. developed a Fast and accurate method for
detection and classification of plant diseases. The proposed algorithm is tested on
main five diseases on the plants; they are: Early Scorch, Cottony mold, Ashen Mold,
Late scorch, tiny whiteness. Initially the RGB image is acquired then a color
transformation structure for the acquired RGB leaf image is created. After that color
values in RGB converted to the space specified in the color transformation structure.
In the next step, the segmentation is done by using Kmeans clustering technique.
After that the mostly green pixels are masked. Further the pixels with zero green, red
and blue values and the pixels on the boundaries of the infected object were
completely removed. Then the infected cluster was converted into HIS format from
RGB format. In the next step, for each pixel map of the image for only HIS images the
SGDM matrices were generated. Finally the extracted feature was recognized through
a pre-trained neural network. The results show that the proposed system can
successfully detect and classify the diseases with a precision between 83% and 94%.
P. Revathi M. Hemalatha detected Cotton leaf spot diseases in [7] by using
Chapter-03
Requirement Specifications
It is the core part of computer vision which plays a crucial role in many real-world examples
like robotics, self-driving cars, and object detection. Image processing allows us to transform
and manipulate thousands of images at a time and extract useful insights from them. It has
a wide range of applications in almost every field.
Python is one of the widely used programming languages for this purpose. Its amazing
libraries and tools help in achieving the task of image processing very efficiently.
3.1.2 Keras
3.1.3 Numpy
With this library you can also perform simple image techniques, such as flipping
images, extracting features, and analyzing them. Images can be represented by numpy
multi-dimensional arrays and so their type is NdArrays. A color image is a numpy array with
3 dimensions. By slicing the multi-dimensional array the RGB channels can be separated.
Below are some of the operations that can be performed using NumPy on the image (image
is loaded in a variable named test_img using imread).
To reverse the image, use test_img[::-1] (the image after storing it as the numpy
array is named as <img_name>).
Example: np.where(test_img > 150, 255, 0), this says that in this picture if you find
anything with 150, then replace it with 255, else 0.
You can also display the RGB channels separately. It can be done using this code
snippet:
To obtain a red channel, do test_img[:,:,0], to obtain a green channel,
do test_img[:,:,1] and to obtain a blue channel, do test_img[:,:,2].
Chapter-04
Methodology
Leaf miners are the insect family at larval stage. They feed between upper and
lower part of the leaf.
Hence we can develop a robot, using image processing to detect the disease, to
classify it. This will avoid human interference and hence lead to précised
unprejudiced decision.
Generally, whatever our observation about the disease is just used for the
decision of the disease. A symptom of plant disease is a visible effect of disease on
the plant. Symptoms can be change in color, change in the shape or functional
changes of the plant as per its response to the pathogens, insects etc. Leaf wilting is a
characteristic symptom of verticilium wilt. It is caused due to the fungal plant
pathogens V. dahliaeand Verticillium albo-atrum. General common bacterial disease
symptoms are brown, necrotic lesions which get surrounded by a bright light yellow
halo at the edge of the leaf of the plant or at inner part of the leaf on the bean plants.
You are not actually seeing the disease pathogen, but rather a symptom that is being
caused by the pathogen.
In order to build a machine leaning model it consists of two phase namely testing
and training phase were the model is first trained and an input is given to test the
model which is called the test data. The model consists of several image processing
steps such as image acquisition, image pre-processing,segmentation, feature
extraction and SVM classifier to classify the diseases.
Image acquisition:
The diseased leaf image is acquired using the camera, the image is
acquired from a certain uniform distance with sufficient lighting for learning and
classification. The sample images of the diseased leaves are collected and are
used in training the system. To train and to test the system, diseased leaf images
and fewer healthy images are taken. The images will be stored in some standard
format.The image background should provide a proper contrast to the leaf color.
Leaf disease dataset is prepared with both black and white background, based
on the comparative study black background image provides better results and
hence it is used for the disease identification leaf.
Image pre-processing:
Image acquired using the digital camera is pre-processed using the noise
removal with averaging filter, color transformation and histogram equalization.
The color transformation step converts the RGB image to I (Hue, Saturation and
intensity) representation as this color space is based on human perception. Hue
refers to the dominant color attribute in the same way as perceived by a human
observer. Saturation refers to the amount of brightness or white light added to
the hue. Intensity refers to the amplitude of light. After the RGB to I conversion,
Hue part of the image is considered for the analysis as this provides only the
required information. S and I component are ignored as it does not give any
significant information.
Masking green pixels: Since most of the green colored pixels refer to the
healthy leaf and it does not add any value to the disease identification
techniques, the green pixels of the leaf are removed by a certain masking
technique, this method significantly reduces processing time. The masking of
green pixels is achieved by computing the intensity value of the green pixels, if
the intensity is less than a predefined threshold value, RGB component of that
particular pixel is assigned with a value of zero. The green pixel masking is an
optional step in our disease identification technique as the diseased part of the
leaf is able to be completely isolated in the segmentation process.
Segmentation:
Feature Extraction:
From the input images, the features are to be extracted. To do so, instead
of choosing the whole set of pixels we can choose only which are necessary and
sufficient to describe the whole of the segment. The segmented image is first
selected by manual interference. The affected area of the image can be found
from calculating the area connecting the components. First, the connected
components with 6 neighborhood pixels are found. Later the basic region
properties of the input binary image are found. The interest here is only with the
area. The affected area is found out. The percent area covered in this segment
says about the quality of the result. The histogram of an entity or image provides
information about the frequency of occurrence of certain value in the whole of
the data/image. It is an important tool for frequency analysis. The co-occurrence
takes this analysis to next level wherein the intensity occurrences of two pixels
together are noted in the matrix, making the co-occurrence a tremendous tool
for analysis. From gray-co-matrix, the features such as Contrast, Correlation,
Energy, Homogeneity' are extracted. The following table lists the formulas of the
features.
4.2.1 Python
Python coding language is a very easy to learn and at the same time powerful
programming language. It has efficient high-level data structures and a simple but
effective approach to object-oriented programming. Python’s elegant syntax and
dynamic typing, together with its interpreted nature, make it an apt language for
scripting and rapid application development in many areas on most platforms. The
Python interpreter is easily extended with new functions and data types
implemented in C or C++ (or other languages callable from C). Python is also suitable
as an extension language for customizable applications.
4.2.2 Numpy
Python is slower compared to other languages like C/C++. But another significant
feature of Python is that it can be easily extended with C/C++. This feature helps us to
write computationally intensive codes in C/C++ and create a Python wrapper for it so
that we can use these wrappers as Python modules. This gives us two benefits : first,
our code is as rapid as original C/C++ code (since it is the actual C++ code working in
background) and second, it is a cake walk to code in Python. This is how OpenCV-
Python works, it is a Python wrapper around original C++ implementation. And the
support of Numpy makes the task more easier. Numpy is a highly optimized library
for numerical operations. It gives a MATLAB style syntax. All the OpenCV array
structures are modified to-and-from Numpy arrays. So whichever operations you can
do in Numpy, you can combine it with OpenCV, which multiplies number of weapons
in your arsenal. Along with that, several other libraries like SciPy, Matplotlib which
supports Numpy can be used with this. So OpenCV-Python is an apt tool for fast
prototyping of computer vision problems.
The end result can be either in the form of an image or a corresponding feature of
that image. This can be used for further analysis and decision making.
Fig 4.5 How image is classified as pixels Fig 4.6 RGB image representation
Let’s see the two fundamental operations of morphological image processing, Dilation and
Erosion:
At this point you may be thinking “what is a structuring element?” Let me explain:
Structuring element is a matrix consisting of only 0’s and 1’s that can have any
arbitrary shape and size. It is positioned at all possible locations in the image and it is
compared with the corresponding neighbourhood of pixels.
The square structuring element ‘A’ fits in the object we want to select, the ‘B’
intersects the object and ‘C’ is out of the object.
The zero-one pattern defines the configuration of the structuring element. It’s
according to the shape of the object we want to select. The center of the structuring
element identifies the pixel being processed.
Gaussian blur which is also known as gaussian smoothing, is the result of blurring
an image by a Gaussian function.
It is used to reduce image noise and reduce details. The visual effect of this blurring
technique is similar to looking at an image through the translucent screen. It is sometimes
used in computer vision for image enhancement at different scales or as a data
augmentation technique in deep learning.
If we have a filter which is normally distributed, and when its applied to an image,
the results look like this:
You can see that some of the edges have little less detail. The filter is giving more
weight to the pixels at the center than the pixels away from the center. Gaussian filters are
low-pass filters i.e. weakens the high frequencies. It is commonly used in edge detection.
Fourier transform breaks down an image into sine and cosine components.
Since we are talking about images, we will take discrete fourier transform into
consideration.
The inverse fourier transform converts the transform back to image. The formula for
2D inverse discrete fourier transform is:
This could be very beneficial in extracting useful information from the image because
most of the shape information is enclosed in the edges. Classic edge detection methods
work by detecting discontinuities in the brightness.
It can rapidly react if some noise is detected in the image while detecting the
variations of grey levels. Edges are defined as the local maxima of the gradient.
The most common edge detection algorithm is sobel edge detection algorithm.
Sobel detection operator is made up of 3*3 convolutional kernels. A simple kernel Gx and a
90 degree rotated kernel Gy. Separate measurements are made by applying both the kernel
separately to the image.
And,
We saw a Fourier transform but it is only limited to the frequency. Wavelets take
both time and frequency into the consideration. This transform is apt for non-stationary
signals.
We know that edges are one of the important parts of the image, while applying the
traditional filters it’s been noticed that noise gets removed but image gets blurry. The
wavelet transform is designed in such a way that we get good frequency resolution for low
frequency components. Below is the 2D wavelet transform example:
Input layer
Hidden layer
Output layer
Let’s consider an image, each pixel is fed as input to each neuron of the first layer,
neurons of one layer are connected to neurons of the next layer through channels.
Each of these channels is assigned a numerical value known as weight.
The inputs are multiplied by the corresponding weights and this weighted sum is
then fed as input to the hidden layers.
The output from the hidden layers is passed through an activation function which
will determine whether the particular neuron will be activated or not.
The activated neurons transmits data to the next hidden layers. In this manner, data
is propagated through the network, this is known as Forward Propagation.
In the output layer, the neuron with the highest value predicts the output. These
outputs are the probability values.
The predicted output is compared with the actual output to obtain the error. This
information is then transferred back through the network, the process is known as
Back propagation.
Based on this information, the weights are adjusted. This cycle of forward and
backward propagation is done several times on multiple inputs until the network
predicts the output correctly in most of the cases.
This ends the training process of the neural network. The time taken to train the
neural network may get high in some cases.
In the below image, ai’s is the set of inputs, wi’s are the weights, z is the output
and g is any activation function.
More data needs to be fed to the model to get the better results.
Image dataset should be of high quality to get more clear information, but to process
them you may require deeper neural networks.
In many cases RGB images are converted to grayscale before feeding them into a neural
network.
Chapter-05
Testing
For the testing of our project, we had collected many pictures of many varieties of
leaves out of which we collected the pictures of leaves affected by diseases also. All these
were collected and a dataset was created and kept.
For the testing, first the image of any leaf is selected from the collected dataset.
Then by running the code the process of image acquisition, image pre-processing, image
segmentation, feature extraction such as colour, texture, size is done and is compared with
the trained dataset.
Based on the comparison the appropriate disease is detected and displayed on the
screen. So, this is the testing phase of the project.
Some of the most commonly affected diseases in the crops of India are:
5.1.1 Black Spot:
Symptoms of Black spots are:
i) The yellowish color on leaf
ii) Drop of Leaf in premature stage
iii) Decline in growth of leaf
Chapter-06
Results
After the code is executed, an image of the leaf is selected and tested. Upon testing,
predictions were very accurate and were detecting the diseases also correctly.
Fig 6.1 Picture of a healthy corn leaf Fig 6.2 Picture of a diseased corn leaf
In the above picture we can see that, after running the code and selecting the
picture of any leaf from the dataset stored in the laptop, it displays the appropriate disease
that the leaf is affected with. If the leaf is not affected by any disease then it will display that
the leaf is a healthy one. Fig 6.1 shows the image of the result of running the code by
selecting a leaf and it shows that the leaf is healthy which means the leaf is not infected by
any disease. Fig 6.2 shows the image of the result that the corn leaf is affected by a disease
called northern leaf blight.
Fig 6.3 Picture of a healthy potato leaf Fig 6.4 Picture of a diseased potato leaf
In the above image we can see the screenshot of the result of leaf detection of a potato leaf
done by our leaf disease classifier. Fig 6.3 shows the result of testing a potato leaf and the
output shows that it is a healthy leaf. Fig 6.4 shows the result of testing a potato leaf that it
is affected by a disease called early blight.
Fig 6.5 Picture of a healthy tomato leaf Fig 6.6 Picture of a diseased tomato leaf
In the above image we can see the screenshot of the result of leaf detection of a tomato leaf
done by our leaf disease classifier. Fig 6.5 shows the result of testing a tomato leaf and the
output shows that it is a healthy leaf. Fig 6.6 shows the result of testing a tomato leaf that it
is affected by a disease called tomato yellow leaf curl virus.
Chapter-07
Conclusion
Our project explains the survey on different diseases classification techniques used for plant
leaf disease detection and an algorithm for image segmentation technique that can be used
for automatic detection as well as classification of plant leaf diseases later. Banana, beans,
jackfruit, lemon, mango, potato, tomato, and sapota are some of those ten species on which
proposed algorithm is tested. Therefore, related diseases for these plants were taken for
identification. With very less computational efforts the optimum results were obtained,
which also shows the efficiency of proposed algorithm in recognition and classification of
the leaf diseases. Another advantage of using this method is that the plant diseases can be
identified at early stage or the initial stage. The images are fed to our application for the
identification of diseases. It provides a good choice for agriculture community particularly in
remote villages. It acts as an efficient system in terms of reducing clustering time and the
area of infected region. Feature extraction technique helps to extract the infected leaf and
also to classify the plant diseases. The embedded voice navigation system helps to guide us
throughout the process. To improve recognition rate in classification process Artificial
Neural Network, Bayes classifier, Fuzzy Logic and hybrid algorithms can also be used.
Chapter-08
Future Scope
In this project, we had demonstrated only a few diseases that were very commonly caused
in plants. So, it can be extended to more diseases in the future. Here the disease is only
detected, but in future we can develop a robot to automatically detect and sent to spray the
appropriate pesticide without human interaction. These robots can also check the quality of
the soil if it is capable of growing that particular crop also. The project can be enhanced to
develop the open multimedia (Audio/Video) about the disease and their solutions once the
disease is detected.
Chapter-09
Appendix
Program Code :
classifier = Sequential()
# Convolution Step 1
classifier.add(BatchNormalization())
# Convolution Step 2
classifier.add(BatchNormalization())
# Convolution Step 3
classifier.add(BatchNormalization())
# Convolution Step 4
classifier.add(BatchNormalization())
# Convolution Step 5
classifier.add(BatchNormalization())
# Flattening Step
classifier.add(Flatten())
classifier.add(Dropout(0.4))
classifier.add(BatchNormalization())
classifier.add(Dropout(0.4))
classifier.add(BatchNormalization())
classifier.add(Dropout(0.2))
classifier.add(BatchNormalization())
classifier.summary()
# classifier.compile(optimizer='adam',
# loss='categorical_crossentropy',
# metrics=['accuracy'])
loss='categorical_crossentropy',
metrics=['accuracy'])
# image preprocessing
train_datagen = ImageDataGenerator(rescale=1./255,
shear_range=0.2,
zoom_range=0.2,
width_shift_range=0.2,
height_shift_range=0.2,
rotation_range=40,
horizontal_flip=True,
fill_mode='nearest')
test_datagen = ImageDataGenerator(rescale=1./255)
batch_size = 32
training_set = train_datagen.flow_from_directory(train_data_dir,
target_size=(224, 224),
batch_size=batch_size,
class_mode='categorical')
test_set = test_datagen.flow_from_directory(test_data_dir,
target_size=(224, 224),
batch_size=batch_size,
class_mode='categorical')
print(training_set.class_indices)
# # checkpoint
# weightpath = "weights_1.hdf5"
# callbacks_list = [checkpoint]
# history = classifier.fit_generator(training_set,
# steps_per_epoch=training_set.samples//batch_size,
# validation_data=test_set,
# epochs=50,
# validation_steps=test_set.samples//batch_size,
# callbacks=callbacks_list)
history = classifier.fit_generator(training_set,
steps_per_epoch=training_set.samples//batch_size,
validation_data=test_set,
epochs=50,
validation_steps=test_set.samples//batch_size)
#saving model
filepath="model.hdf5"
classifier.save(filepath)
sns.set()
acc = history.history['acc']
val_acc = history.history['val_acc']
loss = history.history['loss']
val_loss = history.history['val_loss']
#accuracy plot
plt.ylabel('Accuracy')
plt.xlabel('Epoch')
Chapter-10
References
[1] Yan Cheng Zhang, Han Ping Mao, Bo Hu, Ming Xili ,“features selection of Cotton disease
leaves image based on fuzzy feature selection techniques”, IEEE Proceedings of the 2007
International Conference on Wavelet Analysis and Pattern Recognition, Beijing, China, 2-4
Nov. 2007.
[2] Ajay A. Gurjar, Viraj A. Gulhane,” Disease Detection On Cotton Leaves by Eigenfeature
Regularization and Extraction Technique”, International Journal of Electronics,
Communication & Soft Computing Science and Engineering(IJECSCSE)Volume 1, Issue 1
[3] Dheeb Al Bashish, Malik Braik, and Sulieman Bani-Ahmad ,”A Framework for Detection
and Classification of Plant Leaf and Stem Diseases”, 2010 International Conference on Signal
and Image Processing.
[4] A.Meunkaewjinda, P. Kumsawat, K. Attakitmongcol and Sri kaew,”Grape leaf disease
detection from color imagery using hybrid intelligent system”,proceedings of ECTICON 2008.
[5] Libo Liu,Guomin Zhou,”Extraction of the Rice Leaf Disease Image Based on BP Neural
Network”,2009 IEEE.
[6] Tushar H Jaware, Ravindra D Badgujar and Prashant G Patil,” Crop disease detection
using image segmentation”, Proceedings of "Conference on Advances in Communication
and Computing (NCACC'12)”, April 21, 2012.
[7] P. Revathi M. Hemalatha,” Homogenous Segmentation based Edge Detection Techniques
for Proficient Identification of the Cotton Leaf Spot Diseases”, International Journal of
Computer Applications (0975 – 888)Volume 47– No.2, June 2012.
[8] H. Muhammad Asraf, M. T. Nooritawati, M.S.B. Shah Rizam,” A Comparative Study in
Kernel-Based Support Vector Machine of Oil”, Procedia Engineering 41 ( 2012 ) 1353 – 1359
[9] Satish Madhogaria, Marek Schikora, Wolfgang Koch, Daniel Cremers,” Pixel-Based
Classification Method for Detecting Unhealthy Regions in Leaf Images”, Informatik 2011 -
Informatik schafft Communities 41. Jahrestagung der Gesellschaft für Informatik , 4.-
7.10.2011, Berlin
[10] Yuan Tian, Chunjiang Zhao,Shenglian Lu,and Xinyu Guo,”SVM- based Multiple Classifier
System for Recognition of Wheat Leaf Diseases”, Proceedings of 2010 Conference on
Dependable Computing (CDC’2010) November 20-22, 2010, Yichang, China.
[11] Sachin D. Khirade, A. B. Patil, “Plant Disease detection using Image Processing”, 2015
International Conference on Computing Communication Control and Automation.
[12] Prathibha S R1, Anupama Hongal 2, Jyothi M P3, “IOT based monitoring system in smart
agriculture”, 2017 International Conference on Recent Advances in Electronics and
Communication Technology.
[13] K.Lokesh Krishna, Omayo Silver, Wasswa Fahad Malende, K.Anuradha, “Internet of
Things application for Implementation of Smart Agriculture System”, International
conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC 2017).
[14] John A. Stankovic, Life Fellow, IEEE “Research Directions for the Internet of Things”,
IEEE Internet of Things Journal ( Volume: 1, Issue: 1, Feb. 2014 ).
[15] Lin xuefeng, Wu Shengliang, “Study on ntegrated development of modern agriculture
evaluation”, Business Management and Electronic Information (BMEI), 2011 International
Conference on 13-15 May 2011, Guangzhou, China.
[16] Jobin Francis, Anto Sahaya Dhas D, Anoop B K, “Identification of leaf diseases in pepper
plants using soft computing techniques”, Emerging Devices and Smart Systems (ICEDSS),
Conference on, 4-5 March 2016, Namakkal, India.
[17] Priyanka Soni, Rekha Chahar, “A Segmentation Improved Robust PNN Model for
Disease Identification in Different Leaf Images”, IEEE International Conference on
PowerElectronics, Intelligent Control and Energy Systems (ICPEICES-2016).
[18] R.P.Narmadha, G.Arulvadivu, “Detection And Measurement of Paddy Leaf Disease
Symptoms using Image Processing”, 2017 International Conference on Computer
Communication and Informatics (ICCCI - 2017), Jan. 05 – 07, 2017, Coimbatore, INDIA.