Literature DB >> 28924506

Automated classification of tropical shrub species: a hybrid of leaf shape and machine learning approach.

Miraemiliana Murat1, Siow-Wee Chang1, Arpah Abu1, Hwa Jen Yap2, Kien-Thai Yong3.   

Abstract

Plants play a crucial role in foodstuff, medicine, industry, and environmental protection. The skill of recognising plants is very important in some applications, including conservation of endangered species and rehabilitation of lands after mining activities. However, it is a difficult task to identify plant species because it requires specialized knowledge. Developing an automated classification system for plant species is necessary and valuable since it can help specialists as well as the public in identifying plant species easily. Shape descriptors were applied on the myDAUN dataset that contains 45 tropical shrub species collected from the University of Malaya (UM), Malaysia. Based on literature review, this is the first study in the development of tropical shrub species image dataset and classification using a hybrid of leaf shape and machine learning approach. Four types of shape descriptors were used in this study namely morphological shape descriptors (MSD), Histogram of Oriented Gradients (HOG), Hu invariant moments (Hu) and Zernike moments (ZM). Single descriptor, as well as the combination of hybrid descriptors were tested and compared. The tropical shrub species are classified using six different classifiers, which are artificial neural network (ANN), random forest (RF), support vector machine (SVM), k-nearest neighbour (k-NN), linear discriminant analysis (LDA) and directed acyclic graph multiclass least squares twin support vector machine (DAG MLSTSVM). In addition, three types of feature selection methods were tested in the myDAUN dataset, Relief, Correlation-based feature selection (CFS) and Pearson's coefficient correlation (PCC). The well-known Flavia dataset and Swedish Leaf dataset were used as the validation dataset on the proposed methods. The results showed that the hybrid of all descriptors of ANN outperformed the other classifiers with an average classification accuracy of 98.23% for the myDAUN dataset, 95.25% for the Flavia dataset and 99.89% for the Swedish Leaf dataset. In addition, the Relief feature selection method achieved the highest classification accuracy of 98.13% after 80 (or 60%) of the original features were reduced, from 133 to 53 descriptors in the myDAUN dataset with the reduction in computational time. Subsequently, the hybridisation of four descriptors gave the best results compared to others. It is proven that the combination MSD and HOG were good enough for tropical shrubs species classification. Hu and ZM descriptors also improved the accuracy in tropical shrubs species classification in terms of invariant to translation, rotation and scale. ANN outperformed the others for tropical shrub species classification in this study. Feature selection methods can be used in the classification of tropical shrub species, as the comparable results could be obtained with the reduced descriptors and reduced in computational time and cost.

Entities:  

Keywords:  Classification; Feature selection; Machine learning; Shape descriptor; Tropical shrubs

Year:  2017        PMID: 28924506      PMCID: PMC5600178          DOI: 10.7717/peerj.3792

Source DB:  PubMed          Journal:  PeerJ        ISSN: 2167-8359            Impact factor:   2.984


Introduction

Plants form a fundamental part of life on earth in providing oxygen, food, medicine and fuel. Plants also play an important role in environmental protection (Tilman et al., 2002). However, the increasing anthropogenic pressure on the natural environments has driven many of the native plant species toward the verge of extinction (Hore et al., 1997; Mata-Montero & Carranza-Rojas, 2016; Menges, 1998). The resulting ecological crisis has brought many serious consequences including flash floods, regional climate changes, desertification and so on (Geertsema, Highland & Vaugeouis, 2009; Wiens, 2016). In general, people nowadays have better understanding about the importance and urgency to conserve plant resources. In order to conserve the correct plant species, it is important for the general public to be able to recognise and identify the many plant species, toward the protection of important local plant species (Corlett, 2016). There are about 500,000 plant species that are present in the world and it is difficult for any botanist or researcher to know more than a tiny fraction of the total number of known species (Fu & Chi, 2006). Even though humans try to recognize a plant species based on botanical and biological characteristics, species identification actually requires vast knowledge and in depth training in botany and plant systematics. Thus, manual recognition is always time consuming and inefficient (Wu et al., 2007); even professional botanists take plenty of time to master plant species identification (Rademaker, 2000). Therefore, many researchers are focusing on developing a user-friendly plant species identification mechanism or an automated system that could assist the recognition process (Kumar et al., 2012; Wang et al., 2008). Plants are generally classified based on their leaf and flower characteristics where leaves are virtually 2D in shape but flowers are 3D (Viscosi & Cardini, 2011). Therefore, it is challenging to analyse the structure and the shape of the flowers since they have complex 3D structures (Kellogg, 2015). Furthermore, leaves can be easily found and collected at all seasons, while flowers are only available during the blooming season (Chaki, Parekh & Bhattacharya, 2015; Tomar & Agarwal, 2016). The leaves can be recognized based on their shapes, textures and colours using shape descriptors, which are the most commonly used plant species classification system (Oncevay-Marcos et al., 2015). The aims of this study are to classify tropical shrub species based on leaf shape descriptors and to compare different feature selection methods with classification tool. Based on literature reviews, this is the first study in the development of tropical shrub species image dataset and classification using a hybrid of leaf shape and machine learning approach. The classification of tropical shrub species was conducted using either single or a combination of four different shape descriptors which are, morphological shape descriptors (MSD), Histogram of Oriented Gradients (HOG), Hu invariant moments and Zernike moments. Three features selection methods which were Relief, Correlation-based feature selection (CFS) and Pearson’s correlation coefficient (PCC) were tested on the proposed tropical shrub species dataset, and the selected descriptors were classified using artificial neural network (ANN), random forest (RF), support vector machine (SVM), k-nearest neighbour (k-NN), linear discriminant analysis (LDA) and directed acyclic graph multiclass least squares twin support vector machine (DAG MLSTSVM).

Background Study

Plant identification based on leaf characteristics were suggested by many researchers. Most of the time, the shape, colour, and leaf texture were referred. Several features, including Fourier descriptors, Zernike moments, Legendre moments and Chebyshev moments, were compared in an attempt to recognize wooden tree species based on their leaves (Suk, Flusser & Novotný, 2013). Fourier descriptors slightly outperform the other tested features, recorded an 85% accuracy, and are the most convenient features in the experiment. Another group of researchers (Shanwen & YouQian, 2010) acquired Zernike moments and HOG method as shape descriptors, and reported 84.66% accuracy for Zernike moments and 92.67% accuracy for HOG. Aakif & Khan (2015) proposed an algorithm that incorporated morphological features, Fourier descriptors and shape defining features. The research was conducted on both Flavia and ICL datasets and both reported 96% accuracy. Ahmed, Khan & Asif (2016) proposed an approach that involved mainly the extracted features based of leaf shape. The feature set was based on 12 geometrical features, five vein features and Fourier descriptors. The accuracy was 87.4% when tested on Flavia dataset. A system for identifying plants using shape, veins, colour and textures features that combined with Zernike moments was proposed by Kulkarni et al. (2013). The researchers used Zernike moments from order 2 to 10 along with five shape features, five colour features, 16 texture features and three vein features. Radial basis probabilistic Neural Network (RBPNN) was used as a classifier and achieved an accuracy of 93.82%. Pornpanomchai et al. (2011) developed a system that could recognize some Thai herb leaves. The system extracted 13 features from the leaf image and achieved 93.29% accuracy with k-nearest neighbours (k-NN) as a classifier. Sharma & Gupta (2015) presents an automated recognition system for the plants leaf image by using multilayer feed forward neural network and back propagation algorithm. A total of 12 features were extracted and this experiment performed with an accuracy of 91.13%. Du et al. (2006) proposed a computer-aided plant species identification method named as CAPSI, which was based on plant leaf images using shape-matching technique. Six methods were implemented which were Fourier descriptors, Hu invariant moment, contour moment, curvature scale space, geometrical features and Modified dynamic programming (MDP). The experiment recorded an accuracy up to 92% using k-NN classifier. Kadir et al. (2012) proposed a method using Zernike moments, which involved a combination of three features namely, geometric, colour moments and gray–level co-occurrence matrices (GLCM). The experiment showed that Zernike moments work better when they were combined with other features in leaf recognition systems. By using the proposed system with Euclidean distance, City block distance and Probabilistic Neural Network (PNN), the accuracy were 94.69%, 93.75% and 93.44% respectively.

Material and Methods

Sampling sites and data collection

This dataset is named as myDAUN, in which ‘my’ represents Malaysia and ‘DAUN’ means leaf in the Malay language. The images in the myDAUN dataset were sampled from the campus of University of Malaya (UM), Kuala Lumpur, Malaysia. UM is Malaysia’s oldest university and is situated in the southwest of Kuala Lumpur, the capital of Malaysia. There is a botanical garden, Rimba Ilmu situated in the UM campus with over 1,600 plant species that emphasises the flora of the Malaysian and Indonesian region (University of Malaya, 1991). The myDAUN dataset was initially focused only on shrub species that are commonly seen by the public. Four main locations in UM with more variety of tropical shrubs were chosen and the sampling took place in these locations. The four locations were Faculty of Science, Dewan Tunku Canselor (Tunku Canselor Hall), Varsity Lake and Main Library as shown in Fig. 1.
Figure 1

Location of sampling area in the University of Malaya (UM), Kuala Lumpur, Malaysia.

The species of tropical shrub were identified and selected with the help of botanists. Since shrubs have a variety of species and cultivar, thus the advice from the professional botanists and the staff from the botanical garden were crucial and valuable. In this study, 45 species of common tropical shrubs were selected and 30 leaf samples were collected for each species. Hence, there were 1350 images of tropical shrub leaf images in total. Table 1 shows the selected species in the myDAUN database.
Table 1

List of tropical shrub species in the myDAUN dataset.

LocationLabelScientific nameCommon name
Faculty of Science1Acalypa siamensisTea Leaves
2Acalypha wilkesianaCopperleaf
5Brunfelsia calycinaYesterday, Today and Tomorrow
6Clinacanthus nutansSabah Snake Grass
7Dillenia suffruticosaYellow Simpoh
8Dracaena surculosaJapanese Bamboo
9Dracaena reflexaSong of India
12Graptophyllum pictumCaricature
15Lagerstroemia indicaCrepe Myrtle
16Lantana camaraLantana
17Lawsonia inermiaHenna
19Magnolia figoBanana Shrub
20Malvaviscus arboreusSleepy Mallow
22Melastoma malabathricumSesenduk
27Polyscias balfourianaDinner-plate Aralia
28Sauropus androgyrusStar Gooseberry
29Strobilanthes crispaBayam Karang
30Tabernaemontana divaricataCeylon Jasmine
31Tibouchina urvilleanaGlory Bush
32Citrus microcarpaChina orange
33Mentha piperitaPeppermint
34Andrographis paniculataKing of bitters
35Rhodomyrtus tomentosaDowny rose myrtle
36Orthosiphon aristatusCat’s whiskers
37Centratherum punctatumLark daisy
38Polygonum minusLaksa leaf
40Justicia gendarussaGendarusa
41Tetracera scandensStone leaf
42Piper sarmentosumWild pepper
44Flemingia strobiliferaWild hops
45Cananga odorataYlang- ylang
Tunku Canselor Hall10Duranta erectaGolden Dew-Drop
11Excoecaria cochinchinensisChinese Croton
14Ixora javanicaJungle Geranium
23Murraya paniculataKemuning
24Mussaenda erythrophyllaRed Flag Bush
25Mussaenda philippicaWhite Mussaenda
26Phyllanthus myrtifoliusCeylon Myrtle
43Rauvolfia serpentineIndian snakefoot
Varsity Lake3Allamanda catharticaGolden Trumpet
4Bougainvillea spectabilisGreat Bougainvillea
13Hibiscus rosa-sinensisChinese Hibiscus
Main Library18Loropetalum chinenseChinese Fringe-flower
21Manihot esculentaManihot
39Tabernaemontana coronariaCrepe jasmine

Proposed framework

The implementation of the tropical shrub species classification system is shown in Fig. 2. There are four main steps; image acquisition, image pre-processing, features extraction and the output of the classification process. Matlab R2015b was used to develop and test the proposed method.
Figure 2

Flowchart of the proposed methodology.

Image acquisition

The myDAUN image dataset was collected and compiled in the laboratory in UM. Firstly, leaf samples that could represent the existing population were identified and the leaf samples from different parts of the shrub and size were plucked and collected. The standard criteria is to select a leaf that has not ruptured, is abnormal or damaged. Secateurs was used for a clean cut of the stem. Thirty samples of leaf were collected for each species. Each of the samples was labelled and the tags were attached securely onto the samples. Next, the collected samples were brought back to the laboratory for image acquisition. The samples were compressed and flattened using newspapers, and the leaf stalks were removed. In order to obtain a quality leaf photo, the light boxes were designed and two sizes of light boxes were used which were 37 cm × 59 cm × 13.5 cm for small-sized leaves and 93 cm × 111 cm  × 13.5 cm for bigger-sized leaves. The setup of image acquisition step is shown in Fig. 3.
Figure 3

Experimental setup. (A) Leaf compression, (B) Background setup, (C) Overview of experimental setup.

The captured images are taken in the same standard with uniform background. The image of the leaf samples is captured on the front side, from a distance of 55 cm from the camera lens using Nikon D750 DSLR camera with AF-S Nikkor 24–120 mm F4G ED VR lens, with a resolution of 6,014 × 4,016 pixels and stored as 32-bits RGB colour Tagged Image File Format (tiff). Adobe Photoshop CC was used to enhance the image quality and to eliminate the illumination and contrast problem, which would affect the process of object segmentation. Figure 4 shows the samples of all tropical shrub species in the myDAUN dataset.
Figure 4

Samples of the leaf images in the myDAUN dataset.

Image pre-processing

The main objectives of image pre-processing are to identify the main object, which is the leaf shape, and get rid of all other unrelated information. Before morphological descriptors were extracted, the region of interest (ROI) of the leaf must be obtained. Firstly, the RGB image or original image is converted to grayscale image. Next, Canny edge detection method is applied to the leaf grey scale images. The image with detected edge is then converted to a binary image and the shape of object is obtained after filling the holes in the binary image. To obtain the desired shape of leaf in the image, the small particles in the surrounding are removed and the ROI was obtained through the segmentation process. The steps for image pre-processing is shown in Fig. 5.
Figure 5

Image pre-processing.

(A) original image, (B) grayscale image, (C) detected edge, (D) binary image, (E) filled binary image, (F) ROI image.

Feature extraction

The ROIs obtained from the image pre-processing step are used as input in the feature extraction steps. Four types of shape representations are applied and tested, which were morphological shape descriptors (MSD), Histogram of Oriented Gradients (HOG), Hu invariant moments and Zernike moments.

Morphological shape descriptors (MSD)

Five basic shape descriptors commonly used for leaf analysis were used in this study, namely diameter, major axis length, minor axis length, area, and perimeter. Based on these basic shape descriptors, 15 morphological descriptors are computed as shown in Table 2.
Table 2

Basic geometrical and morphological descriptors.

DiameterMajor axis lengthMinor axis lengthAreaPerimeter
Aspect ratioForm factorRectangularitySolidityEccentricity
Narrow factorConvex areaIrrectangularityEntiretyEquivalent diameter
Perimeter ratio of major axis length and minor axis lengthPerimeter of convexityPerimeter of areaPerimeter ratio of diameterPerimeter ratio of major axis length

Histogram of oriented gradients (HOG)

The Histogram of Oriented Gradients (HOG) are descriptors used in image processing for object detection and it is the local statistic of the orientations of the image gradients around key points (Dalal & Triggs, 2005; Xiao et al., 2010). HOG descriptors method determines occurrences of gradient orientation in localized portions of an image or ROI. This technique is alike to scale-invariant feature transformation descriptors, edge orientation histograms and shape context. Gradient computation, G and gradient orientation, θ are computed using Eqs. (1) and (2) respectively. where G is gradient in X direction and G is gradient in Y direction.

Image pre-processing.

(A) original image, (B) grayscale image, (C) detected edge, (D) binary image, (E) filled binary image, (F) ROI image. Each pixel within a cell casts a weighted vote for an orientation based histogram based on the gradient magnitude, G, and gradient orientation, θ. One histogram was counted for each cell based on the number of bins orientation binning. After that, the image was split into a number of cells. A cell can be represented as a region like a square with a predefined size in pixels. Each block has 3 × 3 cells; for each cell, the histogram of the gradient is obtained by splitting votes into bins for each orientation. The normalization was executed among a group of cells called a block, and a normalization factor was calculated over the block. All the histograms within this block were normalized and link together in single feature vector. The normalized vector, V can be performed by where V is the vector for combined histogram and ε is a small constant. The histogram of all the blocks accumulated into a whole HOG descriptor were processed. In this study, the number of bins, K was set to 9, whereas the block size was 3 × 3 cells. Thus, there were 81-dimensional vector for each of leaf image based on the computation of 3 × 3 × 9.

Hu invariant moments

The moment invariant was first introduced by Hu (1962). Hu defined seven invariant moments computed from central moments through order up to three and two-dimensional that are invariant under object translation, scaling and rotation. Hence, a set of seven invariant moments can be derived from the normalized central moments as stated in Eq. (4).

Zernike moments

Zernike moments was firstly introduced by Teague (1980). In order to compute Zernike moments, three steps are required, namely computation of radial polynomials, Zernike basis functions, and Zernike moments. The approach to obtain Zernike moments from an input image starts with the computation of Zernike radial polynomials (Hwang & Kim, 2006). Zernike moments are based on Zernike polynomials that are orthogonal to the circle x2 + y2 = 1. The form of these polynomials is formulated in Eq. (5) where a is a non-negative integer, b is positive or negative integer satisfying constrains a − |b| = even and |b| ≤ a. r is the radius of (x, y) to the centroid where , θ is the angle between r and x-axis where . R is the radial polynomial defined as The Zernike moments for order a and b repetition of continued function f(x,y), if f(x,y) is a digital image, is defined below: In this case, K∗ is the complex conjugate, while K is the Zernike basis functions order a with b repetitions, where . These descriptors need to be normalized before classification. The normalized Zernike moments can be calculated using where m00 is spatial moment order (0,0) that indicates the area of a leaf. The Zernike moments with order a counting from 0 to 8 as the descriptors were selected and 25 descriptors of Zernike moment were obtained.

Feature selection

Feature selection is a process of identifying and removing the irrelevant and redundant features to describe the target concept. Feature selection reduced the dimensionality of the data and allowed learning algorithms to operate faster and more effectively. In this study, three feature selection methods are proposed, which are Relief, Correlation-based feature selection (CFS), and Pearson’s correlation coefficient (PCC). Relief is a distance based filter model that distinguish classes based on how well a feature can separate classes. CFS is a simple filter algorithm that ranks feature subset according to a correlation based heuristic evolution function (Hall, 1999). The PCC is a statistical method to analyse the relationship between features and decide which features are selected to train classifier.

Classification

Six classifiers were tested and applied, which are artificial neural network (ANN), random forest (RF), support vector machine (SVM), k-nearest neighbour (k-NN), linear discriminant analysis (LDA) and directed acyclic graph multiclass least squares twin support vector machine (DAG MLSTSVM). All of the classification algorithms were tested using a random sampling approach. The myDAUN dataset was randomly divided into 80% for training and 20% for testing. This process was repeated 10 times and the average of 10 runs was taken as the final result.

Artificial neural network (ANN)

Artificial neural network (ANN) is used as the classification tool. ANN is a biologically inspired program designed to stimulate the system in which the human brain processes information. The general neural network consists of three layers, which are input layer, hidden layer, and output layer. The ANN is composed of a set of neurons that is interconnected with each other. The total of 133 descriptors that was obtained, which includes 20 descriptors from MSD descriptor, 81 descriptors from HOG descriptors, seven descriptors from Hu moments and 25 descriptors from Zernike moments. The number of neurons in the hidden layer was experimentally selected from the error set by comparing with the general training of the ANN. The number of output neurons was presented by the number of species classified, which in this case, are 45 classes. The networks were two-layer feed forward with 133 input nodes and 45 output nodes as shown in Fig. 6.
Figure 6

Neural network for tropical shrub species classification.

Random forest (RF)

Random forest (RF) is based on the classification tree approach (Breiman, 2001). Predictions of multiple classification trees are aggregated for a dataset and each tree in the forest is grown using bootstrap samples. At prediction time, trees in the forest use their votes for target class and classification results are taken from each tree. The forest selected the class that achieved the most votes among the separate trees. RF can give an estimate of important input variables in the classification and it runs efficiently on large dataset with high accuracy. However, RF has some constraints on computing time and memory.

Support vector machine (SVM)

Support vector machine (SVM) (Cortes & Vapnik, 1995) is a classification method that maps the input data to a high dimensional feature space through some nonlinear transformation that separated by optimal hyperplane, which maximizes the gap of positive samples and negative samples. SVM used the kernel function to transform the input data into a higher dimensional space and optimal hyperplane is constructed with maximum margin. The classification involved 45 classes in this study, therefore SVM classifier was trained using the one versus all approach. In this approach, every class was trained with test cases of that class as positive and all other as negative.

k-nearest neighbour (k-NN)

k-nearest neighbour (k-NN) is a non-parametric classification algorithm that classifies unknown samples based on their k-nearest neighbour (Singh, Haddon & Markou, 2001). The most frequent class among these k neighbours is selected as the class of this sample. A challenge of k-NN is to determine a fit value of k, which is based on error rates. In these experiments, k-NN classifier with k = 1, 2, 3, 4, 5 were simulated and the case of k = 1 showed the best classification result.

Linear discriminant analysis (LDA)

Linear discriminant analysis (LDA) is also known as the Fisher discriminant analysis (FDA) (Alpaydin, 2014). LDA proposed to find a linear combination of features, which characterizes or separates different classes. LDA maximizes the ratio of between class variance to within class variance, thus achieving maximum discrimination. LDA contains weights for each feature separately for every class that allows it to ignore features that have no significant meaning for some classes.

Directed acyclic graph multiclass least squares twin support vector machine (DAG MLSTSVM)

Directed acyclic graph multiclass least squares twin support vector machine (DAG MLSTSVM) is a learning framework using directed acyclic graph that choose and reconstruct classifiers in “one-versus-one” algorithm. DAG MLSTSVM can solve a linear equation problem instead of using quadratic programming in the multiclass classification, which can lead to higher computational costs (Tomar & Agarwal, 2016).

Result

The myDAUN dataset was tested using various sets of descriptors which were single and hybrid of two, three and four descriptors. The average classification accuracy using single descriptors are shown in Table 3. MSD, HOG and Zernike moments achieved the best classification with ANN accuracy for the single descriptor, which were 96.39%, 95.82% and 91.79%, respectively, whereas the highest accuracy of Hu invariant moments descriptor obtained 85.76% by using the DAG MLSTSVM classifier.
Table 3

Classification accuracy for single descriptor.

aAverage accuracy (%)
DescriptorANNRFSVMk-NNLDADAG MLSTSVM
MSD96.3992.5879.7891.9682.8095.78
HOG95.8291.5884.5390.4079.7695.40
Hu invariant moments82.2783.3632.7482.9937.6585.76
Zernike moments91.7987.8559.3487.7556.4090.54

Notes.

average accuracy = average of 10 runs.

Notes. average accuracy = average of 10 runs. Table 4 shows the average classification accuracy using hybridisation of descriptors. By comparing the classification accuracy in Table 3 and Table 4, it is clear that the hybridisation of descriptors improved the classification accuracy. The best classification accuracy for hybrid of two descriptors was demonstrated with ANN using MSD and HOG descriptor obtaining accuracy of 97.49% compared to other hybrid of two descriptors using RF, SVM, k-NN, LDA and DAG MLSTSVM. The greatest improvement was observed for the Hu invariant moments descriptor after hybridised with MSD, HOG and Zernike moments descriptors by using SVM and LDA classifiers with accuracy increased to 68.31% and 87.72% from 32.74% and 37.65%, respectively. The hybridisation of two and three descriptors achieved almost comparable results. The best classification accuracy result for the hybrid of three descriptors using MSD, HOG, and Zernike moments descriptors were 97.63% in ANN and 97.05% in DAG MLSTSVM, whereas in RF, k-NN and LDA the best accuracy results for hybrids of three descriptors were using MSD, HOG and Hu moments with 93.62%, 92.42% and 90.09% respectively. The average classification accuracy using the hybrid of all descriptors improved the classification accuracy of tropical shrub species and produced the best results in all classifiers. The best classification accuracy was 98.23% when combined with four descriptors of MSD, HOG, Hu invariant moments and Zernike moments using ANN.
Table 4

