Introduction

In recent years, additive manufacturing (AM) has become a promising technique to fabricate components made of expensive materials for aerospace and automobile industries. Many metal AM techniques such as selective laser sintering, direct metal deposition, electron beam melting and shape deposition manufacturing have been developed to print complex metal shapes out of computerized 3D model (Gibson et al. 2010; Mahapatra and Panda 2013). Among all, wire and arc additive manufacturing (WAAM) has received much concern for its significant advantages of fabricating high dense large scale near net shape components at a low cost in more environmental friendly way (Wang et al. 2011; Brandl et al. 2012). The technology combines arc welding with wire feeding and is able to benefit designers to achieve freedom of their design. It begins with feeding wire into a travelling electric arc and depositing the molten metal sequentially as per described path in computer-aided design (CAD) model. The melting of wire is done by either using a source of laser or a welding torch which is controlled by a robot in an inert atmosphere (Baufeld et al. 2011). This allows obtaining a final product with low oxygen and nitrogen contamination. Also use of wire as a raw material instead of any powder base material allows higher deposition rate and less contamination effect compare to other metal AM processes.

In this WAAM, a gas tungsten arc welding (GTAW) is employed to deposit molten material layer by layer to produce complex prototypes out of 3D model. Robotic systems are most often used to carry out such deposition tasks while all the movements are controlled by the G-code generated from the CAD data (Panda et al. (2016a, b, c); Wang et al. 2015a). Like other AM process, WAAM involves many process parameters that need to be optimized for producing quality prototypes in lesser build time (Tay et al. 2016; Sharma et al. 2016).

Literature reveals that the process is dominated by some parameters such as welding power supply parameters, wire feed speed (WFS), travel speed (TS), arc length, interpass temperature, wire feed angle, gas flow and it is highly necessary to select optimum value of these parameters in order to the achieve a specific target wall width/height requirement as denoted in original CAD data. Therefore, investigations have been done on the effects of arc voltage, travel speed, wire diameter, and arc current on the quality and bead geometries (Baufeld et al. 2011). Many researchers have experimentally studied the effect of process parameters on geometric size, as reported by Oshima et al. (2005), Ouyang et al. (2002), Kazanas et al. (2012), and Ding et al. (2015) but they all considered only one factor in deciding the bead geometry, and thus, their combined effect were not fully explored. For the first time, Williams developed a mathematical model of effective wall width using response surface methodology (RSM) for depositing Ti–6Al–4V parts. The model was based on three input factors and the outcomes were expected to help in designing an expert WAAM system for effective functioning and higher productivity purposes. RSM is one of the statistical experimental design methods designed for developing the optimum process with efficient screening; however, the regression analysis technique may not perform satisfactory on unseen test data and is based on the statistical assumptions (assumption of the model structure ad correlated residuals). Poor performance of the model on the test data leads to poor generalization ability and results in false information of the process input process conditions (Garg and Tai 2012; Garg et al. 2014; Çiçek et al. 2015). A much better alternative among other evolutionary algorithms such as adaptive neuro-fuzzy inference system (ANFIS), artificial neural network (ANN), support vector machine (SVM) is the genetic programming (GP) which evolves the functional relationships between the process parameters automatically (Sohrabpoor et al. 2016; Garg et al. 2014; Panda et al. 2014; Vijayaraghavan et al. 2015; Panda et al. 2016). Significant progress in literature of GP was made which justifies its ability to model and optimize the complex systems (Nie et al. 2013; Wang et al. 2015a, b). Therefore, the present work will explore the ability of the advanced variants of evolutionary algorithms such as GEP and MGGP in performing the task of formulating the decision support models for bead dimensions of WAAM process. The decision support model can not only extrapolate/predict but also suggests the precise selection of process variables for the improvement of WAAM process. Experimental procedure resulting in the data generation is set as input into the framework of these two variants for the processing and analysis. The procedure involving the experimentation planning and the modelling with respect to the three inputs is shown in Fig. 1. Two variants of GP, i.e., MGGP and GEP is used and their performance is compared for predicting bead dimensions (bead width and height) with respect to peak current, wire feed speed, and travel speed. The complexity term based on the minimum order of the polynomial used in the objective function (Structural risk minimization principle (SRM)) (Rao and Murthy 2016) of both these variants is used to investigate the generalization ability of the proposed models. The 2D and 3D plots are generated to measure the effect of each input and their interaction effects on the bead dimensions. The implications arising from the study is discussed in the end.

Fig. 1
figure 1

Complete procedure of experimental and evolutionary algorithms in investigations of bead dimensions of WAAM process

Table 1 Experimental data obtained from the WAAM process
Fig. 2
figure 2

Line graph showing the nature of a Bead height (BH). b Bead width (BW) with respect to three inputs

Experimental set-up of WAAM

In this section, the complete set-up of WAAM process is discussed in measurement of bead height (BH) and bead width (BW) based on the peak current, travel speed and wire feed speed. The equipment used in this study and the assumptions behind the experiments are kept same as those discussed in Geng et al. (2015). A GTAW welding machine (EWM, Tetrix 521 Synergic AC/DC) was used as a source of weld power. Other parameters such as the background current, pulse frequency and the bead geometry size are kept the same as those obtained in (Geng et al. 2015).

In this way, by varying the input conditions (peak current (A), travel speed (m/min) and wire feed speed (m/min)), the bead dimensions (BH and BW) are measured (Table 1). Total of 38 samples are collected from the study measuring bead dimensions based on the varying the three inputs as given in Geng et al. (2015). Figures 2 and 3 show the nature of two bead dimensions (BH & BW) of the WAAM fabricated prototype with respect to the three inputs. Figures 3 and 4 shows that there is high interaction and non-linear correlation between the three inputs and the bead height and bead width. Five-fold Cross-validation (80% training and remaining testing data) approach is deployed to select the appropriate training data set from the five training and five testing data sets based on the minimum mean absolute percentage error (MAPE).

$$\begin{aligned}&Mean\; absolute\; percentage\; error\, (MAPE)\,(\%)\nonumber \\&\quad =\frac{1}{n}\sum _i {\left| {\frac{A_i -M_i }{A_i }} \right| \times 100} \end{aligned}$$
(1)

where \(M_i \) is the predicted value by a model, and \(A_i\) is the actual value of the output

Fig. 3
figure 3

Scatter matrix showing the correlation between the three inputs and a Bead height (BH). b Bead width (BW)

Fig. 4
figure 4

Mechanism of MGGP algorithm

Fig. 5
figure 5

Mathematical expression represented by tree

Fig. 6
figure 6

Br graph showing a and b minimum MAPE for MGGP and GEP models on bead height data set 2 c and d minimum MAPE for MGGP and GEP models on bead width data set 3

Variants of evolutionary algorithms

Multi-gene genetic programming

The present work deploys the genetic programming (Koza 1994) variants for establishing the relationship between the process parameters. One of the popular variant is multi-gene genetic programming (MGGP), which works on mechanism of evolution of the models from the set of genes. The modeling and optimization of the complex manufacturing processes (Liang et al. 2015) has been studied using MGGP. The mechanism (Fig. 4) of the algorithm is as follows:

Step 1 The terminal and function set comprising of three inputs of the process and airthematic functions respectively are set by the user. The set of genes evolved from these sets are combined to form the models.

Step 2 The models performance is computed by fitting the output values obtained from it on the objective function structural risk minimization (SRM) given by

$$\begin{aligned} SRM=\frac{SSE}{n}\left( {1-\left( {\sqrt{\left( {\frac{j}{n}-\frac{j}{n}\;Log\left( {\frac{j}{n}} \right) +\frac{Log\left( {\frac{j}{n}} \right) }{2n}} \right) }} \right) } \right) ^{-1} \end{aligned}$$
(2)

where j equals to order of the polynomial, SSE is the sum of square of error, n is the size of the training set, \(M_i \) is the value predicted by a model and \(Y_i\) is the actual value of the output. The complexity (j) is defined by the order of the polynomial varying from 1 to 6. The order of the polynomial that best fits the data is the complexity of the model.

Step 3 The models are ranked as per the objective values. If any of the model does not satisfy the termination criterion, the new set of models (new population) is generated using the standard genetic operators such as the crossover, reproduction and mutation.

Step 4 The procedure of producing the new generations continuous unless the termination criterion is not met. In this work, the termination criterion is the number of runs. Each run corresponds to the number of generations, which is also defined by the user.

The parameter setting is adjusted using a trial-and-error approach. The simulations for MGGP are performed in MATLAB R2010 with the parameters such as population size, number of generations, depth of the tree, tournament size, number of iterations set at 400, 120, 8, 6 and 10 respectively. The MGGP method when applied on the WAAM processed data, the Eqs. (45) are generated as shown in “Appendix”.

Gene expression programming (GEP)

An advanced variant of GP known as gene expression programming (GEP) was developed by Candida Ferreira (2001). GEP is another powerful variant of GP, with only difference between them is that in GEP, the solutions are represented in linear structure or Expression trees (ET) (Fig. 5). This way of defining the tree structures of GP simplifies the diversity of the population.

The linear representation of the ETs is given by

$$\begin{aligned} \begin{array}{cccccccc} 0&{}1 &{} 2 &{} 3 &{} 4 &{} 5 &{} 6 &{} 7 \\ \hbox {P}&{}{*} &{} + &{} - &{} A &{} B &{} C &{} D \\ \end{array} \end{aligned}$$
(3)
Table 2 Statistical metrics of the bead dimension models
Table 3 Actual and model values obtained from the bead dimension models
Fig. 7
figure 7

Complexity and MAPE of the proposed models a BH, b BW

The past studies (Sabar et al. 2015; Wang et al. 2015a, b) have shown the ability of GEP in modelling the complex processes. The settings in this work for GEP includes the population size of 400, number of generations 100, the maximum depth of the ET as 7 and the number of runs chosen as 20. In the present work, GeneXpro Tool (GEPSOFT 2014) is used to implement GEP on data discussed in “Experimental set-up of WAAM” section in formulating the bead dimensions models (Eqs. 5 and 7 in the “Appendix”). Bar graph shown in Fig. 6 reveals that the mean absolute percentage error (MAPE) of both the models is minimum corresponding to data set 2 for BH and data set 3 for BW models. The best MGGP and GEP models (Eqs. 6 and 7 in the “Appendix”) corresponding to data set 2 and data set 3 is therefore selected for analysis of BH and BW respectively. The details numerical investigation of the two models is discussed in “Performance analysis for the bead dimension models”.

Fig. 8
figure 8

Fitting plots of the proposed GEP models a Bead height, b Bead width on training and testing data

Fig. 9
figure 9

Statistical distribution of relative error of the GEP model of training and testing data set a BH, b BW

Performance analysis for the bead dimension models

The performance analysis of the MGGP and GEP models (Eqs. 47 in the “Appendix”) is conducted by using the metrics (Eqs. 810 in “Appendix”).

Table 2 shows the values of \(\hbox {R}^{2}\), RMSE and MAPE of the two models for prediction of bead width and bead height. In light of the training aspects, the performance of both the models are comparable. It is clear that the models formulated by GEP have performed better than the MGGP models with R\(^{2 }\)achieved as high as 0.99. Table 3 shows the actual and predicted values of bead dimensions from the GEP models. Goodness of fit (hypothesis) tests (t-test for mean and f-test for variance) is applied on both the models. It was found that the p-values for all the models for is greater than 0.05, which suggests that the predicted and actual values are close to each other. Figure 7 shows the performance comparison of the two models based on size. It is clear that the GEP models have achieved higher accuracy and lower size of the models. Figure 8a (BH) and Fig. 8b (BW) shows the accurate line curve fitting of the GEP models with respect to the training and testing data. Figure 9a, b illustrates the box plots of the relative error for the GEP models. It shows that the variations, mean, median, maximum and minimum of relative error is quite low (Table 4).

Thus, the analysis depicts that the GEP models for BH and BW have performed better than that of MGGP models.

Table 4 Goodness of fitness tests of the bead dimension models
Fig. 10
figure 10

a 2D and b 3D plots showing the relationships of the bead height and bead width with respect to the three inputs

2D and 3D plots for main and interaction effect of the GEP based bead dimensions models

The 2D and 3D analysis for the GEP models is carried by following the mathematical procedure given in Vijayaraghavan et al. (2015). 2D plots shown in Fig. 10a shows the effect of each input on BH and BW of the process. It clearly shows that the BH decreases non-linearly with an increase in peak current and wire feed speed while increases with an increase in values of travel speed. The decrease rate is higher when the peak current is varied as compared to wire feed speed. On the other hand, the BW increases non-linearly with an increase in values of peak current while decreases with an increase in values of wire feed speed. There was hardly any effect noticed on the impact of travel speed on the BW. The interaction effect between the two inputs on the bead dimensions is evaluated and shown by 3D plots in Fig. 10b. Figure 10b shows that the combined effect of peak current and travel speed on bead height and the combined effect of peak current and wire feed speed on the BW. This indicates that there were higher variations and interaction effect was noticed on the BH than that of the combined effect of inputs on the BW.

Sensitivity of the inputs (Fig. 11) to the bead dimensions is determined by finding range from the 2D plots. It clearly shows that the peak current has the highest influence on the BH values followed by travel speed and wire feed speed. For BW, the peak current also have the highest impact followed by wire feed speed and travel speed. Thus, it can be concluded that the most common and dominant input is peak current which influences both the BH and BW simultaneously. This interpretation from the sensitivity analysis is also in line with the findings from the experimental findings discussed in Geng et al. (2015). Thus, the statistical performance and the 2D and 3D analysis of the GEP models can be useful in accurate prediction and monitoring of the WAAM process.

Fig. 11
figure 11

Percentage contribution of the three inputs to a Bead height, b Bead width

Fig. 12
figure 12

Simulation profiler for GEP models with variations in the inputs from its mean values a Bead height model, b Bead width model

Uncertainty analysis of the GEP models for bead height and bead width

The GEP models for bead height and bead width could be simulated in uncertain inputs conditions. The simulation profiler is designed by assuming the inputs as the normal distribution with the minimum and maximum values set same as those of the respective inputs. The analysis could provide us the reliability or the robustness of the models with respect to the variations in inputs. Figure 12a, b shows the distributions resulting from the designed simulation of 5000 iterations. Comparison of both the distributions shows that an approximate normal trend is observed in both the plots of Fig. 12. Figure 12a shows that the distribution is a little skewed towards the right, which suggests that the GEP based bead height model (Fig. 12a) is sensitive to the variations in inputs when compared to the bead width model (Fig. 12b). The reason attributed for this performance could be the non-linear nature of data resulting in such distributions.

Conclusion

This work presents the experimental and evolutionary algorithm variants for study of bead dimensions of the wire and arc additive manufacturing process. The variants of the advanced evolutionary algorithms such as GEP and MGGP are proposed in developing the framework for obtaining the functional expressions for bead height and bead width in circumstance of partial information about the process. These variants provide an alternative to the Response surface methodology, which relies on the statistical assumptions and may induce uncertainty in model formulation. The models developed represents the explicit functions which can be used offline by industry experts for generalization of bead height and bead width values based on the three inputs. This could perhaps avoid the usage of vital experimental resources thus saves time, cost and increases productivity of WAAM process. The performance analysis concluded that the GEP modes for both the bead height and bead width performs better than that of the MGGP models. The uncertainty analysis of the GEP models suggests that the models are reliable and can be used in uncertain input conditions. The findings from 2D and 3D analysis reported that the peak current and travel speed influences the bead height the most whereas the peak current and wire feed speed influences the bead width the most. The most dominant input influencing the bead height and bead width was found to be peak current. Future work for authors is to upgrade the WAAM process by addition of inputs such as the machine type and arc type generation and then experimentally and numerically investigate the process and evaluate any physically differences based on the current study.