- Research
- Open Access
- Published:

# Contour analysis for interpretable leaf shape category discovery

*Plant Methods*
**volume 15**, Article number: 112 (2019)

The Correction to this article has been published in Plant Methods 2019 15:132

## Abstract

### Background

The categorical description of leaf shapes is of paramount importance in ecology, taxonomy and paleobotanical studies. Classification systems proposed by domain experts support these descriptions. Despite the importance of these visual descriptive systems, classifications based on this expert’s knowledge may be ambiguous or limited when representing shapes in unknown scenarios, as expected for biological exploratory domains. This work proposes a novel strategy to automatically discover the shape categories in a set of unlabeled leaves by only using the leaf-shape information. In particular, we overcome the task of discovering shape categories from different plant species for three different biological settings.

### Results

The proposed method may successfully infer the unknown underlying shape categories with an F-score greater than 92%.

### Conclusions

The approach also provided high levels of visual interpretability, an essential requirement in the description of biological objects. This method may support morphological analysis of biological objects in exploratory domains.

## Background

Visual shape description in plants is a very specialized and time-consuming task [1, 2]. The botanist and ecologist require straightforward approaches to communicate relevant information about the plant morphology. The construction of category systems allows the communication of the underlying phenomena and the standardization of biological studies [1]. Visual categorization is also an essential task for botanic manual construction, in which expert knowledge is commonly registered as visual categories [3,4,5,6]. In these systems, botanists define key terms accompanied by a visual description of the observed characteristics, with which categories of the shape are established. In systematic biology and taxonomy, experts are extensively trained to perform this task [7, 8].

Leaf categorization based on traditional botanical manuals can be potentially complemented. First, there are exploratory scenarios in which the working hypothesis is related to the analysis of variations of the external morphology on the leaf sheet [1, 9]. These scenarios may require particular categorization systems, not necessarily existing, in the commonly used botanical manuals [9]. Second, human-based labeling may be biased by individual opinions because of the high level of subjectivity implicit in the recognition process of biological objects [10]. Finally, botanical manuals are naturally restricted to narrow biological domains. In principle, these manuals should be constructed for particular cases.

An alternative to characterize plants objectively is digital plant morphology [10]. This approach provides quantitative representations of the object appearance [11,12,13]. Several plant science problems have been tackled using this method [14], specifically, species classification and characterization of morphological traits in response to changes in environmental or genetic conditions using, for instance, pseudolandmarks or harmonics to characterize the variation of geometric traits of the leaf contours [11,12,13]. However, despite the utility of these approaches to quantify shape, they are limited to object contours with the same homology [15]. Other tools currently available for performing morphometric measurements, like plantcv [16], morpholeaf [17] or MowJoe [18], do not consider automatic approaches to overcome the construction of visual categories systems to describe shapes in the biological domain.

Besides category discovery, the visual description of forms performed by the expert during biological interpretation may also require complementary information about which were the morphological causes that resulted in the discovered shape classes [19, 20]. This property of geometrical interpretability is fundamental because the knowledge of these causes of the existence of a shape class may potentially help the expert to find explanations of the underlying phenomena, relating the shape of class to adaptation, function, development, among other biological features [9].

To achieve these interpretations, biologists commonly use high-level concepts to characterize leaf shape [21]. For instance, the concept of the type of blade or the kind of margin. Notably, these two concepts are closely related to low and high frequencies of the object contour and are captured by the Fourier transform of the border [13]. This fact suggests the use of the Fourier transform representation for recovering some high-level categories used for the foliar description task. In this work, we propose a novel method to discover the shape categories underlying a set of non-annotated samples based on contour analysis. We show that the use of strategies based on harmonics allows building a representation space that captures some of the high-level features commonly used for botanist and ecologist in the description of geometrical blade information.

## Results

### Capability of the method to recover the original categories

Figure 1 shows the morphospace 3D for the evaluated datasets. Each morphospace show spheres and representative leaf prototypes. The center of the spheres represents the position of each leaf sample for the evaluated datasets. The sphere radius is given by the adaptive meanshift algorithm. The spheres that displayed with the same color conformed the same leaf shape category. The prototypes were the representative sample of each cluster discovered. The leaf prototype corresponds to the closest leaf sample using Euclidean distance to the cluster centroid.

