Mapping Cynodon Dactylon Infesting Cover Crops with an Automatic Decision Tree-OBIA Procedure and UAV Imagery for Precision Viticulture

: The establishment and management of cover crops are common practices widely used in irrigated viticulture around the world, as they bring great beneﬁts not only to protect and improve the soil, but also to control vine vigor and improve the yield quality, among others. However, these beneﬁts are often reduced when cover crops are infested by Cynodon dactylon (bermudagrass), which impacts crop production due to its competition for water and nutrients and causes important economic losses for the winegrowers. Therefore, the discrimination of Cynodon dactylon in cover crops would enable site-speciﬁc control to be applied and thus drastically mitigate damage to the vineyard. In this context, this research proposes a novel, automatic and robust image analysis algorithm for the quick and accurate mapping of Cynodon dactylon growing in vineyard cover crops. The algorithm was developed using aerial images taken with an Unmanned Aerial Vehicle (UAV) and combined decision tree (DT) and object-based image analysis (OBIA) approaches. The relevance of this work consisted in dealing with the constraint caused by the spectral similarity of these complex scenarios formed by vines, cover crops, Cynodon dactylon , and bare soil. The incorporation of height information from the Digital Surface Model and several features selected by machine learning tools in the DT-OBIA algorithm solved this spectral similarity limitation and allowed the precise design of Cynodon dactylon maps. Another contribution of this work is the short time needed to apply the full process from UAV ﬂights to image analysis, which can enable useful maps to be created on demand (within two days of the farmer´s request) and is thus timely for controlling Cynodon dactylon in the herbicide application window. Therefore, this combination of UAV imagery and a DT-OBIA algorithm would allow winegrowers to apply site-speciﬁc control of Cynodon dactylon and maintain cover crop-based management systems and their consequent beneﬁts in the vineyards, and also comply with the European legal framework for the sustainable use of agricultural inputs and implementation of integrated crop management.


Introduction
Farmers´adoption of Precision Viticulture (PV) practices has been progressively growing in grape production, with the aim of optimizing crop production and increasing profitability through a more and then using these objects as the basic elements of classification by combining spectral, spatial, topological, and contextual information [6,36,37]. In recent years, OBIA techniques have reached high levels of automation and adaptability to ultra-high spatial resolution images. Moreover, the use of orthomosaic and DSMs as inputs has allowed to address complicated agronomical studies, i.e., the efficient identification and characterization of individual trees of woody crops, such as olive trees [38,39] and vines [9,22,40], classification of vegetation types [41], plant breeding program applications [42], and plant count estimation [43]. In addition, OBIA techniques using UAV imagery-based geomatic products have enabled the discrimination of weeds and crops in the early vegetative stage between [6] and within crop rows [3,44], and in tilled soils of vineyards without cover crops [22], which makes OBIA one of the most useful methodologies in complex scenarios with spectral similarity [36,45,46]. Therefore, combining the advantages of UAV imagery, in terms of flexibility and high spatial resolution, with OBIA´s ability to solve complicated spectral issues could be a suitable solution for the hitherto unresolved challenge of mapping C. dactylon infesting vineyards cover crops.
Incorporating suitable features into OBIA classifier algorithms may lead to a strong accuracy improvement of automated classification and self-adaptation to different geographic regions or time [3,47,48]. However, the selection of optimum features has been a significant challenge, especially in the OBIA context, due to the large number of object features generated after segmentation that can be used in the subsequent classification task [49][50][51][52]. In that complex situation, machine learning tools, e.g., neural networks (NNs), support vector machines (SVM), and decision trees (DTs), are advanced techniques for feature identification and pattern recognition that have been widely used in agronomic scenarios [53][54][55]. Among these techniques, DTs have received increasing attention from the remote sensing community due to their fast operation, the lack of assumption in data distribution, the ease of interpretable rules, and their ability to select embedded features [56], and have thus been shown to be highly suitable for agricultural image classification [57,58]. Moreover, DTs have been successfully used for feature selection in the context of UAV imagery-based OBIA procedures in agricultural scenarios, e.g., for rangeland monitoring [59]; land-cover classification [48,60]; and individual tree production at the orchard scale [61]. However, this technique combination remains to be addressed for weed mapping.
As part of an overall research program to implement Integrated Crop Management (ICM) Systems in vineyards, a combination of UAV-based technology and OBIA techniques has been evaluated to propose PV strategies that achieve a more sustainable use of agricultural products (e.g., herbicides) and efficient production (environmental and economic benefits). As the first step of this program, a robust OBIA procedure using DSMs was developed for 3D grapevine characterization [9], which is able to isolate vines and can be used as a basis to create new procedures for designing site-specific vineyard management strategies. Thus, as a second step of the program, the aim of the present study was to develop a novel and robust image analysis procedure for the automatic and accurate mapping of C. dactylon infesting cover crops in vineyards for the purpose of applying site-specific weed control. To achieve this objective, a two-step approach was proposed, consisting of: (1) selecting the optimum features to efficiently discriminate cover crops, C. dactylon and bare soil using DTs, and (2) developing and evaluating an automatic OBIA algorithm for vine, cover crop, bare soil and C. dactylon classification. To the best of our knowledge, the use of DT tools has not yet been applied to UAV images in the context of OBIA technology for weed mapping. Therefore, using the combination of UAV-based DSM, DTs, and OBIA would enable the significant challenge of automating image analysis in a complex vineyard scenario to be tackled, which represents a relevant advancement in PV.

Study Fields and UAV Imagery Acquisition
The experiment was carried out in four commercial vineyards (Vitis vinifera L. cv. Pinot noir) located in Raimat, province of Lleida (Northeastern Spain), identified as fields A-16, B-16, C-16, and Remote Sens. 2020, 12, 56 4 of 23 C-17 (Table 1). Vines were drip-irrigated and trellis-trained, with rows separated by 2.4 m and vine spacing of 1.7 m in the case of A-16 and B-16, and by 3 × 2 m for C-16 and C-17. Sown cover crops in the inter-row spaces were composed of different species (Table 1) at an early vegetative stage, showing the typical green color in all fields and were naturally infested by C. dactylon ( Figure 1). However, the B-16 cover crop showed a slightly less advanced growth stage, resulting in fewer and smaller plants emerging (Figure 1a). The cover crop management was mainly focused on minimizing soil erosion and compaction, as well as control of weeds, which were also managed through the application of herbicides in early autumn and spring. C. dactylon plants infesting cover crops were in a dormant stage and in some of the fields, due to the frequent variability in field conditions, shortly before initiating the vegetative growth stage, thus showing spectral similarity with bare soil and cover crops, respectively ( Figure 1). A few days prior to flights, vines of C-16 and C-17 were manually pruned, while no pruning was carried out for A-16 and B-16 vines due to the early age of the vines. C-17 (Table 1). Vines were drip-irrigated and trellis-trained, with rows separated by 2.4 m and vine spacing of 1.7 m in the case of A-16 and B-16, and by 3 x 2 m for C-16 and C-17. Sown cover crops in the inter-row spaces were composed of different species (Table 1) at an early vegetative stage, showing the typical green color in all fields and were naturally infested by C. dactylon ( Figure 1). However, the B-16 cover crop showed a slightly less advanced growth stage, resulting in fewer and smaller plants emerging (Figure 1a). The cover crop management was mainly focused on minimizing soil erosion and compaction, as well as control of weeds, which were also managed through the application of herbicides in early autumn and spring. C. dactylon plants infesting cover crops were in a dormant stage and in some of the fields, due to the frequent variability in field conditions, shortly before initiating the vegetative growth stage, thus showing spectral similarity with bare soil and cover crops, respectively ( Figure 1). A few days prior to flights, vines of C-16 and C-17 were manually pruned, while no pruning was carried out for A-16 and B-16 vines due to the early age of the vines.  The aerial images were taken in early February 2016 and late January 2017 with a quadrocopter UAV platform model MD4-1000 (Microdrones GmbH, Siegen, Germany) equipped with a commercial off-the-shelf camera, model Olympus PEN E-PM1 (Olympus Corporation, Tokyo, Japan). This low-cost RGB (R: red; G: green; B: blue) camera is composed of a 17.3 × 13.0 mm sensor, capable of acquiring 12.2-megapixel spatial resolution images with an 8-bit radiometric resolution and is equipped with a 14 mm focal length. The flight routes based on the waypoint navigation system were designed to take photos continuously at a 30 m flight altitude with a forward overlap of 90% and a side overlap of 60%, large enough to achieve a 3D reconstruction of vineyards according to previous research [9], and leading to a spatial resolution of 1 cm/pixel, i.e., a ground sample distance (GSD) of 1 cm.pixel −1 , which is crucial for identification and mapping vegetation in early growth stages [3].
The UAV flights were authorized by the private company Raimat S.L, owner of the fields and the operations fulfilled the list of requirements established by the Spanish National Agency of Aerial Security, including the pilot license, safety regulations and limited flight distance (AESA).

Generation of the Digital Surface Model (DSM) and Image Mosaicking
Geomatic products (DSM and orthomosaics) were generated using Agisoft PhotoScan Professional Edition software (Agisoft LLC, St. Petersburg, Russia) version 1.2.4 build 1874. The mosaic development process was fully automatic, with the exception of the manual localization of five ground control points in the corners and center of each field with a Trimble R4 Global Positioning System (GPS) (Trimble company, Sunnyvale, California, United States; centimeter accuracy) to georeference the DSM and orthomosaic. The whole automatic process involved three main stages, as follows: (1) aligning images, in which the software searched for common points and matched them, to estimate the camera position in each one, and calculated the camera calibration parameters; (2) building field geometry (dense 3D point cloud and DSM) by applying the Structure from Motion (SfM) technique to the images (Figure 2a); and (3) orthomosaic generation through the projection of individual images over the DSM. The described methodology used to build accurate geomatic products in woody crops has been validated in previous research [38,62]. The DSMs, which represent the overflown area and reflect the irregular geometry of the ground and plant shape, were saved in a grayscale tiff format and joined to the orthomosaic, producing a 4-band multi-layer file (R, G, B, and DSM) (Figure 2b). The DSMs were mainly employed to isolate and classify vines, as explained in [9]. The aerial images were taken in early February 2016 and late January 2017 with a quadrocopter UAV platform model MD4-1000 (Microdrones GmbH, Siegen, Germany) equipped with a commercial off-the-shelf camera, model Olympus PEN E-PM1 (Olympus Corporation, Tokyo, Japan). This low-cost RGB (R: red; G: green; B: blue) camera is composed of a 17.3 x 13.0 mm sensor, capable of acquiring 12.2-megapixel spatial resolution images with an 8-bit radiometric resolution and is equipped with a 14 mm focal length. The flight routes based on the waypoint navigation system were designed to take photos continuously at a 30 m flight altitude with a forward overlap of 90% and a side overlap of 60%, large enough to achieve a 3D reconstruction of vineyards according to previous research [9], and leading to a spatial resolution of 1 cm/pixel, i.e., a ground sample distance (GSD) of 1 cm.pixel -1 , which is crucial for identification and mapping vegetation in early growth stages [3].
The UAV flights were authorized by the private company Raimat S.L, owner of the fields and the operations fulfilled the list of requirements established by the Spanish National Agency of Aerial Security, including the pilot license, safety regulations and limited flight distance (AESA).

Generation of the Digital Surface Model (DSM) and Image mosaicking
Geomatic products (DSM and orthomosaics) were generated using Agisoft PhotoScan Professional Edition software (Agisoft LLC, St. Petersburg, Russia) version 1.2.4 build 1874. The mosaic development process was fully automatic, with the exception of the manual localization of five ground control points in the corners and center of each field with a Trimble R4 Global Positioning System (GPS) (Trimble company, Sunnyvale, California, United States; centimeter accuracy) to georeference the DSM and orthomosaic. The whole automatic process involved three main stages, as follows: (1) aligning images, in which the software searched for common points and matched them, to estimate the camera position in each one, and calculated the camera calibration parameters; (2) building field geometry (dense 3D point cloud and DSM) by applying the Structure from Motion (SfM) technique to the images (Figure 2a); and (3) orthomosaic generation through the projection of individual images over the DSM. The described methodology used to build accurate geomatic products in woody crops has been validated in previous research [38,62]. The DSMs, which represent the overflown area and reflect the irregular geometry of the ground and plant shape, were saved in a grayscale tiff format and joined to the orthomosaic, producing a 4-band multi-layer file (R, G, B, and DSM) (Figure 2b). The DSMs were mainly employed to isolate and classify vines, as explained in [9].

Ground truth data
Training (i.e., selection of the optimum features) and validation of the DT-OBIA algorithm were carried out on the basis of a random on-ground sampling procedure conducted during the UAV flights in each vineyard. A set of 18 ground-truth 1 × 1 m frames for C-16 and C-17, and 24 similar frames for A-16 and B-16 were distributed in the inter-rows of each field to ensure that the entire field had an equal chance of being sampled without operator bias [63]. Every sampling frame was georeferenced and photographed (Figure 3b), and was employed to visually identify bermudagrass infestation within the cover crops.

Ground Truth Data
Training (i.e., selection of the optimum features) and validation of the DT-OBIA algorithm were carried out on the basis of a random on-ground sampling procedure conducted during the UAV flights in each vineyard. A set of 18 ground-truth 1 × 1 m frames for C-16 and C-17, and 24 similar frames for A-16 and B-16 were distributed in the inter-rows of each field to ensure that the entire field had an equal chance of being sampled without operator bias [63]. Every sampling frame was georeferenced and photographed (Figure 3b), and was employed to visually identify bermudagrass infestation within the cover crops.

Ground truth data
Training (i.e., selection of the optimum features) and validation of the DT-OBIA algorithm were carried out on the basis of a random on-ground sampling procedure conducted during the UAV flights in each vineyard. A set of 18 ground-truth 1 × 1 m frames for C-16 and C-17, and 24 similar frames for A-16 and B-16 were distributed in the inter-rows of each field to ensure that the entire field had an equal chance of being sampled without operator bias [63]. Every sampling frame was georeferenced and photographed (Figure 3b), and was employed to visually identify bermudagrass infestation within the cover crops.  The very high spatial resolution of the UAV images made it possible to conduct manual digitization of cover crop, bermudagrass plants, and bare soil in every sampling frame by weed experts, creating a vector shapefile of the ground truth data of each vineyard ( Figure 4).

of 23
The very high spatial resolution of the UAV images made it possible to conduct manual digitization of cover crop, bermudagrass plants, and bare soil in every sampling frame by weed experts, creating a vector shapefile of the ground truth data of each vineyard ( Figure 4). The research was divided into two parts: firstly, DT-based Machine Learning analysis was carried out to select the optimum features for C. dactylon discrimination, and secondly, object-based image analysis was performed to map C. dactylon in the interrow cover crops and the developed OBIA algorithm was evaluated. Therefore, the field data set was divided into two independent sub-sets: 1) C-16 and C-17 fields were employed as training parcels to model and evaluate the decision tree, and 2) A-16 and B-16 fields were used as validation parcels to evaluate the OBIA algorithm for C. dactylon, cover crop, vines and bare soil mapping, as explained in the following sections.

Image Segmentation and Definition of Object-Based Features
This first part of this experiment consisted of defining the most effective features to discriminate cover crops, bare soil, and bermudagrass using ground truth data from C-16 and C-17 fields by DT modeling. To that end, a multi-resolution segmentation algorithm (MRS) included in the eCognition Developer 9.2 software (Trimble GeoSpatial, Munich, Germany) was used to segment the orthomosaics in objects that delineate the plant borders, and to generate the object-based framework. MRS is a bottom-up segmentation algorithm based on a pairwise region merging technique in which, on the basis of several parameters defined by the operator (scale, color/shape, smoothness/compactness), the image is subdivided into homogeneous objects. Visual assessment of segmentation outputs was used to fix the optimal values of scale, color, shape, smoothness and compactness at 5, 0.7, 0.3, 0.5, and 0.5, respectively. Once the ground truth data (cover crops, bare soil and bermudagras objects) were correctly identified in the orthomosaics, features were extracted from images.
The object-based framework offers the possibility of computing spectral and textural features of each object in the image [64], therefore providing more information to enhance the power to discriminate heterogeneous classes [65]. Three groups of object features were extracted and evaluated in this research, as defined in Table 2. The first group corresponded to object spectral information based on the mean, mode and standard deviation (SD), which were calculated for each R, G, and B bands from the values of all the pixels forming an object. The SD value indicates the degree of local variability of pixel values within the object, and the mode is the value most likely to be sampled. For the second group, eight object Vegetation Indices (VIs) derived from the aforementioned bands were created. VIs are ratios or linear combinations of bands that take The research was divided into two parts: firstly, DT-based Machine Learning analysis was carried out to select the optimum features for C. dactylon discrimination, and secondly, object-based image analysis was performed to map C. dactylon in the interrow cover crops and the developed OBIA algorithm was evaluated. Therefore, the field data set was divided into two independent sub-sets: (1) C-16 and C-17 fields were employed as training parcels to model and evaluate the decision tree, and (2) A-16 and B-16 fields were used as validation parcels to evaluate the OBIA algorithm for C. dactylon, cover crop, vines and bare soil mapping, as explained in the following sections.

Image Segmentation and Definition of Object-Based Features
This first part of this experiment consisted of defining the most effective features to discriminate cover crops, bare soil, and bermudagrass using ground truth data from C-16 and C-17 fields by DT modeling. To that end, a multi-resolution segmentation algorithm (MRS) included in the eCognition Developer 9.2 software (Trimble GeoSpatial, Munich, Germany) was used to segment the orthomosaics in objects that delineate the plant borders, and to generate the object-based framework. MRS is a bottom-up segmentation algorithm based on a pairwise region merging technique in which, on the basis of several parameters defined by the operator (scale, color/shape, smoothness/compactness), the image is subdivided into homogeneous objects. Visual assessment of segmentation outputs was used to fix the optimal values of scale, color, shape, smoothness and compactness at 5, 0.7, 0.3, 0.5, and 0.5, respectively. Once the ground truth data (cover crops, bare soil and bermudagras objects) were correctly identified in the orthomosaics, features were extracted from images.
The object-based framework offers the possibility of computing spectral and textural features of each object in the image [64], therefore providing more information to enhance the power to discriminate heterogeneous classes [65]. Three groups of object features were extracted and evaluated in this research, as defined in Table 2. The first group corresponded to object spectral information based on the mean, mode and standard deviation (SD), which were calculated for each R, G, and B bands from the values of all the pixels forming an object. The SD value indicates the degree of local variability of pixel values within the object, and the mode is the value most likely to be sampled. For the second group, eight object Vegetation Indices (VIs) derived from the aforementioned bands were created. VIs are ratios or linear combinations of bands that take advantage of differences in the Remote Sens. 2020, 12, 56 8 of 23 reflectance of vegetation between wavelengths. The selected VIs are related to vegetation conditions and plant structure and have been widely used for agricultural studies because of their potential to highlight vegetation characteristics crucial for class differentiation [57,66]. In the third group, seven object textural features based upon the gray-level co-occurrence matrix (GLCM) were calculated by determining how often pairs of pixels with specific values and in a specified spatial relationship occur in an image [67]. Textural information has shown potential to improve the detection of weeds [64,68]. The textural features herein evaluated have been considered the most relevant statistical parameters extracted from the GLCM [69]: the Homogeneity and Dissimilarity features measure high or low object pixel uniformity, respectively; the Entropy feature is related to object pixel disorder; the Contrast feature measures the local variations in the image; the Standard Deviation feature is a measure of the dispersion of values around the mean; the Ang. 2nd Moment measures the homogeneity of the image; and the Correlation feature measures the linear dependency of gray levels of neighboring pixels [70].

Mode
Most common value

Vegetation indices
Excess green Excess green minus excess red Color index of vegetation After [50] a Parameters: P Obj = {(x, y):(x, y)∈Obj}; set of pixels of an image object. #P Obj = total number of pixels contained in P Obj . C k (x, y) = image layer value at pixel (x, y); where (x, y) are pixel coordinates. R, G, B, represent object mean Red, Green and Blue value for all pixels forming the object. i = the row number of the co-occurrence matrix. j = the column number of the co-occurrence matrix. P i,j = the normalized value in the cell i,j; P i,j = where, V i,j = the value in the cell i,j of the co-occurrence matrix. N = the number of rows or columns of the co-occurrence matrix. a = 0:667 as in its reference.

Decision Tree Modeling and Model Evaluation
The extracted object features (spectral, VIs and textural) constituted the data pool for creating, pruning, interpreting, and evaluating the DTs of each training parcel. Modeling was performed using the recursive Partitioning platform of the statistical software JMP 12.0.1 (SAS Institute Inc., Cary, NC, USA). The tree was built by binary recursive splitting of the training set and selecting the feature that best fit the partial response in every split. The partition algorithm chooses optimum splits from a large number of possible ones by the largest likelihood-ratio chi-square (G 2 ) statistic, commonly used in assessing goodness of fit in multivariate statistics [57,71]. The G 2 statistic involves the ratios between the observed (f ) and expected (f i ) frequencies, as expressed in the equation (1). In either case, the split is chosen to maximize the difference in the responses between the two branches of the split (2).
A five-fold cross-validation procedure was performed for parameter adjustment and model evaluation, i.e., dividing the entire data into five subsets, and testing the model developed from four folds on the fifth fold, repeated for all five combinations, and averaging the rate predictions. The Global Accuracy (GA), Correct Classification C. dactylon Rate (CCCR, the percentage of C. dactylon ground truth data correctly classified by the model), Receiver Operating Characteristic (ROC) curve and the root mean square error (RSME) derived from the process were used to select the model. CCCR is the percentage of C. dactylon objects correctly classified, while GA indicates the total percentage of correctly classified objects. ROC involves the count of true positives by false positives as frequencies accumulate across a rank ordering measured by the area under the ROC curve: the greater the area under the curve, the more accurate the test/prediction model. Since the objective of using DT models was the identification of meaningful and robust features for weed discrimination, similar results in the DT for every field were observed. Finally, the best DT was chosen by selecting the optimal features that yielded the higher accuracy, and was then used for C. dactylon mapping in the next part of this study.

Object-Based Image Analysis
After DT-based multivariate analysis was carried out at the training parcels to select the optimum features, object-based image analysis was performed in the validation parcels to develop the algorithm for mapping C. dactylon in vineyards under a cover crop system and quantify its correctness.

OBIA Algorithm Development
The features selected by the DT models were used to develop a novel and robust OBIA algorithm to generate a four-class map (i.e., vine, cover crop, C. dactylon, and bare soil). For this end, A-16 and B-17 vineyard geomatic products, i.e., DSM and orthomosaics, were employed to assess the transferability of the model to different UAV image subsets captured at different times and locations.

OBIA Model Validation
The performance of the OBIA classification algorithm was evaluated by comparing the results obtained in the classified map of each validation parcel (A-16 and B-16) with their ground truth data. The accuracy was assessed in terms of thematic and geometrical typification, as the spatial locating and the class of objects were evaluated. An object was considered as correctly classified when it coincided with a ground truth data in terms of position, area covered and class. All these parameters are relevant as errors in weed coverage and weed density might affect the decision-making process of crop management [3,64]. Then, a confusion matrix was created for each classified orthomosaic providing the Overall Accuracy (OA), which indicates the percentage of correctly classified pixels, and the User's accuracy (UA), defined as the percentage of classified pixels of each class that coincide with the verified ground-truth map, indicating how well training-set pixels were classified [72]. This area-and location-based validation approach herein performed overcomes the site-specific accuracy assessment limitations associated with pixel-based classification applied to object-based image analysis [73].

Machine Learning Analysis-Features Selected
DT models selected the object-based features and their cutting instructions that best separated every class ( Figure 5). The same DT scheme was found for both training parcels, which indicates a high robustness in the feature selection and split decisions, given the diversity of the studied vineyards.
Remote Sens. 2019, 11, x FOR PEER REVIEW 12 of 23 of crop management [3,64]. Then, a confusion matrix was created for each classified orthomosaic providing the Overall Accuracy (OA), which indicates the percentage of correctly classified pixels, and the User's accuracy (UA), defined as the percentage of classified pixels of each class that coincide with the verified ground-truth map, indicating how well training-set pixels were classified [72]. This area-and location-based validation approach herein performed overcomes the site-specific accuracy assessment limitations associated with pixel-based classification applied to object-based image analysis [73].

Machine learning Analysis-Features selected
DT models selected the object-based features and their cutting instructions that best separated every class ( Figure 5). The same DT scheme was found for both training parcels, which indicates a high robustness in the feature selection and split decisions, given the diversity of the studied vineyards. The model consisted of two splits, thus making the model easy for implementation in a classification algorithm. The first split was based on discriminating between bare soil and vegetation using the ExR vegetation index. ExR is a redness index widely used to identify soil [74] and emphasize the brown color of some land uses [66], allowing a good separation from green color classes. Vegetation classes (C. dactylon and cover crop) were discriminated in the second split by means of the VEG index, as C. dactylon plants showed very low greenish vigor due to the dormancy period. Similar results were reported by [57], where the VEG index was required to discriminate between tomato fields and safflower in early-summer on the basis of the differences in greenness at that time. Table 3 shows the importance of each selected feature by means of its contribution to the total G 2 statistic. ExR was the feature that predominantly contributed to the DT built for every training parcel, with values of 59% for C-16 and 92% for C-17, followed by VEG, which contributed 41% and 8% to the overall G 2 of the respective models. These results reflected that a larger difference in the spectral response was found for the bare soil data than for the C. dactylon and cover crop grouping, which also implied that the spectral information of C. dactylon and cover crop was more closely associated.  The model consisted of two splits, thus making the model easy for implementation in a classification algorithm. The first split was based on discriminating between bare soil and vegetation using the ExR vegetation index. ExR is a redness index widely used to identify soil [74] and emphasize the brown color of some land uses [66], allowing a good separation from green color classes. Vegetation classes (C. dactylon and cover crop) were discriminated in the second split by means of the VEG index, as C. dactylon plants showed very low greenish vigor due to the dormancy period. Similar results were reported by [57], where the VEG index was required to discriminate between tomato fields and safflower in early-summer on the basis of the differences in greenness at that time. Table 3 shows the importance of each selected feature by means of its contribution to the total G 2 statistic. ExR was the feature that predominantly contributed to the DT built for every training parcel, with values of 59% for C-16 and 92% for C-17, followed by VEG, which contributed 41% and 8% to the overall G 2 of the respective models. These results reflected that a larger difference in the spectral response was found for the bare soil data than for the C. dactylon and cover crop grouping, which also implied that the spectral information of C. dactylon and cover crop was more closely associated. The VIs selected in the DT models provided a high accuracy in data classification (Table 4). High GA values were found in both training vineyards analyzed, and all of them were higher than 97%. Similarly, the accuracy statistic that evaluated the weed classification correctness (CCCR) reported values close to the maximum, indicating that this DT model may be well suited for C. dactylon mapping. In terms of individual accuracy for each class, large values of area under the ROC curve were obtained for each one, being higher than 0.95 for all cases, pointing out an excellent test according to the traditional academic point system [75]. Moreover, low RMSE values were achieved in the classifications (<0. 16), showing an excellent fit of the model to the ground truth data. No information from any other evaluated object feature group, i.e., spectral features based on the mean, mode, SD and textural ones, was selected for the DTs, although texture metrics have often been used for weed detection as this enhances the separation of spectrally similar image regions [49,76]. In that context, [68] combined spectral and textural features to improve the accuracy of a two-class discrimination problem composed of C. dactlylon patches and sugarcane rows. For that purpose, the authors tested several window sizes in a pixel-based analysis with a single VI, as well as a dataset of textural features very suitable for separating the two classes by capturing the textural transition between them. In our experiment, which consisted of a four-class discrimination issue, the DSM-based OBIA approach enabled us to isolate the vines using the height parameter, as explained by [9], which has been shown to be a more accurate and efficient alternative to crop isolation in spectral similarity scenarios. Moreover, eight VIs were tested, which increased the likelihood of selecting a well-functioning VI, and proved to be more suitable than textural information, possibly due to the larger number of classes involved in this experiment.
These results showed that ExR and VEG are suitable for the accurate discrimination of C. dactylon, bare soil, and cover crop. However, the use of these VIs as a feature to classify these land uses in a vineyard is only practicable within the context of OBIA, as it requires every individual plant in the field to be identified through a segmentation process, thus overcoming the limitations of pixel heterogeneity and spectral similarity of the pixel-based method. Therefore, the combination of DT and OBIA enabled the efficient selection of features for the discrimination of land uses in the inter-row vineyards. Consequently, these optimum features should be used to develop the C. dactylon classification algorithm in the next part of this experiment.

Image Analysis
Once the optimal features to discriminate C. dactlylon, bare soil and cover crops were selected, a novel OBIA algorithm was developed and validated for the analysis of the high resolution UAV imagery.

Description of the OBIA-Algorithm Developed Using DT Modeling
The most effective features identified by the DT model were implemented in the OBIA algorithm for C. dactylon mapping, which was developed using the Cognition Network programming language with the eCognition Developer 9.2 software (Trimble GeoSpatial, Munich, Germany). The algorithm was based on the versions fully described in our previous work and used for the 3D characterization of grapevines [9], in which vines were identified and vine geometric features computed. However, land covers in the inter-row were not detected. Therefore, the new version presented here is original and also includes mapping of the inter-row classes: cover crop, C. dactylon, and bare soil. The algorithm is fully automatic as it does not require user intervention, and is self-adaptive to the different conditions of fields, such as the slope; vine size; row-orientation; row and vine spacing; row gaps; and vegetation growing in the cover crop, whether natural or sown, grass or legume. The algorithm consisted of a sequence of phases (Figure 6), as follows: 1.
Vine classification: vine objects were automatically identified and classified on the basis of the DSM information, thus avoiding misclassification as a cover crop or weed due to spectral similarity, as described by [9]. Firstly, chessboard segmentation was performed for object generation. Then, the DSM standard deviation feature was used to define "vine candidates", and a subsequent analysis at a pixel level comparing their DSM value with that of the surrounding soil square enabled the refinement of vine object delimitation and classification of the rest of the land covers as not-vineyard. The use of this approach to identify vine objects has great advantages as it prevents errors due to the eventual field slope, and decreases the computational time of the full process, without penalizing the segmentation accuracy [9]. 2.
Inter-row land cover classification: once the vines were identified, the remaining land covers in the vineyard were classified by the following three steps:

2.1
Segmentation: the orthomosaic was segmented with the MRS algorithm using the spectral (R, G, and B) information. MRS is a bottom-up segmentation algorithm based on a pairwise region merging technique involving several parameters (scale, color/shape, smoothness/compaction) definition to subdivide the image into homogeneous objects; plant objects in this research. The values of these parameters were set to 5, 0.3, 0.5, and 0.5 for scale, color, shape, smoothness, and compactness, respectively, to generate objects adjusted to the actual shape of cover crop and weed plants. They were obtained in a preliminary study using a large set of vineyard plot imagery.

2.2
Bare soil thresholding: following the results obtained in the DT analysis, the bare soil objects were first separated from the vegetation (cover crop and C. dactylon) using the ExR index. The automatic selection of the optimal threshold value in each image was carried out by implementing the Otsu method (an iterative threshold approach defined by [77]) in the algorithm according to [78].

2.3
Cover crop and C. dactylon classification: once the bare soil was separated, the remaining objects of the image, corresponding to vegetation, were discriminated and classified using the VEG index based on the DT results. The optimal threshold value to separate cover crop and bermudagrass was automatically obtained in each image using the Otsu method. Therefore, no user intervention was necessary at any stage of the classification.