Classification accuracy of hybrid descriptors.

MethodsDescriptoraAverage accuracy (%)
ANNRFSVMk-NNLDADAG MLSTSVM
Hybrid of two descriptorsMSD + HOG97.4993.4591.0192.0389.5696.94
MSD + Hu invariant moments96.6792.8481.9992.3585.1495.96
MSD + Zernike moments96.6092.8684.6191.9284.3196.25
HOG + Hu invariant moments96.2492.3987.7291.0783.4795.88
HOG + Zernike moments93.7092.5889.9391.4785.5893.52
Hu moments + Zernike moments93.6790.0773.4589.3568.3192.65
Hybrid of three descriptorsMSD + HOG + Hu invariant moments97.5993.6291.7892.4290.0996.99
MSD + HOG + Zernike moments97.6393.5292.0692.1789.7297.05
MSD + Hu moments + Zernike moments96.6493.2487.9392.1086.1296.32
HOG + Hu moments + Zernike moments97.0693.3791.2991.5687.2396.70
Hybrid of all descriptorsMSD + HOG + Hu invariant moments + Zernike moments98.2393.8392.7492.6090.8697.72

Notes.

average of 10 runs.

Notes. average of 10 runs. Table 5 shows the classification results using three feature selection methods. Relief, CFS and PCC were employed. The classification accuracy achieved using feature selection methods is between 96.98% to 98.13%. The Relief method with reduced feature of 60%(53 descriptors) achieved the best accuracy of 98.13%, which was comparable with the result without feature selection method of 98.23% (133 descriptors).
Table 5

Classification accuracy for the selected feature selection methods.

DescriptorsDescriptors reduced (%)aRelief (%)aCFS (%)aPCC (%)
Hybrid of all descriptors5097.6997.7997.33
6098.1396.9897.10
7097.6497.1097.15
None98.23%

Notes.

average of 10 runs.

Notes. average of 10 runs. The computational time for feature extraction are reported in Table 6. The total computational time for feature extraction of all descriptors was 2,263.40 min, whereas the computational time for feature extraction using Relief method with 60% of reduced feature was 1,033.23 min. These results showed that by using feature selection of Relief, the total computational time had reduced by 1,230.17 min of 54.35% from the original full model.
Table 6

Running time for features extraction.

DescriptorsTime for all features extraction (min)Time for features extraction with Relief (min)
MSD84.0161.04
HOG334.39334.39
HU225.00189.55
Zernike1620.00748.25
Total2263.401033.23

Validation using Flavia dataset and Swedish Leaf dataset

The purpose of validation is to test on the viability of using hybridisation of four descriptors on the classification of plant species in other datasets. To validate the proposed methods, the Flavia dataset and Swedish Leaf dataset were used. Flavia and Swedish Leaf dataset are currently the most popular benchmark datasets used by researchers to compare and evaluate methods across studies. The dataset of Flavia consists of 32 species with 50 samples for each species. Whereas, Swedish Leaf dataset consists of 15 species with 75 samples per species. The validation applied the same settings as in the myDAUN dataset with the ratio of training and testing data set to 80:20 and used ANN as the classifier. The results obtained from both datasets were comparable with the myDAUN dataset, where the combination of MSD, HOG, Hu moments and Zernike moments are descriptors obtained the best accuracy. Table 7 shows the average accuracy for various sets of descriptors in Flavia dataset and Swedish Leaf dataset. For single descriptor method, MSD and HOG descriptor achieved more than 93% accuracy in the Flavia dataset and more than 98% in the Swedish Leaf dataset. Hu invariant moments obtained the lowest accuracy in the classification of plant species, which was only 80.46% in the Flavia dataset and 95.20% in the Swedish Leaf dataset. The highest accuracy for the hybrid of two, three and four descriptors increased slightly for both dataset. The combination of all descriptors improved the classification accuracy and produced the best result for classification of plant species in the Flavia and Swedish Leaf datasets. The results achieved in the Flavia and Swedish Leaf datasets were comparable to those achieved in the myDAUN dataset.
Table 7

Classification results of the Flavia dataset and the Swedish Leaf dataset.

MethodsDescriptoraAverage accuracy (%)
FlaviaSwedish leaf
Single descriptorMSD93.3098.65
HOG93.4999.15
Hu invariant moments80.4695.20
Zernike moments83.2295.95
Hybrid of two descriptorsMSD + HOG95.0499.54
MSD + Hu invariant moments93.1298.37
MSD + Zernike moments93.4199.16
HOG + Hu invariant moments93.5599.24
HOG + Zernike moments93.8799.54
Hu invariant moments + Zernike moments88.4798.01
Hybrid of three descriptorsMSD + HOG + Hu invariant moments94.0199.43
MSD + HOG + Zernike moments95.1499.64
MSD + Hu invariant moments + Zernike moments93.6799.16
HOG + Hu invariant moments + Zernike moments94.0899.52
Hybrid of all descriptorsMSD + HOG + Hu invariant moments + Zernike moments95.2599.89

