Exploring Resistance Spot Welding for Grade 2 Titanium Alloy: Experimental Investigation and Artificial Neural Network Modeling

: The resistance spot welding (RSW) process is still widely used to weld panels and bodies, particularly in the automotive, railroad, and aerospace industries. The purpose of this research is to examine how RSW factors such as welding current, welding pressure, welding time, holding time, squeezing time


Introduction
Resistance spot welding (RSW), which is categorized as a pressure welding technique, is now the primary assembly process used in the automobile industry and other sectors.For several decades, the aerospace industry has recognized the economic benefits of spot welding [1][2][3][4].Around 90% of all vehicle body assemblies use resistance spot welds [5].For example, an average automobile includes more than three thousand spot welds [6].In the case of bus and coach bodies, this figure may rise to as many as 8000 spots.Spot welds provide several benefits over other types of welding [7][8][9], including a shorter welding time, the elimination of the need for filler material, and improved dimensional accuracy.
Titanium and its alloys have unique mechanical and physical properties and find applications in industrial fields [10] such as aviation, medical industry, and chemical engineering due to their low density and high strength [11].Titanium alloys have been welded using a variety of welding processes, including tungsten inert gas welding (TIG), even though TIG creates a weld structure that is coarse and induces an abundance of welding residual stress and distortion [12,13].
Laser and electron beam welding are considered superior alternatives to TIG welding because of their advantages, such as high welding speed and minimal welding distortion.However, laser welding and electron beam welding are better suited for butt joints than lap joints due to their high depth-to-width ratio penetration capabilities [12,13].Moreover, investment and operating costs are high [12][13][14][15].Even though brazing is straightforward to apply, welding titanium alloys often takes a long time due to the vacuum conditions necessary and high temperatures [14,15].
The novel welding process of friction stir welding has been used to weld thin sheets for butt and lap joints for the past 30 years.However, some drawbacks, such as the high melting point of titanium alloys and the contact pressure of the metal sheets with the friction tool, must be considered [16][17][18].
Zhang et al. [19] examined the RSW of Ti6Al4V alloy sheets (Rickard Specialty Metals, Ontario, CA, USA), analyzing weld nugget formation, mechanical properties, and microstructure.Electrode force dominates weld nugget width, although welding current and time also matter.El Kandaoui et al. [20] studied butt-jointed Ti-6Al-4V alloys (5125 and 5326) using fiber laser welding.The analysis of the microstructure of the base material revealed a coarse α + β microstructure in the 5125 grade and a thinner microstructure with small α grains and β particles at grain boundaries in the 5326 grade.Chen et al. [21] created a precise online monitoring system for resistance spot welded joints of TB2 titanium alloy to assess joint quality by collecting data about electrode pressure, welding voltage, welding current, and electrode displacement.
Online inspection verified the presence of splashes and imperfect welding fusion.Fatmahardi et al. [6] found that the fractured surface of RSW for Ti-6Al-4V was cup-andcone pull-out failure, proving that the weld nugget is stronger than the heat-affected zone (HAZ) and base metal.Dissimilar micro-RSW of austenitic stainless steel 316L and Ti-6Al-4V titanium alloy was studied by Mansor et al. [22].The tensile shear test showed that the highest shear force for all welded specimens was 378. 25 N and that all of them failed in an interfacial failure (IF) mode.Li et al. [23] found that welding current considerably affects joint tensile shear properties, whereas welding time and electrode force had minor effects on the RSW of commercial titanium and AA 6061-T6 Aluminum alloy (Textron Steel and Alloys, Mumbai, India).
Using load capacity tests, Lacki et al. [24] evaluated the RSW composite beam made of titanium alloy grades 5 and 2. Two samples failed at joints with two parallel shear welds.Another study by Anna et al. [25] evaluated the titanium grade 5 beam using RSW.Joint strength improved with high welding current and short welding time, with the greatest results at 37 A and 15 ms, respectively.
Based on neural network (NN) observations, Arunchai et al. [26] estimated weld quality using ANN for RSW.The model predictions were 95% accurate.Weld quality and failure stress of titanium resistance spot welded joints were estimated by Wan et al. [27] using backpropagation and probabilistic neural network models.The backpropagation NN model effectively estimated failure load, whereas the probabilistic neural method accurately estimated weld quality.Ghafarallahi et al. [28] used the finite element method (FEM) and multilayer perceptron (MLP) neural network model findings to categorize the spot weld diameter.They noted that the ANN predicts weld diameter better than FEM.
The first comprehensive examination of titanium-resistant butt spot joints was by Bi et al. [29].Fracture modes at interfaces affect the component microstructure and joint quality.
Piotr and Judyta [30] explored the hardness and load capacity of grade 2 and 5 titanium alloys.The results demonstrated that the hardness and resulting load are influenced by the arrangement of the grades, regardless of whether they are like grade 5 or different from grade 2. Yu et al. [31] used ultrasonic seam-assisted resistance spot welding (USRSW) to weld grade 4 titanium alloy and Q235 mild steel with a copper alloy interlayer.The findings were compared to traditional resistance spot welding (TRSW) with and without an interlayer.USRSW-Cu created an irregular weld, whereas TRSW produced a flat nugget.
The weld nugget is less prone to fracture because of its inhomogeneity.In addition, ultrasonic seam-assisted resistance spot welding with a copper interlayer (USRSW-Cu) generated 2.68 times the shear force of TRSW.
Using upset butt welding, Santhakumari et al. [32] joined AISI 304 with commercial titanium.The findings show that brittle intermetallic phases induce poor welded joint elongation.Preheating Ti-2Al-1Mn alloy (Western Alloys, Canning Vale, Australia) resistance spot welded joints was studied by Butsykin et al. [33].Heating the nuggets reduced dispersion by 160%, increased fracture energy by 48%, and the maximum force by 15%.Niu et al. [34] welded Ti and Al alloys by resistance rivet welding.The findings indicate that solid Al and α2-AlTi3 solutions are the main contributors causing hardness enhancement.
A monel interlayer allowed Bi et al. [35] to produce brittle Ti-Fe intermetallic compounds (IMCs).IMCs form between titanium alloy and stainless steel RSW joints.Eliminating brittle IMCs greatly improved joint quality.Liu et al. [36] studied how porosity influenced TC17 titanium alloy welded joint fatigue at both ambient and high temperatures.The S-N curves of the welded joints were bilinear at 400 • C but single-linear at ambient temperature.Welded pores caused fatigue failure; however, temperature did not affect it.Mezher et al. [37] performed a finite element study on RSW of AISI 316L using ANSYS software 2020 R1.Adding the thermal contact resistance modification to the FE model improves temperature distribution prediction, as they confirmed.
According to the literature review, no prior research has comprehensively analyzed the effect of RSW parameters, particularly, the effect of welding current, welding, holding and squeeze times, pulse welding, and electrode welding pressure, on outputs such as the shear force, micro-hardness, and failure of the resultant joint.This lack of analysis specifically pertains to the RSW process of titanium alloy grade 2 with 0.5 and 1 mm thicknesses.Therefore, this research is presented, highlighting as a novelty the use of different neural network models built using various training and transfer functions to examine the RSW parameters on predicted shear compared to experimental results.

Materials and Specimens' Preparation
Titanium alloy (grade 2) sheets with thicknesses of 0.5 and 1 mm were used in the RSW process (Baoji Sunrise Dongsheng Industry & Trade Co., Ltd., Baoji, China).The dimensions of each sample were measured using the lap joint arrangement following the specifications of the AWS [38] as shown in Table 1.Table 2 lists the mechanical parameters of titanium alloy grade 2 and Table 3 summarizes its chemical composition.1.All titanium alloy grade 2 samples were mechanically polished with No. 800 grit abrasive paper to remove cutting edge burr, surface contaminants, and the oxide layer that had developed before being subjected to the RSW process.Ethanol was then used to clean the surface and eliminate any remaining contaminants.Taking this action is crucial in RSW to avoid the presence of expulsion welds that occur at random if the surface is contaminated.

Resistance Spot Welding Process
The RWMA group A class 2 type B chromium-zirconium-copper alloy dome-shaped electrode with a 4 mm circular contacting area was employed.The pressure was generated using a pneumatic system.The digital screen of the RSW machine was utilized to adjust the process parameters, including welding current, welding, squeeze, and holding times, and pulse welding.The experiments were carried out at standard laboratory room temperature.Welding parameters included a welding current range of 5000-7000 A, a welding time range of 0.6-1.4s, a squeezing time range of 0.6-1.4s, a holding time range of 0.5-1.5 s, a pulse welding range of 1-5, and a pressure range of 2-8 bar.To ensure that the electrode tip was properly positioned in the middle of the overlap region during welding,

Resistance Spot Welding Process
The RWMA group A class 2 type B chromium-zirconium-copper alloy dome-shaped electrode with a 4 mm circular contacting area was employed.The pressure was generated using a pneumatic system.The digital screen of the RSW machine was utilized to adjust the process parameters, including welding current, welding, squeeze, and holding times, and pulse welding.The experiments were carried out at standard laboratory room temperature.Welding parameters included a welding current range of 5000-7000 A, a welding time range of 0.6-1.4s, a squeezing time range of 0.6-1.4s, a holding time range of 0.5-1.5 s, a pulse welding range of 1-5, and a pressure range of 2-8 bar.To ensure that the electrode tip was properly positioned in the middle of the overlap region during welding, an X was marked on the top face center of the samples before welding started.Figure 2 shows a simplified diagram of the experimental welding equipment.
The experiments were arranged using the Design of Experiment (DOE) according to the Taguchi method using Minitab software 18, as detailed in Table 4. Figure 3 shows the resistance spot welded samples of the three cases.The RSW parameters used in the current work are described as follows: Welding time: the duration applied to weld the samples.Welding current: the amount of current provided by the source.Pressure: the pressure exerted to hold the materials together during welding.Squeeze time: the duration between the application of pressure and the welding process.Hold time: the duration for which the pressure is maintained after the welding is completed.Pulse welding: the alternating modulation of amperage between high and low points.
Squeeze time: the duration between the application of pressure and the we Hold time: the duration for which the pressure is maintained after the weldin Pulse welding: the alternating modulation of amperage between high and

Tensile Shear Test
The tensile shear test was conducted on the resistance spot welded joints to evaluate weld quality and determine the maximum shear force needed to break them.The tests were performed using a Universal Testing Machine with 50 kN maximum load and 5 mm/min of crosshead speed at room temperature, as depicted in Figure 4.
The results ascertained whether the welded connection failed due to a pull-out or an interfacial failure.The load-displacement curve was utilized to determine the optimum shear force.Furthermore, a fracture surface analysis was carried out to determine the failure mechanism of the shear test specimens.Optical microscope micrographs of the cracked specimen cross-section aided in evaluating the failure mechanism.Figure 5 shows the resistance spot welded samples of the three cases after undergoing a tensile shear test.

Tensile Shear Test
The tensile shear test was conducted on the resistance spot welded joints to evaluate weld quality and determine the maximum shear force needed to break them.The tests were performed using a Universal Testing Machine with 50 kN maximum load and 5 mm/min of crosshead speed at room temperature, as depicted in Figure 4.

Tensile Shear Test
The tensile shear test was conducted on the resistance spot welded joints to evaluate weld quality and determine the maximum shear force needed to break them.The tests were performed using a Universal Testing Machine with 50 kN maximum load and 5 mm/min of crosshead speed at room temperature, as depicted in Figure 4.
The results ascertained whether the welded connection failed due to a pull-out or an interfacial failure.The load-displacement curve was utilized to determine the optimum shear force.Furthermore, a fracture surface analysis was carried out to determine the failure mechanism of the shear test specimens.Optical microscope micrographs of the cracked specimen cross-section aided in evaluating the failure mechanism.Figure 5 shows the resistance spot welded samples of the three cases after undergoing a tensile shear test.The results ascertained whether the welded connection failed due to a pull-out or an interfacial failure.The load-displacement curve was utilized to determine the optimum shear force.Furthermore, a fracture surface analysis was carried out to determine the failure mechanism of the shear test specimens.Optical microscope micrographs of the cracked specimen cross-section aided in evaluating the failure mechanism.Figure 5 shows the resistance spot welded samples of the three cases after undergoing a tensile shear test.

Micro-Hardness Measurements
The micro-hardness of the welds was determined by performing a Vickers test, employing a 2.98 N load and a 10 s dwell period, utilizing a pyramidal diamond indenter micro-hardness tester (HVS-1000 series, Laryee Testing Machines, Laryee Technology Co., Ltd., Beijing, China).Hardness tests were conducted at a consistent interval of 0.5 mm from each sample along a diagonal path originating from the base metal.This path traversed through the heat-affected zone and weld nugget zone, continuing through the other heat-affected zone, and ultimately reaching the base metal on the opposite side, as illustrated in Figure 6.Metallographic specimens were prepared by cutting the RSW welded joint through the center of the weld nugget perpendicular to the weld surface plane.As shown in Figure 7, the specimen was mounted in acrylic (a mixture of resin and hardener), followed by grinding and polishing in sequence to observe the microstructure and fracture morphology of the failed sample.Etching was performed at room temperature using a solution of 1% HCL, 1.5% HF, 2.5% HNO3, and 95% distilled water, following the polishing procedure.An optical microscope was used to examine the morphology of the fractured specimens.

Micro-Hardness Measurements
The micro-hardness of the welds was determined by performing a Vickers test, employing a 2.98 N load and a 10 s dwell period, utilizing a pyramidal diamond indenter micro-hardness tester (HVS-1000 series, Laryee Testing Machines, Laryee Technology Co., Ltd., Beijing, China).Hardness tests were conducted at a consistent interval of 0.5 mm from each sample along a diagonal path originating from the base metal.This path traversed through the heat-affected zone and weld nugget zone, continuing through the other heataffected zone, and ultimately reaching the base metal on the opposite side, as illustrated in Figure 6.

Micro-Hardness Measurements
The micro-hardness of the welds was determined by performing a Vickers test, employing a 2.98 N load and a 10 s dwell period, utilizing a pyramidal diamond indenter micro-hardness tester (HVS-1000 series, Laryee Testing Machines, Laryee Technology Co., Ltd., Beijing, China).Hardness tests were conducted at a consistent interval of 0.5 mm from each sample along a diagonal path originating from the base metal.This path traversed through the heat-affected zone and weld nugget zone, continuing through the other heat-affected zone, and ultimately reaching the base metal on the opposite side, as illustrated in Figure 6.Metallographic specimens were prepared by cutting the RSW welded joint through the center of the weld nugget perpendicular to the weld surface plane.As shown in Figure 7, the specimen was mounted in acrylic (a mixture of resin and hardener), followed by grinding and polishing in sequence to observe the microstructure and fracture morphology of the failed sample.Etching was performed at room temperature using a solution of 1% HCL, 1.5% HF, 2.5% HNO3, and 95% distilled water, following the polishing procedure.An optical microscope was used to examine the morphology of the fractured specimens.Metallographic specimens were prepared by cutting the RSW welded joint through the center of the weld nugget perpendicular to the weld surface plane.As shown in Figure 7, the specimen was mounted in acrylic (a mixture of resin and hardener), followed by grinding and polishing in sequence to observe the microstructure and fracture morphology of the failed sample.Etching was performed at room temperature using a solution of 1% HCL, 1.5% HF, 2.5% HNO 3 , and 95% distilled water, following the polishing procedure.An optical microscope was used to examine the morphology of the fractured specimens.

Artificial Neural Network (ANN)
The neural network model developed by McCulloch and Pitts study in the 1940s is identified as the earliest modern neural network model.Neural networks serve as valuable tools for constructing both linear and nonlinear models of complex tasks.The archi-

Artificial Neural Network (ANN)
The neural network model developed by McCulloch and Pitts study in the 1940s is identified as the earliest modern neural network model.Neural networks serve as valuable tools for constructing both linear and nonlinear models of complex tasks.The architecture of the ANNs closely mirrors the workings of the biological brain.The network structure is composed of a group of interconnected elements called neurons that process information delivered to the input of the network based on the principle of parallel processing.The ANN structure consists of the input and output layers.In addition, there is a hidden layer that separates the input and output layers.Each neural network contains many neurons, and the output neuron number is equivalent to the input variable.Transferring the weights forward and backward is generated according to the transfer and activation functions used in the layers of neurons [39].A feed-forward backpropagation (BP) network was used in the current work to model an artificial neural network with a multilayer perceptron (MLP).The MLP equation is given below: where: y: the outputs, f : the activation function, x: the input, w i : the weights, b: the bias.
Neural network modelling was carried out using MATLAB R2021a.In ANN models, the input layer data were welding current, pressure, welding time, squeeze time, holding time, and pulse welding, whereas the tensile shear force was set as an output layer data.Moreover, the hidden layer number was 10.
Three different transfer functions with five training functions were used.The training functions were Levenberg-Marquardt (Trainlm), scaled conjugate gradient (Trainscg), conjugate gradient with Fletcher-Reeves updates (Traincgf), conjugate gradient with Powell-Beale restarts (Traincgb), and conjugate gradient with Polak-Ribiere updates (Traincgp).For each training function, three different transfer functions were individually employed at the hidden layer.The transfer functions were log sigmoid transfer (Logsig), hyperbolic tangent sigmoid (Tansig), and pure linear (Purelin).The hyperbolic tangent sigmoid (Tansig) was applied as the output layer's transfer function for all experiments.
Concerning the data distribution, 70% was used for training, 15% for testing, and 15% for validation [40].Thus, 53 samples were used for training, 11 for testing, and 11 for validation.For the training parameters, the learning rate was 0.01, the goal was 0.001, and the epoch number was 1000.The accuracy of the neural network models was assessed based on the mean square error (MSE) and coefficient of determination (R 2 ).The validation criteria for predicting the output depend on minimizing the error between the actual and predicted data.Since the coefficient of determination (R 2 ) approached 1 and the mean square error was close to 0, the model indicated good performance in predicting data.Figure 8 shows the neural network structure.and predicted data.Since the coefficient of determination (R 2 ) approached 1 and the mean square error was close to 0, the model indicated good performance in predicting data.
Figure 8 shows the neural network structure.

Tensile Shear Force
A series of 25 tensile shear tests were conducted for each case of 1-1 mm, 0.5-0.5 mm, and 0.5-1 mm for titanium alloy grade 2, as presented in Table 4.The objective of these experiments was to determine the appropriate RSW parameters that meet acceptable standards.The results proved that the RSW parameters have a direct influence on the tensile shear force of the welded joints.
Based on a design of experiments (DOE) study, the parameters for producing the strongest resistance spot joint in case A were welding current of 7000 A, welding time of 1 s, pressure of 6.5 bar, squeezing time of 0.8 s, holding time of 0.5 s, and pulse welding of 5.Under these conditions, the maximum shear force was 5.106 kN.Experiment 14 had the lowest shear force at 3.861 kN with a welding current of 6000 A, pressure of 6.5 bar, welding time of 0.6 s, squeezing time of 1 s, holding time of 1.5 s, and pulse welding of 2 as shown in Table 5.

Tensile Shear Force
A series of 25 tensile shear tests were conducted for each case of 1-1 mm, 0.5-0.5 mm, and 0.5-1 mm for titanium alloy grade 2, as presented in Table 4.The objective of these experiments was to determine the appropriate RSW parameters that meet acceptable standards.The results proved that the RSW parameters have a direct influence on the tensile shear force of the welded joints.
Based on a design of experiments (DOE) study, the parameters for producing the strongest resistance spot joint in case A were welding current of 7000 A, welding time of 1 s, pressure of 6.5 bar, squeezing time of 0.8 s, holding time of 0.5 s, and pulse welding of 5.Under these conditions, the maximum shear force was 5.106 kN.Experiment 14 had the lowest shear force at 3.861 kN with a welding current of 6000 A, pressure of 6.5 bar, welding time of 0.6 s, squeezing time of 1 s, holding time of 1.5 s, and pulse welding of 2 as shown in Table 5.When analyzing the rank response of the RSW parameters, it was found that welding current had the greatest impact on the tensile shear force results, followed by pulse welding, holding time, welding time, squeezing time, and finally, pressure had the smallest impact on the 1-1 mm case.The impact of the RSW parameters on the tensile shear force of 1-1 mm case is summarized in the mean effect plots portrayed in Figure 9.
Metals 2024, 14, x FOR PEER REVIEW 11 of 25 Another viewpoint holds that when welding pressure rises, a significant stress concentration is formed in the areas surrounding the weld nugget due to the indentions forced by the electrodes on the sheet.Lower tensile shear forces may be attributed to the use of greater welding pressures, which is caused by the production of a weak resistance spot welded connection that leads to the formation of brittle welds [48].If the molten metal is expelled too forcefully from the nugget zone, it might cause a through-hole in the workpiece, which increases the risk of cracking and porosity developing in the weld itself [49].Using the Taguchi method, it was determined that the RSW parameters of 5000 A welding current, 8 bar of pressure, 1.4 s each for welding and squeezing, 1.5 s for holding, and 5 pulses per weld produced the strongest resistance spot welded joints in case B with a tensile shear force of 4.234 kN.However, experiment 15 had the lowest tensile shear force at 2.191 kN with the following parameters: 6000 A welding current, 8 bar pressure, 0.8 s welding time, 1.2 s squeezing time, 0.5 s holding time, and 3 pulses per second of welding as depicted in Table 5.Unlike in case A, where welding current was the most influential factor, the welding time in case B was found to have the greatest impact on the tensile shear force when examining the main effects plot of case B on the tensile shear force regarding the rank effect of each RSW parameter of case B. As for the relative importance of the other factors in case B, the findings indicated that pulse welding was second, welding current was third, squeeze and holding times were rated fourth and fifth, and pressure was listed as the sixth and final response.
The main effects plot illustrating the means of case B concerning the welding current, as shown in Figure 10, revealed that the maximum tensile shear force was seen at a welding current of 5000 A, whilst the lowest value was recorded at 6000 A. The experimental findings about pressure welding indicate that the maximum tensile shear force was seen at a pressure of 2 bars, whilst the lowest value was observed at a pressure of 3.5 bar.The experimental results indicate that there is a significant relationship between welding duration and shear force.Specifically, as the welding time increased from 0.6 to 1.4 s, the The welding current being the greatest factor impacting the shear force results is attributed to the increased heat required to form a sufficient solid molten pool of weld at the interface of faying surfaces between the two titanium sheets.It is noteworthy that an improvement in shear force results was observed as the welding current was increased to 7000 A, reaching a maximum shear force of 4.879 kN.On the other hand, the minimal shear force was 4.214 kN, observed with a welding current of 6000 A.
When measuring the shear force effect caused by pulse welding, the minimum value was found to be attained with 2 pulses, while increasing the pulse welding increased shear force, with the maximum shear force being recorded at 4.632 kN with 4 pulses.The tensile shear force increased because the diameter of the nugget grew as the pulse welding was increased to 4 pulses [41].Concerning the findings on holding time, it was seen that the tensile shear force exhibited a rise as the holding time was incrementally increased.This trend continued until a peak shear force of 4.632 kN was obtained, which occurred at a holding time of 1 s.Afterward, a rise in the duration of the holding time resulted in a reduction in the shear force.This is because the increase in holding time led to a reduction in the amount of the void that might be generated in the middle of the nugget region and, therefore, the shear force increased.Nevertheless, it is important to regulate the extent of this increase in hold time, as the researchers observed in the present investigation that a holding period beyond 1 s resulted in a decline in the tensile shear force.Following the prior study conducted by Long et al. [42], it is noteworthy that prolonging the holding period may significantly diminish the occurrence of voids in the RSW process.
Additionally, it has been confirmed the weld strength was compromised because of the existence of a void [43][44][45][46].The increase of the welding time from 0.6 to 0.8 s results in a reduction in the tensile shear force from 4.494 to 4.376 kN.However, the further elevation in the welding time to 1 s caused the shear force to escalate, reaching its peak value of 4.664 kN.Increases in tensile shear force from 4.359 to 4.610 kN were seen when the squeeze time was increased from 0.6 to 1.2 s, but further increases in squeeze time resulted in decreased shear force.
Regarding the pressure impact on the shear force, it was revealed that the optimal tensile shear force was 4.607 kN with 2 bar as pressure; however, further raising the pressure from 3.5 to 5 bar, impacted the tensile shear force significantly and decreasing it to 4.434 kN.The tensile shear force of resistance spot welded joints reduced because the welding pressure was increased, resulting in a decrease in the amount of heat input, which is represented here as the welding current density passing through the nugget zone, resulting in an increase in the expulsion of the molten metal at the faying surfaces [19,47].Another viewpoint holds that when welding pressure rises, a significant stress concentration is formed in the areas surrounding the weld nugget due to the indentions forced by the electrodes on the sheet.Lower tensile shear forces may be attributed to the use of greater welding pressures, which is caused by the production of a weak resistance spot welded connection that leads to the formation of brittle welds [48].If the molten metal is expelled too forcefully from the nugget zone, it might cause a through-hole in the workpiece, which increases the risk of cracking and porosity developing in the weld itself [49].
Using the Taguchi method, it was determined that the RSW parameters of 5000 A welding current, 8 bar of pressure, 1.4 s each for welding and squeezing, 1.5 s for holding, and 5 pulses per weld produced the strongest resistance spot welded joints in case B with a tensile shear force of 4.234 kN.However, experiment 15 had the lowest tensile shear force at 2.191 kN with the following parameters: 6000 A welding current, 8 bar pressure, 0.8 s welding time, 1.2 s squeezing time, 0.5 s holding time, and 3 pulses per second of welding as depicted in Table 5.Unlike in case A, where welding current was the most influential factor, the welding time in case B was found to have the greatest impact on the tensile shear force when examining the main effects plot of case B on the tensile shear force regarding the rank effect of each RSW parameter of case B. As for the relative importance of the other factors in case B, the findings indicated that pulse welding was second, welding current was third, squeeze and holding times were rated fourth and fifth, and pressure was listed as the sixth and final response.
The main effects plot illustrating the means of case B concerning the welding current, as shown in Figure 10, revealed that the maximum tensile shear force was seen at a welding current of 5000 A, whilst the lowest value was recorded at 6000 A. The experimental findings about pressure welding indicate that the maximum tensile shear force was seen at a pressure of 2 bars, whilst the lowest value was observed at a pressure of 3.5 bar.The experimental results indicate that there is a significant relationship between welding duration and shear force.Specifically, as the welding time increased from 0.6 to 1.4 s, the shear force also increased, starting from its lowest value at 0.6 s and reaching its highest at 1.6 s.
Moreover, the results of the squeeze time experiment indicated a progressive rise in the tensile shear force until it reached its peak at 1 s.Subsequently, the shear force saw a decline and reached its minimal effect at 1.2 s.The results of the holding time experiment indicate that a duration of 1.25 s had the most significant impact, whereas a duration of 0.75 s had the least pronounced effect.The pulse welding process demonstrated the highest shear force when using 5 pulses, whereas the lowest shear force was seen when employing just 2 pulses.
Regarding the tensile shear force outcomes of the titanium alloy in case C, it was observed that the highest shear force value of 4.421 kN was obtained during experiment number 6.This experiment was conducted under the following welding conditions: a welding current of 5500 A, a pressure of 2 bar; and welding, squeeze, and holding times of 0.8, 1, and 1.25 s, respectively.The pulse welding was of 5. On the other hand, the experimental analysis revealed that the minimum shear force, equivalent to 2.155 kN, was observed in experiment number 25 as shown in Table 5.
shear force also increased, starting from its lowest value at 0.6 s and reaching its highest at 1.6 s.
Moreover, the results of the squeeze time experiment indicated a progressive rise in the tensile shear force until it reached its peak at 1 s.Subsequently, the shear force saw a decline and reached its minimal effect at 1.2 s.The results of the holding time experiment indicate that a duration of 1.25 s had the most significant impact, whereas a duration of 0.75 s had the least pronounced effect.The pulse welding process demonstrated the highest shear force when using 5 pulses, whereas the lowest shear force was seen when employing just 2 pulses.Regarding the tensile shear force outcomes of the titanium alloy in case C, it was observed that the highest shear force value of 4.421 kN was obtained during experiment number 6.This experiment was conducted under the following welding conditions: a welding current of 5500 A, a pressure of 2 bar; and welding, squeeze, and holding times of 0.8, 1, and 1.25 s, respectively.The pulse welding was of 5. On the other hand, the experimental analysis revealed that the minimum shear force, equivalent to 2.155 kN, was observed in experiment number 25 as shown in Table 5.
The examination of the RSW rank response in case C showed that the holding time was the most significant factor, in contrast to cases A and B where the current and welding time had the most pronounced impact.The welding time exhibited the second-highest level of response, followed by pulse welding, which showed the third-highest level of influence.The squeeze time and pressure recorded the fourth and fifth highest impacts, respectively.In contrast, the welding current had the lowest effect, unlike in case A, where it had the highest impact.
The main effects graphs for the means of case C, as can be seen from Figure 11, indicate a progressive reduction in tensile shear force as the welding current increases, ranging from the highest value seen at 5000 A to the lowest shear force observed at 6500 A. The mean shear force was maximum at a pressure of 3.5 bar, while the lowest mean shear force was noted at a pressure of 8 bar.Regarding the welding time, the average shear force reached its peak at 0.8 s, while the lowest value was seen at 1.2 s.In contrast, for the The examination of the RSW rank response in case C showed that the holding time was the most significant factor, in contrast to cases A and B where the current and welding time had the most pronounced impact.The welding time exhibited the second-highest level of response, followed by pulse welding, which showed the third-highest level of influence.The squeeze time and pressure recorded the fourth and fifth highest impacts, respectively.In contrast, the welding current had the lowest effect, unlike in case A, where it had the highest impact.
The main effects graphs for the means of case C, as can be seen from Figure 11, indicate a progressive reduction in tensile shear force as the welding current increases, ranging from the highest value seen at 5000 A to the lowest shear force observed at 6500 A. The mean shear force was maximum at a pressure of 3.5 bar, while the lowest mean shear force was noted at a pressure of 8 bar.Regarding the welding time, the average shear force reached its peak at 0.8 s, while the lowest value was seen at 1.2 s.In contrast, for the squeeze time, the greatest mean shear force was recorded at 1.2 s, but the smallest mean shear force was observed at 1 s.The experimental results indicate that a holding time of 1.5 s provides the most favorable mean value, whilst the least desirable outcome emerged at a holding time of 0.75 s.As shown in the analysis of case B, it is evident that case C exhibited the highest mean shear force when subjected to a five-pulse welding process.Conversely, the lowest mean shear force for case C is observed when a one-pulse welding process was used.
squeeze time, the greatest mean shear force was recorded at 1.2 s, but the smallest mean shear force was observed at 1 s.The experimental results indicate that a holding time of 1.5 s provides the most favorable mean value, whilst the least desirable outcome emerged at a holding time of 0.75 s.As shown in the analysis of case B, it is evident that case C exhibited the highest mean shear force when subjected to a five-pulse welding process.Conversely, the lowest mean shear force for case C is observed when a one-pulse welding process was used.

Failure Mechanism
Resistance spot welded joints usually failed with the following failure modes: pullout failure (PF) mode, interfacial mode (IF), partial interfacial mode (PIF), and partial pullout through thickness (PPTT) mode [43,45,[49][50][51][52].The type of failure mode generated by resistance spot welded joints during a tensile shear test depends on the formed shape of the fusion zone (FZ), sheet metal thickness, heat-affected zone hardness, and weld nugget hardness [53].
Depending on the RSW settings and the sheet thickness of the welded joints, whether it was a similar or dissimilar thickness, different sorts of failure modes were identified.For case A, only sample 20A failed with interfacial failure mode as depicted in Figure 12.The shear force of this sample was 4.141 kN, while the other samples revealed pull-out failure (PF) with varying the location of failure initiation, whether it was around the nugget zone or heat-affected zone.
Upon examination of the microstructure associated with interfacial failure, it was seen that voids and microcracks were present inside the nugget zone structure as shown in Figure 13a.Notably, the failure initiation was observed to occur near the fusion region as depicted in Figure 13b.The initiation of cracks occurred at the grain boundary, followed by their propagation over the grain boundary.This phenomenon is often referred to as trans-granular brittle fracture, which is recognized as the primary factor contributing to the reduction in tensile shear force.Pull-out failure mode was detected and initiated at the fusion area in the base metal for samples (1-3, 11, 16, 18, and 21-24)A.Tearing occurred as fractures propagated from the fusion site and completed across the breadth of the base

Failure Mechanism
Resistance spot welded joints usually failed with the following failure modes: pull-out failure (PF) mode, interfacial mode (IF), partial interfacial mode (PIF), and partial pull-out through thickness (PPTT) mode [43,45,[49][50][51][52].The type of failure mode generated by resistance spot welded joints during a tensile shear test depends on the formed shape of the fusion zone (FZ), sheet metal thickness, heat-affected zone hardness, and weld nugget hardness [53].
Depending on the RSW settings and the sheet thickness of the welded joints, whether it was a similar or dissimilar thickness, different sorts of failure modes were identified.For case A, only sample 20A failed with interfacial failure mode as depicted in Figure 12.The shear force of this sample was 4.141 kN, while the other samples revealed pull-out failure (PF) with varying the location of failure initiation, whether it was around the nugget zone or heat-affected zone.metal.The highest tensile shear force (5.106 kN) was observed with this failure for sample 24A.Even though the same sort of failure was seen with sample 13A, the final failure was completed through the thickness of the base metal rather than the width.The failure of samples (4, 9, 10, and 14)A was due to pull-out around the HAZ region, where the lowest shear force was observed here with sample 14A.For the samples (5, 8, 12, 15, and 25)A, the pull-out failure type around the nugget zone was observed.Upon examination of the microstructure associated with interfacial failure, it was seen that voids and microcracks were present inside the nugget zone structure as shown in Figure 13a.Notably, the failure initiation was observed to occur near the fusion region as depicted in Figure 13b.The initiation of cracks occurred at the grain boundary, followed by their propagation over the grain boundary.This phenomenon is often referred to as trans-granular brittle fracture, which is recognized as the primary factor contributing to the reduction in tensile shear force.Pull-out failure mode was detected and initiated at the fusion area in the base metal for samples (1-3, 11, 16, 18, and 21-24)A.Tearing occurred as fractures propagated from the fusion site and completed across the breadth of the base metal.The highest tensile shear force (5.106 kN) was observed with this failure for sample 24A.Even though the same sort of failure was seen with sample 13A, the final failure was completed through the thickness of the base metal rather than the width.The failure of samples (4, 9, 10, and 14)A was due to pull-out around the HAZ region, where the lowest shear force was observed here with sample 14A.For the samples (5, 8, 12, 15, and 25)A, the pull-out failure type around the nugget zone was observed.
metal.The highest tensile shear force (5.106 kN) was observed with this failure for sample 24A.Even though the same sort of failure was seen with sample 13A, the final failure was completed through the thickness of the base metal rather than the width.The failure of samples (4, 9, 10, and 14)A was due to pull-out around the HAZ region, where the lowest shear force was observed here with sample 14A.For the samples (5, 8, 12, 15, and 25)A, the pull-out failure type around the nugget zone was observed.In case B, it turned out that all 25 samples exhibited a full pull-out failure mechanism, as can be seen in Figure 14, irrespective of the RSW parameters used.However, it is worth noting that the specific site of failure within the welded joints varied.The pull-out failure mode appeared to start and end around the nugget for the samples marked as 1B, 2B, 9B, 12-14B, and 17-20B.Sample 5B had the maximum tensile shear force of 4.234 kN of the observed failure types.
The potential explanation for the failure seen in the nugget zone might be attributed to the weakening of this area.This weakening may be a result of the higher indentation depth induced by the higher heat created during the passage of greater electrical current through the welding electrodes.It is noteworthy to mention that the failure mode of pull-out for the designated samples 8B, 11B, and 15B began between the heat-affected zone and nugget zones.Specifically, pull-out started in the HAZ and then advanced towards the nugget region, ultimately resulting in fracture.This phenomenon could potentially be associated with In case B, it turned out that all 25 samples exhibited a full pull-out failure mechanism, as can be seen in Figure 14, irrespective of the RSW parameters used.However, it is worth noting that the specific site of failure within the welded joints varied.The pull-out failure mode appeared to start and end around the nugget for the samples marked as 1B, 2B, 9B, 12-14B, and 17-20B.Sample 5B had the maximum tensile shear force of 4.234 kN of the observed failure types.
The potential explanation for the failure seen in the nugget zone might be attributed to the weakening of this area.This weakening may be a result of the higher indentation depth induced by the higher heat created during the passage of greater electrical current through the welding electrodes.It is noteworthy to mention that the failure mode of pull-out for the designated samples 8B, 11B, and 15B began between the heat-affected zone and nugget zones.Specifically, pull-out started in the HAZ and then advanced towards the nugget region, ultimately resulting in fracture.This phenomenon could potentially be associated with the softening of the heat-affected zone, as shown by the findings from the tensile shear force test.Notably, the recorded minimum value of 2.191 kN further proves this claim.The initiation of the third case of the pull-out failure mechanism occurred in the HAZ and then, spread in the peripheral direction surrounding the HAZ until its completion.
Apart from sample number 8C, which exhibited a full interfacial failure mode as shown in Figure 15a, the resistance spot welded joints with an unequal thickness of 0.5 and 1 mm showed a pull-out failure mode.In contrast, samples numbers 13C and 15C failed with a partial failure between a large amount of interfacial failure and a small one of the pull-out nugget mode, as shown in Figure 15b.As shown in Figure 16, the microscopic examination of the 8C cracked surface revealed the presence of a river-like pattern in the fractured spot area, which was created during the tensile shear test.Apart from sample number 8C, which exhibited a full interfacial failure mode as shown in Figure 15a, the resistance spot welded joints with an unequal thickness of 0.5 and 1 mm showed a pull-out failure mode.In contrast, samples numbers 13C and 15C failed with a partial failure between a large amount of interfacial failure and a small one of the pull-out nugget mode, as shown in Figure 15b.As shown in Figure 16, the microscopic examination of the 8C cracked surface revealed the presence of a river-like pattern in the fractured spot area, which was created during the tensile shear test.This is because the orientations of each grain formed in the fusion area are different from one another, causing the crack division to occur in stages that resemble terraces.This kind of fracture is often known as a cleavage failure, and it is detrimental to the failure of the engineering component.However, the lowest tensile shear force was not shown in this sample.The visual observation of samples 13C and 15C, which failed with partial failure between pull-out nugget and interfacial modes, showed that the failure of these samples began as a brittle failure caused by the interfacial mode near the fusion region and progressed towards the nugget region.
The failure of the nugget zone originated as a brittle fracture and progressed to virtually the middle of the nugget zone before changing to a ductile fracture and leaving a small amount of nugget zone on the final surface of the fracture.The samples (7, 9, 14, 17, 16, and 20)C had a pull-out failure mode that began in the HAZ and ended in the same zone with a failure that resembled a cup and cone failure, indicating that the entire failure was ductile.In contrast, the subsequent specimens (1-6, 10-12, 19, 21-24)C failed using the same mechanism, but the failure began in the fusion boundary region.
The final specimen, 25C, had the maximum tensile shear force measured at 4.421 kN.This failure also happened in pull-out mode, first near the HAZ and then spreading out to the width where final tearing occurred.The most intriguing observation is related to the failure of resistance spot welded joints with unequal thicknesses.Regardless of the combination of the RSW parameters, it was observed that the nugget zone was extracted during the tensile shear test from the smaller 0.5 mm thickness towards the larger 1 mm thickness.This resulted in the final fractured surface of the 1 mm specimen resembling a conical nugget zone, while the 0.5 mm specimen exhibited a hole generated by the withdrawal of the nugget by the 1 mm sample.

Micro-Hardness Distribution
The hardness measurements were performed on three resistance spot welded samples of the three analyzed cases.These three samples were selected by the shear force measurements obtained by selecting the samples that exhibited the greatest, middle, and lowest shear force, respectively.
Since the base metal, heat-affected, welded nugget zones experienced different inten-

Micro-Hardness Distribution
The hardness measurements were performed on three resistance spot welded samples of the three analyzed cases.These three samples were selected by the shear force measurements obtained by selecting the samples that exhibited the greatest, middle, and lowest shear force, respectively.This is because the orientations of each grain formed in the fusion area are different from one another, causing the crack division to occur in stages that resemble terraces.This kind of fracture is often known as a cleavage failure, and it is detrimental to the failure of the engineering component.However, the lowest tensile shear force was not shown in this sample.The visual observation of samples 13C and 15C, which failed with partial failure between pull-out nugget and interfacial modes, showed that the failure of these samples began as a brittle failure caused by the interfacial mode near the fusion region and progressed towards the nugget region.
The failure of the nugget zone originated as a brittle fracture and progressed to virtually the middle of the nugget zone before changing to a ductile fracture and leaving a small amount of nugget zone on the final surface of the fracture.The samples (7, 9, 14, 17, 16, and 20)C had a pull-out failure mode that began in the HAZ and ended in the same zone with a failure that resembled a cup and cone failure, indicating that the entire failure was ductile.In contrast, the subsequent specimens (1-6, 10-12, 19, 21-24)C failed using the same mechanism, but the failure began in the fusion boundary region.
The final specimen, 25C, had the maximum tensile shear force measured at 4.421 kN.This failure also happened in pull-out mode, first near the HAZ and then spreading out to the width where final tearing occurred.The most intriguing observation is related to the failure of resistance spot welded joints with unequal thicknesses.Regardless of the combination of the RSW parameters, it was observed that the nugget zone was extracted during the tensile shear test from the smaller 0.5 mm thickness towards the larger 1 mm thickness.This resulted in the final fractured surface of the 1 mm specimen resembling a conical nugget zone, while the 0.5 mm specimen exhibited a hole generated by the withdrawal of the nugget by the 1 mm sample.

Micro-Hardness Distribution
The hardness measurements were performed on three resistance spot welded samples of the three analyzed cases.These three samples were selected by the shear force measurements obtained by selecting the samples that exhibited the greatest, middle, and lowest shear force, respectively.
Since the base metal, heat-affected, welded nugget zones experienced different intensities of welding parameters in each sample, the microstructure of these three zones will be different and because of that, each zone will show a different micro-hardness value.Irrespective of each sample and case, the micro-hardness values were found to be greatest in the nugget zone and lowest in the base metal.The values in the heat-affected zone were about at the midpoint of those found in the other two regions.
Figure 17 shows the hardness distribution for case A. It can be observed that the Vickers hardness of the three samples rose gradually from the base metal zone to the heat-affected zone, reaching the nugget zone, and then reduced gradually again on the opposite side of the heat-affected zone and base metal.The highest micro-hardness of case A was observed with sample A14, which showed the lowest tensile shear force.A Vickers hardness of 184.3 HV was recorded for sample A14 at the nugget zone, whereas 153.3 HV was recorded for the heat-affected zone, while the base metal zone showed the lowest one of 137.7 HV.
As for sample number 24, which showed the highest tensile shear force, it was noted that this presented the lowest micro-hardness, where the hardness of the nugget zone reached 169.5 HV and 146.4 at HAZ, while the base metal recorded the minimum hardness of 135.8 HV.The micro-hardness measurements of sample A23 presented the same trend as the Vickers hardness noticed with samples A24 and A14, and the micro-hardness observations showed values between these samples.Moreover, the nugget zone of sample A23 showed the peak hardness, while the lowest hardness was noted with the base metal, and the HAZ presented values between the nugget and base metal zones.reached 169.5 HV and 146.4 at HAZ, while the base metal recorded the minimum hardness of 135.8 HV.The micro-hardness measurements of sample A23 presented the same trend as the Vickers hardness noticed with samples A24 and A14, and the micro-hardness observations showed values between these samples.Moreover, the nugget zone of sample A23 showed the peak hardness, while the lowest hardness was noted with the base metal, and the HAZ presented values between the nugget and base metal zones.When investigating the micro-hardness in case B, the Vickers hardness findings showed a noticeable enhancement in the hardness of the nugget zone compared to the base metal of the samples, while the heat-affected zone showed 187.8 HV.From the data shown in Figure 18, it can be inferred that the micro-hardness of sample B15 ranged from a high of 285 HV in the nugget zone to a low of 156.7 HV at the base metal.
It is worth noting that the samples of case B micro-hardness observations followed the same pattern as in case A. The highest micro-hardness was observed in the B15 sample, which exhibited the lowest tensile shear force.In addition, the lowest micro-hardness was noted in the B5 sample, which exhibited the highest tensile shear force, and the middle micro-hardness was observed in the B13 sample, which exhibited the middle shear force.The micro-hardness results of titanium alloy in case C are displayed in Figure 19.The micro-hardness curve in case C showed a similar trend to cases A and B. The base metal showed the lowest hardness, and the nugget zone revealed its greatest hardness, followed by the HAZ micro-hardness.Sample C25, which had the minimum tensile shear force recorded, had the highest micro-hardness, as can be seen in Figure 19.When investigating the micro-hardness in case B, the Vickers hardness findings showed a noticeable enhancement in the hardness of the nugget zone compared to the base metal of the samples, while the heat-affected zone showed 187.8 HV.From the data shown in Figure 18, it can be inferred that the micro-hardness of sample B15 ranged from a high of 285 HV in the nugget zone to a low of 156.7 HV at the base metal.
A23 showed the peak hardness, while the lowest hardness was noted with the base metal, and the HAZ presented values between the nugget and base metal zones.When investigating the micro-hardness in case B, the Vickers hardness findings showed a noticeable enhancement in the hardness of the nugget zone compared to the base metal of the samples, while the heat-affected zone showed 187.8 HV.From the data shown in Figure 18, it can be inferred that the micro-hardness of sample B15 ranged from a high of 285 HV in the nugget zone to a low of 156.7 HV at the base metal.
It is worth noting that the samples of case B micro-hardness observations followed the same pattern as in case A. The highest micro-hardness was observed in the B15 sample, which exhibited the lowest tensile shear force.In addition, the lowest micro-hardness was noted in the B5 sample, which exhibited the highest tensile shear force, and the middle micro-hardness was observed in the B13 sample, which exhibited the middle shear force.The micro-hardness results of titanium alloy in case C are displayed in Figure 19.The micro-hardness curve in case C showed a similar trend to cases A and B. The base metal showed the lowest hardness, and the nugget zone revealed its greatest hardness, followed by the HAZ micro-hardness.Sample C25, which had the minimum tensile shear force recorded, had the highest micro-hardness, as can be seen in Figure 19.It is worth noting that the samples of case B micro-hardness observations followed the same pattern as in case A. The highest micro-hardness was observed in the B15 sample, which exhibited the lowest tensile shear force.In addition, the lowest micro-hardness was noted in the B5 sample, which exhibited the highest tensile shear force, and the middle micro-hardness was observed in the B13 sample, which exhibited the middle shear force.
The micro-hardness results of titanium alloy in case C are displayed in Figure 19.The micro-hardness curve in case C showed a similar trend to cases A and B. The base metal showed the lowest hardness, and the nugget zone revealed its greatest hardness, followed by the HAZ micro-hardness.Sample C25, which had the minimum tensile shear force recorded, had the highest micro-hardness, as can be seen in Figure 19.
Vickers hardness measurements at the base metal of sample C25 showed that the lowest value was 134.5 HV.On the other hand, the greatest value was 220.4 HV in the nugget zone and 159.5 HV in the heat-affected zone.Similar to cases A and B, sample C6, which presented the maximum tensile shear force, showed the lowest micro-hardness at the nugget, HAZ, and base metal zones in comparison to samples C25 and C24.
In addition, due to the thin size of the heat-affected zone, it will be able to accommodate the new lamellar structure owing to the reduced cooling rate.On the other hand, the weld nugget experiences a slower cooling rate as it is the main region of the heat input and has that slow cooling rate.This allows producing the new lamellar structure of the α and β phases.Therefore, increasing the hardness of the weld nugget zone, and the more lamellar structure that is formed, the more the hardness of the weld nugget increased [6].

Artificial Neural Network Prediction
Various neural network models have been developed to analyze the tensile shear force of the resistance spot welded joints of the three cases.Different transfer functions This Vickers hardness improvement is due to the hard and brittle behavior of the resistance spot welded joint obtained.This means that an increase in the tensile shear force of the welded joints resulted in a decrease in micro-hardness as reported by Li et al. [22].When attending to the welding parameters, the samples of case A were welded with the highest welding current of 6000 and 7000 A, while the samples of case B were welded with 5000 and 6000 A, respectively.The samples in case C were welded with welding currents of 5500 and 7000 A.
The variation in the welding current might be attributed to a change in the internal microstructure formation.For this reason, the welded samples are more likely to experience imperfections in the resultant spot welded joints through welding operations, as supported by Li et al. [22].The reason for increasing the micro-hardness in the nugget zone compared to the heat-affected zone and base metal is due to the variation of alpha (α) and beta (β) phases in these regions.The formation of the α and β phases is dependent on the cooling rate; the RSW process is conducted at room temperature.
According to that, the cooling rate changes slowly from the center of the weld nugget zone, where the center of the heat input is located, to the heat-affected zone, which is located slightly away from the heat input source.Upon reaching the base metal, the nugget zone experiences a faster cooling rate compared to the other zones.Raising the cooling rate results in a smoother microstructure.
The faster cooling rate in the base metal causes the growth of α and β phase boundaries to be perpendicular to the lamellar and appear nucleated [6].Because of that, the new lamellar structure does not form in the microstructure, particularly in the base metal.In addition, due to the thin size of the heat-affected zone, it will be able to accommodate the new lamellar structure owing to the reduced cooling rate.On the other hand, the weld nugget experiences a slower cooling rate as it is the main region of the heat input and has that slow cooling rate.This allows producing the new lamellar structure of the α and β phases.Therefore, increasing the hardness of the weld nugget zone, and the more lamellar structure that is formed, the more the hardness of the weld nugget increased [6].

Artificial Neural Network Prediction
Various neural network models have been developed to analyze the tensile shear force of the resistance spot welded joints of the three cases.Different transfer functions were trained with many training functions to determine the ideal neural network model by estimating the influence of the RSW parameters on the resultant shear force of welded joints.Mean squared error (MSE) and coefficient of determination (R 2 ) were used as validation metrics for comparing the actual results with the predicted ones.20, it is obvious that the maximum prediction was obtained when employing the Levenberg-Marquardt (Trainlm) training function with the log sigmoid transfer function (Logsig), where the MSE and R 2 were 0.01821 and 0.98433, respectively.Furthermore, the lowest prediction with the Trainlm training function was achieved when pure linear (Purelin) was applied; the MSE and R 2 were recorded to be 0.10719 and 0.90377, respectively.7 shows the predicted and actual tensile shear force of the A, B, and C cases with the optimal neural network model using the Trainlm training function with the Logsig transfer function.

Conclusions
In the present work, we investigated the impact of RSW parameters like welding current, pressure, welding time, squeeze time, holding time, and pulse welding on the tensile shear force, failure mechanism, and micro-hardness of welded joints made from titanium alloy of thickness 1 and 0.5 mm with different combinations of equal and unequal thickness.Moreover, an artificial neural network model was applied to predict the impact of the RSW process parameters on the tensile shear force.The following remarks can be drawn:

Figure 1 .
Figure 1.Schematic illustration of the RSW specimen.

Figure 3 .
Figure 3. Resistance spot welded specimens, Left: Case B, Centre: Case C, Right: Case A.

Figure 4 .
Figure 4. Tensile shear test of the RSW joints.

Figure 3 .
Figure 3. Resistance spot welded specimens, Left: Case B, Centre: Case C, Right: Case A.

Figure 3 .
Figure 3. Resistance spot welded specimens, Left: Case B, Centre: Case C, Right: Case A.

Figure 4 .
Figure 4. Tensile shear test of the RSW joints.Figure 4. Tensile shear test of the RSW joints.

Figure 4 .
Figure 4. Tensile shear test of the RSW joints.Figure 4. Tensile shear test of the RSW joints.

Figure 6 .
Figure 6.Micro-hardness positions along the weld profile.

Figure 6 .
Figure 6.Micro-hardness positions along the weld profile.

Figure 6 .
Figure 6.Micro-hardness positions along the weld profile.

Figure 7 .
Figure 7. Mounted samples of microstructure and micro-hardness tests.

Figure 8 .
Figure 8. Neural network structure of the RSW process.

Figure 8 .
Figure 8. Neural network structure of the RSW process.

Figure 9 .
Figure 9. Shear force main effect plots of RSW parameters of 1-1 mm titanium alloy (case A).

Figure 9 .
Figure 9. Shear force main effect plots of RSW parameters of 1-1 mm titanium alloy (case A).

Figure 10 .
Figure 10.Shear force main effect plots of RSW parameters of 0.5-0.5 mm titanium alloy (case B).

Figure 10 .
Figure 10.Shear force main effect plots of RSW parameters of 0.5-0.5 mm titanium alloy (case B).

Figure 11 .
Figure 11.Shear force main effect plots of RSW parameters of 0.5-1 mm titanium alloy (case C).

Figure 11 .
Figure 11.Shear force main effect plots of RSW parameters of 0.5-1 mm titanium alloy (case C).

Figure 13 .
Figure 13.Micro-examination of the fractured surface of sample 20A at different sites, (a): cracks, (b): initiation of the crack.

Figure 13 .
Figure 13.Micro-examination of the fractured surface of sample 20A at different sites, (a): cracks, (b): initiation of the crack.

Metals 2024 ,
14,  x FOR PEER REVIEW 15 of 25 the softening of the heat-affected zone, as shown by the findings from the tensile shear force test.Notably, the recorded minimum value of 2.191 kN further proves this claim.The initiation of the third case of the pull-out failure mechanism occurred in the HAZ and then, spread in the peripheral direction surrounding the HAZ until its completion.

Figure 14 .
Figure 14.Pull-out nugget failure of case B.

Figure 20 .
Figure 20.MSE and R 2 for predicted results with various training and transfer functions.It is worth mentioning that the Logsig transfer function gives the best prediction with the different training functions, while the Purelin transfer function revealed the worst prediction with the same training function.Moreover, the second highest estimation was achieved by adopting the conjugate gradient with Polak-Ribiére updates (Traincgp) training function with Logsig transfer function, where the MSE and R 2 values were 0.03533 and 0.97006, respectively.Despite the Traincgp training function with Logsig transfer function, which presented the second highest prediction, the Purelin transfer function was given the second lowest prediction compared to the other models by determining the MSE and R 2 of 0.11669 and 0.89503, respectively.Moreover, the MSE and R 2 results from using the Trainscg training function with the Logsig transfer function were 0.04449 and 0.96146, respectively.Again, the MSE and R 2 decreased to 0.10950 and 0.90158 when adopting the Trainscg training function with the Purelin transfer function.For a conjugate gradient with Fletcher-Reeves updates (Traincgf) training function, the Logsig transfer function gives values of MSE and R 2 equal 0.04450 and 0.96200, respectively.The Purelin transfer function with the Traincgf training function recorded the MSE and R 2 of 0.11491 and 0.89377, respectively.Figures 21 and 22 show the best performance and actual and predicted data curves of the optimal model when using the Trainlm training function with the Logsig transfer function.

Figure 20 .
Figure 20.MSE and R 2 for predicted results with various training and transfer functions.The Tansig transfer function with the Trainlm training function presented modest results and was better than the Purelin transfer function, where the MSE and R 2 were determined to be 0.04151 and 0.96390, respectively.On the other hand, the conjugate gradient with Powell-Beale restarts (Traincgb) training function recorded the worst prediction with all transfer functions compared to the other training functions used in the neural network models.The MSE and R 2 were 0.04810 and 0.95941, respectively, when the Traincgb training function was trained with the Logsig transfer function, while the Purelin transfer function with the Traincgb training function presented the worst prediction, with the MSE and R 2 recorded to be 0.12269 and 0.89377, respectively.Table7shows the predicted and actual tensile shear force of the A, B, and C cases with the optimal neural network model using the Trainlm training function with the Logsig transfer function.
It is worth mentioning that the Logsig transfer function gives the best prediction with the different training functions, while the Purelin transfer function revealed the worst prediction with the same training function.Moreover, the second highest estimation was achieved by adopting the conjugate gradient with Polak-Ribiére updates (Traincgp) training function with Logsig transfer function, where the MSE and R 2 values were 0.03533 and 0.97006, respectively.Despite the Traincgp training function with Logsig transfer function, which presented the second highest prediction, the Purelin transfer function was given the second lowest prediction compared to the other models by determining the MSE and R 2 of 0.11669 and 0.89503, respectively.Moreover, the MSE and R 2 results from using the Trainscg training function with the Logsig transfer function were 0.04449 and 0.96146, respectively.Again, the MSE and R 2 decreased to 0.10950 and 0.90158 when adopting the Trainscg training function with the Purelin transfer function.For a conjugate gradient with Fletcher-Reeves updates (Traincgf) training function, the Logsig transfer function gives values of MSE and R 2 equal 0.04450 and 0.96200, respectively.The Purelin transfer function with the Traincgf training function recorded the MSE and R 2 of 0.11491 and 0.89377, respectively.Figures 21 and 22 show the best performance and actual and predicted data curves of the optimal model when using the Trainlm training function with the Logsig transfer function.

Figure 21 .
Figure 21.Performance curve of neural network model of shear force using Trainlm with Logsig.

Figure 22 .
Figure 22.Regression curve of actual and predicted data of shear force using Trainlm with Logsig.

Figure 21 .
Figure 21.Performance curve of neural network model of shear force using Trainlm with Logsig.

Figure 21 .
Figure 21.Performance curve of neural network model of shear force using Trainlm with Logsig.

Figure 22 .
Figure 22.Regression curve of actual and predicted data of shear force using Trainlm with Logsig.Figure 22. Regression curve of actual and predicted data of shear force using Trainlm with Logsig.

Figure 22 .
Figure 22.Regression curve of actual and predicted data of shear force using Trainlm with Logsig.Figure 22. Regression curve of actual and predicted data of shear force using Trainlm with Logsig.

Table 1 .
Dimensions of the RSW specimens.

Table 2 .
Mechanical properties of grade 2 titanium alloy.

Table 3 .
Chemical composition of grade 2 titanium alloy.
Figure 1 depicts the schematic illustration of the test sample, and the dimensions are presented in Table

Table 1 .
Dimensions of the RSW specimens.

Table 2 .
Mechanical properties of grade 2 titanium alloy.

Table 3 .
Chemical composition of grade 2 titanium alloy.

Table 4 .
RSW Experimental parameters according to the design of experiment (DO unitless.

Table 4 .
RSW Experimental parameters according to the design of experiment (DOE).-means unitless.

Table 5 .
Shear force results for the three RSW cases.

Table 5 .
Shear force results for the three RSW cases.
Table 6 lists the MSE and R 2 results with the different training and transfer functions.

Table 6 .
MSE and R 2 for different training and transfer functions.It can be noted from the data in Table6that the Levenberg-Marquardt (Trainlm) training function with the log sigmoid transfer function (Logsig) achieved the best results for the validation metrics MSE and R 2 .From the findings shown in Table6 and Figure

Table 7 .
Actual and predicted shear force using the optimal NN model (Trainlm with Logsig).