| Literature DB >> 30412997 |
Lei Feng1,2, Susu Zhu3,4, Chu Zhang5,6, Yidan Bao7,8, Pan Gao9, Yong He10,11,12.
Abstract
Different varieties of raisins have different nutritional properties and vary in commercial value. An identification method of raisin varieties using hyperspectral imaging was explored. Hyperspectral images of two different varieties of raisins (Wuhebai and Xiangfei) at spectral range of 874⁻1734 nm were acquired, and each variety contained three grades. Pixel-wise spectra were extracted and preprocessed by wavelet transform and standard normal variate, and object-wise spectra (sample average spectra) were calculated. Principal component analysis (PCA) and independent component analysis (ICA) of object-wise spectra and pixel-wise spectra were conducted to select effective wavelengths. Pixel-wise PCA scores images indicated differences between two varieties and among different grades. SVM (Support Vector Machine), k-NN (k-nearest Neighbors Algorithm), and RBFNN (Radial Basis Function Neural Network) models were built to discriminate two varieties of raisins. Results indicated that both SVM and RBFNN models based on object-wise spectra using optimal wavelengths selected by PCA could be used for raisin variety identification. The visualization maps verified the effectiveness of using hyperspectral imaging to identify raisin varieties.Entities:
Keywords: near-infrared hyperspectral imaging; object-wise; pixel-wise; raisins; support vector machine
Mesh:
Year: 2018 PMID: 30412997 PMCID: PMC6278444 DOI: 10.3390/molecules23112907
Source DB: PubMed Journal: Molecules ISSN: 1420-3049 Impact factor: 4.411
Figure 1Average spectra with standard deviation (SD) of Wuhebai (WHB) and Xiangfei (XF).
Figure 2Scores image for the first seven principal components.
Figure 3Corresponding optimal wavelengths selected by principal component analysis (PCA): (a) Object-wise analysis. (b) Pixel-wise analysis.
Corresponding optimal wavelengths selected by PCA.
| Type of Analysis | No. | Optimal Wavelengths (nm) |
|---|---|---|
| Object-wise | 20 | 1005, 1032, 1049, 1086, 1119, 1160, 1173, 1187, 1200, 1220, 1244, 1254, 1278, 1305, 1328, 1352, 1379, 1406, 1433, 1473 |
| Pixel-wise | 17 | 1005, 1029, 1103, 1119, 1164, 1200, 1214, 1251, 1261, |
Corresponding optimal wavelengths selected by independent component analysis (ICA).
| Type of Analysis | No. | Optimal Wavelengths (nm) |
|---|---|---|
| Object-wise | 20 | 982, 985, 995, 999, 1002, 1009, 1012, 1015, 1019, 1022, 1025, 1029, 1032, 1035, 1039, 1042, 1046, 1049, 1052, 1056 |
| Pixel-wise | 17 | 1139, 1143, 1146, 1150, 1153, 1156, 1207, 1210, 1230, 1521, 1527, 1531, 1548, 1554, 1561, 1575, 1582 |
Classification models based on different grade using optimal wavelengths selected by PCA.
| WHB | XF | C 4 | γ 4 | Cal. Result | Pre. Results | |||
|---|---|---|---|---|---|---|---|---|
| WHB | XF | Pre. set | WHB | XF | ||||
| Grade1 1 | Grade1 | 1 | 3.0 | 665/665 | 245/246 | Grade3 | 1382/1382 | 0/602 |
| Grade2 | 930/931 | 22/453 | ||||||
| Grade1 | 380/380 | 99/116 | ||||||
| Grade2 2 | Grade2 | 256 | 16 | 622/622 | 304/305 | Grade3 | 1371/1382 | 559/602 |
| Grade2 | 305/309 | 146/148 | ||||||
| Grade1 | 1040/1045 | 323/362 | ||||||
| Grade3 3 | Grade3 | 48.5 | 9.1 | 950/950 | 405/405 | Grade3 | 419/432 | 197/197 |
| Grade2 | 658/931 | 434/453 | ||||||
| Grade1 | 1033/1045 | 51/362 | ||||||
Grade1 represents large size; Grade2 represents medium size; Grade3 represents small size; C and γ are parameters of SVM model.
Figure 4Classification results using pixel-wise spectra: (a) WHB; (b) XF.
Classification models based on different grade using optimal wavelengths selected by ICA.
| WHB | XF | C | γ | Cal. Result | Pre. Results | |||
|---|---|---|---|---|---|---|---|---|
| WHB | XF | Pre. set | WHB | XF | ||||
| Grade1 | Grade1 | 147.0 | 0.3 | 664/665 | 242/246 | Grade3 | 1380/1382 | 0/602 |
| Grade2 | 931/931 | 17/453 | ||||||
| Grade1 | 379/380 | 100/116 | ||||||
| Grade2 | Grade2 | 147.0 | 48.5 | 606/622 | 255/305 | Grade3 | 1360/1382 | 267/602 |
| Grade2 | 296/309 | 119/148 | ||||||
| Grade1 | 1014/1045 | 306/362 | ||||||
| Grade3 | Grade3 | 84.4 | 3.0 | 944/950 | 385/405 | Grade3 | 409/432 | 197/197 |
| Grade2 | 487/931 | 393/453 | ||||||
| Grade1 | 899/1045 | 15/362 | ||||||
Classification results for SVM, k-NN, and RBFNN models based on optimal wavelengths selected by PCA.
| Model | Parameter 5 | Calibration Set | Prediction Set | |||||
|---|---|---|---|---|---|---|---|---|
| Acc. 6 (%) | Sen. 7 | Spe. 8 | Acc. (%) | Sen. | Spe. | |||
| Pixel to pixel 1 | SVM | (256, 5.28) | 91.83 | 0.898 | 0.939 | 80.10 | 0.800 | 0.802 |
| k-NN | 3 | 78.48 | 0.700 | 0.870 | 78.18 | 0.642 | 0.895 | |
| RBFNN | 7 | 88.40 | 0.842 | 0.926 | 80.89 | 0.797 | 0.819 | |
| Pixel to object 2 | SVM | (256, 5.28) | 91.83 | 0.898 | 0.939 | 93.62 | 0.785 | 0.998 |
| k-NN | 3 | 78.48 | 0.700 | 0.870 | 83.82 | 0.464 | 0.992 | |
| RBFNN | 7 | 88.40 | 0.842 | 0.926 | 91.40 | 0.711 | 0.997 | |
| Object to pixel 3 | SVM | (147, 9.12) | 99.72 | 0.994 | 0.998 | 71.10 | 0.817 | 0.626 |
| k-NN | 5 | 95.46 | 0.870 | 0.991 | 76.86 | 0.727 | 0.803 | |
| RBFNN | 3 | 99.78 | 0.994 | 0.999 | 54.14 | 0.819 | 0.317 | |
| Object to object 4 | SVM | (147, 9.12) | 99.72 | 0.994 | 0.998 | 99.12 | 0.987 | 0.993 |
| k-NN | 5 | 95.46 | 0.870 | 0.991 | 94.06 | 0.839 | 0.982 | |
| RBFNN | 3 | 99.78 | 0.994 | 0.999 | 99.30 | 0.983 | 0.997 | |
1 Pixel to pixel means to use models using pixel-wise spectra to predict pixel-wise spectra; 2 Pixel to object means models using pixel-wise spectra to predict object-wise spectra; 3 Object to pixel means to use models using object-wise spectra to predict pixel-wise spectra; 4 Object to object means to use models using object-wise spectra to predict object-wise spectra; 5 Parameters for SVM models are C and γ, parameter for k-NN is number of neighbors (k) and parameter for RBFNN is spread value; 6 Acc. means accuracy; 7 Sen. means sensitivity; 8 Spe. means specificity.
Classification results for SVM, k-NN, and RBFNN models based on optimal wavelengths selected by ICA.
| Model | Parameter 5 | Calibration Set | Prediction Set | |||||
|---|---|---|---|---|---|---|---|---|
| Acc. 6 (%) | Sen. 7 | Spe. 8 | Acc. (%) | Sen. | Spe. | |||
| Pixel to pixel 1 | SVM | (256, 16) | 82.15 | 0.739 | 0.903 | 74.9 | 0.708 | 0.784 |
| k-NN | 3 | 85.60 | 0.791 | 0.896 | 71.13 | 0.618 | 0.789 | |
| RBFNN | 6 | 78.92 | 0.695 | 0.884 | 76.74 | 0.797 | 0.819 | |
| Pixel to object 2 | SVM | (256, 9.19) | 82.15 | 0.739 | 0.903 | 78.63 | 0.271 | 0.998 |
| k-NN | 3 | 85.60 | 0.791 | 0.896 | 79.58 | 0.393 | 0.962 | |
| RBFNN | 6 | 78.92 | 0.695 | 0.884 | 80.47 | 0.341 | 0.996 | |
| Object to pixel 3 | SVM | (147, 84.45) | 94.68 | 0.879 | 0.976 | 54.63 | 0.870 | 0.285 |
| k-NN | 5 | 93.64 | 0.849 | 0.974 | 62.17 | 0.709 | 0.551 | |
| RBFNN | 3 | 93.96 | 0.851 | 0.977 | 48.34 | 0.565 | 0.417 | |
| Object to object 4 | SVM | (147, 84.45) | 94.68 | 0.879 | 0.976 | 93.81 | 0.863 | 0.969 |
| k-NN | 5 | 93.64 | 0.849 | 0.974 | 90.58 | 0.805 | 0.947 | |
| RBFNN | 3 | 93.96 | 0.851 | 0.977 | 93.30 | 0.844 | 0.970 | |
1 Pixel to pixel means to use models using pixel-wise spectra to predict pixel-wise spectra; 2 Pixel to object means models using pixel-wise spectra to predict object-wise spectra; 3 Object to pixel means to use models using object-wise spectra to predict pixel-wise spectra; 4 Object to object means to use models using object-wise spectra to predict object-wise spectra; 5 Parameters for SVM models are C and γ, parameter for k-NN is number of neighbors (k) and parameter for RBFNN is spread value; 6 Acc. means accuracy; 7 Sen. means sensitivity; 8 Spe. means specificity.
Figure 5RGB images of the two varieties of raisins: (a) WHB; (b) XF.
Figure 6Hyperspectral imaging system.