Next Article in Journal
A Distributed Bi-Behaviors Crow Search Algorithm for Dynamic Multi-Objective Optimization and Many-Objective Optimization Problems
Previous Article in Journal
Numerical Investigation of the Influence of the Wake of Wind Turbines with Different Scales Based on OpenFOAM
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quality Prediction and Parameter Optimisation of Resistance Spot Welding Using Machine Learning

Key Laboratory of Advanced Manufacturing Technology of the Ministry of Education, Guizhou University, Guiyang 550025, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(19), 9625; https://doi.org/10.3390/app12199625
Submission received: 18 August 2022 / Revised: 16 September 2022 / Accepted: 21 September 2022 / Published: 25 September 2022
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
In a small sample welding test space, and to achieve online prediction and self-optimisation of process parameters for the resistance welding joint quality of power lithium battery packs, this paper proposes a welding quality prediction model. The model combines a chaos game optimisation algorithm (CGO) with the multi-output least-squares support vector regression machine (MLSSVR), and a multi-objective process parameter optimisation method based on a particle swarm algorithm. First, the MLSSVR model was constructed, and a hyperparameter optimisation strategy based on CGO was designed. Next, the welding quality was predicted using the CGO–MLSSVR prediction model. Finally, the particle swarm algorithm (PSO) was used to obtain the optimal welding process parameters. The experimental results show that the CGO–MLSSVR prediction model can effectively predict the positive and negative electrode nugget diameters, and tensile shear loads, with root mean square errors of 0.024, 0.039, and 5.379, respectively, which is better than similar methods. The average relative error in weld quality for the optimal welding process parameters is within 4%, and the proposed method has a good application value in the resistance spot welding of power lithium battery packs.

1. Introduction

With the rapid development, globally, of the new energy vehicle industry, the demand for power lithium battery packs is growing. To provide more power and a longer driving range, a single battery pack usually consists of thousands of individual lithium cells connected by connecting tabs to form a series-parallel structure [1]. The manufacturing process of power lithium battery packs involves a large number of welding processes, such as electrode sheet-ear, ear-electrode, and electrode-connector. Common methods used for lithium battery welding include resistance welding, pulsed TIG spot welding, and ultrasonic metal welding [2]. Resistance spot welding uses resistance heating as the welding heat source to produce local heating and material fusion under high current and pressure [3]; this has the advantages of low cost, high efficiency, and good quality controllability, and is particularly suitable for the connection of lithium battery electrodes to the connecting piece. In the context of lightweight automotive manufacturing, the welding quality of power lithium battery packs is particularly important, and its quality directly determines the stability, service life, and safety of the battery pack [4,5]. The lithium battery pack contains thousands of welding joints, and welding defects in any position will affect the performance of the battery pack. For example, if the false welding-head contact resistance is too large to form a voltage difference [6], it will result in overheating and reduce the stability of the battery pack. Furthermore, excessive welding easily causes internal battery positive and negative short circuits [7] which, in turn, cause explosion, creating a potential safety hazard. It is necessary to test the quality of each welded joint.
The quality inspection of resistance-welded joints in industrial production mainly uses off-line inspection methods [8], such as manual random sampling destructive experiments, which have high leakage rates, low efficiency, limitations, and high costs. The resistance spot welding nucleation process is fast and closed, is highly nonlinear, has multivariate coupling characteristics, but lacks professional testing equipment that can monitor the nucleus growth process online. The welding process is accompanied by many signals: electrical, thermal, force, displacement, and others, all of which contain a wealth of information on nucleus growth and performance characteristics that can be used for process monitoring and quality prediction. In recent years, resistance welding quality monitoring techniques based on process data became an area of research interest, and considerable progress was made [9]. Maalouf and Barsoum [10] investigated the effects of welding parameters, such as electrode force, welding current, and welding time, on resistance spot welding nugget size and failure strength, using the kernel ridge regression (KRR) method; they found that welding current and time had the greatest impact, and that the improved algorithm reduced the mean square error compared with the least-squares method. Zamanzad et al. [11] used a deep neural network (DNN) model to predict the width of the fusion nucleus of a spot-welded joint and found that the DNN prediction ability was superior to models such as KNN, KStar, and SVM-eps. For neural networks, the expression between welding parameters and between weld quality is implicit, the choice of their initialisation parameters affects computational efficiency, and the prediction results are prone to overfitting when small sample data sets are used.
Based on predicted welding quality, and to further achieve its control, the process parameters need to be self-adjusting and self-optimising according to the predicted results. Traditional methods for the optimisation of welding process parameters mainly include response surface methodology [12,13] and analysis of variance [14]. Zhao et al. [15] selected the optimal process parameters based on response surface methodology to obtain the required weld quality for small-scale resistance spot welding. Analysis of variance (ANOVA) was used to study the effect of micro resistance welding parameters on the weld quality of titanium alloys, and optimum process parameters were obtained [16]. Although the response surface model can guarantee an optimal solution using a quadratic polynomial model and exact methods (such as the simplex method), it may easily become trapped in a local optimum and fail to solve non-deterministic polynomial-time hardness problems within a reasonable time, when it is faced with highly nonlinear processes and complex problems [17,18].
With the rapid development of modern testing technology, intelligent control technology, and artificial intelligence technology, research on welding quality prediction and process parameter optimisation based on process data developed in the direction of information diversification and algorithm intelligence. Based on the Taguchi method of establishing small sample data sets, Dhawale et al. [19] modelled the relationship between welding process parameters (welding current, welding pressure, sample thickness, number of weld joints, and spacing of weld joints) and tensile shear strength using a regression equation and a particle swarm optimisation method. The maximum deviation between the experimental and optimised results was 0.571741%. Yang et al. [20] combined Kriging with the NSGA-II algorithm to predict and optimise the weld quality and process parameters for laser–EM hybrids; the experimental results showed that this method could reduce the generation of weld defects using a small sample data set.
In summary, the method proposed in the above literature is reliable, and the swarm intelligence optimisation algorithm was used to optimise process parameters for a variety of welding types, such as resistance spot welding (RSW), laser–magnetic hybrid welding (LMW), and gas tungsten arc welding (GTAW) [21], to address practical engineering issues such as non-destructive testing of weld quality, enhancement of mechanical properties, and reduction of welding defects, but there are certain limitations. When predicting welding quality, neural network prediction of multiple welding quality indicators is prone to overfitting phenomena, and the regression model requires that multiple welding quality indicators be combined into a single integrated welding quality indicator for prediction; however, it cannot accurately reflect the relationship between the specific process parameters and welding quality. Moreover, there are few reports relating to the use of regression models to predict multiple indicators simultaneously and solve the generalisation problem of small samples. On the other hand, nugget geometry in weld quality is directly related to tensile shear load. When the nugget size is increased, the tensile shear load first rises; however, after reaching the maximum strength, the increase in nugget size then results in a decrease in the tensile shear load, which may lead to welding defects. At the same time, the quality of the weld is related to the welding voltage and time [22]. It is a difficult technique to guarantee the diameter consistency of two nuggets and to obtain a sufficiently large tensile shear load in single-sided double-joint welding, but few people studied this.
There are limited published data on the application of RSW in the manufacture of power lithium battery packs. In this paper, to address the above issues, a single-sided double-point welding process experiment is carried out on copper–nickel plate material, commonly used in lithium batteries, and welding quality prediction and process optimisation for multivariable outputs in a small sample welding test space are studied. First, a combination of the chaos game optimisation algorithm (CGO) [23] and the multi-output least-squares support vector regression machine (MLSSVR) model [24,25] is proposed. The MLSSVR model was used to establish the characteristic relationship between the process parameters and the quality of welded joints, and the hyperparameters of MLSSVR were optimally sought using the CGO optimisation algorithm. Next, a particle swarm algorithm was used to study the optimisation method of process parameters under multi-objective conditions, and the predicted values in the objective function of the particle swarm optimisation algorithm were provided by the CGO–MLSSVR model. The reliability of the PSO optimisation algorithm was then demonstrated by experimentally verifying the weld quality under optimal process parameters and, finally, comparing the comprehensive performance of CGO–MLSSVR to the conventional MLSSVR and GRNN neural network models.

2. Proposed Approach

In this thesis, the CGO–MLSSVR method for solving the welding quality prediction problem and a particle swarm method for optimising the process parameters are proposed; the implementation of the specific methods is described below.

2.1. CGO–MLSSVR Prediction Model

Support vector regression, which is widely used in prediction tasks for small sample data, produces a better generalisation ability and can solve the dimensional catastrophe problem. By introducing kernel functions, SVR effectively solves the nonlinearity problem [26]. To solve the problem of accurate prediction with multiple inputs and multiple outputs in a small sample, the multi-output least squares support vector regression model was used. The multi-output least squares support vector regression prediction model needs to determine three parameters θ = {γ, λ, ε}; the values of these parameters have a significant impact on the prediction accuracy of the model, where γ and λ are positive real regularisation parameters. The optimal parameter θ for MLSSVR is obtained by the CGO method. The flow chart for the CGO–MLSSVR prediction method is shown in Figure 1. The following set of samples is used: { ( X i , y i ) } i = 1 l with X i d and y i m . Due to the large difference in the order of magnitude between the welding process parameters Xi (welding voltage 1,welding voltage 2,welding time 1,welding time 2,cooling time, slow rise time, and slow drop time) and the welding quality indicators Yi (positive electrode nugget diameter, negative electrode nugget diameter, and tensile shear load), the data are first normalised to map the same dimension to [0, 1] to fit the calculations. Next, the normalised data are divided into training data and test data, and the relevant parameters of the MLSSVR and CGO algorithms are initialised. The CGO algorithm is used to continuously perform the adjustment of various parameter combinations to optimise the training MLSSVR model until the maximum number of iterations is reached. Finally, the MLSSVR model is trained under the optimal hyperparameters θ* and the test data are used to predict the weld quality results and renormalise the predicted results. The regression function for the MLSSVR model is shown in Equation (1), the kernel function of the radial basis function (RBF) is adopted, the formula is Equation (2), and the fitness function for CGO is shown in Equation (3).
y i ¯ = repmat ( i = 1 m j = 1 l α i , j * κ ( X , X j ) , 1 , m ) + m λ j = 1 l α j * κ ( X , X j ) + b * T
κ ( X , X j ) = exp ( ε X , X j 2 ) , ε > 0
RMSE = 1 n i = 1 n ( y i y i ¯ ) 2
where y i ¯ is the predicted value of the MLSSVR model, α* is a vector consisting of Lagrange multipliers, b* is the bias amount, ε is the coefficient of the kernel function, y i is the true value of the weld quality, and n is the number of samples.

2.2. Multi-Objective Particle Swarm Optimisation Algorithm

The basic core of the particle swarm algorithm is to obtain the optimal solution to the problem to be optimised by using information sharing among individuals in the population [27,28]. A population of M particles in a D-dimensional search space is defined, with the position of the ith particle denoted by X i = ( X i 1 , X i 2 , , X i d ) , and the velocity denoted by V i = ( V i 1 , V i 2 , , V i d ) , where i = 1 , 2 , , m . Particle i searches the current space based on the position X i and the velocity V i , for each particle. The individual extreme value P i = ( p i 1 , p i 2 , , p i d ) and the historical best position P g = ( p g 1 , p g 2 , , p g d ) of the population are searched; the position and velocity of the iterated particles are updated according to Equations (4) and (5), and the optimal value after the tth iteration is derived from the fitness formula.
V i d t + 1 = w V i d t + c 1 r 1 ( p i d t X i d t ) + c 2 r 2 ( p g d t X i d t )
X i d t + 1 = X i d t + V i d t
where w is the inertia weight, d = 1, 2, 3, ⋯, D denotes the dimension corresponding to the particle, t is the number of current iterations, c 1 , c 2 are the learning factors, and r 1 , r 2 are the random numbers within [0, 1].
The first method for optimising the resistance spot welding process parameters is based on the principle that the larger the tensile shear load, the better the spot-welding quality within a reasonable range of nugget diameters. The objective function is shown in Equation (6). The second method gives a target value while constraining the nugget size; thus, the smaller the predicted value and the target value, the better the difference between the predicted tensile shear load y p and the actual target tensile shear y obj . The objective function of the particle swarm is shown in Equation (7).
fitness = max ( y ¯ )
fitness = | y ¯ y obj |
Based on the CGO–MLSSVR model for optimising process parameters, Figure 2 shows the flow chart of the proposed integrated approach.

