Next Article in Journal
Influence of Voltage Sags on the Continuity of the Operation and Lifespan of Single-Phase Industrial Robots
Next Article in Special Issue
Effects of Specimen Size and Welded Joints on the Very High Cycle Fatigue Properties of Compressor Blade Steel KMN-I
Previous Article in Journal
Coating Characteristic of Hydroxyapatite on Titanium Substrates via Hydrothermal Treatment
Previous Article in Special Issue
Effect of Thermal Management Approaches on Geometry and Productivity of Thin-Walled Structures of ER 5356 Built by Wire + Arc Additive Manufacturing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Framework for Mitigation of Welding Induced Distortion through Response Surface Method and Reinforcement Learning

Department of Mechanical Engineering (CEME), National University of Sciences and Technology (NUST), Sector H-12, Islamabad 4600, Pakistan
*
Author to whom correspondence should be addressed.
Coatings 2021, 11(10), 1227; https://doi.org/10.3390/coatings11101227
Submission received: 21 August 2021 / Revised: 16 September 2021 / Accepted: 22 September 2021 / Published: 9 October 2021

Abstract

:
Welding induced distortion causes dimensional inaccuracies in parts being produced and assembly fit-up problems during manufacturing. In this study, a framework is proposed to mitigate weld distortion at the design stage. A sequential approach is adopted to optimize the welding process. In the first phase, welding process parameters are optimized through the response surface method. The effect of these parameters on the overall distortion of the welded part is observed by a simulation of the welding process. In the second phase, the weld sequence is optimized using the optimum weld parameters. A reinforcement learning-based Q-learning technique is used to select the optimum welding path by sequential observation of weld distortion at each segment being welded. The optimum process parameters and weld path sequence have been selected for 3 mm steel plates having a lap joint configuration and a 2 mm vent panel with a butt joint configuration. It is concluded that the combination of the optimum welding parameters and welding sequence yields minimum distortion. By applying this framework, a reduction of 19% is observed in overall welding induced distortion.

1. Introduction

The control, prediction, and optimization of distortion produced during welding need to be addressed at the design stage to improve dimensional accuracies of the part being manufactured and to avoid misalignment of mating parts during assembly. Combined optimization of welding process parameters and the welding sequence is needed to mitigate distortion produced during welding. Yi et al. [1] conducted an experimental and numerical investigation on welding induced distortion. The authors concluded in their research that welding parameters and the welding path sequence both influence the overall distortion produced during welding. Daniyan et al. [2] discussed the use of the response surface method and Taguchi methods for optimization of weld process parameters, i.e., welding current, voltage, speed, and arc length. The objective of their study was to reduce welding distortion by searching for the optimum weld parameters. The response surface method was used by Liu et al. [3] for optimization of laser welding of dissimilar metals. They used central composite design to construct the design of the experiment (DOE) matrix. Zuo et al. [4] used the response surface method for optimization of weld process parameters in friction stir spot welding. They used Box–Behnken design to find the relationship between different process parameters. The response surface method has also been used in combination with other evolutionary algorithms. Srichok et al. [5] used the response surface method (RSM) and modified differential evolution (MDE) to optimize the friction stir welding process. They concluded that the RSM–MDE approach increased the joint tensile strength by 1.48%. Sulaiman et al. [6] studied the effect of welding parameters, current, voltage, speed, wire feed, and shielding gas on distortion produced in T and butt-jointed steel plates. Kshirsagar et al. [7] optimized TIG welding parameters using the Nelder–Mead algorithm. They used welding current and speed as the main input parameters to optimize weld bead geometry. Tomków et al. [8] discussed the influence of tack weld distribution and the welding sequence on welding induced distortion. Weld sequence optimization is treated as a separate subject. M. Asadi et al. [9] proposed weld sequence optimization of panel structures using the joint rigidity method. In this research, control of welding induced distortion is managed at the design stage with the use of finite element simulation. The criterion for selecting the optimum welding path is based on the joint’s rigidity. Hdz et al. [10] proposed welding sequence optimization through a Q-learning algorithm. Q-learning is a subclass of reinforcement learning, which is an established branch of machine learning. In reinforcement learning, an agent that is a robot finds the optimum path in a confined environment by advancing through different states within that environment. To achieve a certain goal, the agent gets a reward at each step during the pathfinding process. The reward-based system is sequential and targeted to achieve the main objective. The authors have drawn an analogy between the agent, in this case, the welding robot, and states that are weld segments. Whenever the welding robot welds a weld segment it gets a reward according to the reciprocal of the amount of distortion produced during welding. The lesser the distortion, the greater will be the reward. Artificial intelligence was used by Yang et al. [11], who used a deep learning algorithm for visual inspection of the laser welding process.
Welding parameter optimization and welding sequence optimization are both combinatorial problems in nature. If there are k   number of welding parameters under study and each parameter has two levels, the full factorial design will consist of 2 k experiments. Similarly, for the welding sequence, the number of welding sequence combinations ( N ) are decided by N   =   n r   ×   r ! where n is the number of welding directions and   r is the number of weld passes. If welding parameters and sequence optimization are treated simultaneously, the number of experiments increases exponentially. Islam et al. [12] proposed a FEM–RSM–GA-based approach for minimization of welding distortion at the design stage. The welding process parameters and weld sequence are simultaneously studied in this work. The optimum weld parameters are selected by the response surface method and further optimized by a genetic algorithm (GA). The authors used a steel sample with a lap joint having two weld segments that can be welded in six possible weld sequences with two welding robots. During the last step of optimization, i.e., GA-based optimization, only one weld sequence was used, and the focus of the research was to find the optimum process parameters. It took 75 weld simulations to achieve the required goal.
The balancing of the experiment matrix is another problem that researchers have faced while addressing the optimization of the complete weld process. The number of weld parameters selected for optimization study ranges from three to four parameters in one optimization run, while the number of weld segments ranges from four to a few hundred. Therefore, the total number of experiments required to find the optimum solution increases exponentially. As an example, consider three welding parameters, i.e., welding current, speed, and torch angle, with 3 levels for each parameter; for example, the welding current has three levels of 100, 120, and 140 A, and the same goes for the other two parameters. A central composite design for this type of experiment requires nine experimental runs with an additional three central runs for error detection. In each experimental run, a different level of weld parameter is used. Taguchi L9 orthogonal array will also require nine experiments. In this scenario, if a weld sequence is added with the optimization study having four weld segments to be welded in two weld directions, the number of weld sequences will be 2 4   ×   4 ! . A total of 384 weld sequences need to be investigated. It is therefore not feasible to search for optimum weld parameters along with an optimum weld sequence with the design of experiment approach. Other optimization techniques, such as GA and Artificial Neural Networks, have been used by various researchers. Kim [13] used GA and the traveling salesman problem to solve single pass multi-weld sequence optimization. The genetic algorithm searches the whole design space with a set of solutions called chromosomes. The solutions are modified and updated based on crossover and mutation. There are two problems with this kind of heuristic: in a welding optimization problem, one might come across a solution set that is not feasible or practically applicable, i.e., a combination of welding speed, current, and voltage at which welding of the base material to be tested is not possible at all. The other problem is in searching the whole space for a feasible set of solutions. Simulation of the welding process requires extensive time, and hence computational cost, for a single run of a solution set. The computational requirement of welding process simulation by finite element analysis is well known and has been reported in various research works. Deshpande [14] discussed the comparison of commercial software for simulation of the welding process. A single weld in a plate size of 100 mm × 50 mm took 160 min for complete simulation. Mitra [15] reported the computational time, the type of processor, and the RAM used in simulating the welding process. It took 49.96 h for 600 weld beads using a 3.6 GHz Intel Xeon processor with 48 GB of RAM. Goldak and Asadi [16] studied an industrial problem with 24 weld sub-passes. The design of experiment approach was used to optimize the weld sequence in 32 runs. It took 16 days of computational time by running eight projects at a time on a dual processor with eight cores. In the present research, a framework is proposed to minimize welding induced distortion by finding a combination of the optimum weld parameters and optimum weld sequence. It is a sequential approach in which optimum weld parameters are selected using the response surface method. In the second phase, weld sequence optimization is achieved by the reinforcement learning-based technique, Q-learning. During the weld parameter optimization, the length of the weld bead is limited to a shorter length with a single pass. The present study combines both weld parameter optimization and weld sequence optimization in a framework. However, the scope of this study does not include the influence of tack weld distribution. The framework of the complete optimization process is discussed in the next section.

2. Framework of Welding Optimization

A flow chart of the complete welding optimization process is given in Figure 1. The whole process can be divided into two phases. The first phase focuses on optimization of weld parameters. The weld sequence is kept constant during this phase. After selection of the optimum weld parameters, welding sequence optimization is carried out. The first step of weld parameter optimization constitutes running the weld simulation with random weld parameters. A test sample is prepared to verify the simulation results. The finite element model used in weld simulation is calibrated by comparison of distortion results with the test sample. Selection of critical weld parameters that influence distortion induced during welding is completed at this stage. In this research, the three weld parameters of welding current, speed, and voltage are selected. In terms of the design of the experiment study, these parameters are called factors and the response to be studied is the overall distortion produced during welding. The next step is to select the level of each factor and to fill the design of the experiment table. A detailed discussion on the selection of the experimental design matrix is presented in Section 4. The third step is to simulate the welding process by changing the parameter values.
The results of experiments, i.e., distortion produced during welding, are stored in the response column of the DOE matrix. In the fourth step, regression analysis is performed to check the estimate of error, interactions between factors of the model, and the quadratic effects or curvature. In the next step, response surface and 2D contour plots of two-factor interaction are generated. Further optimization of weld parameters is achieved by using the regression equation. After finding the optimum weld parameters, the second phase of weld sequence optimization starts. The start and end positions of weld segments are defined as states, and the action, i.e., welding, is performed between these states. On moving from one state to the next neighboring state, the welding process is simulated and the distortion produced for this action is noted. A reward is generated based on the reciprocal of distortion produced. A state value function is evaluated based on reward. After several iterations, the optimum weld sequence is selected based on the highest reward and state value function.
In the last step, weld simulation of a single weld segment is performed one at a time, unlike optimization techniques such as the GA where a complete solution is required to be compared between a population. This saves the computational cost of the whole process. The optimum weld sequence is compared with other weld sequences and the same weld sequence with different weld parameters to verify the results of the process. The final verification is performed by comparison of simulation results with experimentally measured distortion in the test sample. The test sample is prepared by using optimum weld parameters and weld sequence. The process of weld simulation by finite element analysis is explained in the next section.

3. Welding Simulation

The test sample chosen for simulation of the welding process is 3 mm ASTM A36 steel. This steel grade is used extensively in a wide range of engineering applications [17]. Dimensions (in millimeters) of the sample are given in Figure 2. Two plates of size 35 mm × 170 mm are welded in a lap joint configuration with an overlap of 6 mm.
The length of the weld bead, which is placed in the middle of the plates for symmetry, is 70 mm. The biased meshing of both plates is implemented with refinement near the welding edges. A total of 3400 elements are used in one plate, as shown in Figure 3. Solid 8-node brick elements are used to avoid convergence problems during the solution phase. A fillet weld of 3 mm leg length is included in the FE model. The mechanical boundary conditions include clamps on the four corners of the plate and support at the bottom of the plate. Weld simulation analysis is performed in two parts. In the first part, transient thermal analysis is performed. The temperature dependent thermal and mechanical properties (thermal conductivity, specific heat, elastic modulus, yield strength, thermal expansion coefficient) used in the simulations are extracted from the work of Chang et al. [17]. Heat is applied to the weld bead geometry using a double ellipsoidal heat source proposed by Goldak [18], with front side 2 mm, rear side 7.3 mm, width 3.7 mm, and depth 3 mm.
The moving heat source is translated in the weld direction. The concept of element birth and death is used to make the weld bead elements alive at the time of heat input in the weld zone. In the transient structural analysis, temperature history from the thermal analysis is used as the loads applied to the model. The focus of this weld simulation is to calculate the distortion produced during welding. To verify the result of welding analysis and to calibrate the heat source parameters, test samples are prepared from steel plates. A test sample is shown in Figure 4.
The samples are welded with the same configuration and parameters as used for the welding simulation. The distortion produced during welding is measured and the results are compared with simulated distortion values. Distortion is measured along the edge of the bottom plate because the maximum distortion was observed on that edge. These distortion values are measured using a coordinate measuring machine. The actual weld results are in close agreement with the simulated results. A graph of actual and simulated results along the edge of the bottom plate is shown in Figure 5.
The stage is set to use weld simulations to run the design of experiment procedure for weld parameter optimization.

4. Weld Parameter Optimization

In this research, the weld parameters selected are welding current, speed, and voltage. The combination of welding current and speed provides the heat in watts to produce sound welds. Welding speed in mm/s expresses the amount of heat the base metal receives during welding. All three factors are related to heat-input during the welding process. The amount of heat is related to temperature rise and variation within the base metal, which produces residual stress and distortion. Wahab et al. [19] have studied the influence of welding speed and current on the shape of weld pool geometry. Okano [20] developed an arc physics-based heat sourced model to study distortion produced during welding. The weld parameters used in this research are welding current, speed, and voltage. These parameters are varied to find the final distorted shape of the specimen. Guo et al. [21], in their experimental study on distortion measurement, related the longitudinal shrinkage in the base metal directly to heat input. The main factors of heat input are welding, current, speed, and voltage. The level of factors selected for the experimental run is another critical aspect of DOE. In this research, three levels of each factor are selected. To cover the entire design space, the highest and lowest levels selected should be the maximum current, the minimum current, the highest welding speed, the lowest welding speed, and so on. The combination of these extreme conditions produces unfeasible solutions. There might be an experimental run in which a combination of the highest welding current and highest voltage comes with the lowest speed. This combination will generate a high amount of heat which will be practically not possible. To overcome this situation, the response surface method technique is used. The first step in the response surface method is to select sets of parameters or factors with small increments. In the welding optimization case, if the welding current of 100 A is selected as a lower limit, the higher and middle terms will be selected in increments of 5 to 10 A. The three levels of current will then be 100, 105, and 110 A. The response surface method also defines a path of improvement for searching the optimum parameters. It is an iterative process: the factors are incremented in each iteration until the stationary point is reached.

4.1. DOE Matrix

The most popular design for fitting models in the response surface method is the central composite design (CCD) [22]. The central composite design consists of central runs at the extreme corners of the design space.
As an example, if +1 and −1 are the lowest and highest levels of two factors used, then the central composite design will consist of a combination of (−1−1), (−1+1), (+1−1), and (+1+1). The central run and axial run will be in between. In the systems in which extreme conditions need to be avoided, a modified version of central composite design, called the spherical CCD, is used. Spherical CCD is rotatable, which means the variation of every point that has the same distance from the center is the same. CCD is recommended for three to five central runs. Another design that has the property of rotatability is the Box–Behnken design. This design was initially proposed for three-level factor runs [22]. The Box–Behnken design is spherical, as the points to be tested for experiments lie in the middle of the cube and not at the corner, as is the case with CCD. The three factors with three levels at the stationary point used in this research are presented in Table 1. This is a typical representation of a Box–Behnken design with three central runs.
In Figure 6, the design runs are shown on the respective axis in a cube. The bottom corner of the cube represents the lower levels of each factor. There are no experimental runs on the extreme corners of the cube.
The yellow dot on the front face of the cube represents the first experimental run, with welding current 140 A, voltage 19 V, and a welding speed of 8.5 mm/s. The blue dot represents the ninth experimental run in Table 1. The green dot represents the third experimental run, and the black dot represents the tenth experimental run. On the front face of the cube, welding voltage is constant during all four experiments, while welding speed and voltage vary from mid-point to the maximum level. The weld process simulation of each experiment is performed by finite element analysis. The distortion produced during welding is observed and analyzed with the help of regression analysis.

4.2. Regression Analysis

Regression analysis provides a mathematical model for interacting terms of factors under study. It also provides the path and step sizes for searching for the optimum solution. A linear model is used to find the path of steepest descent. At the stationary point, a full quadratic analysis is run. The mathematical model with interacting terms is given in Equation (1).
T o t a l   D i s t o r t i o n   =   34.1     0.383 X 1     0.55 X 2     0.10 X 3   +   0.001443 X 1 2   +   0.0143 X 2 2 +   0.187 X 3 2   +   0.00350 X 1 X 2     0.01350 X 1 X 3     0.0550 X 2 X 3
In the above equation, variable X 1 is the current, X 2 is the voltage, and X 3 is speed. The coefficients of regression: β 0 is 34.1, β 1 is 0.383, β 2 is 0.55, and β 3 is 0.10, and so on. The interacting terms β 12 , β 13 , β 23 are also present in the equation. As explained in Section 4, all the factors, i.e., welding current, voltage, and speed contribute to the heat produced during welding, and hence are major contributors to the amount of distortion produced during welding. The interacting term X 1 X 2 , which is the product of current and voltage, if multiplied by arc efficiency gives the overall heat input of the welding process. Similarly, when this product is divided by the welding speed, it gives the amount of heat supplied per unit length in units of J/cm.

4.3. Response Surface

Response surfaces generated in the optimization study are given in Figure 7a–c. The maximum distortion produced during welding is plotted against the parameters of current, speed, and voltage. All three response surfaces show a saddle-like curve, because the main objective was to minimize the distortion. In Figure 7a, the distortion is minimum for the current of 150 A and a welding speed of 8.5 mm/s. The value of the distortion slightly increases on the lower current side, which is 140 A, and shows a substantial increase towards 160 A. In Figure 7b,c, it can be seen that a low voltage of 19 V produces a minimum distortion value.

4.4. Contour Plots and Optimization

The response surfaces give a general idea of the optimum value for each factor under study. Contour plots can be studied to find limits for each factor. Contour plots are 2D plots; therefore, for design optimization of three variables, contour plots of two variables can be generated by keeping the third variable constant.
The minimum value of distortion observed in response surfaces, as shown in Figure 7, is less than 0.4 mm. The contour plot in Figure 8 shows that a distortion value of less than 0.4 mm can be achieved by setting the welding current between 147 and 150 A. The welding speed between 8.4 and 8.6 gives good results in terms of distortion produced. It can be observed from contour lines in Figure 8 that a value of current above 150 A will increase distortion from 0.5 to 0.7 mm. The contour plot, shown in Figure 9, is distortion vs. speed and voltage. It can be observed from this contour plot that at a welding speed of 8.5 mm/s, the voltage should be kept at a minimum of 19 V. The distortion can be minimized to 0.35 mm by reducing voltage. The minimum distortion observed during all experimental runs, as per Table 1, was 0.4 mm. After studying contour plots, optimum parameters were selected, which are shown in Table 2. A weld simulation procedure is performed to test these parameters. The welding distortion observed is 0.38 mm. The result of the weld simulation with the final distorted shape is shown in Figure 10. The optimum weld parameters were utilized for the weld sequence optimization, to be discussed in the next section.

5. Weld Sequence Optimization

Weld sequence optimization involves selecting the optimum path from a combination of weld segments. In this research, Q-learning based optimization is used. It is based on the Markov reward process for decision making. An analogy between the artificial intelligence environment can easily be drawn for the welding process. In artificial intelligence, an agent, which is usually a robot, has to find the optimum path by moving from state to state within a certain environment. The movement from one state to another is called action. In the welding process, the welding robot changes position from one state, in this case, the start of the weld segment, to another state. The action performed is welding. The amount of welding induced distortion produced by this action gets a reward proportional to the reciprocal of distortion. If the probabilities or rewards are unknown, and the action to be taken is unknown, then this is a typical case of reinforcement learning [23]. Q-learning and artificial intelligence-based techniques have been used in the past for welding path optimization. Okumoto [24] used reinforcement learning to optimize the weld path sequence in ship hull block welding. The ship hull block has several closely knitted weld joints. The movement of the welding robot truck system to weld these joints was optimized using Q-learning. Recent research work includes a patent by Yoshida et al. [25], which uses reinforcement learning for monitoring and improving arc weld conditions. Hdz et al. [10] have used Q-learning for optimization of the weld sequence for weld distortion minimization. The Q-learning based algorithm was tested on a bracket assembly to find the optimum weld sequence which produced minimum distortion during welding. In the present research, a lap joint configuration is used for weld sequence optimization. The lap joint case is similar to the weld configuration used in weld parameter optimization.

5.1. Lap Joint Case Study

