Next Article in Journal
Recovery of Pasteurization-Resistant Vibrio parahaemolyticus from Seafoods Using a Modified, Two-Step Enrichment
Next Article in Special Issue
Development of Simplified Models for Non-Destructive Hyperspectral Imaging Monitoring of S-ovalbumin Content in Eggs during Storage
Previous Article in Journal
Quality Evaluation Indices for Soybean Oil in Relation to Cultivar, Application of N Fertiliser and Seed Inoculation with Bradyrhizobium japonicum
Previous Article in Special Issue
High-Resolution X-ray Phase-Contrast Imaging and Sensory and Rheometer Tests in Cooked Edamame
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Discrimination of the Red Jujube Varieties Using a Portable NIR Spectrometer and Fuzzy Improved Linear Discriminant Analysis

1
School of Electrical and Information Engineering, Jiangsu University, Zhenjiang 212013, China
2
High-Tech Key Laboratory of Agricultural Equipment and Intelligence of Jiangsu Province, Jiangsu University, Zhenjiang 212013, China
3
Research Institute of Zhejiang University-Taizhou, Taizhou 317700, China
4
Department of Information Engineering, Chuzhou Polytechnic, Chuzhou 239000, China
*
Author to whom correspondence should be addressed.
Foods 2022, 11(5), 763; https://doi.org/10.3390/foods11050763
Submission received: 25 December 2021 / Revised: 17 February 2022 / Accepted: 25 February 2022 / Published: 7 March 2022

Abstract

:
In order to quickly, nondestructively, and effectively distinguish red jujube varieties, based on the combination of fuzzy theory and improved LDA (iLDA), fuzzy improved linear discriminant analysis (FiLDA) algorithm was proposed to classify near-infrared reflectance (NIR) spectra of red jujube samples. FiLDA shows performs better than iLDA in dealing with NIR spectra containing noise. Firstly, the portable NIR spectrometer was employed to gather the NIR spectra of five kinds of red jujube, and the initial NIR spectra were pretreated by standard normal variate transformation (SNV), multiplicative scatter correction (MSC), Savitzky-Golay smoothing (S-G smoothing), mean centering (MC) and Savitzky-Golay filter (S-G filter). Secondly, the high-dimensional spectra were processed for dimension reduction by principal component analysis (PCA). Then, linear discriminant analysis (LDA), iLDA and FiLDA were applied to extract features from the NIR spectra, respectively. Finally, K nearest neighbor (KNN) served as a classifier for the classification of red jujube samples. The highest classification accuracy of this identification system for red jujube, by using FiLDA and KNN, was 94.4%. These results indicated that FiLDA combined with NIR spectroscopy was an available method for identifying the red jujube varieties and this method has wide application prospects.

1. Introduction

Red jujube is a kind of agricultural product with a long history. It has caught the fascination of people all over the world and is widely planted in China. Red jujube is rich in a variety of nutrients that are beneficial to the human body, including sugars, fats, organic acids, amino acids, vitamins, flavonoids, and a variety of trace elements, which can prevent cancer, cardiovascular and cerebrovascular diseases [1]. For different origins of red jujube, their taste and nutritional value have obvious differences [2]. However, the current testing methods for red jujube varieties at the markets are too complicated and are unsuitable for large-scale application. Furthermore, these methods are not friendly to consumers, so it is very necessary to build a fast, concise, cheap, and reliable method that can recognize the red jujube varieties.
Some traditional identification methods of red jujube varieties have been extensively employed. Professional jujube discriminators can identify the type of red jujube by its shape, colour, and clarity. However, many professionals are vulnerable to the environment and physical state. Furthermore, it also takes plenty of time and money to train a professional red jujube appraiser. In recent years, domestic and foreign researchers actively established some methods for identifying red jujube varieties. For example, Wang et al. explored the electrical characteristics of red jujube fruits for variety identification in 2014 [3].
At present, NIR spectroscopy technology has been quite mature with the emergence of several new types of spectral instruments, and there it has many advantages: fast, low cost, and other advantages [4,5,6,7,8,9,10]. Nowadays, NIR has been widely utilized in the testing of agricultural products [11,12,13,14,15,16,17,18,19], food engineering [20,21], and many other fields. Fan et al. [22] extracted the NIR hyperspectral image of red jujube and built a model based on thermometric methods to identify the types of red jujube in 2017. Zhang et al. [23] employed NIR spectroscopy and partial least squares discriminant analysis (PLSDA) to identify the red jujube varieties in 2017. Luo et al. [24] established an online NIR spectral correction model for the jujube quality of Southern Xinjiang in 2012. Guo, Gu, Liu, & Shang [25] (2016) can identify peach varieties with 100% classification accuracy by least squares support vector machine (LSSVM) and extreme learning machine (ELM) combined with NIR spectroscopy. The genetic algorithm (GA) was utilized to research the NIR spectra of grapes, and the classification accuracy of different grape varieties attained 96.58% [26]. PLSDA combined with local algorithm was employed by Sánchez et al. [27] to classify and recognize strawberry varieties in 2012. Pérez-Marín et al. [28] (2010) employed PLSDA in conjunction with spectral data to accurately classify plum varieties.
Fuzzy recognition is an analytical method which uses fuzzy mathematics theory to solve related problems. Compared with other pattern recognition methods, fuzzy recognition has the advantages of good stability and can accurately describe the diversity of sample information. At present, fuzzy set theory has been used in many fields. Yan et al. [29] combined the maximum boundary criterion (MMC) with fuzzy set theory and proposed a new algorithm-fuzzy maximum boundary criterion. Huang et al. [30] applied fuzzy k-nearest neighbor algorithm (FKNN) to face recognition and obtained high accuracy. Xie et al. [31] applied the fuzzy method to spectral extraction, thus providing a new idea and method for two-dimensional optical fiber spectral extraction. Few scholars have applied the fuzzy feature extraction algorithm in the classification of red jujube before. Traditional feature extraction methods lack the description of the diversity of sample class information. Fuzzy pattern recognition is characterized by the complete representation of sample information and good discriminant stability. Traditional LDA always has the problem of small sample size and rank limit, which restrict the extraction of discriminant information, but improved linear discriminant analysis (iLDA) can solve these two problems based on exponential scatter matrixes [32]. Moreover, iLDA can also identify the valid discriminant information in the null space of the within-class matrix Sw, and LDA cannot do this. Fuzzy improved linear discriminant analysis (FiLDA), the combination of fuzzy theory and iLDA, was not only an innovation in fuzzy feature extraction algorithm, but also the better performance than iLDA in dealing with NIR spectra containing noise, so it can improve the classification accuracy of different types of red jujube. At the same time, based on the advantages of iLDA algorithm and exponential fuzzy scatter matrixes, FiLDA can not only overcome the two problems existing in the LDA algorithm, but also solve the problem of sample class information diversity due to the fuzzy theory. FiLDA is an innovative fuzzy feature extraction algorithm which can carry out more accurate feature extraction from NIR spectra containing noise.
LDA is a supervised pattern recognition technology and it is also an effective feature extraction and dimensionality reduction technology [33]. Beverage, liquor, and other fields have been large-scale use of LDA to identify different varieties [34,35,36]. For many applications, the dimensionality of data exceeds the number of data, i.e., the small sample size problem, which may lead to the singularity of the within-class scatter matrix. However, classical LDA requires the within-class scatter matrix to be nonsingular, which is its limitation [37]. Therefore, LDA has been improved in many aspects by researchers. iLDA is feature extraction and dimensionality reduction algorithms that based on LDA, and this can overcome the above problem.
The purpose of this experiment was to combine fuzzy set theory and feature extraction algorithms to establish a classification model for identifying the red jujube varieties. The experimental steps were described as follows: (1) employ a portable NIR spectrometer to collect the spectra of red jujube samples; (2) preprocess the spectral data, and then use feature extraction algorithms to extract features from the data; (3) utilize KNN to build the identification model of red jujube samples, in order to realize the rapid identification of different red jujube varieties.

2. Materials and Methods

2.1. Sample Preparation

There are five varieties of red jujube samples which come from five production areas (Henan, Shanxi, Xinjiang, Hebei and Gansu) in China. That is, one variety corresponds to one production area. Each variety has 60 samples, so a total of 300 samples were selected. Subsequently, all of the red jujube samples were divided into training and test samples in a certain proportion. The selection of red jujube samples was needed to meet the following requirements: the size (length: 3–5 cm, width: 2–3 cm), weight (10–20 g) and maturity of red jujube which came from the same variety had little difference. Meanwhile, the experimenters ensured that the surface of the red jujube was clean and free from obvious defects.

2.2. Spectra Collection

The NIR-M-R2 spectrometer (Shenzhen Pynect Science and Technology Co. Ltd., Shenzhen, China), a portable spectrometer, was employed to collect NIR spectral data of red jujube samples. It has a wavelength range of 900–1700 nm, a signal-to-noise ratio of 6000:1, the InGaAs detector, and a slit size of 1.8 × 0.025 mm. During the whole collection process, the experimental temperature and relative humidity were kept at about 25 °C and 50–60%, respectively. Before collecting the NIR spectral data, the spectrometer must be preheated for one hour. The wavelength range of the collected NIR spectra was 900–1700 nm, and the resolution ratio was 10 nm. The collected NIR spectra of red jujube were the 228-dimensional data. Each red jujube sample was scanned three times by the spectrometer along around the equator, and the final data were the average of the three test results. FiLDA can deal with noisy data better than LDA and iLDA, so we used the whole range of the spectra to show this advantage of FiLDA. The final spectrogram was displayed in Figure 1.

2.3. NIR Spectra Preprocessing

The original spectra were easily influenced by the physical properties of the samples. The data shown in Figure 1 not only had the required sample characteristics but also were mixed with unnecessary information and noise [38]. Therefore, it was necessary to preprocess the spectra to achieve the purpose of enhancing the stability of the model [39].
In order to get the best experimental results, we employed five pre-processing methods which include MSC, SNV, S-G smoothing, MC and S-G filter [40,41] to preprocess the spectra. For S-G filter, we used Matlab function y = sgolayfilt (x, order, framelen). If x is a matrix, sgolayfilt operates on each column. The polynomial order must be less than the box length framelen, so framelen must be odd. If order = framelen − 1, the filter is not smoothed. In this experiment, the polynomial order was 2 and the box length framelen was 53. Their functions were, respectively, to eliminate scattering phenomenon, reduce the impact of diffuse reflection, decrease random error, delete redundant data and so on. Figure 2 showed the NIR spectra data of red jujube samples after the pre-treatment.

2.4. Data Analysis Methods

2.4.1. Principal Component Analysis

The dimensionality of the collected red jujube NIR spectra was 228. These initial NIR spectra of red jujube samples included some redundant information and noise data, which could increase the difficulty of classification and reduce the accuracy of classification. In order to obtain the effective information of NIR spectra, it was necessary to extract multiple eigenvalues for analysis. However, excessive eigenvalues would not only affect the subsequent spectral analysis but also increase the difficulty of the experiment. The purpose of dimensionality reduction is to find characteristic value which can directly mirror the discrepancy of NIR spectra. PCA is a widely used analytical method, which can be employed to reduce dimension and remove redundant information [42,43]. Meanwhile, PCA preserves the characteristic information of NIR spectra by selecting the original eigenvalues [44].

2.4.2. Linear Discriminant Analysis

LDA is a traditional algorithm to reduce the spectral dimension [45]. In the dimensionality reduction process, it uses the prior knowledge and experience of the samples [46]. The ultimate purpose of LDA is to project spectral data from the higher dimensional space to the lower dimensional space, maximize the distance between classes and minimize the distance within classes.

2.4.3. Improved Linear Discriminant Analysis

iLDA is also an algorithm for feature extraction and it can extract the identification information in the matrix of Sw when the eigenvalues are zero [36].
In this study, iLDA algorithm had two purposes: on the one hand, since the NIR spectra of red jujube was the high-dimensional data, iLDA was employed to deal with spectral data. On the other hand, it could also extract characteristic information from spectral data. Then, the steps of the iLDA are listed as follows (Input: data matrix D; Output: transformation matrix W):
Step 1. Define the matrices S t , S b and S w ;
Step 2. B e x p S w 1 e x p S b ;
Step 3. Eigen decomposition of B as B = U V U T ;
Step 4. W U q , q = c 1 ;
In Step 1, three matrices called total scatter matrix St, between-class matrix Sb, within-class matrix Sw are shown as follows.
S t = i = 1 n d i d ¯ d i d ¯ T
S b = j = 1 c v j d ¯ v j d ¯ T
S w = j = 1 c   d D j   d v j d i v j T
Here, d i is the ith sample; c represents the number of types of experimental samples; n is the number of samples; The mean of all the samples is d ¯ ; v j denotes the mean value of class j samples in the sample set.

2.4.4. Fuzzy Improved Linear Discriminant Analysis

The steps of the FiLDA are listed as follows (Input: data matrix D; Output: transformation matrix W):
  • Define the matrices S f t , S f b and S f w ;
  • B e x p S f w 1 e x p S f b ;
  • Eigen decomposition of B as B = U V U T ;
  • W U q , q = c 1 ;
Three matrices called fuzzy total scatter matrix S f t , fuzzy between-class matrix S f b and fuzzy within-class matrix S f w are shown as follows:
S f t = j = 1 c   i = 1 n u i j η d i d ¯ d i d ¯ T
S f b = j = 1 c   i = 1 n u i j η v j d ¯ v j d ¯ T
S f w = j = 1 c   i = 1 n u i j η d i v j d i v j T
where c is the number of sample categories and n is the number of training sample data. u i j is the fuzzy membership value of the ith data point. η is the weight index. FiLDA algorithm is a combination of fuzzy membership function and iLDA algorithm; it cannot only describe the diversity of sample information but also solve the small sample size problem of LDA.

2.4.5. K Nearest Neighbor

KNN is a supervised pattern recognition algorithm whose basic principle is that the same kind of experimental samples are close to each other, and the different kinds of experimental samples are far away from each other [47].
We employed PCA + LDA, PCA + iLDA, and PCA + FiLDA to realize feature extraction on NIR spectra and then we used the KNN algorithm to establish a classification model of red jujube varieties. The classification accuracy of the model would be affected by the number of samples and the internal parameter K in the course of trying to establish the test model.

2.5. Software

In this article, all of the algorithms were performed using Matlab 2014a (The MathWorks, Natick, MA, USA).

3. Results and Discussion

3.1. Spectral Analysis

In this study, the wavelength scope of the collected NIR spectra of red jujube was 900–1700 nm. The NIR spectra contained a lot of characteristic functional group information as shown in Figure 1. There are 2 distinct peaks, which are 1180 nm and 1430 nm, in the NIR spectra of red jujube samples. After 1350 nm, the absorbance of all of the red jujube samples dramatically changes, which is due to the absorption of O-H and water [48]. From Figure 1, we can also find that the absorbance of the red jujube samples reaches the peak of the whole spectrum at 1430 nm. The first part is connected with the first and second frequency multiplications of C-H group stretching vibration. These absorptions reflect protein-like substances. The peak at 1430 nm may be related to the first and second order frequency doubling of the O-H group in the water [49]. Since red jujube samples with five different varieties have different functional group information, the NIR spectra were able to accurately express all of the samples.

3.2. Spectral Preprocessing

Figure 2 showed the NIR spectra of red jujube samples under different pre-processing methods. These pre-processing methods were employed in this article: S-G smoothing, S-G filter, MC, MSC and SNV. Compared with other spectra, the spectra (b) pre-processed by MC had no obvious peaks and troughs, while the red jujube spectra pre-processed by the other methods all showed obvious peaks and troughs. We tried five preprocessing methods to deal with NIR spectra and found S-G filter with the best effect, so we choose S-G filter to preprocess the spectra in this paper. After spectral pre-processing, we applied PCA + LDA, PCA + iLDA and PCA + FiLDA to implement feature extraction on NIR spectra. The classification accuracy of jujube variety under PCA + LDA, PCA + iLDA and PCA + FiLDA were introduced below.

3.3. Classification with PCA + LDA

The data cannot be used directly after pre-processing because the spectral data contained a lot of repetitive information. This phenomenon was unfavourable for the classification of red jujube varieties. Therefore, in order to obtain the principal components of the spectrum of red jujube samples and remove the redundant information, the spectral dimension must be reduced first [11]. In this experiment, the cumulative contribution of the first 7 principal components was more than 99.98%, and then the NIR spectral data was projected into the first seven principal components, which could improve the classification accuracy of the experiment. Moreover, the eigenvalues were as follows: λ1 = 133.189, λ2 = 7.711, λ3 = 7.258, λ4 = 0.425, λ5 = 0.117, λ6 = 0.062, λ7 = 0.029. Since the first 3 principal components (PC1, PC2, and PC3) accounted for 99.6% of the total square deviation, they not only preserved the characteristic information of the NIR spectrum data but also eliminated the redundant information. Therefore, the three-dimensional feature space of NIR spectral data of red jujube was established. Figure 3 displayed the PCA scores plot of vectors with PC1, PC2, and PC3. Since the experiment used different pre-treatment methods, the spectra of red jujube after PCA treatment were different. It could be seen from the Figure 3 that the clustering positions of each kind of red jujube sample were different, so it was proved that the feature extraction algorithm could be used to classify and identify red jujube from different origins. Among them, the classification effect of Figure 3a was the best, and the classification effect of Figure 3b was the worst. Then the accumulative eigenvalue of PC1 accounted for 89.9% for those of the first 3 principal components (PC1-PC3). Additionally, it was easy to find that the red jujube samples still could not be well recognized by PCA. Therefore, in order to get a better classification effect, it was necessary to adopt more feature extraction methods to obtain the identification information from red jujube samples. In this experiment, PCA + LDA is a two-stage algorithm. That is to say, PCA is employed to reduce the dimension of spectral data, and then LDA is applied to extract the characteristic information of spectral data. Therefore, PCA was employed to reduce the dimensionality of the red jujube NIR spectral data to 7 latent variables. Then, LDA was responsible for extracting discriminant information and the test samples were mapped to these discriminant vectors of LDA.
LDA scores plot of vectors with DV1, DV2, and DV3 were shown in Figure 4. In Figure 4, samples in 2 varieties of red jujubes (Henan and Shanxi) overlapped each other, but most of the experimental samples of red jujube could be easily distinguished.

3.4. Classification with iLDA

iLDA extracted discriminant information from the 7-dimensional spectral data. A total of 300 red jujube samples were divided into the training set (each variety of red jujube has 35 training samples, totally 175) and the test set (each variety of red jujube has 25 test samples, totally 125). After the training set was processed by iLDA to produce 3 optimal discriminant vectors (DV1, DV2 and DV3), the 7-dimensional spectral data of 125 test samples were projected to DV1, DV2 and DV3. Figure 5 showed the scores plot of three optimal discriminant vectors. As shown in Figure 5, test samples of the NIR spectral data had good distribution. However, there were 13 samples from Hebei misclassified as those from Xinjiang and there were 10 samples from Shanxi misclassified as those from Henan. There were 3 samples from Xinjiang misclassified as those from Shanxi, and there was also 1 sample from Gansu misclassified as that from Hebei. Therefore, its classification accuracy was only 77.6%.

3.5. Classification with FiLDA

In this section, FiLDA was applied to extract feature information of the NIR spectral data after PCA dimension reduction. All of the parameters were as follows: the fuzzy weight parameter η = 4 , the number of sample categories c = 5 . The initial cluster centers of FiLDA were:
V 0 = v 1 0 v 2 0 v 3 0 v 4 0 v 5 0 = 0.9550   0.3765   0.1315   0.2947   0.9564   0.1284   0.2290   0.0897   0.0378   0.1167   0.1512   0.0789   0.0984   0.0864   0.0497   0.0214   0.0086   0.0295   0.0084   0.0397   0.0184   0.0002   0.0005 0.0038 0.0112   0.0084   0.0074   0.0121   0.0206   0.0120   0.0049 0.0066 0.0164 0.0033 0.0033
The initial fuzzy membership values of FiLDA were displayed in Figure 6. The abscissa represented sample set and the ordinate signified fuzzy membership values. There were five different varieties in this experiment, so there were five different little figures. Each little figure represented red jujube from one origin, and they represented Henan, Shanxi, Xinjiang, Hebei, and Gansu, respectively. When the value of the ordinate exceeds 0.5, it means that the test sample belongs to the red jujube of a certain origin. When the fuzzy membership value of the ith sample u i j was the biggest in the jth class, we could confirm the ith sample belonged to the jth class.
Figure 4, Figure 5 and Figure 7 used the first seven PCs to develop discriminant analysis model and S-G filter was applied as pre-processing method. Figure 7 displayed the three-dimensional scoring diagram when the feature extraction algorithm of FiLDA was used to extract the identification information from the test set of red jujube samples. A total of 5 different kinds of red jujube samples could be clearly identified by using FiLDA with the classification accuracy 94.4%. In view of classification results, the data distribution of Figure 7 was obviously better than that in Figure 5. This further demonstrated the effectiveness of FiLDA in extracting the identification information from NIR spectra of red jujube.

3.6. Classification Results of KNN

Table 1 displayed the recognition accuracies of red jujube varieties from different origins by using several pre-processing methods and feature extraction algorithms. At the same time, other conditions remain unchanged (especially the number of training samples n_training is 175 and the number of testing samples n_test is 125).
The pre-processing method and feature extraction algorithm were S-G filter and LDA, respectively, and the classification accuracy of the KNN was 75.2%. There were 14 samples from Shanxi misclassified as those from Henan and there were also 4 samples from Xinjiang misclassified as those from Shanxi. There was also 11 sample from Hebei misclassified as that from Xinjiang, and there were also 2 samples from Gansu misclassified as those from Hebei. The pre-processing method and feature extraction algorithm were S-G filter and FiLDA, respectively, and the classification accuracy of the KNN reached 94.4%. There were 2 samples from Hebei misclassified as those from Shanxi, and there were also 2 samples from Gansu misclassified as those from Hebei. There was also about 1 sample from Shanxi misclassified as that from Henan and there was also 1 sample from Xinjiang misclassified as that from Shanxi. It can prove that FiLDA can classify red jujube varieties and has a good classification effect. At the same time, it was apparent that the classification accuracies of LDA were generally not as good as those of iLDA and FiLDA when using the same pre-processing methods.

3.7. Discussion

The NIR spectral data were collected by the NIR-M-R2 spectrometer, and then spectral data were processed by S-G filter, PCA, LDA, iLDA and FiLDA. Then, KNN was applied to classify the test samples. We evidently discovered that the classification accuracies of red jujube varieties were different when different feature extraction algorithms were used in the experiments in Table 1. The classification accuracies reached less than 90% when the PCA + LDA/iLDA were employed as feature extraction algorithms. In contrast, they could reach more than 90% when the PCA + FiLDA was applied as feature extraction algorithm. As was shown in Table 1, it could be found that the classification accuracy was the highest when both FiLDA and the S-G filter preprocessing method were utilized in this classification system for processing NIR spectra of red jujube samples.
The number of training samples and test samples was changed, but other experimental conditions were consistent. Table 2 displayed the classification accuracies of red jujube varieties by several feature extraction methods and different number of training data and test data. In Table 2, n_training indicates the number of training samples, and n_ test represents the number of test samples. It was easy to find that the classification accuracies changed with the above 2 parameters. From Table 2, we could clearly see that PCA + FiLDA can better classify different kinds of red jujube samples compared with PCA + LDA/iLDA. When the parameters of n_training and n_test were 175 and 125, respectively, the classification accuracy of PCA + FiLDA also reached the highest with 94.4%.

4. Conclusions

To classify red jujube varieties quickly, nondestructively, and effectively, FiLDA algorithm coupled with NIR spectroscopy was proposed in this study. FiLDA algorithm is the derivation of fuzzy set theory and iLDA. FiLDA is a new fuzzy feature extraction algorithm that combines the fuzzy algorithm with the iLDA, and it is applied in the identification of red jujube varieties. The NIR spectral data were collected for 300 red jujube samples of 5 types by using the NIR-M-R2 spectrometer. NIR spectra were processed by S-G filter, PCA, LDA, iLDA and FiLDA, respectively. Finally, KNN was employed as a classifier to recognize the red jujube varieties. FiLDA was able to identify red jujube samples accurately and had the highest classification accuracies than other feature extraction algorithms. In addition, NIR spectroscopy has been widely used in the field of food inspection, and in the food supply chain. The experimental results proved that FiLDA algorithm coupled with NIR spectroscopy could play an important role in the classification of red jujube varieties.

Author Contributions

Conceptualization, Z.Q. and X.W.; methodology, X.W.; software, Z.Q.; validation, Z.Q. and X.W.; investigation, Z.Q. and X.W.; resources, B.W. and H.F.; data curation, B.W. and H.F.; writing—original draft preparation, Z.Q.; writing—review and editing, X.W. and Y.Y.; visualization, B.W. and H.F.; supervision, X.W. and Y.Y.; project administration, X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Priority Academic Program Development of Jiangsu Higher Education Institutions (PAPD), the Talent Program of Chuzhou Polytechnic (YG2019026 and YG2019024) and Key Science Research Project of Chuzhou Polytechnic (YJZ-2020-12).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing is not applicable to this article.

Acknowledgments

We would like to thank Haoxiang Zhou for his help for this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yang, J.; Hou, Y.; Chang, N. Determination of amino acid content and principal component analysis of Shanxi jujube. Food Res. Dev. 2021, 42, 141–145. [Google Scholar]
  2. Mairemu, S.Y. Establishment of near infrared spectroscopy for Jun jujube sugar of different mature period. Anhui Agric. Sci. Bull. 2017, 23, 143–145. [Google Scholar]
  3. Wang, H.Q.; Zhang, H.H.; Zhuo, S.P.; Zhang, Z.; Li, H.F. Identification of jujube fruit species based on dielectric properties. Food Sci. Technol. 2014, 7, 304–308. [Google Scholar]
  4. Chen, Q.S.; Chen, M.; Liu, Y.; Wu, J.Z.; Wang, X.Y.; Ouyang, Q.; Chen, X.H. Application of FT-NIR spectroscopy for simultaneous estimation of taste quality and taste-related compounds content of black tea. Food Sci. Technol. Mysore. 2018, 55, 4363–4368. [Google Scholar] [CrossRef]
  5. Jiang, H.; Chen, Q.S. Chemometric models for the quantitative descriptive sensory properties of green tea (Camellia sinensis L.) using Fourier transform near infrared (FT-NIR) spectroscopy. Food Anal. Method. 2015, 8, 954–962. [Google Scholar] [CrossRef]
  6. Ripoll, G.; Lobón, S.; Joy, M. Use of visible and near infrared reflectance spectra to predict lipid peroxidation of light lamb meat and discriminate dam’s feeding systems. Meat Sci. 2018, 143, 24–29. [Google Scholar] [CrossRef] [Green Version]
  7. Wang, J.J.; Zareef, M.; He, P.H.; Sun, H.; Chen, Q.S.; Li, H.H.; Xu, D.L. Evaluation of matcha tea quality index using portable NIR spectroscopy coupled with chemometric algorithms. J. Sci. Food Agric. 2019, 99, 5019–5027. [Google Scholar] [CrossRef]
  8. Zhang, H.; Jiang, H.; Liu, G.H.; Mei, C.L.; Huang, Y.H. Identification of radix puerariae starch from different geographical origins by FT-NIR spectroscopy. Int. J. Food Prop. 2017, 20, 1567–1577. [Google Scholar] [CrossRef]
  9. Tan, B.; Xiao, T.F.; Liu, Q.L.; Li, G.; Huang, C.X.; Li, G. Nondestructive detection experiment of typical economic fruit near-infrared diffuse reflection and its spectral data analysis. Hubei Agric. Sci. 2020, 59, 154–158. [Google Scholar]
  10. Lei, S.Z.; Yao, H.G. Applications of near infrared spectrum technique for non-destructive measurement of fruit quality. Chinese J. Spectrosc. Lab. 2009, 26, 775–779. [Google Scholar]
  11. Shang, J.; Zhang, Y.; Meng, Q.L. Nondestructive identification of apple varieties by VIS/NIR spectroscopy. Storage. Process 2019, 19, 8–14. [Google Scholar]
  12. Zhan, Y.; Peng, Y.F.; Peng, H.G.; Luo, H.P. Application of near-infrared spectroscopy nondestructive testing of jujube in south xinjiang sugar content. J. Agric. Mech. Res. 2014, 36, 179–183. [Google Scholar]
  13. Wu, X.H.; Wu, B.; Sun, J.; Li, M. Rapid discrimination of apple varieties via near-infrared reflectance spectroscopy and fast allied fuzzy c-means clustering. Int. J. Food Eng. 2014, 11, 23–30. [Google Scholar] [CrossRef]
  14. Wu, X.H.; Wu, B.; Sun, J.; Li, M.; Du, H. Discrimination of apples using near infrared spectroscopy and sorting discriminant analysis. Int. J. Food Prop. 2016, 19, 1016–1028. [Google Scholar] [CrossRef] [Green Version]
  15. Zhao, J.; Hao, L.; Chen, Q.; Huang, X.; Sun, Z.; Fang, Z. Identification of egg’s freshness using NIR and support vector data description. J. Food Eng. 2010, 98, 408–414. [Google Scholar] [CrossRef]
  16. Teye, E.; Huang, X.; Takrama, J.; Haiyang, G. Integrating NIR spectroscopy and electronic tongue together with chemometric analysis for accurate classification of cocoa bean varieties. J. Food Process Eng. 2014, 37, 560–566. [Google Scholar] [CrossRef]
  17. Xing, Z.; Hou, X.; Tang, Y.; He, R.; Mintah, B.K.; Dabbour, M. Monitoring of polypeptide content in the solid-state fermentation process of rapeseed meal using NIRS and chemometrics. J. Food Process Eng. 2018, 41, e12853. [Google Scholar] [CrossRef]
  18. Guo, Z.; Barimah, A.O.; Shujat, A.; Zhang, Z.; Chen, Q. Simultaneous quantification of active constituents and antioxidant capability of green tea using NIR spectroscopy coupled with swarm intelligence algorithm. LWT-Food Sci. Technol. 2020, 129, 109510. [Google Scholar] [CrossRef]
  19. Cai, J.R.; Chen, Q.S.; Wan, X.M.; Zhao, J.W. Determination of total volatile basic nitrogen (TVB-N) content and warner-bratzler shear force (WBSF) in pork using Fourier transform near infrared (FT-NIR) spectroscopy. Food Chem. 2011, 126, 1354–1360. [Google Scholar] [CrossRef]
  20. Huang, X.Y.; Xu, H.X.; Wu, L.; Dai, H.; Yao, L.Y.; Han, F.K. A data fusion detection method for fish freshness based on computer vision and near-infrared spectroscopy. Anal. Method 2016, 8, 2929–2935. [Google Scholar] [CrossRef]
  21. Wu, X.H.; Fu, H.J.; Tian, X.Y.; Wu, B.; Sun, J. Prediction of pork storage time using Fourier transform near infrared spectroscopy and adaboost ULDA. J. Food Process Eng. 2017, 40, e12566. [Google Scholar] [CrossRef]
  22. Fan, Y.; Qiu, Z.; Chen., J.; Wu, X.; He, Y. Identification of varieties of dried red jujubes with near-infrared hyperspectral imaging. Spectrosc. Spectr. Anal. 2017, 37, 836–840. [Google Scholar]
  23. Zhang, J.C.; Zhang, X.; Bai, T.C.; Shi, L.Z. Jujube species identification based on near infrared spectroscopy and PLS-DA. Sci. Technol. Food Ind. 2017, 38, 68–71, 76. [Google Scholar]
  24. Luo, H.P.; Wang, L.; Guo, L.; Xuan, Z.Y. The research to detection the moisture content of southern jujube rapidly with near infrared spectroscopy. Int. Acad. Annu. Meet China Agric. Mach. Soc. 2012, 14, 25–28. [Google Scholar]
  25. Guo, W.C.; Gu, J.S.; Liu, D.Y.; Shang, L. Peach variety identification using near-infrared diffuse reflectance spectroscopy. Comput. Electron. Agric. 2016, 123, 297–303. [Google Scholar] [CrossRef]
  26. Cao, F.; Wu, D.; He, Y. Soluble solids content and pH prediction and varieties discrimination of grapes based on visible–near infrared spectroscopy. Comput. Electron. Argic. 2010, 71, 15–18. [Google Scholar] [CrossRef]
  27. Sánchez, M.T.; Haba, M.J.D.L.; Benítez-López, M.; Fernández-Novales, J.; Garrido-Varo, A.; Perez-Marin, D. Non-destructive characterization and quality control of intact strawberries based on NIR spectral data. J. Food Eng. 2012, 110, 102–108. [Google Scholar] [CrossRef]
  28. Pérez-Marín, D.; Paz, P.; Guerrero, J.M.; Garrido-Varo, A.; Sánchez, M.T. Miniature handheld NIR sensor for the on-site non-destructive assessment of post-harvest quality and refrigerated storage behavior in plums. J. Food Eng. 2010, 99, 294–302. [Google Scholar] [CrossRef]
  29. Yan, C.; Fan, L. Feature extraction using fuzzy maximum margin criterion. Neurocomputing 2012, 86, 52–58. [Google Scholar]
  30. Huang, P.; Yang, Z.J.; Chen, C.K. Fuzzy local discriminant embedding for image feature extraction. Comput. Elect. Eng. 2015, 46, 231–240. [Google Scholar] [CrossRef]
  31. Xie, J.; Li, J.; Wang, H.; Zeng, W.; Guo, P. The methods for two-dimensional fiber spectra extraction. In Proceedings of the 2016 12th International Conference on Computational Intelligence and Security (CIS), Wuxi, China, 16–19 December 2016; pp. 487–491. [Google Scholar]
  32. Liu, Z.B. An improved LDA algorithm and its application to face recognition. Comput. Eng. Sci. 2011, 33, 89–93. [Google Scholar]
  33. Huang, Y.; Guan, Y. On the linear discriminant analysis for large number of classes. Eng. Appl. Artif. Intell. 2015, 43, 15–26. [Google Scholar] [CrossRef]
  34. Liang, J.F.; Wu, W.; Chen, D.W. Identification of liquor authenticity based on FTIR with PCA- LDA. Sci. Technol. Food Ind. 2016, 37, 309–312. [Google Scholar]
  35. Yang, Z.; Wang, N.; Ullah, N.; Liang, Y.; Yang, X.; Cheng, Z. Quality of jujube beverage fermented by lactic acid based on electronic nose analysis. Acta. Agric. Boreali Occiden Sin. 2015, 24, 149–156. [Google Scholar]
  36. Wei, Y.; Lin, L.; Yang, X.; Li, D.; Fu, H.; Yang, T. NIR fiber technology combined with pattern recognition forrapid identification of melamine adulteration in milk. China Dairy Ind. 2016, 44, 48–51. [Google Scholar]
  37. Ye, J.P. Characterization of a family of algorithms for generalized discriminant analysis on undersampled problems. J. Mach. Learn. Res. 2005, 6, 483–502. [Google Scholar]
  38. Shen, Y.; Wu, X.; Wu, B.; Tan, Y.; Liu, J. Qualitative analysis of lambda-cyhalothrin on Chinese cabbage using mid-infrared spectroscopy combined with fuzzy feature extraction algorithms. Agriculture 2021, 11, 275. [Google Scholar] [CrossRef]
  39. Xiong, C.C.; Li, L.; Wang, T.Y. Establishment of a cinnamon habitat model based on near infrared spectroscopy. Northwest Pharm. J. 2016, 31, 221–225. [Google Scholar]
  40. Yu, M.; Li, S.; Yang, F.; Zheng, Y.; Li, P.; Jiang, L.; Liu, X. Identification on different origins of citri reticulatae pericarpium using near infrared spectroscopy combined with optimized spectral pretreatments. J. Instrum. Anal. 2021, 40, 65–71. [Google Scholar]
  41. Chen, J.; Jonsson, P. A simple method for reconstructing a high-quality NDVI time-series data set based on the savitzky-golay filter. Remote Sens. Environ. 2004, 91, 332–344. [Google Scholar] [CrossRef]
  42. Chen, S.Y.; Zhao, Q.M.; Dong, D.M. Application of near infrared spectroscopy combined with comparative principal component analysis for pesticide residue detection in fruit. Spectrosc. Spectr. Anal. 2020, 40, 917–921. [Google Scholar]
  43. Wu, X.H.; Zhou, H.X.; Wu, B.; Fu, H.J. Determination of apple varieties by near infrared reflectance spectroscopy coupled with improved possibilistic Gath–Geva clustering algorithm. J. Food Process Preserv. 2020, 44, e14561. [Google Scholar] [CrossRef]
  44. Dixon, S.J.; Brereton, R.G. Comparison of performance of five common classifiers represented as boundary methods: Euclidean distance to centroids, linear discriminant analysis, quadratic discriminant analysis, learning vector quantization and support vector machines, as dependent on data structure. Chemometr. Intell. Lab. Syst. 2009, 95, 1–17. [Google Scholar]
  45. Dogantekin, E.; Dogantekin, A.; Avci, D. An automatic diagnosis system based on thyroid gland: ADSTG. Expert. Syst. Appl. 2010, 37, 6368–6372. [Google Scholar] [CrossRef]
  46. Dixon, S.J. Application of classification methods when group sizes are unequal by incorporation of prior probabilities to three common approaches: Application to simulations and mouse urinary chemosignals. Chemometr. Intell. Lab. Syst. 2009, 99, 111–120. [Google Scholar] [CrossRef]
  47. Wu, B.; Wang, D.Z.; Ji, G. Classification of vinegars based on orthogonal linear discriminant analysis and electronic nose technology. Food Ferment. Ind. 2020, 46, 263–268. [Google Scholar]
  48. Wu, L.G.; He, J.G.; Liu, G.S.; Wang, S.L.; He, X.G. Detection of common defects on jujube using Vis-NIR and NIR hyperspectral imaging. Postharvest Biol. Technol. 2016, 112, 134–142. [Google Scholar] [CrossRef]
  49. Wang, J.; Nakano, K.; Ohashi, S. Nondestructive detection of internal insect infestation in jujubes using visible and near-infrared spectroscopy. Postharvest Biol. Technol. 2010, 59, 272–279. [Google Scholar] [CrossRef]
Figure 1. The raw spectra of red jujube samples.
Figure 1. The raw spectra of red jujube samples.
Foods 11 00763 g001
Figure 2. NIR spectra of red jujube samples under different pretreatment methods: (a) S-G filter, (b) MC, (c) MSC, (d) SNV, (e) S-G smoothing.
Figure 2. NIR spectra of red jujube samples under different pretreatment methods: (a) S-G filter, (b) MC, (c) MSC, (d) SNV, (e) S-G smoothing.
Foods 11 00763 g002aFoods 11 00763 g002b
Figure 3. PCA scores plot of vectors with PC1, PC2 and PC3 under different pretreatment methods: (a) S-G filter, (b) MC, (c) MSC, (d) SNV, (e) S-G smoothing.
Figure 3. PCA scores plot of vectors with PC1, PC2 and PC3 under different pretreatment methods: (a) S-G filter, (b) MC, (c) MSC, (d) SNV, (e) S-G smoothing.
Foods 11 00763 g003
Figure 4. LDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter +PCA + LDA.
Figure 4. LDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter +PCA + LDA.
Foods 11 00763 g004
Figure 5. iLDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter +PCA + iLDA.
Figure 5. iLDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter +PCA + iLDA.
Foods 11 00763 g005
Figure 6. Initial fuzzy membership values.
Figure 6. Initial fuzzy membership values.
Foods 11 00763 g006
Figure 7. FiLDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter + PCA + FiLDA.
Figure 7. FiLDA scores plot of vectors with DV1, DV2 and DV3 under S-G filter + PCA + FiLDA.
Foods 11 00763 g007
Table 1. Classification accuracies by several preprocessing methods and feature extraction algorithms.
Table 1. Classification accuracies by several preprocessing methods and feature extraction algorithms.
SNVMSCMCS-G SmoothingS-G Filter
PCA + LDA47.2%44.0%44.6%45.6%75.2%
PCA + iLDA50.1%44.0%47.2%58.4%77.6%
PCA + FiLDA52.5%68.5%62.5%75.0%94.4%
Table 2. Classification accuracies with different number of training data and test data.
Table 2. Classification accuracies with different number of training data and test data.
n_trainingn_testPCA + LDAPCA + iLDAPCA + FiLDA
15015077.3%79.3%92.0%
17512575.2%77.6%94.4%
20010075.0%76.0%90.0%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Qi, Z.; Wu, X.; Yang, Y.; Wu, B.; Fu, H. Discrimination of the Red Jujube Varieties Using a Portable NIR Spectrometer and Fuzzy Improved Linear Discriminant Analysis. Foods 2022, 11, 763. https://doi.org/10.3390/foods11050763

AMA Style

Qi Z, Wu X, Yang Y, Wu B, Fu H. Discrimination of the Red Jujube Varieties Using a Portable NIR Spectrometer and Fuzzy Improved Linear Discriminant Analysis. Foods. 2022; 11(5):763. https://doi.org/10.3390/foods11050763

Chicago/Turabian Style

Qi, Zuxuan, Xiaohong Wu, Yangjian Yang, Bin Wu, and Haijun Fu. 2022. "Discrimination of the Red Jujube Varieties Using a Portable NIR Spectrometer and Fuzzy Improved Linear Discriminant Analysis" Foods 11, no. 5: 763. https://doi.org/10.3390/foods11050763

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop