Next Article in Journal
Potentially Synbiotic Yellow Mombin Beverages: Stability during Refrigerated Storage, Physicochemical Characteristics, and Sensory Properties
Next Article in Special Issue
Digital Prediction of the Purchase Price of Fresh Tea Leaves of Enshi Yulu Based on Near-Infrared Spectroscopy Combined with Multivariate Analysis
Previous Article in Journal
GC-MS Coupled with Rate-All-That-Apply (RATA) to Analyse the Volatile Flavor Substances of Yellow Wine during Fermentation
Previous Article in Special Issue
An Automated Image Processing Module for Quality Evaluation of Milled Rice
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Qualitative and Quantitative Assessments of Apple Quality Using Vis Spectroscopy Combined with Improved Particle-Swarm-Optimized Neural Networks

1
Key Laboratory of Optic-Electronics and Communication, Jiangxi Science and Technology Normal University, Nanchang 330038, China
2
Key Laboratory of Optic-Electronic Detection and Information Processing of Nanchang City, Jiangxi Science and Technology Normal University, Nanchang 330038, China
*
Author to whom correspondence should be addressed.
Foods 2023, 12(10), 1991; https://doi.org/10.3390/foods12101991
Submission received: 4 April 2023 / Revised: 10 May 2023 / Accepted: 10 May 2023 / Published: 15 May 2023
(This article belongs to the Special Issue Sensors for Food Safety and Quality Assessment)

Abstract

:
Exploring a cost-effective and high-accuracy optical detection method is of great significance in promoting fruit quality evaluation and grading sales. Apples are one of the most widely economic fruits, and a qualitative and quantitative assessment of apple quality based on soluble solid content (SSC) was investigated via visible (Vis) spectroscopy in this study. Six pretreatment methods and principal component analysis (PCA) were utilized to enhance the collected spectra. The qualitative assessment of apple SSC was performed using a back-propagation neural network (BPNN) combined with second-order derivative (SD) and Savitzky–Golay (SG) smoothing. The SD-SG-PCA-BPNN model’s classification accuracy was 87.88%. To improve accuracy and convergence speed, a dynamic learning rate nonlinear decay (DLRND) strategy was coupled with the model. After that, particle swarm optimization (PSO) was employed to optimize the model. The classification accuracy was 100% for testing apples via the SD-SG-PCA-PSO-BPNN model combined with a Gaussian DLRND strategy. Then, quantitative assessments of apple SSC values were performed. The correlation coefficient (r) and root-square-mean error for prediction (RMSEP) in testing apples were 0.998 and 0.112 °Brix, surpassing a commercial fructose meter. The results demonstrate that Vis spectroscopy combined with the proposed synthetic model has significant value in qualitative and quantitative assessments of apple quality.

Graphical Abstract

1. Introduction

Apples, as one of the most nutritious fruits, are loved by consumers around the world because of their rich vitamin content and trace elements. Apples are also one of the most widely profitable fruits, accounting for 15% of all fruit sales worldwide [1]. At present, more than 80 countries and regions produce apples around the world, with the main production areas being concentrated in Asia, Europe, and North America. Asia ranks first and Europe ranks second in the world. In 2022, the world’s apple production reached 81.799 million tons; China and the European Union are the major regions of global apple consumption, with consumption accounting for 54% and 14%, respectively. It is expected that global apple production will reach 100 million tons by 2025. The quality of apples varies between regions due to environmental factors, soil characteristics, etc. Most traditional methods of assessing apple quality are based on observing color, size, and taste. These methods have interference problems associated with subjective factors, which result in inaccurate assessments and low efficiency. Chemical identification methods are usually time-consuming and unsuitable for mass operations. There are also few studies on qualitative and quantitative assessments of apple quality. For example, Zheng et al. [2] used two-dimensional electrophoresis and mass spectrometry analysis to qualitatively and quantitatively evaluate the quality of apples and strawberries. However, the evaluation’s efficiency was limited by the complexity of extracting the protein of fruit tissues and the low performance-to-price ratio of the detection instruments, which is indicative of the great difficulty in sorting apples onsite or online. Therefore, developing a convenient and cost-effective method of qualitatively and quantitatively assessing apple quality would be of significant value.
Over the last decade, spectroscopy technology [3] has become a research hotspot in achieving better fruit quality detection. This technology can rapidly detect fruit quality because of the advantages of a short detection time, simple operation, and the simultaneous detection of multiple components. To date, it has been widely used for sugar content, regional traceability, and even identifying fruit varieties, such as apples and pears (Mo et al. [4]; Huang et al. [5]; Shen et al. [6]; Bat et al. [7]; Mendoza et al. [8]). In addition, it has some applications in fruit quality detection; for example, Song et al. [9] proposed a method using near-infrared spectroscopy (NIRS) combined with pattern recognition, in which the spectra were preprocessed via baseline correction and normalization. A partial least-squares discriminant analysis (PLS-DA) model was used for classification, and apple samples were classified as organic or non-organic with an accuracy of 96%. Tran et al. [10] combined an optimally trained classifier with a self-developed simple spectroscopy system to classify the sweetness of apples, and a classification accuracy of 91.3% was obtained using a discriminant analysis (DA) model. Zhang et al. [11] employed NIRS to detect apple ripeness via iodine testing, classifying apples into three categories of ripeness (i.e., immaturity, harvest maturity, and edible maturity), and a linear DA model was developed by using spectral indices. The classification accuracy of the testing-set samples was 87.15%. In addition, the classification accuracies of the testing-set samples were 87.36% and 90.11%, respectively, for the least-square method coupled with a support vector machine (LS-SVM) model using raw spectra or combined with a successive projection algorithm (SPA) to extract 11 features. These results show that NIRS techniques have potential value and feasibility in assessing fruit quality.
There have also been studies on fruit quality using visible and near-infrared spectroscopy (Vis/NIRS). For example, Xu [12] utilized Vis/NIRS to detect the internal flavors of the ‘Shatian’ pomelo fruit. The coefficient of determination and the root-mean-square error (RMSE) of the validation set for soluble solid content (SSC) were 0.72 and 0.49 °Brix, respectively, and for acidity detection, the values were 0.55% and 0.10%, respectively. Hua [13] used visible/shortwave–near-infrared spectroscopy (Vis/SW-NIRS) with light-emitting diode light sources and a silicon photodetector to measure the SSC and firmness of wax apples. Partial least squares regression (PLSR) was used to build calibration modes and analyze the prediction of the correlation (rp2) and the root-mean-square error for prediction (RMSEP). The results showed that the rp2 and RMSEP values were 0.87 and 0.66 °Brix, respectively, in SSC measurements and 0.80 and 1.16 N/cm2, respectively, in firmness measurements. Fan [14] employed Vis/NIRS with diffuse transmittance to determine the SSC of “Fuji” apples at 650–910 nm. Partial least squares (PLS) models were combined with a modified competitive adaptive reweighted sampling (MCARS), and SPA was used to analyze the performance of the SSC determination. The correlation coefficients between the measured and predicted SSC were 0.962 and 0.946, and the RMSE values were 0.510 °Brix and 0.527 °Brix for the calibration and prediction sets, respectively. Torres [15] used Vis/NIRS combined with chemometric techniques to identify bitter pits in Golden apples, as well three different classification algorithms, i.e., linear discriminant analysis (LDA), quadratic discriminant analysis (QDA), and the support vector machine (SVM). The detection accuracies for pitted apples with visible symptoms postharvest were 75–81%. Scalisi [16] studied the application of Vis/NIRS in estimating SSC, dry matter concentration (DMC), and flesh firmness in nectarines, peaches, apricots, and Japanese plums at the time of harvest by using PLSR models based on the second derivative (SD) of the absorbance occurring in the 729–975 nm spectral region; the accuracy (R2CV) of the SSC and DMC predictions was larger than 0.75.
Although there are advantages to using NIRS for spectral detection, NIRS instruments are usually expensive, especially desktop Fourier transform NIR spectrometers and grating spectrometers with higher optical resolutions. This results in a low performance-to-cost ratio. At the same time, although some studies on detecting fruit quality based on Vis/NIRS have already been conducted, there are few works that have studied fruit quality detection and assessment based on Vis spectroscopy alone. Therefore, it is necessary to seek a highly cost-effective spectral detection technology to qualitatively and quantitatively assess fruit quality. Studies report that some visible wavelengths, e.g., 461 nm, 469 nm [17], and 750 nm, are the characteristic absorption wavelengths of the carbohydrates in fruits, such as SSC and proteins. It has been demonstrated that spectral-detection-based Vis spectroscopy is feasible. Of note, the performance-to-cost ratio of spectral-detection-based Vis spectroscopy is higher than that of NIRS.
As with NIRS spectra, Vis spectra generally contain a large amount of information and require multivariate statistical techniques for analysis. Artificial neural networks (ANN) are powerful analytical tools for qualitative classification and quantitative prediction. They have the advantages of high accuracy in classification, strong parallel distributed processing, fast learning speeds, and strong resistance to noisy nerves and fault tolerance [18]. These advantages make applying ANN to fruit quality detection possible. For example, Opeña et al. [19] developed an automatic tomato classification system using an ANN classifier trained with the artificial bee colony (ABC) algorithm, i.e., the ABC-trained ANN classifier, which performed tomato classification with an accuracy of 98.19%.
Our main aim is to develop a highly accurate and high performance-to-cost ratio assessment scheme to detect apple quality via Vis spectroscopy; to establish qualitative and quantitative models via ANN; and, finally, to ensure the high classification accuracy and sufficiently low RMSE value of apple SSC values by using spectra enhancement and intelligent optimization methods. In this work, SSC was used to evaluate the quality of apples. SSC normally refers to the percentage concentration of soluble sugars (mainly fructose, glucose, and sucrose) in fruit, and there is a significant positive correlation between SSC and soluble sugars [20]. SSC is an important apple quality element because of its commercial value and intuitive taste. Therefore, SSC is commonly used in production to compare the sugar contents of fruit. In general, apples with a high and uniform SSC (≥13 °Brix) have a sweeter and more delicious taste, which is preferred by consumers [4]. The basic framework of qualitative and quantitative assessments of apple SSC values using Vis spectroscopy is provided in Figure 1.
The contents of this study are as follows: (1) The Vis absorption spectra of apples were collected using a UV-Vis spectrometer in transmission mode, and the morphological differences in the spectra of apples with different SSC values were analyzed. At the same time, the actual SSC values of the apples were measured using a commercial refractive fructose meter. (2) To improve the assessment accuracy, six different pretreatment methods were performed, and principal component analysis (PCA) was used to extract the main feature information of the raw Vis spectra of apples. (3) To qualitatively and quantitatively assess apple quality based on SSC, a qualitative classification model of SSC based on the back-propagation neural network (BPNN) model was established for the pretreated and data-augmented spectra. Moreover, four dynamic learning rate nonlinear decay (DLRND) strategies combined with BPNN were used to improve the classification accuracy and increase the convergence speed. (4) To further improve the classification accuracy, the particle swarm optimization (PSO) algorithm was used to optimize the BPNN model. To validate the availability of the synthetic method proposed in this work, i.e., the second-order derivative + Savitzky–Golay(SG) smoothing + PCA + PSO + BPNN (SD-SG-PCA-PSO-BPNN) model, we combined it with a Gaussian DLRND strategy; the qualitative classification accuracy of apple SSC based on this synthetic method was compared with that of several other models. (5) Based on the proposed synthetic method, the quantitative assessment of apple SSC was also studied. The availability of quantitatively predicted apple SSC based on this synthetic method was validated using RMSE values and correlation coefficients between several quantitative assessment algorithms.

2. Materials and Methods

2.1. Sample Preparation

In the experiments, 100 red Fuji apples were purchased from local fruit markets in Luochuan, Shanxi, China; the representative apples are shown in Figure 2a. All of these apples were free from bruising or decay and were visually similar in size. Prior to measurement, all apples were packed in sealed plastic bags and stored in a refrigerator (4 ± 0.5 °C). Before the experiments, these apples were taken out of the refrigerator and washed with water. To avoid interference from exogenous water, the remaining water on the surface of the apples was wiped off with absorbent paper; then, they were placed on pallets and left to naturally airdry for 24 h. After that, the pulp juice of each apple was extracted using a manual fruit juicer at room temperature (20 ± 0.5 °C). The extracted juice of each apple was filtered by using the filter nets with 200 meshes.

2.2. SSC Measurement

Approximately 1.0 mL of filtered juice was removed to measure the actual SSC level of each apple via a commercial refractive fructose meter (PAL-107, Qiwei Instrument Co., Ltd., Hangzhou, China) with a range of 0–53 °Brix and an accuracy deviation of ±0.2 °Brix, as shown in Figure 2b. Each sample was measured three times, and then, the average value was used for data analysis.

2.3. Statistical Analysis

In this work, 100 apple samples were categorized into 3 different grades according to the SSC level. In Grade 1, the top grade, the SSC range is from 14 to 17.99 °Brix. In Grade 2, the medium grade, the SSC range is from 10 to 13.99 °Brix. In Grade 3, the poor grade, the SSC range is from 8 to 9.99 °Brix. The statistical results for the SSC values of all the apple samples based on analysis of variance (ANOVA) were obtained using the SPSS 20.0 statistics software (IBM SPSS Co., Chicago, IL, USA).

2.4. Spectral Acquisition

The absorbance spectra of apple samples were collected by using a UV-Vis spectrophotometer (UV8000S, Metash Co., Shanghai, China), as shown in Figure 2c. The UV-Vis spectrophotometer is a dual-beam spectrophotometer with the wavelength range of 190 nm to 1100 nm with wavelength accuracy of ±0.3 nm and photometric accuracy of ±0.002 Abs (0–0.5 Abs). A quartz cuvette with an optical path of 10 mm and volume of 3.5 mL was used to load apple juice, as shown in Figure 2c. All measurements were performed at room temperature (20 ± 0.5 °C).

2.5. Spectral Pretreatment

The raw spectra of the apple samples may contain noise and other useless information, and spectra with low signal-to-noise ratios will seriously impact the availability of data modeling and the accuracy of qualitative and quantitative SSC assessment. Therefore, it is necessary to perform spectral pretreatment on the raw spectra of apple samples. Some pretreatment methods are commonly used in spectral analysis, such as mean centering [21], data standardization [22], vector normalization (VN) [23], Savitzky–Golay (SG) smoothing [24], first-order derivative (FD) [25] or second-order derivative (SD) [26] methods, multiplicative scatter correction (MSC) [27], and standard normal variate (SNV) transformation [28]. In practice, several pretreatment methods are sometimes combined to obtain satisfactory results. This study investigated and compared the effects of six spectral pretreatment methods, i.e., FD, SD, SNVT, VN, SG smoothing, and SD-SG, on the qualitative classification accuracy of models for apple SSC.

2.6. Spectral Features Extraction

In a full spectrum, extracting the valuable characteristic wavelengths not only reduces the number of variables, i.e., data dimensionality reduction, but also makes the model simpler and more robust and improves its interpretability. This study employed a principal component analysis (PCA) algorithm [29] to extract the main spectral features of SSC from six pretreatment apple spectra. In general, the number of suitable latent variables (LVs), i.e., principal components (PCs), is determined based on the cumulative contribution rate of the first k LVs with large contribution rates, which needed to be greater than or equal to 95% in this work. The contribution rate of the ith LVs and the cumulative contribution rate of k LVs are calculated according to Equations (1) and (2):
φ i = λ i 1 m λ i
ϕ k = i = 1 k φ i
where λi is the eigenvalue of ith LVs, m is the total dimensionality of the spectra, φ i is the ith variance contribution rate, and k is the number of LVs.

2.7. Qualitative and Quantitative Assessments Modeling

In this work, qualitative classifications and quantitative assessments of apple SSC were studied using an ANN model, i.e., a back-propagation neural network (BPNN) [30,31]. Figure 3 shows the structure of the three-layer BPNN model.
Combined with six pretreatment methods, the LV scores of the apple Vis spectra extracted using PCA were used as input data for the BPNN, and the number of neurons in the output layer was set to 3, corresponding to the 3 SSC level grades. The number of neurons in the hidden layer was determined according to the following empirical formula [32]:
h = m + n + a
where h is the number of neurons in the hidden layer; m and n are the numbers of neurons in the input layer and output layer, respectively; and a is an adjustable constant ranging between 1 and 10.
In the BPNN model, to avoid unbalanced distribution in the three apple sample grades in the original dataset and improve the robustness and performance of the classifier, data augmentation based on the synthetic minority over-sampling technique (SMOTE) algorithm [33] was performed on the original dataset. That is, we increased the number of Grade 1 and Grade 3 apple samples by interpolating a few sample classes, though the number of Grade 2 apple samples remained the same. Ultimately, the augmented dataset contained 165 samples, of which there were 66 samples in Grade 1, 71 in Grade 2, and 28 in Grade 3. The calibration set (or training set) and the prediction set (or testing set) were randomly divided with a ratio of 8:2 based on the stratified random sampling method [34] and the hold-out method [35]. Then, the training-set samples were used to establish the assessment models, and the classification accuracy of the testing samples was used as the evaluation indicator. Data processing and modeling apple SSC values were performed using the programming software Matlab 2021b (MathWorks, Inc., Natick, MA, USA).

2.8. Dynamic Learning Rate Decay Strategy of BPNN Modeling

For the BPNN model, the gradient descent method was applied to the neural network. In the gradient descent method, a key controlling factor, i.e., the learning rate, η, is one of the hyperparameters that affects the optimization performance [36]. Although the learning rate is often set as a constant in BPNNs, there are problems in practice; that is, a too-large learning rate will result in too-large weight updating, and the model’s performance will be unstable during the training process. Conversely, a too-small learning rate may never converge or fall into a local optimum solution. To solve these problems for the constant learning rate, the dynamic learning rate nonlinear decay (DLRND) method was employed in this work. That is, a larger learning rate was used for model optimization at the early stage of training, and then, the learning rate was gradually reduced with an increase in the iteration times to ensure the model did not fluctuate too much in the later stages of training and to keep convergence optimal [37].
In this work, four DLRND strategies (i.e., exponential decay [38], cosine decay [39], Gaussian decay [40], and Sigmoid decay [41]) were used and compared, which are presented as follows:
η exp t = η 0 1 t T p η cos t = 0.5 × η 0 1 + cos t π T η Gaus t = η 0 e t 2 2 γ 2 η Sigm t = η 0 1 + e γ t T 2 1
where ηexp(t), ηcos(t), ηGaus(t), and ηSigm(t) are the exponential decay strategy, cosine decay strategy, Gaussian decay strategy, and Sigmoid decay strategy, respectively. η0 is the initial learning rate, p is the coefficient (p > 1: concave curve; 0 < p < 1: convex curve), and T is the total number of iterations. γ is the attenuation rate.
Figure 4 shows the profiles of different DLRND strategies (assuming an initial learning rate of 1).

2.9. Particle Swarm Optimization (PSO)-Optimized BPNN Algorithm

Although the BPNN algorithm is a gradient-descent-based method and has the advantages of nonlinear mapping, self-learning, and adaptive capability, it also has some disadvantages, such as slow convergence, and it easily falls into the local optimum. To further improve the classification accuracy of apple SSC, the particle swarm optimization (PSO) algorithm [42,43] was applied to the SD-SG-PCA-BPNN model, combined with the Gaussian DLRND strategy, to optimize the weights and thresholds of the BPNN.
For PSO, each particle contains two properties, i.e., the velocity vector (v) and the position vector (x). All particles in the swarm adjust their velocities and positions according to the current individual and population extremes. The particles should update their velocities and positions based on the following equations:
v i ( k + 1 ) = ω × v i ( k ) + c 1 × r a n d ( ) × p b e s t i ( k + 1 ) x i ( k ) + c 2 × r a n d ( ) × g b e s t i ( k + 1 ) x i ( k )
x i k + 1 = x i k + v i k + 1
where the subscript i = 1, 2, ..., N, N is the total number of particles in the population, ω is the inertia weight factor, v i ( k ) is the velocity of the ith particle at moment k, r a n d ( ) is a random number between 0 and 1, p b e s t i ( k + 1 ) and g b e s t i ( k + 1 )   are the individual optimum and the global optimum, respectively, v i ( k ) is the current position of the ith particle at moment k, and c1 and c2 are two acceleration factors.

3. Results and Analysis

3.1. Statistical Analysis of SSC

The SSC values of 100 apple samples are presented in Figure 5a. One hundred apple samples were categorized into three different grades (i.e., Grade 1, Grade 2, and Grade 3) according to the SSC level. Based on the analysis of variance (ANOVA), the statistical analysis results of the SSC values for each apple sample grade are shown in Table 1. p < 0.05 was considered significant.
The number of Grade 1, Grade 2, and Grade 3 apples was 22, 71, and 7, respectively. The number distributions for the three grades are shown in Figure 5b.
Figure 5a,b show that the number of apples in the medium grade is the largest, and the number of apples in the top grade and poor grade is smaller. Figure 3 shows the number distribution of the apples conforming to the Gaussian function, which demonstrates that our choice of apple samples was satisfactory.

3.2. Spectral Acquisition

In this study, the absorption spectra of 100 apple samples were collected in a wavelength of 400–800 nm with an interval of 5 nm, as shown in Figure 6. Although the profiles of all the apples’ absorption spectra looked similar, the absorbance of each apple was different, which might be due to the different SSC levels of the apples. That is, the Vis spectra of the apples have unique fingerprint effects, which can be used to qualitatively and quantitatively assess the apple quality via data processing and modeling methods.
Figure 6 shows that the whole-spectra profiles of all the apples look similar. Although the spectra of apples with different SSC values overlap, the mean spectra of all three degrees of SSC can be distinguished, which are presented in the subgraph of Figure 6. From the mean spectra of the apples, we can see that the absorbance is, to an extent, proportional to the SSC of the apples in a fixed optical path, which is consistent with the Lambert–Beer law [44]. Therefore, the SSC value of an apple can be determined based on its spectral absorbance using quantitative modeling methods. At the same time, a quality assessment of apples can also be achieved.

3.3. Spectral Pretreatment

The pretreated spectra of 100 apple samples obtained by using six pretreatment methods, i.e., SNV, VN, SG smoothing, FD, SD, and SD-SG, are shown in Figure 7a–f, respectively.
From Figure 7a,b, although the principles behind the SNV and VN pretreatments are different, the pretreated spectra are also basically similar because of their approximate mathematical form. By using the SNV and VN pretreatment methods, the differences between different grades of apple samples are significantly reduced, and the differences between the spectra of apple samples in the same grade are also reduced. At the same time, the influence of the inhomogeneity of apple juice filtered through filter gauze can be reduced by using SNV and VN. Figure 7c shows that the SG smoothing pretreatment does not change the profiles of the spectra, but the noises can be significantly reduced. Figure 7d shows that the FD pretreatment method can separate the overlapping absorption peaks from the raw spectra, remove the spectra bias and baseline offset, and increase the resolution of the spectra, but, at the same time, the noise is also amplified. As for the SD pretreatment method, Figure 7e shows that the resolution of the spectra can be increased more obviously, but the noises are also amplified. In addition, the pretreatment combination method is also considered in this study, e.g., SG smoothing combined with the SD method; Figure 7f shows that the noises were not only greatly reduced but also that the spectra bias and baseline offset were reduced.

3.4. Spectral Features Extraction

Figure 8 shows the cumulative contribution rates of apples that were Vis-spectra-preprocessed using six pretreatment methods under different LV numbers. The plot of the cumulative contribution rate of the LVs after a dimensionality reduction in the spectra shows that the slope of the curve reflects the changing trend in the contribution rate magnitude of the LVs. Figure 8 shows that the contribution rates of the first LVs for the SNV, VN, and SG smoothing pretreatment methods exceeded 80%, and these are relatively larger than those of the FD, SD, and SD-SG methods, i.e., the first LVs contained most of the spectral information before the dimensionality reduction was performed, and the contribution rate change in the LVs was flat afterward. The changes in the contribution rate magnitude are relatively more moderate.
Figure 8 shows that the cumulative contribution rates of the first 5 LVs for the SNV and VN pretreatment methods basically reached 99–100%, the cumulative contribution rate of the first 3 LVs of the SG pretreatment method also basically reached 99–100%, and the cumulative contribution rates of the first 35 LVs of the FD, SD, and SD-SG pretreatment methods basically reached 99–100%. We found that the first k LVs fully represented most information contained in the raw spectra. Based on the PCA mechanism, the maximum amount of dimensionality reduction to model input data can be determined, i.e., the number of LVs corresponding to the desired cumulative contribution rate could be used to represent the original spectral information to the maximum extent possible. In Figure 8, the number of apple spectra LVs pretreated with the SG smoothing, SNV, NV, FD, SD, and SD-SG methods are 3, 5, 5, 35, 35, and 35, respectively. In addition, the score and loading 3D plots of the 3 LVs obtained using the 6 pretreatment methods on the preprocessed spectra are provided in the Supplementary Materials.

3.5. SSC Classification Assessments Based on BPNN Models

Based on the aforementioned six pretreatment methods, six BPNN combination models were established. To obtain satisfactory classification accuracy for apple SSC with each model, several important BPNN parameters were repeatedly adjusted, such as the number of neurons in the hidden layer, the learning rate (η), and the training times. The effects of the number of neurons in the hidden layer and the learning rate (η) on the correct classification rate regarding apple SSC values (based on six different BPNN models) are shown in Figure 9a,b, respectively.
Figure 9a shows that, under 3000-epoch training times, the correct rates (or accuracies) for classifying SSC levels exceeded 80% for the testing-set apples when the number of neurons in the hidden layer was 14 or 12 for the BPNN model combined with the FD and SD-SG pretreatment methods and the PCA algorithm, i.e., the FD-PCA-BPNN model and the SD-SG-PCA-BPNN model, respectively. However, for the BPNN combined with the other pretreatment methods, the correct SSC classification rates had difficulty reaching 80%. Moreover, Figure 9a shows that the optimal number of neurons in the hidden layer was 14 for the SD-SG-PCA-BPNN model. In addition, Figure 9b shows the correct classification change rate trends for the apple SSC values, the results of which are different compared with the BPNNs combined with other pretreatment methods. For the SD-SG-PCA-BPNN model, the correct rate decreases with an increase in the learning rate. When the learning rate (η) is 0.001, the correct rate is the largest (87.88%). For the FD-PCA-BPNN model, when the learning rate (η) is 0.006, the correct rate is the largest (81.82%). For the BPNN model combined with other pretreatment methods, their correct classification rates did not reach 80% under all learning rates. Figure 9 preliminarily shows that the classification accuracy of the SD-SG-PCA-BPNN model in determining apple SSC values is better.
To further determine the optimal number of LVs for the SD-SG-PCA-BPNN model, the classification accuracies for apple SSC values under different LVs were obtained, as shown in Figure 10.
Figure 10 shows that the classification accuracy in determining apple SSC values is highest when the number of LVs is 35, the number of neurons in the hidden layer is 14, and the learning rate (η) is 0.001. To further verify the availability, the receiver operating characteristic (ROC) curves of the three apple grades derived from the SD-SG-PCA-BPNN model (LVs = 35, neurons in the hidden layer = 14, η = 0.001) are presented in Figure 11.
Figure 11 shows that the SD-SG-PCA-BPNN model outperforms the BPNN model for all three degrees of classification, and in cases where the false positive rate (FPR) is relatively low, the true positive rate (TPR) is able to quickly approach the upper left region, which means that the SD-SG-PCA-BPNN model has a high hit rate in predicting positive cases and a high accuracy rate in predicting negative cases, i.e., the model has high sensitivity and a low false positive rate. At the same time, its corresponding area under the ROC curve (i.e., AUC) is higher, which also means that the SD-SG-PCA-BPNN model is more capable of distinguishing positive and negative cases; thus, the prediction results are more reliable.
To more intuitively verify the performance of the SD-SG-PCA-BPNN model, the classification results of different BPNN models were compared. Table 2 presents the number of LVs; the optimal number of neurons in the hidden layer; the optimal learning rate (η); and the corresponding classification accuracies, recall rates, and F1 scores for apple SSC values obtained using the BPNN model combined with six pretreatment and PCA methods.
Table 2 shows that the SD-SG-PCA-BPNN model has a higher classification accuracy, recall rate, and F1 score regarding apple SSC values than other models.

3.6. SD-SG-PCA-BPNN Model Combined with DLRND Strategy

To solve the constant learning rate problems in the BPNN model, four DLRND strategies (i.e., the exponential strategy, cosine strategy, Gaussian strategy, and Sigmoid strategy; see Equation (4)) were employed and compared in this work. Comparisons were performed between four different DLRND strategies based on the SD-SG-PCA-BPNN model for the training samples and the testing samples, as shown in Figure 12.
Figure 12 shows that the classification accuracies of the cosine DLRND strategy and Sigmoid DLRND strategy reached 100% in the training set using the SD-SG-PCA-BPNN model; however, the classification accuracies in the testing set were lower than those of the fixed learning rate, which may have been caused by model overfitting. The exponential DLRND strategy and Gaussian DLRND strategy have obvious advantages in controlling model overfitting and optimizing the training set’s classification accuracy. For the training samples, the classification accuracy of the SD-SG-PCA-BPNN model, combined with the exponential DLRND strategy and the Gaussian DLRND strategy, is improved to 98.48%, which is better than that of the fixed learning rate. Moreover, the classification accuracy of testing samples using the SD-SG-PCA-BPNN model, combined with the Gaussian DLRND strategy, reaches 87.88%, which is higher than that of the SD-SG-PCA-BPNN model combined with other strategies. Therefore, the Gaussian DLRND strategy is optimal in this work.
To verify the performance of the SD-SG-PCA-BPNN model combined with the Gaussian DLRND strategy in classifying apple SSCs, its MSE curve was compared with that of the fixed learning rate, as shown in Figure 13.
Figure 13 shows that the Gaussian DLRND strategy is more suitable for cases where the objective function is less complex compared with the fixed learning rate, and another advantage is reflected in the convergent speed improvement. In the model’s training process, the DLRND strategy not only makes convergence faster for the training-set samples but also has a smaller training MSE, which is an obvious improvement in the classification accuracy and convergent speed of the model. However, this does not help much in cases where numerous saddle points and local minima jump out; therefore, it is not effective in improving classification accuracy for the testing-set samples. The training MSE curve of the Gaussian DLRND strategy shows that the training MSE remains basically the same after training times of 1800 epochs; thus, training times of 1800 epochs can achieve a satisfactory classification accuracy for apple SSC values.

3.7. SSC Classification Based on PSO-Optimized SD-SG-PCA-BPNN Algorithm

To further improve the qualitative accuracy of the SD-SG-PCA-BPNN model in classifying apple SSC values, a PSO algorithm was employed to optimize the parameters of the BPNN model. A PSO algorithm’s performance is usually determined using three main factors, i.e., the inertia weight factor (ω), the acceleration factor (c1), and the acceleration factor (c2). To obtain ω, c1 and c2 were both set to two [43]; then, the effect of ω on the correct apple SSC classification rate using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy was investigated, as shown in Figure 14a.
Figure 14a shows that the correct classification rates for the four different inertia-weight values reached 100%, i.e., ω = 0.2, 0.5, 0.8, and 0.9. To choose the optimal inertia weight, we obtained the fitness values of four different inertia weights during the PSO evolutionary iteration process, as shown in Figure 14b. Figure 14b shows that, with the increase in iteration times, the correct apple SSC classification rate using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy gradually increases. Moreover, compared with the correct rate change in other inertia weights, for an inertia weight of 0.2, the classification accuracy can reach 100% when the iteration time is 12 epochs, which is less than those of the other inertia weights. Therefore, the optimal inertia weight (ω) is 0.2 in this work.
Then, c1 and c2 should be optimally determined. If c1 is too small, the algorithm will lose population diversity and easily fall into the local optimum; if so, it cannot jump out. If c2 is too small, social sharing in the algorithm with no information leads to slow convergence in the algorithm.
To obtain the optimal values of c1 and c2, their effects on classification accuracies for apple sweetness were investigated. Based on past experiences [43], the value of c2 was initially set to two; the classification accuracy of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy in determining apple sweetness was obtained using different c1 values, ranging from 1 to 2 with intervals of 0.1, as shown in Figure 15a.
Figure 15a shows that the correct classification rates for apple SSC values using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy are the largest (100%) when c1 is 1.4, 1.5, or 1.6. To determine the optimal acceleration factor, we investigated the effect of iteration times on correct classification rates for apple SSC values with respect to three different values of c1, as shown in Figure 15b. Figure 15b shows that the iteration times correspond to a 100% correct rate when c1 is 1.4, which is less than those of the other two values. Therefore, the optimal value of c1 is 1.4.
Then, when c1 was set to the optimal value, i.e., c1 = 1.4, we investigated the effect of c2 on the classification accuracy of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy in determining apple SCC values, as shown in Figure 16a.
Figure 16a shows that the correct rate is the largest (100%) when c2 is 1, 1.1, 1.2, 1.7, 1.8, 1.9, or 2. To determine the optimal value of c2, we investigated the effect of iteration times on the correct classification rates for apple SSC using three different values of c2 (c2 = 1.2, 1.8, and 2), as shown in Figure 16b. Figure 16b shows that the iteration times correspond to a correct rate of 100% when c2 is 2, which is less than those of the other two values. Therefore, the optimal value of c2 is 2.
Under the optimal values of the PSO parameters, i.e., ω = 0.2, c1 = 1.4, and c2 = 2, we obtained the predicted sweetness categories for the testing-set apples using the SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy, as shown in Figure 17a. The correct classification rates for the testing-set apples’ sweetness during the evolutionary iteration process are shown in Figure 17b.
Figure 17a,b show that the classification accuracy using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy in determining SSC grades for the testing-set apples can reach 100% when the iteration times is 17.

3.8. Quantitative Assessment of Apple SSC

Based on the combined Gaussian DLRND strategy and SD-SG-PCA method in the above-mentioned qualitative analysis of apple SSC values, we then studied the quantitative analysis of apple SSC values using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy. The data-augmented training-set samples were used to establish the quantitative model, and the raw testing samples were used as the testing set for the quantitative models used to predict SSC values. To find the optimal neuron numbers for the hidden layer of the BPNN in the quantitative model under this condition, we investigated what effect the number of neurons in the hidden layer had on the correlation coefficient (r) and root-mean-square error (RMSE) in quantitatively predicting apple SSC values, as shown in Figure 18a,b, respectively.
Figure 18a,b show that the results are unsatisfactory for the testing samples when there are nine neurons in the hidden layer, even though the correlation coefficient (r) between the predicted SSC value and the actual SSC value of the training samples is highest and the RMSE value is lowest, i.e., RMSE = 0.2337 °Brix and r = 0.99087, and RMSE = 2.1722 °Brix and r = 0.48445 for the testing samples. However, when there are 10 neurons in the hidden layer in the training samples, although r is slightly lower, and the RMSE is slightly larger than that of the hidden layer with 9 neurons, the correlation coefficient between the predicted SSC and the actual SSC is highest for the testing samples, and the RMSE value is the lowest, i.e., RMSE = 1.1067 °Brix and r = 0.81056. Here, the predicted results for the testing samples were used as criteria for determining the optimal number of neurons in the hidden layer of the BPNN in quantitatively predicting apple SSC values. Therefore, the optimal neuron number, in this case, is 10.
Then, we investigated the effects of ω, c1, and c2 on the RMSE in quantitatively predicting apple SSC using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, as shown in Figure 19a–c.
Figure 19a–c shows that the RMSE values are smaller when ω is 0.7, c1 is 1.9, and c2 is 1.7 in quantitatively predicting apple SSC values using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy. Therefore, the optimal values of ω, c1, and c2 are 0.7, 1.9, and 1.7, respectively.
Based on the above optimal parameters of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, the quantitatively predicted SSC values of 80 training-set apples were obtained and compared with real SSC values, as shown in Figure 20a.
Figure 20a shows the predicted SSC results of the training-set apples have good correlations because the correlation coefficient (r) between the predicted SSC values and the real SSC values is 0.993, and the root-square-mean error of calibration (RMSEC) is 0.207 °Brix. Thus, using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, the SSC values of 20 testing-set apples were quantitatively predicted. The root-square-mean error of prediction (RMSEP) was used to evaluate the quantitative prediction. The RMSEP curve was obtained using a different evolution number for the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, as shown in Figure 20b. At an evolution number of 400, the predicted SSC values of the 20 testing-set apples were obtained, as shown in Figure 20c,d, along with the real SSC values. Figure 20c,d show that the quantitative prediction of the testing-set apples’ SSC values was excellent. The RMSEP and correlation coefficient (r) of the testing-set apples were 0.112 °Brix and 0.998, respectively.

4. Discussion

4.1. Quality Assessments of Fruits Based on Spectroscopy Technique

Table 3 shows different studies on the qualitative and quantitative assessments of fruits and their evaluation results.
Table 3 shows that most studies on qualitatively classifying and quantitatively detecting fruit quality have focused on NIRS, Vis/NIRS, and Vis/NIR hyperspectral imaging. However, there are relatively few studies on qualitative and quantitative assessments of fruits using only Vis spectroscopy. As with NIRS, Vis spectroscopy also has the advantage of the fingerprint effect, which can be used to qualitatively and quantitatively assess the quality of fruits. More importantly, Vis spectroscopy has a unique feature, i.e., inexpensive instruments, which can ensure a higher performance-to-cost ratio in qualitatively and quantitatively assessing fruit quality, even promoting the extension of fruit sorting and grading scales. Therefore, this work explored a kind of cost-effective and high-accuracy optical assessment of apple quality; Vis spectroscopy, combined with ANN models and optimization methods, was employed to qualitatively and quantitatively assess the quality of apples based on SSC values. Table 3 shows that, with the synthetic model proposed in this work, i.e., the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, the qualitative classification accuracy for apple SSC values can reach 100%, and the RMSEP and correlation coefficient (r) can reach 0.112 °Brix and 0.998, respectively, which are superior to the results of other methods.

4.2. Comparison of Qualitative Assessments between Different Algorithms

To evaluate the qualitative classification performance of the synthetic models proposed in this work, an accuracy analysis for the augmented training-set and the raw testing set was performed. Based on the Vis spectra of apples pretreated using the SD-SG and PCA methods, the correct classification rates for 131 groups of training-set apples and 20 groups of raw-testing-set apples for several different algorithms were compared, such as the self-organizing mapping neural network (SOMNN) [50,51], the self-organizing competitive neural network (SOCNN) [52,53], the extreme learning machine (ELM) [54], support vector machines (SVM) [55,56], the BPNN model combined with the Gaussian DLRND strategy, and the PSO-BPNN model combined with the Gaussian DLRND strategy, as shown in Figure 21.
Figure 21 shows that, under the same spectra pretreatment methods, i.e., SD-SG and PCA, the classification accuracies of the SOMNN and SOCNN algorithms for the training apple samples and the testing apple samples are all below 60%, which indicates the classification performance of SOMNN and SOCNN in determining apple SSC values is not satisfactory because of the high similarity between each sample grade. The classification accuracies of the ELM and SVM algorithms for the training and testing samples were higher than 70% but less than 80%. Although the accuracies of ELM and SVM are higher than those of SOMNN and SOCNN, their performance is still not satisfactory. The classification accuracies of the SD-SG-PCA-BPNN algorithm for the training apple samples and testing apple samples are 86.3% and 85%, respectively. However, for the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy algorithm, although the classification accuracy for the training apple samples was still 86.3%, the classification accuracy for the testing apple samples reached 100%. Therefore, the qualitative classification performance of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy algorithm is the best for determining apple SSC values.

4.3. Comparison of Quantitative Assessments between Different Algorithms

To further verify the availability and performance of quantitative predictions for apple SSC values based on the synthetic model proposed in this work, i.e., the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, three quantitative prediction models were compared, i.e., SD-SG-PCA combined with partial least squares regression (i.e., SD-SG-PCA-PLSR), SD-SG-PCA-BPNN, and the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy. Using the same pretreatment method and number of LVs, i.e., the SD-SG pretreatment algorithm and 35 LVs, the correlation coefficient of the training set (rcal) and the correlation coefficient of the testing set (rpre), as well as the RMSEC and RMSEP values, were all obtained, as shown in Table 4.
Table 4 shows that, under the same pretreatment method, the SD-SG-PCA combination algorithm could pretreat the raw Vis spectra of apples; the rcal and RMSEC values were 0.824 and 0.981 °Brix for the training-set apples and the rpre and RMSEP values were 0.758 and 1.417 °Brix for the testing-set apples, as per the SD-SG-PCA-PLSR model with 35 LVs. These results are better than those of the SD-SG-PCA-PLSR model with fewer LVs (e.g., 5 and 15 LVs). For the SD-SG-PCA-BPNN model, when using the SD-SG and 35-LV pretreatment method and Gaussian DLRND strategy, rcal and RMSEC were 0.991 and 0.224 °Brix for the training-set apples, and rpre and RMSEP were 0.814 and 1.107 °Brix for the testing-set apples. For the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, rcal and RMSEC were 0.993 and 0.207 °Brix for the training-set apples, and rpre and RMSEP were 0.998 and 0.112 °Brix for the testing-set apples. At the same time, the root-mean-square error of cross-validation (RMSECV) relating to apple SSC values obtained using three different algorithms was obtained using the leave-one-out method; as such, the RMSECV of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy in determining apple SSC values is the smallest. Moreover, the RMSEP of the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy is less than the RMSECV. Therefore, the synthetic method proposed in this work, i.e., the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy, has better performance than the two others, and it has significant value in qualitatively classifying and quantitatively predicting apple SSC values.

5. Conclusions

This work explored a cost-effective optical assessment of apple quality, i.e., Vis spectroscopy combined with an ANN model, which was used to qualitatively classify and quantitatively predict the SSC level of apples. To ensure the high assessment accuracy of apple SSC values, the raw Vis spectra of the apples were preprocessed using six pretreatment methods and PCA; the optimal pretreatment methods were determined using the BPNN model. For the SD-SG-PCA-BPNN model, the apple SSC classification accuracy was 87.88%; the recall rate was 90.29%; the F1 score was 0.8755 when the number of LVs was 35; the number of neurons in the hidden layer was 14; and the learning rate (η) was 0.001. These results are better than those of the other pretreatment methods. Thus, to improve the qualitative classification accuracy and convergent speed, four DLRND strategies were used to train the BPNN and then compared. The faster convergent speed and higher classification accuracy for apple SSC values were obtained using the SD-SG-PCA-BPNN model combined with the Gaussian DLRND strategy; the classification accuracy of the training set and the testing set reached 98.48% and 87.88%, respectively. Furthermore, the PSO algorithm was used to optimize the SD-SG-PCA-BPNN model combined with the Gaussian DNLRD strategy. The classification accuracy reached 100%. In addition, the apple SSC quantitative assessment was performed using the SD-SG-PCA-PSO-BPNN model combined with the Gaussian DLRND strategy. Under the optimal parameters, the RMSEC and correlation coefficient (rcal) for the apple SSC values in the training set were 0.207 °Brix and 0.993, respectively; the RMSEP and correlation coefficient (rpre) of the apple SSC values for the testing set were 0.112 °Brix and 0.998, respectively; and the leave-one-out RMSECV was 0.2693%. These results are all better than those of the PLSR and BPNN models. At the same time, the classification accuracy and RMSEP regarding apple SSC in our work were also better than those of other studies. The results show that qualitatively and quantitatively assessing apple quality can be significantly achieved via Vis spectroscopy and an SD-SG-PCA-PSO-BPNN model combined with a Gaussian DLRND strategy. Furthermore, this indicates that the synthetic method can be extended to qualitative and quantitative assessments of other fruits.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods12101991/s1, Figure S1: The score and loading plots for six different pretreatment methods with PCA of 3 Lvs.

Author Contributions

Conceptualization, Z.R.; methodology, Z.R. and W.P.; software, W.P.; validation, C.X. and G.L.; formal analysis, J.W. and L.L.; investigation, C.X. and B.S.; resources, Z.R.; data curation, W.P. and C.X.; writing—original draft preparation, W.P.; writing—review and editing, Z.R.; visualization, G.L. and B.S.; supervision, Z.R. and M.Z.; project administration, Z.R.; funding acquisition, Z.R. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Chinese National Natural Science Fund (grant number: 62165006), Key Project of Natural and Science Fund of Jiangxi Province (grant number: 20224ACB202004), Young top-notch personnel fund project of JXSTNU (grant number: 2014QNBJRC004), and the project of Key Laboratory of Optic-electronic Detection and Information Processing of Nanchang City (grant number: 2019-NCZDSY-008).

Data Availability Statement

All related data and methods are presented in this paper. Additional inquiries should be addressed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jaeger, S.R.; Antúnez, L.; Ares, G.; Swaney-Stueve, M.; Jin, D.; Harker, F.R. Quality perceptions regarding external appearance of apples: Insights from experts and consumers in four countries. Postharvest Biol. Technol. 2018, 146, 99–107. [Google Scholar] [CrossRef]
  2. Zheng, Q.; Song, J.; Doncaster, K.; Rowland, E.; Byers, D.M. Qualitative and quantitative evaluation of protein extraction protocols for apple and strawberry fruit suitable for two-dimensional electrophoresis and mass spectrometry analysis. J. Agric. Food Chem. 2007, 55, 1663–1673. [Google Scholar] [CrossRef] [PubMed]
  3. Lorente, D.; Escandell-Montero, P.; Cubero, S.; Gomez-Sanchis, J.; Blasco, J. Visible–NIR reflectance spectroscopy and manifold learning methods applied to the detection of fungal infections on citrus fruit. J. Food Eng. 2015, 163, 17–24. [Google Scholar] [CrossRef]
  4. Mo, C.; Kim, M.S.; Kim, G.; Lim, J.; Delwiche, S.R.; Chao, K.; Lee, H.; Cho, B.-K. Spatial assessment of soluble solid contents on apple slices using hyperspectral imaging. Biosyst. Eng. 2017, 159, 10–21. [Google Scholar] [CrossRef]
  5. Huang, Y.; Yang, Y.; Sun, Y.; Zhou, H.; Chen, K. Identification of apple varieties using a multichannel hyperspectral imaging system. Sensors 2020, 20, 5120. [Google Scholar] [CrossRef] [PubMed]
  6. Shen, Y.; Wu, Y.; Li, L.; Li, L. Nondestructive detection for forecasting the level of acidity and sweetness of apple based on NIR spectroscopy. In Proceedings of the 2017 IEEE 2nd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, China, 25 March 2017. [Google Scholar]
  7. Eisenstecken, D.; Sturz, B.; Robatscher, P.; Lozano, L.; Zanella, A.; Oberhuber, M. The potential of near infrared spectroscopy (NIRS) to trace apple origin: Study on different cultivars and orchard elevations. Postharvest Biol. Technol. 2019, 147, 123–131. [Google Scholar] [CrossRef]
  8. Mendoza, F.; Lu, R.; Cen, H. Grading of apples based on firmness and soluble solids content using Vis/SWNIR spectroscopy and spectral scattering techniques. J. Food Eng. 2014, 125, 59–68. [Google Scholar] [CrossRef]
  9. Song, W.; Wang, H.; Maguire, P.; Nibouche, O. Differentiation of organic and non-organic apples using near infrared reflectance spectroscopy-a pattern recognition approach. In Proceedings of the 2016 IEEE SENSORS, Orlando, FL, USA, 30 October–3 November 2016; pp. 1–3. [Google Scholar]
  10. Tran, N.-T.; Phan, Q.-T.; Nguyen, C.-N.; Fukuzawa, M. Machine learning-based classification of apple sweetness with multispectral sensor. In Proceedings of the 2021 21st ACIS International Winter Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD-Winter), Ho Chi Minh City, Vietnam, 28–30 January 2021; pp. 23–27. [Google Scholar]
  11. Zhang, M.; Zhang, B.; Li, H.; Shen, M.; Zhang, H.; Zhao, J. Non-Destructive detection of apple maturity by constructing spectral index based on reflectance spectrum. In Proceedings of the 2020 ASABE Annual International Virtual Meeting, Online, 13–15 July 2020. [Google Scholar]
  12. Xu, S.; Lu, H.; Wang, X.; Ference, C.M.; Liang, X.; Qiu, G. Nondestructive detection of internal flavor in ‘Shatian’ pomelo fruit based on visible/near infrared spectroscopy. HortScience 2021, 56, 1325–1330. [Google Scholar] [CrossRef]
  13. Hua, S.H.; Hsu, H.C.; Han, P. P-wave visible–shortwave–near-infrared (Vis-SW-NIR) detection system for the prediction of soluble solids content and firmness on wax apples. Appl. Spectrosc. 2019, 73, 1135–1145. [Google Scholar] [CrossRef]
  14. Fan, S.; Guo, Z.; Zhang, B.; Huang, W.; Zhao, C. Using Vis/NIR diffuse transmittance spectroscopy and multivariate analysis to predicate soluble solids content of apple. Food Anal. Methods 2016, 9, 1333–1343. [Google Scholar] [CrossRef]
  15. Torres, E.; Recasens, I.; Alegre, S. Potential of VIS/NIR spectroscopy to detect and predict bitter pit in ‘golden smoothee’ apples. Span. J. Agric. Res. 2021, 19, e1001. [Google Scholar] [CrossRef]
  16. Scalisi, A.; O’Connell, M.G. Application of visible/NIR spectroscopy for the estimation of soluble solids, dry matter and flesh firmness in stone fruits. J. Sci. Food Agric. 2021, 101, 2100–2107. [Google Scholar] [CrossRef]
  17. Tang, C.X.; He, H.Y.; Li, E.B.; Li, H.Q. Multispectral imaging for predicting sugar content of ‘Fuji’ apples. Opt. Laser Technol. 2018, 106, 280–285. [Google Scholar] [CrossRef]
  18. Abiodun, O.I.; Jantan, A.; Omolara, A.E.; Dada, K.V.; Mohamed, N.A.; Arshad, H. State-of-the-art in artificial neural network applications: A survey. Heliyon 2018, 4, e00938. [Google Scholar] [CrossRef] [PubMed]
  19. Opeña, H.; Yusiong, J.P. Automated tomato maturity grading using ABC-trained artificial neural networks. Malays. J. Comput. Sci. 2017, 30, 12–26. [Google Scholar] [CrossRef]
  20. Wei, K.; Ma, C.; Sun, K.; Liu, Q.; Pan, L. Relationship between optical properties and soluble sugar contents of apple flesh during storage. Postharvest Biol. Technol. 2020, 159, 111021. [Google Scholar] [CrossRef]
  21. Issa, M.M.; Nejem, R.M.; Van Staden, R.I.S.; Aboul-Enein, H.Y. New approach application of data transformation in mean centering of ratio spectra method. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2015, 142, 204–209. [Google Scholar] [CrossRef]
  22. Ji, W.; Viscarra Rossel, R.A.; Shi, Z. Improved estimates of organic carbon using proximally sensed Vis–NIR spectra corrected by piecewise direct standardization. Eur. J. Soil Sci. 2015, 66, 670–678. [Google Scholar] [CrossRef]
  23. Moura-Bueno, J.; Dalmolin, R.; Caten, A.; Dotto, A.; Demattê, J.A. Stratification of a local VIS-NIR-SWIR spectral library by homogeneity criteria yields more accurate soil organic carbon predictions. Geoderma. 2019, 337, 565–581. [Google Scholar] [CrossRef]
  24. Zhang, Y.; Wang, Z.; Tian, X.; Yang, X.; Cai, Z.; Li, J. Online analysis of watercore apples by considering different speeds and orientations based on Vis/NIR full-transmittance spectroscopy. Infrared Phys. Technol. 2022, 122, 104090. [Google Scholar] [CrossRef]
  25. Nan, W.U.; Liu, J.A.; Zhou, G.Y.; Yan, R.K. Prediction of chlorophyll content of leaves of oil camelliae after being infected with anthracnose based on vis/nir spectroscopy. Spectrosc. Spect. Anal. 2012, 32, 1221. [Google Scholar]
  26. Feng, L.; Chen, X.Q.; Cheng, Z.S.; Wen, X.D. Quantitative analysis for adsorption of polycarboxylate superplaticizer with different side-chain length on tuff powder using second derivative spectrometry. Spectrosc. Spect. Anal. 2019, 39, 2788–2793. [Google Scholar]
  27. Zhang, L.; Zhang, B.; Zhou, J.; Gu, B.; Tian, G. Uninformative biological variability elimination in apple soluble solids content inspection by using fourier transform near-infrared spectroscopy combined with multivariate analysis and wavelength selection algorithm. J. Anal. Methods Chem. 2017, 2017, 2525147. [Google Scholar] [CrossRef] [PubMed]
  28. Dhanoa, M.S.; Lister, S.J.; Sanderson, R.; Barnes, R.J. The link between multiplicative scatter correction (MSC) and standard normal variate (SNV) transformations of NIR spectra. J. Near Infrared Spectrosc. 1994, 2, 43–47. [Google Scholar] [CrossRef]
  29. Zhu, C.; Song, X.-S.; Liu, H.-B.; Chen, G.-Q.; Zhu, T. Optimize classification testing of apple juice combining derivative fluorescence spectroscopy with PCA. Int. J. Mod. Phys. B 2022, 36, 2240021. [Google Scholar] [CrossRef]
  30. Li, X.; Wang, X.; Wang, W.; Zhang, J. Estimation of apple storage quality properties based on the mechanical properties with bp neural network. Trans. CSAE 2007, 23, 150–153. [Google Scholar]
  31. He, Y.; Li, X.-L.; Shao, Y.-N. Discrimination of varieties of apple using near infrared spectra based on principal component analysis and artificial neural network model. Spectrosc. Spectr. Anal. 2006, 26, 850–853. [Google Scholar]
  32. Sun, J.; Wu, X.; Palade, V.; Fang, W.; Lai, C.-H.; Xu, W. Convergence analysis and improvements of quantum-behaved particle swarm optimization. Inf. Sci. 2012, 193, 81–103. [Google Scholar] [CrossRef]
  33. Wang, S.J.; Dai, Y.T.; Shen, J.H.; Xuan, J.X. Research on expansion and classifcation of imbalanced data based on SMOTE algorithm. Sci. Rep. 2021, 11, 24039. [Google Scholar] [CrossRef]
  34. Mohd Naeem, M.N.; Mohd Fairulnizal, M.N.; Norhayati, M.K.; Zaiton, A.; Norliza, A.H.; Wan Syuriahti, W.Z.; Mohd Azerulazree, J.; Aswir, A.R.; Rusidah, S. The nutritional composition of fruit jams in the malaysian market. J. Saudi Soc. Agric. Sci. 2017, 16, 89–96. [Google Scholar] [CrossRef]
  35. Nam, Y.W.; Arai, Y.; Kunizane, T.; Koizumi, A. Water leak detection based on convolutional neural network (cnn) using actual leak sounds and the hold-out method. Water Supply 2021, 21, 3477–3485. [Google Scholar] [CrossRef]
  36. Behera, L.; Kumar, S.; Patnaik, A. On adaptive learning rate that guarantees convergence in feedforward networks. IEEE Trans. Neural Net. 2006, 17, 1116–1125. [Google Scholar] [CrossRef]
  37. Shen, W.; Li, G.; Wei, X.; Fu, Q.; Zhang, Y.; Qu, T.; Chen, C.; Wang, R. Assessment of dairy cow feed intake based on bp neural network with polynomial decay learning rate. Inf. Process. Agric. 2022, 9, 266–275. [Google Scholar] [CrossRef]
  38. Tollenaere, T. SuperSAB: Fast adaptive back propagation with good scaling properties. Neural Netw. 1990, 3, 561–573. [Google Scholar] [CrossRef]
  39. Loshchilov, I.; Hutter, F. SGDR: Stochastic gradient descent with warm restart. arxiv 2016, arXiv:1608.03983. [Google Scholar]
  40. Li, Y.; Zhang, Q.; Yoon, S.W. Gaussian process regression-based learning rate optimization in convolutional neural networks for medical images classification. Expert Syst. Appl. 2021, 184, 115357. [Google Scholar] [CrossRef]
  41. Fang, X.; Luo, H.; Tang, J. Structural damage detection using neural network with learning rate improvement. Comput. Struct. 2005, 83, 2150–2161. [Google Scholar] [CrossRef]
  42. Elsheikh, A.H.; Abd Elaziz, M. Review on applications of particle swarm optimization in solar energy systems. Int. J. Environ. Sci. Technol. 2019, 16, 1159–1170. [Google Scholar] [CrossRef]
  43. Ren, C.; An, N.; Wang, J.; Li, L.; Hu, B.; Shang, D. Optimal parameters selection for BP neural network based on particle swarm optimization: A case study of wind speed forecasting. Knowl. Based Syst. 2014, 56, 226–239. [Google Scholar] [CrossRef]
  44. Rose, H.E. Breakdown of the Lambert-Beer law. Nature 1952, 169, 287–288. [Google Scholar] [CrossRef]
  45. Alimohammadi, F.; Rasekh, M.; Sayyah, A.H.A.; Abbaspour-Gilandeh, Y.; Karami, H.; Sharabiani, V.R.; Fioravanti, A.; Gancarz, M.; Findura, P.; Kwaśniewski, D. Hyperspectral imaging coupled with multivariate analysis and artificial intelligence to the classification of maize kernels. Int. Agrophys. 2022, 36, 83–91. [Google Scholar] [CrossRef] [PubMed]
  46. Sharabiani, V.R.; Nazarloo, A.S.; Taghinezhad, E.; Veza, I.; Szumny, A.; Figiel, A. Prediction of winter wheat leaf chlorophyll content based on VIS/NIR spectroscopy using ANN and PLSR. Food Sci. Nutr. 2022, 11, 2166–2175. [Google Scholar] [CrossRef]
  47. Soltani Nazarloo, A.; Rasooli Sharabiani, V.; Abbaspour Gilandeh, Y.; Taghinezhad, E.; Szymanek, M.; Sprawka, M. Feasibility of using VIS/NIR spectroscopy and multivariate analysis for pesticide residue detection in tomatoes. Processes 2021, 9, 196. [Google Scholar] [CrossRef]
  48. Khorramifar, A.; Sharabiani, V.R.; Karami, H.; Kisalaei, A.; Lozano, J.; Rusinek, R.; Gancarz, M. Investigating changes in pH and soluble solids content of potato during the storage by electronic nose and Vis/NIR spectroscopy. Foods 2022, 11, 4077. [Google Scholar] [CrossRef]
  49. Escuredo, O.; Seijo-Rodríguez, A.; Inmaculada González-Martín, M.; Shantal Rodríguez-Flores, M.; Carmen Seijo, M. Potential of near infrared spectroscopy for predicting the physicochemical properties on potato flesh. Microchem. J. 2018, 141, 451–457. [Google Scholar] [CrossRef]
  50. Kohonen, T. Physiological interpretation of the self-organizing map algorithm. Neural Netw. 1993, 6, 895–905. [Google Scholar] [CrossRef]
  51. Albadr, M.A.A.; Tiun, S. Extreme learning machine: A review. Int. J. Appl. Eng. Res. 2017, 12, 4610–4623. [Google Scholar]
  52. Hajipour, A.; Shams-Nateri, A. Effect of classification by competitive neural network on reconstruction of reflectance spectra using principal component analysis. Color Res. Appl. 2017, 42, 182–188. [Google Scholar] [CrossRef]
  53. Zidan, M.; Abdel-Aty, A.-H.; El-shafei, M.; Feraig, M.; Al-Sbou, Y.; Eleuch, H.; Abdel-Aty, M. Quantum classification algorithm based on competitive learning neural network and entanglement measure. Appl. Sci. 2019, 9, 1277. [Google Scholar] [CrossRef]
  54. Chen, H.; Zhang, Q.; Luo, J.; Xu, Y.; Zhang, X. An enhanced bacterial foraging optimization and its application for training kernel extreme learning machine. Appl. Soft Comput. 2020, 86, 105884. [Google Scholar] [CrossRef]
  55. Kour, V.P.; Arora, S. Particle swarm optimization based support vector machine (P-SVM) for the segmentation and classification of plants. IEEE Access 2019, 7, 29374–29385. [Google Scholar] [CrossRef]
  56. Tian, Y.; Sun, J.; Zhou, X.; Wu, X.; Lu, B.; Dai, C. Research on apple origin classification based on variable iterative space shrinkage approach with stepwise regression–support vector machine algorithm and visible-near infrared hyperspectral imaging. J. Food Process Eng. 2020, 43, e13432. [Google Scholar] [CrossRef]
Figure 1. Basic framework of qualitative and quantitative assessment of apple quality.
Figure 1. Basic framework of qualitative and quantitative assessment of apple quality.
Foods 12 01991 g001
Figure 2. Apple samples (a), the commercial refractive fructose meter (b), and UV-Vis spectrophotometer and cuvette (c).
Figure 2. Apple samples (a), the commercial refractive fructose meter (b), and UV-Vis spectrophotometer and cuvette (c).
Foods 12 01991 g002
Figure 3. Structure of three-layer BPNN model.
Figure 3. Structure of three-layer BPNN model.
Foods 12 01991 g003
Figure 4. Comparison of four different DLRND strategies.
Figure 4. Comparison of four different DLRND strategies.
Foods 12 01991 g004
Figure 5. SSC values (a) and number distributions for three grades of apples (b).
Figure 5. SSC values (a) and number distributions for three grades of apples (b).
Foods 12 01991 g005
Figure 6. Raw Vis spectra and mean spectra of apples in 400–800 nm.
Figure 6. Raw Vis spectra and mean spectra of apples in 400–800 nm.
Foods 12 01991 g006
Figure 7. Pretreated spectra of apples based on six kinds of pretreatment methods. (a) SNV; (b) VN; (c) SG smoothing; (d) FD; (e) SD; (f) SD-SG smoothing.
Figure 7. Pretreated spectra of apples based on six kinds of pretreatment methods. (a) SNV; (b) VN; (c) SG smoothing; (d) FD; (e) SD; (f) SD-SG smoothing.
Foods 12 01991 g007
Figure 8. Cumulative contribution rate curves of six different spectra pretreatment methods under different numbers of LVs.
Figure 8. Cumulative contribution rate curves of six different spectra pretreatment methods under different numbers of LVs.
Foods 12 01991 g008
Figure 9. Effects of the number of neurons in the hidden layer (a), and the learning rate (b) on the correct rate of classifying SSC of the testing-set apples based on six different BPNN models.
Figure 9. Effects of the number of neurons in the hidden layer (a), and the learning rate (b) on the correct rate of classifying SSC of the testing-set apples based on six different BPNN models.
Foods 12 01991 g009
Figure 10. Classification accuracies of apple SSC based on SD-SG-PCA-BPNN model with different LVs.
Figure 10. Classification accuracies of apple SSC based on SD-SG-PCA-BPNN model with different LVs.
Foods 12 01991 g010
Figure 11. ROC curves for three grades of apples based on SD-SG-PCA-BPNN model. (a) grade 1; (b) grade 2; (c) grade 3.
Figure 11. ROC curves for three grades of apples based on SD-SG-PCA-BPNN model. (a) grade 1; (b) grade 2; (c) grade 3.
Foods 12 01991 g011
Figure 12. Classification accuracies of apple SSC based on SD-SG-BPNN model with different DLRND strategies.
Figure 12. Classification accuracies of apple SSC based on SD-SG-BPNN model with different DLRND strategies.
Foods 12 01991 g012
Figure 13. MSE curves based on Gaussian DLRND strategy and fixed learning rate in the training process.
Figure 13. MSE curves based on Gaussian DLRND strategy and fixed learning rate in the training process.
Foods 12 01991 g013
Figure 14. The effect of inertia weight (ω) on the correct rate of classifying apple SSC based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of different inertia weights at the PSO iteration evolutionary process (b).
Figure 14. The effect of inertia weight (ω) on the correct rate of classifying apple SSC based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of different inertia weights at the PSO iteration evolutionary process (b).
Foods 12 01991 g014
Figure 15. The effect of the acceleration factor c1 on the classification accuracy of apple SSC based on SD-SG-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of three different values of the acceleration factor c1 at the PSO iteration evolutionary process (b).
Figure 15. The effect of the acceleration factor c1 on the classification accuracy of apple SSC based on SD-SG-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of three different values of the acceleration factor c1 at the PSO iteration evolutionary process (b).
Foods 12 01991 g015
Figure 16. The effect of the acceleration factor c2 on the classification accuracy of apple SSC based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of three different values of the acceleration factor c2 at the PSO iteration evolutionary process (b).
Figure 16. The effect of the acceleration factor c2 on the classification accuracy of apple SSC based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy (a), and the correct rates of three different values of the acceleration factor c2 at the PSO iteration evolutionary process (b).
Foods 12 01991 g016
Figure 17. The predicted SSC grades of 20 testing-set apples based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy and three optimal parameters (a), and the correct rates of classifying SSC for testing-set apples during the iteration evolutionary process (b).
Figure 17. The predicted SSC grades of 20 testing-set apples based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy and three optimal parameters (a), and the correct rates of classifying SSC for testing-set apples during the iteration evolutionary process (b).
Foods 12 01991 g017
Figure 18. The effect of neuron number in hidden layer on the correlation coefficients (a) and RMSE (b) of quantitative prediction of apple SSC.
Figure 18. The effect of neuron number in hidden layer on the correlation coefficients (a) and RMSE (b) of quantitative prediction of apple SSC.
Foods 12 01991 g018
Figure 19. Effects of inertia weight ω (a), acceleration factor c1 (b) and c2 (c) on the RMSE of quantitative prediction of apple sweetness were investigated based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy.
Figure 19. Effects of inertia weight ω (a), acceleration factor c1 (b) and c2 (c) on the RMSE of quantitative prediction of apple sweetness were investigated based on SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy.
Foods 12 01991 g019
Figure 20. Quantitative predicted SSC for training-set and testing-set apples. (a) predicted results of training-set apples; (b) the SSC RMSEP curve of testing-set apples under the different evolution numbers of SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy; (c) the predicted SSC and the real SSC of test set apples; (d) predicted results of testing-set apples.
Figure 20. Quantitative predicted SSC for training-set and testing-set apples. (a) predicted results of training-set apples; (b) the SSC RMSEP curve of testing-set apples under the different evolution numbers of SD-SG-PCA-PSO-BPNN model combined with Gaussian DLRND strategy; (c) the predicted SSC and the real SSC of test set apples; (d) predicted results of testing-set apples.
Foods 12 01991 g020
Figure 21. Comparison between classification accuracies of apples’ SSC based on different algorithms.
Figure 21. Comparison between classification accuracies of apples’ SSC based on different algorithms.
Foods 12 01991 g021
Table 1. The statistical analysis results for SSC values of apple samples.
Table 1. The statistical analysis results for SSC values of apple samples.
GradeSSC Range (°Brix)Minimum (°Brix)Maximum (°Brix)Mean (°Brix)Variance (°Brix)SE of Mean * (°Brix)MAD ** (°Brix)CV *** (%)
114–17.9914.217.614.830.6680.174230.59090.0551
210–13.9910.213.86712.061.1360.126490.85120.0884
38–9.998.69.7339.230.1270.13480.25310.0386
SE of Mean *: standard error of the mean; MAD **: mean absolute deviation; CV ***: coefficient of variation.
Table 2. Comparison of classification accuracies, recall rates and F1 scores of apple SSC based on BPNN models combined with six kinds of pretreatment methods.
Table 2. Comparison of classification accuracies, recall rates and F1 scores of apple SSC based on BPNN models combined with six kinds of pretreatment methods.
No.Models LVsNeuron Number in Hidden Layer Learning RateClassification Accuracy/%Recall Rate/%F1 Score/%
1SNV-BPNN860.00675.7674.050.7675
2VN-BPNN5100.00466.6763.550.6440
3SG-BPNN3110.00469.7066.120.6786
4FD-BPNN35120.00681.8279.180.8003
5SD-BPNN35160.00378.7980.040.7705
6SD-SG-BPNN5140.00160.6149.270.6451
10140.00163.6452.010.7387
35140.00187.8890.290.8755
7BPNN81130.00178.7976.430.7758
Table 3. Different qualitative and quantitative studies of fruits quality and their evaluation results.
Table 3. Different qualitative and quantitative studies of fruits quality and their evaluation results.
ReferenceObjectSpectroscopyModelEvaluation Indicators
Ref. [4]AppleVis/NIRS hyperspectral imagingPLSRR2 = 0.802, RMSE = ±0.674 °Brix (SSC)
Ref. [5]AppleVis/NIRS hyperspectral imagingPLS-DAAccuracy of variety: 99.4%
Ref. [6]AppleNIRSBP, GRNN1MAPE2 = 5.41% (acidity); MAPE = 13.95% (sweetness)
Ref. [7]AppleNIRSPCA-DAAccuracy of origin traceability: 93.6% (high-elevation), 77.9% (low-elevation)
Ref. [8]AppleVis/SW-NIRSSFS3, LDAAccuracy range: 87.3–97.6% (firmness);
77.1–92.3% (SSC)
Ref. [9]AppleNIRSPLS-DAClassification accuracy = 96%
Ref. [10]AppleNIRSDAClassification accuracy = 91.3% (sweetness)
Ref. [11]AppleNIRSSPA-LS-SVMClassification accuracy = 90.11% (ripeness)
Ref. [12]Shatian pomeloVis/NIRSSG-MSC-GA-PCA-CNN-PLSRR2 = 0.72, RMSE = 0.49 °Brix (SSC)
R2 = 0.55, RMSE = 0.10% (acidity)
Ref. [13]Wax appleVis/SW-NIRSPLSRRp2 = 0.87, RMSEP = 0.66 °Brix(SSC)
Rp2 = 0.80, RMSEP = 1.16 N/cm2 (firmness)
Ref. [14]AppleVis/NIRSMCARS4 and SPA-PLS r = 0.946, RMSE = 0.527 °Brix for prediction set (SSC)
Ref. [15]Golden appleVis/NIRSLDA, QDA and SVMClassification accuracy range: 75–81% (bitter pit)
Ref. [16]Nectarine, peach, apricot and Japanese plumsVis/NIRSSD-PLSRClassification accuracy: >75% (SSC, DMC and flesh firmness)
Ref. [45]MaizeVis/NIRS hyperspectral imagingLDA and ANNClassification accuracy: 95% (LDA), 85% (ANN)
Ref. [46]Winter wheat Vis/NIRSSNV-SG-PLS and ANNPLS: r = 0.92 and RMSE = 0.9131;
ANN: r = 0.97 and RMSE = 0.7305 (LCC5)
Ref. [47]TomatoVis/NIRSPLS-DAAccuracy of pesticide residue: 91.66% (prediction sets); SECV6 = 4.2767
Ref. [48]PotatoVis/NIRSPLS, ANNAccuracy: PLS: 89% (SSC) and 93% (pH);
ANN: 85% (SSC) and 90% (pH)
Ref. [49]PotatoNIRSPCA, PLSR2 > 0.80
OursAppleVis spectroscopySD-SG-PCA-PSO-BPNNClassification accuracy: 100%;
RMSEP = 0.112 °Brix; r = 0.998 (SSC)
GRNN1: generalized regression neural network; MAPE2: mean absolute percentage error; SFS3: sequential forward selection; MCARS4: modified competitive adaptive reweighted sampling; LCC5: leaf chlorophyll content; SECV6: standard error of cross validation.
Table 4. The comparison of quantitative prediction of apples’ SSC based on different models.
Table 4. The comparison of quantitative prediction of apples’ SSC based on different models.
ModelPretreatmentLVsTraining SetTesting SetLeave-One-Out
RMSECV (°Brix)
rcalRMSEC (°Brix)rpreRMSEP (°Brix)
PLSRSD-SG50.3881.5970.5271.5401.3782
100.6931.2480.5371.5921.2117
350.8240.9810.7581.4171.3254
BPNN350.9910.2240.8141.1070.8215
PSO-BPNN350.9930.2070.9980.1120.2693
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Peng, W.; Ren, Z.; Wu, J.; Xiong, C.; Liu, L.; Sun, B.; Liang, G.; Zhou, M. Qualitative and Quantitative Assessments of Apple Quality Using Vis Spectroscopy Combined with Improved Particle-Swarm-Optimized Neural Networks. Foods 2023, 12, 1991. https://doi.org/10.3390/foods12101991

AMA Style

Peng W, Ren Z, Wu J, Xiong C, Liu L, Sun B, Liang G, Zhou M. Qualitative and Quantitative Assessments of Apple Quality Using Vis Spectroscopy Combined with Improved Particle-Swarm-Optimized Neural Networks. Foods. 2023; 12(10):1991. https://doi.org/10.3390/foods12101991

Chicago/Turabian Style

Peng, Wenping, Zhong Ren, Junli Wu, Chengxin Xiong, Longjuan Liu, Bingheng Sun, Gaoqiang Liang, and Mingbin Zhou. 2023. "Qualitative and Quantitative Assessments of Apple Quality Using Vis Spectroscopy Combined with Improved Particle-Swarm-Optimized Neural Networks" Foods 12, no. 10: 1991. https://doi.org/10.3390/foods12101991

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