Web basedApplicationforPlantLeafDiseaseDetection
Web basedApplicationforPlantLeafDiseaseDetection
net/publication/376892296
CITATIONS READS
0 969
5 authors, including:
Sachin Shelke
Pune Institute Of Computer Technology
12 PUBLICATIONS 3 CITATIONS
SEE PROFILE
All content following this page was uploaded by Sachin Shelke on 29 December 2023.
Abstract— Agriculture is under serious threat, and this threat includes diseases that affect plant leaves. Our method
pinpoints both the disease that affected the leaf and the region of damage. Both the quantity and quality of agricultural
products are impacted by crop diseases, particularly those that primarily harm the leaves. The human eye's ability to see
subtle differences in the diseased leaf area is not as strong as it should be. In this study, we provide an automated web-based
system for classifying and diagnosing plant leaf diseases. We are using CNN model as a feature extractor and prediction
model to swiftly categorise illnesses. Proper treatment can be provided by the study of disease. Along with this we have
utilized the docker, POSTMAN API and TF serving server to make the system scalable and improve the working. This study
is validated using the Plant Village dataset for plants like tomato and potato. The training and testing results indicate that
the CNN model have a greater classification accuracy than the currently in use ANN model. The proposed approach could
prove a useful tool for farmers and industry specialists to utilise when making decisions about crop management and disease
control.
Keywords— Crop Disease, CNN Model, Docker, POSTMAN API, TF Serving Server, Classification Accuracy, ANN Model, Crop
Management
I. INTRODUCTION
India's economy is heavily reliant on agriculture. 70% of people work in agriculture and related industries. The goals of
agricultural research are to increase output and get rid of plant and food diseases. Today's plant diseases are causing a lot of issues
for farmers. Climate change and environmental pollution make plants more susceptible to a number of illnesses. Due to awareness
of organic crops and food people have started growing crops in their home gardens and such places. The conventional means of
disease management implicate farmers and the plant pathologists [1]. The diagnosis and use of the pesticide are more often done in
the fields. This process is time-consuming, challenging, and most of the time results in incorrect diagnosis [1]. Because most foliar
diseases have a similar form, size, and colour, the current approach is insufficient to identify illnesses in leaves.
The development of automated models enabling, accurate, and prompt diagnosis of the plant leaves disease has advanced with
the introduction of Computer Vision (CV), Machine Learning (ML), and Artificial Intelligence (AI) technologies [3]. Due to the
availability of several high-performance computer processors and devices during the past decade, AI and ML technologies have
attracted enormous interest. It has been clear in recent years that Deep Learning (DL) has mostly been employed in agriculture.
In this era of research, a number of deep learning architectures have been proposed by various authors. Among these, CNN is
one of the most popularly deployed deep learning models. CNN is inspired by the biological nervous and vision system. It is an
unsupervised deep learning classification model having high classification and recognition accuracy [3]. This model possesses a
complex structure as it constitutes large number of information processing layers. This multiple layer architecture differs it from the
conventional Artificial Neural Networks (ANN’s). Convolutional neural network (CNN), a popular method of target detection, has
a wide application prospect in the field of crop disease detection [4]. Therefore, in this study we propose a Convolutional Neural
Network (CNN) for classification of plant leaf disease. The performance of the model is validated on the images acquired from the
Plant Village dataset.
UDAY CNN Mango Anthracnose Mango leaves 97.13 % To develop an appropriate and
PRATAP and effective method for diagnosis of
SINGH et al. in PlantVillage the disease and its symptoms
[1]
PENG JIANG et INAR- Apple Multiple 78.80% Real-Time Detection of Apple
al. in [2] SSD Apple leaf Leaf Diseases
disease dataset
(ALDD)
MOBEEN CNN Pepper crop Multiple PlantVillage 99.53% Plant Disease Detection using
AHMAD et al. CNN With Stepwise Transfer
in [3] Learning
JUN SUN et al. CNN MAIZE Maize Leaf NLB 91.83% Maize Leaf Blight disease
in [4] Blight detection in real time
RESHMI A.M CNN Multiple Multiple Leaf 99.5% Automatic leaf disease
et al. in [5] identification model
SAHANA CNN Multiple Multiple PlantVillage 97 % Detection of non-real time plant
UDAY NAIK et diseases
al. in [6]
YANG ZHANG RCNN Tomato Multiple AI Challenger 98.54% Make use of the Faster RCNN
et al. in [7] algorithm to detect diseased
tomato leaves and used
ResNet101 in place of VGG16.
In our Proposed System "Web-Based Application for Plant Leaf Disease Detection," the input is an image, uploaded from either
mobile or PC. The application is intended for all types of user weather it be a farmer or a person interested in plants. This paper
proposes a Convolutional Neural Network-inspired method for identification of plant leaves diseases. The model is trained and
tested for potato, tomato and bell pepper plant leaves. The training and testing were successful, and we achieved a good accuracy
that is shown in the further part of the paper. A multilayer CNN model is implemented for better results and a user-friendly UI is
also made available. The application is developed by using ReactJS and POSTMAN API is also used in the system. We tried to use
the most suitable technology for the application so that the product can be tested with other application similar to it. The CNN model
being the base for detection we have made the UI more refined and user-friendly and added features where users can get information
about the plants and increase their knowledge base in the same domain.
A. System Architecture
The system architecture leverages the Postman API, Docker containerization, a CNN model, and TensorFlow serving to create a
scalable and efficient solution for analyzing taking an input image, sending through a Postman API to the model, processing the
image using a CNN model hosted within a Docker container, and generating a result to determine if the image is classified as healthy
or not healthy. This modular and flexible architecture enables seamless integration of the different components and facilitates the
processing and classification of images in a robust and reliable manner.
1. Image Acquisition: Leaf is captured through high resolution camera. Image will be in the form of RGB (Red, Green, Blue)
form. To improve the precision of the disease detection and classification process, device dependent colour space is required.
The procedure includes obtaining pictures from any equipment sources or from any database. This is the initial phase in the
process of image processing. The obtained image is in RGB format. It is not always possible to get huge amounts of images for
a specific crop disease pair. This data shortage problem and class imbalance problem are addressed by using data augmentation
techniques which can make CNNs able to learn representative features of disease classes [3].
2. Pre-processing: We scaled the images to the required size before feeding them to the network. We normalized the picture pixel
value as well in order to enhance model performance (keeping them in range 0 and 1 by dividing by 256). Both during training
and inference, this occurs. In order to account for this, we added a layer to our sequential model. To improve the quality and
quantity of data, data augmentation is carried out. Cleaning data is one of the processes of a data model, which is essential for
high-accuracy models. However, the model cannot make accurate predictions for inputs from the real world if cleaning
decreases the representability of the data. The overfitting problem in the training stage of CNNs can be overcome via data
augmentation. The overfitting problem occurs when random noise or errors, rather than the underlying relationship, are
described [2].
leaves that didn't. These images are assigned to their relevant classes according to the category. PlantVillage dataset is a public
dataset containing 38 crop disease pairs. In total there are 14 crops with 26 disease classes and 14 healthy plant classes [3]. The
purpose of using a publicly available dataset was to evaluate our system for comparative analysis with other existing methods
[3]. The example dataset depicted in Fig. 3 is made up of pictures acquired from the plantVillage dataset.
Fig. 3 Sample of images
4. Convolutional Neural Network: Deep learning-related applications have seen exponential growth due to the advent of
computationally efficient hardware like the Graphics Processing Unit (GPU). Deep learning has the advantage of directly
extracting classification features [7]. The traditional artificial neural network is what inspired the notion of deep learning. The
number of pre-processing layers in the deep learning model is stacked, and they are used to extract information from the initial
raw input to the final output that is task specific to the job at hand. The deep learning model utilised for difficult pattern
recognition and classification issues with a large number of datasets is a convolutional neural network. Convolution Neural
Network is a Feedforward Neural network, which is always better in the field of image recognition. Networks consists of three
layers i.e., convolution layers, pooling layers, and fully connected layers [7]. The architecture's ability to configure itself based
on task-related findings is what makes it innovative. There are several CNN models available, including AlexNet, VGG,
GoogLeNet, ResNet, and others. The depth, configurations, nonlinear function, and number of units of these models vary. In
the proposed method we have used different layers and activation.
C. Overview of system
The below diagram is the overview of the system. The system comprises of the component’s as shown in the figure. These
components work in unison to produce the desired result. The input is taken in the form of image. The image is given to the model
with the use of API and the trained model use the Plant Village dataset to give the output.The TensorFlow Serving framework hosts
the trained CNN model, which uses a plant dataset for training. The result of the system is the classification of the plant in the input
image as either healthy or diseased.
In this study, the convolutional neural network was used to identify diseases in tomato and potato leaves. Crop protection in
agriculture is a difficult endeavour that requires in-depth knowledge of the crop being farmed and any pests. The issue of manual
non-real-time plant leaf disease detection is addressed by the application that was created. The experiment shows how CNN is used
to identify plant diseases in artificial environments. The test shows that CNN achieved 98% accuracy while operating outside of
real time. To identify plant diseases and its treatments, CNN and leaf images are employed. The proposed approach combined
several phases, such as data preparation, data augmentation, and disease detection. Data pre-processing was primarily done to
increase detection precision and lessen the impact of high-intensity light on picture identification. By adding new instances for
underrepresented classes, data augmentation was utilised to combat overfitting and balance the dataset, enhancing the model's
overall performance.
The model used for this study proved helpful in identifying leaf disease. The disease detection model might take the role of on-
site identification by human specialists since it was effective and accurate. It might lessen labour while removing the subjective
nature of feature selection. This technique may be improved even more by using alternative algorithmic pairs to identify plant
diseases more precisely. In the future, we may work with additional economically significant plants and determine the disease's
severity while also taking other plant components into account.
V. ACKNOWLEDGEMENT
It is our pleasure to present the report on “Web-based Application for Plant Leaf Disease Detection”. First, we would like to
thank our project guide, Mr. Sachin D. Shelke, Department of Information Technology for his constant guidance and help. He has
constantly supported us and played a crucial role in completing this report. His motivation and encouragement from beginning to
end made this project a success. We also would like to thank our project reviewers, Prof. Anuradha V. Yenkikar, and Prof. Jagadish
K. Kamble for reviewing the project work and providing guidance. We would also genuinely express our gratitude towards Dr A.
S. Ghotkar, Head of the Department and Dr. S. T. Gandhe, Principal of PICT for their kind help and cooperation. And finally, we
would like to thank our classmates for providing moral support and valuable suggestions.
VI. REFERENCES
1. U. P. Singh, S. S. Chouhan, S. Jain and S. Jain, "Multilayer Convolution Neural Network for the
Classification of Mango Leaves Infected by Anthracnose Disease," in IEEE Access, vol. 7, pp. 43721-
43729, 2019, doi: 10.1109/ACCESS.2019.2907383.
2. P. Jiang, Y. Chen, B. Liu, D. He and C. Liang, "Real-Time Detection of Apple Leaf Diseases Using
Deep Learning Approach Based on Improved Convolutional Neural Networks," in IEEE Access, vol.
7, pp. 59069-59080, 2019, doi: 10.1109/ACCESS.2019.2914929.
3. M. Ahmad, M. Abdullah, H. Moon and D. Han, "Plant Disease Detection in Imbalanced Datasets
Using Efficient Convolutional Neural Networks with Stepwise Transfer Learning," in IEEE Access,
vol. 9, pp. 140565-140580, 2021, doi: 10.1109/ACCESS.2021.3119655.
4. J. Sun, Y. Yang, X. He and X. Wu, “Northern Maize Leaf Blight Detection Under Complex Field
Environment Based on Deep Learning,” in IEEE Access, vol. 8, pp. 33679-33688, 2020, doi:
10.1109/ACCESS.2020.2973658.
5. Reshmi A.M, Prameeja Prasidhan. "LEAF DISEASE DETECTION USING CNN", International
Journal of Creative Research Thoughts (IJCRT), ISSN:2320-2882, Vol.10, Issue 3, pp.f235-f241,
March 2022, URL : http://www.ijcrt.org/IJCRT2203598
6. Sahana Uday Naik, Sudhakara B, Rashmi K, “Plant Disease Detection Using Leaf Images”, in
International Research Journal of Engineering and Technology (IRJET), e-ISSN: 2395-0056, Volume:
08 Issue: 07, July 2021
7. Y. Zhang, C. Song and D. Zhang, "Deep Learning-Based Object Detection Improvement for Tomato
Disease," in IEEE Access, vol. 8, pp. 56607-56614, 2020, doi: 10.1109/ACCESS.2020.2982456.