| Literature DB >> 23112727 |
Abstract
Automatic classification of fruits via computer vision is still a complicated task due to the various properties of numerous types of fruits. We propose a novel classification method based on a multi-class kernel support vector machine (kSVM) with the desirable goal of accurate and fast classification of fruits. First, fruit images were acquired by a digital camera, and then the background of each image was removed by a split-and-merge algorithm; Second, the color histogram, texture and shape features of each fruit image were extracted to compose a feature space; Third, principal component analysis (PCA) was used to reduce the dimensions of feature space; Finally, three kinds of multi-class SVMs were constructed, i.e., Winner-Takes-All SVM, Max-Wins-Voting SVM, and Directed Acyclic Graph SVM. Meanwhile, three kinds of kernels were chosen, i.e., linear kernel, Homogeneous Polynomial kernel, and Gaussian Radial Basis kernel; finally, the SVMs were trained using 5-fold stratified cross validation with the reduced feature vectors as input. The experimental results demonstrated that the Max-Wins-Voting SVM with Gaussian Radial Basis kernel achieves the best classification accuracy of 88.2%. For computation time, the Directed Acyclic Graph SVMs performs swiftest.Entities:
Keywords: Unser's texture analysis; color histogram; fruit classification; kernel SVM; mathematical morphology; multi-class SVM; principal component analysis; shape feature; stratified cross validation
Mesh:
Year: 2012 PMID: 23112727 PMCID: PMC3478854 DOI: 10.3390/s120912489
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1.Comparison of Otsu's Method with split-and-merge segmentation.
Figure 2.Rainbow image.
Sum and difference histogram based measures.
| Measure | Formula |
|---|---|
| Mean ( | |
| Contrast ( | |
| Homogeneity ( | |
| Energy ( | |
| Variance ( | |
| Correlation ( | |
| Entropy ( |
The Morphology based Measures.
| Measure | Meaning |
|---|---|
| Area ( | The actual number of pixels inside the object |
| Perimeter ( | The distance around the boundary of the object |
| Euler ( | The Euler number of the object |
| Convex ( | The number of pixels of the convex hull |
| Solidity ( | The proportion of area to convex hull |
| MinorLength ( | The length of the minor axis of the ellipse |
| MajorLength ( | The length of the major axis of the ellipse |
| Eccentricity ( | The eccentricity of the ellipse |
Figure 4.Using normalization before PCA.
Four Common Kernels.
| Name | Formula | Parameter(s) |
|---|---|---|
| Homogeneous Polynomial (HPOL) | ||
| Inhomogeneous Polynomial | ||
| Gaussian Radial Basis (GRB) | ||
| Hyperbolic Tangent |
Figure 5.The DAG for finding best class out of six classes.
Figure 6.The flowchart of the proposed fruit recognition system.
Figure 7.A 5-fold Cross Validation.
Figure 8.Feature selection via PCA (threshold is set as 95%).
The cumulative variances of PCA-transformed new features.
| Dimensions | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
Figure 9.The biplot (red dots represent the samples, and blue lines represent the 79 original features, and x-axis & y-axis represent the two principal components).
Classification Accuracy of SVMs.
| LIN | HPOL | GRB | |
|---|---|---|---|
| 48.1% | 61.7% | 55.4% | |
| 53.5% | 75.6% | ||
| 53.5% | 70.1% | 84.0% |
Computation Time of SVMs (s).
| LIN | HPOL | GRB | |
|---|---|---|---|
| 8.439 | 9.248 | 11.522 | |
| 1.680 | 1.732 | 1.917 | |
| 0.489 | 0.403 | 0.563 |
Figure 10.Confusion matrix of GRB kernel MWV-SVM with overall classification accuracy of 88.2%.
Samples of Fruit dataset of 18 different categories.
|
|