3. Experimental Details

3.1. Materials

In this paper, N6 pure nickel and T2 copper, materials commonly used in lithium batteries, were selected as welding samples. The geometric dimensions and lap forms of the two welding samples are shown in Figure 3. To eliminate the oxide film on the surface of the welded specimen, acetone solvent degreasing and drying treatment are needed before welding.

3.2. Experimental and Measurement Equipment

A copper-nickel sheet single-sided double-point resistance welding test schematic is shown in Figure 4a. The welding power supply uses a homemade variable polarity transistor-type resistance welding power supply with constant current, constant voltage, constant power, and mixed control mode. The power supply has a rated output current of 4 kA, a minimum control cycle of 10 μs, a variable polarity pulse output, and an output accuracy of ±1%. The power supply output is calibrated using a MIYACHI (Tokyo, Japan M,) MM410 resistance welding monitor. In this paper, the welding power supply using constant voltage control mode output and welding process power supply output voltage waveform are shown in Figure 4b, and the meaning of each segment is shown in Table 1. The welding head comprised a homemade parallel-gap pneumatic pressurised head, a pressure control range of 5 N–50 N, and a maximum stroke of 30 mm pneumatic pressurised head, with a 3 mm diameter chromium–zirconium–copper electrode.
In this paper, an AGX-10 kN electronic universal testing machine produced by Shimadzu Corporation of Japan was used to test the tensile shear load of the welded joints. The tester’s effective tensile load range was 20 N–10 kN, with a loading speed of 5 mm/min. A WEIMI-322ES micrometer was used to measure the welded joints nugget diameter; its maximum optical magnification was 255 times the measuring instrument and its minimum linear accuracy was less than or equal to 6 μm.

3.3. Experimental Method Design

We used the orthogonal test method to optimise the welding process parameters. Using the trial-and-error method and a pre-test, an orthogonal test table of 7 factors and 4 levels of the minimum number of samples, shown in Table 2, was determined based on there being no welding defects, such as virtual welding, porosity, or crack. Table 2 shows parameter intervals; the design of experimental parameter combinations, with a minimum number of experiments; the completion of different combinations of spot-welding experiments; welding process parameters, and welding quality indicators. The results were analysed and processed to obtain the optimal process parameters.

4. Results and Discussion

4.1. Copper–Nickel Single-Sided Double-Joint Welding Orthogonal Test Results Analysis

Commonly used evaluation indicators of weld quality are nugget diameter, tensile shear load, depth of melt, and maximum displacement [29]. In this study, the commonly used nugget diameter and tensile shear load (TSL) for resistance welding were selected as evaluation indicators of weld quality, where the nugget diameter contains the positive electrode nugget diameter (PEND) and the negative electrode nugget diameter (NEND), determined by the average of the longest and shortest diameters of the fractured joint surfaces of the welded joint. Using the combination of process parameters shown in Table 3, the copper–nickel sheet was employed in the single-sided double-joint spot-welding test, to obtain the welded joint nugget diameters, tensile loads, and other indicator parameters. The results are shown in Table 3.
The Pearson correlation coefficient is a linear correlation coefficient, used to reflect the linear correlation of two normal continuous variables. A set of small sample data sets based on Table 3 are used. The input vector X contains 32 sample observations of 7 dimensions (WV1, WT1, CT, WV2, WT2, SRT, and SDT) and the output vector Y contains 32 sample observations of 3 dimensions (PEND, NEND, and TSL). The Pearson correlation coefficient is defined as follows [30]:
r = ( X i X ¯ ) ( y i y ¯ ) ( X i X ¯ ) 2 ( y i y ¯ ) 2
In this paper, SPSSAU analysis software was used to quickly calculate the Pearson correlation coefficient; the obtained Pearson’s correlation coefficients are shown in Figure 5.
The value of r is in the interval [–1, 1]. When r = 1, X and Y have a completely positive correlation. When r = 0, the linear correlation between X and Y is not obvious. When r = −1, X and Y have a completely negative correlation.
Combining Table 3 and Figure 5, the correlation between the welding process parameters and welding quality can be seen. Tensile shear load and welding voltage 1, welding time 1, and welding time 2 are positively correlated with correlation coefficients of 0.41, 0.37, 0.51, and tensile shear load increases with the increase in welding voltage and welding time. Positive electrode nugget diameter and welding voltage 2 have a significant correlation, the correlation coefficient being 0.4. For the negative electrode diameter and welding time 1, the cooling time correlation is greater, the correlation coefficient being 0.31. The slow rise and slow fall times on the welding quality indicators are not correlated.

4.2. Weld Quality Prediction Based on the CGO–MLSSVR Model

The 32 sets of experimental data in Table 3 were first randomly sorted; the first 26 sets of data were selected as training data, and the last 6 sets of data were used as test data. The parameters of the initialised CGO–MLSSVR prediction model are shown in Table 4. After several rounds of debugging and training, the CGO–MLSSVR prediction model with the optimal hyperparameters θ = {−8.6925, −10, −3.5112} obtained higher accuracy prediction results.
The CGO–MLSSVR training model was constructed with 26 sets of training data, where the relationships between welding voltage, welding time (WT(ms) =WT1 (ms) +WT2(ms)) and tensile shear load, and nugget diameter and tensile shear load, are shown in Figure 6, reflecting the variation of tensile shear load with welding process parameters (WV1, WV2, WT), and the correlation between tensile shear load and nugget diameter in weld quality.
The dependence of the tensile shear load on the input welding voltage parameter is illustrated in Figure 6: the tensile shear load is nonlinear in terms of the welding voltage, characterised by the absence of a consistent flat region and large fluctuations in the tensile shear load value from 130 N to 260 N. In general, the tensile shear load increases with the increase in welding time under the condition of a certain welding voltage. The tensile shear load increases with increasing welding voltage under the condition of a certain welding time.
However, the welding voltage in Figure 6a in [2100, 2300], with a welding time in the range of [5.5, 6.5], presents a trend of reduced weld tensile shear load. In Figure 6b, the welding voltage in [2300, 2400], with a welding time in the range of [4, 5], shows the welding tensile shear load to be significantly reduced. The reason for the reduction in weld tensile shear load is that the two stages of welding voltage and welding time in this range are not equal, and there is a polarity effect, resulting in two welding nugget diameters not of the same size; this, in turn, results in a smaller average nugget diameter and a reduction in tensile shear load.
In terms of the correlation of welding quality, Figure 6c shows that the overall tensile shear load increases with increasing nugget diameter (PEND or NEND), as observed along the X-axis or Y-axis. The nugget diameter required for this study should have been consistent. Combining X-axis and Y-axis analysis, when the positive electrode and negative electrode nugget diameters are within [−0.1, 0.1] of each other, the tensile shear load initially increases with increasing nugget diameter, and after reaching a peak, the tensile shear load decreases with increasing nugget diameter, indicating a complex non-linear relationship between tensile shear load and nugget diameter. The nugget diameter increases but the tensile shear load decreases because, with the increase in welding voltage, excessive energy input to the nugget diameter increases, resulting in spatter, weld through, and other welding defects, so that the tensile shear strength decreases.
To verify the accuracy of the CGO–MLSSVR model, four sets of test data were selected for prediction; the relative errors of the prediction results and the experimental results are shown in Table 5, and the comparison of the results is shown in Table 7.
From Table 5 and Figure 7, the average relative errors of the positive electrode nugget diameter, negative electrode nugget diameter, and tensile shear load obtained by the CGO–MLSSVR prediction model are 1.72%, 3.51%, and 2.34%, respectively. This indicates that the CGO–MLSSVR prediction model predicts the test samples as very close to the experimental values, and the model has high prediction accuracy and generalisation capability. There are three main reasons for the error. (1) The nugget diameter was measured by the WEIMI-322ES micrometer, and there was a certain measurement error between the measured value and the actual value, thus affecting the accuracy of the model training. (2) The MLSSVR model uses absolute error to represent the sample global error, and there was calculation error in the training model for the output variables. (3) In the small sample experimental space based on the orthogonal experimental method, the data information between the process parameters was ignored due to the large difference in values between the process parameters, thus affecting the training accuracy of the CGO–MLSSVR model.

4.3. Objective Optimisation Based on the Particle Swarm Algorithm

Based on the prediction model, the particle swarm optimisation algorithm was used to find the best welding process parameters. The objective of the optimisation problem was to set the required tensile shear load, positive electrode nugget diameter, and negative electrode nugget diameter to obtain the optimal process parameters.
The quality of weld joints can be classified according to the following criteria [31,32]:
D = 3.2 t f
where, D is the critical nugget diameter and t is the thickness of the plate metal—in this paper, t = 0.2 mm; f is the weld porosity factor—f = l.0 means perfect weld quality, free of porosity and irregularity. The value of f was set to 0.8, taking into account the porosity and irregularity of the weld seam under real production conditions. The critical nugget diameter was approximately 0.8 mm. Therefore, the positive electrode nugget diameter and the negative electrode nugget diameter were both greater than or equal to 0.8 mm.
Through experiments, it was found that welding quality performs well when the nugget diameter is in the range of [0.8, 1.1], especially when the nugget diameter is 1 ± 0.1 mm and the maximum tensile shear load reaches 250 N. To reflect the particle swarm optimisation algorithm that can effectively optimise the process parameters, this paper used two methods to verify the effectiveness of the PSO algorithm. The optimisation problems of the two optimisation methods are shown in Table 6.
To balance the search capability and computation of the particle swarm algorithm, the initial settings of the particle swarm were as shown in Table 7.
In Method I, the maximum tensile shear load for nugget diameters in the ranges of [0.8, 0.9] and [1, 1.1] was proposed. The best process parameters obtained under this method were {2173, 2, 2, 2100, 3.5, 0.2, 0.8} and {2400, 3.5, 0.2, 2300, 3.5, 0.4, 0.5}, corresponding to the predicted weld quality (PEND, NEND, TSL) of {0.8771, 0.8508, 173.2029 } and {1.03, 1.01, 253.287 N}. Specific experimental values and predicted values of the relative error are shown in Table 8, and the actual welding nugget diameter is shown in Figure 8.
In Method II, the proposed tensile shear load was 230 N, and the nugget diameter was 1 mm in the case of the optimal set of parameters {2400, 3.5, 0.6, 2129, 3.5, 0.5, 0.3}. This set of parameters was used in two experiments; the results of each experiment, and their predicted results, are shown in Table 9. The welding results are shown in Figure 9.
From the validation experiments, (1) there is a certain amount of error in the regression model; the experimental value of the welding quality is usually higher than the predicted value but also lower than the predicted value. (2) In the comparison between the experimental value and the target value, the nugget diameter and tensile shear load are within 5% of the target. However, the performance of the nugget diameter is slightly deficient because of the constant voltage control mode of the welding power source. The welding current cannot be constant at a certain value: with the increase in the number of welds, the electrode surface wears, and the nucleus grows by a number of factors, thus affecting the size of the nucleus. (3) For the set welding quality indicators, although the optimal solution has defects in the nugget diameter, its welding effect met the requirements of lithium battery manufacturing. Especially when predicting tensile shear load, the accuracy of tensile shear load is more stringent in actual production.

4.4. Comparison of the Impact of Predictive Model Algorithms on Model Performance

To verify whether the introduction of CGO into the MLSSVR prediction model improved the predictive ability of the regression model, it was compared with the traditional MLSSVR model and the GRNN neural network model. For the parameter selection of the model, the traditional MLSSVR model uses the grid search method and the leave-one-out method for the hyperparameter search, the best hyperparameter being θ = {−5, −6, −3}. The GRNN selects the 10-fold cross-validated fitness value of 0.9 as the best fitness value after multiple debugging. In contrast, regression models and neural network models use the same training and test sets to predict the quality of welding. Specific results for the CGO–MLSSSVR, MLSSVR, and GRNN neural network models of the actual values and predicted values are shown in Figure 10 and Figure 11.
From Figure 10 and Figure 11, it can be seen that the prediction performance of CGO–MLSSVR is more consistent between the predicted and experimental values and demonstrates the best prediction ability. The average relative errors of CGO–MLSSVR and MLSSVR are 2.6% and 3.6%, respectively, in predicting the nugget diameter, while the average relative error of GRNN is 7.72%; the prediction performances of CGO–MLSSVR and MLSSVR are, therefore, significantly better than that of the GRNN neural network. In terms of predicting tensile shear load, all three prediction models have different degrees of deviation, but the error of the GRNN prediction model is greater, while those CGO–MLSSVR and MLSSVR are similar to each other.
To accurately analyse and compare the performance of different prediction models, the evaluation criteria for the models were selected as RMSE, MAE, and MAPE; the comparison results are shown in Table 10.
From Table 10, it can be seen that the performance of the CGO–MLSSVR prediction model proposed in this paper is higher than that of the traditional MLSSVR and GRNN prediction models in terms of RMSE, MAE, and MAPE. In terms of model analysis, the traditional MLSSVR model uses the grid search method to obtain hyperparameters, but it is affected by the search range and search step, which easily falls into the local optimum, thus reducing the MLSSVR training and prediction ability. The GRNN model itself has a certain error, and the sample data obtained from the welding test are small; this prevents large-scale learning, making the GRNN neural network prediction performance weaker. The CGO–MLSSVR prediction model has a better global search and prediction ability in small-scale sample data to compensate for the lack of large sample data in the grid search method and neural network, meaning that CGO–MLSSVR has the best prediction performance among the three models.
Our results are comparable with the state-of-the-art literature. The literature [33] uses the powerful non-linear mapping capability of the Kriging algorithm to predict nugget diameters. The maximum relative error between the predicted and actual values of this model is about 8.7%, and the maximum relative error of the nugget diameter in this paper is 6.86%. The Bayes-XGBoost algorithm [34] was used to predict the resistance spot welds: the experiments showed that the nugget diameter MAE was 0.0151 and the tensile shear load RMSE was 1.835, slightly better than the method proposed in this paper. The literature [35] used the LLE technique to predict the nugget diameter and the results showed a maximum absolute error of 0.218 mm with RMSE, MAE, and MAPE being 0.0308, 0.078, and 4.6%, respectively. In this thesis, the results show a maximum absolute error of 0.0621 mm, and the average nugget diameter RMSE, MAE, and MAPE are 0.0315, 0.025, and 2.62%, respectively. Therefore, the method proposed in this paper is close to the results of the methods found in the literature above, indicating that CGO–MLSSVR has great predictive performance and generalisation in small sample datasets.

5. Conclusions

The relationship between the welding process parameters (WV1, WT1, CT, WV2, WT2, SRT, and SDT) and welding quality (PEND, NEND, and TSL) was established through the CGO–MLSSVR model. The experimental results show that the positive electrical and negative electrode nugget diameters and tensile shear load RMSE of the constructed CGO–MLSSVR prediction model are 0.024, 0.039, and 5.379, respectively, which demonstrates high prediction accuracy. The proposed method solves the problems of accurate prediction and the generalisation ability of multivariable outputs in small samples. Compared to similar prediction models, the prediction performance of the CGO–MLSSVR model is comparable to others.
In the best process parameters obtained in the copper–nickel sheet spot welding test, under Method I conditions for tensile shear load and nugget diameter, the average relative errors were 1.9% and 3%, respectively. Under the conditions of Method II for tensile shear load and nugget diameter, the average relative errors were 1.05% and 3.225%, respectively. The results show that the welded-joint nugget diameter and tensile shear load, and the best results under the best process parameters, are in good agreement.

Author Contributions

Conceptualisation, K.Y.; methodology, Y.H. and K.Y.; software, Y.H.; validation, K.Y.; investigation, Y.H. and K.Y.; resources, K.Y.; data curation, Y.H. and K.Y.; writing—original draft, Y.H.; writing—review and editing, Y.H., K.Y., X.W., H.H. and J.C.; supervision, X.W.; project administration, K.Y.; funding acquisition, K.Y. and H.H. All authors have read and agreed to the published version of the manuscript.

Funding

