0% found this document useful (0 votes)
44 views

Identification of Crop Pests Using Machine Learning Classifier System

Agriculture plays a key role in the development of human civilization. A lot of research has been done to protect crops. The important aspect of agriculture is pest management. When a farmer has best strategies to encounter pests and other diseases, their crop would be more productive. Pest management is difficult as it includes pest monitoring, pest identification requires much more than “see and spray” approach- use pesticides only when essential.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Identification of Crop Pests Using Machine Learning Classifier System

Agriculture plays a key role in the development of human civilization. A lot of research has been done to protect crops. The important aspect of agriculture is pest management. When a farmer has best strategies to encounter pests and other diseases, their crop would be more productive. Pest management is difficult as it includes pest monitoring, pest identification requires much more than “see and spray” approach- use pesticides only when essential.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

8 V May 2020

http://doi.org/10.22214/ijraset.2020.5162
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

Identification of Crop Pests using Machine


Learning Classifier System
K. Sree Vikas1, D. Ajay Kumar Reddy2, B. Pavan Ganesh3, Mr. Jani Basha Syed 4, Ms. K. Naga Mallika5
1, 2, 3
UG Student, 4, 5Assistant Professor, Kallam Haranadhareddy Institute of Technology, Guntur

Abstract: Agriculture plays a key role in the development of human civilization. A lot of research has been done to protect crops.
The important aspect of agriculture is pest management. When a farmer has best strategies to encounter pests and other
diseases, their crop would be more productive.
Pest management is difficult as it includes pest monitoring, pest identification requires much more than “see and spray”
approach- use pesticides only when essential. Pest detection using multiple classifier system (MCS) is a systematic approach to
find pests that combines a variety of image processing and machine learning concepts. This is the system which uses three
classifiers.
They are decision tree, Naïve-Bayesian, K-NN. Each classifier gives on output of which type the pest is. In the final, the voting
method or the weighted average method is used for fusing the member classifiers outputs and the final label of the pest is given.
MCS is used to increase the accuracy in identification of the pest.
Keywords: Decision tree, Naïve-Bayesian, K-NN

I. INTRODUCTION
Agriculture not just provides food for the human existence, it is also a science of cultivating soil, harvesting crops. As we know out
of the population of any country two-third of them are engaged in agriculture activities. There are many types of farming like
primitive subsistence farming, intensive subsistence farming, commercial farming. The farming can be done in different ways but
for any type of farming pest attacks are common it means different types of pests will attack the crop so there is a difficulty in
identifying the type of pest to a human on his intelligence.
In small fields only it is difficult in this way it is too difficult in large fields. With knowing or unknowingly huge amount of money
are being spent to safeguard the crops annually but still the damage of the crops are not reduced and they are effecting the overall
growth of the crop, simultaneously it reducing economy of any country as it is a main source. One method to protect the crop is
early pest detection so that the crop can be protected from pest attack. The pest attacks are not only affecting the crops but also to
the finished products which are getting ready for sale in lots.
To get off these problems there is a solution that is examining the crops in a particular time schedule. This work can be done by a
system which gives a accurate result by telling the type of pest and it can be helpful to have a exact remedy. As there is famous
quote “A goal without a plan is just a wish”, therefore when the farmer had this plan he can reduce the loss and in return gain profit
by giving a healthy yield and also lot of benefits mainly to the economy of the country.
The leaves image is given as an input and the type of the pest is given as class labels by using three different classifiers DECISION,
NAÏVE–BAYESIAN, KNN which are supervised learning techniques in Machine learning.

II. LITERATURE SURVEY


According to the paper “Automatic classification for field crop insects via multiple-task sparse representation and multi-kernal“ by
Jie Zhang and Li states that classification of insect species of field crops such as corn, soybeans, wheat, and canola is more difficult
than the generic object classification because of high appearance similarity among insect species.
To improve the classification accuracy, we develop an insect recognition system using advanced multiple-task sparse representation
and multiple-kernel learning (MKL) techniques.
As different features of insect images contribute differently to the classification of insect species, the multiple-task sparse
representation technique can combine multiple features of insect species to enhance the recognition performance. Instead of using
hand-crafted descriptors, our idea of sparse-coding histograms is adopted to represent insect images so that raw features (e.g., color,
shape, and texture) can be well quantified. Furthermore, the MKL method is proposed to fuse multiple features effectively.