The weld configuration for sequence optimization is shown in Figure 11. Two steel plates of 3 mm thickness have an overlap of 6 mm. The overall length of the plate is 260 mm. Weld segments of 40 mm each are to be welded 50 mm from the edge of the plate.
The weld segments can be welded in two directions. The direction along the positive y-axis is represented by a ‘+’ sign, while the reverse or backward welding is represented by a ‘−’ sign. The total number of weld sequences N is given in Equation (2).
N   =   2 4   ×   4 !   =   384
The computational time is 15 min for a welding simulation of a four-segment lap joint on a normal workstation (32 GB RAM Octa-core Processor). The total time required for exploration of all welding sequences for this simple case will be 96 h or 4 days. The numbers encircled in Figure 11 are the states, i.e., weld segment 2 is welded by moving the agent/welding robot from state 2 to state 3. The same weld segment can be welded by moving from state 3 to state 2. The programming steps for welding sequence optimization through the Q algorithm are given below.
Algorithm 1 Welding Sequence Optimization
N = number of weld segments
A = state action matrix
C = coordinate matrix for each state
α = learning rate
γ = discount factor
1initiate reward matrix R   =   N   ×   N   =   0
2initiate Q matrix Q   =   N   ×   N   =   0
3Initial value of maximum reward R m a x   =   0
4for t = number of exploration iterations
5 generate random welding sequence
6 Store in A
7 if positive welding direction is selected
8 delete the corresponding negative direction
9 end
10 for r   =   1   t o   N
11 calculate vector sum of last final state to next initial state using C matrix
12 Calculate reward and update R matrix
13 end
14 for q   =   1   t o   N
15 Update Q matrix for every state action combination
16 Q ( s , a ) Q ( s , a ) + α { R ( s , a ) + γ · max a   Q ( s , a ) Q ( s , a ) }
17 end
18 R s u m = sum of all elements of matrix R
19 If R s u m > R m a x
20 R s u m   =   R m a x
21 end
22end
23for t = number of exploitation iterations
24 generate welding sequence based on maximum Q value
25 Repeat step 6 to 22
26end
27Plot (t, R s u m )
In generating a random welding sequence, a check is introduced in step 7 to delete the corresponding reverse state action, i.e., if the welding segment + 1 is selected then the reverse welding segment − 1 is deleted from the selection matrix. The reward for the transition from the current state to the next state is calculated by Equation (3).
R   =   ( C x 1 C x 2 ) 2 + ( C y 1 C y 2 ) 2
In the above equation, C x 1 is the x-coordinate of state 1, which is the current state, and C x 2 is the x-coordinate of the future state, which is selected based on a higher Q value in the exploitation phase. Similarly, C y 1 and C y 2 are the corresponding values of y-coordinates. Equation (3) gives a reward for 2D problems or weld segments lying on the same plane. For 3D problems, Equation (3) can be extended using z-coordinates for vectors in 3D space. The reward system proposed in this research reinforces the welding robots to adopt a skip welding sequence that has a balancing effect. If welding heat and shrinkage forces are produced in one corner of the welding assembly, the welding robot moves to the next opposite corner to counter the shrinkage force. The reward system enforces the robot to adopt this pattern. The optimum weld sequence obtained after 160 iterations is shown in Figure 12. This welding sequence is in line with the best welding practices used by welders to avoid distortion by using a back-step or skip welding. This technique is explained by Bill Lucas [26] in an article published by the UK welding society, TWI (The Welding Institute).
The optimum welding sequence could have been started with −1 + 4 with a maximum reward. In that case, the remaining weld segments (±2 and ±3) would be very close to each other and would result in heat accumulation in that region. The temperature map demonstrating temperature evolution during different phases of the weld sequence, including the cooling phase, is shown in Figure 13.
The welding simulation is performed by using the weld parameters mentioned in Table 2. These weld parameters were optimized during the response surface optimization study. Welding simulation is performed with optimum welding parameters and a random welding sequence. The maximum distortion observed is 2.2 mm, as shown in Figure 14. The optimum weld sequence is obtained by 115 iterations. The computational time for these iterations is less than a minute. The methodology proposed by Hdz et al. [10] involves welding simulation during MDP (Markovian Decision Process) to calculate the reward for each transition state. To run one iteration, a complete welding simulation is required.
The iteration number 1–50 in Figure 15 is the exploration phase. In this phase, a maximum reward of 284 is observed. From iteration number 50 onwards, a maximum reward of 324 is achieved. In this phase, the minimum reward is 200. The learning rate ‘α’ is 0.5 and the discount rate ‘γ’ used in this algorithm is 0.8. The distortion produced during the simulation of the optimum weld sequence is shown in Figure 16.
Finally, a test sample is prepared to validate the results of minimum distortion obtained under optimized weld parameters and weld sequence. The test sample is shown in Figure 17. In the test sample, welding distortion is measured along the edge of the bottom plate. The distortion values are plotted against the distance along the length of the plate, as shown in Figure 18. The results show agreement between the distortion values of the optimum weld simulation and the test sample.

5.2. Vent Panel Case Study

Rectangular or square tube vent panels are used in air conditioning ducts, as flow straighteners, and for EMI (Electromagnetic Interference) shielding purposes. In this case study, a 15-cell vent panel is considered with square tubes of size 25 mm × 25 mm. The 15 tubes are cut to the length of 125 mm and joined together to form an airflow vent panel, as shown in Figure 19.
There are 22 weld segments that join the square tube sections to form the vent panel assembly. As discussed in the lap joint case study, all the weld segments can be welded in two directions. The total number of possible weld sequences and the number of states to be visited by a welding robot are given in Figure 20. States 1, 11, 14, and 24 are not utilized; they are used for numbering consistency. A total number of 44 actions are entered in the state action matrix. The coordinate of each state is stored in a separate matrix. The reinforcement learning algorithm mentioned in Section 5.1 is used to find an optimum welding sequence.
The number of initial iterations has been increased to 800. This is executed to expand the exploration phase and populate the Q matrix. To calculate the reward matrix, each dimension is divided by 25 mm. The reward is constrained in the range from 1 to 100 to manage the plotting of iteration number vs. reward. The plot for iteration number ‘n’ vs. reward ‘R’ is shown in Figure 21.
For the first 1000 iterations, the average reward is 62. The last 50 iterations have an average of 75. The maximum reward of 78.95 is observed at iteration number 112. The optimum sequence for this episode is given in Figure 22.
The sign convention used in the optimum sequence is ‘ + ’, or forward, for a lower number state to a higher number state, i.e., in the transition from state 2 to 4, + 2 is used. Similarly, the transition from a higher number state to a lower number state is represented by a ‘−’ sign, or reverse direction. The direction and location of welds have a balancing effect, as discussed in the previous section. The welding segment pairs + 2, 9 and 1, 19 are examples of such combinations. The optimum welding sequence is simulated to find minimum distortion.
The optimum weld parameters for the butt joint configuration are calculated by procedures mentioned in Section 4. The value for optimum weld parameters is given in Table 3.
The temperature profile after the second weld segment is shown in Figure 23. The heat flux does not accumulate at any instant within the whole assembly to be welded. The distortion induced due to welding is shown in Figure 24. The value of maximum distortion is 0.22 mm.

6. Conclusions

In this research, an effort has been made to combine the weld parameter and weld sequence optimization in a framework. The output of this framework is minimum welding induced distortion for a given base material and joint configuration. The framework devised in this research gives a comprehensive approach for weld induced distortion mitigation at the design stage. The following tasks were performed.
  • Weld simulations of 3 mm thick steel plates in a lap joint configuration were performed using finite element analysis. Three weld parameters i.e., welding current, voltage, and speed were selected for optimization through the design of experiment and response surface method. The optimum weld parameters were selected by studying contour plots obtained from the regression analysis.
  • In the next phase, weld sequence optimization was performed using the optimum weld parameters. Q-learning based reinforcement learning was efficiently applied to find the optimum weld sequence.
  • A comparison of the results revealed that minimum distortion is produced during weld simulations of an optimum weld sequence having optimum weld parameters. The combination of weld parameters and weld sequence optimization reduces the welding induced distortion by 19%. A test sample validates the simulated results.
  • In a further case study, square tubes were welded together to form a vent panel assembly. The optimum weld parameters and weld sequence were found to predict minimum distortion in the structure.

Author Contributions

Finite element modeling and welding simulation, reinforcement learning algorithm, weld sequence optimization, R.W.; Framework design, weld parameter optimization and proofreading, H.A.S.; Conduct of experiments and results validation, S.U.B.; Characterization of material for welding simulation, design of experiments, regression analysis, B.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

There is no conflict of interest in ideas presented in this article.

References

  1. Yi, H.-J.; Kim, J.-Y.; Yoon, J.-H.; Kang, S.-S. Investigations on welding residual stress and distortion in a cylinder assembly by means of a 3D finite element method and experiments. J. Mech. Sci. Technol. 2012, 25, 3185–3193. [Google Scholar] [CrossRef]
  2. Daniyan, I.A.; Mpofu, K.; Adeodu, A.O. Optimization of welding parameters using Taguchi and response surface methodology for rail car bracket assembly. Int. J. Adv. Manuf. Technol. 2019, 100, 2221–2228. [Google Scholar] [CrossRef]
  3. Liu, G.; Gao, X.; Peng, C.; Huang, Y.; Fang, H.; Zhang, Y.; You, D.; Nanfeng, Z. Optimization of laser welding of DP780 to Al5052 joints for weld width and lap-shear force using response surface methodology. Opt. Laser Technol. 2020, 126, 106072. [Google Scholar] [CrossRef]
  4. Zuo, Y.; Kong, L.; Liu, Z.; Lv, Z.; Wen, H. Process parameters optimization of refill friction stir spot welded Al/Cu joint by response surface method. Trans. Indian Inst. Met. 2020, 73, 2975–2984. [Google Scholar] [CrossRef]
  5. Srichok, T.; Pitakaso, R.; Sethanan, K.; Sirirak, W.; Kwangmuang, P. Combined response surface method and modified differential evolution for parameter optimization of friction stir welding. Processes 2020, 8, 1080. [Google Scholar] [CrossRef]
  6. Sulaiman, M.S.; Manurung, Y.H.; Haruman, E.; Rahim, M.R.A.; Redza, M.R.; Lidam, R.N.A.; Abas, S.K.; Tham, G.; Chau, C.Y. Simulation and experimental study on distortion of butt and T-joints using WELD PLANNER. J. Mech. Sci. Technol. 2011, 25, 2641–2646. [Google Scholar] [CrossRef]
  7. Kshirsagar, R.; Jones, S.; Lawrence, J.; Tabor, J. Optimization of TIG welding parameters using a hybrid nelder mead-evolutionary algorithms method. J. Manuf. Mater. Process. 2020, 4, 10. [Google Scholar] [CrossRef] [Green Version]
  8. Tomków, J.; Sobota, K.; Krajewski, S. Influence of tack welds distribution and welding sequence on the angular distortion of tig welded joint. Facta Univ. Ser. Mech. Eng. 2020, 18, 611–621. [Google Scholar] [CrossRef]
  9. Asadi, M.; Kashani, M.T.; Mohseni, M.; Smith, M. A Designer-driven welding simulation analysis to define the best weld sequence for panel structures. In Proceedings of the ASME 2018 Pressure Vessels and Piping Conference, Prague, Czech Republic, 15–20 July 2018; American Society of Mechanical Engineers Digital: New York, NY, USA, 2018. [Google Scholar] [CrossRef]
  10. Romero-Hdz, J.; Saha, B.; Toledo-Ramirez, G.; Lopez-Juarez, I. A Reinforcement learning based approach for welding sequence optimization. In Transactions Intelligent Welding Manufacturing; Springer: Singapore, 2018; pp. 33–45. [Google Scholar] [CrossRef]
  11. Yang, Y.; Pan, L.; Ma, J.; Yang, R.; Zhu, Y.; Yang, Y.; Zhang, L. A high-performance deep learning algorithm for the automated optical inspection of laser welding. Appl. Sci. 2020, 10, 933. [Google Scholar] [CrossRef] [Green Version]
  12. Islam, M.; Buijk, A.; Rais-Rohani, M.; Motoyama, K. Process parameter optimization of lap joint fillet weld based on FEM–RSM–GA integration technique. Adv. Eng. Softw. 2015, 79, 127–136. [Google Scholar] [CrossRef] [Green Version]
  13. Kim, K.; Kim, D.; Nnaji, B.O. Robot arc welding task sequencing using genetic algorithms. IIE Trans. 2002, 34, 865–880. [Google Scholar] [CrossRef]
  14. Deshpande, A.A.; Tanner, D.; Sun, W.; Hyde, T.H.; McCartney, G. Combined butt joint welding and post weld heat treatment simulation using SYSWELD and ABAQUS. Proc. Inst. Mech. Eng. Part L J. Mater. Des. Appl. 2011, 225, 1–10. [Google Scholar] [CrossRef]
  15. Mitra, A.; Prasad, N.S.; Ram, G.J. Estimation of residual stresses in an 800 mm thick steel submerged arc weldment. J. Mater. Process. Technol. 2016, 229, 181–190. [Google Scholar] [CrossRef]
  16. Goldak, J.; Asadi, M. Computational Weld Mechanics and Optimization of Welding Procedures, Welds, and Welded Structures. Trans. JWRI 2012, 55–60. Available online: https://ir.library.osaka-u.ac.jp/repo/ouka/all/23067/jwri_wse2011_055.pdf (accessed on 25 July 2021).
  17. Chang, P.-H.; Teng, T.-L. Numerical and experimental investigations on the residual stresses of the butt-welded joints. Comput. Mater. Sci. 2004, 29, 511–522. [Google Scholar] [CrossRef]
  18. Goldak, J.; Chakravarti, A.; Bibby, M. A new finite element model for welding heat sources. Met. Mater. Trans. A 1984, 15, 299–305. [Google Scholar] [CrossRef]
  19. Wahab, M.; Painter, M. Numerical models of gas metal arc welds using experimentally determined weld pool shapes as the representation of the welding heat source. Int. J. Press. Vessel. Pip. 1997, 73, 153–159. [Google Scholar] [CrossRef]
  20. Okano, S.; Tanaka, M.; Mochizuki, M. Arc physics-based heat source modelling for numerical simulation of weld residual stress and distortion. Sci. Technol. Weld. Join. 2013, 16, 209–214. [Google Scholar] [CrossRef]
  21. Guo, N.; Yin, X.-Q.; Liang, J.; Ma, N. Effects of heat input on welding buckling distortion by experimental measurement method. Sci. Technol. Weld. Join. 2017, 22, 381–388. [Google Scholar] [CrossRef]
  22. Montgomery, D.C. Design and Analysis of Experiments, 8th ed.; John Wiley and Sons: Hoboken, NJ, USA, 2013; pp. 478–544. [Google Scholar]
  23. Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction, 2nd ed.; MIT Press: Cambridge, MA, USA, 2018; pp. 119–138. [Google Scholar]
  24. Okumoto, Y. Optimization of welding route by automatic machine using reinforcement learning method. J. Ship Prod. 2008, 24, 135–138. [Google Scholar] [CrossRef]
  25. Yoshida, S.; Mori, M.; Nakayama, K. Machine Learning Device, Arc Welding Control Device, Arc Welding Robot System, and Welding System. U.S. Patent 10,500,668, 10 December 2019. [Google Scholar]
  26. Lucas, B.; Verhaeghe, G.; Leggatt, R.; Mathers, G. Distortion Control—Prevention by Fabrication Techniques. Available online: https://www.twi-global.com/technical-knowledge/job-knowledge/distortion-control-prevention-by-fabrication-techniques-036 (accessed on 25 July 2021).
