| Literature DB >> 32328263 |
Chunlin Liu1,2, Weiying Lu2, Boyan Gao2, Hanae Kimura2, Yanfang Li2, Jing Wang1.
Abstract
Seven commercial Chinese chrysanthemum tea products were classified by computer vision combined with machine learning algorithms. Without the need of building any specific hardware, the image acquisition was achieved in two computer vision approaches. In the first approach, a series of multivariate classification models were built after morphological feature extraction of the image. The best prediction accuracies when classifying flowering stages and tea types were respectively 90% and 63%. In comparison, the deep neural network was applied directly on the raw image, yielded 96% and 89% correct identifications when classifying flowering stage and tea type, respectively. The model can be applied for rapid and automatic quality determination of teas and other related foods. The result indicated that computer vision, especially when combined with deep learning or other machine learning techniques can be a convenient and versatile method in the evaluation of food quality.Entities:
Keywords: chrysanthemum tea; computer vision classification; deep neural network; morphological feature
Year: 2020 PMID: 32328263 PMCID: PMC7174232 DOI: 10.1002/fsn3.1484
Source DB: PubMed Journal: Food Sci Nutr ISSN: 2048-7177 Impact factor: 2.863
Sample information of chrysanthemum teas
| ID | Name and Abbreviation | Species | Source | Flowering Stage | Buds Quantity | |
|---|---|---|---|---|---|---|
| Shape Factors | DNN | |||||
| 1 | Hangbaiju (HB) |
| Hangzhou, ZheJiang Province | Bloom | 203 | 148 |
| 2 | Huangshangongju (HG) |
| Quanjiao, AnHui Province | Bloom | 144 | 97 |
| 3 | Kunlunxueju (KX) |
| Urumqi, Xinjiang Uygur Autonomous Region | Bloom | 332 | 185 |
| 4 | Hangtaiju (HT) |
| Hangzhou, ZheJiang Province | Fetal | 348 | 258 |
| 5 | Kunlunmiju (KM) |
| Urumqi, Xinjiang Uygur Autonomous Region | Fetal | 517 | 373 |
| 6 | Huaiju (HJ) |
| Wen County, HeNan Province | Fetal | 435 | 270 |
| 7 | Dabieshantaiju (DT) |
| HuBei Province | Fetal | 364 | 250 |
C. morifolium, Chrysanthemum morifolium Romat.
Figure 1Diagram of image acquisition using a gel imager (a) and arrangement of flower buds (b)
List of morphological features
| Feature | Description |
|---|---|
| Perimeter | Summed Euclidean distances between the consecutive points in the contour |
| Area | Number of pixels in the shape |
| Long‐axis length | Distance between the two farthest points on the outline |
| Short‐axis length | Length of the line that perpendicular to the long axis, and passing through the center of mass |
| Incircle radius | Radius of the largest incircle of the shape |
| Excircle radius | Radius of the smallest excircle of the shape |
| Area equivalent diameter |
|
| Circularity | 4π∙Area/Perimeter2 |
| Shape parameter | Perimeter2/Area |
| Aspect ratio | Long‐axis length/Short‐axis length |
| Compactness | Area equivalent diameter/Long‐axis length |
| Roundness | Incircle radius/Excircle radius |
| Irregularity | Variance of distances between all contour points on the outline and the center of mass |
| Normalized irregularity | Variance of normalized Euclidean distances between all contour points on the outline and the center of mass |
Figure 2Diagrams of deep convolutional neural network architecture (a) and autoencoder unit (b)
Figure 3Representative contour images of chrysanthemum teas. (a) Hangbaiju by a gel imager, (b) Hangtaiju by a gel imager, (c) Hangbaiju by a smartphone, and (d) Hangbaiju by a smartphone
Summary of morphological features
| Features | HB | HG | KX | HT | KM | HJ | DT |
|---|---|---|---|---|---|---|---|
| Perimeter | 715 ± 169 | 1,112 ± 279 | 490 ± 116 | 427 ± 90 | 254 ± 55 | 252 ± 76 | 387 ± 84 |
| Area | 19,504 ± 7,433 | 36,722 ± 13,039 | 9,601 ± 2,869 | 9,156 ± 2,571 | 3,960 ± 1,364 | 2,914 ± 961 | 7,850 ± 2,399 |
| Long‐axis length | 211 ± 41 | 284 ± 51 | 149 ± 33 | 137 ± 27 | 82 ± 19 | 85 ± 28 | 126 ± 28 |
| Short‐axis length | 133 ± 32 | 190 ± 44 | 99 ± 19 | 101 ± 17 | 68 ± 13 | 57 ± 11 | 91 ± 15 |
| Incircle radius | 65 ± 14 | 95 ± 20 | 48 ± 7 | 47 ± 7 | 32 ± 6 | 27 ± 5 | 43 ± 6 |
| Excircle radius | 108 ± 21 | 145 ± 27 | 76 ± 17 | 70 ± 15 | 42 ± 10 | 43 ± 14 | 64 ± 15 |
| Area equivalent diameter | 254 ± 48 | 349 ± 63 | 180 ± 35 | 168 ± 29 | 105 ± 21 | 101 ± 27 | 155 ± 28 |
| Circularity | 155 ± 29 | 213 ± 37 | 109 ± 16 | 107 ± 15 | 70 ± 12 | 60 ± 10 | 99 ± 15 |
| Shape parameter | 2.16 ± 0.48 | 2.75 ± 0.65 | 2.04 ± 0.59 | 1.62 ± 0.42 | 1.35 ± 0.38 | 1.81 ± 0.77 | 1.56 ± 0.41 |
| Aspect ratio | 1.63 ± 0.36 | 1.54 ± 0.29 | 1.54 ± 0.35 | 1.36 ± 0.24 | 1.23 ± 0.42 | 1.51 ± 0.57 | 1.41 ± 0.40 |
| Compactness | 0.74 ± 0.07 | 0.75 ± 0.06 | 0.75 ± 0.09 | 0.80 ± 0.09 | 0.86 ± 0.09 | 0.75 ± 0.14 | 0.80 ± 0.10 |
| Roundness | 0.61 ± 0.10 | 0.66 ± 0.10 | 0.64 ± 0.11 | 0.69 ± 0.10 | 0.77 ± 0.11 | 0.66 ± 0.15 | 0.69 ± 0.12 |
| Irregularity | 259 ± 169 | 346 ± 211 | 153 ± 214 | 81 ± 134 | 30 ± 107 | 92 ± 178 | 81 ± 135 |
| Normalized irregularity | 0.04 ± 0.02 | 0.03 ± 0.02 | 0.04 ± 0.04 | 0.02 ± 0.03 | 0.02 ± 0.04 | 0.06 ± 0.07 | 0.03 ± 0.03 |
Figure 4Principal component scores plots of chrysanthemum contour features by flowering stage (a) and tea type (b)
Best prediction accuracies obtained by different multivariate classification models
| Flowering stage | Tea type | |||
|---|---|---|---|---|
| Training | Test | Training | Test | |
| KNN | 88 | 87 | 57 | 55 |
| MLP | 90 | 88 | 64 | 62 |
| SVM | 91 | 90 | 64 | 63 |
| DNN | 100 | 96 | 100 | 89 |
Abbreviations: DNN, deep neural network; KNN, k‐nearest neighbor; MLP, multiple linear perceptron; SVM, support vector machine.
Performances of different deep network architectures
| Network neuron size | Pooling filter size | Convolution filter size | Flowering stage | Tea type | ||
|---|---|---|---|---|---|---|
| Training accuracy | Test accuracy | Training accuracy | Test accuracy | |||
| 32, 64, 128, 256, 256 | 2, 8, 4, 2, 1 | 2 × 2 | 100 | 96 | 100 | 87 |
| 32, 64, 128, 256 | 2, 8, 4, 2 | 2 × 2 | 100 | 96 | 100 | 89 |
| 32, 64, 128, 128 | 2, 8, 4, 2 | 2 × 2 | 100 | 96 | 100 | 84 |
| 32, 64, 128 | 2, 8, 4 | 2 × 2 | 100 | 95 | 95 | 85 |
| 32, 64 | 2, 8 | 2 × 2 | 99 | 94 | 100 | 85 |
| 32, 64, 128, 256 | 2, 8, 4, 2 | 3 × 3 | 100 | 96 | 100 | 85 |
| 32, 64, 128, 256 | 2, 8, 4, 2 | 4 × 4 | 97 | 95 | 100 | 89 |
| 32, 64, 128, 256 | 2, 8, 4, 2 | 5 × 5 | 100 | 94 | 100 | 82 |
| 16, 32, 64, 128, 128 | 1, 4, 2, 1, 1 | 2 × 2 | 100 | 95 | 100 | 87 |
The series of numbers indicate sizes of hidden layers from the input layer (left) to the output layer (right).