©IJRASET: All Rights are Reserved 1020


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

III. PROPOSED SYSTEM AND IMPLEMENTATION


The proposed system is mainly useful to the farmers or for the people who are interested in doing house farming as it is the latest
habit for many of the people. The main purpose of this system is, it finds out the type of pest using multiple classifiers using the
OpenCV library on Anaconda platform. Instead of predicting the pest by sight of eye the pest can be identified through this system
as the level of identification of different type of unknow pests to a human can be increased by using different classifier system. The
proposed system has be elaborated to stop misclassification done by humans extremely by the farmers.When ever the person can’t
identify the type of pest which will destroy the crop or plant then taking the picture or image of the pest and giving the image as the
input to the system then the pic undergoes various process by considering 14 features which are extracted from image i.e those are
haralick features and gives the output with the pest name on the given image.
The working of the system is shown in the below block diagram.

INPUT PEST IMAGE

SMOOTHING IMAGE

RGB TO GRAY IMAGE

FEATURE EXTRACTION USING


GLCM

CLASSIFICATION (MULTIPLE
CLASSIFIER)

DECISION NAÏVE
KNN
TREE
CLASSIFIER BAYESIAN

MODE (CLASS1, CLASS2, CLASS3)

PEST IMAGE WITH LABEL

©IJRASET: All Rights are Reserved 1021


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

IV. EXPERIMENTAL SETUP AND RESULTS


We can train the data set by clicking “ TRAIN ” button in Training, otherwise insert the image by selecting “choose image”
option in Test data .

Figure 1: Main page dialogue box

If you choose train data we can get the features of the images in the dataset and the system get trained and ready to check the
image with the values which are given during training of dataset.

Figure 2: Main page selecting TRAIN option

©IJRASET: All Rights are Reserved 1022


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

Here are some of the features of the dataset.

Figure 3: Haralick features of dataset

During the process the image will get converted from RGB to Gray image. we can see below how the image will get
converted.

Figure 4: RGB Image

Figure 5:Gray Image

©IJRASET: All Rights are Reserved 1023


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

Here is the sample dataset.

Figure 6: Sample dataset

Once the data set get trained we can choose a pest image to know type of the pest and it is processed in the same way as the dataset
got trained.

Figure 7: Selecting a image for testing

©IJRASET: All Rights are Reserved 1024


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

By choosing the image we will get the pest name on the input image and display it as the output. Here are some output images

Figure 8: output 1

Figure 9: output 2

Figure 10: output 3

V. CONCLUSION
The proposed system is an innovative method because we have used multiple classifiers which gives more accuracy in
classification of the type of pest .The accuracy we got is about 90% .This helps the farmers in early detection of pests and low
usage of pesticides could be used which gives raise more yield.

VI. FUTURE SCOPE


In present work the focus is on extraction of texture features only, if the feature considered is done more diversly i.e along with
texture features some features such color, size, features could be considered to increase the accuracy to some level. This System
could be converted into a mobile Application as everyone in the world are using mobiles it would be more useful.

©IJRASET: All Rights are Reserved 1025


International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.429
Volume 8 Issue V May 2020- Available at www.ijraset.com

REFERENCES
[1] Jinhua Liu, Deqiang Han, Yi Yang, “ Pest Identification Based on Multiple Classifier System ”,July 25-27, 2018, Wuhan, China.
[2] Muhammad Danish Gondal, Yasir Niaz Khan, “ Early Pest Detection from Crop using Image Processing and Computational Intelligence ”,FAST-NU Research
Journal (FRJ) Volume 1,Issue 1,January 2015.
[3] Seyyid Ahmed Medjahed, “A Comparative Study of Feature Extraction Methods in Images Classification”, I.J.Image, Graphics and Signal Processing, 2015,
3, 16-23.
[4] Xin Yang, Tingwei Guo, “Machine Learning in plant Disease Research”, March 31 2017.
1) https://medium.com/@sifium/machine-learning-types-of-classification
2) https://scikit-learn.org/stable/modules/tree.html#classification
3) https://scikit-learn.org/stable/modules/naive_bayes.html
4) http://matlab.izmiran.ru/help/toolbox/images/enhanc15.html
5) http://murphylab.web.cmu.edu/publications/boland/boland_node26.html

©IJRASET: All Rights are Reserved 1026

You might also like