3.
C. dactylon mapping: a classified map composed of the vines, bare soil, cover crop plants and C. dactylon patches was generated. From the map, the OBIA algorithm identified every vine, bermudagrass and cover crop plant, and their geographic coordinates and surface values were reported.

Evaluation of the DT-OBIA algorithm for weed mapping
A classified map was generated by the described OBIA algorithm for each validation parcel, A-16, and B-16 (Figure 7), and UAV image subsets not used in the first part of this study. The algorithm automatically classified each object as vine, cover crop, C. Dactylon, or bare soil, using both the spatial information and the features selected in the DT analysis to create a georeferenced map, where x and y coordinates were attributed to every object and their geometric characteristics (area, height, and shape) were calculated and exported.

Evaluation of the DT-OBIA Algorithm for Weed Mapping
A classified map was generated by the described OBIA algorithm for each validation parcel, A-16, and B-16 (Figure 7), and UAV image subsets not used in the first part of this study. The algorithm automatically classified each object as vine, cover crop, C. dactylon, or bare soil, using both the spatial information and the features selected in the DT analysis to create a georeferenced map, where x and y coordinates were attributed to every object and their geometric characteristics (area, height, and shape) were calculated and exported. The vines were correctly identified with an accuracy higher than 93% based on the previous study performed by [9], which showed algorithm robustness for adapting to different vineyard scenarios, as A-16 and B-16 consisted of small young vines and many gaps (missing vine plants) due to the early age of the vineyard plantations of these validation parcels. Once the vines were separated on the basis of DSM information, thereby overcoming the spectral similarity between vines and the rest of the vegetation (cover green and weeds), the algorithm mapped the bare soil, cover crop, and C. dactylon with a high accuracy. The classification statistics from the confusion matrix for each classified map are shown in Table 5.  16), with values very close and higher than the established criteria of 85% for successful land cover categorization [79]. In addition, the obtained results far outperformed the accuracy criteria for complex vegetation classifications stated as being 60% [80]. In that sense, an OA criteria of 80% for the correct classification of weeds has been set for very complex scenarios, such as weed discrimination within rows or at a broad-scale [3,81]. Additionally, mapping weeds within cover crops is considered a major challenge in precision viticulture [31]. Moreover, the accuracy The vines were correctly identified with an accuracy higher than 93% based on the previous study performed by [9], which showed algorithm robustness for adapting to different vineyard scenarios, as A-16 and B-16 consisted of small young vines and many gaps (missing vine plants) due to the early age of the vineyard plantations of these validation parcels. Once the vines were separated on the basis of DSM information, thereby overcoming the spectral similarity between vines and the rest of the vegetation (cover green and weeds), the algorithm mapped the bare soil, cover crop, and C. dactylon with a high accuracy. The classification statistics from the confusion matrix for each classified map are shown in Table 5. Satisfactory OA results were obtained for both maps (89.82% in A-16 and 84.03% in B- 16), with values very close and higher than the established criteria of 85% for successful land cover categorization [79]. In addition, the obtained results far outperformed the accuracy criteria for complex vegetation classifications stated as being 60% [80]. In that sense, an OA criteria of 80% for the correct classification of weeds has been set for very complex scenarios, such as weed discrimination within rows or at a broad-scale [3,81]. Additionally, mapping weeds within cover crops is considered a major challenge in precision viticulture [31]. Moreover, the accuracy assessment in our research work was performed in both thematic and geometrical typing, providing classified objects that were correctly identified and located.
The lower accuracy obtained in B-16 could be due to the frequent variability inherent in field condition experiments, making plants to be slightly less advanced in terms of the growth stage. This parcel belonged to a field experiment on cover crops for vineyard management and the experts reported less plant emergencies and growth than expected. These circumstances could have caused the cover crop plants to be reduced in size and also smaller than objects created by the segmentation process, thus forming mixed objects of cover green and bare soil or bermudagrass, and leading to misclassifications. Moreover, the manual delineation of these tiny plants might have been slightly imprecise and not fully concordant with the actual data. Accordingly, this issue could be solved by employing a lower segmentation scale parameter in the MRS algorithm, so that smaller objects fitted to the borders of those tiny cover green plants are generated. The scale parameter controls the final object size by limiting its heterogeneity, more strongly affecting the segmentation outputs than the remaining MRS settings, and also the classification accuracy [78,82]. However, the scale parameter also has strong implications in terms of time and computational cost. The lower the scale, the longer the time involved in the process. Moreover, a lower scale means adapting the OBIA algorithm to this special field situation and reducing the algorithm robustness. Consequently, a good solution might be to wait for the green cover plants to be slightly more advanced in growth and become larger, and before C. dactylon reaches the vegetative stage, to avoid spectral similarity. Taking images rapidly and at the optimum time is crucial for accurate bermudagrass detection whithin cover crops, which is only feasible using UAV platforms due to their flexibility of flight scheduling and fast acquisition.
A very high level of accuracy was reached in C. dactylon UA, with values higher than 98% for both validation parcels (Table 5). These results indicated that classified C. dactylon objects actually represented the category on the ground with very a high probability, according to [72]. Furthermore, complementarily to UA, very low values of commission error in the C. dactylon classification were achieved, showing the proportion of bare soil and cover crop misclassified as C. dactylon, which was lower than 2.0% in both maps. This means that the overclassification rate was less than 2.0 % in both parcels. Based on these results, if the C. dactylon maps would be used for herbicide application in the context of PV strategies, only 17.4% of the surface would require treatment in the case of A-16, thus leaving the remaining 82.6% without any treatment, as it was composed of cover crops and bare soil. Similarly, the area to treat would be 41.4% for B-16 and the herbicide-free surface would consist of 58.6%. Moreover, the use of bermudagrass maps would allow farmers to keep cover crop-based farming systems and their great benefits to the vineyard, as well as herbicide treatment with minimal overapplication (<2.0%), therefore complying with the European legal framework. In addition to these aforementioned benefits, these maps could also optimize fuel, the field operating time, and costs. Similarly, [22] reported large potential savings from site-specific C. dactylon maps using UAV imagery in the context of an OBIA approach. However, they conducted the experiment in an organic vineyard consisting of tilled soils in the inter-rows, i.e., without cover crops, and in early summer, when C. dactylon patches infesting the inter-row were at the vegetative growth stage, showing a green color. Therefore, the vineyard scenario was not as complex as the one herein studied, where four classes with high spectral similarity were discriminated. In addition, the time at which they performed the experiment would not treatments to be carried out at the optimal moment, so those maps should be used in the subsequent years and farmers would assume the risk of allowing C. dactylon to grow in the vineyards. Therefore, our experiments are considered an advanced step in controlling this complicated weed at the right time.
The full process, consisting of acquiring and mosaicking UAV images and running the OBIA algorithm, took less than 48 hours. The high procedure speed would allow farmers to use the C. dactylon map in the critical period for control, i.e., in the herbicide application window, which is crucial for weed control efficiency. The application window corresponds to the bermudagrass regrowth period, usually soon after the convenient time for C. dactylon detection, as explained above. Delaying the herbicide application may reduce the herbicide effectiveness [83] and thus, C. dactylon control.
In general, the DT-OBIA algorithm automatically and accurately mapped the four classes in the vineyard, i.e., vines, bare soil, cover crop, and C. dactylon. First, the use of DSM-based spatial information for vine identification, and then, the VIs selected by the DT model, were employed to classify C. dactylon, cover crop, and bare soil. These results therefore confirmed the suitable feature selection by DT models in the previous machine learning analysis. The classified map showed the position and surface value of every plant in the vineyard, including cover crops. Therefore, these maps may have multiple applications for PV purposes, for example, to plan cover management strategies in accordance with the covered surface, density, or plant height, as well as to define site-specific vine management according to plant size, gaps, or spectral information-based health status. In addition, the Otsu method has been implemented in the developed OBIA algorithm, which is able to automatically estimate the optimal threshold value that sets the breakpoint between classes for the vegetation indices. Therefore, this OBIA algorithm overcomes the problem of DTs assuming hard boundaries among land-cover classes [60], as it automatically selects a threshold based on imagery data and following a stable rule set, thus allowing an unsupervised classification [78].
The combination of UAV imagery and the DT-OBIA algorithm enables the automatic, accurate, and timely mapping of C. dactylon within cover crops in vineyards, considering the variety of situations and years evaluated in this study. This is feasible due the high overlap and spatial resolution of UAV-imagery to create 3D models; the flexibility of flight scheduling to take images at a convenient time for bermudagrass detection, i.e., when it is at a latency stage and cover crops are in the vegetative stage; and the high analysis capacity of the OBIA techniques to overcome spectral similarity issues. Using this technological combination could help farmers to control C. dactylon infesting cover crops and increase the vineyard profitability, as one of the large benefits of maintaining cover crops in the inter-row, as well as a more efficient use of herbicides due to the very low rate of over-application, reducing potential environmental impacts. These PV practices comply with the decision making to European Union's (EU) Directives included in the Common Agricultural Policy. More specifically, PV strategies are part of the agronomical basis of the current regulatory framework governing the Sustainable Use of Plant Protection Products (Directive 2009/128/EC), and the European Horizon2020 Research and Innovation programme, which concern agricultural digitization and input use that fosters the development of alternative strategies that limit or eliminate its usage.