Table 1 reports the quantitative performance obtained by using different experimental settings. In particular, two algorithms: meanshift and adaptive meanshift, and two distances: Euclidean and Euclidean plus whitening, which is similar to Mahalanobis distance [22]. This was done in the following combinations: meanshift + whitening, adaptive meanshift + non-whitening, and adaptive meanshift + whitening. As observed, the use of adaptive meanshift and whitening resulted in the highest performance for the three explored datasets. High values of F-scores were obtained for the three datasets. Figure 1 shows that the proposed representation space locates nearby similar shape samples; additionally, the method was able to separate groups of different species samples. Tables 2, 3 and 4 shows the confusion matrix for the evaluated datasets. The Hickey manual was used to set a name for the groups discovered by the method, as shown in Table 5. The name of each group was composed of two parts. The first part relates to the shape of the sheet defined in the Hickey manual [4]. The second part relates to the margin type, also determined by the Hickey manual [4]. The names assigned to each discovered groups are shown as headings in the confusion matrices, see Tables 2, 3, and 4. In the test datasets the emergence of leaf clusters was evident. Finally, Table 2 reports the method recovered most of the ground truth categories associated with the original species. Additional experiments were performed to establish the limitations of the proposed method, Additional file 1 reports the main results.

### Qualitative evaluation

The proposed method aims also to provide an interpretable representation of the discovered categories. In the experimental setting herein proposed we considered species from six different shape categories from TreeMew dataset [23]. Shapes can be described for the complete leaf or their parts as described in Table 5. These shape categories were proposed using the Hickey manual [4]. This manual contains high level shape concepts related to shape, margin, base and apex. In order to reach high levels of interpretability some leaves were selected from the morphospace to be shown on the representation space axis. For this, we fixed equally spaced points on the axis and the closest sample to these points were shown in the axis, as illustrated in Fig. 2.

These projections show the morphological variability of the dataset along the main axis. By examining samples in each axis, the shape features that discriminate the groups are identified. As observed, the species with the same margin were closely represented on the first principal component (PC1). Therefore, PC1 represents mainly high-frequency border information that can be linked to these margins. Similarly, the second principal component (PC2) groups species with similar blade shapes, which are projected to the vertical axis from wide to thin form. More specifically, clusters related to species *Carpinus betulus, Fagus silvatica and Ilex aquifolium* are very close in the representation space, as shown in Fig. 2. Interestingly, these species also present high levels of similarity according to the botanical manual, as observed in Table 5. On the other hand, species *Juglans nigra and Quercus frainetto* are far each other, which can also be observed in the proposed representation space. In the ImageClef dataset, Figs. 3 and 4 showed a similar behavior in PC1, corresponding to changes in the margin, while PC2 was related to the leaf width. This result suggests that the method can be used to study margins and shapes simultaneously, resulting in a rich representation.

## Discussion

A new method for the morphological analysis of leaves is introduced. The method allows discovering the categories of leaf shapes in an unlabeled dataset. These categories are interpretable from the biological point of view. The method uses a harmonic representation of the contours, a dimensionality reduction, and an unsupervised clustering strategy. The results show that the strategy identifies categories of leaves related to concepts of margin and foliar lamina. This strategy allows studying sample sets in which the categories are unknown, which may appear in poorly studied biological scenarios.

Results in Table 1 show that the proposed approach may uncover the underlying shape categories for different samples of unlabeled leaves, by using only leaf contour information. In particular, the method provided high values of F1-scores (average \(95\%\)) in the tasks of discovering previously known shape categories related to the species, by using only unlabeled data. Despite the external morphology variability of the datasets herein explored, which includes different kinds of margin, base and apex, see Fig. 7 and Table 5. The scores and confusion matrices indicate that most of the samples were assigned correctly to the original shape category. Importantly, no prior knowledge about specific shapes resulted in these categories, in contrast to previous approaches that strongly rely on domain expertise, for instance, particular categories of lamina shapes, as commonly found in botanic manuals [3, 4, 6], or individual landmarks located over the leaf border [15]. Importantly, this expert knowledge may not be available for the description of unknown morphological scenarios [17, 24]. Therefore, the proposed approach is relevant for this kind of descriptions. Importantly, this approach provides an objective analysis of the leaf contours without relying on landmarks. Therefore, it can be a valuable tool for interspecific and intraspecific analyzes of the variation of the shape, including in other taxonomic categories (genus, family).

In principle, in unknown biological scenarios, shapes categories are not known beforehand and may differ to ones used for known scenarios [10]. The proposed method can test existing manuals and validate whether they contain the information necessary to classify under-studied leaf morphology or propose a classification form that follows a rigorous mathematical method to avoid ambiguity when choosing a category. To discover these categories, we used a highly flexible low-level representation space that captures biologically meaningful information of the leaf border, in particular, its large and fine variations [25]. The proposed representation captured a broad set of lamina border variations exhaustively in the Fourier harmonics, providing a rich morphospace to represent possibly unknown sample morphologies. We assumed that leaves with similar variations in the border were close in this morphospace. Therefore, shape categories associated with common morphological features are expected to emerge as clusters. Results in Table 2 show that the clusters or shape categories identified in this space, using only the available samples, coincide with the ground truth of shape categories. Remarkably, these categories resemble known shape categories for different classes using only endogenous information of the sample. To our knowledge, this result constitutes the first evidence about the possibility of automatically discovering categories of the shape of biological forms. Alternative approaches have been proposed to discover these categories in natural images [26,27,28]; however, these approaches have not been explored yet for the discovering of leaf shape categories problem.

Low performance observed in F1-scores for some of the studied scenarios is linked to two principal causes. First, a high level of morphological overlap among some of the original shape categories. For instance, in the dataset Clef30a the species *Ulmus minor* and *Ruscus acuelatus* have high levels of visual similarity, see Fig. 5b, resulting in a single shape category, see category number two in Table 3. Despite that, the proposed representation was flexible enough to delimitate both categories properly, see curves in Fig. 5b. Importantly, the visualization considered in the model helps to localize and correct errors in the final assignment of the sample category. Second, in some cases, leaf border information was not adequately represented by the Fourier transform, for instance, this representation did not correctly capture border information for samples in specie *Populus tremura* in violet color in Fig. 5a, probably because of the presence of high-frequency information in the serrations [29, 30]. Further investigations may also consider alternative data representations which account for these shape particularities [29,30,31].

Figures 2, 3 and 4 show that common high level concepts with biological meaning emerged from the representation spaces obtained by PCA projections. Particularly, in the PC1 axis, serrations change from left to right, from serrate margin to entire margin. While in the PC2 axis, leaf shape changes from bottom to top, from wide lamina to narrow lamina. Therefore, we conclude that the major axis relates to the lamina shape concept and minor axis to the border serration. These high-level concepts represent explanations for the shape categories discovered [4,5,6]. Explainability refers to a human-interpretable description by which the method categorized a shape given a set of unlabeled images [19]. In this case, each discovered category is characterized by a particular combination of lamina and margin shapes. The lamina and serration shape concepts are commonly used by experts to explain leaf shape categories, and they are fundamental for interpreting biological variations [4,5,6]. These two factors are in the base of leaf descriptive systems of shape categories, and they are commonly used for taxonomical classification, leaf adaptation to environmental conditions, among others.

In order to identify the possible factors associated with the obtained shape categories we performed a posthoc analysis to identify. This kind of analysis is also used in other approaches, for instance, Procrustes and Fourier analysis [15], which consider a subsequent interpretation step aimed to identify sources of variations [15]. In these analyses, experts assign a meaning to observed experimental variations. For instance, correlating shape features with known domain variables. Following a similar approach, we conclude that the shape discovering method provides consistent explanations in biological terms, shape and margin, to the categories discovered. Future work may consider the automatic identification of the concepts that determine the categories and not only rely on the interpreters’ opinion. It is worthy to note that previous approaches to category discovery do not consider the issue of construction of biological explanations to support biological interpretations [27, 28].

In this work, a complex Fourier based representation supported the feature description stage. This transformation provides high levels of visual interpretability [32]. In our experiments, the contours become invariant to geometric transformations, and they were also normalized and centered, as in the Procrustes analysis, but without requiring any landmark. Unlike other approaches of contour analysis, harmonics capture contour variability in the frequency space. Therefore, our approach may serve a tool to analyze this variability in leaves with a different structure. For instance, the approach can be useful when the contours present different lobular compositions, or in sessile leaves, which do not have petiole resulting in open contours. This kind of description is essential also for the description of the external morphology on the leaf sheet [25]. A three dimensional space obtained by PCA embedded the contour representation and a non-supervised clustering algorithm was used on this representation space to infer the corresponding shape categories. The aim here was to reduce the dimensionality of the data in 3D space and provide visualizations and interactivity with the samples in the representation space. As Figs. 2, 3 and 4 show, the leaves were distributed along with the representation space forming dense groups. The distance between a pair of samples was related to how similar samples were and the direction between them, revealed the particular feature that differentiates them. As it happens, when the biologist organizes the obtained sample in leaf categories [13, 33]. This representation allows both a visual representation of the shape information and suitable space to solve the category discovery problem.