Notes.

average of 10 runs.

Notes. average of 10 runs.

Discussion

From the results in Table 3, the single descriptor that obtained the best accuracy was MSD with 96.39% using ANN classifier. Twenty descriptors of MSD were sufficient to give meaningful analysis for shape descriptor. However, there are risks to describe the leaf shape using only the MSD descriptors, even though they seem good enough to classify a small set of test images. Additionally, many single value descriptors in MSD were extremely correlated with each other, thus making the task of selecting sufficiently independent descriptors more difficult (Cope et al., 2012). The HOG descriptors performed better than Zernike moments and Hu invariant moments because it induced robust shape descriptors. The result of single descriptor of HOG showed that most of the tropical shrub species with different leaf shapes were correctly identified. However, several cases were not well recognized. This is because HOG is computed over image, therefore the local information might be lost and HOG descriptor is sensitive to the leaf petiole orientation while the petiole’s shape actually carries the species characteristics. Therefore, to overcome these issues, a pre-processing step can normalize petiole orientation of all leaf images in a dataset making them practicable to HOG. This idea had been proposed by two studies, (Cope et al., 2012) and (Xiao et al., 2010), and it was proven that HOG achieved a better performance when the leaf petiole was cut off before analysis (Xiao et al., 2010). On the other hand, Hu invariant moments obtained the worst classification accuracy. Even though Hu moments were computationally simple, it was highly sensitive to noise. Seven Hu invariant moments can describe shape characteristics well, but seven descriptors were not enough for feature extraction because the information carried by their own were very restricted when the image database is large. They usually need to be combined with other conventional descriptors in order to better describe the actual shape properties of the object. Zernike moments obtained relatively good results of classification accuracy and it can be a feasible alternative for classifying structural complex images. Zernike moments provided exceptional invariance features over other moment based solution like the Hu invariant moments. However, the limitation of Zernike moments was the costly computation that made it inapt for some problems. From the results in Table 4, the classification accuracy increased by combining more descriptors. When only MSD descriptor were used, false classification rate increased for similar shaped leaves of some species. The leaf samples of species 24 (Mussaenda erythrophylla) and species 25 (Mussaenda philippica) (refer to Fig. 4) were often misclassified when MSD was used as input descriptors only. This is due to the shape of the leaves being similar to each other, since both of them belong to the same genus but different species. Although these leaves have similar shapes, the leaf petiole for both species were obviously different. The classification accuracy increased using a hybridisation of MSD and HOG descriptor and this helped to decrease the misclassification of these species, as HOG descriptor was sensitive to the petiole orientation. The hybrid of two and three descriptors achieved almost comparable results of the classification accuracy. Subsequently, the hybridisation of all descriptors performed the best results compared to single, two or three descriptors. The MSD and HOG descriptors were the major contributors in the classification of tropical shrub species. Hu invariant moments and Zernike moments descriptors, on the other hand, helped to improve the classification accuracy in tropical shrub species in terms of invariant to translation, rotation, and scale. Feature selection does not necessarily mean an increase in accuracy. In fact, in all cases, reducing the number of descriptors too dramatically (more than 60.15% reduction), will result in a decrease in the accuracy. However, based on the results obtained in Table 5, it has been shown that the reduction in descriptors, the feature selection methods of Relief, CFS, and PCC achieved comparable results compared to using all 133 descriptors, The Relief method achieved the best result of 98.13% with 53 descriptors (60% reduction) and reduced computational time by 1,033.23 min, if compared to model with all descriptors. This proved that feature selection methods are able to select the optimal descriptors that are correlated to each other in the classification of tropical shrub species. Finally, the performance of our proposed method compared to other leaf classification studies is shown in Table 8. In the study performed by Pham et al. (2013), they compared the HOG and Hu invariant moments, and the results showed that the HOG descriptor was more robust than the Hu invariant moments descriptor. The accuracy of the HOG and Hu invariant moments descriptor achieved in this study were 84.70% and 25.31% respectively. In the study presented by Salve et al. (2016), the implementation of the HOG and Zernike moments descriptor were proposed. This study used the subset Visleaf dataset which contained 50 plant species and 10 samples for each of species, which is a total of 500 images. By using the Zernike moments as descriptor, the accuracy achieved 84.66% whereas HOG descriptor achieved 92.67%, and this indicated that Zernike moments had lower accuracy compared to HOG. Wu et al. (2007) used geometrical descriptors and morphological descriptors in the vein structure. The algorithm was quite simple and provided a good result of 90.31% of accuracy but it required human intervention for the physiological length width. Moving on, Du, Wang & Zhang (2007) used a combination of morphological and Hu invariant moments to recognize 20 species of plant and achieved 91% accuracy. Hossain & Amin (2010) used only MSD as part of the descriptors set and obtained around 93% of accuracy.
Table 8

Comparison studies.

ReferenceDescriptorLeaf datasetAccuracy
Pham et al. (2013)HOGFlavia84.70%
Hu invariant moments25.31%
Salve et al. (2016)Zernike momentsVisleaf84.66%
HOG92.67%
Wu et al. (2007)MSDFlavia90.31%
Du, Wang & Zhang (2007)MSD, Hu invariant momentsOwn dataset91.00%
Hossain & Amin (2010)MSDFlavia91.41%
Kadir et al. (2011)MSD, Texture, ColorFlavia93.75%
Kulkarni et al. (2013)MSD, Zernike moments, Vein, Color, TextureFlavia93.82%
Priya, Balasaravanan & Thanamani (2012)MSD, VeinFlavia94.20%
Current studyMSD, HOG, Hu invariant moments, Zernike momentsMyDAUN98.23%
Flavia95.25%
Swedish Leaf99.89%
Kulkarni et al. (2013) and Kadir et al. (2011) used MSD, Zernike moments, colour moments and texture as part of the descriptors set. Colour and texture were not expected to be as descriptive as shape for leaf analysis since most leaves are in the same shade of green that also change greatly under different illumination (Yanikoglu, Aptoula & Tirkaz, 2014). In addition, there are low inter-class variability in terms of colour and high intra class variability. Even the colours of leaves belonging to the same species or even plant can present a wide range of colours depending on the season. For instance, most dried leaves change colour, therefore it is not commonly used as an important descriptor for leaf analysis. The vein structure of a leaf is unique to a species. It has higher contrast compared to the rest of the leaf blade and is often visible (Priya, Balasaravanan & Thanamani, 2012). The combination of MSD with vein gave a recognition accuracy of 94.20%. The previous studies showed that most of the algorithms used PNN, k-NN, SVM, or RF as a classifier. Among these approaches, ANN has the fastest speed and best accuracy for classification. Suk, Flusser & Novotný (2013) showed that the ANN classifier ran faster than the k-NN and MCC hypersphere classifier with a higher accuracy. Therefore, ANN was adopted as a classifier in this study.

Conclusion

In this study, a classification of a tropical shrub species using a hybrid of shape approach and machine learning was developed. The results showed that the hybrid of four descriptors of MSD, HOG, Hu invariant moments, and Zernike moments stands out to be comparably better than single, two and three descriptors. The classification of tropical shrub species was conducted using six different classifiers, which are, ANN, RF, SVM, k-NN, LDA and DAG MLSTSVM. Relief, CFS and PCC feature selection techniques were tested to determine their effectiveness for reducing the number of descriptors in the myDAUN dataset. In addition, validation was done using the Flavia and Swedish Leaf datasets to consolidate the obtained results, the results showed that the hybrid of all 133 descriptors of ANN outperformed the other classifier with an average classification accuracy of 98.23% for the myDAUN dataset, 95.25% for the Flavia dataset and 99.89% for the Swedish Leaf dataset. Furthermore, the Relief feature selection method achieved the highest classification accuracy of 98.13% with 53 descriptors and 54.35% reduction of computational time. This study found that Relief is a highly effective method for feature selection, which had both reduced the number of dimensions for the dataset, gave comparable results of accuracy with reduction in the computation time. The results also showed that the optimal descriptors are MSD and HOG whereas Hu invariant moments and Zernike moments helped to improve the classification accuracy in terms of invariant to translation, rotation and scale.

myDAUN dataset

Thumbnail view of myDAUN dataset. Click here for additional data file.
  3 in total

Review 1.  Agricultural sustainability and intensive production practices.

Authors:  David Tilman; Kenneth G Cassman; Pamela A Matson; Rosamond Naylor; Stephen Polasky
Journal:  Nature       Date:  2002-08-08       Impact factor: 49.962

2.  Leaf morphology, taxonomy and geometric morphometrics: a simplified protocol for beginners.

Authors:  Vincenzo Viscosi; Andrea Cardini
Journal:  PLoS One       Date:  2011-10-03       Impact factor: 3.240

3.  Climate-Related Local Extinctions Are Already Widespread among Plant and Animal Species.

Authors:  John J Wiens
Journal:  PLoS Biol       Date:  2016-12-08       Impact factor: 8.029

  3 in total
  3 in total

1.  Cephalopod species identification using integrated analysis of machine learning and deep learning approaches.

Authors:  Hui Yuan Tan; Zhi Yun Goh; Kar-Hoe Loh; Amy Yee-Hui Then; Hasmahzaiti Omar; Siow-Wee Chang
Journal:  PeerJ       Date:  2021-08-09       Impact factor: 2.984

2.  Fine-Grained Image Classification for Crop Disease Based on Attention Mechanism.

Authors:  Guofeng Yang; Yong He; Yong Yang; Beibei Xu
Journal:  Front Plant Sci       Date:  2020-12-22       Impact factor: 5.753

3.  Convolutional Rebalancing Network for the Classification of Large Imbalanced Rice Pest and Disease Datasets in the Field.

Authors:  Guofeng Yang; Guipeng Chen; Cong Li; Jiangfan Fu; Yang Guo; Hua Liang
Journal:  Front Plant Sci       Date:  2021-07-05       Impact factor: 5.753

  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.