The work is supported by National Natural Science Foundation of China(52265062); Guizhou Provincial Science and Technology Projects (Grants No. Qiankehejichu [2020] 1Y232, Qiankehejichu ZK [2022]-General131, Qiankehe Support Normal [2021] 445 and [2021] 172); the Research Foundation for Introduced Talent, Guizhou University (Grant No. Guidarenjihezi [2019] 07); and the Growth Project for Young Scientific and Technological Talents in General Colleges and Universities in Guizhou Province (Grant No. Qianjiaohe KY Zi [2021] 096).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets analysed or generated during the study can be obtained from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Das, A.; Li, D.; Williams, D.; Greenwood, D. Weldability and shear strength feasibility study for automotive electric vehicle battery tab interconnects. J. Braz. Soc. Mech. Sci. Eng. 2019, 41, 54. [Google Scholar] [CrossRef]
  2. Das, A.; Li, D.; Williams, D.; Greenwood, D. Joining technologies for automotive battery systems manufacturing. World Electr. Veh. J. 2018, 9, 22. [Google Scholar] [CrossRef]
  3. Matsushita, M.; Ikeda, R.; Oi, K. Development of a new program control setting of welding current and electrode force for single-side resistance spot welding. Weld. World 2015, 59, 533–543. [Google Scholar] [CrossRef]
  4. Qin, W.; Lv, H.; Liu, C.; Nirmalya, D.; Jahanshahi, P. Remaining useful life prediction for lithium-ion batteries using particle filter and artificial neural network. Ind. Manag. Data Syst. 2020, 120, 312–328. [Google Scholar] [CrossRef]
  5. Zhang, Q.; Sekol, R.C.; Zhang, C.; Li, Y.; Carlson, B.E. Joining lithium-ion battery tabs using solder-reinforced adhesive. J. Manuf. Sci. Eng. 2019, 141, 044502. [Google Scholar] [CrossRef]
  6. Liu, P.; Chen, K.; Liu, D. Treatment and analysis on pseudo soldering of silicon wafer. Mech. Eng. 2019, 09, 74–75+79. [Google Scholar]
  7. Wu, X.; Liu, T.; Cai, W. Microstructure, welding mechanism, and failure of Al/Cu ultrasonic welds. J. Manuf. Process 2015, 20, 321–331. [Google Scholar] [CrossRef]
  8. Dwibedi, S.; Bag, S. Assessment by destructive and non-destructive approach to characterize 90/10 cupronickel weldments. Mater. Today Proc. 2020, 33, 5014–5018. [Google Scholar] [CrossRef]
  9. Xia, Y.; Li, Y.; Lou, M.; Lei, H. Recent Advances and Analysis of Quality Monitoring and Control Technologies for RSW. China Mech. Eng. 2020, 31, 100–125. [Google Scholar]
  10. Maalouf, M.; Barsoum, Z. Failure strength prediction of aluminum spot-welded joints using kernel ridge regression. Int. J. Adv. Manuf. Technol. 2017, 91, 3717–3725. [Google Scholar] [CrossRef]
  11. Zamanzad Gavidel, S.; Lu, S.; Rickli, J.L. Performance analysis and comparison of machine learning algorithms for predicting nugget width of resistance spot welding joints. Int. J. Adv. Manuf. Technol. 2019, 105, 3779–3796. [Google Scholar] [CrossRef]
  12. Ji, X.; Hua, X.; Shen, C.; Huang, Y.; Zhang, Y.; Cai, Y. Optimization of welding parameters on pores migration in Laser-GMAW of 5083 aluminum alloy based on response surface methodology. SN Appl. Sci. 2019, 1, 1161. [Google Scholar] [CrossRef] [Green Version]
  13. Fan, W.; Chen, F. Prediction and optimization of tensile strength of 7A52 aluminum alloy friction stir welding joints based on response surface methodology. Trans. China Weld. Inst. 2021, 42, 55–60+100. [Google Scholar]
  14. Shao, Z.; Shao, W.; Pi, D. Effective constructive heuristic and metaheuristic for the distributed assembly blocking flow-shop scheduling problem. Appl. Intell. 2020, 50, 4647–4669. [Google Scholar] [CrossRef]
  15. Zhao, D.; Wang, Y.; Sheng, S.; Lin, Z. Multi-objective optimal design of small scale resistance spot welding process with principal component analysis and response surface methodology. J. Intell. Manuf. 2014, 25, 1335–1348. [Google Scholar] [CrossRef]
  16. Zhao, D.; Liang, D.; Wang, Y. Parameters optimization of small scale spot welding for titanium alloy via Taguchi experiment and grey relational analysis. Trans. China Weld. Inst. 2018, 39, 101–104+133. [Google Scholar]
  17. Zhao, D.; Ivanov, M.; Wang, Y.; Liang, D.; Du, W. Multi-objective optimization of the resistance spot welding process using a hybrid approach. J. Intell. Manuf. 2021, 32, 2219–2234. [Google Scholar] [CrossRef]
  18. 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]
  19. Dhawale, P.A.; Ronge, B.P. Parametric optimization of resistance spot welding for multi spot welded lap shear specimen to predict weld strength. Mater. Today Proc. 2019, 19, 700–707. [Google Scholar] [CrossRef]
  20. Yang, Y.; Cao, L.; Zhou, Q.; Wang, C.; Wu, Q.; Jiang, P. Multi-objective process parameters optimization of Laser-magnetic hybrid welding combining Kriging and NSGA-II. Robot Comput.-Integr. Manuf. 2018, 49, 253–262. [Google Scholar] [CrossRef]
  21. Karpagaraj, A.; Parthiban, K.; Ponmani, S. Optimization techniques used in gas tungsten arc welding process–A review. Mater. Today Proc. 2020, 27, 2187–2190. [Google Scholar] [CrossRef]
  22. Mirzaei, F.; Ghorbani, H.; Kolahan, F. Numerical modeling and optimization of joint strength in resistance spot welding of galvanized steel sheets. Int. J. Adv. Manuf. Technol. 2017, 92, 3489–3501. [Google Scholar] [CrossRef]
  23. Talatahari, S.; Azizi, M. Optimization of constrained mathematical and engineering design problems using chaos game optimization. Comput. Ind. Eng. 2020, 145, 106560. [Google Scholar] [CrossRef]
  24. Xu, S.; An, X.; Qiao, X.; Zhu, L.; Li, L. Multi-output least-squares support vector regression machines. Pattern Recognit. Lett. 2013, 34, 1078–1084. [Google Scholar] [CrossRef]
  25. Zhu, X.; Gao, Z. An efficient gradient-based model selection algorithm for multi-output least-squares support vector regression machines. Pattern Recognit. Lett. 2018, 111, 16–22. [Google Scholar] [CrossRef]
  26. Chen, B.; Zhang, H.; Feng, J.; Chen, S. A study of welding process modeling based on Support Vector Machines. In Proceedings of the 2011 International Conference on Computer Science and Network Technology, IEEE, Harbin, China, 24–26 December 2011; Volume 3, pp. 1859–1862. [Google Scholar]
  27. Zhao, X.; Zhou, Y.; Xiang, Y. A grouping particle swarm optimizer. Appl. Intell. 2019, 49, 2862–2873. [Google Scholar] [CrossRef]
  28. Das, D.; Jaypuria, S.; Pratihar, D.K.; Roy, G.G. Weld optimisation. Sci. Technol. Weld. Join. 2021, 26, 181–195. [Google Scholar] [CrossRef]
  29. Wang, X.; Zhou, J.; Yan, H. Quality monitoring of spot welding with advanced signal processing and data-driven techniques. Trans. Inst. Meas. Control 2018, 40, 2291–2302. [Google Scholar] [CrossRef]
  30. Xu, H.; Deng, Y. Dependent evidence combination based on shearman coefficient and pearson coefficient. IEEE Access 2017, 6, 11634–11640. [Google Scholar] [CrossRef]
  31. Sun, X.; Stephens, E.V.; Davies, R.W.; Khaleel, M.; Spinella, D.J. Effects of fusion zone size on failure modes and static strength of aluminum resistance spot welds. Weld. J. 2004, 83, 308s–318s. [Google Scholar]
  32. Zhao, D.; Wang, Y.; Liang, D. Correlating variations in the dynamic power signature to nugget diameter in resistance spot welding using Kriging model. Measurement 2019, 135, 6–12. [Google Scholar] [CrossRef]
  33. Zhao, D.; Wang, Y.; Liang, D.; Yuriy, B. Prediction of nugget diameter in resistance spot welding of titanium alloys based on dynamic characteristics of power signals. Trans. China Weld. Inst. 2022, 43, 55–59+116–117. [Google Scholar]
  34. Deng, X.; You, W.; Xu, H. Prediction of Resistance Spot Welding Parameters by Bayes-XGBoost and Particle Swarm Optimization. J. Electron. Inf. Technol. 2021, 43, 1042–1049. [Google Scholar]
  35. Zhao, D.; Bezgans, Y.; Wang, Y.; Du, W.; Lodkov, D. Performances of dimension reduction techniques for welding quality prediction based on the dynamic resistance signal. J. Manuf. Proc. 2020, 58, 335–343. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the CGO–MLSSVR algorithm.