The present work has some limitations. First, the proposed method uses only endogenous information of the leaf contour morphology to project the sample into a morphospace, suitable to discover the shape categories. Future work may consider the inclusion of additional information related to the scientific question (for instance, precipitation), which helps to explain the morphological variability of the sample. This complementary information can be included, for example, as an additional part of the feature vector that characterizes each sample. Future work may also consider interaction with the experts to construct a richest morphospace, which enables a post-hoc verification and modification of the proposed categories according to the expert knowledge. Second, increasing the number of categories may difficult the capacity of the method to discriminate the underlying shape groups correctly. As illustrates Additional file 1: Figure S3, when considering a reduced number of PCs, the shape categories cannot be adequately discriminated, and more PCs should be included. Therefore, the inclusion of additional PCs should be considered when the complexity of the database increases.

## Conclusions

In this work, we proposed a novel method to automatically discovery shape categories from the digital image of leaf samples by keeping high levels of visual interpretability of the shape information. The method is based on a complex Fourier representation of the contour, which is embedded in low dimensional representation space. An adaptive clustering method with whitening was used to discover the shape categories. The method was evaluated through the task of predicting the shape categories associated with different plant species. Our results suggest that the proposed method successfully discovers the plant categories by using only leaf shape information providing high levels of visual interpretability.

## Methods

Figure 6 illustrates the proposed method for the construction of interpretable visual categories for a set of images. An image database composed of unlabeled leaves is used as input. The contours of each leaf were extracted by using segmentation and contour extraction algorithms. This information was represented with a complex Fourier transform (CFT), and a set of representative harmonics of the leaf information were selected. Then, a dimensionality reduction method was applied to these harmonics to obtain a three-dimensional morphospace of representation. Finally, an adaptive kernel density estimation method determined the shape categories.

### Contour extraction

The input dataset contained natural images with controlled background. These images were represented in saturation channel because it showed a higher contrast between the leaf lamina and the background. Then, the Otsu method provided a leaf segmentation [34]. A closing morphological operator based in a circular structural element of five pixels of radius removed small holes in the binary image. A tracing algorithm extracted the leaf boundary [35]. This method followed the contour points and returned a two-dimensional vector of vertices. The size of this vector depended on the contour length and the image resolution. In order to have a similar representation among leaves of different sizes, a cubic spline-based interpolation was applied to this array [35]. In particular, \(N\,=\,512\) samples uniformly spaced were obtained to represent each contour.

### Contour representation

A *p*-type transformation was used for contour representation, this transform corresponds to a CFT representation of the shape information [36]. Before the CFT, each spatial position of the resampled border (*x*, *y*) was represented as a complex value \(z = (x, j y)\), with \(j = \sqrt{-1}\). The points in the border conformed a complex discrete signal *z*[*n*], with \(n = 1, 2, \ldots , N\). Later, the slopes \(\Delta z[n]\) among the adjacent points in *z*[*n*] were computed as \(\Delta z[n] = (x[n+1]-x[n], j(y[n+1]-y[n]))\). This representation provides robustness to rotation transformations. The slopes were normalized by the distance \(\Vert \Delta z[n]\Vert\) among the neighbor points *n* and \(n+1\), as follows: \({\widehat{z}}[n] = \frac{\Delta z[n]}{\Vert \Delta z[n]\Vert }\), with \(n = 1, 2, \ldots ,N-1\), this normalization provides invariance to scale transformations. Later, a CFT was applied to the normalized slope signal \({\widehat{z}}[n]\), obtaining:

where *k* is the harmonic index, \(N/2+1\) is the maximum frequency order and *Z*[*k*] is the *k*-th harmonic. For the contour description, it is not essential to use the complete set of harmonics [37]. The first 22 low-frequency harmonics constituted the leaf contour representation. This number of harmonics provided the best compromise between the amount of contour information reconstructed and the size of the representation [32]. This amount of harmonics allowed reconstructions with less than 1% in root mean square difference when considering as reference the original contour [38].

### Dimensionality reduction

Following previous works in the analysis of foliar shapes [10, 32], a dimensionality reduction based on the Principal Component Analysis (PCA) was applied to the selected harmonics. This process was performed by using the Singular Value Decomposition (SVD) of the covariance matrix computed using the complex harmonics [32]. For this, the *q* selected harmonics for the *n* sample contours were organized into a matrix \(\Phi \in \mathbb {C}^{q \times n}\). Each entry in covariance matrix \(C_{i,k}\) corresponded to the product of the harmonic matrix with its transpose, i.e., \(C_{i,k} = \hat{\Phi _i^*} \hat{\Phi _k}^T\), where \(\hat{\Phi _i}\) the *i*-th column of *C* and \(\hat{\Phi _i^*}\) the hermitian conjugate of \(\hat{\Phi _i}\). This covariance matrix was then factorized using SVD, i.e., \(C = U \Sigma V^T\), with \(\Sigma\) a diagonal matrix containing the singular values, *U* a matrix with orthonormal columns *C* and \(V^T\) a matrix with orthonormal rows. The first three columns of *U*, corresponding to the first three eigenvalues, constituted the base for the representation space.

### Clustering

After dimensionality reduction, the category discovery process was performed. For this, the low dimensional data was firstly normalized by applying a whitening transformation in each dimension [39]. A shape category was defined as a cluster emerging in the previously constructed representation space. In this work, two clustering approaches were explored, namely, meanshift [40] and adaptive meanshift [41].

The meanshift algorithm is a non-parametric clustering method for locating the maxima of a density function given *n* discrete data sampled from that function [40]. Given *n* data points \(u_{i}\), \(i = 1, ..., n\) on a *d*-dimensional space \(\mathbb {R}^{d}\), the multivariate kernel density with kernel *K*(*u*) and bandwidth *h* parameter is given by:

This algorithm provides the modes of the density function, which in our case corresponded to shape categories. The meanshift algorithm directly provides multiple clusters, in contrast to other approaches like k-means which require a definition of the number of classes beforehand. Nevertheless, meanshift results are highly dependent on the bandwidth parameter selection, which indirectly determines the number of classes.

After selecting the first three PCs, the *n* samples were embedded as points in a 3-dimensional morphospace. In this representation space, a set of spheres of radius \(\epsilon\) was centered in each point. The sets of overlapping spheres conforming connected components in the representation space were determined and posteriorly associated with shape categories. Note that depending on the sphere radius, a high or low number of shape categories can be found. Therefore, the sphere radius plays a significant role in the shape category discovery procedure.

Two different methods were explored to determine the \(\epsilon\) parameter, namely, meanshift [40] and adaptive meanshift [41]. In the meanshift approach a fixed bandwidth *h* is used for all the spheres. In adaptive meanshift the average of the distances to the *k* neighbors for each point is used as a sample dependent sphere radius. More specifically, the Euclidian distances between \(u_{i}\) and its first *k* neighbors were averaged, and then used as the sample bandwidth parameter \(h_i\) [41]. For this, let \(u_i^{(t)}\) the *t*-th nearest neighbor of the point \(u_i\) in the morphospace. Then \(h_{i,k}\) the average distance the first *k* nearest neighbors was defined as

In the adaptive meanshift algorithm \(h_{j,k}\) is used as bandwidth of the point \(u_i\).

In the proposed setting, the *k* parameter was obtained experimentally by using as reference the *k* value that recovered the six groups of species that composed TreeMew dataset. This *k* value corresponded to eight and it was used for all experiments.

### Evaluation

#### Leaf image dataset

The category discovery task consists in arranging a non-annotated dataset in a representative set of shape categories and provides for them a coherent explanation in biological terms. There are several public leaf datasets available to study plant species that can be used for evaluation purposes. In this work, two leaf image annotated datasets with information about species with different morphology were selected, namely, TreeMew [23] and ImageClef 2014 datasets [42]. These datasets contain high-quality and quantity isolated leaf image samples, all of them with a controlled background. These conditions helped to extract good-quality contours. Each image in these datasets is annotated with the plant species, which was used as ground truth for the shape category discovery problem. Figure 7 shows a sample of each species selected in this study.

For the quantitative evaluation, the samples were organized in three sets to perform the shape category identification. The TreeMew was used to build a test set (TreeMew) with six groups, with 20 samples per group. Similarly, for the samples in the ImageClef database, two test sets were constructed (Clef30a and Clef30b), each one with six groups, and 30 samples per group. Table 5 shows the corresponding morphological description, which was obtained by using the Hickey manual [5]. As observed, the selected species show differences in their blade shape and margin. It is expected that the proposed method can discriminate samples in different classes using these two criteria. Importantly, these sets have high morphological variability, as Table 5 shows. Therefore, this experimental setting is appropriate for evaluating the category discovery strategy.

#### Experimental settings

The evaluation was twofold: a quantitative evaluation, to assess the method capacity for recovering the original categories, and a qualitative evaluation, to study how the method characterized biologically relevant morphological leaf traits related to the extracted categories.

The shape category discovery problem aims to predict shape categories presented in an unlabeled sample set [27, 28]. We assumed that each plant species corresponds to a different shape category. Under this assumption, the original species of each sample constituted the ground truth for the category discovery problem. A confusion matrix and the corresponding F-score provided quantitative measures of the method performance in the identification of these categories. This last measure considers both the precision and the recall of the class discovery tasks [43]. A leave-one-out scheme was used to study the variability of this performance measurement across different datasets. Once the samples were projected into the reduced representation space, the clustering algorithm was applied for three different configurations of distance and clustering algorithm, namely:

Data whitening and meanshift algorithm \(MS\,+\,W\). Data whitening consists in subtracting the mean and dividing by the deviation of the data in each dimension, similar to the Mahalanobis distance [22].

Data whitening and adaptive meanshift algorithm \(AMS\,+\,W\).

Data without whitening and adaptive meanshift algorithm.

Finally, a leaf sample per category was projected over the principal components to perform the qualitative assessment. The linear combination of harmonics in each principal component was shown and joined with projected samples for interpretation. The aim here was to recover margin types and blade shape of the leaf samples.

A detailed description of the procedure to reproduce results can be found in Additional file 2 and the source code in Additional file 3.

## Change history

### 16 November 2019

Unfortunately, the original version of the article [1] contained an error in figure 7. The names of species Umus minor and Acer campestre were interchanged. The corrected figure 7 is given below:

## References

- 1.
He N, Liu C, Tian M, Li M, Yang H, Yu G, Guo D, Smith MD, Yu Q, Hou J. Variation in leaf anatomical traits from tropical to cold-temperate forests and linkage to ecosystem functions. Funct Ecol. 2018;32(1):10–9.

- 2.
Wang N, Palmroth S, Maier CA, Domec J-C, Oren R. Anatomical changes with needle length are correlated with leaf structural and physiological traits across five pinus species. Plant Cell Environ. 2019;42(1):1690–704.

- 3.
Ball H, Exell A, Harding J, L’eonard J, Lewis J, Melderis A, Melville R, Stafleu F, Walters S, Duvigneaud P, Petit E, Tournay R, der Veken PV. Systematics association committee for descriptive biological terminology. ii. Terminology of simple symmetrical plane shapes (chart 1). Taxon. 1962;41(11):145–56.

- 4.
Hickey M, King C. The Cambridge illustrated glossary of botanical terms. Cambridge: Cambridge University Press; 2000.

- 5.
Ellis B, Daly DC, Hickey LJ, Johnson KR, Mitchell JD, Wilf P, Wing SL. Manual of leaf architecture. Ithaca: Cornell University Press Ithaca; 2009.

- 6.
Beentje H. The Kew plant glossary: an illustrated dictionary of plant terms. Royal Botanical Gardens, Kew: Kew Publishing; 2010.

- 7.
Reeds KM. Renaissance humanism and botany. Ann Sci. 1976;33(6):519–42.

- 8.
Keeney E. The botanizers: amateur scientists in nineteenth-century America. Chapel Hill: Univ of North Carolina Press; 1992.

- 9.
Cal AJ, Sanciangco M, Rebolledo MC, Luquet D, Torres RO, McNally KL, Henry A. Leaf morphology, rather than plant water status, underlies genetic variation of rice leaf rolling under drought. Plant Cell Environ. 2019;42:1532–44.

