Next Article in Journal
Hydrolysis of Beef Sarcoplasmic Protein by Dry-Aged Beef-Isolated Penicillium oxalicum and Its Associated Metabolic Pathways
Next Article in Special Issue
Determination of Multiclass Antibiotics in Fish Muscle Using a QuEChERS-UHPLC-MS/MS Method
Previous Article in Journal
Exploring the Nutritional and Bioactive Potential of Olive Leaf Residues: A Focus on Minerals and Polyphenols in the Context of Spain’s Olive Oil Production
Previous Article in Special Issue
Nondestructive Determination of Epicarp Hardness of Passion Fruit Using Near-Infrared Spectroscopy during Storage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimization of Online Soluble Solids Content Detection Models for Apple Whole Fruit with Different Mode Spectra Combined with Spectral Correction and Model Fusion

College of Engineering, National R&D Center for Agro-Processing Equipment, China Agricultural University, 17 Qinghua East Road, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Foods 2024, 13(7), 1037; https://doi.org/10.3390/foods13071037
Submission received: 5 March 2024 / Revised: 20 March 2024 / Accepted: 25 March 2024 / Published: 28 March 2024

Abstract

:
Soluble solids content (SSC) is one of the main quality indicators of apples, and it is important to improve the precision of online SSC detection of whole apple fruit. Therefore, the spectral pre-processing method of spectral-to-spectral ratio (S/S), as well as multiple characteristic wavelength member model fusion (MCMF) and characteristic wavelength and non-characteristic wavelength member model fusion (CNCMF) methods, were proposed for improving the detection performance of apple whole fruit SSC by diffuse reflection (DR), diffuse transmission (DT) and full transmission (FT) spectra. The modeling analysis showed that the S/S- partial least squares regression models for all three mode spectra had high prediction performance. After competitive adaptive reweighted sampling characteristic wavelength screening, the prediction performance of all three model spectra was improved. The particle swarm optimization–extreme learning machine models of MCMF and CNCMF had the most significant enhancement effect and could make all three mode spectra have high prediction performance. DR, DT, and FT spectra all had some prediction ability for apple whole fruit SSC, with FT spectra having the strongest prediction ability, followed by DT spectra. This study is of great significance and value for improving the accuracy of the online detection model of apple whole fruit SSC.

1. Introduction

Apple is one of the most important fruits in the world, which consumers love for its rich nutrients [1]. With the economic development and the improvement of living standards, consumers have higher and higher quality requirements for apples [2]. Soluble solids content (SSC), as one of the main internal quality indicators of apples, directly determines consumers’ willingness to buy and price [3]. The use of traditional physical and chemical test methods for apple SSC detection has the disadvantages of destroying samples, long detection time, and small detection sample size, which cannot meet the demand of batch testing [4]. In recent years, visible/near-infrared (Vis/NIR) spectroscopy technology has been widely used in the research field of internal quality detection of fruit due to its advantages of nondestructive, rapid, online detection and low cost [5].
For spectroscopic detection, the interaction of light with tissue can be described in terms of two fundamental processes related to absorption and scattering [6]. Absorption depends strongly on the chemical composition of the tissue while scattering is mainly caused by differences in physical properties (e.g., particle size and shape, sample packing, and sample surface) [7]. Scattering leads to two consequences; the first is the lengthening of the optical range, which introduces a multiplicative term. The second is photon loss, which would be incorrectly counted as absorption, thus introducing an additive term [8]. Thus, the light scattering effect consists of both additive and multiplicative effects [9]. The additive effect mainly leads to a baseline drift in the spectrum, while the multiplicative effect “scale” the entire spectrum [10,11]. Significant additive and multiplicative effects in spectral data may invalidate commonly used multivariate linear models [12]. Therefore, the key to quantitative spectral analysis is to eliminate the additive and multiplicative effects in the original spectra as much as possible and extract the spectral information that is linearly correlated with the target chemical components. Spectral pre-processing algorithms, such as multiple scattering correction (MSC), standard normal variational transform (SNV), and min–max normalization (NM), are common light-scattering correction algorithms that are widely used in spectral pre-processing [13]. Different spectral pre-processing algorithms may apply to different samples, so when quantitative modeling is carried out, different spectral pre-processing algorithms are usually compared to find the best spectral pre-processing algorithm applicable to that sample. For a naturally grown organism sample such as an apple, the physical property differences between samples are more significant, especially the morphology and size differences are also larger, which can lead to significant light range differences when spectra are collected. Therefore, for apple spectral correction, targeted elimination of multiplicative effects in the spectra may improve the quality of the apple spectra and, thus the predictive performance of the model.
When it comes to spectral acquisition, three common fruit spectral acquisition modes are diffuse reflection (DR), diffuse transmission (DT), and full transmission (FT) [14]. The characteristics of different spectral acquisition modes are not the same, resulting in different applicable scenarios. The DR mode of spectral acquisition has a simple structure and is suitable for collecting spectral information on the surface and shallow layers of apples, but it is easily affected by the specular reflection on the surface of the fruits, leading to a decrease in detection accuracy [15]. DR mode is generally used for SSC detection in some areas of fruit, but some scholars have used DR spectra for whole fruit SSC detection, which also has some predictive ability [16]. The DT mode can obtain more information about the internal spectrum of the fruit, avoiding the interference of specular reflection and shortening the optical range of transmitted light, but it is easily affected by stray light through the fruit and between the fruit holder. For the FT mode, the fruit is placed between the light source and the fiber optic probe so that the spectral information of the whole fruit can be collected and the light from the light source can be blocked entirely. However, when the intensity of the light source is weak, or the diameter of the fruit is large, the quality of the acquired spectra will be reduced [17]. The characteristics of different model spectra may lead to differences in model prediction performance when an online detection of apple whole fruit SSC is performed.
Model optimization through variable selection is also key to building a simple, fast, and robust predictive model, as modern spectroscopic instruments often have high resolution, and the resulting spectra include thousands of variables [18]. Too much spectral data has at least two drawbacks: firstly, the calibration and implementation of the model is very time-consuming, which inevitably affects the ability of the model to perform fast analyses online, and secondly, some of the spectral variables in the full spectra are irrelevant and redundant, which reduces the predictive power of the model. However, since each variable selection method is data-based and has its principles, advantages, disadvantages, and applications, no study has shown which method is optimal [19]. The optimal characteristic wavelength screening algorithms for different mode spectra may differ and must be studied and analyzed.
Partial least squares regression (PLSR) is a commonly used modeling method in spectral analysis. The method finds potential variables that can be effectively used to explain concentration variations using both spectral data and the concentration of the sample. In addition to its simplicity and computational efficiency, PLSR gives better results than other multivariate methods, such as multiple linear regression (MLR) and principal component regression (PCR). Currently, nonlinear model-building methods, such as the least squares support vector regression (LS-SVR) and particle swarm optimization–extreme learning machine (PSO-ELM) algorithms, have been widely used in modeling for quantitative spectral analysis [20]. Due to the different spectral acquisition methods and data types, there may be differences in the modeling results using linear and nonlinear modeling methods. Therefore, it is necessary to explore the best modeling methods applicable to different modes of spectra.
Many studies have been conducted to investigate and optimize the spectral pre-processing algorithms, characteristic wavelength screening algorithms, modeling methods, etc., and to establish an optimal prediction model [21]. A single model may have problems such as poor robustness and generalization ability, which will limit the further improvement of model accuracy [22]. A model fusion modeling strategy has been proposed to further improve the model performance [23,24]. Model fusion is not a specific algorithm but an idea of merging multiple weak models into a strong model. In the past, when using characteristic wavelength modeling, the best characteristic wavelength prediction model was identified through comparative analysis. However, other characteristic wavelength models with relatively poor results would be discarded. This not only consumes the time and effort of model building but also ignores the possible contribution of other characteristic wavelength prediction models to the prediction results. In addition, spectral information other than characteristic wavelengths is discarded when modeling with characteristic wavelengths. However, non-characteristic wavelength data may also contain information that is often ignored and weakly correlated with the components. Therefore, multiple characteristic wavelength member model fusion (MCMF), as well as characteristic wavelength non-characteristic wavelength member model fusion (CNCMF) approaches may be able to fully utilize the contribution of the discarded predictive models and wavelength variables to the prediction results, thus further improving the predictive performance of the models.
Aiming at the above problems, the main contents of this study include the following aspects:
(1)
To explore spectral pre-processing algorithms applicable to apple to improve spectral quality;
(2)
To explore the effects of different mode spectra (DR, DT, and FT), spectral pre-processing algorithms, characteristic wavelength screening algorithms, and modeling methods on the on-line detection model of SSC for whole apple fruit;
(3)
To explore the effect of model fusion methods on improving model prediction performance.

2. Materials and Methods

2.1. Spectral Acquisition Devices and Acquisition Methods

In this study, online spectral acquisition devices for DR, DT, and FT spectra were used to dynamically collect spectral information of apples. The DR spectral acquisition device (Figure 1A) consisted of an optical fiber (Vis/NIR, Ocean Optics, Dunedin, FL, USA), a spectrometer (USB2000+, Ocean Optics, Dunedin, FL, USA), four 35 W halogen lamp cups (ESS MR 11 35 W, Philips, Amsterdam, The Netherlands), a micro-controller (ESP8266, TW, ShenZhen, China), an opposing photoelectric sensor (CTD-1500P, OPTEX, Kyoto, Japan), a power supply (S-350-120, Li-Cheng-An, Shenzhen, China), a conveyor chain, fruit trays, a computer, and a dark box. The device collected the DR spectral information of apples through the optical fiber at the upper end.
Figure 1B shows the DT spectral acquisition device, similar to the DR spectrum acquisition device but differing in the spectral acquisition part. The device collected the spectral information of the transmitted apple through the optical fiber at the lower end.
Figure 1C shows the FT spectral acquisition device. The device used a 100 W halogen lamp cup (6834FO, Philips, Amsterdam, The Netherlands) as the light source, and a lens (with a focal length of 40 mm) was mounted in front of the light source to avoid too much dispersion of the light emitted from the light source. The device collected spectral information through the apple through an optical fiber at the lower end.
The control program of the device was developed based on PyQt and Arduino IDE.
Before the spectral acquisition, the light source should be warmed up for 30 min to make the system reach a stable state. The integration time was set to 1 ms for the acquisition of the DR spectrum, 30 ms for the acquisition of the DT spectrum, and 200 ms for the acquisition of the FT spectrum. During spectral acquisition, transmission speed was set to 0.2 m/s, the conveyor chain was switched on, and the apples were placed horizontally on the fruit trays in the manner shown in Figure 1. When the apples reached the spectral acquisition position, the photoelectric sensor detected the position information and sent the in-place information through the micro-controller to the upper computer program, and the upper computer triggered the spectrum acquisition. For each sample, spectral information was collected three times, including DR, DT, and FT spectral information once each. Due to the differences in the noise range of the spectra collected by different spectral acquisition modes, the spectra within the range of 650–1000 nm were selected for the DR mode, and the spectra within the range of 600–900 nm were selected for the DT and FT modes.
A polytetrafluoroethylene (PTFE) reference sphere of 80 mm diameter was used to collect the white reference. The dark reference was collected with the light source turned off. The absorbance was calculated using Equation (1) and used for subsequent modeling analysis.
A = log 10 1 T R = log 10 T w h i t e T d a r k T r a w T d a r k
where A is absorbance; T R is transmittance or reflectance; T r a w is sample spectral intensity; T w h i t e is white reference spectral intensity; T d a r k is dark reference spectral intensity.
After the spectral acquisition, spectral pre-processing, characteristic wavelength screening, and modeling analysis were performed using MATLAB (R2016a; The MathWorks, Natick, MA, USA).

2.2. Preparation of Samples

In this study, Fuji apples were used as the research object to establish the online detection models of apple SSC. The Fuji apples were grown in Yantai City, Shandong Province, and 105 apples without mechanical damage and external defects were selected and transported to the nondestructive techniques laboratory in the College of Engineering of China Agricultural University. The surface of the apple samples was wiped clean, numbered, and stored at 4 °C. Before the spectral acquisition, the apples were placed at room temperature (20 °C) for 24 h to minimize the effect of temperature variation on spectral acquisition. Before modeling, the samples must be divided into correction and prediction sets. This study used a randomized grouping method to divide the samples into a correction set and a prediction set at a ratio of approximately 3:1.

2.3. SSC Measurement

The SSC of apples was determined using a refractometer (PAL-BX/AC5, ATAGO Co., Ltd., Tokyo, Japan) in conjunction with destructive methods. The SSC measurement range of the refractometer is 0.0–60.0%, with a resolution of 0.1% and an accuracy of ±0.2%. After collecting the spectra, the juice of the whole apple was extracted using a juicer, poured into a beaker, and stirred well, and the apple SSC was determined by dropping the juice into the refractometer measuring position using a rubber-tipped burette. Each sample was collected three times, and the average value was taken as the SSC of that sample.

2.4. Spectral Scattering Correction Method

For non-homogeneous mixtures such as apples, the relationship between the raw absorption spectra and the content of the target chemical components is shown in Equation (2) [11,25,26]:
X i = p i j = 1 J c i , j s j + b i 1
where Xi is the absorption spectrum vector of the ith mixture sample; pi is the multiplication factor, which represents the multiplicative effect of the change in effective optical range due to the change in physical properties of the sample on the spectrum of the ith mixture sample; ci,j is the concentration of the chemical component in section j of the ith sample; sj is used to evaluate the light absorption capacity of the jth chemical component, which is mainly related to the type of chemical component; bi is an addition coefficient that represents the baseline of the spectrum, mainly related to the environment and sample state; 1 is a row vector with element 1.
From Equation (2), it can be seen that pi and bi are sample-dependent variables, resulting in the original spectra no longer showing a regular linear law with the target chemical content. Therefore, eliminating pi and bi is the key to ensuring the robustness of the multiple regression model.

2.4.1. Addition Coefficient Elimination

Some scholars have proposed the linear regression correction (LRC) method, in which the intercept is obtained by constructing a one-dimensional linear regression equation between the sample spectrum and the average spectrum, and the intercept is subtracted from the original spectrum to achieve the elimination of bi [12]. This method is equivalent to a simplified version of the MSC algorithm, which eliminates only the additive coefficients in the spectrum. After the elimination of bi, Equation (2) can be changed to Equation (3).
X c , i = p i j = 1 J c i , j s j
where Xc,i is a vector of absorption spectra for the ith mixture sample affected only by multiplicative effects.

2.4.2. Multiplication Coefficient Elimination

The elimination of multiplicative coefficients can be achieved by dividing the spectral data Xc,i after the elimination of additive coefficients by the spectral data xi in which the wavelength is λ, as shown in Equation (4).
X s / s , i = X c , i x i , λ = p i j = 1 J c i , j s j p i c i , λ s λ = j = 1 J c i , j s j c i , λ s λ
where Xs/s,i is the vector of absorption spectra of the ith mixture sample after correction for spectra-to-spectra ratio (S/S); ci is the concentration of the substance reflected by the wavelength λ; sλ is the extinction coefficient of the substance reflected by wavelength λ.
From Equation (4), when cisλ is a constant value that is not sample-dependent, the spectral data show a better linear relationship with the target chemical composition content. Assuming that the chemical composition content represented by wavelength λ in the spectra varies less for each sample, cisλ can be approximated as a constant value at this time. The spectral correction can be completed by substituting this wavelength spectral data into Equation (4). This study adopts the global search method, substituting the spectral data at each wavelength into Equation (4) in turn for correction, and then constructs the PLSR prediction models of the corrected spectra with the content of the target components by Monte Carlo cross-validation method with the root mean square of the standard error of cross-validation (RMSECV) was minimized as a criterion to determine this wavelength data.
In summary, the S/S spectral correction method proposed in this study achieves spectral scattering correction by first eliminating the additive coefficients of the original spectra and then eliminating the multiplicative coefficients. The elimination of the multiplicative coefficients is oriented to the optimal model prediction results, highlighting the effect of the elimination of the multiplicative coefficients on enhancing the model prediction performance. This method was used to correct the spectra in subsequent studies, and the modeling results were used to judge the correction effect.

2.5. Spectra Pre-Processing Methods

Pre-processing was performed to remove the variations in the spectrum due to disturbances and to highlight the components related to SSC. Spectral pre-processing methods such as MSC, SNV, and NM are most widely used in spectral pre-processing. Therefore, this study used MSC, SNV, NM, and S/S to pre-process the spectra and develop prediction models for apple SSC. A comparative analysis of the modeling results would verify the effectiveness of the proposed spectral pre-processing method.

2.6. Characteristic Wavelength Screening Methods

Since the full spectrum contains much irrelevant and collinear information, it affects the prediction model’s performance. Therefore, characteristic wavelength screening algorithms were used to select wavelength points in the spectrum that were closely related to the SSC information, which could reduce the number of spectral variables and improve the model prediction performance. In this study, the competitive adaptive reweighted sampling (CARS), bootstrapping soft shrinkage (BOSS), and interval variable iterative space shrinkage approach (iVISSA) algorithms were used to screen characteristic wavelength.
CARS is an algorithm used in conjunction with the regression coefficients in PLSR to screen wavelength variables in a spectrum. Firstly, a part of the calibration set of the sample is randomly selected for PLSR modeling, the random modeling is repeated several times, and the exponentially decreasing function (EDP) is used to remove the wavelength points with smaller weights of the regression coefficient values [27]. After several modeling sessions, the wavelength points with larger weights of absolute values of regression coefficients are screened out to construct a subset of variables, and the resulting new subset of variables is then subjected to PLSR modeling and analysis, in which the subset with the smallest RMSECV is the optimal combination of wavelength variables selected. The parameters used for CARS characteristic wavelength screening in this research were as follows: the maximum number of latent variables (LVs) was set to 15, five-fold cross-validation, and 100 sampling runs.
The BOSS algorithm is derived from the idea of weighted bootstrap sampling (WBS) and model population analysis (MPA) [28]. The weights of the variables are determined based on the absolute values of the regression coefficients, WBS generates sub-models based on the weights, and MPA is used to analyze the sub-models to update the variable weights. The optimization process follows the “soft shrinkage” rule, i.e., smaller weights are assigned instead of directly eliminating unimportant variables. The algorithm runs iteratively until the number of variables reaches one. The set of variables with the smallest RMSECV is selected as the result of feature wavelength screening. The parameters used for BOSS characteristic wavelength screening in this research were as follows: the maximum LVs were set to 15, five-fold cross-validation, and 1000 sampling runs.
iVISSA is a wavelength interval selection algorithm proposed by Deng et al. based on the variable iterative space shrinkage approach (VISSA) [29]. The algorithm combines global and local search to intelligently and iteratively optimize the position, width, and combination of wavelength intervals. In the global search process, the advantages of VISSA soft shrinkage are inherited to search for the positions and combinations of informative wavelengths, while in the local search process, the continuity information of the spectral data is utilized to determine the widths of the wavelength intervals. The global and local searches are performed alternately for wavelength interval selection. The parameters used for iVISSA characteristic wavelength screening in this research were as follows: the maximum LVs were set to 15, five-fold cross-validation, and 500 sampling runs.

2.7. Model Fusion Methods

Model fusion is the process of fusing multiple weak models into one strong model. This method has the effect of collective decision-making, which can compensate for the error of a single model and further improve the model’s performance [30]. This study used two model fusion methods, multiple characteristic wavelength member model fusion (MCMF), and characteristic wavelength and non-characteristic wavelength member model fusion (CNCMF), to further optimize the prediction model for a single mode spectrum. Figure 2A shows the MCMF fusion methods, and Figure 2B shows the CNCMF fusion methods.

2.8. Modeling Methods

In this study, the models were divided into two categories, namely, single-mode spectral prediction models and fusion prediction models. Due to the large number of single-mode spectral variables, PLSR, LS-SVR, and PSO-ELM were used to build prediction models. For the fusion models, simple averaging (SA), Bates–Granger averaging (BG), MLR, LS-SVR, and PSO-ELM were used to build prediction models.
The above modeling methods are common modeling methods used in data analysis. SA averages the predictions of the member models as fusion predictions, which is equivalent to assigning the same weight to each model. BG assigns weights to the integrated model based on the associated variance [31]. For example, sensor predictions with higher predictive variance are assigned lower weights than sensor predictions with lower predictive variance. MLR is commonly used to construct linear relationships between multiple independent and dependent variables [32]. PLSR, as a multivariate regression analysis method, can perform downscaling and integrative screening of spectral data and analyze the correlation between two sets of variables, etc., and has high modeling stability [33]. The number of LVs in the PLSR model was selected using RMSECV results.
LS-SVR is an improvement of the classical support vector machine, which is a powerful machine learning method in classification problems and pattern recognition [34]. The algorithm converts dot product operations in high-dimensional feature space into primitive spatial kernel functions. In the LS-SVR model of spectra, the radial basis function (RBF) is usually chosen as the kernel function for data analysis, which is adaptively stable and robust to the nonlinear modeling process of spectra. The two main parameters of the RBF are the regularization parameter (γ) and the width parameter (σ2). Different values of these two parameters lead to changes in the stability and predictive performance of the model [35]. Therefore, there is an urgent need to find optimization methods to optimize γ and σ2 to improve LS-SVR’s learning ability and generalization. In this study, the coupled simulated annealing (CSA) algorithm, grid search, and ten-fold cross-validation methods built into the least squares support vector machine (LS-SVM) toolbox (LS-SVM v 1.7, Suykens, Leuven, Belgium) were used to seek the optimal γ and σ2.
PSO-ELM is a method for optimizing ELM models based on a particle swarm optimization algorithm [36]. In PSO-ELM, the PSO algorithm is used to optimize the weights and biases of the implicit layer neurons in the ELM to minimize the prediction error. This can improve the prediction accuracy and generalization ability of ELM and avoid overfitting ELM models.

2.9. Model Evaluation Methods

The models were evaluated based on the correlation coefficient of calibration (Rc), root mean square error of calibration (RMSEC), the correlation coefficient of prediction (Rp), root mean square error of prediction (RMSEP), and relative percentage difference (RPD). For the same sample set, the larger Rc, Rp, and RPD are, and the smaller RMSEC and RMSEP are, the better the predictive performance of the corresponding model. For different sample sets, it is more objective to use RPD to evaluate the predictive performance of the model. When RPD > 2, it indicates that the prediction effect is better, the prediction accuracy is high, and the established model can be used for actual detection. When 1.4 < RPD < 2, it indicates that the model prediction ability is ordinary, and the prediction accuracy needs to be improved. When RPD < 1.4, it indicates that the model prediction performance is poor and cannot be used for quantitative detection [37].

3. Results and Discussion

3.1. Analysis of Apple Spectra

The spectra of 105 apples were dynamically collected using the spectral acquisition devices and methods in Section 2.1, and the absorbance was calculated according to Equation (1), as shown in Figure 3. The 650–700 nm visible light band in the figure is associated with pigments (e.g., chlorophyll and anthocyanins) in apple pericarp [4]. The 700–900 nm spectral range is associated with the C-H, O-H, and NH2 vibrations, where the C-H and O-H vibrations are closely related to the SSC [38,39]. The DR, DT, and FT spectra exhibited different absorbance values, with the absorbance of the transmission spectrum being higher than that of the DR spectrum. This is mainly because less light is transmitted through the apple, resulting in a lower intensity of light received by the fiber. The positions of the peaks and troughs of the DR, DT, and FT spectra had some similarities, but the shapes of the spectra had significant differences. The difference in spectral shape may be caused by the different sensitivity of different spectral acquisition methods to different wavelengths of light. Therefore, there may be differences in the ability of different spectral acquisition methods to predict the SSC of whole apple fruit.

3.2. Statistics of SSC

The SSC data of 105 apples were determined using the method in Section 2.3, as shown in Table 1.
As can be seen from Table 1, the SSC distributions of the samples in the correction set and the prediction set were more similar, and the correction set contained the SSC range of the prediction set. Therefore, the division of the calibration set and prediction set is reasonable, which is conducive to constructing more robust prediction models.

3.3. Model Results

This study developed the PLSR, LS-SVR, and PSO-ELM prediction models of apple SSC after spectral processing using MSC, SNV, NM, and S/S pre-processing algorithms. For the PLSR model, the Monte Carlo cross-validation method was used in this study to calculate the variation of RMSECV with the number of LVs, and the number of LVs was selected according to the minimum RMSECV principle [40]. For the LS-SVR model, this study first calculated the initial values of the parameters γ and σ2 by CSA, then constructed the grid based on the initial values, and finally fine-tunes the parameters by using grid search and ten-fold cross-validation methods to realize the optimization search for the parameters γ and σ2. The PSO method was used to optimize the initial weights and biases of the ELM model. The apple SSC modeling results based on the best pre-processing method are shown in Table 2.
As can be seen from Table 2, for the PLSR model, the S/S pre-processing spectra had the best modeling effect. This indicates that the S/S pre-processing method can eliminate the scattering effect in the spectra to a certain extent, improving the linear relationship between the spectral data and the SSC. The S/S algorithm is better than other pre-processing algorithms in correcting the scattering effect in the apple spectra. The modeling results can also show that the S/S algorithm has good generality and can be applied to the correction of DR, DT, and FT spectra simultaneously. For the LS-SVR model, the raw spectra had the best prediction performance. This may be caused by the fact that the raw spectra contain a lot of nonlinear information related to SSC. After the spectra were corrected using different pre-processing methods, the modeling effectiveness of the nonlinear modeling approach decreased. This may be caused by pre-processing algorithms that make the spectral data more linear in relation to the SSC. The SNV pre-processed spectra had the best predictive performance for the PSO-ELM model. Among all models, the S/S-PLSR model with three-mode spectra had the best prediction performance, followed by the SNV-PSO-ELM model.
All three mode spectra have some predictive ability for whole fruit SSC of apples, with FT spectra having the best predictive ability, followed by DT spectra. The reason is that the FT spectrum collects information on the whole apple and corresponds closely to the whole fruit SSC. DT spectrum can also reflect information from more regions of the apple, and its correspondence with SSC is only second to that of the FT spectrum. The modeling results show that the DR spectra can also predict the whole fruit SSC, which the correlation between the SSC of some regions of a single apple and the whole fruit SSC may cause. Mo et al. (2017) [41] classified a single apple into 29, 9, and 5 regions of interest and measured their SSC values separately. The results of the SSC analysis of 25 apples showed that for individual apples, the coefficient of variation in SSC between the 5 ROIs was the smallest, which was below 6.00%. It indicates a certain correlation between the SSC of some regions of a single apple and the average SSC of the whole apple, which is also the fundamental reason leading to the feasibility of predicting the SSC of the whole apple by DR spectroscopy.

3.4. Model Results Based on Characteristic Wavelength

To eliminate the co-linear information and noise in the spectra, simplify the model, and improve the model prediction performance [19]. This study used the CARS, BOSS, and iVISSA algorithms to screen the wavelength data closely related to apple SSC and optimize the S/S-PLSR models for the three mode spectra.
The results of characteristic wavelength screening are shown in Figure 4. As can be seen from the figure, the number of characteristic wavelengths screened by CARS and BOSS was relatively close, and the wavelength points had a high degree of overlap. iVISSA algorithm screened a larger number of characteristic wavelengths, which include the characteristic wavelengths screened by CARS and BOSS algorithms. The number of characteristic wavelengths screened in the NIR band was larger than the number of characteristic wavelengths screened in the Vis band. For apple SSC detection, the contribution of the NIR band is larger than that of the Vis band. The characteristic wavelengths screened by the three algorithms cover the range of wavelengths relevant to SSC.
The screened characteristic wavelengths were used to build prediction models for apple SSC, and the results are shown in Table 3.
As seen in Table 3, the characteristic wavelength modeling results screened by the CARS algorithm were better than the full spectrum modeling results. This indicates that CARS characteristic wavelength screening can effectively eliminate irrelevant and covariant information in the original spectra and improve the prediction performance of the apple SSC model. Among the three spectra, the FT spectrum had the best modeling results, followed by the DT spectrum, and the DR spectrum had the worst modeling results. The reason is the strength of the correspondence between spectra and SSC. The RPD values of the modeling results of the three spectra after CARS characteristic wavelength screening were greater than 2, which indicates that all three spectra have high prediction performance for apple SSC after CARS characteristic wavelength screening. The modeling results of the screened characteristic wavelengths of the BOSS and iVISSA algorithms were decreased compared to those of the full spectra, which is probably because the modeling results of the BOSS and iVISSA algorithms eliminate the irrelevant and covariance information along with the elimination of characteristic wavelength data related to apple SSC. iVISSA algorithm screened the largest number of characteristic wavelengths, and although many wavelengths related to apple SSC were retained, some irrelevant and covariance information was also retained. Overall, the S/S-CARS-PLSR model predicted apple SSC best.

3.5. Model Fusion Results

3.5.1. MCMF Modeling Results

To further improve the prediction performance of different mode spectra for apple SSC. The MCMF methods proposed in Section 2.7 were used to construct the prediction models for apple SSC, and the results are shown in Table 4.
As can be seen from Table 4, for the DR spectrum, the SA, BG, MLR, and PSO-ELM models of MCMF could further improve the prediction performance, while the LS-SVR model decreased the prediction performance; for the DT spectrum, the BG, MLR, and PSO-ELM models of MCMF could further improve the prediction performance, while the SA and LS-SVR models decreased the prediction performance; for FT spectra, the MLR, LS-SVR, and PSO-ELM models of MCMF were able to further improve the prediction performance, while the SA and BG models reduced the prediction performance; among all the fusion methods, the PSO-ELM model of MCMF had the greatest enhancement effect, followed by MLR; and among all the fusion models, the PSO-ELM model for FT spectra had the best prediction of the apple whole fruit SSC had the best prediction performance, followed by DT spectra. The PSO-ELM model of MCMF resulted in a fairly high prediction performance for the DR spectrum, which originally had a poor prediction performance, with the RPD increasing from 2.097 to 2.795. This method also increased the RPD for the DT spectra from 2.386 to 2.902 and the FT spectra from 2.703 to 3.461. From the weighting coefficients of the MLR model, it can be seen that each member model has a certain contribution to the prediction results, and the magnitude of the weighting coefficients is positively correlated with the prediction performance of the member models, and the better the prediction performance of the member models, the larger the weighting coefficients. The predictive performance of the fusion model may be correlated with the predictive performance of the member models, and the better the predictive performance of the member models, the better the predictive performance of the fusion model usually is. The fusion model can make full use of the predictive capability of each member model, thus improving the predictive performance of the model, and does not superimpose the covariance or noise information between different data. The MLR and PSO-ELM models of MCMF can further improve the predictive performance of the three-mode spectral model based on the traditional single model.

3.5.2. CNCMF Modeling Results

From previous studies, it is known that the prediction performance of the fusion model is positively correlated with the prediction performance of the member models. Therefore, this study fused the characteristic wavelength and non-characteristic wavelength prediction models screened by the CARS algorithm. The characteristic wavelengths screened by the CARS algorithm were removed, and then the PLSR prediction models for non-characteristic wavelengths were established. The results are shown in Table 5.
From Table 5, it can be seen that the performance of the non-characteristic wavelength prediction models decreased compared to the characteristic wavelength, but the non-characteristic wavelength prediction models also had some prediction ability. It indicates that the non-characteristic wavelength also contains information related to apple SSC. Previous modeling methods using characteristic wavelengths did not make full use of the information related to apple SSC in the spectra. Therefore, using the fusion method of characteristic wavelength and non-characteristic wavelength member models can make full use of the contribution of the non-characteristic wavelength model to the prediction results. CNCMF modeling results, as shown in Table 6.
As can be seen from Table 6, for the DR spectrum, the SA, BG, MLR, LS-SVR, and PSO-ELM models of CNCMF could further improve the prediction performance; for the DT spectrum, only the PSO-ELM model of CNCMF improved the prediction performance, while all others decrease; for the FT spectrum, the LS-SVR and PSO-ELM models of CNCMF could further improve the prediction performance, while the SA, BG, and MLR models degrade the prediction performance. The PSO-ELM model of CNCMF significantly improved the prediction models of DR, DT, and FT spectra and slightly outperformed the PSO-ELM model of MCMF. However, the difference in the prediction performance of the two methods may be caused by the randomness in optimizing the PSO-ELM model parameters. Therefore, it can be considered that the prediction performance of the two prediction models is relatively close, and both can significantly improve the prediction performance of the models.

3.6. Discussion

The effectiveness of the proposed S/S algorithm for spectral correction is demonstrated by the results of PLSR modeling of DR, DT, and FT spectra. It is also shown that the correction effect of the method on spectra is general and superior to several other common spectral pre-processing algorithms. The S/S algorithm is mainly used to eliminate multiplicative effects in spectra. Apples, as naturally growing organisms, multiplicative effects caused by differences in physical properties are a significant cause of spectral differences. Therefore, it may be the main reason why this algorithm can effectively improve the prediction performance of the model.
The results of this study demonstrated that the use of DR spectroscopy also has a certain prediction ability for apple whole fruit SSC. In particular, after model fusion, the RPD of DR spectroscopy for the prediction of apple whole fruit SSC was significantly improved. It shows that the model fusion strategy enables the DR spectroscopy to meet the demand for practical detection of apple whole fruit SSC. Due to the simple structure of DR spectroscopy acquisition, the model fusion method can be used to improve the online detection accuracy of apple whole fruit SSC at a low cost.
Not all fusion models improve the predictive performance of models compared to single predictive models. Therefore, exploring the applicable MCMF and CNCMF modeling methods in this study is necessary. The fusion models show some similarities, and all of them are PSO-ELM models with the best enhancement effect. This study fully demonstrates the effectiveness of the proposed model fusion method by building the prediction models of the three mode spectra. It also shows that the boosting effect of the method is not a chance phenomenon.
Compared with other studies on apple SSC online detection, the best prediction model constructed in this study is better than Li et al. (2023) [42], Xia et al. (2019) [16], and Tian et al. (2019) [43], and slightly lower than Chang et al. (2023) [44] and Zheng et al. (2023) [45]. Moreover, the spectrometer used in this study has a lower cost. Therefore, the methods proposed in this study can improve the model prediction performance based on a lower-cost spectrometer.
The spectral pre-processing method proposed in this study enables targeted elimination of multiplicative effects in spectra. The method can be applied in the spectral correction of other agricultural products with significant differences in physical properties. The model fusion methods proposed in this study are different from other previous research methods in that they can fully utilize the contribution of the discarded models and wavelength variables to the overall prediction results and provide new ideas and methods for online detection of apple SSC. However, this study was only conducted for specific varieties of apples, and the applicability to other varieties of apples or other types of fruit needs to be explored in the future. In addition, other quality indicators, such as acidity and moldy heart disease, need to be further explored.

4. Conclusions

(1)
For the full spectrum, the S/S-PLSR models for all three mode spectra had good prediction performance;
(2)
The CARS characteristic wavelength screening algorithm can further improve the prediction performance of the S/S-PLSR models;
(3)
The PSO-ELM models of MCMF and CNCMF could simultaneously improve the prediction performance of the three modal spectra for apple whole fruit SSC, so that the DR spectra, which originally had a weaker performance, also had a higher prediction performance;
(4)
For the full spectrum, characteristic wavelength, and fusion models, the DR, DT, and FT spectra all had some predictive ability for apple whole fruit SSC, with the FT spectrum having the best predictive ability, followed by the DT spectrum.
The results demonstrate the effectiveness of the proposed spectral correction method and model fusion methods. The proposed methods provide new ideas and approaches to improve the accuracy of online apple quality detection. These methods can be applied to the quality detection of other fruits or agricultural products. The results of the study provide data support for guiding the development of online apple quality detection devices, and they are of great significance and value in reducing the cost of the devices and improving detection accuracy.

Author Contributions

Conceptualization, Y.L. (Yang Li); formal analysis, T.Y.; funding acquisition, Y.P.; investigation, T.Y.; methodology, Y.L. (Yang Li); project administration, Y.P.; resources, Y.P.; software, B.W.; supervision, Y.P.; validation, T.Y.; writing—original draft, Y.L. (Yang Li); writing—review and editing, Y.P. and Y.L. (Yongyu Li). All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Key Research and Development Project (Project No. 2021YFD1600101-06).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Giovanelli, G.; Sinelli, N.; Beghi, R.; Guidetti, R.; Casiraghi, E. NIR spectroscopy for the optimization of postharvest apple management. Postharvest Biol. Technol. 2014, 87, 13–20. [Google Scholar] [CrossRef]
  2. Arendse, E.; Fawole, O.A.; Magwaza, L.S.; Opara, U.L. Non-destructive prediction of internal and external quality attributes of fruit with thick rind: A review. J. Food Eng. 2018, 217, 11–23. [Google Scholar] [CrossRef]
  3. Fan, S.X.; Li, J.B.; Xia, Y.; Tian, X.; Guo, Z.M.; Huang, W.Q. Long-term evaluation of soluble solids content of apples with biological variability by using near-infrared spectroscopy and calibration transfer method. Postharvest Biol. Technol. 2019, 151, 79–87. [Google Scholar] [CrossRef]
  4. Lee, A.; Shim, J.; Kim, B.; Lee, H.; Lim, J. Non-destructive prediction of soluble solid contents in Fuji apples using visible near-infrared spectroscopy and various statistical methods. J. Food Eng. 2022, 321, 110945. [Google Scholar] [CrossRef]
  5. Cortes, V.; Blasco, J.; Aleixos, N.; Cubero, S.; Talens, P. Monitoring strategies for quality control of agricultural products using visible and near-infrared spectroscopy: A review. Trends Food Sci. Technol. 2019, 85, 138–148. [Google Scholar] [CrossRef]
  6. Lu, R.F.; Van Beers, R.; Saeys, W.; Li, C.Y.; Cen, H.Y. Measurement of optical properties of fruits and vegetables: A review. Postharvest Biol. Technol. 2020, 159, 111003. [Google Scholar] [CrossRef]
  7. Silalahi, D.D.; Midi, H.; Arasan, J.; Mustafa, M.S.; Caliman, J.P. Robust generalized multiplicative scatter correction algorithm on pretreatment of near infrared spectral data. Vib. Spectrosc. 2018, 97, 55–65. [Google Scholar] [CrossRef]
  8. Roger, J.M.; Mallet, A.; Marini, F. Preprocessing NIR Spectra for Aquaphotomics. Molecules 2022, 27, 6795. [Google Scholar] [CrossRef]
  9. Mallet, A.; Tsenkova, R.; Muncan, J.; Charnier, C.; Latrille, É.; Bendoula, R.; Steyer, J.P.; Roger, J.M. Relating Near-Infrared Light Path-Length Modifications to the Water Content of Scattering Media in Near-Infrared Spectroscopy: Toward a New Bouguer-Beer-Lambert Law. Anal. Chem. 2021, 93, 6817–6823. [Google Scholar] [CrossRef]
  10. Jin, J.W.; Chen, Z.P.; Li, L.M.; Steponavicius, R.; Thennadil, S.N.; Yang, J.; Yu, R.Q. Quantitative Spectroscopic Analysis of Heterogeneous Mixtures: The Correction of Multiplicative Effects Caused by Variations in Physical Properties of Samples. Anal. Chem. 2012, 84, 320–326. [Google Scholar] [CrossRef]
  11. Zhang, J.; Liu, S.Z.; Yang, J.; Song, M.; Song, J.; Du, H.L.; Chen, Z.P. Quantitative spectroscopic analysis of heterogeneous systems: Chemometric methods for the correction of multiplicative light scattering effects. Rev. Anal. Chem. 2013, 32, 113–125. [Google Scholar] [CrossRef]
  12. Li, L.; Peng, Y.K.; Li, Y.Y.; Wang, F. A new scattering correction method of different spectroscopic analysis for assessing complex mixtures. Anal. Chim. Acta 2019, 1087, 20–28. [Google Scholar] [CrossRef]
  13. Rinnan, A.; van den Berg, F.; Engelsen, S.B. Review of the most common pre-processing techniques for near-infrared spectra. TRAC-Trend Anal. Chem. 2009, 28, 1201–1222. [Google Scholar] [CrossRef]
  14. Tian, X.; Fan, S.X.; Li, J.B.; Huang, W.Q.; Chen, L.P. An optimal zone combination model for on-line nondestructive prediction of soluble solids content of apple based on full-transmittance spectroscopy. Biosyst. Eng. 2020, 197, 64–75. [Google Scholar] [CrossRef]
  15. Hong, F.W.; Chia, K.S. A review on recent near infrared spectroscopic measurement setups and their challenges. Measurement 2021, 171, 108732. [Google Scholar] [CrossRef]
  16. Xia, Y.; Huang, W.Q.; Fan, S.X.; Li, J.B.; Chen, L.P. Effect of spectral measurement orientation on online prediction of soluble solids content of apple using Vis/NIR diffuse reflectance. Infrared Phys. Technol. 2019, 97, 467–477. [Google Scholar] [CrossRef]
  17. Fu, X.P.; Ying, Y.B.; Lu, H.S.; Xu, H.R. Comparison of diffuse reflectance and transmission mode of visible-near infrared spectroscopy for detecting brown heart of pear. J. Food Eng. 2007, 83, 317–323. [Google Scholar] [CrossRef]
  18. Li, J.B.; Zhang, H.L.; Zhan, B.S.; Zhang, Y.F.; Li, R.L.; Li, J.B. Nondestructive firmness measurement of the multiple cultivars of pears by Vis-NIR spectroscopy coupled with multivariate calibration analysis and MC-UVE-SPA method. Infrared Phys. Technol. 2020, 104, 103154. [Google Scholar] [CrossRef]
  19. Yun, Y.H.; Li, H.D.; Deng, B.C.; Cao, D.S. An overview of variable selection methods in multivariate analysis of near-infrared spectra. Trac-Trend Anal. Chem. 2019, 113, 102–115. [Google Scholar] [CrossRef]
  20. Liu, C.; Yang, S.X.; Deng, L. Determination of internal qualities of Newhall navel oranges based on NIR spectroscopy using machine learning. J. Food Eng. 2015, 161, 16–23. [Google Scholar] [CrossRef]
  21. Ma, X.T.; Luo, H.P.; Liao, J.A.; Zhao, J.F. The knowledge domain and emerging trends in apple detection based on NIRS: A scientometric analysis with CiteSpace (1989–2021). Food Sci. Nutr. 2022, 10, 4091–4102. [Google Scholar] [CrossRef] [PubMed]
  22. Yuan, L.M.; Mao, F.; Chen, X.J.; Li, L.M.; Huang, G.Z. Non-invasive measurements of ‘Yunhe’ pears by vis-NIRS technology coupled with deviation fusion modeling approach. Postharvest Biol. Technol. 2020, 160, 111067. [Google Scholar] [CrossRef]
  23. Singh, M.; Singh, R.; Ross, A. A comprehensive overview of biometric fusion. Inform. Fusion 2019, 52, 187–205. [Google Scholar] [CrossRef]
  24. Liu, K.; Chen, X.J.; Li, L.M.; Chen, H.L.; Ruan, X.K.; Liu, W.B. A consensus successive projections algorithm—Multiple linear regression method for analyzing near infrared spectra. Anal. Chim. Acta 2015, 858, 16–23. [Google Scholar] [CrossRef] [PubMed]
  25. Chen, Z.P.; Morris, J.; Borissova, A.; Khan, S.; Mahmud, T.; Penchev, R.; Roberts, K.J. On-line monitoring of batch cooling crystallization of organic compounds using ATR-FTIR spectroscopy coupled with an advanced calibration method. Chemometr. Intell. Lab. 2009, 96, 49–58. [Google Scholar] [CrossRef]
  26. Chen, Z.P.; Morris, J. Improving the linearity of spectroscopic data subjected to fluctuations in external variables by the extended loading space standardization. Analyst 2008, 133, 914–922. [Google Scholar] [CrossRef] [PubMed]
  27. Liu, Y.H.; Wang, Q.Q.; Gao, X.W.; Xie, A.G. Total phenolic content prediction in Flos Lonicerae using hyperspectral imaging combined with wavelengths selection methods. J. Food Process Eng. 2019, 42, e13224. [Google Scholar] [CrossRef]
  28. Deng, B.C.; Yun, Y.H.; Cao, D.S.; Yin, Y.L.; Wang, W.T.; Lu, H.M.; Luo, Q.Y.; Liang, Y.Z. A bootstrapping soft shrinkage approach for variable selection in chemical modeling. Anal. Chim. Acta 2016, 908, 63–74. [Google Scholar] [CrossRef]
  29. Deng, B.C.; Yun, Y.H.; Ma, P.; Lin, C.C.; Ren, D.B.; Liang, Y.Z. A new method for wavelength interval selection that intelligently optimizes the locations, widths and combinations of the intervals. Analyst 2015, 140, 1876–1885. [Google Scholar] [CrossRef]
  30. Sagi, O.; Rokach, L. Ensemble learning: A survey. Wires Data Min. Knowl. 2018, 8, e1249. [Google Scholar] [CrossRef]
  31. Afriyie, E.; Verdoodt, A.; Mouazen, A.M. Data fusion of visible near-infrared and mid-infrared spectroscopy for rapid estimation of soil aggregate stability indices. Comput. Electron. Agric. 2021, 187, 106229. [Google Scholar] [CrossRef]
  32. Ozdemir, U.; Ozbay, B.; Veli, S.; Zor, S. Modeling adsorption of sodium dodecyl benzene sulfonate (SDBS) onto polyaniline (PANI) by using multi linear regression and artificial neural networks. Chem. Eng. J. 2011, 178, 183–190. [Google Scholar] [CrossRef]
  33. Cheng, J.H.; Sun, D.W. Partial Least Squares Regression (PLSR) Applied to NIR and HSI Spectral Data Modeling to Predict Chemical Properties of Fish Muscle. Food Eng. Rev. 2017, 9, 36–49. [Google Scholar] [CrossRef]
  34. Liu, D.Y.; Wang, E.F.; Wang, G.L.; Ma, G.K. Nondestructive determination of soluble solids content, firmness, and moisture content of “Longxiang” pears during maturation using near-infrared spectroscopy. J. Food Process Pres. 2022, 46, e16332. [Google Scholar] [CrossRef]
  35. Mo, L.N.; Chen, H.Z.; Chen, W.H.; Feng, Q.X.; Xu, L.L. Study on evolution methods for the optimization of machine learning models based on FT-NIR spectroscopy. Infrared Phys. Technol. 2020, 108, 103366. [Google Scholar] [CrossRef]
  36. Jian, H.; Lin, Q.F.; Wu, J.T.; Fan, X.G.; Wang, X. Design of the color classification system for sunglass lenses using PCA-PSO-ELM. Measurement 2022, 189, 110498. [Google Scholar] [CrossRef]
  37. Wang, X.P.; Zhang, F.; Ding, J.L.; Kung, H.T.; Latif, A.; Johnson, V.C. Estimation of soil salt content (SSC) in the Ebinur Lake Wetland National Nature Reserve (ELWNNR), Northwest China, based on a Bootstrap-BP neural network model and optimal spectral indices. Sci. Total Environ. 2018, 615, 918–930. [Google Scholar] [CrossRef]
  38. Merzlyak, M.N.; Solovchenko, A.E.; Gitelson, A.A. Reflectance spectral features and non-destructive estimation of chlorophyll, carotenoid and anthocyanin content in apple fruit. Postharvest Biol. Technol. 2003, 27, 197–211. [Google Scholar] [CrossRef]
  39. Zou, X.B.; Zhao, J.W.; Povey, M.J.W.; Holmes, M.; Mao, H.P. Variables selection methods in near-infrared spectroscopy. Anal. Chim. Acta 2010, 667, 14–32. [Google Scholar] [CrossRef]
  40. Xia, Y.; Fan, S.; Tian, X.; Huang, W.; Li, J. Multi-factor fusion models for soluble solid content detection in pear (Pyrus bretschneideri ‘Ya’) using Vis/NIR online half-transmittance technique. Infrared Phys. Technol. 2020, 110, 103443. [Google Scholar] [CrossRef]
  41. 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]
  42. Li, J.B.; Zhang, Y.F.; Zhang, Q.; Duan, D.D.; Chen, L.P. Establishment of a multi-position general model for evaluation of watercore and soluble solid content in ‘Fuji’ apples using on-line full-transmittance visible and near infrared spectroscopy. J. Food Compos. Anal. 2023, 117, 105150. [Google Scholar] [CrossRef]
  43. Tian, X.; Fan, S.X.; Li, J.B.; Xia, Y.; Huang, W.Q.; Zhao, C.J. Comparison and optimization of models for SSC online determination of intact apple using efficient spectrum optimization and variable selection algorithm. Infrared Phys. Technol. 2019, 102, 102979. [Google Scholar] [CrossRef]
  44. Han, C.; Jifan, Y.; Hao, T.; Jinshan, Y.; Huirong, X. Evaluation of the optical layout and sample size on online detection of apple watercore and SSC using Vis/NIR spectroscopy. J. Food Compos. Anal. 2023, 123, 105528. [Google Scholar] [CrossRef]
  45. Zheng, Y.J.; Cao, Y.C.; Yang, J.; Xie, L.J. Enhancing model robustness through different optimization methods and 1-D CNN to eliminate the variations in size and detection position for apple SSC determination. Postharvest Biol. Technol. 2023, 205, 112513. [Google Scholar] [CrossRef]
Figure 1. Spectral online acquisition devices. (A) Diffuse reflection spectral acquisition device; (B) diffuse transmission spectral acquisition device; and (C) full transmission spectral acquisition device.
Figure 1. Spectral online acquisition devices. (A) Diffuse reflection spectral acquisition device; (B) diffuse transmission spectral acquisition device; and (C) full transmission spectral acquisition device.
Foods 13 01037 g001
Figure 2. Model fusion methods. (A) Multiple characteristic wavelength member model fusion methods; (B) characteristic wavelength and non-characteristic wavelength member model fusion methods.
Figure 2. Model fusion methods. (A) Multiple characteristic wavelength member model fusion methods; (B) characteristic wavelength and non-characteristic wavelength member model fusion methods.
Foods 13 01037 g002
Figure 3. The spectra of apples. (A) Diffuse reflection spectra; (B) diffuse transmission spectra; and (C) full transmission spectra.
Figure 3. The spectra of apples. (A) Diffuse reflection spectra; (B) diffuse transmission spectra; and (C) full transmission spectra.
Foods 13 01037 g003
Figure 4. Characteristic wavelength screened by different algorithms. (A) DR spectral characteristic wavelengths; (B) DT spectral characteristic wavelengths; and (C) FT spectral characteristic wavelengths.
Figure 4. Characteristic wavelength screened by different algorithms. (A) DR spectral characteristic wavelengths; (B) DT spectral characteristic wavelengths; and (C) FT spectral characteristic wavelengths.
Foods 13 01037 g004
Table 1. Results of apple SSC statistics.
Table 1. Results of apple SSC statistics.
Acquisition ModesDatasetNo. of SamplesMax
(%)
Min
(%)
Average
(%)
Standard Deviation
(%)
DRTotal10516.6009.00012.9501.551
Calibration7816.6009.00012.9371.554
Prediction2716.6009.10012.9891.571
DTTotal10516.6009.00012.9501.551
Calibration7916.6009.00013.0301.568
Prediction2615.2009.00012.7081.503
FTTotal10516.6009.00012.9501.551
Calibration7916.6009.00012.8801.553
Prediction2616.6009.00013.1651.554
Notes: DR: diffuse reflection, DT: diffuse transmission, FT: full transmission.
Table 2. Apple SSC modeling results.
Table 2. Apple SSC modeling results.
ModelSpectral ModePre-ProcessingFactorCalibration SetPrediction SetRPD
RcRMESC (%)RpRMSEP (%)
PLSRDRS/SLVs: 80.8770.7420.8580.8111.937
DTS/SLVs: 110.9020.6410.9020.6492.316
FTS/SLVs: 100.9170.6150.9120.6532.380
LS-SVRDRRAWγ: 2.592 × 104,
σ 2 : 1.486 × 105
0.9150.6450.8900.8431.864
DTRAWγ: 7.565 × 105,
σ 2 : 4.283 × 105
0.9310.5730.8930.6702.243
FTRAWγ: 2.272 × 105,
σ 2 : 2.787 × 105
0.9510.4830.9100.6592.358
PSO-ELMDRSNVHidden nodes: 300.8590.7910.8400.8381.875
DTSNVHidden nodes: 300.9160.6260.8940.6592.281
FTSNVHidden nodes: 300.9180.6120.9020.6582.362
Notes: PLSR: partial least squares regression, LS-SVR: least squares support vector regression, PSO-ELM: particle swarm optimization–extreme learning machine, DR: diffuse reflection, DT: diffuse transmission, FT: full transmission, S/S: spectra to spectra ratio, RAW: raw spectra, SNV: standard normal variational transform, Rc: the correlation coefficient of calibration, RMSEC: root mean square error of calibration, Rp: the correlation coefficient of prediction, RMSEP: root mean square error of prediction, RPD: relative percentage difference, LVs: latent variables.
Table 3. Results of apple SSC modeling based on characteristic wavelengths.
Table 3. Results of apple SSC modeling based on characteristic wavelengths.
ModelSpectral ModeNumber of Characteristic WavelengthsLVsCalibration SetPrediction SetRPD
RcRMSEC (%)RpRMSEP (%)
S/S-CARS-PLSRDR4590.8990.6750.8830.7492.097
DT2680.9160.6240.9070.6302.386
FT3490.9440.5080.9310.5752.703
S/S-BOSS-PLSRDR2460.8620.7830.8570.8271.900
DT15100.9060.6580.8870.6932.169
FT2490.9380.5370.8920.6962.233
S/S-iVISSA-PLSRDR48170.9020.6680.8200.9091.728
DT41780.8520.8150.8100.8941.681
FT438110.9390.5310.8910.7062.201
Notes: S/S: spectra to spectra ratio, PLSR: partial least squares regression, CARS: competitive adaptive reweighted sampling, BOSS: bootstrapping soft shrinkage iVISSA: interval variable iterative space shrinkage approach, DR: diffuse reflection, DT: diffuse transmission, FT: full transmission, LVs: latent variables, Rc: the correlation coefficient of calibration, RMSEC: root mean square error of calibration, Rp the correlation coefficient of prediction, RMSEP: root mean square error of prediction, RPD: relative percentage difference.
Table 4. MCMF modeling results.
Table 4. MCMF modeling results.
ModelSpectral ModeFactorCalibration SetPrediction SetRPD
RcRMESC (%)RpRMSEP (%)
SADR(f1 + f2 + f3)/30.8890.7120.8950.7362.135
DT(f1 + f2 + f3)/30.9070.6580.9050.6362.363
FT(f1 + f2 + f3)/30.9150.6290.8990.7252.143
BGDR0.428 f1 + 0.318 f2 + 0.254 f30.8940.6950.8980.7292.155
DT0.407 f1 + 0.355 f2 + 0.238 f30.9110.6450.9080.6222.416
FT0.547 f1 + 0.274 f2 + 0.179 f30.9310.5680.9150.6642.340
MLRDR0.793 f1 + 0.253 f2 − 0.025 f3
−0.266
0.9030.6640.8880.7342.140
DT1.070 f1 − 0.210 f2 + 0.157 f3
−0.217
0.9170.6200.9110.6102.464
FT1.134 f1 − 0.211 f2 − 0.075 f3
+0.026
0.9460.5020.9360.5502.825
LS-SVRDRγ: 6.288,
σ 2 : 12.348
0.9150.6260.8810.7532.086
DTγ: 28.276,
σ 2 : 4.662
0.9530.4750.8980.6562.291
FTγ: 38.849,
σ 2 : 5.462
0.9650.4070.9400.5422.867
PSO-ELMDRHidden nodes: 150.9350.5470.9310.5622.795
DTHidden nodes: 150.9440.4640.9360.5182.902
FTHidden nodes: 150.9660.4010.9560.4493.461
Notes: SA: simple averaging, BG: Bates–Granger average, MLR: multiple linear regression, LS-SVR: least squares support vector regression, PSO-ELM: particle swarm optimization–extreme learning machine, DR: diffuse reflection, DT: diffuse transmission, FT: full transmission, Rc: the correlation coefficient of calibration, RMSEC: root mean square error of calibration, Rp the correlation coefficient of prediction, RMSEP: root mean square error of prediction, RPD: relative percentage difference.
Table 5. Non-CARS characteristic wavelength modeling results.
Table 5. Non-CARS characteristic wavelength modeling results.
ModelSpectral ModeLVsCalibration SetPrediction SetRPD
RcRMESC (%)RpRMSEP (%)
PLSRDR80.8740.7510.8540.8201.916
DT120.9150.6290.8790.7232.079
FT100.9150.6230.9090.6622.347
Notes: PLSR: partial least squares regression, DR: diffuse reflection, DT: diffuse transmission, FT: full transmission, Rc: the correlation coefficient of calibration, RMSEC: root mean square error of calibration, Rp the correlation coefficient of prediction, RMSEP: root mean square error of prediction, RPD: relative percentage difference, LVs: latent variables.
Table 6. CNCMF modeling results.
Table 6. CNCMF modeling results.
ModelSpectral ModeFactorCalibration SetPrediction SetRPD
RcRMESC (%)RpRMSEP (%)
SADR(f4 + f5) /20.9030.6650.8910.7392.126
DT(f4 + f5) /20.9210.6070.8980.6592.281
FT(f4 + f5) /20.9360.5430.9280.5932.621
BGDR0.553 f4 + 0.447 f50.9040.6610.8920.7352.137
DT0.504 f4 + 0.496 f50.9210.6070.8980.6582.284
FT0.600 f4 + 0.400 f50.9380.5320.9300.5852.656
MLRDR0.708 f4 + 0.321 f5 − 0.3740.9050.6560.8930.7222.176
DT0.541 f4 + 0.470 f5 − 0.1470.9210.6070.8990.6592.281
FT1.071 f4 − 0.072 f5 + 0.0150.9440.5080.9310.5772.693
LS-SVRDRγ: 878.253,
σ 2 : 37.202
0.9160.6180.8950.7312.149
DTγ: 69.051,
σ 2 : 4.147
0.9560.4550.8870.6922.172
FTγ: 18.710,
σ 2 : 3.633
0.9560.4550.9360.5562.795
PSO-ELMDRHidden nodes: 150.9360.5460.9340.5522.846
DTHidden nodes: 150.9590.4420.9440.4853.099
FTHidden nodes: 150.9580.4450.9560.4453.492
Notes: SA: simple averaging, BG: Bates–Granger average, MLR: multiple linear regression, LS-SVR: least squares support vector regression, PSO-ELM: particle swarm optimization–extreme learning machine, DR: diffuse reflection, DT: diffuse transmission, FT: full transmission, Rc: the correlation coefficient of calibration, RMSEC: root mean square error of calibration, Rp the correlation coefficient of prediction, RMSEP: root mean square error of prediction, RPD: relative percentage difference.
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

Li, Y.; Peng, Y.; Li, Y.; Yin, T.; Wang, B. Optimization of Online Soluble Solids Content Detection Models for Apple Whole Fruit with Different Mode Spectra Combined with Spectral Correction and Model Fusion. Foods 2024, 13, 1037. https://doi.org/10.3390/foods13071037

AMA Style

Li Y, Peng Y, Li Y, Yin T, Wang B. Optimization of Online Soluble Solids Content Detection Models for Apple Whole Fruit with Different Mode Spectra Combined with Spectral Correction and Model Fusion. Foods. 2024; 13(7):1037. https://doi.org/10.3390/foods13071037

Chicago/Turabian Style

Li, Yang, Yankun Peng, Yongyu Li, Tianzhen Yin, and Bingwei Wang. 2024. "Optimization of Online Soluble Solids Content Detection Models for Apple Whole Fruit with Different Mode Spectra Combined with Spectral Correction and Model Fusion" Foods 13, no. 7: 1037. https://doi.org/10.3390/foods13071037

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