Centre of Robotics
Weed Detection in Crops Using Computer Vision
Presenter: Dr. Yasir Niaz Khan Researchers: Taskeen Ashraf, Danish Gondal, Novaira Noor. http://cs.ucp.edu.pk/index.php/robotics-security/
Weed Detection in Crops Using Computer Vision Presenter: Dr. Yasir - - PowerPoint PPT Presentation
Centre of Robotics Weed Detection in Crops Using Computer Vision Presenter: Dr. Yasir Niaz Khan Researchers: Taskeen Ashraf, Danish Gondal, Novaira Noor. http://cs.ucp.edu.pk/index.php/robotics-security/ UCP Robotics Group Centre of Robotics
Centre of Robotics
Presenter: Dr. Yasir Niaz Khan Researchers: Taskeen Ashraf, Danish Gondal, Novaira Noor. http://cs.ucp.edu.pk/index.php/robotics-security/
Centre of Robotics
UCP Robotics Group
undergrad students
Centre of Robotics
Road Map
Centre of Robotics
Centre of Robotics
Importance of Rice Crop1,2
1. Old.parc.gov.pk, "NARC-Rice||Introduction", 2015. [Online]. Available: http://old.parc.gov.pk/NARC/RiceProg/Pages/intro.html. [Accessed: 20- Dec- 2015]. 2. Bayercropscience.com.pk,. 'Bayer Cropscience - Pakistan : Rice'. N.p., 2015. Web. 14 May 2015. 3. Fao.org,. 'Fertilizer Use By Crop In Pakistan'. N.p., 2015. Web. 18 June 2015
Centre of Robotics
What are Weeds and Weed Control?1
Weeding Approaches Manual Hand weeding Hand hoeing Partially automated Herbicides application Biological means
1. Pakissan.com,. 'Integrated Weed Management In Rice :: Pakistan Agricultural News Chennal-:PAKISSAN.Com:- '. N.p., 2015. Web. 17 May 2015. 2. Eap.mcgill.ca,. "Biological Control Of Weeds". N.p., 2015. Web. 31 sep. 2015.
Biological Means2 1. biological spray
suspension of an endemic fungus 2. a fish, the white amur
Centre of Robotics
Issues with Weed Control Methods
▫Uneconomical ▫Affects crop health ▫Environmental Pollution ▫Resistance to sprays
Centre of Robotics
Resistance to sprays
Survey website at http://www.weedscience.org on September 13th, 2015.
Centre of Robotics
cases up to 50% of the crop1
days
Chennal-:PAKISSAN.Com:-'. N.p., 2015. Web. 17 May 2015.
Centre of Robotics
Centre of Robotics
Problem Statement
“Automated localized weed detection in rice fields to avoid excessive uniform spraying; that will result in high, good quality yield with low production cost.”
Centre of Robotics
Problem Statement
“Automated localized weed detection in rice fields to that will result in high, good quality yield with low production cost.”
Centre of Robotics
Problem Statement
“ in rice fields to that will result in high, good quality yield with low production cost.”
Centre of Robotics
Centre of Robotics
Initial Experimentation
(DS-1)(1,2)
1. Jircas.affrc.go.jp,. 'JIRCAS cyperus Difformis plants In Lowland Savanna Of West Africa'. N.p., 2015.
2. Mikobi.deviantart.com,. 'Water Lily In The Rice Paddies Around Angkor Wat'. N.p., 2015. Web. 10 May 2015.
Centre of Robotics
Initial Experimentation
▫Based on localized FFT and Edge Detection1 ▫Based on localized Entropy ▫Based on Wavelet Transform2
10 20 30 40 50 60 70 80 90 100 Localized FFT Localized Entropy Discrete Wavelet Transform
Comparison Using Accuracy and FPR
Accuracy FPR
Accuracy: 89.60 %
Techniques Accuracy FPR FFT 74.85% 27.83% Entropy 76.66% 24.09% Wavelet 89.60% 17.50%
Systems, Man and Cybernetics, 2008. SMC 2008. IEEE International Conference on. IEEE, 2008
Lahore, 2014. Print.
Centre of Robotics
Centre of Robotics
Experimental Setup
▫MATLAB 2014 64 bit ▫Windows 8 64 bit ▫4 GB RAM ▫Core i5 1.70GHz Processor ▫LibSVM and RF
▫Images taken height of 2-4 ft. ▫Angle of capture is 90 degrees ▫Image resolution is 1920x1080
Centre of Robotics
Using Wavelet Transform involving Blur Detection
Centre of Robotics
Overall Technique
Video Extract Every Nth Frame(Image) Blur Detection Module Weed Detection Module Output image Calculate Weed Coverage Trained SVM Model
Blur Non-Blur
Centre of Robotics
Blur Detection
Dataset blur/Non-Blur labelled images Get image one by one Convert RGB to Gray Calculate Discrete Laplacian Extract Features Train SVM (Batch Training) Linear SVM Model
Min, max, std
Centre of Robotics
Weed Detection
Input image Excessive green image Wavelet Transform Thresholding on Diagonal Coefficients Inverse Wavelet Transform Dilation Remove small regions Output image
Centre of Robotics
Steps 1-3
Original Image Excessive Green Image Diagonal Coefficient Diagonal Coefficient(Filtered)
Centre of Robotics
Steps 4-5
Dilation
Centre of Robotics
Accuracy & FPR
76.16% (8% increase)
Centre of Robotics
Accuracy drops drastically when texture difference decreases with the growth of grass
Centre of Robotics
Using SVM and Random forest with Moments
Centre of Robotics
Dataset-2 Density Based
Centre of Robotics
Weed Detection
Density Based Dataset Extract Green channel from RGB Calculate Mean,variance,kurtosis,skew Train Classifier (Batch Training) Calculate n-fold cross validation
Calculate complex moments
Centre of Robotics
Accuracy Using First Four Moments
68.00 70.00 72.00 74.00 76.00 78.00 80.00 82.00 84.00 86.00 88.00 1 2 3 4 5 Accuracy
Linear kernel RBF kernel Random Forest
Accuracy: 82.22% RBF Kernel SVM C=8, g=0.25
Centre of Robotics
Accuracy Using Complex Moments
Accuracy: 81.42% random forests with 300 trees
66.00 68.00 70.00 72.00 74.00 76.00 78.00 80.00 82.00 84.00 86.00 1 2 3 4 5 Accuracy
Linear kernel RBF kernel Random Forest
Centre of Robotics
Accuracy Using Combined Moments
Accuracy: 86.06% RF With 300 trees
70 72 74 76 78 80 82 84 86 88 90 1 2 3 4 5 Accuracy
Linear kernel RBF kernel Random Forest
Centre of Robotics
Accuracy and Execution Time
Centre of Robotics
Accuracy
10 20 30 40 50 60 70 80 90 100 Linear kernel RBF kernel Random Forest Accuracy Type of classifiers Moments Feature set GLCM feature set
Accuracy: 86.06% RF With 300 trees Moments Feature Set
Centre of Robotics
Execution Time
5 10 15 20 25 30 35 Wavelet Transform with blur detection Moments GLCM features Execution time in seconds Linear SVM kernel RBF SVM kernel Random forests
Wavelet Transform Less feature extraction Time
Centre of Robotics
Conclusion
soil, straw/stalk)
crops such as cotton.
stage
needs to determined.
Centre of Robotics
Topic
Researcher: Umar Muzaffar
52
Centre of Robotics
Tools & Technology
53
Centre of Robotics
Data set Collection
54
Centre of Robotics
Kangi Palm’s Plant Potato’s Plant Pea’s Plant (Captured from UCP) (Captured from Fields) (Captured from Nursery)
55
Centre of Robotics
Training of data
56
Centre of Robotics
Techniques Used
different shapes)
57
Centre of Robotics
Flow Chart
58 Input Image Apply Hough Line Transform. Apply Canny Edge Detector Apply Bilateral Filter to reduce noise Find different shapes
Apply SVM for classification If image’s data matches Output plant’s name Save Features in file If image’s data doesn’t match Output “It’s not match to existing data” Extract length & width
Start End
Centre of Robotics
Results
Cherry’s Plant
59
Centre of Robotics
Continue. Cauliflower’s Plant
60
Centre of Robotics
Continue. RedChilli’s Plant
61
Centre of Robotics
Continue. Potato’s Plant
62
Centre of Robotics
Continue. It’s Wall Palm Tree
63
Centre of Robotics
Future Work
leaves
64
Centre of Robotics
Centre of Robotics
Goals
Centre of Robotics
Crop Value of Damage ($ millions) Cost of Control ($ millions) Rice 1.77 0.61 Wheat 1.83 0.40 Cotton 2.23 1.7 Totals 5.83 2.71
http://www.fin ance.gov.pk/survey/chapters_15/Annex_III_disease_damage.pdf
Centre of Robotics
Common Diseases
Centre of Robotics
Fusarium Blight
http://www.ars.usda.gov/is/pr/2010/100401.htm
Centre of Robotics
Leaf Scorch
Centre of Robotics
Basic Steps
Centre of Robotics
Flow Chart
Centre of Robotics
Histogram- Methodology
Blurring the image.
Blurred Image
Centre of Robotics
Histogram
accuracy.
Centre of Robotics
Histogram
enhance the details.
Centre of Robotics
Histogram
Centre of Robotics
Histogram- Results
Centre of Robotics
Multi Class SVM
Centre of Robotics
Multi Class SVM- Results
Centre of Robotics
Multi Class SVM- Results
Centre of Robotics
Multi Class SVM- Results
Stage No of Images Execution Time (sec) Feature Extraction 100 90 Training 25/ per class 3.3 Testing 20/ per class 0.7
Centre of Robotics
Accuracy
iterations.
Centre of Robotics
Future Work
Centre of Robotics