scieee AI-readable full text Open interactive document viewer

An Agave Counting Methodology Based on Mathematical Morphology and Images Acquired through Unmanned Aerial Vehicles

Calvario Sánchez, Gabriela,Alarcón Martínez, Teresa Efigenia,Dalmau, Oscar,Sierra Araujo, Basilio,Hernández Gómez, María del Carmen

Abstract

This research was supported by the Spanish Ministerio de Economía y Competitividad, contract TIN2015-64395-R (MINECO/FEDER, UE), as well as by the Basque Government, contract IT900-16. This work was also supported in part by CONACYT (Mexico), grant 258033.

Full text

sensors Article An Agave Counting Methodology Based on Mathematical Morphology and Images Acquired through Unmanned Aerial Vehicles Gabriela Calvario 1, Teresa E. Alarcón 2,*, Oscar Dalmau 3, Basilio Sierra 4 and Carmen Hernandez 4,5 1Department of Electronics, Systems, and Informatics, ITESO—The Jesuit University of Guadalajara, Tlaquepaque, Jalisco 45604, Mexico; [email protected] 2Departamento de Ciencias Computacionales e Ingenierías, Centro Universitario de los Valles, Ameca, Jalisco 46600, Mexico 3Centro de Investigación en Matemáticas, Guanajuato 36023, Mexico; [email protected] 4Departamento de Ciencias de la Computación e Inteligencia Artificial, Universidad del País Vasco UPV/EHU, 20018 Donostia-San Sebastián, Spain; [email protected] (B.S.); [email protected] (C.H.) 5Centre for the Research and Technology of Agro-Environmental and Biological Sciences, CITAB, Universidade de Trás-os-Montes e Alto Douro, UTAD, 5000-801 Vila Real, Portugal *Correspondence: [email protected] Received: 29 September 2020; Accepted: 28 October 2020; Published: 2 November 2020   Abstract: Blue agave is an important commercial crop in Mexico, and it is the main source of the traditional mexican beverage known as tequila. The variety of blue agave crop known as Tequilana Weber is a crucial element for tequila agribusiness and the agricultural economy in Mexico. The number of agave plants in the field is one of the main parameters for estimating production of tequila. In this manuscript, we describe a mathematical morphology-based algorithm that addresses the agave automatic counting task. The proposed methodology was applied to a set of real images collected using an Unmanned Aerial Vehicle equipped with a digital Red-Green-Blue (RGB) camera. The number of plants automatically identified in the collected images was compared to the number of plants counted by hand. Accuracy of the proposed algorithm depended on the size heterogeneity of plants in the field and illumination. Accuracy ranged from 0.8309 to 0.9806, and performance of the proposed algorithm was satisfactory. Keywords: precision agriculture; UAV; data mining; computer vision; geomatics; crop monitoring 1. Introduction Blue agave is a succulent plant that grows in arid and warm areas [ 1 ]. Blue agave (see Figure 1) is a native Mexican plant, and it is the principal source for production of the traditional Mexican beverage known as tequila. Tequila producers need to estimate the yield of agave plantation in order to plan and predict production of the drink. The number of agave plants is one of the parameters that determines the yield of plantation; hence, the elaboration of tequila requires precise control and monitoring of the number of agave plants. Despite the existence of several modern techniques in Mexican agriculture, monitoring of the agave crop is mainly done manually with farm tools, which requires great effort to achieve good counting precision. According to our research, there are three main reasons that explain the predominant use of manual counting of agave plants in Mexico: the lack of information about the usefulness of image processing methods in agriculture, the lack of affordable and innovative techniques for agave monitoring, and the loss of jobs that this type of technology brings. Sensors 2020,20, 6247; doi:10.3390/s20216247 www.mdpi.com/journal/sensors Sensors 2020,20, 6247 2 of 21 Figure 1. Image of agave plantation: the image is from [2]. Although there are algorithms for counting plants [ 3 – 6 ], to the best of our knowledge, there is no reliable algorithm for agave counting. One limitation when applying state-of-the-art algorithms for agave plant counting is the overlap among plants that can be seen in Figures 1and 2. In this manuscript, we present an algorithm for counting agave plants which is very useful in monitoring agave plantation. The proposal is very important due to it allowing improvements in the estimation of Tequila production. Our algorithm is based on the agave segmentation methodology proposed by Calvario et al. [ 2 ], in which the scene was acquired through Unmanned Aerial Vehicle (UAV) and segmented by using k-means [ 7 ]. One drawback of the previous work is that it does not solve the overlap problem presented in agave plantation, which makes this algorithm useless for direct agave counting. The main contribution of this work is the elaboration of a methodology for agave counting in order to better control and monitor agave yield. We describe the implementation of agave counting algorithm based on the theory of mathematical morphology (MM) [ 8 , 9 ]. One advantage of MM is the computational efficiency, additionally, it does not require large image datasets to estimate the parameters of algorithms. 2. Related Work Remote sensing and digital image processing have contributed to precision agriculture. In particular, Unmanned Aerial Vehicles (UAVs) and image processing have been used in agriculture to better monitor and control the yield parameters of different crops. UAV can provide a very high image resolution even in terms of millimeters depending on the altitude of the flight and resolution of the camera [ 10 ]. This is very relevant for management and monitoring of the crop without being in direct contact and with a low cost [ 2 ]. On the other hand, digital image processing allows automatic or semiautomatic analysis of images and extracts useful information for farmers. In the literature, we can find methods that combine UAV technique with computer vision and artificial intelligence that allows for the extraction of useful information for agriculture such as segmentation of regions corresponding to a specific crop. Meanwhile, there are other methods that directly address the counting problem. In [ 10 ], the authors evaluated the performance of six different vegetation indices: Color index of vegetation (CIVE) [ 11 ], Excess green (ExG) [ 12 ], Excess green minus excess red (ExGR) [ 13 ], Woebbecke Index [ 12 ], Normalized green-red difference index (NGRDI) [ 14 ], and Vegetativen (VEG) [ 15 ] for studying wheat crop images acquired with a digital Red-Green-Blue (RGB) camera installed in UAV. In order to discriminate the wheat crop, they used Otsu’s method [ 16 ]. The authors assessed the accuracy, and spatial and temporal consistency of the mentioned indices and conclude that ExG and VEG contribute with the highest classification accuracy. The investigators in [ 17 ] proposed an OBIA [ 18 ] algorithm based on Otsu’s threshold method and thoroughly studied how different parameters of a multiresolution segmentation algorithm during the segmentation step affect the classification of vegetation coverage. In their research, they considered images of vegetation indices ExG [ 12 ] and the Normalized Difference Vegetation Index (NDVI) [ 19 ] to enhance the information about vegetation. The authors in [ 17 ] test the proposal for vegetation detection in UAV images Sensors 2020,20, 6247 3 of 21 acquired over three different crops: wheat, sunflower, and maize. In [ 20 ], the authors carried out research using images acquired from two UAV platforms: vertical taking off landing multi-rotor quadcopter and fixed wing UAV. In their proposal, they combined the spectral and spatial information. The purpose of that study was to detect crop tomato regions and to classify tree crown. In particular, they used Bayesian information criterion [ 21 ] to set the optimal number of clusters for a given image. Subsequently, they applied k-means [ 7 ] and Expectation Maximization (EM) [ 22 ] algorithms for clustering using spectral information. To improve clustering, they incorporated spatial information through an agglomerative approach based on majority voting method. On the other hand, Gnädinger and Schmidhalter [ 3 ] carried out research to demonstrate the efficiency of the UAV and image analysis as a possible technique for counting plants. In their study, they analyzed four different maize cultivars and the images were acquired by means of UAVs. In order to discriminate the ground cover from the cultivars, they used a thresholding technique. On average, they achieved an error ≤ 5% between visually and digitally counted plants. The authors in [ 23 ] considered 10 different vegetation indices and image classification from UAV-based RGB multispectral images for estimating the flower number in two different oilseed rape fields. The vegetation indices with bigger contribution to detect flowers are NGRDI [ 14 ], Red Green Ratio Index (RGRI) [ 24 ], and Modified Green Red Vegetation Index (MGRVI) [ 25 ]. For classification, they used k-means applied on L*a*b color space. Random Forest [26] was also included to predict the flower number. The authors in [ 4 ] proposed a spectral-spatial classifier based on a single hidden layer feed-forward neural network. The classifier uses RGB high-spatial-resolution images acquired from UAVs. The goal of the study was to detect, delineate, and count tree crowns. The input of the classifier was the RGB values of the pixels in the images, and the output was a binary response (tree or non-tree pixels). The authors carried out the spatial classification through thresholded geometrical property filtering techniques. The counting and delineation were done by means of the Watershed algorithm [27]. In [ 5 ], a system for the automatic quantification of wheat ear was proposed based on images acquired by an RGB conventional camera. The algorithm considers 3 steps: (1) detection of abrupt changes by means of Laplacian frequency filter [ 28 ], (2) median filtering to smooth the noise, and (3) a segmentation step using Find Maxima. The researchers developed an algorithm through the image analysis system ImageJ [ 29 ]. The algorithm achieved a success rate higher than 90% between the algorithm counts and the manual ear counts. The authors in [ 6 ] investigated a segmentation approach based on U-net [ 30 ] and a convolutional network net (CNN) [ 31 ], in combination with interpreted training data acquired by means of UAV-based high-resolution RGB imagery. The purpose of the research was to obtain a fine-grained mapping of vegetation species and communities. The authors in [ 6 ] achieved an accuracy of 84% and demonstrated that fusion between UAVs and artificial intelligence is applicable to a wide range of tasks in agriculture. Mathematical morphology (MM) is also a powerful tool for discriminating a wide range of shapes and sizes in the image structure. MM is based on a set operators that transform images taking into consideration their topological and geometrical properties. Among the properties are the size of the regions and the shape. The most important operators are dilation, erosion, opening, and closing [ 8 ]. In [ 32 ], the researchers proposed an approach in which they analyze images acquired through UAV by means of MM in order to detect failures in coffee crops. The objective of the proposal was to evaluate product quality and the optimal occupation of planted areas. The researchers in [ 33 ] proposed a technique based on deep learning and computational vision using UAV images with the purpose of counting corn plants. Kitano and collaborators [ 33 ] used the opening morphological operator to separate detected objects after the segmentation done by means of the U-net architecture [ 30 ]. Fan et al. [ 34 ] implemented an algorithm that combines a neural network with morphological operations and the Watershed algorithm [ 27 ]. The goal of their research was to detect and count tobacco plants. In [ 32 – 34 ], the MM allowed the separation between objects of interest, removing of holes and protrusions, which is very important to preserve the main features of the detected objects and, later, to carry out any counting algorithm. Sensors 2020,20, 6247 4 of 21 In [ 2 ], Calvario et al. proposed a methodology to discriminate agave plants using UAV, geomatics, and computer vision. The authors considered an UAV fixed flight to acquire agave plant images and the k-means algorithm for discriminating agave crops. Although this method has a good segmentation performance, it cannot be directly used for agave counting. Now, we propose a methodology for counting agave plants which is a continuation of the research done in [ 2 ]. Our proposal is based on the use of mathematical morphology. This strategy allows us to refine the solution provided in [ 2 ] and, at the same time, to obtain a good agave counting method. MM is a traditional image processing method [ 8 , 9 ] that does not require a training stage. For this kind of method, basically, hyperparameters are adjusted considering the features of the images of interest. Artificial neural networks have recently gained a lot of attention due to the application of deep learning techniques allowing for obtainmentn of excellent results in different machine learning tasks [ 35 ]. The cost of obtaining such results is the increasing complexity of the underlying model. Therefore, this type of model requires large databases during the training step, and in general, they are not practical when the number of data is very low. In order to reduce this problem, some data augmentation has recently been studied. In the case of agave plants, the number of reported labeled images is very low, and to the best of our knowledge, there are no labeled agave databases that allow us to train deep learning data-based modeling. The selection of MM as a computer vision tool is also justified by the problem we face after the segmentation in [ 2 ]: the overlap between the detected agave plants, and the variation in size and shape. MM has a good performance to extract information about the shape and size, which are important features that we include in the proposal described in Section 3. The structure of the manuscript in the following is as follows: Section 3details the studied images and the proposal; the discussion about the obtained results is provided in Section 4; and finally, the conclusions are given in Section 5. 3. Materials and Methods 3.1. Study Areas The study looked at three different fields, with agave plants of different sizes, concentrations, and ages 0. Table 1contains the geographical position, area, and age of agave plants for each studied field. Figures 2–4describe the features of each field. Table 1. Geographical position and area of studied subregions Field Geographical Position Age Area (ha) 1 20◦34032.2200 N, 102◦25010.0600 W 2–4 years 2.494 2 20◦44034.4900 N, 102◦27030.1400 W 4 years 0.4293 3 20◦40005.6900 N, 102◦39006.2300 W 4 years 4.018 Field 1 contains agave plants of different ages and sizes. Weed is another component of the field. Field 1 is of red clay type soil, and there is a color contrast between the plants and the soil. The overlap between plants is another important feature. Observe the areas represented by polygons in red, blue, and purple in Figure 2a–c. They demonstrate the above explanation. Field 2 is of rocky soil, and there is less contrast between the plants and the soil compared to Field 1. Similar to Field 1, there are plants of different sizes, but the overlap problem is less with respect to Field 1. Sensors 2020,20, 6247 5 of 21 (a) (b)(c)(d) Figure 2. Images of Field 1 obtained with an Unmanned Aerial Vehicle (UAV): ( a ) Field 1 with some marked regions that are studied in this work, ( b ) the region in blue, ( c ) the region in purple, and ( d ) the region in red. Sensors 2020,20, 6247 6 of 21 (a) (b)(c)(d) Figure 3. Images of Field 2 obtained with an UAV: ( a ) Field 2 with some marked regions that are studied in this work, (b) the region in blue, (c) the region in purple, and (d) the region in red. Field 3 is of the same red clay as in Field 1. The overlap problem and weeds are also present. Note that, in this case, the variability of plant sizes is lower than the variability in Fields 1 and 2. The sowing system of the blue agave is linear; see Figure 5. The lines can be made through a tractor, stakes, or manually with a thread. The furrows are distributed at a distance allowing for separation between the plant rows. Afterwards, a thread with marks is utilised to fix the needed distance between plants. Sensors 2020,20, 6247 7 of 21 (a) (b)(c)(d) Figure 4. Images of Field 3 obtained with an UAV: ( a ) Field 3 with some marked regions that are studied in this work, (b) the region in blue, (c) the region in purple, and (d) the region in red. Figure 5. Agave plantation: the zone surrounded by a circle zooms in on the lines of the sowing system. Sensors 2020,20, 6247 8 of 21 On average, the separation between each row is 3 to 4 m and the distance between plants is 1.00 to 1.20 m [ 36 ]. The diameter of the circle surrounding the plant width is about 1–2 m or more [ 37 ], so that one plant can be bigger than the distance between plants. This explains the overlap between plants. 3.2. Workflow This work improves the segmentation result in [ 2 ] so that we can use it for agave counting purposes. Therefore, the input of our method corresponds to the output of the proposal in [2]. Calvario et al. in [ 2 ] proposed a methodology based on photogrammetry and k-means algorithm. They use unmanned aerial vehicles of type Phantom 4, DJI, and the images are acquired with an RGB sensor with 6.25 mm × 4.68 mm and lens with a Field of View (FOV) of 94 ◦ 20 mm. The spatial and bit resolutions of the image are 4000 × 3000 and 8 bit per pixel, respectively [ 2 , 38 ]. The UAV flight is planned taking into account the topography and Google Earth information. According to the experimental work, the selected flight altitude was 60 meters. In this work, we follow this recommendation; see the details in [ 2 ]. Once the images are acquired through the UAV, the photogrammetric processing is carried out. Following this, the authors in [ 2 ] generated the corresponding orthomosaic; see Figure 6a, with a spatial resolution of about 3 cm per pixel. The obtained image is converted from RGB color space to CIELab in order to use the Euclidean distance criterion in a perceptual uniform space. Subsequently, k-means was applied to discriminate agave plants from the rest of objects in the image. The detected classes, agave plants and background, are validated using the ground truth and geographic system information. For more details, see [ 2 ]. An example of a segmented image, obtained in [ 2 ], appears in Figure 6b. The final representation of the results is given in RGB. (a) (b) Figure 6. Extraction of the agave layer: the image in ( a ) represents the agave crops without applying the plant extraction methodology in [ 2 ]. The image in ( b ) shows the agave detection layer (segmented image) after applying the methodology. Circles in red highlight the overlapping zones. Figure 6b depicts the input of our counting algorithm. Note the overlap problem in the segmentation results. The graphical representation of the elaborated algorithm is depicted in Figure 7. A detailed explanation of the algorithm is given in Section 3.3. Sensors 2020,20, 6247 9 of 21 Figure 7. Flow chart of the implemented agave counting algorithm based on mathematical morphology: the abbreviation CC stands for connected component. The grouping step is carried out by a thresholding method. The segmented image is the output of the proposal in [2]. 3.3. Implementation of Mathematical Morphology Operations for Counting Agave Plants The proposal is composed of 3 steps: preprocessing, object separation, and counting. 1. Preprocessing : The main aim of this step is to obtain a binary image as clean as possible so that we can achieve a good object separation in the next step. For this purpose, we carry out the following steps: • Firstly, we transform the segmented RGB color image into a gray-scale image by using the following equation: I=0.299 ∗R+0.587 ∗G+0.114 ∗B(1) where R , G , and B represent the red, green, and blue channels of the segmented image (Figure 8a) and Icorresponds to the gray-scale representation (Figure 8b). •Secondly, we binarize the previous image Iaccording to the following equation: I(r) = 1I(r)>0 0otherwise (2) • After the previous step, we typically achieve a noisy binary image with isolated points and holes. For this reason, we remove these artifacts in order to reduce false positives or false negatives during the counting process. For this step, we can use several image processing techniques. In particular, in this work, we use morphological filters, i.e., clean and fill Sensors 2020,20, 6247 16 of 21 (a) (b) (c) (d) Figure 14. ( a ) A polygon in blue in Field 2 (Figure 3), ( b ) an extracted agave layer by means of the methodology in [ 2 ], ( c ) agave plants counted by an expert (ground truth), and ( d ) agave plants detected by the proposal: those not detected appear in red (false negative), while false positives appear in purple. Unlike the example in Figure 13a, the segmented image given in Figure 14b through the methodology in [ 2 ] was affected by illumination problems. This fact is reflected by the results of our counting algorithm; see Figure 14d. In this case, we have not only false negatives but also false positives. False negatives appear in red, and false positives appear in purple. The counting done by an expert is illustrated in Figure 14c. Illumination problems in the given image affected the extraction of the agave plants, and as a consequence, it was impossible to count them all. This explains the false negative results when the proposal tries to detect very small plants. Further, the illumination problems bring about the false positive results; see the circles in purple in Figure 14d. The results shown in Figure 15 are similar to those in Figure 13. Very small plants were not detected, and the overlap problem affected counting. False positives (a circle in purple) are artifacts in the image due to the acquisition process in [2]. Sensors 2020,20, 6247 17 of 21 (a) (b) (c) (d) Figure 15. ( a ) A polygon in blue in Field 3 (Figure 4), ( b ) an extracted agave layer by means of the methodology in [ 2 ], ( c ) agave plants counted by an expert (ground truth), and ( d ) agave plants detected by the proposal; those not detected appear in red (false negative). The numerical results in Table 2give information about the performance of the counting algorithm applied on 3 regions in Field 1, Field 2, and Field 3; see Figures 2–4. In this table, the symbol S refers to the samples in Figures 2–4, while GT denotes the number of agave plants detected by an expert, i.e., the ground truth. The numerical information corresponds to applying the accuracy metrics described in Section 3.4. Table 2. Computed accuracy metrics. S TP FN FP GT Pacc Uacc Recall Acc Field 1-Blue 198 25 1 223 0.8879 0.9950 0.8979 0.9414 Field 1-Purple 336 33 9 369 0.9106 0.9739 0.9106 0.9422 Field 1-Red 344 70 11 414 0.8309 0.9690 0.9309 0.9000 Field 2-Blue 326 60 25 386 0.8446 0.9288 0.8446 0.8867 Field 2-Purple 99 6 13 105 0.9429 0.8839 0.9429 0.9134 Field 2-Red 177 8 7 185 0.9568 0.9620 0.9568 0.9594 Field 3-Blue 101 2 10 103 0.9806 0.9099 0.9806 0.9452 Field 3-Purple 192 7 25 199 0.9648 0.8848 0.9648 0.9248 Field 3-Red 78 5 15 83 0.9398 0.8387 0.9398 0.8892 Sensors 2020,20, 6247 18 of 21 We observe (see column FN ) that the number of false negatives in Field 1 is greater than in the rest of the fields. This is due mainly to the overlap problem and the variability in size and shape of plants in Field 1; see Figure 2. On the other hand, Field 3 has the least number of false negatives. In this field, the agave plants are more homogeneous in size and age. Although the overlap problem is also present, the area corresponding to each plant is more delimited in comparison with other two fields (Figures 3and 4. According to column FP in Table 2, the samples in Fields 2 and 3 have the highest false positives. In this case, the weed segmented as agave plants explains the number of FP s. From Table 2, it could be observed that the highest values of Pacc were obtained for samples in Fields 2 and 3, which is in correspondence with the lowest FN values over these samples. The highest value of Uacc corresponds to samples in Field 1 because this Field has the lowest number of FP s. The highest values of Acc and recall are achieved in samples of Fields 2 and 3. This is due to less variability in size and age and less overlap among the agave plants. The measure Acc achieved a value in the range from 0.8892 to 0.9594. Overall, the Acc for the nine considered regions is 0.8955. The proposed counting algorithm is able to detect a wide range of agave plants in size and age. This proposal has been applied on plantations located in Jalisco State, Mexico, and was verified by the Tequila Regulatory Council (CRT) in order to promote precision agriculture in Mexico. According to CRT, the obtained results are satisfactory and contribute towards the improvement of agave crop monitoring and therefore a better production control of the tequila drink [49]. 5. Conclusions and Future Work The number of blue agave plants is an important parameter for estimating the yield of plantation and for planning the production of Tequila, a Mexican beverage obtained from agave. In this work, an agave counting algorithm was proposed in order to improve the monitoring of agave crop and to control the yield of the plantation in Jalisco, Mexico. To the best of our knowledge, this is the first algorithm aimed at automatic counting of agave plants in Mexico. The proposed counting algorithm is based on mathematical morphology. This is a standard image-processing technique very useful for separating and counting structures by their size and shape; this justifies our choice. The proposal combines the results of a segmentation algorithm with the application of a well-structured sequence of morphological operations so as to achieve a good plant separation and, accordingly, reliable counting. The use of mathematical morphology allows us to reduce the overlap and lighting issues that are not fully resolved in the segmentation step. The proposed algorithm is able to separate agave plants and to preserve the main agave plant patterns, obtaining a reliable count with a producer’s accuracy in a range of 0.8309 to 0.9806. As feature work, we consider creating a database increasing the number of labeled agave plant images so that we can use supervised learning techniques like an artificial neural network and in particular deep learning techniques. Author Contributions: G.C. conceived the idea of the paper and conducted the research; B.S., T.E.A., and O.D. helped in the experimental design, formal analysis, and writing process; and C.H. analyzed the data and the results of the experiments. All the authors have taken part in the elaboration of this document. All authors have read and agreed to the published version of the manuscript. Funding: This research was supported by the Spanish Ministerio de Economía y Competitividad, contract TIN2015-64395-R (MINECO/FEDER, UE), as well as by the Basque Government, contract IT900-16. This work was also supported in part by CONACYT (Mexico), grant 258033. Acknowledgments: We wish to acknowledge the Consejo Nacional de Ciencia y Tecnologia (CONACYT) for its financial support to the PhD studies of Gabriela Calvario. We are grateful to ITESO–The Jesuit University of Guadalajara for the stimulating this work. In addition, we are grateful to the support of the Tequila Regulatory Council (CRT), which has allowed us to monitor several crops. Conflicts of Interest: The authors declare no conflict of interest. Sensors 2020,20, 6247 19 of 21 References 1. Flores-Sahagun, T.H.; Dos Santos, L.P.; Dos Santos, J.; Mazzaro, I.; Mikowski, A. Characterization of blue agave bagasse fibers of Mexico. Compos. Part A Appl. Sci. Manuf. 2013,45, 153–161. 2. Calvario, G.; Sierra, B.; Alarcon, T.; Hernandez, C.; Dalmau, O. A multi-disciplinary approach to remote sensing through low-cost uavs. Sensors 2017,17, 1411. [CrossRef] [PubMed] 3. Gnädinger, F.; Schmidhalter, U. Digital counts of maize plants by unmanned aerial vehicles (UAVs). Remote Sens. 2017,9, 544. [CrossRef] 4. Kestur, R.; Angural, A.; Bashir, B.; Omkar, S.N.; Anand, G.; Meenavathi, M.B. Tree crown detection, delineation and counting in uav remote sensed images: A neural network based spectral–spatial method. J. Indian Soc. Remote Sens. 2018,46, 991–1004. [CrossRef] 5. Fernandez-Gallego, J.A.; Kefauver, S.C.; Gutiérrez, N.A.; Nieto-Taladriz, M.T.; Araus, J.L. Wheat ear counting in-field conditions: High throughput and low-cost approach using RGB images. Plant Methods 2018 ,14, 22. [CrossRef] 6. Kattenborn, T.; Eichel, J.; Fassnacht, F.E. Convolutional Neural Networks enable efficient, accurate and fine-grained segmentation of plant species and communities from high-resolution UAV imagery. Sci. Rep. 2019,9, 17656. [CrossRef] 7. MacQueen, J. Some methods for classification and analysis of multivariate observations. In Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability; Volume 1: Statistics; University of California Press: Berkeley, CA, USA, 1967; pp. 281–297. 8. Dougherty, E. Mathematical Morphology in Image Processing; CRC Press: Boca Raton, FL, USA, 1992. 9. Jean, S.; Pierre, S. Mathematical Morphology and Its Applications to Image Processing; Springer: Amsterdam, The Netherlands, 1994. 10. Torres-Sánchez, J.; Peña, J.M.; Castro, A.I.D.; López-Granados, F. Multi-temporal mapping of the vegetation fraction in early-season wheat fields using images from UAV. Comput. Electron. Agric. 2014 ,103, 104–113. [CrossRef] 11. Kataoka, T.; Kaneko, T.; Okamoto, H.; Hata, S. Crop growth estimation system using machine vision. Int. Conf. Adv. Intell. Mechatron. 2003,2, 1079–1083. 12. Woebbecke, D.; Meyer, G.; Von Bargen, K.; Mortensen, D. Color indices for weed identification under various soil, residue, and lighting conditions. Trans. ASAE 1995,38, 259–269. [CrossRef] 13. Camargo Neto, J. A Combined Statistical-Soft Computing Approach for Classification and Mapping Weed Species in Minimum-Tillage Systems; ETD Collection for University of Nebraska: Lincoln, NE, USA, 2004; pp. 1–170. 14. Gitelson, A.A.; Kaufman, Y.J.; Stark, R.; Rundquist, D. Novel algorithms for remote estimation of vegetation fraction. Remote Sens. Environ. 2002,80, 76–87. [CrossRef] 15. Hague, T.; Tillett, N.; Wheeler, H. Automated crop and weed monitoring in widely spaced cereals. Precis. Agric. 2006,7, 21–32. [CrossRef] 16. Otsu, N. A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cyber. 1979 , 9, 62–69. [CrossRef] 17. Torres-Sánchez, J.; López-Granados, F.; Peña, J.M. An automatic object-based method for optimal thresholding in UAV images: Application for vegetation detection in herbaceous crops. Comput. Electron. Agric. 2015 ,114, 43–52. [CrossRef] 18. Blaschke, T. Object based image analysis for remote sensing. ISPRS J. Photogramm. Remote Sens. 2010 , 65, 2–16. [CrossRef] 19. Guijarro, M.; Pajares, G.; Riomoros, I.; Herrera, P.; Burgos-Artizzu, X.; Ribeiro, A. Automatic segmentation of relevant textures in agricultural images. Comput. Electron. Agric. 2011,75, 75–83. [CrossRef] 20. Senthilnath, J.; Kandukuri, M.; Dokania, A.; Ramesh, K.N. Application of UAV imaging platform for vegetation analysis based on spectral-spatial methods. Comput. Electron. Agric. 2017,140, 8–24. [CrossRef] 21. Schwarz, G. Estimating the Dimension of a Model. Ann. Stat. 1978,6, 461–464. [CrossRef] 22. Dempster, A.; Laird, N.; Rubin, D. Maximum likelihood from incomplete data via the EM algorithm. Statist. Soc. Ser. B (Methodol.) 1977,39, 1–22. 23. Wan, L.; Li, Y.; Cen, H.; Zhu, J.; Yin, W.; Wu, W.; Zhu, H.; Sun, D.; Zhou, W.; He, Y. Combining UAV-based vegetation indices and image classification to estimate flower number in oilseed rape. Remote Sens. 2018 , 10, 1484. [CrossRef] Sensors 2020,20, 6247 20 of 21 24. Verrelst, J.; Schaepman, M.; Koetz, B.; Kneubuehler, M. Angular sensitivity analysis of vegetation indices derived from chris/proba data. Remote Sens. Environ. 2008,112, 2341–2353. [CrossRef] 25. Bendig, J.; Yu, K.; Aasen, H.; Bolten, A.; Bennertz, S.; Broscheit, J.; Gnyp, M.L.; Bareth, G. Combining uav-based plant height from crop surface models, visible, and near infrared vegetation indices for biomass monitoring in barley. Int. J. Appl. Earth Obs. 2015,39, 79–87. [CrossRef] 26. Breiman, L. Random forests. Mach. Learn. 2001,45, 5–32. [CrossRef] 27. Bertrand, G. On topological watersheds. J. Math. Imaging Vis. 2005,22, 217–230. [CrossRef] 28. Varghese, J.; Subash, S.; Tairan, N.; Babu, B. Laplacian-Based Frequency Domain Filter for the Restoration of Digital Images Corrupted by Periodic Noise. Can. J. Electr. Comput. Eng. 2016,39, 82–91. [CrossRef] 29. Schneider, C.A.; Rasband, W.S.; Eliceiri, K.W. NIH Image to ImageJ: 25 years of image analysis. Nat. Methods 2012,9, 671–675. [CrossRef] [PubMed] 30. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Springer: Cham, Switzerland, 2015; pp. 234–241. 31. Gu, J.; Wang, Z.; Kuen, J.; Ma, L.; Shahroudy, A.; Shuai, B.; Liu, T.; Wang, X.; Wang, G.; Cai, J.; et al. Recent advances in convolutional neural networks. Pattern Recognit. 2018,77, 354–377. [CrossRef] 32. Oliveira, H.C.; Guizilini, V.C.; Nunes, I.P.; Souza, J.R. Failure Detection in Row Crops From UAV Images Using Morphological Operators. IEEE Geosci. Remote Sens. Lett. 2018,15, 991–995. [CrossRef] 33. Kitano, B.T.; Mendes, C.C.; Geus, A.R.; Oliveira, H.C.; Souza, J.R. Corn Plant Counting Using Deep Learning and UAV Images. IEEE Geosci. Remote. Sens. Lett. 2019, 1–5. [CrossRef] 34. Fan, Z.; Lu, J.; Gong, M.; Xie, H.; Goodman, E.D. Automatic tobacco plant detection in UAV images via deep neural networks. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2018,11, 876–887. [CrossRef] 35. Ghosh, S.; Das, N.; Das, I.; Maulik, U. Understanding Deep Learning Techniques for Image Segmentation. ACM Comput. Surv. 2019,52, 73–107. [CrossRef] 36. Josefina, L.U.P. Evaluación de diferentes dosis de fertilización (npk) en el agave tequilero (agave tequilana weber). Ph.D. Thesis, Universidad de Guadalajara, Facultad de Agronomía, Zapopan, Jalisco, Mexico, 1987. 37. Bueno, J.X.U.; Gutiérrez, C.V.; Figueroa, A.R. Muestreo y Análisis de Suelo en Plantaciones de Agave. In Conocimiento y Prácticas Agronómicas para la Producción de Agave Tequilana Weber en la Zona de Denominación de Origen del Tequila; Centro de Investigación Regional Del PacíFico Centro, Campo Experimental Centro-Altos: Tepatitlán de Morelos, Jalisco, Mexico, 2007 p. 37. 38. DJI. Available online: http://www.dji.com/mx/phantom-4 (accessed on 1 July 2020). 39. Serra, J. Morphological filtering: An overview. Signal Process. 1994,38, 3–11. [CrossRef] 40. Lavraˇc, N.; Flach, P.; Zupan, B. Rule Evaluation Measures: A Unifying View. In Inductive Logic Programming; Džeroski, S.; Flach, P., Eds.; Springer: Berlin/Heidelberg, Germany, 1999; pp. 174–185. 41. Cohen, J. A coefficient of agreement for nominal scales. Educ. Psychol. Meas. 1960,20, 37–46. [CrossRef] 42. Bazi, Y.; Malek, S.; Alajlan, N.; AlHichri, H. An automatic approach for palm tree counting in UAV images. In Proceedings of the 2014 IEEE Geoscience and Remote Sensing Symposium, Québec City, QC, Canada, 13–18 July 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 537–540. 43. Moranduzzo, T.; Melgani, F. Automatic car counting method for unmanned aerial vehicle images. IEEE Trans. Geosci. Remote Sens. 2013,52, 1635–1647. [CrossRef] 44. Dufour, J.M.; Neves, J. Chapter 1—Finite-sample inference and nonstandard asymptotics with Monte Carlo tests and R. In Conceptual Econometrics Using R; Vinod, H.D., Rao, C., Eds.; Elsevier: Amsterdam, The Netherlands, 2019; Volume 41, pp. 3–31. 45. Larochelle, H.; Erhan, D.; Courville, A.; Bergstra, J.; Bengio, Y. An empirical evaluation of deep architectures on problems with many factors of variation. In ICML; Association for Computing Machinery: New York, USA, 2007. 46. Hinton, G.E. A Practical Guide to Training Restricted Boltzmann Machines. In Neural Networks: Tricks of the Trade, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 599–619. 47. Chung Chang, C.; Jen Lin, C. LIBSVM: A Library for Support Vector Machines. 2001. Available online: http://www.csie.ntu.edu.tw/~cjlin/libsvm (accessed on 30 June 2020). Sensors 2020,20, 6247 21 of 21 48. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011 , 12, 2825–2830. 49. Calvario, G.; Sierra, B.; Martinez, J.; Monter, E. Un Enfoque Multidisciplinario de Sensado Remoto a Través de UAV de Bajo Costo. In I Simposio de Aplicaciones Científicas y Técnicas de los Vehículos no Tripulados; Universidad Nacional Autonoma de Mexico, (UNAM): Mexico City, Mexico, 2017; pp. 24–32. Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. c 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).