SlideShare a Scribd company logo
1 of 7
Download to read offline
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1993
INSECT SHAPE DETECTION AND CLASSIFICATION USING DIGITAL
IMAGE PROCESSING
Shagufta sayeed1, Smt. T D Shashikala2
1 P G Scholar, Department of Electronics and Communication, University B.D.T College of Engineering,
Davanagere-577004, Karnataka, India
2Associate Professor, Department of Electronics and Communication, University B.D.T College of Engineering,
Davanagere-577004, Karnataka, India
----------------------------------------------------------------------------***---------------------------------------------------------------------
Abstract: Due to contagious pests and illnesses that
have been hurting agricultural products recently,
agriculture businesses all over the world have
suffered productivity and financial losses. The
agriculture industry has a lot of potential to meet the
growing demand for food while also producing meals
that are wholesome and nutritious. Farmers find it
challenging to identify crop insects since pest attacks
severely damage and reduce the quality of the
produce. The early detection of agricultural insects
by an autonomous insect identification system based
on computer vision and data processing enables
farmers to increase crop productivity. In order to
clarify the morphologies of insects, computer image
processing techniques are frequently employed to
pre-process, divide, and extract features from crop
pest images and then make use of the machine
learning algorithm (KNN) in order to classify
different crop pest. The current work has been
implemented using MATLAB 2019b and the Image
Analysis Toolbox.
Keywords: crop pest, computer vision, machine
learning, KNN
1 INTRODUCTION
Infectious diseases and pests have been affecting
agricultural crops in recent years, resulting in
production losses and financial losses for the agricultural
business around the world. The agriculture sector has
enormous potential to meet rising food demands while
also providing healthy and nutritious meals. Crop insect
identification is a difficult undertaking for farmers
because pest attacks ruin a large amount of the crop and
decrease its quality an autonomous technique for
identifying insects based on computer vision and signal
processing yields quicker recognition of agricultural crop
pests at early stage, enabling farmers to increase crop
productivity. Throughout this study, digital image
processing techniques are often used to perform pre-
processing, segmentation, and extraction of features on
crop pest photographs in order to interpret the shapes of
insects. while using artificial neural networks and some
other machine learning approaches (ANN), This insect
shape detection approach functions effectively and
yields correct results for crop pests with round (perfect
circle), obovate(ovule), triangular, and rectangular
shapes. After detection of various insect shapes the next
is classification of the insects which is done with the help
of machine learning algorithm specially K-nearest
neighbour algorithm (KNN).
Crop pests
The greatest variety of animals on earth can be found in
insects. Crop pest (Insects) can be discovered in any
surroundings, including wetlands, rainforests, and
steppes, and sometimes also in incredibly brutal
conditions like pools of petroleum, except from the open
sea. Insects are considered as the most adaptive form of
life since they dominate all other animal species by a
wide margin. The majority of insects play significant role
in maintaining both the human health and the environs.
some insect represents a major threat not only to the
plants but also a major threat to human health. Crop
pests, such as seed eaters, herbivores, and diseases
(including insects, fungi, germs, and viruses), in the
worst-case circumstances, may result in decreased
productivity or complete crop loss. Agricultural pests
have the power to destroy entire crops intended to feed
hundreds of people in addition to destroying gardens.
Farmers fight a variety of pests every year to ensure the
successful growth of their fruits, vegetables, and grains.
In the agricultural sector, locusts are well-known. Large
swarms of locusts can reach 460 square miles in size and
destroy the plants all around them. The damage is
terrible because they may eat their bodyweight in plants
every day. In the United States, maize is a very important
crop and corn rootworms have just recently become an
issue for farmers due to their resistance to pesticides.
There are 50,000โ€“80,000 different insect species that fall
under the umbrella term "true bug," although aphids and
whiteflies are the most common genuine bugs. In
addition to feeding on the sap of plants and weakening
them (especially when these real bugs attack in huge
numbers), these pests are also known to feed on the
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1994
stalks and blooms of plants. Even while they are
destructive on their own, they can also spread to plants
deadly viruses and diseases that can further injure them.
Computer vision system
The proposed computer vision system is presented in
Figure 1. An image is first pre-processed, which could
include data representation that is obviously correct,
enhancement, or restoration. After features are retrieved
for breaking the image down into its constituent parts,
such as separating various objects by removing their
boundaries, which is basically a segmentation process,
the a divided (segmented) picture is only sent to a
classifier or an image understanding system. Image
categorization is the process of grouping different
regions in to one of the multiple objects, each bearing a
label. To give the descriptions, an image identifying
system creates links between the various items in a
scene. Segmentation is a key component of computer
vision systems since errors in this process have a
tendency to slide up to more complex processes later on,
making the task at hand more difficult.
2 LITRATURE SURVEY
In this research, the writers identified plant diseases and
took into account those that affect both leaves and fruits.
Uses computer - based picture analysis methods to
quickly and thoroughly identify pest [1] This author
concentrated on a technique to find areas of citrus leaves
that were diseased. Citrus canker, anthracnose,
overwatering, and citrus greening are the four different
forms of citrus illnesses. Pre-processing, colour space
conversion, Gray-Level Co-Occurrence Matrix are used
Using the Gray-Level Co-Occurrence Matrix it is possible
to extract features such as brightness, energies,
uniformity, and entropy. The classification is done using
the two (SVM) classifiers, SVMRBF and SVMPOLY [2].
The process used here identifies medicinal plants
relying on their distinctive characteristics The grayscale
version of the image is obtained from the input colour
pictures. Calculate the border histogram from this
grayscale image. To do this, use a clever edge detection
technique. The suggested technique calculates the
subsequent information, which is the area. In Ayurveda
medications, the medicinal plants are utilized. It takes
prior expertise to manually identify therapeutic herbs.
The RGB colour spaces are used to create the colour
histograms. This medical approach is helpful in the
treatment of a number of persistent problems such as
hyperglycaemia, malignancy, increased blood pressure,
and skin disorders, etc. But because the specialists don't
share their knowledge with others, the knowledge of
these plants dies with the experts. As a result, it's
essential to utilize the technologies and create a method
for identifying and using medicinal plants based on their
images. [3]. Pests in stored grain can be detected using
spectral residual saliency detection as an edge detection
technique. The edge of the pests is bright and obvious,
so it can locate them with accuracy. It offers a new
technique for detecting pests in stored grain and
enhances the edge detection effect. [4]. In this study,
researchers employed image processing methods to
identify weed. The automatic sprayer will then get input
from the regions where weeds were detected This is a
robotic vehicle that only sprays weedicide in locations
where weeds have been spotted [5].
3 DATASETS
Since this work is intended for all type crop insect
detection the dataset on insects available in the
https://images.bugwood.org/.http://www.nbair.res.in/
database.php.andhttps://www.ipmimages.org/.Is
considered here for detection and classification.
1.Braconid waspโ€™s insect with size 182*192
2.Sward grass insect image with size 512*512
3. Lady bug insect image with size 512*512
4.suger cane borer image with size 512*512
Fig 2: different crop pest images
Pre-processing
Classification
and description
segmentatio
n
Feature
extraction
Fig. 1: Computer vision system for detection of
crop insects
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1995
4. METHADOLOGY
The collected insect image dataset is further processed
as below block diagram
Image Acquisition
Braconid waspโ€™s is considered here for this automatic
detection
Pre-Processing
RGB TO GRAY CONVERSION: Grayscale image created by
converting the original RGB insect image using the below
mentioned equation; Greyscale intensity = 0.299R +
0.587G + 0.114B; where the letters R, G, and B stand for
the colour red, green, and blue, respectively.
BINARISATION (OTSUโ€™S THRESHOLDING):
Automatic picture-based thresholding is achieved using
Otsu's technique in field of computer vision and image
processing. In its simplest form, the algorithm generates
a single intensity threshold which categorizes pixels into
two group, foreground and background. By maximizing
the interclass variance or, equivalently, reducing the
intraclass intensity variance, the threshold is established,
here calculated threshold level is 0.4
Segmentation
The method of segmenting an image involves breaking it
up into different regions. According to the present
findings, Sobel operators outperform all other edge
detectors in the agricultural sector when it comes to the
recognition of different insect shapes. The Sobel edge
operator is taken into account in this project work for
insect shape detection in field crops since it only
provides information about the continuous edge of an
object.
Sobel edge detector techniques
The stages listed below are used in the Sobel edge
detection method:
Step 1: Reading the insect image as input
Step 2: The masks Gx and Gy (gradient in x and y
directions, respectively) are applied to the input pest
image.
Step 3: It utilizes the gradient and Sobel edge detection
technique.
Step 4: On the insect image, independent Gx, Gy mask
alteration is carried out.
Step5: determine an image's gradient. |G|=JGx
2
+Gy
2,
where Gx denotes a gradient in the x-direction and Gy
denotes a gradient in the y-direction.
Step 6: The edges of the insect image are determined by
the absolute magnitude.
Fig 4: braconid waspโ€™s (click beetle)
insect image of dimension 512*512
Fig 5: input image is converted
into gray scale with size 512*512
Dataset
of images
Image
selection
pre
processing
Insect
shape
detection
Shape
feature
extraction
Segmentation
model
training
(KNN)
Prediction Quarry
image
output
Fig3: block diagram of insect shape detection
Fig 6: Binarized image (Otsuโ€™s thresholding)
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1996
Shape Feature Extraction
The Eigen feature detector determines where an image's
corners are located for the Eigen feature detector, each
pixel will normally evaluate the picture gradient (G) in
the x and y directions, which are Gx and Gy, and then the
correlation matrix for each pixel is produced
The response of every pixel can be calculated using a
formula. R=min (๏ฌ1,๏ฌ2), The pixel could be seen as a
corner point, only when the response is greater or larger
than the threshold value. (corner =R>threshold).
In computer vision, a local feature detector and
descriptor known as Speeded Up Robust Features
(SURF) is employed. It is capable of performing a variety
of tasks, including object identification, picture
registration, classification, and 3D reconstruction.
interest points can be found by using SURF. The
algorithm comprises two main components:
identification of possible interest points, neighbourhood
description, and matching.
Table 1: SURF calculated features
These retrieved features have been used to identify the
various insect forms seen in agricultural.
insect image (click beetle)
K-NN classification
In this work for classification of different insect images
the K-nearest neighbour (KNN) machine learning
algorithm is selected. The "k-nearest neighbours"
procedure, often known as KNN or k-NN, it is a
supervised learning classifier that employs closeness to
classify or predict how a single data point will be
grouped in a non-parametric setting. Here in this work,
we mainly define the three classes for insect
classification as click beetle which belongs to class A,
moth belongs to class B and sward grass which belongs
to class C, and Pt in figure 12 is a new data point or
quarry image to classify.
Fig 12: KNN diagram
Valid corners 153
orientation 153*1 single
location 153*2 single
Features 153*64
Fig 7: Image with Sobel edge detection
Fig 9: corner detected insect image
using detectmineigenfeature function
Fig 10: SURF feature extracted inect image
Fig 11: rectangle shape is detected in a braconid waspโ€™s
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1997
Determining Distance Metric: Despite the fact that there
are many different distance measures available, for this
project we have used the Euclidean distance. the most
used distance metric is the Euclidean distance (p=2),
which can only be employed with real-valued vectors.
The formula below is used to determine the straight-line
distance between the query location and the other point
being measured.
Where d (x, y) is the distance.
DEFINING K VALUE: The k parameter in the k-NN
technique specifies how many neighbours will be
examined to determine a particular query point's
classification. Here in this work, we select the k value as
3.
Fig 14: insects under click beetle class
Fig 16: insects under sward grass class
Fig 15: classification of insect image into click beetle
class
5.RESULT AND DISCUSSION
During this project work, main concern is to detect the
various shapes in a crop pest image and further classify
these images based on their similar features. Here by
selecting the one of the crop pestโ€™s images which is
braconid waspโ€™s insect image (click beetle) which
undergo certain digital image processing techniques that
help us to detect the shapes in the crop pest images, and
further by making use of using machine learning
techniques we are able to categorize the shapes detected
Quarry
image
Train
data
ANN
(K-NN)
Label
data
Feature
extraction
(Eigen
and SURF
feature)
Prediction
Output
1.Click
beetle
2.Moth
3.Sward
grass
Fig 13: working model of KNN
Fig 15: insects under moth class
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1998
insect image to one of the classes which it belongs to.
Here mainly consider the three classes like click beetle,
moth and sward grass the machine learning algorithm
helps in classifying one the insect to either off the class
the insect belongs. This model proves to work for all the
crop pest images.
The detected insect is moth
The detected insect is sword grass
6. CONCLUSION
Insect detection at the early stage is considered as a
challenging task for the formers in agriculture sector.
The proposed work effectively detects the insect shape
at the early stage by using different image processing
technique like image reading and analysis of images,
edge detection, extraction of features and training, later
the detected shapes in an insect image are classified
under different classes using machine learning and here
classification model is developed using K-NN algorithm
to classify the insect into three different classes.
Different insect images were evaluated in this
experiment, and it was discovered that they all
performed well. This work contributes to environmental
maintenance by reducing the cost and use of pesticides
in agriculture and by offering an effective approach for
crop pest shape recognition at the initial stages of crop
development and insect classification, which leads to
crop management.
REFERENCES
[1] Detection of plant leaf diseases using Image
Processing First Author1, Second Author2, Third
Author3 1Maria Margaret J (162MCA31) 2 Shyla
J (162MCA33) 3Ms. Senthil Vadivu 1, 2 Student,
Dept. of MCA, Jyoti Nivas College 3Asst prof,
Dept. of MCA, Jyoti Nivas College).
[2] Unhealthy region of citrus leaf detection using
image processing techniques Article ยท April 2015
DOI: 10.1109/I2CT.2014.7092035
[3] Identifying Healthy and Infected Medicinal
Plants Using Canny Edge Detection Algorithm
and CBIR Vinita M. Tajane, Computer Science &
Engineering, Rajiv Gandhi College of
Engineering, Research & Technology
Chandrapur, India, E-mail:
vinitatajne@gmail.com. Prof. N.J.Janwe,
Department of Computer Technology, Rajiv
Gandhi College of Engineering, Research &
Technology, Chandrapur, India, E-mail:
Nitinj_janwe@yahoo.com.
[4] Method for pests detecting in stored grain based
on spectral residual saliency edge detection a)
College of Information Science and Engineering,
Henan University of Technology, Zhengzhou
450001, China b) Key Laboratory of Grain
Information Processing and Control, Henan
University of Technology, Ministry of Education,
Zhengzhou 450001, China c) Henan Academy of
Science, Applied Physics Institute Co., Ltd,
Zhengzhou 450001, China d) Luoyang Institute
of Science and Technology, Department of
Computer and Information Engineering,
Luoyang 471000, China.
[5] Quality Monitoring System in Agriculture Using
Image Processing Ranganatha Gowda L R
Under Graduate BE student, SIET, Tumkur,
Karnataka; Tel: 8105108424 Email:
ranganathgowda6@gmail.com.
[6] C.H. Chen, Pattern Recognition and Computer
Vision, World Scientific, USA, 1993.F.J. Leong,
A.S. Leong, โ€œDigital Imaging Applications in
Anatomic Pathologyโ€, Advances in Anatomic
Pathologyโ€, vol. 10, pp. 88โ€“95, March 2003.
[7] P. Arena, A. Basil, M. Bucolo, L. Fortuna, โ€œImage
processing for medical diagnosis using CNNโ€,
Nuclear Instruments and Methods in Physics
Research, vol. A 497, pp. 174โ€“178, January 2003.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1999
[8] Bussard, V. Martin, S. Moisan, โ€œA cognitive vision
approach to early pest detection in greenhouse
cropsโ€, Computers and electronics inagriculture,
vol. 62, pp.81โ€“93, July 2008.

