Abstract
Milling force prediction is one of the most important ways to improve the quality of products and stability in robot stone machining. In this paper, support vector machines (SVMs) are introduced to model the milling force of white marble, and the model parameters in the SVMs are optimized by the improved quantum-behaved particle swarm optimization (IQPSO) algorithm. A set of online inspection data from stone-machining robotic manipulators is adopted to train and test the model. The overall performance of the model is evaluated based on the decision coefficient (R2), mean absolute percentage error (MAPE) and root mean square error (RMSE), and the results obtained by IQPSO-SVM are superior to those of the PSO-SVM model. On this basis, the relationship between the milling force of white marble and various machining parameters is explored to obtain optimal machining parameters. The proposed model provides a tool for the adjustment of machining parameters to ensure stable machining quality. This approach is a new method and concept for milling force control and optimization research in the robotic stone milling process.
Keywords
Introduction
Because of their clear and crisp color and fine texture, white marble products are the highest value-added stone products among all three-dimensional carved stones. The application of industrial robots for the three-dimensional carving of white marble can make up for the shortcomings of traditional numerical control machining, such as the small working range, the inability to machine large and extremely large sculptures, and poor machining posture; thus, robots are the projected development direction in machining and three-dimensional stone carving [1]. Additionally, diamond cutting tools have been widely used in the field of white marble machining because of their long tool life and strong wear resistance [2]. However, due to the low stiffness of the robot structure and the hard brittle and natural crystal defects in white marble, the rock can easily break under a strong transient milling force (as shown in Fig. 1) [3]. Therefore, it is important to construct a prediction model of the milling force for white marble and establish the relationships between machining parameters and the milling force to guide the adjustment of machining parameters; the results provide an important reference for ensuring the stability of white marble carving with robots. It is difficult to precisely control the milling force of white marble due to the use of sophisticated equipment and complex control systems, as well as the extremely harsh working conditions; moreover, common prediction models of the milling force based on traditional mathematics cannot solve problems related to the strong coupling and nonlinearity among parameters. Therefore, the accuracy of milling force predictions for white marble is difficult to improve.

Breakage of white marble caused by an excessive milling force.
With the development of intelligent technology, many scholars have begun to introduce artificial neural network (ANN) methods into milling force models of the machining process [4, 5]. A prediction model for the milling force of a ball-end milling cutter was established by Zuperl using an ANN, and the prediction accuracy of the model reached 98% [6]. Hanafi et al. introduced an ANN method for the milling force prediction of TiC-coated tools in the process of milling PEEK CF30 material [7]. A prediction model of the milling force of Inconel 718 materials was established by Pawade based on grey relational analysis, and the effects of milling parameters on milling force output were explored [8]. Ratchev et al. established a neural network prediction model based on a genetic algorithm for complex thin-walled parts, and the error was less than 5% [9]. Cus et al. established a prediction mod el for white marble based on the use of TiC-coated tools considering the effects of the cutting speed, milling depth, tool geometry and material properties on the milling force [10]. Although ANNs have been widely used in the prediction of the milling force, they have problems such as a slow convergence speed and a long training time, and they often converge to a local optimal solution. In addition, ANNs adopt a training method of empirical risk minimization, which also limits the generalization ability of most networks [11, 12]. Research on artificial intelligence algorithms applied in milling force prediction for machine white marble has not been reported.
An SVM is a supervised machine learning model that is constructed based on the structural risk minimization criterion. Notably, compared with neural networks, SVMs can reduce the probability of overfitting based on an empirical risk minimization criterion, and the insensitive region in the structure can absorb the small-scale random fluctuations in a random response; thus, SVMs can be effectively applied in milling process prediction [13–15]. The performance of an SVM model depends on the construction of the kernel function, and the selection of the parameters in the kernel function is the main problem in SVM applications. Generally, parameter selection methods can be divided into two categories. The first category includes grid search methods. In these methods, the step size for parameter change is set first, and each pair of parameter combinations is assessed to establish judgement function values; the whole parameter set space is searched, and the optimal value of the judgement function is retained [16]. This method can is most effective in cases with few parameters, but in practice, the calculation process is generally complex and time consuming. The other category of selection methods includes intelligent searching optimization algorithms such as the ant colony search (ACS) algorithm [17], genetic algorithm (GA) [18], and particle swarm optimization (PSO) algorithm [19]. The unique advantages and mechanisms of these algorithms have attracted the attention of the widespread attention of scholars [20–22]. Notably, PSO is widely used in SVM parameter optimization because of its simple concept and fast convergence [23–25].
This paper proposes a method for establishing a milling force model for the robot machining of white marble based on the IQPSO-SVM method. This approach overcomes the limitations of previous models for the modeling and optimization of the stone milling force based on actual data. Moreover, in practical problems, we use the IQPSO algorithm to optimize the parameters of the SVM, which improves the effectiveness of the SVM and reduces the control parameters of the traditional PSO algorithm. The core objective is to collect online data from the production process and then use it in practical production tasks after processing. The proposed model has the advantages of high pertinence and reliability.
This paper is organized as follows. In Section 2, the traditional model of the milling force of white marble is given, and the collection and processing of experimental data are briefly described. Section 3 describes the SVM theory. Section 4 introduces the basic PSO algorithm, and the SVM parameter optimization strategy based on IQPSO is proposed. In Section 5, the experimental results are analyzed and discussed, and compared with the PSO-SVM model, the superiority and accuracy of IQPSO-SVM are validated. In Section 6, the effects of machining parameters on the milling force modeling of white marble are determined. The conclusions are presented in Section
Definition of the milling force of white marble
In the process of machining white marble, diamond milling cutters are used in a continuous grinding process. In addition to being subjected to the torsional force of the spindle, the diamond milling cutter is also subjected to the reaction force of white marble in the contact arc area, and the force will directly affect the service life of the milling cutter, the cutting performance of the diamond bit, the control characteristics of the matrix and the consumed power of the motor. These factors affect the machining quality and cost, which are extremely important to manufacturers. The force applied to white marble by a diamond milling cutter is distributed in the milling contact arc region. In this paper, the resultant force F∑s is decomposed into a tangential milling force Fx, a radial milling force Fy and an axial milling force Fz (as shown in Fig. 2). It is assumed that the diamond particles are uniformly and continuously distributed on the arc surface of the milling cutter. The resultant force is decomposed in the x, y and z directions as follows:
where
In this case, β is the angle between the normal force and resultant force of a single diamond particle, θ is the angle of the circular direction movement of the dynamic diamond particles along the contact arc of the tool, a p is the axial cutting depth in the z direction, a w is the radial cutting width in the y direction, and l s is the contact length.
For the milling of white marble with a diamond cutter, the theoretical formula
for calculating the milling force is given based on the method in [26], which is shown as follows:
where v f is relative feed rate of the milling cutter, v s is the circular velocity of milling cutter, k t is a constant, n d is the dynamic effective grain number, λ is the milling force ratio, ξ is the cutting section coefficient, α is the coefficient of the average milling force, and d s is the diameter of the cutter. Formula (3) indicates that most of the parameters in the theoretical formula of the milling force are related to the material properties of machined white marble and the cutter, which are nonlinear and difficult to confirm. It is difficult to predict the milling force for white marble with this formula in practice, so it is limited in practical applications. Notably, the parameters of the cutter when machining are important factors that can affect the milling force. The main goal of milling force prediction in white marble machining is to guide the optimization of machining parameters and improve the machining efficiency of cutters.
A stone-carving robotic manipulator from a Stone Carving Company, which is located in Fujian Province, China, was used to collect experimental data and establish the prediction model of the stone milling force in this paper. We selected white marble as the studied stone, and the main components of white marble are quartz, feldspar and mica. White marble has a hard surface, so it is difficult to machine. The material removal rate must be high to quickly remove materials and maintain the profile of the model. Therefore, the machining process often produces a large milling force, which leads to tool wear and fractured products. There are two kinds of cutters used in white marble machining: diamond tools and carbide tools. White marble has high hardness and is difficult to machine, so diamond tools are most commonly used in white marble machining because of their high hardness and wear resistance. We selected an electroplated diamond wheel with 8 sections in this experiment. The tool parameters were as follows: the diameter was 50 mm, the height was 20 mm, the particle diameter was 465–561μm and the density was 271 particles/m3. The milling force date acquisition experiment was performed with stone-carving robotic manipulators, as shown in Fig. 2. The force measurement system consisted of a dynamometer, a signal amplifier, a data acquisition system and a computer. The basic principle is that the force signal in three directions (x, y and z) is measured by a dynamometer, transformed into an electrical signal, amplified by an amplifier and sent to a data acquisition system. Finally, a computer processes the data and obtains specific values. The experiment used a Kistler 9255B dynamometer, 5080 signal amplifier and DEWE high-speed data acquisition system, and the measuring process is shown in Fig. 3. The force acting on the workpiece during machining can be decomposed into forces in the x-axis, y-axis and z-axis directions. The tool feed direction along the positive y-axis is defined as Fx, the tool radial cutting direction along the positive x-axis is defined as Fy, and the force along the positive z-axis is defined as Fz.

Force diagram for a milled stone.

Test system for measuring the milling force of white marble and the tools used.
The technological parameters of white marble milling include the spindle speed n, feed speed f, cutting depth a p and cutting width a w . The section range of parameters is determined by combining existing equipment conditions with existing experience. The preliminary technological parameter ranges according to existing equipment conditions are as follows: the spindle speed n is 6000∼8000 r/min, the feed speed f is 4000∼6000 mm/min, the cutting depth a p is 40% ∼50% of the cutter diameter, and the cutting width a w is 1∼2 mm. Specific machining parameter values and the milling force measurement results are shown in Tables 1 and 2. There are 54 groups of milling force values based on different combinations of machining parameters, and we select the first 40 groups as the training set for the prediction model and the remaining 14 groups as the test set for the prediction model.
Factors and level of experimental parameters for white marble milling
Measurement results for the milling force of white marble
The training sample set and test sample set of the model fluctuate in different
dimensions, as shown in Tables 1 and 2. To avoid model errors caused by data differences in different
dimensions, it is necessary to rescale the data sets at certain intervals. The
normalized mapping method was applied based on the following formula:
Support vector regression theory
In view of the complexity and stochastic volatility of the milling process and
the high cost of obtaining experimental data, we used an SVM method, which has
distinct advantages in dealing with a small sample size and nonlinear relations,
to construct the milling force prediction model for white marble. In white
marble processing, the input variables
x
i
= [vf,i,vs,i,ap,i,aw,i]
and the output variables
F
i
= [Fx,i,Fy,i,Fz,i]
of each set of experiments form the sample space
{(x
i
,F
i
),i = 1,2,3, ...
,n}. ɛ-support vector regression
(ɛ-SVR) is commonly used to solve regression problems. In
ɛ-SVR, the deviation between the output
f
F
(x)
of the regression prediction and the real output
F
i
must be less than
ɛ, and a range with a width of 2ɛ is
established at the center of f
F
(x). A result is considered satisfactory if it falls within
this range. f
F
(x)
can be expressed as a nonlinear function, as shown in formula (5):
We introduce relaxation factors
ξ
i
⩾ 0 and
The Lagrange equation is established by introducing Lagrange multipliers as follows:
After eliminating ω,b,ξ,
ξ*,η and
η*, duality theory can be used to solve the SVR
problem by converting it to a quadratic programming problem. By substituting
formula (10) into the Lagrange equation, we obtain the following formula:
The above process satisfies the Karush-Kuhn-Tucker (KKT) conditions:
Formula (11) can be solved to obtain the regression function of
ɛ-SVR as follows:
The parameter σ in the RBF kernel function and penalty factor C effect the prediction performance of the model in practical problems such as milling force prediction for white marble with an SVM. The penalty factor C is the degree of punishment for the training model for incorrectly allocating samples, and it is used to adjust the experience risk and confidence interval of the learning model to ensure that the training model has high generalization ability. A small penalty factor C reflects a small punishment degree for empirical errors in milling force prediction for white marble; a learning machine may be easier to use, but the empirical risk increases. The empirical risk and generalization ability of the trained model will be stable in the state of overlearning when the penalty factor C is large.
The change in σ in the RBF kernel function is actually an implicit change in the mapping function that affects the magnitude of structural risk after the mapping function changes. σ controls the effect of regression fitting with the SVM and influences the number of SVMs that should be used and the generalization ability of the training model. The larger σ is, the smaller the number of SVMs in the model and lower the accuracy of the regression prediction. The smaller σ is, the higher the accuracy of regression prediction, but the generalization ability of the model may be poor when many SVMs are used. Thus, for each specific problem, optimal values of the penalty factor C and parameter σ must be determined to ensure that the model has satisfactory generalization ability and high prediction accuracy. The PSO algorithm is an efficient global optimization algorithm that can effectively select the best combination of internal parameters for an SVM model and improve the prediction accuracy and generalization ability of the model. The traditional PSO algorithm and IQPSO algorithm are used to optimize the penalty factor C and parameter σ and obtain satisfactory parameters for the SVMs.
Optimization of SVR with IQPSO
Basic PSO algorithm
Eberhart and Kennedy proposed the initial PSO algorithm, which involved particle movement in the solution space toward the optimal solution; the intelligence and social properties of the model ensure that particles land at the optimal solution without landing elsewhere. The PSO algorithm assumes that the possible solution of the problem is a point in the n-dimensional search space, and “particles” are used to search this space. Particles fly in the search space at a certain speed and dynamically adjust their flight according to their own flight experience and the experiences of other particles. Each particle uses their current position, their current speed, the distance between their current position and that of the best particle, and the distance between their current position and that of the global best particle to change their course. Optimizing the search process is an iterative procedure in which a group of randomly initialized particles evolve and share information in the population.
The basic objective of the PSO algorithm is to accelerate each particle to the
best position. The starting positions and velocities of the particles are
randomly set in the solution space. The algorithm will record the best position
and corresponding fitness function values of each single particle and the group
of particles. The specific mathematical description is as follows. Assuming that
the search space for particles is n-dimensional, the whole particle swarm
includes N particles, and the position of particle
i is
X
i
= [x
i
1,xi2,x
i
3, ...
,x
iN
]T;
additionally, the velocity of particle i is
V
i
= [v
i
1,v
i
2,v
i
3, ...
,v
i
N]T.
The individual extremum of particle i is
P
i
= [p
i
1,p
i
2,p
i
3, ...
,p
i
N]T,
and the global extremum of the group is
P
g
= [p
g
1,p
g
2,p
g
3, ...
,p
gN
]T.
When a particle finds the best individual or global position, it can update its
velocity and position information according to formula (15) and formula (16).
The parameters used in PSO
In the traditional PSO algorithm, each iteration uses only the global and individual optimal information without fully using the information obtained in the calculation process, which can easily lead to a slow convergence speed and low search accuracy [29, 30]. The QPSO algorithm subverts the regeneration method of the traditional particle swarm algorithm, requires fewer parameters than the PSO algorithm, and has a stronger global search ability than the standard PSO algorithm [31, 32]. This paper improves the updating formula of the only contraction-expansion factor that needs to be adjusted in the QPSO algorithm and introduces the differential evolution operator. Combining the two methods gives a self-improved quantum particle swarm optimization (IQPSO) algorithm and improves the updating formula of the contraction-expansion coefficient according to the different demands of the algorithm for the contraction-expansion factor in the early and late calculation stages. Moreover, the differential evolution operation is added to the search group with a certain probability in the particle search process, thus increasing the randomness of the particles and reducing the probability of the particles falling to a local optimum to improve the global search ability of the algorithm.
In the QPSO algorithm, the particle swarm is updated and evolves according to the
following formula:
The selection of the contraction-expansion coefficient α has a
large influence on the convergence speed and accuracy of the QPSO algorithm. A
small α is beneficial to local searching, but the algorithm
converges slowly; a large α is beneficial to global searching,
and the algorithm converges quickly, but accurate solutions are difficult to
obtain. Conventional calculation formulas for α are
monotonically decreasing linear functions (as shown in formula (20)), and with
these formulas, it is difficult to meet the demands for flexible and dynamic
changes the in contraction-expansion factors.
The particle aggregation degree k(t) indicates
the degree to which particles aggregate at a specific location or at several
specific locations, which can effectively reflect the iterative period of the
algorithm. k(t) is regarded as an important
basis for the dynamic adjust of α in this paper, and the
specific formula is:
On the basis of the particle aggregation degree
k(t), the formula for the
contraction-expansion coefficient
α
IQ
in
the IQPSO algorithm is:
Formula (17) and formula (19) can be used to obtain:
Formula (23) shows that when the current position X id of a particle, the individual optimal position P id and the global optimal position P gd are very close in the search process, the first term (P id -P gd ) in the above formula will cause the updating formula to fail, lead to the loss of the diversity in the particle swarm and increase the probability of the group falling to a local optimal position.
The differential evolution operator
λ
jk
between particle j and particle k can be
obtained by randomly selecting two particles at different positions for any
particle i in the current particle swarm. The corresponding
formula is shown as follows:
By substituting formula (24) into formula (23) and adding a random number between 0 and 1 to increase randomness, the evolutionary process of the IQPSO algorithm is obtained as follows:
Formula (25) shows that the introduction of the differential evolution operator λ will avoid a reduction in diversity in the group and trapping at local optima, and the improved contraction-expansion coefficient α IQ strengthens the search performance of the algorithm in iterative calculations in each period.
The standard PSO algorithm, the standard QPSO algorithm and the IQPSO algorithm are used to compare the minimum values obtained with four commonly used test functions. The test function is shown in Table 4, and the minimum value of the test function is zero. The test data dimension is set to 20 and 40, and the number of iterations is 2000 and 4000. The average value (F avg ) and standard deviation (F SD ) of each the simulations of each algorithm are shown in Table 5.
Benchmark functions and settings
Numerical comparison of the test functions
Table 5 indicates that the IQPSO algorithm yields the smallest value for all test functions. The IQPSO algorithm has better local search accuracy than the standard QPSO algorithm and PSO algorithm for the Schwefel function, which suggests that the improved algorithm can effectively promote local convergence. For the Gramacy function, IQPSO yields a better objective function value than do the other algorithms, and the standard deviation is smaller, which reflects the superior global search ability and global convergence ability of the proposed method.
The SVM prediction model for parameter optimization includes three parts: range
determination for the optimization parameters, the selection of a fitness
function and algorithm implementation. First, the search ranges of parameters
are determined, and the effective search space is defined to reduce the search
time. We obtain the estimated value of C based on the target
value expression. Then, by taking the calculated value of C and
50% of the average value of the target variable to establish a normal
distribution of values, two points on both sides of the estimated value
C are selected to determine the range of
C, as shown in formula (26). The specific expression of the
search range of parameter σ is shown in formula (27) [33].
Second, because the SVM can reduce the generalization error of the model, this
paper selects the mean square error (MSE) as the fitness function; that is, the
MSE of the model output is minimized as the target of optimizing
C and σ, as shown in formula (28).
Finally, 50 sets of training sets are used to train the IQPSO-SVM model, and the optimal combination of C and σ values that satisfy the fitness function (minimum MSE) is iteratively obtained. The optimization is complete when the predefined maximum number of iterations is exceeded. The process of searching for the best intrinsic parameters is shown in Fig. 4.

Flow chart for optimizing the SVM parameters (C, σ) by IQPSO.
Step 1. Set the parameters of the IQPSO algorithm, such as the particle group size, number of iteration cycles and sample dimension, to initialize the particle group. The initial fitness is used to evaluate the quality of each particle in the particle group and to update the position and velocity of the current particle.
Step 2. Set the contraction-expansion coefficient α IQ , initialize NU∈(0,1), and update the average neutral position of the particles in the group according to formula (18).
Step 3. Randomly select a numerical value φ between 0 and 1 to confirm whether φ is less than NU. If φ is less than NU, update the particle position according to formula (17) and formula (19); otherwise, update the particle position according to formula (25).
Step 4. Calculate the fitness variance of the group according to formula (28) to determine whether the MSE is less than a given threshold F; if so, a differential evolution operator is introduced to update the particle group according to formula (25). Then, the process returns to Step 1.
Step 5. Export the individual fitness value and optimal position of the particle, extract the optimal parameters (C, σ) of the SVM after the iterative operation, and build the SVM algorithm based on IQPSO.
Step 6. During the early preprocessing of data samples, the correlation function of the SVM is used to normalize the selected samples and convert them to real numbers between 0 and 1.
Step 7. Use the SVM algorithm to determine the intrusion behavior of the training data sample set, which is selected in the beginning of the process, and statistically analyze the data for samples in the network based on the IQPSO-SVM model established by training. Finally, the forecasting results are output by the model. normalize the selected samples and convert them to real numbers between 0 and 1.
Performance criteria
A performance index can reflect the quality of a model and the fitting degree
between the output of the model and actual measured values. In this paper, we
use MSE, MAPE and R2 as the indexes to evaluate the predictive
performance of the model. The smaller the prediction error of the evaluation
data is based on the MSE, the better the result; the MSE is expressed as shown
in formula (28). The MAPE (shown in formula (29)) is a measure of predictive
accuracy in the field of statistics; it is a relative value that can measure the
prediction effect of multiple different models based on the same data. The
smaller the MAPE is, the higher the prediction accuracy of the model is. The
model result is perfect when the MAPE is 0% and extremely poor when the MAPE is
greater than 100%. R2 is the ratio of the sum of the squared
regression values at observation points to the sum of squares from multiple
regression, as shown in formula (30). This statistic measures the fitting degree
for a multiple regression equation and reflects the ratio of the result
explained by the estimated regression equation in the variation of dependent
variable y. Generally, the closer R2 is to 1, the greater the ratio
of the sum of the regression squares of the observation points to the sum of the
total squares. The closer the regression line is to each observation point, the
better the fitting degree of the observation point regression. Thus, the better
the interpretation of the dependent variables is based on the independent
variables in the regression analysis, the better the prediction effect of the
model.
The analysis in Section 3.2 indicates that the C and σ values have an important influence on the prediction accuracy of the model when the support vector machine method is used to establish the prediction model of the milling force for white marble. With a focus on the effects of C and σ on the model prediction accuracy, based on the experimental data obtained in Section 2.3, a grid search method with three cross-validation steps is used to plot the variation in the performance index MSE when C and σ change, as shown in Fig. 5. Figure 5 shows that multiple combinations of C and σ can minimize the MSE. Compared with the grid search algorithm, the particle swarm algorithm does not have to traverse all the points in the grid, and it can find the global optimal solution; thus, it is simple and saves time. Therefore, in this paper, we use the QPSO algorithm and IQPSO algorithm to search for the optimal combination of (C, σ), and the search results are shown in Table 6.

Model prediction error with (C, σ) changes: (a) Fx ; (b) Fy; and (c) Fz.
The best C and σ values from the prediction model
A prediction model of the milling force for white marble based on QPSO-SVM and IQPSO-SVM is established, and the fitting degree of the two models is qualitatively analyzed by linear fitting regression analysis of the predicted and actual values. The closer the fitting curve is to the optimal curve y = x, the smaller the discrete degree of scatter and the better the regression effect or prediction effect is. We use the F value to evaluate this result. A test (variance analysis) for F in the prediction model is used to determine whether the parameters in the model are suitable for estimation with data in a given range outside the training set and test set. Calculate the F value and the probability P (F > Fa) value, where P > 0.1 indicates that the model factor has little influence on the model output and P < 0.05 indicates that the model factor has a significant influence on the output. F is verified by testing to determine whether the model is considered effective. The F values of different models based on the same data will vary. If F values are all qualified by testing, the larger F is, the closer the corresponding model is to the ideal model, that is, the smaller the gap between the fitting curve and the optimal y = x curve is. QPSO-SVM and IQPSO-SVM are used to analyze the predicted and actual values based on the training set and test set; the fitting results are shown in Figs. 6 and 7, and the F and P test results are shown in Table 7.

Linear fitting analysis of force F of white marble milling based on QPSO-SVM: (a) Fx ; (b) Fy; and (c) Fz.

Linear fitting analysis of the force F of marble milling based on IQPSO-SVM: (a) Fx ; (b) Fy; and (c) Fz.
F and P test results for the IQPSO-SVM model and QPSO-SVM model
According to the above linear fitting and test results, both QPSO-SVM and IQPSO-SVM are effective in predicting the milling force Fx of white marble. However, by comparing the F values in the table, we can find that the F values of the training set and the test set based on the IQPSO-SVM model are larger than the F values of the QPSO-SVM model; in other words, the regression effect and prediction effect of the IQPSO-SVM model are better than those of the QPSO-SVM model. For Fy and Fz, the same conclusion can be clearly obtained by comparing the QPSO-SVM model fitting analysis diagram and the IQPSO-SVM model fitting analysis diagram. The regression and prediction results are generally similar, which indicates that the IQPSO-SVM model has satisfactory generalization ability.
Second, the prediction model of the milling force for white marble was assessed based on the QPSO-SVM and IQPSO-SVM algorithms. The prediction curves of Fx, Fy and Fz obtained by the two models are shown in Fig. 8, and the prediction result for each prediction model and corresponding relative error are shown in Table 8.

Model prediction curve and actual curve for QPSO-SVM and IQPSO-SVM: (a) Fx; (b) Fy; and (c) Fz.
Prediction result for each prediction model and the corresponding relative error for Fx
Prediction result for each prediction model and the corresponding relative error for Fy
Prediction result for each prediction model and the corresponding relative error for Fz
The prediction results in Table 8 show that the relative error of the three directional forces is generally below 10% based on the IQPSO-SVM model. The maximum relative error of Fx is 11.77%, and the minimum relative error is 0.16%; the maximum relative error of Fy is 8.60%, and the minimum relative error is 0.96%; and the maximum relative error of Fz is 5.31%, and the minimum relative error is 0.43%. According to the error comparison in the above table, the maximum prediction error for Fx, Fy, and Fz based on the QPSO-SVM model is larger than that for the same variables based on the IQPSO-SVM model; moreover, the relative prediction error of the QPSO-SVM model is larger. However, for some experimental groups, such as group 1 for Fx, group 41 for Fy and group 23 for Fz, the prediction accuracy of the QPSO-SVM model is larger than that of the IQPSO-SVM model, mainly because the QPSO-SVM model easily falls to local minima during training; that is, the error at some prediction points is very small, and the error at other prediction points is very large.
Finally, to quantitatively compare the prediction effect of the IQPSO-SVM model and QPSO-SVM model, we calculate the corresponding evaluation indexes (MSE, MAPE and R2) for the two models and perform a comparison based on the bar charts in Fig. 9. The evaluation index results for each model are shown in Table 9.

Error histograms for IQPSO-SVM and QPSO-SVM: (a) Fx; (b) Fy; and (c) Fz.
Comparison of the evaluation indicators for IQPSO-SVM and QPSO-SVM
The comparison of the above evaluation indexes shows that the MSE of the IQPSO-SVM model is obviously smaller than that of the QPSO-SVM model, and the MAPE of the model is significantly smaller than that of the QPSO-SVM model; this finding suggests that IQPSO-SVM has higher prediction accuracy for the test set. The R2 of the IQPSO-SVM model is larger than that of the QPSO-SVM model, which indicates that the fitting degree of the model is higher and that the overall data trend is better reflected by the improved model. Therefore, based on the prediction evaluation indexes, the prediction effect of the IQPSO-SVM model is obviously better than that of the QPSO-SVM model.
This paper introduces the differential evolution operator λ and improved contraction-expansion coefficient αIQ, which accelerate the convergence speed of the algorithm and help avoid convergence to local optima and loss of generality. Additionally, the kernel function is introduced in the SVM model to linearize the complex problem, which makes the IQPSO-SVM algorithm suitable for small sample sizes and nonlinear samples, as in multidimensional milling force prediction for white marble.
The IQPSO-SVM model can accurately predict the milling force for white marble and can determine whether this force meets the requirements of actual production in advance; additionally, the relationship between appropriate machining parameters and the milling force can be obtained. In the actual machining process, we can reverse trace the machining parameters through the predicted milling force and the correlation among the machining parameters, optimize the machining parameters, and maintain the stability of the machining process quality.
Based on the IQPSO-SVM milling force prediction model, in this section, we discuss the effect of each machining parameter on the milling force in three directions and establish a three-dimensional graph of the selected machining parameters and milling force. According to previous research, the cutting depth is positively correlated with the milling force in three directions; that is, if the depth increases, Fx, Fy, and Fz will increase. Therefore, this section does not discuss the cutting depth, and only the spindle speed n, feed speed f, milling width aw and milling force F are considered.
Correlation analysis of machining parameters and F x
This section establishes the relationship between the selected machining parameters and Fx, as shown in Fig. 10. Figure 10 shows that the influence of machining parameters on the milling force Fx is coupled, that is, if the feed speed and milling width are varied, the correlation between the spindle speed and Fx varies; if the spindle speed and milling width are varied, the correlation between the feed speed and Fx varies; and if the spindle speed and feed speed are varied, the correlation between milling width and Fx varies. Figure 10(a) illustrates that there is no obvious correlation among the spindle speed, feed speed and milling force Fx, which fluctuates; however, the Fx fluctuations are limited (within 15 N), so the spindle speed and feed speed have little effect on Fx. From Fig. 10(b) and Fig. 10(c), there is a clear positive linear correlation between the milling width and Fx: the larger the milling width is, the larger Fx; additionally, the smaller the spindle speed and feed speed are, the greater the influence of the milling width on Fx, that is, the larger the slope of the linear correlation.

Relationship between the milling force Fx and machining parameters: (a) width of the cut is fixed at 15 mm; (b) feed speed is fixed at 5000 mm/min; (c) cutting speed is fixed at 7000 r/min.
To verify the accuracy of the above correlation analysis, some experimental data are extracted from the results in Table 2 for comparison, as shown in Table 10. Notably, when the milling width aw increases, Fx also increases, and this finding agrees with the results of the correlation analysis.
The correlation analysis for the milling force Fx
This section establishes the relationship graph between the selected machining parameters and Fy based on the IQPSO-SVM model of white marble milling. Figure 11 shows that the influence of the machining parameters on the milling force Fy is also coupled. Notably, there is no obvious linear correlation between the spindle speed and milling force Fy. Additionally, the correlation between the spindle speed and Fy varies at different milling widths. When the cutting width is greater than or equal to 14 mm, Fy decreases first and then increases as the spindle speed increases. When the cutting width is less than 14 mm, Fy increases first and then decreases as the spindle speed increases. As shown in Fig. 11(a) and Fig. 11(b), there is an obvious positive linear correlation between the feed speed and Fy ; in other words, the higher the feed rate is, the larger Fy is. Moreover, Fig. 11(c) shows that the smaller the milling width is, the greater the effect of the feed speed on Fy. Moreover, Fig. 11(b) and Fig. 11(c) indicate that there is a significant negative linear correlation between the milling width and Fy; that is, the larger the milling width is, the smaller Fy is. Furthermore, the closer the spindle speed is to 7000 r/min, the larger the feed speed is, and the greater the effect of the milling width on Fy.

Relationship between the milling force Fy and machining parameters: (a) the cutting width is fixed at 15 mm; (b) the feed speed is fixed at 5000 mm/min; and (c) the cutting speed is fixed at 7000 r/min.
To verify the above correlation analysis, some experimental data are extracted from Table 2 for comparison, as shown in Table 11. The data for tests 20, 23, 26, 29, 32, and 35 in Table 11 show that the correlation between Fy and the spindle speed is in accordance with the analysis results. The data for 34, 35, and 36 indicate that Fy is positively related to the feed speed, and this finding supports the analysis results. From 20, 23, 26, 29, 32 and 35, we can see that Fy is negatively correlated with the milling width, and this finding supports the analysis results.
Correlation analysis of the milling force F y
In this section, the relationship graph between the selected machining parameters and Fy is established based on the IQPSO-SVM model of white marble milling. From Fig. 12, there is a correlation between the machining parameters and the milling force Fz, but this correlation is smaller than those for Fx and Fy. From the graph, we can see that there is an obvious linear correlation between the milling force Fz and the spindle speed, feed speed, and milling width. Figure 12(a) and Fig. 12(b) show that there is a negative linear correlation between the spindle speed and Fz; the larger the spindle speed is, the smaller the value of Fz. Figure 12(a) and Fig. 12(c) indicate that there is a positive linear correlation between the feed speed and Fz; the larger the feed speed is, the greater the value of Fz. Figure 12(b) and Fig. 12(c) show that there is a positive linear correlation between the milling width and the Fz, and the larger the milling width is, the greater Fz is. The error in the robotic milling of machine white marble mainly comes from the deformation caused by the axial force of the cutter, that is, the deformation caused by Fz. According to the analysis results, the deformation error can be reduced by increasing the spindle speed, reducing the feed speed and reducing the milling width Fz.

Relationship between the milling force Fz and the machining parameters: (a) the width of the cut is fixed at 15 mm; (b) the feed speed is fixed at 5000 mm/min; and (c) the cutting speed is fixed at 7000 r/min.
To verify the above correlation analysis, some experimental data were extracted from Table 2 for comparison, as shown in Table 12. From 1, 4, and 7 in Table 12, we can see that the Fz is negatively correlated with the spindle speed, and this finding supports the analysis results. From 1, 2, and 3, Fz is positively correlated with the milling width, and this result supports the analysis results. From 1, 3, 10 and 12, Fz is positively correlated with the milling width, and this finding supports the analysis results.
The correlation analysis of the milling force F z
Considering the difficulty of white marble machining, the random
fluctuations in the milling process and the complexity of the machining
process, SVM regression is used to construct a prediction model of the
milling force; this approach provides a certain reference value for
studying the white marble machining process. We choose the IQPSO algorithm to optimize the internal parameters of the
SVM model and form the IQPSO-SVM model. A prediction model of the
milling force in the white marble milling process is constructed, and
the results of the proposed algorithm are compared with those of the
QPSO-SVM algorithm. This paper shows the efficiency of the IQPSO-SVM
model and verifies its advantages, such as requiring fewer control
parameters than the QPSO algorithm, having a simple operation process
and providing strong optimization ability. Based on the verified prediction model of the milling force based on the
IQPSO-SVM algorithm, the influence of machining parameters on the
milling force of white marble is further explored. We construct
correlation graphs between the influential parameters and target
variables for the reverse tracing of the effects on the milling force.
This approach provides guidance for selecting machining parameters,
improving the machining process and improving the stability of the white
marble milling process.
Footnotes
Acknowledgments
This work was supported by National Natural Science Foundation of China (Grant#51905181) and Natural Science Foundation of Fujian Province (Grant#2019J01084). The authors would like to thank the sponsor for this support. YFC would acknowledge the support from the “Promotion Program for Young and Middle-aged Teacher in Science and Technology Research of Huaqiao University”.
