Pest Detection in Plants Using Convolutional Neural Network
Pest Detection in Plants Using Convolutional Neural Network
https://doi.org/10.22214/ijraset.2021.38890
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 9 Issue XI Nov 2021- Available at www.ijraset.com
Abstract: Agriculture or farming is an imperative occupation since the historical backdrop of humanity is kept up. Artificial
Intelligence is leading to a revolution in the agricultural practices. This revolution has safeguarded the crops from being
affected by distinct factors like climate changes, porosity of the soil, availability of water, etc. The other factors that affect
agriculture includes the increase in population, changes in the economy, issues related to food security, etc. Artificial
Intelligence finds a lot of applications in the agricultural sector also which includes crop monitoring, soil management, pest
detection, weed management and a lot more. Significant problems for sustainable farming include detection of illness and
healthy monitoring of plants. Therefore, plant disease must automatically be detected with higher precision by means of image
processing technology at an early stage. It consists of image capturing, preprocessing images, image segmentation, extraction of
features and disease classification. The digital image processing method is one of those strong techniques used far earlier than
human eyes could see to identify the tough symptoms. Considering different climatic situations in various regions of the world
that impact local weather conditions. These climate changes affect crop yield directly. There is a great demand for such a
platform in the world of today which would enable the farmer market his farm products. We have proposed in this study a system
where farmers can sell their products directly to customers without the intervention of distributors and traders. The predictive
analytics system is necessary for the farmer to get the maximum yield which benefit the farmer. This may be done if the
environment, market conditions and knowledge of the timely planning of farms are known properly.
Keywords: Pest Detection, Artificial Intelligence, Agriculture, Image processing, Convolutional Neural Networks.
I. INTRODUCTION
India is an agricultural country, which depends on agriculture more than 50 percent of the people. The agri-business commitment to
India's national revenue is all the more important, as farming in India is regarded to be a backbone in the Indian economy. Most
Indians are dependent on agriculture explicitly or implicitly. Some are directly connected with agriculture and some others deal with
these commodities [1]. India is able to produce food grains, which in the Indian economy may make a huge impact. In order to reach
a desired Government mark, it is necessary to help small-scale farmers alongside the large farmers in the case of land, banking and
other machinery. For over 58 percent of the population of India, agriculture is the major livelihood source. Gross Value in FY20,
Rs. 19.48 lakh crore was expected to have been added to agriculture, forestry and fisheries (US$ 276.37 billion). At current prices,
Indian share of farming and ally industries in the Indian Gross Value Added (GVA) amounted to 17.8% in FY20. In 2021, after the
pandemic-led downturn, consumer expenditure in India is expected to return to its rise by up to 6.6 percent [1,2]. The Indian food
sector is set to develop rapidly and annually, because of its great value-added potential, especially in the food processing industry, it
is increasingly contributing to global food commerce. The sixth biggest in the world is Indian food and food markets, with retail
sales accounting for 70%. 32 percent of the entire food market in India, one of the major sectors in India, is the Indian food
manufacturing sector, rated fifth in terms of quality, accumulation, trade and anticipated growth. For April 2020 – January 2021,
main exports of agricultural goods amounted to $32.12 billion. AI might provide an advantage for existing practices and procedures
within the rural environment in order to achieve profitability and support. For example, dynamic capabilities such as AI may assist
to identify changes in agricultural products' market value and explicitly offer planting and harvesting instructions to keep away from
major crop losses. In general efficiency and sustainability, early disease detection and changed water system designs might enhance.
Artificial intelligence-enabled weather forecasts constantly provide accurate, remarkable bits of knowledge in day-to-day farming.
Such accurate data may help to reduce crop losses via preventive actions. With AI applications in farming groups, they can enhance
the present strong IT capabilities after some time via learning. Because plant diseases may harm crops, they represent a significant
danger to crop monitoring. Therefore, it is very important to diagnose and manage early plant illnesses. Often, this process requires
the right diagnosis by a professional human competence. Specifically at distant areas and small farms in developing regions this
knowledge is not always available. The creation of efficient image-based prediction techniques, including the use of smartphones, to
capture high quality pictures, may help significantly to the initial diagnosis and decrease in waste.
In the area of agricultural research, the rapid growth of deep learning technology has effectively implemented Convolutional Neural
Networks (CNNs) that can overcome the disadvantages of machine learning. In the automated detection of pest conditions, the CNN
model works well [3]. The CNN model comprises generally of two major operators, the convolutional stratum and the grouping
stratum. The convolutional layer can extract more complicated and relevant picture characteristics automatically. The pooling layer
lowers the amount of data parameters because of a high calculation of the convolution network. The subject of categorization of pest
images on the basis of CNN models is mostly investigated in current research. However, it is more necessary to identify and locate
every pest in the natural environment than to classify pests.
Figure 1 shows the farm share of Agricultural GDP in India. The agricultural portion in GDP rose from 17.8% in 2019-20 in 2020-
21 to 19.9%. However, GVA growth for farming continued to grow positive by 3.4% for the entire economy during 2020-21, while
it contracts by 7.2% for the whole economy."
Previous yield forecasts were made by looking at the knowledge of the farmer on a given field and crop. However, given the quick
changing conditions, farmers are compelled to grow more and more crops every day. As the existing state of affairs, many of them
are not sufficiently informed of the new crops and of the benefits they obtain from their production. The productivity of agriculture
may also be enhanced under a range of global circumstances via study and provision of crops performance [3,4]. The suggested
system therefore takes the user's position as an input. The soil nutrients such as nitrogen, phosphorous and potassium are derived
from the site, the predicted weather. Machine Learning and Multiple linear regression are used in the suggested system to detect the
data pattern and process it under the input circumstances. In turn, this will offer the finest harvests possible under the conditions of
the environment. The projection will be more accurate if last year's production is also taken into account. This method therefore
proposes profitable crops for the farmer to choose directly.
There is a great demand for such a platform in the world of today which would enable the farmer market his farm products [4]. We
introduced farmers and customers to this system for better and direct contact. The farmer is now transferring his goods to a certain
agent, and he is asking the farmer to attend the market after a certain period to receive the cash from the sold commodity. At the
expense of the market, the agent sells the goods to a different agency or dealer. Each agent attempts to remove his commission from
it. There is no way for farmers to know how much their goods was sold and how much. There's no transparency. There is no facility
for farmers to discover the product rates on various markets where they may sell their stuff for big profit. Farmers are often unaware
of the government's initiatives and compensations. Despite all the possibilities offered by doors, the farmers cannot benefit from
them. The major objective of this online application is to link consumers and farmers directly to farmers and consumers. Since the
majority of farmers do not know about the latest equipment and technology owing to a job loss and time wasted [5]. If a farmer
finds out about what pesticides or fertilisers he has used in his farm, his or her data will be kept so that they may readily find out
what pesticides or fertiliser they have used to farm.
Pre-processing, color-based transformation, picture improvement, noise reduction, resizing, and segmentation techniques are all
covered. Various texture, color, and shape-based feature extraction techniques are used. It contains an overview of several classifier
techniques as well as their applications. According to the findings, the pre-processing approach increases segmentation accuracy.
Kaya et al. (2019) discovered that manually categorizing data has several key drawbacks, including the fact that it is costly, time-
consuming, and requires expertise. During the classification phase, a Deep Neural Network is offered as a solution. Plant
categorization model performance has increased. It contains a comparison of several methods and their best results, such as (DF-
VGG16/LDA = 99.00, DF-Alex net/LDA = 96.20, CNN-RNN = 98.80, CNN = 99.60, (CNN, SVM = 97.47)). Input, 3*3 conv,
ReLU, pool, 3*3 conv, ReLU, pool ReLU, FC-class size, SoftMax are all part of the proposed CNN design. The classification
accuracy for each model in the training dataset and for the pre-trained model is shown in the image.
It takes the image as input and assigns different weights to the various items in the image, making each object distinct from the
others. The pre-processing burden in the convolution neural network is minimal when compared to other classification techniques
[12]. Neuron connection in the human brain is analogous to the neurons linked to CNN. It could learn its filters. The dependencies
existing in the spatial and temporal components are captured with the help of the applicable filter. During the process, it plays a vital
role in reducing the picture to simpler forms, with no image loss. Object detection (R-CNN, Fast R-CNN, and Faster R-CNN) and
semantic segmentation are two major applications of convolution neural networks (Deep parsing network, fully convolution
network). CNN architectures are made up of a series of layers that change one activation volume to another with the aid of
differentiable functions. CNN is primarily built with layers like as convolution, pooling, and fully linked. CNN's essential
component is the convolution layer. It carries the network's computing workload. Dot products are mostly performed between the
kernel and the limited region. The depth is large in the kernel, while the spatial is less. In kernel, just the depth will be increased,
while the height and width will be reduced. Image representation is achieved by sliding the kernel over the image's height and
breadth (Hang et al., 2019). Secondly, support vector machine techniques are utilised with both RGB pictures and spectral reflection
for the detection and quantification of tomato leaf miners. Thirdly, tomato powdery molten fungus Oidium neolycopersici is
identified by utilising SVM algorithms and visual thermal and stereo light. Fourthly, powdery mildew is found in tomatoes with
self-organizing maps and RGB pictures. In this work we just utilise 138 images, a modest number of images to get the data set
variability [13]. Most of the disease detection and classification classificatory were developed using few data sets relying on image
extraction to categorise the leaves. In order to create reliable image classification, a big, labelled and validated collection of pictures
of sick and healthy plants is needed. No dataset with these characteristics was accessible until quite recently. The PlantVillage
initiative has already begun to gather and classify tens of thousands of illustrations of normal and sick plants to address this
problem. The PlantVillage dataset is used for building deep neural networks for the diagnosis of various crop diseases [14]. It is
used with the most recent pest identification and machine learning research projects.
Figure 2 depicts the PlantVillage dataset. It consists of 54306 healthy and unhealthy leaf images divided into 38 categories by
species and disease.
Farmers may use several apps to forecast crop yields depending on meteorological variables. In order to anticipate crops, machine
learning techniques have been utilised. For the five climate factors the Random Forest Algorithm is used to train the model,
however additional inputs like as soil quality, pest, chemical materials utilised are not taken into account. The model was taught to
build random forest by 200 decision-making trees.
This approach is based mostly on weather forecasts, plantations of crops, crop forecasts, and crop costs. For this model, the data set
for economic farming is analysed [14,15]. It is then pre-processed and divided into training and test data. For excellent precision,
Support Vector Machine and random forest methods are employed. The final result is to forecast crop yields and to designate crop
yellow yields as the best bio condition. In the developing country it is hard to achieve smart farming since many farmers do not
know the technologies and are uneducated.
There were four types of agricultural yield predicting methods or combinations: (a) field investigation, (b) plant growing modelling,
(c) remote sensing, and (d) statistical models. The merits and disadvantages of these techniques. Field surveys attempt to detect the
reality of the ground using farmers' reports and objective surveys. Due to sampling mistakes and non-sampling, these studies suffer
from decrease in replies, resource constraints and dependability [16]. Process-oriented crop models simultaneously increase crops
and develop crop by inputs depending on crop characteristics and environmental circumstances. They employ agro-growth and
development concepts, which apply throughout time and space. However, all yield reduction variables are not taken into
consideration and substantial data and validation needs are present. Remote sensing attempts to get current crop information via
satellite pictures. Remote sensing information is available internationally and does not suffer from human mistakes under open data
regulations. Satellite data readings only offer indirect measures of the agricultural yield, specifically measured irradiance, so as to
translate satellite data into yield predictions on physicochemical or analytical frameworks. Statistics models employ weather
indicators and predictors for the results of the three preceding techniques [16,17]. These models assess the yield rate trend for the
development and management of genetics and fit linear models between predictors and residues. They offer high precision, but
cannot be expanded into various space and time settings. Reusability in agricultural system modelling was not a design objective;
the underlying science has been given more attention. Examples of machine applications that learn to forecast agricultural
production are similar in design. Methods have not been concentrated on reusability or transferability. Our machine learning
platform has been developed to focus on flexibility and reusability.
A CNN model is trained with a class label dataset and then finally tweaking it by utilising just a few instances from the target
domain dataset as shown in Figure 3.
A. Dataset
For Pest Detection we have used The Plant Village dataset. It is split into 18 groups, comprising 54306 pictures of various plant
leaves. This collection includes 13 plant kinds and 26 plant disease categories. The data collection includes both healthy and ill
pictures of crops. Fourteen crop species, including: apple, blueberry, squash, strawberry, orange, peach, pepper, potato, raspberry,
soy and tomato, are shown. The two areas for each class are the plant name and illness name. As shown in Figure 4 all the pictures
are scaled and divided for further categorization and pre-processing.
In the android application, the user can check pest in the plants via:
A. Camera
B. Gallery
C. Live Detection
The performance metrics that are considered in our proposed work are as follows.
1) Performance Accuracy: The total number of correctly classified images to the total number of images.
2) Loss Function: How well the architecture models the data.
3) Precision: The ratio of the number of correctly predicted observations (true positives) to the total number of positive
predictions (true positives + false positives).
4) Recall: the ratio of correctly predicted observations (true positives) to all observations in that class (true positives + false
negatives).
5) F1 Score: the Harmonic Mean between precision and recall.
6) Time requirement (in sec) per epoch for training each DL model.
The output is as follows:
Figure 8 represents the detection of pest in Tomato plant and the name of the pest is Septoria leaf spot.
In addition, a comparison is made with the performance of earlier research, i.e., neural network back propagation (BP) and single-
shot detector (SSD) MobileNet, for the outcome of the pesticide categorization. These findings corroborate the results in order to
detect automated agricultural pests from our suggested Faster CNN. The SSD MobileNet was successful in determining all the
pictures of pests that have been examined.
But the Faster CNN suggested achieves the greatest mean precision value (98.0%) over BP's and SSD's 50.0%, and SSD's 86.0%
respectively. respectively, the Faster CNN offered. Furthermore, our suggested Faster CNN model's prediction accuracy has been
validated for multiple sizes of pest pictures evaluated, by altering the percentage of data divided into 70–30% and 90–10% for
training and tests. Normally, by expanding from 70% to 90% of the complete data set the performance of agricultural pest classifiers
is enhanced. Both BP neural network and SSD MobileNet classification accuracy rose to 43.0% and 85.6%, respectively, for 30%
testing data, but our proposal Faster CNN's accuracy rate remained high at 94.0% at the same test data amount.
VII. CONCLUSION
The aim of this paper is to identify illnesses in crops by means of the deep learning method, which is the Convolutional Neural
Network. The model is essentially evaluated for certain species of plants with certain kinds of plant diseases. The template was built
using tensor flow, Keras and Android. The total system findings indicate that the MobileNet model functions better than other
models and provides improved accuracy in illness detection. The number of plant types and their diseases will expand as an addition
to the project. The model will also be enhanced by increasing the training and testing parameters. Without involving any middlemen
between farmers and consumers and earning profit, farmers/customers may sell/purchase farm products at an ideal cost. Farmers
will find it more helpful to know information about existing farms and feel it is a safer and more valuable website. In order to
propose optimal harvests with greater precision and productivity the framework uses supervised machine training algorithms. The
model is trained to validate the performance of the current model created using ANN with decision-tab classifier. The accuracy
values of the measured values have shown a better 95 percent accuracy suggestion model built using ANN compared with 92
percent accuracy achieved from decision book classification systems. In addition, with bigger datasets, ANN performs well.
REFERENCES
[1] Liu, Jun, and Xuewei Wang. "Plant diseases and pests detection based on deep learning: a review." Plant Methods 17.1 (2021): 1-18.
[2] SANJU, S. KRITHIKHA, and DR BL VELAMMAL. "An Automated Detection and Classification of Plant Diseases from the Leaves Using Image processing
and Machine Learning Techniques: A State-of-the-Art Review." Annals of the Romanian Society for Cell Biology (2021): 15933-15950.
[3] Selvaraj, Michael Gomez, et al. "AI-powered banana diseases and pest detection." Plant Methods 15.1 (2019): 1-11.
[4] Pattnaik, Gayatri, Vimal K. Shrivastava, and K. Parvathi. "Transfer learning-based framework for classification of pest in tomato plants." Applied Artificial
Intelligence 34.13 (2020): 981-993.
[5] Reardon, Thomas, et al. "“Pivoting” by food industry firms to cope with COVID‐19 in developing regions: E‐commerce and “copivoting” delivery
intermediaries." Agricultural Economics 52.3 (2021): 459-475.
[6] Kartikeyan, Punitha, and Gyanesh Shrivastava. "Review on emerging trends in detection of plant diseases using image processing with machine
learning." International Journal of Computer Applications 975 (2021): 8887.
[7] Patel, Deven, and Nirav Bhatt. "Improved accuracy of pest detection using augmentation approach with Faster R-CNN." IOP Conference Series: Materials
Science and Engineering. Vol. 1042. No. 1. IOP Publishing, 2021.
[8] Afifi, Ahmed, Abdulaziz Alhumam, and Amira Abdelwahab. "Convolutional Neural Network for Automatic Identification of Plant Diseases with Limited
Data." Plants 10.1 (2021): 28.
[9] Mique Jr, Eusebio L., and Thelma D. Palaoag. "Rice pest and disease detection using convolutional neural network." Proceedings of the 2018 International
Conference on Information Science and System. 2018.
[10] Jiao, Lin, et al. "AF-RCNN: An anchor-free convolutional neural network for multi-categories agricultural pest detection." Computers and Electronics in
Agriculture 174 (2020): 105522.
[11] Karar, Mohamed Esmail, et al. "A new mobile application of agricultural pests recognition using deep learning in cloud computing system." Alexandria
Engineering Journal 60.5 (2021): 4423-4432.
[12] Gavhale, Kiran R., and Ujwalla Gawande. "An overview of the research on plant leaves disease detection using image processing techniques." IOSR Journal of
Computer Engineering (IOSR-JCE) 16.1 (2014): 10-16.
[13] Chen, Jian-Wen, et al. "A smartphone-based application for scale pest detection using multiple-object detection methods." Electronics 10.4 (2021): 372.
[14] Aquil, Mohammad Amimul Ihsan, and Wan Hussain Wan Ishak. "Evaluation of scratch and pre-trained convolutional neural networks for the classification of
Tomato plant diseases." Int J Artif Intell 10.2 (2021): 467-475.
[15] Thakur, Sahil, et al. "Plant Disease Detection and Solution Using Image Classification." (2021).
[16] Singh, Piyush, Abhishek Verma, and John Sahaya Rani Alex. "Disease and pest infection detection in coconut tree through deep learning
techniques." Computers and Electronics in Agriculture 182 (2021): 105986.
[17] Ozguven, Mehmet Metin, and Kemal Adem. "Automatic detection and classification of leaf spot disease in sugar beet using deep learning algorithms." Physica
A: Statistical Mechanics and its Applications 535 (2019): 122537.
[18] Fuentes, Alvaro, et al. "A robust deep-learning-based detector for real-time tomato plant diseases and pest recognition." Sensors 17.9 (2017): 2022.
[19] Lu, Jinzhu, Lijuan Tan, and Huanyu Jiang. "Review on Convolutional Neural Network (CNN) Applied to Plant Leaf Disease Classification." Agriculture 11.8
(2021): 707.
[20] Fuentes, Alvaro F., et al. "High-performance deep neural network-based tomato plant diseases and pest diagnosis system with refinement filter bank." Frontiers
in plant science 9 (2018): 1162.
[21] Shruthi, U., V. Nagaveni, and B. K. Raghavendra. "A review on machine learning classification techniques for plant disease detection." 2019 5th International
Conference on Advanced Computing & Communication Systems (ICACCS). IEEE, 2019.
[22] Ngugi, Lawrence C., Moataz Abelwahab, and Mohammed Abo-Zahhad. "Recent advances in image processing techniques for automated leaf pest and disease
recognition–A review." Information processing in agriculture 8.1 (2021): 27-51.
[23] Suma, V., et al. "CNN based leaf disease identification and remedy recommendation system." 2019 3rd International conference on Electronics,
Communication and Aerospace Technology (ICECA). IEEE, 2019.