More Related Content

Similar to INSECT SHAPE DETECTION AND CLASSIFICATION USING DIGITAL IMAGE PROCESSING

Similar to INSECT SHAPE DETECTION AND CLASSIFICATION USING DIGITAL IMAGE PROCESSING (20)

Plant Disease Detection and Identification using Leaf Images using deep learning
Plant Disease Detection and Identification using Leaf Images using deep learningPlant Disease Detection and Identification using Leaf Images using deep learning
Plant Disease Detection and Identification using Leaf Images using deep learning
ย 
Plant Diseases Prediction Using Image Processing
Plant Diseases Prediction Using Image ProcessingPlant Diseases Prediction Using Image Processing
Plant Diseases Prediction Using Image Processing
ย 
IRJET - Paddy Crop Disease Detection using Deep Learning Technique by using D...
IRJET - Paddy Crop Disease Detection using Deep Learning Technique by using D...IRJET - Paddy Crop Disease Detection using Deep Learning Technique by using D...
IRJET - Paddy Crop Disease Detection using Deep Learning Technique by using D...
ย 
IRJET - Plant Disease Detection using Image Processing Techniques
IRJET - Plant Disease Detection using Image Processing TechniquesIRJET - Plant Disease Detection using Image Processing Techniques
IRJET - Plant Disease Detection using Image Processing Techniques
ย 
Detection of Early Leaf spot of groundnut using Neural Network techniques
Detection of Early Leaf spot of groundnut using Neural Network techniquesDetection of Early Leaf spot of groundnut using Neural Network techniques
Detection of Early Leaf spot of groundnut using Neural Network techniques
ย 
RICE PLANT DISEASE DETECTION AND REMEDIES RECOMMENDATION USING MACHINE LEARNING
RICE PLANT DISEASE DETECTION AND REMEDIES RECOMMENDATION USING MACHINE LEARNINGRICE PLANT DISEASE DETECTION AND REMEDIES RECOMMENDATION USING MACHINE LEARNING
RICE PLANT DISEASE DETECTION AND REMEDIES RECOMMENDATION USING MACHINE LEARNING
ย 
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
ย 
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
A Review: Plant leaf Disease Detection Using Convolution Neural Network in Ma...
ย 
Leaf Disease Detection and Selection of Fertilizers using Artificial Neural N...
Leaf Disease Detection and Selection of Fertilizers using Artificial Neural N...Leaf Disease Detection and Selection of Fertilizers using Artificial Neural N...
Leaf Disease Detection and Selection of Fertilizers using Artificial Neural N...
ย 
IRJET- Crop Leaf Disease Diagnosis using Convolutional Neural Network
IRJET- Crop Leaf Disease Diagnosis using Convolutional Neural NetworkIRJET- Crop Leaf Disease Diagnosis using Convolutional Neural Network
IRJET- Crop Leaf Disease Diagnosis using Convolutional Neural Network
ย 
IRJET- Weedicide Spray Robot using Image Processing
IRJET- Weedicide Spray Robot using Image ProcessingIRJET- Weedicide Spray Robot using Image Processing
IRJET- Weedicide Spray Robot using Image Processing
ย 
IRJET - E-Learning Package for Grape & Disease Analysis
IRJET - E-Learning Package for Grape & Disease AnalysisIRJET - E-Learning Package for Grape & Disease Analysis
IRJET - E-Learning Package for Grape & Disease Analysis
ย 
Plant Leaf Disease Detection Using Machine Learning
Plant Leaf Disease Detection Using Machine LearningPlant Leaf Disease Detection Using Machine Learning
Plant Leaf Disease Detection Using Machine Learning
ย 
Plant Monitoring using Image Processing, Raspberry PI & IOT
 	  Plant Monitoring using Image Processing, Raspberry PI & IOT 	  Plant Monitoring using Image Processing, Raspberry PI & IOT