Figure 1. Flowchart of the CGO–MLSSVR algorithm.
Applsci 12 09625 g001
Figure 2. Flow chart of the PSO optimisation process parameters.
Figure 2. Flow chart of the PSO optimisation process parameters.
Applsci 12 09625 g002
Figure 3. Geometry of the welded specimens.
Figure 3. Geometry of the welded specimens.
Applsci 12 09625 g003
Figure 4. Resistance spot welding test. (a) Parallel gap single-sided double spot−welding schematic; (b) welding voltage waveform.
Figure 4. Resistance spot welding test. (a) Parallel gap single-sided double spot−welding schematic; (b) welding voltage waveform.
Applsci 12 09625 g004
Figure 5. Pearson correlation coefficients.
Figure 5. Pearson correlation coefficients.
Applsci 12 09625 g005
Figure 6. Correlation of welding process parameters and nugget diameter with tensile shear load. (a) Relationship between WV1 and WT on TSL; (b) Relationship between WV2 and WT on TSL; (c) Relationship between PEND and NEND on TSL.
Figure 6. Correlation of welding process parameters and nugget diameter with tensile shear load. (a) Relationship between WV1 and WT on TSL; (b) Relationship between WV2 and WT on TSL; (c) Relationship between PEND and NEND on TSL.
Applsci 12 09625 g006
Figure 7. Comparison of predicted values and experimental values. (a) PEND of comparison chart; (b) NEND of comparison chart; (c) TSL of comparison chart.
Figure 7. Comparison of predicted values and experimental values. (a) PEND of comparison chart; (b) NEND of comparison chart; (c) TSL of comparison chart.
Applsci 12 09625 g007
Figure 8. Method I validation figure. (a) Proof diagram for welding parameters {2173, 2, 2, 2100, 3.5, 0.2, 0.8}; (b) Proof diagram for welding parameters {2400, 3.5, 0.2, 2300, 3.5, 0.4, 0.5}.
Figure 8. Method I validation figure. (a) Proof diagram for welding parameters {2173, 2, 2, 2100, 3.5, 0.2, 0.8}; (b) Proof diagram for welding parameters {2400, 3.5, 0.2, 2300, 3.5, 0.4, 0.5}.
Applsci 12 09625 g008
Figure 9. Method II validation figure. (a) No. 1 validation figure; (b) No. 2 validation figure.
Figure 9. Method II validation figure. (a) No. 1 validation figure; (b) No. 2 validation figure.
Applsci 12 09625 g009
Figure 10. Comparison of the accuracy of the predicted nugget diameter of different models. (a) CGO–MLSSVR prediction model; (b) MLSSVR prediction model; (c) GRNN prediction model.
Figure 10. Comparison of the accuracy of the predicted nugget diameter of different models. (a) CGO–MLSSVR prediction model; (b) MLSSVR prediction model; (c) GRNN prediction model.
Applsci 12 09625 g010
Figure 11. Comparison of the accuracy of the predicted tensile shear load of different models. (a) CGO–MLSSVR prediction model; (b) MLSSVR prediction model; (c) GRNN prediction model.
Figure 11. Comparison of the accuracy of the predicted tensile shear load of different models. (a) CGO–MLSSVR prediction model; (b) MLSSVR prediction model; (c) GRNN prediction model.
Applsci 12 09625 g011
Table 1. Meaning of voltage waveform segmentation.
Table 1. Meaning of voltage waveform segmentation.
NO.Process ParameterSymbolUnits
1, 5Slow rise timeSRTms
2Welding time 1WT1ms
3, 7Slow drop timeSDTms
4Cooling timeCTms
6Welding time 2WT2ms
8Welding voltage 1WV1V
9Welding voltage 2WV2V
Table 2. Copper-nickel single-sided double-joint welding orthogonal experimental factor level table.
Table 2. Copper-nickel single-sided double-joint welding orthogonal experimental factor level table.
Process ParameterLevel 1Level 2Level 3Level 4
Welding voltage 12100220023002400
Welding time 122.533.5
Cooling time0.20.512
Welding voltage 22100220023002400
Welding time 222.533.5
Slow rise time0.20.40.60.8
Slow drop time0.20.40.60.8
Table 3. L 32 orthogonal experiments and the corresponding experimental results.
Table 3. L 32 orthogonal experiments and the corresponding experimental results.
NO.Process ParametersExperimental Results
WV1 (V)WT1 (ms)CT (ms)WV2 (V)WT2 (ms)SRT (ms)SDT (ms)PEND (mm)NEND (mm)TSL (N)
1210020.5210020.20.20.83540.4683110.617
221002122003.50.80.61.06580.9001216.676
321002.52240020.40.61.03750.8459125.866
421002.50.223003.50.60.21.61720.5152189.238
5210030.523002.50.80.41.46630.764230.49
6210031240030.20.81.08260.8146184.518
721003.5222002.50.60.80.98830.9047175.763
821003.50.2210030.40.41.25111.0029199.575
9220022240030.80.41.17760.689175.885
10220020.223002.50.20.81.0810.7811164.873
1122002.50.5210030.60.81.02180.8821191.333
1222002.5122002.50.40.40.83840.8217147.986
1322003222003.50.20.21.15811.1498206.55
14220030.2210020.80.61.02080.901183.261
1522003.50.523003.50.40.60.78340.9137208.294
1622003.51240020.60.21.18110.6896191.469
1723002221003.50.40.80.65661.2083211.978
18230020.2220020.60.41.03560.7334175.596
1923002.50.524003.50.20.41.48090.6524213.938
2023002.51230020.80.81.17670.6754194.521
21230032230030.60.61.06490.9404206.242
22230030.224002.50.40.21.09220.9355237.678
2323003.50.5220030.80.21.29570.9002217.112
2423003.5121002.50.20.61.08091.1266223.568
25240020.524002.50.60.61.33840.9119219.305
26240021230030.40.20.80990.7516192.464
2724002.5221002.50.80.20.91730.7711180.364
2824002.50.2220030.20.61.03820.8896205.117
29240030.5220020.40.80.91920.8728192.369
3024003121003.50.60.41.15550.8047220.324
3124003.52230020.20.40.92960.9328186.237
3224003.50.224003.50.80.81.35270.7495254.059
Table 4. CGO initialisation value.
Table 4. CGO initialisation value.
VariableIteration TimesEligible PointsDimensionalSolution Space Range
Value100303[−10, 10]
Table 5. The accuracy of the established CGO–MLSSVR model.
Table 5. The accuracy of the established CGO–MLSSVR model.
NO.Positive Electrode Nugget DiameterNegative Electrode Nugget DiameterTensile Shear Load
Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)
10.98830.99841.020.90470.96686.86175.763182.3323.74
20.92960.94141.270.93280.96413.36186.237190.0732.06
31.29571.24753.720.90020.84046.64217.112225.8524.03
41.03821.01682.060.88960.88720.27205.117207.1581.00
51.02181.01770.400.88210.91163.34191.333197.2583.10
61.06491.04471.900.94040.93490.58206.242206.5180.13
Average Error (%) 1.72 3.51 2.34
Table 6. Two optimisation methods.
Table 6. Two optimisation methods.
Method ⅠMethod Ⅱ
ObjectMaximise TSLTSL = 230 N
Subject to 0.8   mm     PEN ,   NEN     0.9 mm1 mm ≤ PEN, NEN ≤ 1.1 mmPEN = NEN = 1 mm
2100 ≤ WV1, WV2 ≤ 2400, 2 ≤ WT1, WT2 ≤ 3.5, 0.2 ≤ CT ≤ 2, 0.2 ≤ SRT, SDT ≤ 0.8
Table 7. Initial value of the PSO.
Table 7. Initial value of the PSO.
VariablePopulation SizeIteration TimesDimensionality of Particle Accelerating   Factor   C 1   C 2 Solution Space Range
Value3010071.5[0, 1]
Table 8. Method I verification of relative error.
Table 8. Method I verification of relative error.
NO.Positive Electrode Nugget DiameterNegative Electrode Nugget DiameterTensile Shear Load
Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)
10.90740.87713.30.84910.8508−0.2176.276173.2031.7
21.07731.034.31.05391.014.2258.802253.2872.1
Average Error (%) 3.8 2.2 1.9
Table 9. Method II verification of relative error.
Table 9. Method II verification of relative error.
NO.Positive Electrode Nugget DiameterNegative Electrode Nugget DiameterTensile Shear Load
Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)Experimental Values (mm)Predicted Values (mm)Relative Error (%)
11.048414.61.031713.1233.7612301.6
21.0001100.95041−5.2225.832230−0.5
Average Error (%) 2.3 4.15 1.05
Table 10. Comparison results for different models.
Table 10. Comparison results for different models.
Prediction ModelPositive Electrode Nugget DiameterNegative Electrode Nugget DiameterTensile Shear Load
RMSEMAEMAPE (%)RMSEMAEMAPE (%)RMSEMAEMAPE (%)
CGO–MLSSVR0.0240.0191.7290.0390.0313.5105.3794.5642.341
MLSSVR0.0250.0211.9520.0580.0444.8647.3476.1543.216
GRNN0.0990.0858.0550.0670.0647.01711.23110.345.264
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

He, Y.; Yang, K.; Wang, X.; Huang, H.; Chen, J. Quality Prediction and Parameter Optimisation of Resistance Spot Welding Using Machine Learning. Appl. Sci. 2022, 12, 9625. https://doi.org/10.3390/app12199625

AMA Style

He Y, Yang K, Wang X, Huang H, Chen J. Quality Prediction and Parameter Optimisation of Resistance Spot Welding Using Machine Learning. Applied Sciences. 2022; 12(19):9625. https://doi.org/10.3390/app12199625

Chicago/Turabian Style

He, Yicheng, Kai Yang, Xiaoqing Wang, Haisong Huang, and Jiadui Chen. 2022. "Quality Prediction and Parameter Optimisation of Resistance Spot Welding Using Machine Learning" Applied Sciences 12, no. 19: 9625. https://doi.org/10.3390/app12199625

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