Pest Identification Using Matlab
Pest Identification Using Matlab
The main objective of this paper is to utilize the features of smart phone and
embedded concepts to make agriculture simple.The goal of this paper is to bring
out an efficient mechanism that reduces the effort in maintaining agricultural
fields and crops.Insects and pests damage the crops and, thus, are very
dangerous for theoverall growth of the crop. One method to protect the crop is
early pest detection so thatthe crop can be protected from pest attack. The best
way to know about the health of thecrop is the timely examination of the crop. If
pests are detected, appropriate measures can be taken to protect the crop from
a bigproduction loss at the end. Early detection would be helpful for minimizing
the usage of the pesticides and would provide guidance for the selection of the
pesticides.
MODULE DESCRIPTION:
A. Image Acquisition:
The experiments on pest detection were carried out in the paddy fields. The
authors setup a network of wireless cameras (protected against water
projection and direct sun light) together with the sticky traps to capture the
insect pests. The cameras used are CISCO Linksys Wireless-G Internet Home
Monitoring Camera which can capture 10 frames per seconds at 8
megapixel resolution. The captured images were processed using a local
machine equipped with Intel i3 processor and 4 GB RAM. The architectural
design of the proposed system.
B. Image Pre-processing
• Image pre-processing creates an enhanced image that is more useful
in processing the still image. In RGB color model, each color appears
in its primary spectral components of red, green, and blue. The color
of a pixel is made up of three components; red, green, and blue
(RGB), described by their corresponding intensities. RGB color image
require large space to store and consume much time to process. In
image processing it needs to process the three different channels so it
consumes large time. In this study, grayscale image is enough for the
method so the authors convert the RGB image into grayscale image
with the following formula:
C.MATLAB:
• MATLAB = Matrix Laboratory
• “MATLAB is a high-level language and interactive environment that
enables you to perform computationally intensive tasks faster than with
traditional programming languages such as C, C++ and Fortran.”
(www.mathworks.com)
• MATLAB is an interactive, interpreted language that is designed for fast
numerical matrix calculations
D. Detection of Pests in the Image
• The detection mechanism used to detect the insect pests in the image is simple
and yet efficient. The authors compared the image pixel values of the successive
captured images from the camera. Two images are used in detecting the
difference. The first image served as the reference image that represents the
reference pixel values for comparison purposes, while the second image served as
the input image. The two images were compared to each other and the
differences in pixel values were determined. If the inputted image pixelvalues are
not equal to the reference image pixel values, the inputted image pixel will be
saved as the output image pixel. If the pixel value of the input image is equal to
the reference image then the background will be white (pixel value is 255). Fig. 2
shows the difference between reference and input image. After determining the
difference of the reference and input image, the input image will now be used as
the reference image and the output image will be the extract and served as the
input on the next phase. To determine the difference of the reference and input
image, the following equation will be used.
E. Filtering of the Image
• Filtering is a process of cleaning up the appearance of the image from
noise caused by different lighting conditions. Digital image processing
required filtering to yield a usable and attractive end result. There are
different techniques available and the best options depend on the
image and how it will be used. In this study the authors use median
filter. Median filter looks at its nearby neighbor’s pixel values to
decide whether or not it is representative of its surrounding pixels
and replaces with the median of those values. Fig. 3 illustrates an
example calculation.
F. Extraction of the Detected Pests
• This phase is the extraction of the detected insect pest from the image. The output
image which was obtained at the end of the previous phase was used in this phase. The
image pixel values of the output image will be scanned both horizontally and vertically
to determine the coordinates of each insect in the image. The width and height of the
extracted image was determined by using its starting and ending coordinates. Once the
start and end coordinates of the objects are determined, the width and height of the
matrix as defined by those coordinates will take note and the matrix will be saved. The
method used in extracting has two steps. First, the value of the output image in pixels is
scanned horizontally which starts at the first x-direction, then the pixel values are
summed up to the corresponding columns. The coordinate value in x-direction is
incremented by one and the total pixel value in the next column is calculated. The
process is repeated until reaching the last value in the x-direction. As a result, the total
pixel values of each column are calculated. In order to determine the x-coordinate
where an object starts or ends within the image, each total value is compared to a
certain threshold value. Second, it will vertically repeat the horizontal scanning method;
therefore the total pixel value in each row is calculated. Then, to determine the y
coordinates, the thresholding will apply where objects start or end within the image.
The mathematical description of the object extraction method is shown in the following
equations.
RESULTS:
The use of Artificial insecticides and nematicides have been
degrading the quality of plantation crops for many years. In this
paper a novel algorithm is presented for easily identifying the pest
infected areas of these crops. The algorithm can be further modified
for finding the diseased areas in the crops by using sophisticated
softwares and better image acquisition devices.All over the world
agriculture experts are working one radication of bioagressors and
infected coffee plantation are one of the challenges out of it. Image
Processing technique plays a vital role in it. Our first objective is to
detect diseases like coffee berry on plantations and other bio
agressors (aphids) or plant diseases. Cognitive approach introduce
new objects to detect or new image processing programs too
extract the corresponding information.
REFERENCES :
1.https://matlab.projectsqa.com/a/302-pest-control-in-agricultural-plantations-
using-image-processing.html
2.https://www.researchgate.net/publication/282119578_Early_Pest_Detection
_from_Crop_using_Image_Processing_and_Computational_Intelligence
3.http://www.iosrjournals.org/iosr-jece/papers/Vol6-Issue4/K0646874.pdf
4.http://www.entomoljournal.com/vol3Issue2/pdf/3-2-49.1.pdf
5.https://ieeexplore.ieee.org/document/6396012
THANK YOU….!