Plant Monitoring using Image Processing, Raspberry PI & IOT
ย 
IRJET- Detection of Leaf Diseases and Classifying them using Multiclass SVM
IRJET-  	  Detection of Leaf Diseases and Classifying them using Multiclass SVMIRJET-  	  Detection of Leaf Diseases and Classifying them using Multiclass SVM
IRJET- Detection of Leaf Diseases and Classifying them using Multiclass SVM
ย 
Kissan Konnect โ€“ A Smart Farming App
Kissan Konnect โ€“ A Smart Farming AppKissan Konnect โ€“ A Smart Farming App
Kissan Konnect โ€“ A Smart Farming App
ย 
CROP DISEASE DETECTION
CROP DISEASE DETECTIONCROP DISEASE DETECTION
CROP DISEASE DETECTION
ย 
IRJET - Farmer Surveillance System with Paddy Disease Detection
IRJET - Farmer Surveillance System with Paddy Disease DetectionIRJET - Farmer Surveillance System with Paddy Disease Detection
IRJET - Farmer Surveillance System with Paddy Disease Detection
ย 
IRJET- A Review on Crop Field Monitoring and Disease Detection of Unhealthy P...
IRJET- A Review on Crop Field Monitoring and Disease Detection of Unhealthy P...IRJET- A Review on Crop Field Monitoring and Disease Detection of Unhealthy P...
IRJET- A Review on Crop Field Monitoring and Disease Detection of Unhealthy P...
ย 
IRJET- High Step-Up DC-DC Converter based on Voltage Multiplier Cell and Volt...
IRJET- High Step-Up DC-DC Converter based on Voltage Multiplier Cell and Volt...IRJET- High Step-Up DC-DC Converter based on Voltage Multiplier Cell and Volt...
IRJET- High Step-Up DC-DC Converter based on Voltage Multiplier Cell and Volt...
ย 

More from IRJET Journal

More from IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
ย 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
ย 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
ย 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
ย 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
ย 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
ย 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
ย 
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of โ€œSeismic Response of RC Structures Having Plan and Vertical Irreg...
ย 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
ย 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
ย 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
ย 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
ย 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
ย 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
ย 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
ย 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
ย 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
ย 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
ย 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
ย 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
ย 

Recently uploaded

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
ย 

Recently uploaded (20)

Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
ย 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
ย 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
ย 

INSECT SHAPE DETECTION AND CLASSIFICATION USING DIGITAL IMAGE PROCESSING

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1993 INSECT SHAPE DETECTION AND CLASSIFICATION USING DIGITAL IMAGE PROCESSING Shagufta sayeed1, Smt. T D Shashikala2 1 P G Scholar, Department of Electronics and Communication, University B.D.T College of Engineering, Davanagere-577004, Karnataka, India 2Associate Professor, Department of Electronics and Communication, University B.D.T College of Engineering, Davanagere-577004, Karnataka, India ----------------------------------------------------------------------------***--------------------------------------------------------------------- Abstract: Due to contagious pests and illnesses that have been hurting agricultural products recently, agriculture businesses all over the world have suffered productivity and financial losses. The agriculture industry has a lot of potential to meet the growing demand for food while also producing meals that are wholesome and nutritious. Farmers find it challenging to identify crop insects since pest attacks severely damage and reduce the quality of the produce. The early detection of agricultural insects by an autonomous insect identification system based on computer vision and data processing enables farmers to increase crop productivity. In order to clarify the morphologies of insects, computer image processing techniques are frequently employed to pre-process, divide, and extract features from crop pest images and then make use of the machine learning algorithm (KNN) in order to classify different crop pest. The current work has been implemented using MATLAB 2019b and the Image Analysis Toolbox. Keywords: crop pest, computer vision, machine learning, KNN 1 INTRODUCTION Infectious diseases and pests have been affecting agricultural crops in recent years, resulting in production losses and financial losses for the agricultural business around the world. The agriculture sector has enormous potential to meet rising food demands while also providing healthy and nutritious meals. Crop insect identification is a difficult undertaking for farmers because pest attacks ruin a large amount of the crop and decrease its quality an autonomous technique for identifying insects based on computer vision and signal processing yields quicker recognition of agricultural crop pests at early stage, enabling farmers to increase crop productivity. Throughout this study, digital image processing techniques are often used to perform pre- processing, segmentation, and extraction of features on crop pest photographs in order to interpret the shapes of insects. while using artificial neural networks and some other machine learning approaches (ANN), This insect shape detection approach functions effectively and yields correct results for crop pests with round (perfect circle), obovate(ovule), triangular, and rectangular shapes. After detection of various insect shapes the next is classification of the insects which is done with the help of machine learning algorithm specially K-nearest neighbour algorithm (KNN). Crop pests The greatest variety of animals on earth can be found in insects. Crop pest (Insects) can be discovered in any surroundings, including wetlands, rainforests, and steppes, and sometimes also in incredibly brutal conditions like pools of petroleum, except from the open sea. Insects are considered as the most adaptive form of life since they dominate all other animal species by a wide margin. The majority of insects play significant role in maintaining both the human health and the environs. some insect represents a major threat not only to the plants but also a major threat to human health. Crop pests, such as seed eaters, herbivores, and diseases (including insects, fungi, germs, and viruses), in the worst-case circumstances, may result in decreased productivity or complete crop loss. Agricultural pests have the power to destroy entire crops intended to feed hundreds of people in addition to destroying gardens. Farmers fight a variety of pests every year to ensure the successful growth of their fruits, vegetables, and grains. In the agricultural sector, locusts are well-known. Large swarms of locusts can reach 460 square miles in size and destroy the plants all around them. The damage is terrible because they may eat their bodyweight in plants every day. In the United States, maize is a very important crop and corn rootworms have just recently become an issue for farmers due to their resistance to pesticides. There are 50,000โ€“80,000 different insect species that fall under the umbrella term "true bug," although aphids and whiteflies are the most common genuine bugs. In addition to feeding on the sap of plants and weakening them (especially when these real bugs attack in huge numbers), these pests are also known to feed on the
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1994 stalks and blooms of plants. Even while they are destructive on their own, they can also spread to plants deadly viruses and diseases that can further injure them. Computer vision system The proposed computer vision system is presented in Figure 1. An image is first pre-processed, which could include data representation that is obviously correct, enhancement, or restoration. After features are retrieved for breaking the image down into its constituent parts, such as separating various objects by removing their boundaries, which is basically a segmentation process, the a divided (segmented) picture is only sent to a classifier or an image understanding system. Image categorization is the process of grouping different regions in to one of the multiple objects, each bearing a label. To give the descriptions, an image identifying system creates links between the various items in a scene. Segmentation is a key component of computer vision systems since errors in this process have a tendency to slide up to more complex processes later on, making the task at hand more difficult. 2 LITRATURE SURVEY In this research, the writers identified plant diseases and took into account those that affect both leaves and fruits. Uses computer - based picture analysis methods to quickly and thoroughly identify pest [1] This author concentrated on a technique to find areas of citrus leaves that were diseased. Citrus canker, anthracnose, overwatering, and citrus greening are the four different forms of citrus illnesses. Pre-processing, colour space conversion, Gray-Level Co-Occurrence Matrix are used Using the Gray-Level Co-Occurrence Matrix it is possible to extract features such as brightness, energies, uniformity, and entropy. The classification is done using the two (SVM) classifiers, SVMRBF and SVMPOLY [2]. The process used here identifies medicinal plants relying on their distinctive characteristics The grayscale version of the image is obtained from the input colour pictures. Calculate the border histogram from this grayscale image. To do this, use a clever edge detection technique. The suggested technique calculates the subsequent information, which is the area. In Ayurveda medications, the medicinal plants are utilized. It takes prior expertise to manually identify therapeutic herbs. The RGB colour spaces are used to create the colour histograms. This medical approach is helpful in the treatment of a number of persistent problems such as hyperglycaemia, malignancy, increased blood pressure, and skin disorders, etc. But because the specialists don't share their knowledge with others, the knowledge of these plants dies with the experts. As a result, it's essential to utilize the technologies and create a method for identifying and using medicinal plants based on their images. [3]. Pests in stored grain can be detected using spectral residual saliency detection as an edge detection technique. The edge of the pests is bright and obvious, so it can locate them with accuracy. It offers a new technique for detecting pests in stored grain and enhances the edge detection effect. [4]. In this study, researchers employed image processing methods to identify weed. The automatic sprayer will then get input from the regions where weeds were detected This is a robotic vehicle that only sprays weedicide in locations where weeds have been spotted [5]. 3 DATASETS Since this work is intended for all type crop insect detection the dataset on insects available in the https://images.bugwood.org/.http://www.nbair.res.in/ database.php.andhttps://www.ipmimages.org/.Is considered here for detection and classification. 1.Braconid waspโ€™s insect with size 182*192 2.Sward grass insect image with size 512*512 3. Lady bug insect image with size 512*512 4.suger cane borer image with size 512*512 Fig 2: different crop pest images Pre-processing Classification and description segmentatio n Feature extraction Fig. 1: Computer vision system for detection of crop insects
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1995 4. METHADOLOGY The collected insect image dataset is further processed as below block diagram Image Acquisition Braconid waspโ€™s is considered here for this automatic detection Pre-Processing RGB TO GRAY CONVERSION: Grayscale image created by converting the original RGB insect image using the below mentioned equation; Greyscale intensity = 0.299R + 0.587G + 0.114B; where the letters R, G, and B stand for the colour red, green, and blue, respectively. BINARISATION (OTSUโ€™S THRESHOLDING): Automatic picture-based thresholding is achieved using Otsu's technique in field of computer vision and image processing. In its simplest form, the algorithm generates a single intensity threshold which categorizes pixels into two group, foreground and background. By maximizing the interclass variance or, equivalently, reducing the intraclass intensity variance, the threshold is established, here calculated threshold level is 0.4 Segmentation The method of segmenting an image involves breaking it up into different regions. According to the present findings, Sobel operators outperform all other edge detectors in the agricultural sector when it comes to the recognition of different insect shapes. The Sobel edge operator is taken into account in this project work for insect shape detection in field crops since it only provides information about the continuous edge of an object. Sobel edge detector techniques The stages listed below are used in the Sobel edge detection method: Step 1: Reading the insect image as input Step 2: The masks Gx and Gy (gradient in x and y directions, respectively) are applied to the input pest image. Step 3: It utilizes the gradient and Sobel edge detection technique. Step 4: On the insect image, independent Gx, Gy mask alteration is carried out. Step5: determine an image's gradient. |G|=JGx 2 +Gy 2, where Gx denotes a gradient in the x-direction and Gy denotes a gradient in the y-direction. Step 6: The edges of the insect image are determined by the absolute magnitude. Fig 4: braconid waspโ€™s (click beetle) insect image of dimension 512*512 Fig 5: input image is converted into gray scale with size 512*512 Dataset of images Image selection pre processing Insect shape detection Shape feature extraction Segmentation model training (KNN) Prediction Quarry image output Fig3: block diagram of insect shape detection Fig 6: Binarized image (Otsuโ€™s thresholding)
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1996 Shape Feature Extraction The Eigen feature detector determines where an image's corners are located for the Eigen feature detector, each pixel will normally evaluate the picture gradient (G) in the x and y directions, which are Gx and Gy, and then the correlation matrix for each pixel is produced The response of every pixel can be calculated using a formula. R=min (๏ฌ1,๏ฌ2), The pixel could be seen as a corner point, only when the response is greater or larger than the threshold value. (corner =R>threshold). In computer vision, a local feature detector and descriptor known as Speeded Up Robust Features (SURF) is employed. It is capable of performing a variety of tasks, including object identification, picture registration, classification, and 3D reconstruction. interest points can be found by using SURF. The algorithm comprises two main components: identification of possible interest points, neighbourhood description, and matching. Table 1: SURF calculated features These retrieved features have been used to identify the various insect forms seen in agricultural. insect image (click beetle) K-NN classification In this work for classification of different insect images the K-nearest neighbour (KNN) machine learning algorithm is selected. The "k-nearest neighbours" procedure, often known as KNN or k-NN, it is a supervised learning classifier that employs closeness to classify or predict how a single data point will be grouped in a non-parametric setting. Here in this work, we mainly define the three classes for insect classification as click beetle which belongs to class A, moth belongs to class B and sward grass which belongs to class C, and Pt in figure 12 is a new data point or quarry image to classify. Fig 12: KNN diagram Valid corners 153 orientation 153*1 single location 153*2 single Features 153*64 Fig 7: Image with Sobel edge detection Fig 9: corner detected insect image using detectmineigenfeature function Fig 10: SURF feature extracted inect image Fig 11: rectangle shape is detected in a braconid waspโ€™s
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1997 Determining Distance Metric: Despite the fact that there are many different distance measures available, for this project we have used the Euclidean distance. the most used distance metric is the Euclidean distance (p=2), which can only be employed with real-valued vectors. The formula below is used to determine the straight-line distance between the query location and the other point being measured. Where d (x, y) is the distance. DEFINING K VALUE: The k parameter in the k-NN technique specifies how many neighbours will be examined to determine a particular query point's classification. Here in this work, we select the k value as 3. Fig 14: insects under click beetle class Fig 16: insects under sward grass class Fig 15: classification of insect image into click beetle class 5.RESULT AND DISCUSSION During this project work, main concern is to detect the various shapes in a crop pest image and further classify these images based on their similar features. Here by selecting the one of the crop pestโ€™s images which is braconid waspโ€™s insect image (click beetle) which undergo certain digital image processing techniques that help us to detect the shapes in the crop pest images, and further by making use of using machine learning techniques we are able to categorize the shapes detected Quarry image Train data ANN (K-NN) Label data Feature extraction (Eigen and SURF feature) Prediction Output 1.Click beetle 2.Moth 3.Sward grass Fig 13: working model of KNN Fig 15: insects under moth class
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1998 insect image to one of the classes which it belongs to. Here mainly consider the three classes like click beetle, moth and sward grass the machine learning algorithm helps in classifying one the insect to either off the class the insect belongs. This model proves to work for all the crop pest images. The detected insect is moth The detected insect is sword grass 6. CONCLUSION Insect detection at the early stage is considered as a challenging task for the formers in agriculture sector. The proposed work effectively detects the insect shape at the early stage by using different image processing technique like image reading and analysis of images, edge detection, extraction of features and training, later the detected shapes in an insect image are classified under different classes using machine learning and here classification model is developed using K-NN algorithm to classify the insect into three different classes. Different insect images were evaluated in this experiment, and it was discovered that they all performed well. This work contributes to environmental maintenance by reducing the cost and use of pesticides in agriculture and by offering an effective approach for crop pest shape recognition at the initial stages of crop development and insect classification, which leads to crop management. REFERENCES [1] Detection of plant leaf diseases using Image Processing First Author1, Second Author2, Third Author3 1Maria Margaret J (162MCA31) 2 Shyla J (162MCA33) 3Ms. Senthil Vadivu 1, 2 Student, Dept. of MCA, Jyoti Nivas College 3Asst prof, Dept. of MCA, Jyoti Nivas College). [2] Unhealthy region of citrus leaf detection using image processing techniques Article ยท April 2015 DOI: 10.1109/I2CT.2014.7092035 [3] Identifying Healthy and Infected Medicinal Plants Using Canny Edge Detection Algorithm and CBIR Vinita M. Tajane, Computer Science & Engineering, Rajiv Gandhi College of Engineering, Research & Technology Chandrapur, India, E-mail: vinitatajne@gmail.com. Prof. N.J.Janwe, Department of Computer Technology, Rajiv Gandhi College of Engineering, Research & Technology, Chandrapur, India, E-mail: Nitinj_janwe@yahoo.com. [4] Method for pests detecting in stored grain based on spectral residual saliency edge detection a) College of Information Science and Engineering, Henan University of Technology, Zhengzhou 450001, China b) Key Laboratory of Grain Information Processing and Control, Henan University of Technology, Ministry of Education, Zhengzhou 450001, China c) Henan Academy of Science, Applied Physics Institute Co., Ltd, Zhengzhou 450001, China d) Luoyang Institute of Science and Technology, Department of Computer and Information Engineering, Luoyang 471000, China. [5] Quality Monitoring System in Agriculture Using Image Processing Ranganatha Gowda L R Under Graduate BE student, SIET, Tumkur, Karnataka; Tel: 8105108424 Email: ranganathgowda6@gmail.com. [6] C.H. Chen, Pattern Recognition and Computer Vision, World Scientific, USA, 1993.F.J. Leong, A.S. Leong, โ€œDigital Imaging Applications in Anatomic Pathologyโ€, Advances in Anatomic Pathologyโ€, vol. 10, pp. 88โ€“95, March 2003. [7] P. Arena, A. Basil, M. Bucolo, L. Fortuna, โ€œImage processing for medical diagnosis using CNNโ€, Nuclear Instruments and Methods in Physics Research, vol. A 497, pp. 174โ€“178, January 2003.
  • 7. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 ยฉ 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1999 [8] Bussard, V. Martin, S. Moisan, โ€œA cognitive vision approach to early pest detection in greenhouse cropsโ€, Computers and electronics inagriculture, vol. 62, pp.81โ€“93, July 2008.