- 10.
Chitwood DH, Sinha NR. Evolutionary and environmental forces sculpting leaf development. Curr Biol. 2016;26(7):297–306.

- 11.
Kuhl FP, Giardina CR. Elliptic Fourier features of a closed contour. Comput Graph Image Proces. 1982;18(3):236–58.

- 12.
Bookstein FL. Morphometric tools for landmark data: geometry and biology. Cambridge: Cambridge University Press; 1997.

- 13.
Bucksch A, Atta-Boateng A, Azihou AF, Battogtokh D, Baumgartner A, Binder BM, Braybrook SA, Chang C, Coneva V, DeWitt TJ, Fletcher AG, Gehan MA, Diaz-Martinez DH, Hong L, Iyer-Pascuzzi AS, Klein LL, Leiboff S, Li M, Lynch JP, Maizel A, Maloof JN, Markelz RJC, Martinez CC, Miller LA, Mio W, Palubicki W, Poorter H, Pradal C, Price CA, Puttonen E, Reese JB, Rellán-Álvarez R, Spalding EP, Sparks EE, Topp CN, Williams JH, Chitwood DH. Morphological plant modeling: unleashing geometric and topological potential within the plant sciences. Front Plant Sci. 2017;8:900.

- 14.
Bender AL, Chitwood DH, Bradley AS. Heritability of the structures and 13c fractionation in tomato leaf wax alkanes: a genetic model system to inform paleoenvironmental reconstructions. Front Earth Sci. 2017;5:47.

- 15.
Li M, An H, Angelovici R, Bagaza C, Batushansky A, Clark L, Coneva V, Donoghue M, Edwards E, Fajardo D, et al. Topological data analysis as a morphometric method: using persistent homology to demarcate a leaf morphospace. Front Plant Sci. 2018;9:553.

- 16.
Gehan MA, Fahlgren N, Abbasi A, Berry JC, Callen ST, Chavez L, Doust AN, Feldman MJ, Gilbert KB, Hodge JG, et al. Plantcv v2: image analysis software for high-throughput plant phenotyping. Peer J. 2017;5:4088.

- 17.
Biot E, Cortizo M, Burguet J, Kiss A, Oughou M, Maugarny-Calès A, Gonçalves B, Adroher B, Andrey P, Boudaoud A, et al. Multiscale quantification of morphodynamics: morpholeaf software for 2d shape analysis. Development. 2016;143(18):3417–28.

- 18.
Failmezger H, Lempe J, Khadem N, Cartolano M, Tsiantis M, Tresch A. Mowjoe: a method for automated-high throughput dissected leaf phenotyping. Plant methods. 2018;14(1):27.

- 19.
Doshi-Velez F, Kim B Towards a rigorous science of interpretable machine learning. arXiv preprint. 2017. arXiv:abs/1702.08608.

- 20.
Liu C, Li Y, Xu L, Chen Z, He N. Variation in leaf morphological, stomatal, and anatomical traits and their relationships in temperate and subtropical forests. Sci Rep. 2019;9(1):5803.

- 21.
Chitwood DH, Otoni WC. Morphometric analysis of passiflora leaves: the relationship between landmarks of the vasculature and elliptical Fourier descriptors of the blade. GigaScience. 2017;6(1):1–13.

- 22.
De Maesschalck R, Jouan-Rimbaud D, Massart DL. The mahalanobis distance. Chemometr Intell Lab Syst. 2000;50(1):1–18.

- 23.
Suk T. Tree Leaf database, middle european woods MEW. Institute of Information Theory and Automation CAS. Prague, Czech Republic. 2010. http://zoi.utia.cas.cz/tree_leaves Accessed 15 July 2019.

- 24.
de la Paz Pollicelli M, Idaszkin YL, Gonzalez-José R, Márquez F. Leaf shape variation as a potential biomarker of soil pollution. Ecotoxicol Environ Saf. 2018;164:69–74.

- 25.
Berdugo-Lattke ML, Gónzalez F, Rangel-Ch JO, Gómez F. P-type based dimensionality reduction for open contours of colombian páramo plant species. Ecol Inf. 2016;36:1–7.

- 26.
Grauman K, Darrell, T. Unsupervised learning of categories from sets of partially matching image features. In: 2006 IEEE computer society conference on computer vision and pattern recognition, vol 1. 2006. p. 19–25.