Conclusions
As part of an overall research program to implement ICM systems in vineyards, a novel, automatic, and robust UAV-based DT-OBIA algorithm has been developed for the quick and accurate mapping of bermudagrass infesting the cover crops in vineyards. The spectral similarity of this complex scenario composed of vines, cover crops, C. dactylon and bare soil was overcome by the implementation of height information from DSM and features selected in the machine learning analysis based on DT models in the OBIA algorithm.
The vines were correctly identified by the algorithm based on spatial information from the DSM, thus avoiding misclassification as cover crop or weeds due to the spectral similarity. The remaining classes were discriminated using the suitable features selected from the DT models. Finally, the algorithm automatically and accurately mapped the vines, cover crops, C. dactylon, and bare soil in the validation parcels for site-specific herbicide treatment.
Another interesting aspect of this research is the high speed of the full procedure of taking and analyzing UAV images that enables weed maps to be designed as quickly as two days after a farmer´s requests, meaning that it is timely for C. dactylon control in the herbicide application window. Therefore, the combination of UAV imagery and the DT-OBIA algorithm would allow farmers to control C. dactylon and thus maintain cover crop-based management systems and their consequent benefits in the vineyards. In addition, farmers would comply with the European legal framework for the implementation of ICM systems and the sustainable use of agricultural inputs, by just applying alternative strategies that limit their usage, and also reduce potential environmental impacts caused by over-application.