
Effects of Process and Heat Source Parameters on Temperature Evolution in Thin-wall Wire Arc Additive Manufacturing using Explainable Deep Learning
- University of Liege, MSM Unit, Allée de la Découverte, 9 B52/3, B 4000 Liège, Belgium
- Le Quy Don Technical University, Hanoi, Viet Nam
- Institute of Southeast Vietnamese Studies, Thu Dau Mot University, 75100 Binh Duong Province, Viet Nam
Abstract
The wire arc additive manufacturing (WAAM) process involves a multitude of uncertain parameters, making WAAM a complex system for analysis. To comprehensively investigate their effects and conduct sensitivity studies, a parametric approach is essential. However, such an approach necessitates a substantial number of simulations, each of which is time-consuming and can last up to a few days. In response, we construct a deep learning-based surrogate model trained on the data created by the validated finite element (FE) method. This surrogate model is used to conduct sensitivity analysis via the SHapley Additive exPlanations (SHAP) method. The findings indicate that the positioning of the laser and its proximity to individual nodal points during the printing process are crucial features in predicting temperature evolution. Additionally, using the FFNN model instead of solely the FE model significantly reduces the computational cost (3272 times) of predicting the temperature field. This innovative approach promises to streamline the exploration of the intricate parameter space of WAAM, offering valuable insights for enhanced process optimization and control of complex manufacturing processes.
Introduction
In the realm of additive manufacturing (AM) processes, wire and arc additive manufacturing (WAAM) stands out as a versatile method capable of producing large parts with moderate shape complexity and commendable dimensional accuracy 1. This technique boasts distinct advantages over other manufacturing processes, primarily characterized by its high deposition rate and cost-effectiveness in terms of equipment investment2, 3. However, the WAAM method introduces many inherent drawbacks resulting from complex thermal evolution, high heat accumulation, low dimensional accuracy, and poor surface quality4, 5. Therefore, it is essential to perform a thorough sensitivity analysis that quantifies the variation in the input process parameters on the final printed quality.
Currently, thermal analysis during the WAAM process can be conducted using the high-fidelity finite element (FE) method6, 7, 8 or by analyzing thermal signals acquired by thermal sensors, such as thermocouples9, pyrometers10, and IR cameras11. In addition, achieving high-quality printed products and ensuring optimal manufacturing conditions involve dealing with various sources of uncertainty12, 13. These encompass factors such as material properties, operator expertise, process parameters, and boundary conditions14. Gaining a comprehensive understanding of these uncertainties typically requires a series of experiments or FE simulations, which can be both time-consuming and costly, often taking up to several days 14, 15. This challenge has significantly reduced the widespread adoption of WAAM in industry16.
One effective solution to this problem is to develop a surrogate model through machine learning (ML) techniques17, 18, 19. Such a model enables swift and precise predictions of product quality. For instance, prior studies by Mozaffar et al.20 and Pham et al.21 have successfully built surrogate models for predicting thermal histories in directed energy deposition (DED) processes, employing recurrent neural networks (RNNs) and artificial neural networks (ANNs), respectively. Similarly, Roy et al. 22 proposed an ANN-based surrogate model for predicting temperature evolution in fused filament fabrication (FFF) processes. However, it is worth noting that these studies primarily focused on the DED process. To the best of the author's knowledge, the application of ML-based surrogate models to WAAM is still in its early stages2, 3. Furthermore, some of these previous works utilized complex models such as RNNs and lacked interpretability of the ML model. Hence, we developed an explainable ML-based surrogate model that aims to capture the relationships between input parameters and temperature evolution efficiently and accurately.
To further illustrate our ML model, we conducted an extensive sensitivity analysis (SA)23, 24. This SA aims to provide deeper insights into the underlying physics of the WAAM process, further enhancing our understanding and potential for optimization. However, relying solely on ML methods for SA proves inefficient, as ML-based models often function as black boxes25. Figure 1 illustrates the workflow employing the ML-based surrogate model as a black box for predicting temperature fields in the WAAM process. The input parameters is learned by the ML-based model as a blackbox to predict temperature fields. While these models offer computational efficiency, their effectiveness is constrained by their lack of debuggability and the inability to provide human-understandable and reconstructable explanations for the predicted temperature fields. Additionally, it is not possible to obtain insights into the models' internal working, i.e., how and why temperature fields are predicted26. The current workflow's lack of reactivity restricts its applicability in real-time settings, a critical requirement in industries where thorough model verification and validation are essential27.