Figure 1. Flow chart of weld optimization for distortion mitigation.
Figure 1. Flow chart of weld optimization for distortion mitigation.
Coatings 11 01227 g001
Figure 2. Dimensional model of lap joint.
Figure 2. Dimensional model of lap joint.
Coatings 11 01227 g002
Figure 3. Finite element model of the sample plate.
Figure 3. Finite element model of the sample plate.
Coatings 11 01227 g003
Figure 4. Test sample for calibration.
Figure 4. Test sample for calibration.
Coatings 11 01227 g004
Figure 5. Actual vs. simulated distortion in edge of bottom plate.
Figure 5. Actual vs. simulated distortion in edge of bottom plate.
Coatings 11 01227 g005
Figure 6. Weld parameters in Box–Behnken design.
Figure 6. Weld parameters in Box–Behnken design.
Coatings 11 01227 g006
Figure 7. Response surfaces of weld parameters vs. distortion; (a) current and voltage; (b) current and speed; (c) voltage and speed.
Figure 7. Response surfaces of weld parameters vs. distortion; (a) current and voltage; (b) current and speed; (c) voltage and speed.
Coatings 11 01227 g007
Figure 8. Contour Plot of Distortion vs. Current, Speed.
Figure 8. Contour Plot of Distortion vs. Current, Speed.
Coatings 11 01227 g008
Figure 9. Contour Plot of Distortion vs. Speed, Voltage.
Figure 9. Contour Plot of Distortion vs. Speed, Voltage.
Coatings 11 01227 g009
Figure 10. Maximum distortion using optimum weld parameters.
Figure 10. Maximum distortion using optimum weld parameters.
Coatings 11 01227 g010
Figure 11. Dimensional model of weld sequence optimization study.
Figure 11. Dimensional model of weld sequence optimization study.
Coatings 11 01227 g011
Figure 12. Optimum Welding Sequence.
Figure 12. Optimum Welding Sequence.
Coatings 11 01227 g012
Figure 13. Temperature profile of 4 weld segments and cooling phase of base metal.
Figure 13. Temperature profile of 4 weld segments and cooling phase of base metal.
Coatings 11 01227 g013
Figure 14. Distortion produced in random welding sequence.
Figure 14. Distortion produced in random welding sequence.
Coatings 11 01227 g014
Figure 15. Reward for each episode/iteration.
Figure 15. Reward for each episode/iteration.
Coatings 11 01227 g015
Figure 16. Total distortion produced in optimum weld sequence.
Figure 16. Total distortion produced in optimum weld sequence.
Coatings 11 01227 g016
Figure 17. Test sample of optimum weld sequence.
Figure 17. Test sample of optimum weld sequence.
Coatings 11 01227 g017
Figure 18. Comparison of optimum weld simulation with test sample.
Figure 18. Comparison of optimum weld simulation with test sample.
Coatings 11 01227 g018
Figure 19. Vent panel model.
Figure 19. Vent panel model.
Coatings 11 01227 g019
Figure 20. State action diagram for vent panel.
Figure 20. State action diagram for vent panel.
Coatings 11 01227 g020
Figure 21. Iteration n vs. reward R for vent panel.
Figure 21. Iteration n vs. reward R for vent panel.
Coatings 11 01227 g021
Figure 22. Optimum welding sequence for vent panel.
Figure 22. Optimum welding sequence for vent panel.
Coatings 11 01227 g022
Figure 23. Temperature profile of vent panel assembly.
Figure 23. Temperature profile of vent panel assembly.
Coatings 11 01227 g023
Figure 24. Welding induced distortion in vent panel.
Figure 24. Welding induced distortion in vent panel.
Coatings 11 01227 g024
Table 1. DOE Matrix.
Table 1. DOE Matrix.
Experimental Run X 1 = Current
(A)
X 2 = Voltage
(V)
X 3 = Speed
(mm/s)
1140198.5
2140218.5
3160198.5
4160218.5
5140208
6140209
7160208
8160209
9150198
10150199
11150218
12150219
13150208.5
14150208.5
15150208.5
Table 2. Optimum weld parameters.
Table 2. Optimum weld parameters.
CurrentVoltageSpeed
148 A19 V8.4 mm/s
Table 3. Optimum weld parameters for vent panel.
Table 3. Optimum weld parameters for vent panel.
CurrentVoltageSpeed
70 A11 V4.5 mm/s
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Waheed, R.; Saeed, H.A.; Butt, S.U.; Anjum, B. Framework for Mitigation of Welding Induced Distortion through Response Surface Method and Reinforcement Learning. Coatings 2021, 11, 1227. https://doi.org/10.3390/coatings11101227

AMA Style

Waheed R, Saeed HA, Butt SU, Anjum B. Framework for Mitigation of Welding Induced Distortion through Response Surface Method and Reinforcement Learning. Coatings. 2021; 11(10):1227. https://doi.org/10.3390/coatings11101227

Chicago/Turabian Style

Waheed, Rehan, Hasan Aftab Saeed, Sajid Ullah Butt, and Bilal Anjum. 2021. "Framework for Mitigation of Welding Induced Distortion through Response Surface Method and Reinforcement Learning" Coatings 11, no. 10: 1227. https://doi.org/10.3390/coatings11101227

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop