| Literature DB >> 32349459 |
Mojtaba Dadashzadeh1, Yousef Abbaspour-Gilandeh1, Tarahom Mesri-Gundoshmian1, Sajad Sabzi1, Jose Luis Hernández-Hernández2, Mario Hernández-Hernández3, Juan Ignacio Arribas4,5.
Abstract
Site-specific weed management and selective application of herbicides as eco-friendly techniques are still challenging tasks to perform, especially for densely cultivated crops, such as rice. This study is aimed at developing a stereo vision system for distinguishing between rice plants and weeds and further discriminating two types of weeds in a rice field by using artificial neural networks (ANNs) and two metaheuristic algorithms. For this purpose, stereo videos were recorded across the rice field and different channels were extracted and decomposed into the constituent frames. Next, upon pre-processing and segmentation of the frames, green plants were extracted out of the background. For accurate discrimination of the rice and weeds, a total of 302 color, shape, and texture features were identified. Two metaheuristic algorithms, namely particle swarm optimization (PSO) and the bee algorithm (BA), were used to optimize the neural network for selecting the most effective features and classifying different types of weeds, respectively. Comparing the proposed classification method with the K-nearest neighbors (KNN) classifier, it was found that the proposed ANN-BA classifier reached accuracies of 88.74% and 87.96% for right and left channels, respectively, over the test set. Taking into account either the arithmetic or the geometric means as the basis, the accuracies were increased up to 92.02% and 90.7%, respectively, over the test set. On the other hand, the KNN suffered from more cases of misclassification, as compared to the proposed ANN-BA classifier, generating an overall accuracy of 76.62% and 85.59% for the classification of the right and left channel data, respectively, and 85.84% and 84.07% for the arithmetic and geometric mean values, respectively.Entities:
Keywords: eco-friendly technique; metaheuristic algorithm; rice field; site-specific management; sustainable agriculture; weed
Year: 2020 PMID: 32349459 PMCID: PMC7284472 DOI: 10.3390/plants9050559
Source DB: PubMed Journal: Plants (Basel) ISSN: 2223-7747
Figure 1A rail platform for holding the camera and moving it across the field: 3 m length. Note: The growth stage of the rice on the BBCH scale was leaf development and tillering (from 1 week after transplanting to the sixth week) and weeds were leaf development (after three leaves unfolded). Water depth was 10 cm.
Figure 2Segmentation of the green components (weeds and rice crop) of sample frames for (a) wide-leaf weed (Eclipta prostrata), (b) wide-leaf weed (Alisma plantago-aquatica), (c) narrow-leaf weeds (Cyperus difformis and Echinochloa crus-galli), and (d) narrow-leaf weeds (Echinochloa crus-galli and Paspalum distichum).
The parameters of the multi-layer perception (MLP) and particle swarm optimization (PSO) for the hybrid artificial neural network (ANN)-PSO for selecting the most significant features.
| MLP Parameters | PSO Parameters |
|---|---|
| One input layer | Swarm size: 30 |
| One hidden layer with 10 neurons | Maximum iteration: 20 |
| One output layer with 3 outputs. | Inertia weight damping ratio: 1 |
| Classic Levenberg–Marquardt training function | Maximum variation size: 1 |
| Minimum variation size: 0 | |
| Inertia rate: 1 | |
| Velocity Maximum value: | |
| 0.1×(VarMax-VarMin) | |
| Velocity minimum value: -VelMax |
Figure 3Flowchart of the proposed system for the classification of rice and weed plants inside rice fields by recording stereo video and decomposing the video into right and left channel data.
The most effective features selected by the proposed hybrid ANN-PSO algorithm from the left and right channel data and arithmetic and geometric means.
| Category | Selected Effective Features | |||||
|---|---|---|---|---|---|---|
| Left channel | EXY-YIQ | Elongation Feature | Cluster Prominence-45 | Rn | Inverse Difference-45 | Entropy-45 |
| Right channel | Convexity | ExG-RGB | CIVE-HSV | Cluster shade-90 | CIVE-RGB | Difference entropy-0 |
| Arithmetic mean | Sum entropy-0 | Information measure of correlation-0 | CIVE-RGB | Autocollelation-90 | Coefficient of variation--90 | WL |
| Geometric mean | Inverse difference normalized-135 | WL | CMP | Std-Cb | Entropy | ExM-CMYYY |
Formal definition of selected features inside the four categories under consideration: description and feature name.
| Description | Selected Feature Name |
|---|---|
| Excess yellow from YIQ color space | EXY-YIQ |
| Elongation feature = (L − W)/(L + W) | Elongation feature |
| Cluster prominence | |
| Rn = R/(R + G + B), (The normalized first component of RGB) | Rn |
| Inverse Difference = | Inverse Difference |
|
| |
| A measure of the curvature | Convexity |
| ExG-RGB = 2 × Gn − Rn − Bn, (Excess green) | ExG-RGB |
| Color index for extracted vegetation cover in HSV color space | CIVE-HSV |
| cluster Shade = ΣΣ |
|
| CIVE-RGB = 0.441 × Rn − 0.811 × Gn + 0.385 × Bn + 18.78 | CIVE-RGB |
| Difference entropy = −Σ | Difference entropy |
|
| |
| IMC = | Information measure of correlation |
|
| |
| Standard deviation to mean of co-occurrence matrix | Coefficient of variation |
| WL = Width/Length | WL |
| IDN = | Inverse difference normalized |
| CMP = | CMP |
| Standard deviation of Cb from YCbCr color space | Std-Cb |
| Excess magenta From CMY color space | ExM-CMYYY |
The optimized parameters for classification using the hybrid artificial neural network bee algorithm (ANN-BA).
| Number of Hidden Layers | Number of Neurons | Transfer Function | Back Propagation Network Training Function | Back Propagation Weight/Bias Learning Function |
|---|---|---|---|---|
| 2 | First layer: 20 | First layer: tansig | trainrp | learngd |
Confusion matrices and accuracy of the ANN-BA classifier for the left channel, right channel, arithmetic mean, and geometric mean (test set).
| Left channel | Rice | Narrow-leaf weeds | Wide-leaf weeds |
|---|---|---|---|
| Rice | 89 | 6 | 2 |
| Narrow-leaf weeds | 12 | 67 | 6 |
| Wide-leaf weeds | 2 | 1 | 56 |
| Accuracy = 87.96% | |||
|
|
|
|
|
| Rice | 86 | 3 | 1 |
| Narrow-leaf weeds | 6 | 73 | 10 |
| Wide-leaf weeds | 2 | 4 | 46 |
| Accuracy = 88.74% | |||
|
|
|
|
|
| Rice | 91 | 5 | 1 |
| Narrow-leaf weeds | 6 | 69 | 2 |
| Wide-leaf weeds | 1 | 3 | 48 |
| Accuracy = 92.02% | |||
|
|
|
|
|
| Rice | 91 | 6 | 0 |
| Narrow-leaf weeds | 7 | 67 | 3 |
| Wide-leaf weeds | 3 | 2 | 47 |
| Accuracy = 90.70% | |||
Confusion matrices and accuracy of the K-nearest neighbors (KNN) classifier for the left channel, right channel, arithmetic mean, and geometric mean (test set).
| Left channel | Rice | Narrow-leaf weeds | Wide-leaf weeds |
|---|---|---|---|
| Rice | 83 | 8 | 6 |
| Narrow-leaf weeds | 10 | 65 | 10 |
| Wide-leaf weeds | 0 | 0 | 59 |
| Accuracy = 85.89% | |||
|
|
|
|
|
| Rice | 65 | 19 | 6 |
| Narrow-leaf weeds | 17 | 60 | 12 |
| Wide-leaf weeds | 0 | 0 | 52 |
| Accuracy = 76.62% | |||
|
|
|
|
|
| Rice | 83 | 8 | 6 |
| Narrow-leaf weeds | 11 | 62 | 4 |
| Wide-leaf weeds | 3 | 0 | 49 |
| Accuracy = 85.84% | |||
|
| Rice |
|
|
| Rice | 78 | 15 | 4 |
| Narrow-leaf weeds | 12 | 60 | 5 |
| Wide-leaf weeds | 0 | 0 | 52 |
| Accuracy = 84.07% | |||
Mean and standard deviation (STD) values of accuracy for the proposed hybrid ANN-BA and the KNN classifiers: three classes and four classifier categories.
| Right Channel | |||||
|---|---|---|---|---|---|
|
|
|
|
|
|
|
| Rice | 0.9446 | 0.0212 | Rice | 0.7224 | 0.0265 |
| Narrow-leaf weeds | 0.8596 | 0.0314 | Narrow-leaf weeds | 0.6942 | 0.0272 |
| Wide-leaf weeds | 0.9323 | 0.0289 | Wide-leaf weeds | 0.9004 | 0.0315 |
|
| |||||
|
|
|
|
|
|
|
| Rice | 0.9100 | 0.0275 | Rice | 0.8256 | 0.0238 |
| Narrow-leaf weeds | 0.8625 | 0.0275 | Narrow-leaf weeds | 0.7948 | 0.0273 |
| Wide-leaf weeds | 0.9132 | 0.0376 | Wide-leaf weeds | 0.8961 | 0.0305 |
|
| |||||
|
|
|
|
|
|
|
| Rice | 0.9563 | 0.0165 | Rice | 0.8091 | 0.0240 |
| Narrow-leaf weeds | 0.9330 | 0.0179 | Narrow-leaf weeds | 0.7993 | 0.0254 |
| Wide-leaf weeds | 0.9653 | 0.0211 | Wide-leaf weeds | 0.9214 | 0.0272 |
|
| |||||
|
|
|
|
|
|
|
| Rice | 0.9414 | 0.0141 | Rice | 0.7745 | 0.0254 |
| Narrow-leaf weeds | 0.9387 | 0.0169 | Narrow-leaf weeds | 0.7625 | 0.0258 |
| Wide-leaf weeds | 0.9478 | 0.0200 | Wide-leaf weeds | 0.9493 | 0.0234 |
Figure 4Performance evaluation of the ANN-BA classifier on the test dataset in the four categories (right, left, geometric mean, and arithmetic mean) based on the ROC and ROC-best curves related to the three classes (rice, narrow-leaf weed, and wide-leaf weed).
Mean area under the receiver operating characteristic (ROC) curves (AUC) for the hybrid ANN-BA classifier for rice, narrow-leaf weed, and wide-leaf weed classes: right channel, left channel, arithmetic mean, and geometric mean.
| Hybrid ANN-BA | Rice Class | Narrow-Leaf Weeds Class | Wide-Leaf Weeds Class |
|---|---|---|---|
| Right Channel | 0.9886 | 0.9376 | 0.9561 |
| Left Channel | 0.9462 | 0.9106 | 0.9483 |
| Arithmetic mean | 0.9731 | 0.9635 | 0.9765 |
| Geometric mean | 0.9668 | 0.9638 | 0.9747 |
Mean area under the ROC curves (AUC) for the KNN classifier for rice, narrow-leaf weed, and wide-leaf weed classes: right channel, left channel, arithmetic mean, and geometric mean.
| KNN | Rice Class | Narrow-Leaf Weeds Class | Wide-Leaf Weeds Class |
|---|---|---|---|
| Right Channel | 0.8008 | 0.7702 | 0.9497 |
| Left Cannel | 0.8931 | 0.8567 | 0.9560 |
| Arithmetic mean | 0.8793 | 0.8758 | 0.9424 |
| Geometric mean | 0.8556 | 0.8393 | 0.9742 |
Figure 5Segmentation and classification of rice and weeds in color and binary images for a frame. (a) Original frame, (b) color model of left channel, (c) binary model of left channel, (d) color model of right channel, (e) binary model of right channel, (f) color model of arithmetic mean, (g) binary model of arithmetic mean, (h) color model of geometric mean, and (i) binary model of geometric mean.