The workflow employing the ML-based surrogate model as a black box for predicting temperature fields in the WAAM process.
To address these issues, explainable ML research topics have recently been developed28, 29. The explainable ML techniques provide meaningful insights into the impact of selected input features on the output target feature30. Figure 2 shows the workflow using the surrogate model and explainable ML techniques in the WAAM process. The ML-based model is interpreted by the explainable model to clarify better for the process. Compared to Figure 1, the black box of the ML-based model is now “open”. Owing to explainable ML techniques, the prediction of temperature fields produced from an ML-based model, i.e., the peaks and cyclic behaviors of temperature evolution, is understandable.

The workflow using the surrogate model and explainable ML techniques in the WAAM process.
Drawing upon these contextual foundations, this article aims to perform an SA on the WAAM process using an explainable ML model. This study is organized as follows: the FE model of WAAM is summarized in Section 2. The ML-based surrogate model and explainable ML techniques are described in Section 3. In Section 4, the numerical results of the FE and ML models are discussed. Finally, the sensitivity analysis and discussion are presented in Section 5 prior to the conclusion.
Finite element model for the WAAM process
Geometry and thermophysical properties of the WAAM wall
Figure 3 (a) shows the baseplate geometry in this study, which is 200 mm in length, 80 mm in width, and 10 mm thick, and its corresponding 3D model geometry. In this study, only the thermal problem was studied. Stainless steel 316 L stainless steel (SS 316 L) was used for both the wall and baseplate materials, and the thermophysical properties were chosen for the numerical simulation, as described in2, 3. As shown in Figure 3(a), the path of the laser encompasses both forward and reverse layers, with one track per layer. This parameter significantly influences the resulting microstructure and mechanical properties of the additive manufactured part 31.

Geometry of the 3D WAAM model, (a) trajectory of the 3D model and (b) 3D view of the geometry.
The 3D model, depicted in Figure 3(b), features a six-layered structure specifically designed for this study. To capture areas with high thermal gradients, a refined mesh with dimensions of 0.8x0.1x0.1 mm³ was implemented in three regions: the clad and its immediate vicinities on the substrate. With increasing distance to the deposition path, the element size coarsened toward the edges of the specimen. Based on a convergence study, this mesh size can be evaluated as sufficient, which is consistent with the result reported in 31. As one moves further from the deposition path, the element size gradually increases toward the specimen's edges. A convergence study validated this mesh size as adequate, aligning with findings presented in 31. Additionally, to develop the FE model for thermal simulation, the thermophysical properties of SS316L reported in31 and Goldak’s heat source model (Figure 4) were chosen for the numerical simulations.
In this study, we assumed identical thermophysical properties for both the base plate and the thin wall, despite their differing microstructures. Additionally, we understand that the entire process, including the behavior of the wall geometry, is of paramount importance. While this assumption may appear simplified, it aligns with previous studies in the field31. Nevertheless, it is important to note that this assumption may introduce certain simplifications in the model. Future work could explore the implications of considering distinct thermophysical properties for base plates and thin walls, which may lead to a more comprehensive understanding of the process.
Heat input modeling
A Goldak volume heat source32 based on double ellipsoidal power density distributions was used in this study. Figure 4 illustrates the heat distribution of a double ellipsoidal heat source model. The heat flux is modeled in Z-direction with its parameters were selected as those in 32: a = 7 mm,a = 13 mm, b = 4 mm, c =4 mm,f = 0.6, and f = 1.4.

Double-ellipsoidal heat source model.
The WAAM process simulation was performed using ANSYS software. Before the simulation, all the clad layers are considered inactive (dead) elements since they do not exist before the WAAM process (phase prestep). During the process, the dead elements are reactivated successively under the effect of the welding torch using an activation time that was modeled through the welding speed. This method suffers from a computational time disadvantage, but it can help to model the process in practice accurately.
In general, the temperature evolution can be predicted as
where q = [x, y, z, t, m] is a multidimensional vector of the spatial coordinates (x,y,z), the time (t), and the other input parameters (m), i.e., the current intensity. As discussed in the introduction section, solving the above equation is time-consuming, i.e., six hours for one simulation. As a result, we constructed an ML-based surrogate model to reduce computational costs. The following section introduces the specific ML-based surrogate models employed in this study.
Sensitivity analysis using explainable ML for the WAAM process
In this section, we introduce the SA using the explainable ML method, constructed using the outcomes derived from the FE model. The FE model is responsible for calculating the temperature variations within the WAAM process under various input heat energy conditions. Additionally, we incorporate an ML-based explainability method to further elucidate the surrogate model's decision-making process.
ML-based surrogate model
Model selection
Several algorithms, including linear regression, random forest, and feedforward neural networks (FFNNs), can be used to construct ML-based surrogate models. In this study, we choose the FFNN architecture owing to its ability to approximate highly nonlinear relationships within the physics of WAAM. Moreover, the FFNN will be expanded to incorporate an explainable method, thereby enhancing the interpretability of the sensitivity analysis.
Data collection
The training data for the ML model are generated through simulations using the FE model outlined in Sec. 2. These simulations consist of various values of key WAAM process parameters, namely, the current intensity () and velocity (). The resulting training dataset includes four distinct simulations, detailed in
Dataset obtained from FE simulation used in training and testing for FFNN model
Current intensity (I) |
120 |
126 |
132 |
138 |
144 |
Velocity (U) |
0.2 |
0.3 |
0.4 |
0.5 |
0.6 |
Training |
ü |
ü |
ü |
ü | |
Testing |
ü |
In each FE simulation, we accumulate a substantial dataset, with a total of 19,126,800 data points (10626 nodes × 1800 timesteps = 19,126,800) for a given pair of U and I. As demonstrated in
To assess the predictive accuracy, we subject the ML model to an unseen FE simulation for {I, U} = {132, 0.4} as our testing dataset. This evaluation ensures the robustness and reliability of our model's prediction capabilities.
In addition to improving the prediction accuracy of the model, we added four additional features, namely, the heat source position x, z and the distance from the heat source to the FE nodes d, d. Note that these features are chosen by the trial-and-error approach. To avoid adding substantial length to the paper, the overall description of these features and the feature selection process can be found in6.
In general, the ML model can be represented as
where W is the weight and q is the input, which includes the spatial coordinates (x, y, z), the time (t), the current intensity (I), the velocity (U), the heat source position , and the distance from the heat source to the FE nodes (d, d). The output is the temperature at each spatial coordinate at a specific time.
Explainable ML method
To provide a deeper understanding of the predictive capability of the FFNN-based surrogate model g, we subsequently describe the explanatory ability of the FFNN-based model. In this work, the SHAP method 33, 34 is used to explain the FFNN-based surrogate model. The SHAP method was developed based on Shapley from cooperative game theory 35.
Let N be the set of all input features of the FFNN g, and S denotes a subset of N. The SHAP value assigns a value ϕ (q), with i = 1,2,…,n, to each feature representing this feature's contribution to the model prediction. This value is computed as
where |N| is the number of features in the set N and |S| is the number of features in the set S. However, the SHAP method requires training the model g for all subsets S ⊆ N and thus significantly increases the computational cost. Additionally, most of the ML-based models do not accept arbitrary patterns of missing input. Therefore, the SHAP method was developed to overcome these problems. In particular, the SHAP method proposed an approximation based on conditional expectation as
where q and z are |S|-dimensional vectors that collect values of the features in S from vectors q and z, respectively. As a consequence, the missing features q in Eq. (1) can be randomly drawn from the background data (normally the mean value) to obtain an approximation for g (S). Therefore, the SHAP method significantly decreases the computational cost compared with the original Shapley method. The SHAP method ranks the importance of features on the task performance of the ML model.
Results
This section presents the results, including the FE results in Sec. 4.1 and the FFNN-based surrogate model results in Sec. 4.2.
Finite element results
Figure 5 depicts the temperature evolution at the middle point of the first layer in the clad, as obtained from the finite element (FE) model in this study. The temperature shows an oscillation behavior named as temperature oscillations that strongly influences the final microstructure. Additionally, after six thermal cycles, the temperature peak exhibits a progressive decrease. This can be attributed to the phenomenon of heat accumulation during the wire and arc additive manufacturing (WAAM) process. It is noteworthy that the number of temperature peaks in the thermal cycle corresponds to the number of layers deposited in the clad. Note that our ongoing experiments are aimed at validating the results obtained from the finite element model. Additionally, we would like to acknowledge that, in the FE simulation, we treated the wall height as a constant, and this can be considered an assumption. It is important to consider how altering the current intensity or laser velocity often leads to variations in wall height. Thus, we will consider this assumption in our future study.

Temperature evolution predicted by the FE model for the middle point of the first layer in the clad.
Machine learning-based surrogate model results
This section presents the results of the temperature field prediction by the FFNN-based surrogate model, as discussed in Sec. 3.

Three points are selected to represent the thermal cycle predicted by the surrogate model.
For ease of visualization, we selected three specific points to showcase the temperature evolution. These points are situated in the middle of the first, second, and third layers in the clad, denoted as P1, P2, and P3, respectively, as depicted in Figure 6. It is worth noting that these points are anticipated to demonstrate the most intricate thermal cycles during the WAAM process, characterized by high-temperature peaks followed by gradual cooling cycles, as illustrated in Figure 5. Furthermore, these points were extracted from a distinct test dataset that the model had never encountered during its training and validation phases.

Comparison of the thermal cycles predicted by the FE model and the FFNN-based surrogate model for 3 points P1, P2, and P3.
Figure 7 displays the temperature evolutions derived from both the FE model and the FFNN-based surrogate models for three specified points, namely, P1, P2, and P3. The FFNN-based surrogate model accurately captures the thermal cycles at these points, reproducing both the temperature peaks and the subsequent cooling phases. Specifically, the values 36, 37 calculated for these three points exceeded 0.99.
In essence, the FFNN-based surrogate model demonstrates good accuracy in predicting temperature evolution. The subsequent section will discuss the explanation of the FFNN-based surrogate model, employing the SHAP method discussed in Sec. 3. Hereafter, we carry out the discussion section to determine the physics inside WAAM using the ML explainable method.
Discussion
In this section, the sensitivity of the process parameters to the WAAM process is discussed, and the ML-based model is explained using the SHAP method.
Sensitivity analysis of the process parameters
The sensitivity analysis of the temperature evolution in response to variations in the current intensity and velocity is depicted in Figure 8. As anticipated, increasing the current intensity facilitates more efficient heat propagation within the printed component, augmenting the energy delivered to the laser and consequently elevating the temperature. Conversely, a reduction in velocity leads to an increase in temperature. This phenomenon can be attributed to the fact that higher scanning speeds entail reduced time spent by the laser at any specific point on the powder bed. Consequently, the energy transferred to the material diminishes, resulting in lower temperatures compared to those of the case with slower scanning speeds.

Sensitivity of the (a) current intensity I and (b) velocity U to the temperature evolution at point P1.
Sensitivity analysis of the ML-based surrogate model
Figure 9 shows the 95% quantile SHAP values corresponding to each feature. The absolute SHAP value is a measure of the feature contribution to the difference between the predicted temperature and its average value. Note that the 95% quantile is chosen since it is a standard evaluation criterion in statistics. As observed in Figure 9, ,and constitute the most influential additional features for temperature prediction. In contrast, other features, such as x, y, z, t, U, and I, play a minor role in temperature prediction. Note that these features are basic features; therefore, they should not be translated as negligible parameters.

The 95% quantile SHAP values correspond to each feature.
Using the SHAP analysis information in Figure 9, this section introduces one base and four reduced FFNN-based models, resulting in five models to verify the ranking of the feature importance for temperature prediction and to determine the relevant features contributing to the temperature evolution behavior. The base model consists of only six basic features. The five consecutive reduced FFNN-based models are built by adding each feature in the order of their 95% quantile SHAP values. The description and values of the five FFNN-based models are included in
The description and R2 values of the five FFNN-based models
Model |
Input features |
R2 |
Base model (BM) |
|
0.7211 |
Reduced model 1 (RM1) |
|
0.9120 |
Reduced model 2 (RM2) |
|
0.9278 |
Reduced model 3 (RM3) |
|
0.9811 |
Full model (FM) |
|
0.9964 |
As listed in
Computational cost assessment
Computational cost using FFNN-based and FE models
Training time |
Single temperature field prediction | |
FFNN-based model |
4 h |
20 s (0.0055 h) |
FE model |
- |
18 h |
Conclusion
In this study, we developed an interpretable machine learning model capable of quickly and accurately predicting the temperature field during the WAAM process. This model was trained using data generated from validated FE simulations. The key contributions of this research include the following:
In perspective, we will develop an optimization framework that accounts for uncertainties, with the ultimate goal of producing high-quality WAAM products based on the findings of this study.
Acknowledgment
This research is funded by Thu Dau Mot University, Binh Duong Province, Vietnam, under grant number NNC. 21.2.012.
Author contributions
Thinh Quy Duc Pham contributes to the development of relevant theories, executes machine learning models, and authors articles.
Manh Cuong Bui contributes to perform the numerical simulation.
Thao Van Le, Bui Sy Vuong, and Xuan Van Tran contribute to paper revisions and provide feedback.
Abbreviations
AM: Additive Manufacturing
WAAM: Wire Arc Additive Manufacturing
FE: Finite Element
ML: Machine Learning
DED: Directed Energy Deposition
RNN: Recurrent Neural Network
FFF: Fused Filament Fabrication
SA: Sensitivity Analysis
SS: Stainless Steel
Competing interests
The authors declare no competing interests.