- 27.
Han J, Quan R, Zhang D, Nie F. Robust object co-segmentation using background prior. IEEE Trans Image Process. 2017;27(4):1639–51.

- 28.
Zhang D, Han J, Zhao L, Meng D. Leveraging prior-knowledge for weakly supervised object detection under a collaborative self-paced curriculum learning framework. Int J Comput Vision. 2019;127(4):363–80.

- 29.
Boggess A, Narcowich FJ. A first course in wavelets with Fourier analysis. Hoboken: Wiley; 2015.

- 30.
Gomes J, Velho L. From Fourier analysis to wavelets, vol. 3. New York: Springer; 2015.

- 31.
Li M, Frank MH, Coneva V, Mio W, Chitwood DH, Topp CN. The persistent homology mathematical framework provides enhanced genotype-to-phenotype associations for plant morphology. Plant Physiol. 2017;177(4):1382–95.

- 32.
Victorino J, Gómez F. A comparative study of dimensionality reduction methods for p-type based contour representations. In: Computing Colombian conference (10CCC), 2015 10th. 2015. p. 294–301.

- 33.
Lipton ZC. The mythos of model interpretability. arXiv preprint. 2016. arxiv:abs/1606.03490.

- 34.
Otsu N. A threshold selection method from gray-level histograms. Automatica. 1975;11(285–296):23–7.

- 35.
Gonzalez R, Woods R. Digital image processing. 3rd ed. Upper Saddle River: Prentice-Hall Inc; 2006.

- 36.
Uesaka Y. A new type Fourier descriptor method that is effective also to open contour. IEICE Trans Inf Syst. 1984;67(3):166–73.

- 37.
Wäldchen J, Mäder P. Plant species identification using computer vision techniques: a systematic literature review. Arch Comput Methods Eng. 2018;25(2):507–43.

- 38.
Olivares L, Victorino J, Gómez F. Automatic leaf shape category discovery. In: 2016 23rd international conference on pattern recognition (ICPR). 2016. p. 1023–8.

- 39.
Eldar YC, Oppenheim AV. Mmse whitening and subspace whitening. Inf Theory IEEE Trans. 2003;49(7):1846–51.

- 40.
Fukunaga K, Hostetler LD. The estimation of the gradient of a density function, with applications in pattern recognition. Inf Theory IEEE Trans. 1975;21(1):32–40.

- 41.
Shimshoni I, Georgescu B, Meer P. 1 adaptive mean shift based clustering in high dimensions. In: Nearest-neighbor methods in learning and vision: theory and practice. 2006. p. 203–20.

- 42.
Goëau H, Joly A, Bonnet P, Selmi S, Molino J-F, Barthélémy D, Boujemaa N. Lifeclef plant identification task 2014. In: CLEF2014 working notes. Working notes for CLEF 2014 conference, Sheffield, UK, September 15–18, 2014. p. 598–615.

- 43.
Alpaydin E. Introduction to machine learning. 2nd ed. Cambridge: The MIT Press; 2010.

## Acknowlegements

This work was partially supported by the “Facultad de Ingeniería y Ciencias Básicas” from “Universidad Central” and the Department of Mathematics from National University of Colombia. We thank Mary-Lee Berdugo, Darwin Martínez and Jorge Rudas for his helpful comments.

### Funding

This research has been funded by the “Facultad de Ingeniería y Ciencias Básicas”, Universidad Central. This is an institution that supported research with funds and physical resources.

## Author information

### Affiliations

### Contributions

JV: Developed the method, designed and performed the experiments, analyzed the results and wrote the manuscript. FG: Supervised the research, designed the experiment, analyzed the results and wrote the manuscript. Both authors read and approved the final manuscript.

### Corresponding author

Correspondence to Francisco Gómez.

## Ethics declarations

### Ethics approval and consent to participate

Not applicable.

### Consent for publication

Not applicable.

### Competing interests

The authors declare that they have no competing interests.

## Additional information

### Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Supplementary information

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

## About this article

### Cite this article

Victorino, J., Gómez, F. Contour analysis for interpretable leaf shape category discovery.
*Plant Methods* **15, **112 (2019). https://doi.org/10.1186/s13007-019-0497-6

Received:

Accepted:

Published:

### Keywords

- Category discovery
- Contour analysis
- Interpretability
- Leaf shape
- Morphological description