1. Introduction
1.1. Background
The clarification of cane juice and the crystallization of boiled sugar are important processes in sugar production. Both clarification and crystallization affect the quality of sugar and its economic benefit to sugar factories. The brix of syrup is an important monitoring parameter in these two processes. The rapid and accurate measurement of syrup brix is essential to realize the automatic control of the sugar manufacturing process and improve product quality [1]. The syrup brix is the percentage by mass of soluble solids (the main component is sugar) in the syrup mixture, and it is expressed as in °Bx.
1.2. Existing Syrup Brix Measurement Methods Research
At present, several measurement methods have been proposed, among which the conductivity method, refractive index method, density method, and microwave method are the most common. The syrup is a mixture containing electrolytes that ionize positive and negative ions in water and thus have electrical conductivity, so the syrup brix can be calculated by measuring the electrical conductivity in the syrup solution. Marzougui et al. [2] developed a method in which gamma-irradiated solid table sugar was investigated for dosimetry, and the absorbed dose was estimated by measuring the conductivity of aqueous solutions of dissolved irradiated solid sugar. The results showed that the electrical conductivity of the solution increases linearly with the dose absorbed. However, in actual production, the purity of the cane juice that is squeezed from sugarcane of different varieties and different origins varies, and the composition and quantity of the electrolytes contained also vary. Therefore, the conductivity of the syrup mixture fluctuates within a certain range during the production process, that is, there is a large error in the brix value when measured by the conductivity. In contrast, it is more accurate to use the refractive index to measure the syrup brix. Li et al. [3] developed a refraction laser–CCD molasses malleability sensor with a high stability laser light source and a high-performance CCD charge-coupled device, which can automatically detect the syrup brix and add temperature compensation with a measurement error of 0.3%. Dongare et al. [4] presented a mathematical model of the optical geometry of a prismatic refractometer for syrup brix measurement, and the simulation and experimental results showed a good correlation. However, due to the poor penetration of the refractometer, a surface layer of 0.1 μm thickness is sufficient to greatly change the intensity of the light transmission. Therefore, when a small amount of dirt is generated on the lens and not cleaned in time, the refractive index will change significantly, which will seriously affect the accurate measurement of the instrument. The density method uses a pre-developed mathematical model of syrup brix and density, including comparison tables, empirical data fitting formulas, etc., in order to obtain the syrup brix measurement by looking up the table or substituting it into the calculation formula after measuring the density of syrup [5]. Nunak et al. [6] developed an instrument to measure the concentration of sugar solutions using a relative density. The results showed that the instrument can accurately analyze the concentration. Huang et al. [7] designed an online automatic detection system for syrup brix based on the density method and PLC technology, and added linear programming correction and temperature compensation, which can obtain a more accurate brix value. Although the density method has a simple measurement principle and low cost, the measurement range is narrow, the structure of the measuring device is complicated, and the measurement accuracy depends on the accuracy of the processing and assembly of the measuring device, which easily leads to large measurement errors and poor stability. Microwave technology can be used as an alternative method for food analysis [8]. The microwave method has the advantages of a simple mechanical structure, no harm to the sample, and high measurement accuracy. In addition, due to the strong penetration of the microwave, the micro dirt generated in the measurement site has little impact on the measurement, so it has high stability. Hosseini et al. [9] proposed a new technique that enables a microwave resonator to perform a volume fraction analysis of complex dynamically changing liquids, while maintaining the original characteristics of the microwave resonator sensor. Multiple simulations and experimental results validated the ability of this technique to monitor ethanol, water, and sugar concentrations in real time during fermentation. However, this method cannot yet be used in the sugar production process. Liu et al. [10] designed a microwave coaxial resonator sensor to characterize the syrup brix by measuring the resonant frequency and quality factor of the syrup, which exhibited an excellent performance when measuring brix, with an accuracy equivalent to that of the brix meter produced by Germany’s proMtec in the actual sugar manufacturing process [11]. However, this method did not investigate the model used to calculate the syrup brix.
As can be seen, the current measurement of syrup brix is mainly focused on finding more suitable measurement methods, and little research has been conducted in order to improve the accuracy of the brix calculation model. On this basis, this paper adopts the microwave method to measure the syrup brix, using the microwave coaxial resonant cavity in [10] as the measurement sensor, and conducts further research to improve the accuracy of the sugar brix calculation model.
When the microwave method is used for measurement, the syrup brix is usually calculated by the model based on the mixed dielectric law. The syrup is a mixed solution; hence, the complex permittivity of each component is different. According to the mixed dielectric law, when the proportion of each component is different, their complex permittivity also varies [12]. According to this feature, a theoretical calculation model can be established to derive the brix from the resonant frequency and quality factor. However, measurement errors are caused by the measurement hardware and the approximate processing of the theoretical calculation model based on the microwave perturbation method and mixed dielectric law. The accumulation of these errors will lead to relatively large measurement errors. A stable measurement system will reduce the fluctuations in the measurement errors of the resonant frequency and quality factor. Therefore, the negative impact of these errors on the measurement accuracy can be reduced or eliminated by directly establishing the numerical values of the resonant frequency, quality factor, and the syrup brix. Regression fitting is a method that is widely used to establish measurement models in measurement technology. Using the regression fitting method to establish the regression equation of the relationship between the resonant frequency, quality factor, and brix, a calculation model can be developed based on multiple regression to reduce the negative impact of the above errors. Multiple regression analysis describes the mathematical relationships between the overall trends in the resonance parameters and syrup brix. However, these cannot be accurately predicted when the data significantly deviate from the fitting curve.
The support vector machine (SVM) is a new machine learning algorithm that was proposed by Vapnik et al. based on the statistical learning theory, which can be used for the classification of small samples [13]. The SVM performs the nonlinear mapping of the input vector from the low-dimensional to the high-dimensional feature space. It adopts the principle of structural risk minimization to improve the generalization ability of the model and avoid the “dimensional disaster”. For regression fitting, Vapnik et al. [14] proposed the insensitive loss function based on the SVM classification to enable the construction of a support vector regression (SVR) algorithm with superior performance. Compared with other algorithms, such as random forest (RF), radial basis function (RBF), and artificial neural network (ANN), SVR is more suitable for complex and nonlinear regression problems when they are based on statistical supervised learning theory and structural risk minimization. It has a sound theoretical foundation, strong fitting ability, strong generalization ability, and strong robustness [15]. SVR has been applied to solve many problems. Castro-Neto et al. [16] presented the application of a supervised statistical learning technique called Online-SVR, which was used to predict the short-term traffic flow; the results showed that its performance was better than other models. Liang et al. [17] proposed a fuzzy multilevel algorithm based on PSO to optimize SVR in order to realize the real-time dynamic evaluation of drilling risk; the results showed that the accuracy of the PSO–SVR model can reach 99.99%, which is obviously better than that of the multilayer perceptron neural network model. Quan et al. [18] established an SVR model by using the measured water temperature data in a reservoir for many years, and the genetic algorithm was introduced to optimize the parameters; the results showed that this model could predict the vertical water temperature and water temperature structure in the reservoir area well. Benkedjouh et al. [19] presented a method that was based on nonlinear feature reduction and SVR in order to assess the condition of tools and predict their life; the results showed that the proposed method was suitable for assessing the wear evolution of the cutting tools and predicting their remaining useful life. Paniagua-Tineo et al. [20] presented a method based on SVR for daily maximum temperature prediction, and different meteorological variables were obtained, including temperature, precipitation, relative humidity, air pressure, the synoptic situation of the day, and the monthly cycle. By using this pool of prediction variables, it was shown that the SVR could accurately predict the maximum temperature 24 h later. Li et al. [21] developed an improved gray wolf optimization algorithm to optimize the SVR in order to estimate knee joint extension force accurately and timely; the indexes showed that this model provided the best performance and was better than other models. In summary, it can be seen that SVR can be used for syrup brix prediction.
To improve the accuracy of the syrup brix calculation model, this paper studies an SVR-based syrup brix calculation model, optimizes the SVR using improved particle swarm optimization (PSO), and establishes a one-to-one mapping relationship between the resonant parameters and syrup brix. Compared with other calculation models, the PSO–SVR model could obtain the best performance using different evaluation indexes.
1.3. Contributions
The main contributions of this paper are as follows:
A new SVR-based syrup brix calculation model is introduced, and the improved PSO is used to optimize the key SVR parameters. The adaptive PSO has multiple inertia weights, which can balance the global and local search abilities.
The first application of the proposed PSO–SVR model in syrup brix calculation.
It is the first time that a method combining the microwave method with the PSO–SVR calculation model is used to predict the syrup brix.
The rest of the paper is structured as follows: In Section 2, we introduce the data collection, experimental setup, the theory of the SVR and PSO, and the improvement of the PSO; then, we establish the PSO–SVR model and the other two traditional models, finally introducing the evaluation indexes. In Section 3, we show the results of the PSO–SVR model and the comparison with other models; then, we simulate the online measurement of the syrup. In Section 4, we present our conclusions and avenues for future research.
2. Materials and Methods
2.1. Data Collection
A number of methyl syrups that had not been completely boiled were obtained from a sugar factory in Nanning, Guangxi, China. A total of 200 samples of syrup with a density of 10–90 °Bx were prepared and placed in volumetric cups. The brix value within this range was random. The brix range was set as 10–90 °Bx because the syrup brix was greater than 10°Bx in the sugar production process. The maximum brix of the original syrup was 90 °Bx because of the limited experimental conditions. In addition, samples of standard syrups with brix values of 60, 65, 70, 75, 80, 85, and 90 °Bx (60–90 °Bx is the required range for the sugar crystallization process) were prepared to simulate the online brix measurement of the actual sugar crystallization process. The brix of the syrup samples was measured using a fully automatic refractometer (DigiPol-R600, Shanghai Jiahang Instrument Company), and the measured values were taken as the standard values. The refractometer had a measurement range of 0–100 °Bx and a measurement accuracy of 0.01 °Bx.
The steps in the experimental data collection are as follows:
Step 1: Pour the appropriate amount of syrup into a volumetric cup. Use a rubber tip dropper to draw distilled water and inject it into the cup. Mix the syrup and water slowly and evenly using a glass rod.
Step 2: Let the syrup stand for 10 min to allow the bubbles to rise to the surface. Use the dropper to draw a small amount of syrup from the cup and place it in the measuring area of the automatic refractometer to record the measured brix value.
Step 3: Repeat Steps 1 and 2 until 200 standard syrup samples of 10–90 °Bx and seven standard syrup samples of 60, 65, 70, 75, 80, 85, and 90 °Bx are prepared.
Step 4: Immerse the open end of the developed coaxial resonator into the syrup sample, maintain an immersion depth of 1 cm, and record the measured resonant frequency and quality factor.
Step 5: Repeat Step 4 until all samples are collected.
If a group of data collected significantly deviates from the actual situation, it shall be discarded, and the measurement shall be conducted again after checking the equipment.
2.2. Experimental Setup
The experimental setup is shown in Figure 1. In this experiment, a self-designed microwave coaxial resonator was used as the measurement sensor. The resonator sensor was connected to the NanoVNA V2 Plus4 vector network analyzer by two coaxial cables (A-info SM-SM-SFD147A, DC-18GHz). The analyzer was developed by HCXQS in collaboration with OwOComm. The frequency of the analyzer ranged from 50 kHz to 4.4 GHz, the frequency resolution was 1 Hz, and the power resolution was 0.01 dB. The analyzer was directly connected to a personal computer by a LAN cable. The data were displayed on the NanoVNA-QT and collected using MATLAB. In the test, the analyzer was operated in the network analyzer mode at a frequency of 2.0–2.45 GHz with 2000 sampling points. The calibration method known as SOLT(T/R) was adopted, in which calibration was performed at the port 1 and port 2 connectors. During the test, the open end of the sensor was completely immersed in the syrup. The working principle of the experimental platform is shown in Figure 2.
All experiments were conducted at room temperature (25 ± 1 °C). Special attention was paid to prevent bubbles from forming in the liquid and to ensure that the volume of each liquid sample and the depth of the sensor immersed in the liquid were the same.
2.3. Construction of Syrup Brix Calculation Model Based on SVR
2.3.1. SVR
The basic idea of SVR is to determine the optimal hyperplane in order to minimize the total deviation of all sample points from the hyperplane [22]. For the training sample, set ; is the input vector, , is the corresponding output value, and its regression function is as follows:
(1)
where is the nonlinear mapping function, is the coefficient vector, and b is the threshold.The linear insensitive loss function is defined by the following formula:
(2)
where y is the true value corresponding to .If the error between and y is not greater than , then the loss is zero. However, if the error between and y exceeds , then a fitting error occurs. Therefore, the relaxation factors and were introduced. The objective function and constraints of SVR are as follows:
(3)
where C is the penalty coefficient. The greater the C, the greater the penalty for the sample whose training error exceeds . The limits the error of the regression function; hence, the lower its value, the smaller the error of the regression function.According to quadratic programming and the kernel function problem, the following regression functions can be obtained.
(4)
where the sample corresponding to the nonzero coefficient is the support vector, is the kernel function , and is the optimized threshold.Common kernel functions include the sigmoid kernel function, radial basis function (RBF), and polynomial kernel function [23]. Compared with the other kernel functions, RBF contains only one parameter , which is easily optimized in the subsequent model. Therefore, RBF was selected as the kernel function of SVR in this study.
2.3.2. SVR Parameter Optimization
The penalty coefficient C and RBF parameter in SVR have a significant impact on the SVR performance. However, their values are unknown. Thus, these two parameters must be optimized to improve the performance of the model.
PSO is a swarm intelligent optimization algorithm that is based on the foraging behavior of birds [24]; using the overall cooperation ability among birds allows the group to achieve the optimal [25]. It has the characteristics of fast convergence and easy realization, and is widely used in problems such as multi-objective optimization [26], function optimization [27], and feature selection [28]. At the same time, the PSO algorithm is simpler compared with the rules of the genetic algorithm [29]. Therefore, in this article, the PSO is used to optimize the above two parameters.
In the PSO, each particle is regarded as a point in the D dimension space, which represents a solution to the optimization problem. Suppose the position of particle i is , is its current speed, is the individual extreme value, and is the population extreme value.
In the iteration process, the position and velocity of the particle are updated by the following formulas:
(5)
(6)
where N is the number of particles; ; ; k is the number of iterations; is the inertia weight; and are the coefficients of acceleration, and and are random numbers between 0 and 1.The individual and group extreme values are updated by the following formulas:
(7)
(8)
where is the fitness function.The inertia weight in formula (5) reflects the ability of particles to inherit the velocity of the last iteration, which affects their search range. To balance the global and local search abilities of PSO, this study adopted adaptive PSO with multiple inertia weights to optimize the penalty coefficient C and kernel parameter .
Let the inertial weight set be , in which each weight performs better within a certain optimization stage. The inertial weights of the five algorithms are as follows: EXPI [30], SUGENO [31], CHAOTIC [32], AIWPSO [33], and SSRDIW2 [34], were selected to form the inertial weight set, which has been proven to have better performance [35].
To evaluate the degree of evolution of the algorithm, the degree of K-step evolution is defined as follows:
(9)
where K is a constant. For any l < k, , it can be seen from formula (9) that [0,1). The larger the , the better the algorithm evolution; otherwise, it becomes worse. When k > 0 and k is a multiple of K, the degree of evolution of the algorithm is calculated. If (t is the threshold value), then the inertia weight is randomly selected from the inertia weight set W as the current inertia weight; otherwise, it is retained. Because the above inertia weights were randomly selected, the currently selected inertia weights performed worse than the previous inertia weights. This study reduced the negative impact of this situation by decreasing the number of iteration steps; that is, when , K is taken as K/2 (if K is an odd number, it is taken as (K + 1)/2); otherwise, K is the initial value. The improved PSO was used to optimize the penalty coefficient C and kernel parameter of SVR. The root mean square error (RMSE) of the syrup brix was taken as the fitness value. The optimization process is shown in Figure 3.2.3.3. Build Calculation Model
The dimensions and orders of magnitude of the resonance frequency, quality factor, and brix are different. If the model is directly constructed, then the characteristics with a large order of magnitude, such as the resonance frequency, will have a more obvious impact on the model, while those with a small order of magnitude, such as the quality factor, will have a small contribution to the model, leading to a lower prediction accuracy. Therefore, to obtain more accurate results, it is necessary to normalize the feature data to make different features comparable. In general, the data are normalized to the interval [−1, 1] using the Min–Max scaling method. The calculation formula is as follows:
(10)
where is the original data before normalization; and are the maximum and minimum values in the original dataset, respectively; and is the normalized original data.To display the predicted output data as the original brix value, the output data should also be reverse-normalized. The formula is as follows:
(11)
where is the brix value after reverse normalization; and are the maximum and minimum values of all the output values of the model, respectively; and is the output value of the model.The syrup brix calculation model based on the improved PSO–SVR model takes the measured resonant frequency and quality factor as the input variables, and the syrup brix as the output variable. The flowchart of the model is shown in Figure 4.
2.4. Calculation Model Evaluation Index
To evaluate the performance of the syrup brix calculation model, the evaluation criteria must be defined to improve the analysis of the results. Suppose there are n test samples, the actual value of the i-th test sample is , the measured value of the corresponding i-th test sample is , and the mean value of the test sample is . The mean absolute error (MAE), mean absolute percentage error (MAPE), RMSE, and determination coefficient () were selected as the evaluation indexes of the model performance [36]. The calculation formula is shown in Table 1. The smaller the MAE, MAPE, and RMSE, and the closer the is to 1, the better.
3. Results and Discussion
The partial experimental data collected in Section 2.1. are presented in Table 2. The 200 sets of resonance parameters measured were plotted as scatter plots, and the relationship curves between the resonant frequency (f) and syrup brix (), and between quality factor (Q) and , are shown in Figure 5. In the 200 groups of measured data with a brix range of 10.25–89.24 °Bx, f almost increases with the increase of , ranging from 2104.46–2177.50 MHz. There is no linear relationship between Q and , ranging from 72.22–148.86. Some statistical data of the three resonance parameters can be seen in Table 3.
3.1. Calculation of Syrup Brix Based on PSO–SVR Model
3.1.1. Improved SVR Model Training
The training set consists of 150 groups that were randomly selected from the 200 groups of normalized data, while the test set consists of the remaining 50 groups. Because the sample size is small, the 3:1 ratio is selected to divide the training set and test set, which can not only ensure the training effect, but also verify the measurement effect. The training set was primarily used to build the SVR model and optimize the model parameters. The test set was used to test the established model and verify its performance. The improved PSO was used to optimize the penalty coefficient C and kernel function parameter of SVR. Other parameters of SVR were set by default. The RMSE of the brix was selected as the fitness of the algorithm. The parameter settings of the improved PSO algorithm are listed in Table 4.
There are two input variables and one output variable in this model. To balance the convergence of the algorithm, take = = 1.5, which is the improved PSO with 300 iterations, other parameters are set based on experience and actual conditions.
The fitness curve of the PSO is shown in Figure 6. In order to compare the performance of the PSO, grid search (GS) was used to optimize SVR. Figure 7 shows the contour map for SVR parameter selection, and the optimized parameter results of these two methods are listed in Table 5. It can be seen from the results that although GS can take less time, the fitness RMSE is significantly greater than the PSO. The fitness RMSE of the PSO is low (0.74 °Bx), indicating its capabilities for strong optimization.
Using the optimized C and by PSO, the training set was used for model training in order to build the PSO–SVR model. The training results are shown in Figure 8.
3.1.2. PSO–SVR Model Test
To test the prediction performance of the PSO–SVR model after training, the resonant frequency and quality factor of 50 groups of data in the test set were input into the SVR and PSO–SVR models, respectively. The comparison between the predicted brix values of the model and the real values measured by the refractometer are shown in Figure 9 and Figure 10.
SVR model:
Figure 9Measurement results of syrup brix based on SVR in the independent test set. (a) Measurement results of brix; (b) Measurement errors of brix.
[Figure omitted. See PDF]
PSO–SVR model:
Figure 10Measurement results of syrup brix based on PSO–SVR in the independent test set. (a) Measurement results of brix; (b) Measurement errors of brix.
[Figure omitted. See PDF]
Table 6 shows the evaluation index values of the syrup brix calculation model based on the SVR and PSO–SVR models. To eliminate the errors caused by the algorithm and improve its accuracy, the algorithm was run 10 times. The average values are listed in Table 6. It can be seen that the MAE, MAPE, and RMSE of the modified syrup brix significantly decreased compared with previous values, and that the is closer to 1. This indicates that the syrup brix values predicted by the PSO–SVR model strongly agree with the brix values measured by the refractometer. Thus, the PSO–SVR model performs well in terms of prediction and generalization.
3.2. Comparison and Analysis of Measurement Results
To verify the performance of the syrup brix calculation model based on PSO–SVR, syrup brix calculation models based on the mixed dielectric law and on multiple regression were introduced for comparison.
A syrup is a mixture that consists of many components. Its complex dielectric constant is not only related to the complex dielectric constant of each component, but also to the proportion of each component. The dielectric constant of the mixture is generally described by the equivalent dielectric constant, which is a macroscopic reflection of the electric field of the mixed medium. The mixed dielectric law characterizes the relationship between the complex permittivity of the mixture and the complex permittivity and content of its components. Its mathematical expression is called the mixed dielectric model. Through theoretical derivation and data fitting, the syrup brix calculation model based on the mixed dielectric law is obtained as follows:
(12)
The measurement results using this model are shown in Figure 11.
Regression analysis is a statistical analysis method that approximates the relationship between variables. It selects the appropriate mathematical functions when the relationship between the independent variables and dependent variables is unknown, in order to minimize the overall deviation between the curve and the data of the independent variables. The selected functions are called regression equations. The resonant parameters measured by the resonant cavity sensor include two independent variables: the resonance frequency and the quality factor; hence, multiple regressions can be used to fit the relationship between the brix, resonance frequency, and quality factor. The brix of syrup is fitted with the resonant frequency f and quality factor Q using the binary quadratic polynomial. The calculation model of the syrup brix based on multiple regression can be obtained as follows:
(13)
The measurement results using this model are shown in Figure 12.
By testing the three calculation models with the experimental dataset, the evaluation indicators in Table 7 can be compared.
Table 7 shows that the three error evaluation indicators of the syrup brix calculation model based on the PSO–SVR model are lower than those of the mixed dielectric and multiple regression models. The is also the closest to 1; hence, it is the best syrup brix calculation model. There are two main causes of the large measurement error in the syrup brix calculation model based on the mixed dielectric law. The first is the error caused by simplification and approximation during the process of establishing the theoretical calculation model; this error is caused by the model itself. The second is the external interference encountered by the microwave signal during measurement, and the accuracy problems that exist in the measurement hardware; these are errors caused by the measurement method. The superposition of these two types of errors eventually leads to large measurement errors. The multiple regression and PSO–SVR models utilize the principle of nonlinear fitting to directly establish the relationship between the resonant frequency, quality factor, and syrup brix from a numerical point of view. They make full use of the information contained in the actual data and significantly reduce the errors caused by the model itself; thus, the measurement error is obviously smaller than that of the mixed dielectric model. In addition, the PSO–SVR model has a stronger numerical mapping ability than the multiple regression model because of the introduction of the kernel function; hence, the measurement effect improves.
3.3. Online Measurement of Simulated Syrup Brix
During sugar production, as the syrup flows into the sugar jar, the syrup is transformed from a Newtonian into a non-Newtonian fluid when the brix reaches the critical value. This changes the viscosity of the brix, which could cause a change in the resonance parameter with the change in the brix. Therefore, to verify the accuracy of the syrup brix calculation model based on the PSO–SVR model when it is used in practical applications, this study built an online platform for measuring syrup brix with fluidity, as shown in Figure 13. The platform consists of a water tank, propeller, motor, lifting platform, and resonant cavity measurement system. The resonant cavity measurement system consists of a resonant cavity, STM32F103 micro controller, microwave signal source, isolator, demodulator, and display unit. The working principle of it is shown in Figure 14. Substances other than syrups (e.g., water tanks and propellers) close to the opening of the resonant cavity can disrupt the electromagnetic field distribution, which affects the measurement accuracy. Therefore, the opening of the resonant cavity must be located at a certain distance from other non-measuring substances. Because the penetration depth of the microwave signal at 2.45 GHz in pure water is approximately 40 mm, while that in a sugar–water mixture is less than that in water [37], the opening of the resonator should be at least 40 mm away from other non-measuring substances. In the flowing state, the distribution of syrup is uniform and consistent with the actual production, so even if the temperature of syrup in the laboratory is different from the actual production (50–70 °C), the influence of temperature on the measurement can be ignored.
The standard syrup samples prepared with brix of 60, 65, 70, 75, 80, 85, and 90 °Bx were poured into the water tank for the experiments. The lifting platform was adjusted to immerse the open-end face of the sensor in the syrup, the motor was started to rotate the propeller and the syrup flowed at a uniform speed under the action of the propeller to simulate the actual sugar production process. To avoid measurement errors caused by uneven syrup, three measurements were made, and their average values were taken.
The evaluation index of the syrup brix online measurement is listed in Table 8.
A comparison of Table 6 and Table 8 shows that although the three error evaluation indexes in Table 8 are slightly larger than those in Table 6, and that the is slightly smaller than that in Table 6; however, the measurement evaluation indexes in both cases are very close. The MAE is less than 1 °Bx, indicating that the syrup brix calculation model based on the PSO–SVR model can be used for the online measurement of syrup brix in actual situations.
3.4. Discussion
According to the experimental results, it can be proven that the syrup brix measurement model based on the improved PSO–SVR model has a lower level of error and an that is closer to 1 compared with those based on the mixed dielectric law and multiple regression models. Thus, the performance of the proposed model is significantly better than that of the other two models. Since the training and test sets are randomly assigned during the experiment, this model can still be applied when the dataset is different. By comparing the results before and after SVR optimization, it can be seen that using the PSO algorithm to optimize C and can effectively improve the prediction capabilities of the model. Compared with other syrup brix measurement methods, the PSO–SVR calculation model proposed in this paper is helpful when aiming to quickly and accurately measure the syrup brix during the sugar production process; it thus contributes to improving the benefits of sugar factories.
However, several limitations still exist in this study. From the measurement results, it is clear that most models perform poorly at low brix levels, and that the measured value deviates greatly from the true value; even the predicted brix is negative in the mixed dielectric model. Since the input variables of the PSO–SVR model are resonant frequency and quality factor, the model relies on the use of the microwave method to measure the syrup brix. At the same time, the accuracy of the measurement hardware affects the measurement of the resonant frequency and quality factor, so it also affects the performance of this model. Meanwhile, although the performance of this model is excellent, some parameters are set according to experience. In addition, this model may has potential drawbacks; when the data set is large, the algorithm may take more time. SVR may scale poorly as the number of samples increases; when coupled with the evolutionary approach in order to optimize it, in other datasets, this methodology may be very computationally expensive.
Therefore, in future research, in addition to improving the accuracy of the syrup brix measurement sensor, our efforts will be focused on the further optimization of the model’s combination of parameters or on finding a more excellent model; this may lead to an increased measurement accuracy as, for example, combining PSO with GS might reduce the computation time while obtaining a good fitness value. At the same time, it is necessary to improve the accuracy of prediction under low brix levels.
4. Conclusions
In this study, a new model for measuring syrup brix was proposed. The syrup brix calculation model was established by SVR and optimized by PSO. The one-to-one mapping relationship between the resonance frequency, quality factor, and syrup brix was established. Syrup samples were prepared and used for training and testing. The results showed that the MAE, MAPE, and RMSE could reach 0.74 °Bx, 2.24%, and 0.90 °Bx, respectively, while the could reach 0.9985. The proposed PSO–SVR model is superior to other existing calculation models in its evaluation indexes. It has thus been proven that this model has high levels of accuracy and an excellent prediction performance, which can be used to predict the brix of syrup.
Conceptualization, S.H. and Y.M.; methodology, S.H.; software, Y.Z.; validation, Y.Z.; formal analysis, Y.M.; resources, Y.M.; data curation, S.H.; writing—original draft preparation, S.H.; writing—review and editing, Y.M.; project administration, Y.M.; funding acquisition, Y.M. All authors have read and agreed to the published version of the manuscript.
The data presented in this study are available on request from the corresponding author. The data are not publicly available since future studies are related to current data.
The first author would like to express his gratitude to the National Natural Science Foundation of China (Project No. 61763001), National Natural Science Foundation of China (Project No.12062001) and Natural Science Foundation of Guangxi Province (Project No.2021JJA110041) for supporting this research.
The authors declare no conflict of interest.
Footnotes
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.
Figure 1. Establishment of experimental platform. (a) Experimental setup; (b) Resonant cavity.
Figure 3. Flowchart of the improved PSO to optimize the parameters of the SVR model.
Figure 5. Relationship curves between f and [Forumla omitted. See PDF.], and between Q and [Forumla omitted. See PDF.]. (a) f and [Forumla omitted. See PDF.]; (b) Q and [Forumla omitted. See PDF.].
Figure 11. Measurement results of syrup brix based on mixed dielectric model in the independent test set. (a) Measurement results of brix; (b) Measurement errors of brix.
Figure 12. Measurement results of syrup brix based on multiple regression fitting in the independent test set. (a) Measurement results of brix; (b) Measurement errors of brix.
Performance evaluation index of model.
Evaluation Index | Calculation Formula | Evaluation Index | Calculation Formula |
---|---|---|---|
MAE |
|
RMSE |
|
MAPE |
|
|
|
Samples of experimental data.
Serial Number | f/MHz | Q |
|
Serial Number | f/MHz | Q |
|
---|---|---|---|---|---|---|---|
1 | 2104.44 | 147.13 | 10.25 | 11 | 2124.36 | 127.19 | 50.08 |
2 | 2106.84 | 146.04 | 13.47 | 12 | 2126.35 | 124.46 | 53.39 |
3 | 2104.71 | 148.86 | 17.65 | 13 | 2131.14 | 120.93 | 57.84 |
4 | 2107.09 | 142.71 | 21.19 | 14 | 2135.42 | 118.99 | 61.56 |
5 | 2106.58 | 141.72 | 25.86 | 15 | 2139.77 | 115.27 | 65.20 |
6 | 2109.44 | 145.51 | 29.50 | 16 | 2145.23 | 106.65 | 69.64 |
7 | 2112.15 | 141.11 | 33.80 | 17 | 2149.15 | 102.16 | 73.52 |
8 | 2114.74 | 141.50 | 37.73 | 18 | 2157.77 | 89.89 | 77.68 |
9 | 2116.00 | 135.71 | 41.35 | 19 | 2165.78 | 75.16 | 83.51 |
10 | 2118.10 | 132.89 | 45.41 | 20 | 2175.35 | 86.89 | 88.90 |
Relevant statistical data of three resonance parameters.
Resonance Parameters | Mean | Variance | Standard Deviation | Q1 | Q2 | Q3 | Q4 |
---|---|---|---|---|---|---|---|
f/MHz | 2128.97 | 461.91 | 21.49 | 2109.57 | 2123.26 | 2145.22 | 2177.50 |
Q | 122.19 | 541.57 | 23.27 | 107.62 | 129.39 | 141.99 | 148.86 |
49.77 | 534.89 | 23.13 | 29.70 | 50.08 | 69.87 | 89.24 |
Parameter settings of improved PSO algorithm.
Improved PSO Parameters | Set Value |
---|---|
C optimization range |
[0, 1024] |
Population size N | 20 |
Particle dimension D | 2 |
Maximum iterations k | 300 |
Acceleration coefficient |
1.5 |
Evolutionary steps K | 10 |
Parameter optimization result of SVR model.
Output of Model | Optimization Time/s | RMSE/°Bx | C |
|
|
---|---|---|---|---|---|
PSO | Syrup brix | 62.84 | 0.74 | 181.02 | 0.18 |
GS | Syrup brix | 14.98 | 4.87 | 111.43 | 0.25 |
Evaluation index of syrup brix measurement based on SVR and PSO–SVR.
Calculation Model | MAE/°Bx | MAPE/% | RMSE/°Bx |
|
---|---|---|---|---|
SVR | 3.11 | 6.87 | 5.12 | 0.9593 |
PSO–SVR | 0.74 | 2.24 | 0.90 | 0.9985 |
Measurement performance of syrup brix with different calculation models.
Calculation Model | MAE/°Bx | MAPE/% | RMSE/°Bx |
|
---|---|---|---|---|
Mixed dielectric model | 3.68 | 20.87 | 5.35 | 0.9674 |
Multiple regression model | 2.82 | 10.73 | 3.94 | 0.9824 |
PSO–SVR model | 0.74 | 2.24 | 0.90 | 0.9985 |
Evaluation index of syrup brix online measurement.
Output Variable | MAE/°Bx | MAPE/% | RMSE/°Bx |
|
---|---|---|---|---|
Syrup brix | 0.85 | 3.16 | 1.15 | 0.9969 |
References
1. Yang, J.; Zhang, J. Discussion on automatic control scheme of sugar crystallization section. China Mod. Educ. Equip.; 2008; 4, pp. 106-108.
2. Marzougui, K.; Hamzaoui, A.H.; Farah, K.; Nessib, N.B. Electrical conductivity study of gamma-irradiated table sugar for high-dose dosimetry. Radiat. Meas.; 2008; 7, pp. 1254-1257. [DOI: https://dx.doi.org/10.1016/j.radmeas.2008.05.009]
3. Li, Z.; Qin, G.; Mo, L. Automatic laser refractive indexing system for syrup concentration. J. South China Univ. Technol.; 1998; 3, pp. 110-115.
4. Dongare, M.L.; Buchade, M.N.; Awatade, M.N.; Shaligram, A.D. Mathematical modeling and simulation of refractive index based brix measurement system. Optik; 2014; 3, pp. 946-949. [DOI: https://dx.doi.org/10.1016/j.ijleo.2013.09.002]
5. Yang, Z.; Guan, A.; Yin, X. Application of automatic online detection technology of brix in sugar industry. Guangxi Sugar Ind.; 2015; 81, pp. 39-43.
6. Nunak, N.; Suesut, T.; Klongratog, B.; Mongkoltalong, P. In Line Osmotic Process Measurement of Concentration of Sugar Solution. Proceedings of the International Conference of Engineering, Applied Science and Technology (ICEAST 2012); Bangkok, Thailand, 21–24 November 2012.
7. Huang, S.; Qin, J.; Ye, Q.; Qin, H.; Xu, N.; Chen, J. Research on online automatic measuring system of brix in sugar cane factory. Sugarcane Ind.; 2018; 4, pp. 29-33.
8. Blakey, R.T.; Morales-Partera, A.M. Microwave dielectric spectroscopy—A versatile methodology for online, non-destructive food analysis, monitoring and process control. Eng. Agric. Environ. Food; 2016; 9, pp. 264-273. [DOI: https://dx.doi.org/10.1016/j.eaef.2016.02.001]
9. Hosseini, N.; Baghelani, M. Selective real-time non-contact multi-variable water-alcohol-sugar concentration analysis during fermentation process using microwave split-ring resonator based sensor. Sens. Actuators A Phys.; 2021; 325, 112695. [DOI: https://dx.doi.org/10.1016/j.sna.2021.112695]
10. Liu, H.; Hu, S.; Meng, Y.; Chen, J.; Li, Z.; Li, J.; Zhang, Y. Online measurement of syrup brix with microwave open coaxial resonator sensor. J. Food Eng.; 2022; 322, 110975. [DOI: https://dx.doi.org/10.1016/j.jfoodeng.2022.110975]
11. Liu, H.; Mai, Y.; Zhou, D. The practice of microwave technology in the final effect hammer measurement of evaporation. Guangxi Sugar Ind.; 2015; 1, pp. 16-19.
12. Meng, M.; Meng, X. Effect of temperature and frequency on dielectric model of cement concrete. Bull. Chin. Ceram.; 2018; 37, pp. 1758-1764.
13. Cortes, C.; Vapnik, V. Support-Vector Networks. Mach. Learn.; 1995; 20, pp. 273-297. [DOI: https://dx.doi.org/10.1007/BF00994018]
14. Drucker, H.; Burges, C.J.; Kaufman, L.; Smola, A.; Vapnik, V. Support vector regression machines. Adv. Neural Inf. Process. Syst.; 1996; 9, [DOI: https://dx.doi.org/10.1145/238218.238230]
15. Zhang, X.; Tang, X.; Zhu, X.; Gao, X.; Chen, X.; Chen, X. A regression-based framework for quantitative assessment of muscle spasticity using combined EMG and inertial data from wearable sensors. Front. Neurosci.; 2019; 13, 398. [DOI: https://dx.doi.org/10.3389/fnins.2019.00398] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/31130834]
16. Castro-Neto, M.; Jeong, Y.; Jeong, M.; Han, L.D. Online-SVR for short-term traffic flow prediction under typical and atypical traffic conditions. Expert Syst. Appl.; 2009; 3, pp. 6164-6173. [DOI: https://dx.doi.org/10.1016/j.eswa.2008.07.069]
17. Liang, H.; Zou, J.; Li, Z.; Khan, M.J.; Lu, Y. Dynamic evaluation of drilling leakage risk based on fuzzy theory and PSO-SVR algorithm. Future Gener. Comput. Syst.; 2019; 95, pp. 454-466. [DOI: https://dx.doi.org/10.1016/j.future.2018.12.068]
18. Quan, Q.; Hao, Z.; Xifeng, H.; Jingchun, L. Research on water temperature prediction based on improved support vector regression. Neural Comput. Appl.; 2022; 34, pp. 1-10. [DOI: https://dx.doi.org/10.1007/s00521-020-04836-4]
19. Benkedjouh, T.; Medjaher, K.; Zerhouni, N.; Rechak, S. Health assessment and life prediction of cutting tools based on support vector regression. J. Intell. Manuf.; 2015; 26, pp. 213-223. [DOI: https://dx.doi.org/10.1007/s10845-013-0774-6]
20. Paniagua-Tineo, A.; Salcedo-Sanz, S.; Casanova-Mateo, C.; Ortiz-García, E.G.; Cony, M.A.; Hernández-Martín, E. Prediction of daily maximum temperature using a support vector regression algorithm. Renew. Energy; 2011; 36, pp. 3054-3060. [DOI: https://dx.doi.org/10.1016/j.renene.2011.03.030]
21. Li, Z.; Gao, L.; Lu, W.; Wang, D.; Xie, C.; Cao, H. Estimation of Knee Joint Extension Force Using Mechanomyography Based on IGWO-SVR Algorithm. Electronics; 2021; 10, 2972. [DOI: https://dx.doi.org/10.3390/electronics10232972]
22. Yu, L.; Shi, F.; Wang, H.; Hu, F. MATLAB Intelligent Algorithm Analysis of 30 Cases; Beihang University Press: Beijing, China, 2011.
23. Li, L.; Wang, M.; Zhao, H.; Wang, T.; Zhao, R. Displacement prediction of Baishuihe landslide based on CEEMDAN-BA-SVR-Adaboost model. J. Yangtze River Sci. Res. Inst.; 2021; 38, pp. 52–59+66.
24. Deng, W. Research and Application of Multi-Model Soft Sensing Modeling Method. Mater Thesis; Jiangnan University: Wuxi, China, 2012.
25. Kennedy, J.; Eberhart, R. Particle swarm optimization. Proceedings of the ICNN’95-International Conference on Neural Networks; Perth, Australia, 27 November–1 December 1995; Volume 4, pp. 1942-1948.
26. Yildiz, A.R.; Solanki, K.N. Multi-objective optimization of vehicle crashworthiness using a new particle swarm based approach. Int. J. Adv. Manuf. Technol.; 2012; 59, pp. 367-376. [DOI: https://dx.doi.org/10.1007/s00170-011-3496-y]
27. Yang, J.; Si, H. Inversion study of fault regional stress field based on PSO-SVR model. Min. Res. Dev.; 2022; 42, pp. 173-179.
28. Khan, H.; Nizami, I.F.; Qaisar, S.M.; Waqar, A.; Krichen, M.; Almaktoom, A.T. Analyzing optimal battery sizing in microgrids based on the feature selection and machine learning approaches. Energies; 2022; 15, 7865. [DOI: https://dx.doi.org/10.3390/en15217865]
29. Eseye, A.T.; Zhang, J.; Zheng, D. Short-term photovoltaic solar power forecasting using a hybrid Wavelet-PSO-SVM model based on SCADA and Meteorological information. Renew. Energy; 2018; 118, pp. 357-367. [DOI: https://dx.doi.org/10.1016/j.renene.2017.11.011]
30. Chen, G.; Huang, X.; Jia, J.; Min, Z. Natural Exponential Inertia Weight Strategy in Particle Swarm Optimization. Proceedings of the World Congress on Intelligent Control & Automation; Dalian, China, 21–23 June 2006.
31. Lei, K.; Qiu, Y.; He, Y. A new adaptive well-chosen inertia weight strategy to automatically harmonize global and local search ability in particle swarm optimization. Proceedings of the International Symposium on Systems & Control in Aerospace & Astronautics; Harbin, China, 19–21 January 2006.
32. Feng, Y.; Teng, G.; Wang, A.; Yao, Y. Chaotic Inertia Weight in Particle Swarm Optimization. Proceedings of the International Conference on Innovative Computing; Kumamoto, Japan, 5–7 September 2007.
33. Nickabadi, A.; Ebadzadeh, M.; Safabakhsh, R. A novel particle swarm optimization algorithm with adaptive inertia weight. Appl. Soft Comput.; 2011; 11, pp. 3658-3670. [DOI: https://dx.doi.org/10.1016/j.asoc.2011.01.037]
34. Adewumi, A.O.; Arasomwan, A.M. An improved particle swarm optimiser based on swarm success rate for global optimisation problems. J. Exp. Theor. Artif. Intell.; 2014; 28, pp. 441-483. [DOI: https://dx.doi.org/10.1080/0952813X.2014.971444]
35. Yang, B.; Qian, W. Adaptive Particle swarm optimization algorithm with multiple inertia weights. J. Bohai Univ. (Nat. Sci. Ed.); 2021; 42, pp. 41–48+90.
36. Weisberg, S. Applied Linear Regression; John Wiley & Sons: Hoboken, NJ, USA, 2005.
37. Li, Z.; Meng, Z.; Haigh, A.; Wang, P.; Gibson, A. Characterisation of water in honey using a microwave cylindrical cavity resonator sensor. J. Food Eng.; 2021; 292, 110373. [DOI: https://dx.doi.org/10.1016/j.jfoodeng.2020.110373]
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Abstract
The brix of syrup is an important parameter in sugar production. To accurately measure syrup brix, a novel measurement method based on support vector regression (SVR) is presented. With the resonant frequency and quality factor as inputs and syrup brix as the output, a mathematical model of the relationship between the resonant frequency, quality factor, and syrup brix is established. Simultaneously, the particle swarm optimization (PSO) algorithm is used to optimize the penalty coefficient and radial basis kernel function of SVR to improve the performance of the model. The calculation model is trained and tested using the collected experimental data. The results show that the mean absolute error, mean absolute percentage error, and root mean square error of the syrup brix calculation model based on the improved SVR model can reach 0.74 °Bx, 2.24%, and 0.90 °Bx, respectively, while the determination coefficient can reach 0.9985. The simulation of the online measurement of syrup brix in the actual production process proves the excellent prediction performance of the syrup brix calculation model based on the improved PSO–SVR model, which can thus be used to predict the syrup brix.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer