Report
Report
Processing
A project report stage I submitted in partial fulfillment of the
requirements for the degree of Bachelor of Computer Science
Submitted by
Nagesh Avhad
Submitted by
Nagesh Avhad
Internal External
ABSTRACT
Agriculture is a field that significantly impacts the lives and economic status
of human beings. Improper management can result in a decline in the qual-
ity of agricultural products. Farmers often lack knowledge about diseases,
thereby affecting their crops and leading to reduced production. Although
Kisan call centers are available, they do not operate 24/7, and communica-
tion failures can occur.
When farmers are unable to adequately explain a disease over the phone,
there is a need to analyze images of the affected areas. While images and
videos of crops offer a better perspective, many farmers are unaware that
agro-scientists can provide effective solutions to ensure the health of crops.
It’s crucial to note that if crop productivity is compromised, it poses a signifi-
cant risk to providing good and healthy nutrition. Fortunately, advancements
in technology have led to the development of smart devices capable of rec-
ognizing and detecting plant diseases. Prompt recognition of illnesses can
facilitate faster treatment, minimizing the negative impacts on the harvest.
Contents
1 Introduction 1
1.1 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Literature Survey 3
3 Implementation 6
3.1 Existing System . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.1 Disadvantages on existing system . . . . . . . . . . . . 6
3.1.2 Problem Statement . . . . . . . . . . . . . . . . . . . . 7
3.1.3 Focus on Plant Disease Detection with Image Processing 8
3.1.4 Proposed System . . . . . . . . . . . . . . . . . . . . . 8
4 Methodology 11
4.1 Training Phases . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 CNN Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 Analysis and Design Consideration . . . . . . . . . . . . . . . 15
4.3.1 Use Case Diagram . . . . . . . . . . . . . . . . . . . . 15
4.3.2 Sequence Diagram . . . . . . . . . . . . . . . . . . . . 16
4.3.3 Activity Diagram . . . . . . . . . . . . . . . . . . . . . 17
5 Development Tools 18
5.1 Hardware and Software requirements . . . . . . . . . . . . . . 18
6 Further Work 19
References 21
ii
List of Figures
iii
Chapter 1
Introduction
Agriculture holds a crucial role in our country, with approximately 70% of the
population relying on farming for their livelihood. The distressing reality of
farmers resorting to suicide due to production losses is a grave concern. This
issue can be mitigated to some extent by incorporating new technologies that
empower farmers to enhance their harvesting practices. Plants have emerged
as vital energy sources and play a pivotal role in addressing environmental
challenges like global warming. Numerous diseases pose threats to plants,
capable of causing severe economic, social, and ecological consequences. De-
tecting plant diseases proves challenging as some remain invisible to the naked
eye or manifest only when it’s too late to take action. Traditional methods
for identification and detection are laborious and time-consuming.
A prevailing strategy involves leveraging remote sensing techniques that uti-
lize multi and hyperspectral image captures. Approaches employing digital
image processing tools are commonly adopted to attain their objectives. No-
tably, image processing technology in agricultural research has undergone
significant development. The advent of deep learning techniques, especially
Convolutional Neural Networks (CNNs), has propelled substantial advance-
ments in image processing. Since 2016, numerous applications for the au-
tomatic identification of crop diseases have been developed. These applica-
tions serve as a foundation for the creation of expert assistance or automated
screening tools, fostering more sustainable agricultural practices and bolster-
ing food production security.
1.1 Objective
To address the detection of plant leaf diseases and pests among inexperienced
farmers, we propose developing an Mobile application. This application is
1
specifically designed to cater to the needs of young farmers, offering a user-
friendly interface for disease detection in plants. Through the Mobile app,
farmers can easily access the application on their mobile devices while work-
ing in their fields. The app will not only identify plant diseases but also
provide suitable remedies based on the detected issues. This shift to an
Mobile application ensures accessibility and convenience, empowering a new
generation of farmers with a practical tool for effective crop management.
2
Chapter 2
Literature Survey
3
ing. We utilized a Convolution Neural Network with vary-
ing layers—five, four, and three—to train our model. The
Android application serves as the user interface with JWS
facilitating interaction between these systems. Our results
indicate the highest accuracy achieved by the 5-layer model,
reaching 95.05% for 15 epochs, and the highest validation
accuracy for the 5-layer model, attaining 89.67% for 20
epochs using TensorFlow.(from reference [2])
3. Plant Disease Detection using CNN.
Plant diseases pose a persistent challenge for smallholder
farmers, posing threats to both income and food security.
The increasing prevalence of smartphones and advance-
ments in computer vision models present an opportunity
for employing image classification techniques in agricul-
ture. Convolutional Neural Networks (CNNs), recognized
as state-of-the-art in image recognition, offer the potential
for swift and accurate disease diagnosis. This literature re-
view explores recent developments in leveraging CNNs for
plant disease detection.(from reference [3])
4. Improvement of plant disease classification accuracy with gen-
erative model-synthesized training datasets.
Digitalization in agriculture requires critical research into
applications of artificial intelligence across various special-
ized domains. This study aims to investigate the applica-
tion of image synthesis technology to address the data vol-
ume constraints in achieving accurate digital plant disease
phenotyping. We conducted an experiment using a deep
convolutional generative adversarial network (DC-GAN) to
synthesize photorealistic data for both healthy and bac-
terial spot disease-infected tomato leaves. The training
dataset comprised 1,272 instances per class. Furthermore,
we employed a 3-block Visual Geometry Group (VGG) con-
volutional neural network (CNN) model with dropout reg-
ularization and a single epoch to compare classification ac-
4
curacies between the original dataset and various synthetic
datasets. Our results demonstrated that the third DC-
GAN synthesized training dataset, consisting of 3,816 syn-
thetic examples for both healthy and bacterial spot-infected
tomato leaf classes, outperformed the original training dataset,
which contained 1,272 real examples for both tomato leaf
classes. Specifically, the accuracy with the former dataset
on a 3-block VGG CNN model with dropout regularization
and one epoch was 77.088%, compared to 76.447% accu-
racy with the latter dataset on the same classifier.(from
reference [4])
5
Chapter 3
Implementation
6
2. Delayed Responses:
5. Lack of Standardization:
6. Resource Intensive:
7
to crops. Furthermore, the dependence on agricultural expertise creates bot-
tlenecks, particularly in regions with limited access to such knowledge.
The subjective nature of manual observation complicates the establishment of
standardized diagnostic criteria, hindering effective communication and col-
laboration among farmers, researchers, and agricultural professionals. More-
over, the need for expert intervention implies higher costs and resource re-
quirements for farmers seeking accurate disease diagnoses. In light of these
disadvantages, there is a pressing need for a more advanced and technologically-
driven solution for plant disease detection
8
inclusive plant disease detection system, fostering better communication and
collaboration among agricultural stakeholders.
9
5. Reduced Dependency on Expertise:
6. Cost-Efficiency:
The proposed system minimizes the need for on-site expert consul-
tations, reducing associated costs for farmers. Automated image
analysis via the mobile app offers a cost-effective alternative to
traditional, resource-intensive diagnostic processes.
7. Empowerment of Farmers:
9. User-Friendly Interface:
The mobile app’s intuitive design ensures that farmers can easily
upload images and receive prompt feedback. The user-friendly
interface contributes to the overall usability and acceptance of the
system.
10
Chapter 4
Methodology
11
Figure 4.1: Training Phases
12
4.2 CNN Architecture
1. Input Layer: The input layer contains the input images and
their pixel values.
2. Convolution Layer: The main building block of a CNN is the
Convolutional layer. It involves the straightforward appli-
cation of filters of various sizes to the input image, resulting
in activation. The repeated use of the input image with the
same filter produces a map in the activation called a fea-
ture map. This map indicates the strength of the detected
features in the input image. Each feature map is convo-
luted with the help of numerous input feature graphs in
Convolutional Neural Networks.
3. Pooling Layer: A pooling layer often follows a convolutional
layer and can be utilized to depreciate the dimensions of
feature maps and parameters of the network. Pooling lay-
ers are also invariant in interpretation, similar to convolu-
tional layers, because their calculations take into account
neighboring pixels. The most widely used approaches are
average pooling and max pooling. In our research, we used
a max-pooling layer.
4. Non-Linear Layer: A non-linear transformation is applied
to the input by the CNN, the objective of which is to clas-
sify the features within each hidden layer. In the CNN
structure, we use Rectified Linear Units (ReLU). Rectified
Linear Units are commonly used as a nonlinear transforma-
tion. This type of layer executes a simple operation with
a threshold, where any input value smaller than zero is set
to zero.
5. Fully Connected Layer: The data arrives at the last layer
of the CNN, which is the fully connected node, after much
iteration of the prior layers. In the two neighboring layers,
the neurons are connected directly to the neurons within
the fully connected network, as shown in Fig.
6. Normalize Layer: In our proposed system, we use a batch
normalization layer. The batch normalization layer nor-
malizes each channel through a mini-batch. This can help
decrease sensitivity to data variations.
13
7. Softmax Layer: The network’s performance can be difficult
to interpret. It is customary to conclude the CNN with a
Softmax function in classification issues. After extracting
values for 15 classes of plant diseases in the fully connected
step, a Softmax will be applied to them, so that the class
will be selected in each process based on the features that
were extracted through the previous layers that the images
of plant diseases went through. In this layer, the correct
class of disease is determined by applying the Softmax func-
tion.
14
4.3 Analysis and Design Consideration
4.3.1 Use Case Diagram
15
4.3.2 Sequence Diagram
16
4.3.3 Activity Diagram
17
Chapter 5
Development Tools
– Windows/Linux/Mac OS
– Java
– Python
– NodeJS
– Ionic
– IDE
* Jupyter Notebook
* VS Code
Hardware Requirement:
– Smart Phone
– Laptop/Desktop with
* i5 processor
* 4GB RAM
18
Chapter 6
Further Work
19
Chapter 7
Plant Disease and Detections using Image Processing is still in the develop-
ment phase. Some enhanced functions are still needed to be added continu-
ously. In future work in this area, it plans to explore the following extensions.
Hence drawback with the existing system which is mostly manual work
will be overcome by the proposed system.
20
Bibliography
[4] Enow Takang Achuo Albert, Ngalle Hermine Bille and Eddy L Ngonkeu.
Improvement of plant disease classification accuracy with generative
model-synthesized training datasets, 2023
21
Acknowledgement
This work was influenced by countless individuals whom we were fortunate
enough to meet during our phase-I of the project duration, while space does
not permit us to acknowledge them all, we would be remiss if we did not
acknowledge the following individuals whose guidance, support and wisdom
so greatly influenced this work.
Date: