1. Introduction
Processing quality prediction is crucial in modern manufacturing, mainly when producing complex parts. By collecting and analyzing various parameters in processing, establishing an effective prediction model has become a meaningful way to achieve intelligent manufacturing. Through accurate quality prediction, not only can we improve the manufacturing quality of parts and reduce the production cost, but we can also effectively reduce the product defective rate and scrap rate [
1]. The joint action of multiple processes usually guarantees the final machining quality of complex parts. Such parts have a complex structure and various processes. The machining quality of parts is not only affected by machining machine tools, tools, fixtures, and other machining elements and cutting parameters, but it also may be affected by the output quality errors of the previous process [
2]. Therefore, it is necessary to carry out a detailed analysis of each process in the process of parts processing in order to achieve comprehensive quality control.
In recent years, with the rapid development of machine learning methods and extensive data analyses, establishing efficient and accurate quality prediction models has become the mainstream direction of the manufacturing industry [
3]. Especially in the era of Industry 4.0, intelligent manufacturing has gradually become a significant development trend in the manufacturing industry. By integrating industrial IoT and big data platforms, the manufacturing process can collect and analyze the processing data of multiple processes in real time to achieve dynamic control and a prediction of processing quality. The wide application of new sensors and the enhancement of computing power have also further promoted progress in this field. Many scholars have proposed various methods to improve the accuracy and efficiency of processing quality prediction. Common quality prediction methods include grey theory [
4,
5], neural network [
6], particle swarm [
7,
8], and support vector machine [
9]. These methods have advantages in different application scenarios and are suitable for different data situations and problem types. Grey theory suits situations with few data and incomplete information, while neural networks deal well with complex nonlinear relationships. Particle swarm optimization searches for the global optimal solution by simulating population intelligence, while support vector machines perform well in dealing with high-dimensional data and minor sample problems. Wang et al. [
10] combined grey system theory and artificial neural networks to predict the machining quality of shaft parts more accurately under limited data, thus optimizing the production process. Manikandan et al. [
11] solved the problem of short tool life and the poor machinability of Hastealloy C276 by optimizing the EDM parameters through the hybrid grey relational analysis and neural network model. Soepangkat et al. [
12] used grey fuzzy analysis and the BPNN-GA method to optimize the cryogenically cooled face milling process, effectively improving the multiple performances regarding surface roughness, cutting force, and the metal removal rate. Jiang et al. [
13] used support vector regression based on the error transfer network and particle swarm optimization to solve effectively the problem of insufficient data in aerospace manufacturing. Xu et al. [
14] proposed a neural network algorithm based on particle swarm optimization and grey correlation, which significantly improved the accuracy of machining quality prediction. Huang et al. [
15] solved the automation problem in grinding machining by using least squares and support vector machines. Lu [
16] proposed a radial-based neural network model with adaptive parameter tuning to predict the turning surface quality. Abburi et al. [
17] developed an adaptive prediction system for turning surface roughness based on neural networks and fuzzy set theory. This can achieve a more accurate prediction under limited training data. Liu et al. [
18] combined a simulated annealing algorithm and BP neural network to achieve the prediction of cutting deformation. Ashtiani et al. [
19] developed a neural network model based on a feed-forward propagation learning algorithm for predicting the thermal-deformation behavior of alloys. Lu [
20] developed a model to predict surface roughness in the machining process of a part, based on Support Vector Machines (SVMs) and the Artificial Bee Colony (ABC) algorithm. The prediction model significantly improved the prediction accuracy and reduced the parameter adjustment time. However, most studies focus on predicting part quality under a single process. Complex multi-process parts’ processing features inevitably affect the final quality due to the coupling effect of inter-process error transfer. The accuracy of the established quality prediction model may decrease if the role of error transfer in processing between processes is ignored [
21].
Many scholars have proposed methods for predicting machining quality features oriented towards complex multi-process parts. Abelian et al. [
22] analyzed multi-process parts’ process configuration and machining features. Yin et al. [
23] proposed a knowledge fusion model based on a rough set algorithm to achieve a machining quality prediction for the multi-process manufacturing of complex surface parts. Wang et al. [
24] proposed a data-driven modeling approach to predict product quality in real time by obtaining the time-varying relationship between the final quality and process through the current process information. Once the state of the machining system changes, the accuracy of the established quality prediction model may also be affected. In addition, when complex parts are primarily produced in small batches, and there are insufficient machining sample data, the prediction accuracy of traditional machine learning models often fails to meet the real-time and accuracy requirements of Industry 4.0.
This paper proposes a processing quality prediction method based on a processing error transfer network and grey neural network. Quality problems in the processing of products are usually the result of the substandard processing of critical quality features in a small number of critical processes. Initially, to identify the critical quality features that have a more significant impact on quality in multi-process processing, a processing error transfer network model is established. The importance of the nodes of this model is ranked by the PageRank algorithm and the node influence degree to obtain the critical quality features of complex parts. Moreover, the number of data samples and the coupling relationship between machining quality features significantly influence the prediction results of machining quality features. The machining quality prediction model constructed by the grey neural network algorithm can produce a high-precision prediction with fewer sample data and multiple coupling relationships. Finally, the proposed method is validated by taking the machining of a medium-speed marine diesel engine’s fuselage as an example.
3. Establishment of Grey Neural Network-Based Machining Quality Prediction Model
The machining quality prediction model is a typical nonlinear multivariate pre-system model. For complex parts with multiple processes, multiple working conditions, small batches, and high accuracy, the input and output of the pre-machining quality prediction model usually show nonlinear features. Therefore, this paper adopts a grey neural network to construct the
prediction model. The algorithm performs well in dealing with nonlinearity and a small sample prediction. The
prediction model has a higher computational accuracy and controllable error than the conventional grey model. Compared with the conventional neural network prediction model, the
prediction model is less computationally intensive and achieves a high prediction accuracy with a small number of samples [
30]. With this combination, the accuracy and stability of the prediction model are significantly improved.
Figure 3 shows the schematic diagram of the
prediction model.
3.1. Establishment of GM (1, N) Prediction Model
In parts machining, the machining quality is often affected by various factors, so it is suitable to use the grey multivariate prediction model. The model contains N variables, including one feature variable and N−1−related factor variables. The model is used to describe the influence of N variables with correlation to the prediction target, and it takes into account the degree of correlation between the variables and the magnitude of the influence to predict the trend of the feature variables.
Let there be a total of n sets of N sample data consisting of the associated processing quality features X. Define the original feature data sequence as
, which can be expressed as follows:
The correlation factor sequence is
, which can be expressed as follows:
where
. For this machining quality prediction system model, a cumulative generation operator on
is performed to compute the 1−AG0 sequence
.
In order to satisfy the necessity of quasi-exponential laws for the model operation, a smoothness test is required for the original sequence . If the original sequence is , then is said to be the smooth ratio of the sequence . If , then is said to be a quasi-smooth sequence. That is, it satisfies the quasi-exponential law of model operations.
is the immediate neighboring mean generating sequence of
, which can be expressed as follows:
Build the
prediction model using first-order differential equations.
where
is the development coefficient,
is the driving coefficient,
is the driving term, and
. The parameters of
are estimated by the least squares route and satisfy the following form:
When the variation of
is small, the approximate time response expression
for
is as follows:
According to the principle of information priority,
is taken as
. Through the cumulative reduction of
, the
value of the prediction result sequence can be obtained.
Although the prediction model can predict the machining quality for small samples and information-poor parts, the prediction results will have errors due to its insufficient sample information and data randomness. Quality prediction accuracy is mainly affected by the residuals between the predicted and actual values. The overall prediction accuracy will be significantly improved if the residuals can be reasonably handled.
3.2. Construction of BP Neural Network Model
After years of development, the BP neural network has become the best and central part of artificial neural networks. In dealing with practical problems, it can transform a set of sample input/-output problems into a nonlinear optimization problem and is a powerful tool for summarizing the laws. The BP neural network has many advantages when fitting sequences. It can imitate various functional forms, such as nonlinear and segmented functions, without assuming the functional relationship between the data and directly using it to establish the correlation. At the same time, the BP neural network has high information utilization and avoids the loss of information due to positive and negative cancellations in data processing [
31]. Therefore, the BP neural network is particularly suitable for the residual correction of the
model.
Considering that the processing examples and sample data selected in this paper have a small amount of computing power, and referring to the experience of related successful cases, this paper chose the three-layer neural network structure shown in
Figure 4. The network consists of the input layer, hidden layer, and output layer. The complete training process includes two stages: forward propagation and backpropagation.
N network training samples are identified, and one of them, sample p, is selected to train the neural network. Under the action of sample p, the input
of the i-th neuron in the hidden layer is as follows:
where
,
and q is the number of nodes in the hidden layer.
and
are the input and output of the infuser node j under the action of the sample p, which is the same.
is the connection weight between the infuser layer neuron j and the hidden layer neuron I.
is the threshold value of the hidden layer neuron i.
The output
of the i-th neuron of the hidden layer is as follows:
where
is the activation function.
The total input
for the kth neuron of the output layer is as follows:
where
is the connection weight between neuron k of the output layer and neuron i of the hidden layer, and
.
is the threshold value of neuron k of the output layer.
The actual output
is as follows:
Error function
is as follows:
where
is the desired output.
The error signal
of the output layer node is as follows:
The error signal
of the hidden layer node is as follows:
The weighting coefficient A4 correction formula for any kth neuron of the output layer is as follows:
The incremental equation is as follows:
where
is the learning rate and
.
The weighting coefficient correction formula for any i-th neuron of the hidden layer is given by the following:
where A2 is the output of the j-th neuron of the input layer, the incremental formula is as follows:
3.3. Construction of the GNNM (1, N) Prediction Model
The grey neural network model is an organic combination of grey prediction and neural network modeling methods, which can solve complex uncertainty problems nonlinearly [
32]. This paper uses the BP neural network to correct the residuals of the GM (1, N) prediction model and predict the residuals. The predicted values of the GM (1, N) prediction model are adjusted according to the residuals corrected by the BP neural network to improve the overall prediction accuracy.
Let the difference between the previous mass feature original data sequence
and the GM(1,N) prediction model prediction result sequence
at moment t, called the residual sequence, denoted as
, be expressed as follows:
If S is the prediction order, the input sample for BP network training is as follows:
where
.
is the expected value of prediction for BP network training. The above BP algorithm is used to train the residual model. The trained network model can be used as an effective tool for residual series prediction.
Let the residual sequence predicted by the network training model be
, and construct a new prediction value
based on it.
Then, is the predicted value of the prediction model.
3.4. Analysis of GNNM (1, N) Prediction Model Results
There are many ways to validate the accuracy of the GNNM (1, N) prediction model built for critical quality features. In this paper,
is chosen to determine the degree of fit of the prediction model. The
mathematical model is as follows:
The Root Mean Square Error (RMSE) is used to measure the deviation of the predicted value of the forecasting model from the actual value. The mathematical model of the RMSE is expressed as follows:
In the above two equations, n is the number of validated samples, is the actual value of the validated samples, is the prediction result of the GNNM (1, N) prediction model, and is the average value of the validated samples. When the value of is closer to 1, it indicates that the fit of the established prediction model is higher, and when the value of is more significant than 0.9, it indicates that there is a better correlation between the variables in the prediction model. When the value of the RMSE is closer to 0, it indicates that the deviation between the predicted value of the prediction model and the real value is more minor.
4. Instance Analysis
In order to verify the practicality of this method, the machining process of the fuselage of a particular model of a medium-speed marine diesel engine is taken as an example, as shown in
Figure 5. The fuselage has a complex structure and many processes involving multiple equipment, multiple stations, and multiple datums. The machining process of the fuselage is affected not only by cutting parameters and machining factors such as machine tools, cutting tools, and fixtures, but also by the output quality error of the previous process. Therefore, it is difficult to objectively and effectively control the quality of critical quality features that affect the quality of fuselage machining in actual machining, resulting in insufficient final quality control. In order to reasonably determine the fuselage machining process and achieve control of the machining quality, it is necessary to predict the critical quality features in machining.
In order to describe more clearly the machining error transfer relationship between the processes and between processes and output quality during fuselage machining, each process of the fuselage is decomposed into multiple machining features. Each processing feature corresponds to different quality features and processing elements. Combined with the machining process of marine diesel engine fuselage and its features, 28 machining features, 62 quality features, and 24 machining elements are finally abstracted and coded. The coding rules are shown in
Table 1 below.
According to the coding rules, the error transfer network model is constructed according to the processing sequence between the fuselage processing qualities. Calculate the PR size of each node in the network according to the PR algorithm. The PR value of each node after the stable convergence of the PR algorithm is shown in
Table 2 below.
According to the size of the PR value of each node, using Gephi—0.9.7 software, the fuselage error transfer visualization network is established as shown in
Figure 6. Where the size of the network node represents the size of the PR value, i.e., the larger the network node, the higher its influence will be.
Among the machining feature nodes, the machining feature node with a more significant value is defined as the critical machining feature of the fuselage. According to the analysis results of the process error transfer network, it can be found that the critical machining features correspond to the numbers MF150B, MF140B, MF130A, MF130C, MF150A, and MF080B. The critical machining feature numbers correspond to the mass formation process corresponding to the cylinder bores, camshafts, and crankshaft bores. The critical machining feature numbers correspond to the mass formation process of cylinder bores, camshafts, and crankshaft bores and the finishing process of hafted surfaces, end surfaces, and cylinder bore surfaces, respectively. The critical machining features for a marine diesel engine body include the dimensional and form accuracy of the top surface, bottom surface, crankshaft bores, camshaft bores, and cylinder bores. These features significantly affect the assembly and use of the diesel engine.
The quality of the machine body processing is mainly affected by machining errors, which are reflected in the quality characteristics output by various processes, such as surface quality, dimensional accuracy, and geometric tolerances. Considering the influence of the position of the quality feature nodes in the machining error transfer network, this paper assesses the criticality of the quality feature nodes based on the influence degree E, as defined in
Section 2.2. As shown in
Figure 7, the degree of influence of the output quality feature nodes of critical machining features is demonstrated.
According to
Figure 7, it can be seen that the influence degree of the quality feature nodes coded as QF130Ac, QF140Bd, QF150Bd, QF150Ba, QF130Cd, QF130Aa, QF140Ba, and QF150Ba is significantly higher than the other nodes. Among them, QF130Ac (fine boring of crankshaft bore size) has the highest influence degree, followed by QF140Bd (fine boring of camshaft bore size), QF150Bd (fine boring of cylinder bore size), QF130Cd (perpendicularity of end faces and crankshaft bores), QF130Aa (coaxial of crankshaft bores), QF140Ba (coaxial camshaft bores), and QF130Aa (verticality of cylinder bores). Therefore, these quality features are defined as critical quality features in the machining process of the diesel engine body.
This paper defines multiple quality features in the machining process of marine diesel engine fuselage as critical quality features, and its specific range can be divided according to the actual situation by the degree of influence. Since the dimensions of the fine-bored crankshaft holes have the highest degree of influence on the quality of the machining process of the body, the dimensions of the crankshaft holes in the body of a certain model of diesel engine were selected as the prediction of the machining quality to be verified.
Table 3 shows the results of the dimensional machining test data collection for the fine-bored crankshaft hole of a diesel engine body. In
Table 3 ,
, and
denote the equipment error, fixture error, and tool error.
,
, and
denote the rotational speed
, feed rate
, and depth of cut
.
Based on the above experimental data, Python 3.12.5 software constructed a GNNM (1, N) prediction model for the dimensions of fine-bored crankshaft holes for body machining quality. In order to prove the superiority of GNNM (1, N) in solving the optimization problem, the algorithm is compared with the GM (1, N) prediction model. The GNNM (1, N) parameters are set as follows: the learning rate is chosen to be 0.6, the convergence rate is 0.001, and the mean square error is limited to 0.01. Sample data numbered 1 to 40 in
Table 3 are used as the training set, and data numbered 41 to 50 are used as the test set for substitution into the prediction model. The prediction results are shown in
Figure 8. The red line in
Figure 8 indicates the actual value, the green line indicates the prediction of the GNNM (1, N) model, the black line indicates the prediction of the BPNN(1, N) model, and the blue line indicates the prediction of the GM(1, N) model.
According to
Figure 8, the optimized prediction model using neural networks is significantly better than the grey or BP neural network prediction models. Using the test set data for calculating the crankshaft bore size GNNM (1, N) prediction model
, the
value is
. Therefore, the model meets the requirements for prediction accuracy and is highly reliable.
5. Conclusions
This paper proposes a machining quality prediction method based on a machining error transfer network and a grey neural network, which is mainly used to predict the machining quality of complex parts with complex structures, numerous processes, multiple varieties, small batches, and high accuracy. Compared with Reference [
32], which describes the evaluation of the process reliability of diesel engine blocks, this paper not only comprehensively considers the influence of processing elements and the cutting parameters on the quality of parts, but it also considers the error transfer in the machining process and achieves the identification of crucial quality features consistent with the processing of production enterprises through the establishment of a network model of error transfer in the machining of parts. At the same time, the method successfully solves the prediction problem caused by insufficient quality data in small-lot production by taking advantage of the grey system’s high-precision short-term prediction advantage under the condition of few samples, and the nonlinear mapping, adaptive, and fault-tolerant ability of neural networks. In addition, the method in this paper closely matches the development concept of Industry 4.0, especially in intelligent manufacturing, which can be better applied to the highly automated production environment to achieve real-time prediction and the control of machining quality and improve the consistency and stability of products. The main conclusions are as follows:
(1) A processing error transfer network model is constructed based on the complex network theory, which realizes the visualization of error transfer in the machining process. The model provides a new perspective for understanding and controlling machining errors, which is consistent with the emphasis on transparency and visualization of the production process in Industry 4.0, and it helps to achieve real-time monitoring and the optimization of the manufacturing process.
(2) Using the PageRank algorithm and the degree of influence of the nodes, the critical quality feature nodes of the machining error transfer network are identified. Manufacturing enterprises can focus on the supervision, detection, and control of these features that have the most significant impact on the quality of the final product, which is in line with the requirements of Industry 4.0 for the precise control of crucial quality features, and ti improves the level of intelligence of the production process.
(3) Combining grey theory with the BP neural network and using the BP neural network to optimize the residuals of the grey prediction model, the grey neural network processing quality prediction model GNNM (1, N) was established. Finally, the method is validated through the machining process of the medium-speed marine diesel engine hull, and the results show that the GNNM (1, N) model still has high prediction accuracy with small samples and few data. This provides an effective quality prediction method for small-lot and multi-variety production in an Industry 4.0 environment, which supports adaptive control and decision-making in intelligent manufacturing.