Introduction

Aluminium Matrix Composites (AMCs) are high performance and lightweight materials which has flexible structural and functional properties for different industrial applications [1]. Particle reinforcement in AMCs leads to better mechanical and physical properties that are extensively used in aerospace industries, military, automotive and electricity industries. Titanium Carbide TiC reinforcement in AMCs provides high hardness, low density, low chemical reactivity and also good wettability with molten aluminium [2]. It is proved that addition of ceramic reinforcement strengthening the laser additive manufacturing, increase the tensile strength and three times higher elongation compared to unreinforced AMCs [3]. The significant increase in wear rate is observed with the increase in titanium carbide nanoparticles reinforcement in AMCs (Al6061) [4]. Titanium Carbide reinforcement also increases the solid particle erosion of Al6061 using ultrasonic assisted stir casting process [5]. In situ synthesis, reinforcement of Titanium carbide nanoparticles provides better metallurgical bonding to the aluminium matrix composites during the melting process [6]. Optimization of cutting force, surface roughness and flank wear in turning operation of titanium carbide reinforced Al6061 composites is performed and found that increase in feed, speed and depth of cut leads to increase in higher surface roughness, cutting force and flank wear [7].

Laser cutting is identified as one the precise cutting method for AMCs which has a very good Performance characteristics such as surface roughness, cutting edge quality and kerf dimensions [8]. Co2 laser cutting of pure titanium is studied to find the influence of laser power thermal energy and cutting speed on surface roughness [9]. Cutting parameters of CO2 laser cutting for Al6061/SiCp/Al2O3 composites is performed and analysed using RSM method [10, 11]. Multiple Regression based prediction analysis is performed using ANOVA in CO2 laser cutting of SS-304 and influenced parameters are identified on kerf width and surface roughness [12]. The investigations on reinforced polyester sheets using co2 laser cutting are performed to analyses the process and found that there is a decrease in cutting volume efficiency with respect to sheet thickness and specific point energy [13]. Adaptive neuro fuzzy logic-based prediction model is created to predict the optimum process parameters for performance enhancement in hybrid wire EDM on titanium alloy [14]. Experimental data is enlarged used Monte Carlo simulations and Artificial Neural Network model is used for very-high-cycle fatigue (VHCF) analysis to find the significant influence of defect size, location, depth and orientation on Ti-6Al-4 V [15]. Supervised Machine learning classification model is developed to find the Defects in germanium components manufactured using ultra-precision machining to enhance the quality of the products [16]. [17,18,19,20,21,22] The authors have studied the different mechanical properties of composites and [23,24,25,26] authors explored the different machine learning techniques for prediction of mechanical properties different machining of composites.

In this research optimization of surface finish of in terms of machining Parameters in Pulsed CO2 Laser Cutting of Particle (TiC) Reinforced Al6061/Al2O3 Composite Using KNN & ANN. By enhancing the surface finish of Al6061/Al2O3 Composite materials, it contributes to the advancement of manufacturing processes and also contributes in various high-precision and high-performance industries.

Experimentation

In this study of aluminum alloy (Al6061) reinforced with titanium carbide (TiC) particles and alumina (Al2O3) particles is selected as materials for the pulsed CO2 laser cutting machine which is shown Fig. 1. Different percentage with titanium carbide (TiC) particles such as 3%, 6% and 9% are considered for the study to understanding the influence on surface roughness of the components which is shown in Fig. 2. In aerospace and automotive industries, pulsed CO2 laser cutting process is commonly used process for the aluminum alloys which has good strength and corrosion resistance. To enhance the characteristics or properties of composites, a hard ceramic material Titanium carbide is used. Alumina is another ceramic material which can be used for increasing the hardness and thermal stability. Pulsed CO2 laser cutting of particle-reinforced aluminum composites requires consideration of material properties, laser parameters, and process optimization to achieve precise cutting with high-quality surface finish.

Fig. 1
figure 1

Pulsed CO2 laser cutting machine

Fig. 2
figure 2

Aluminum alloy (Al6061) reinforced with titanium carbide (TiC) particles

There are five input factors such as reinforcement percentage of TiC, laser power, velocity, gas flow pressure and pulse frequency are considered in this study to minimize the surface roughness. By varying the TiC reinforcement from 3 to 6%, the study effectively investigates how incremental changes in reinforcement content influence the surface roughness and overall performance of AA6061 composites. This range is chosen to balance enhanced mechanical properties, maintain economic feasibility, ensure composite homogeneity, and align with industry standards. Reinforcement of TiC varied from 3 to 6%, laser power varied from 2000 to 3000 w, velocity varied from 10 to 30 mm/sec, gas flow pressure varied from 0.7 to 1.3 and pulse frequency varied from 7 to 13 which are shown in Table 1.

Table 1 Process parameter levels

Five input parameters with three levels of each is considered for the Design of experiments study and L27 orthogonal array is chosen to perform the experimental trails. After experimentation surface roughness is measured for each experimental trails and tabulated with calculated S/N ratio in Table 2. Taguchi L27 orthogonal array and ANOVA analysis gives an efficient and best approach for the optimization of machining parameters. It enables systematic approach for multi variable and their interactions study, find influencing parameters, and also ensure the reliability of the results. This approach is essential for enhancing the quality of surface finish and performance of machined components.

Table 2 Experimental results with input parameters

Results & Analysis

Minitab is used to calculate the S/N ratio for the surface roughness and optimization is achieved by selecting the highest level of S/N ratio. In Fig. 3, surface roughness with main effect plot which give rough idea about the influence of input parameters. It is observed that lower level of all input parameters leads to less surface roughness. It is observed that reinforcement of Titanium carbide and laser power has the higher inclination compared to other input parameters from Fig. 4. Highest inclination indicates that that reinforcement of Titanium carbide and laser power has more influence on surface roughness and the velocity, gas flow pressure and pulse frequency is almost horizontal which explains the insignificant effect on surface roughness.

Fig. 3
figure 3

S/N ratio plot for surface roughness

Fig. 4
figure 4

Surface roughness interaction plot

Parallel lines indicates that there is no interaction effect of two input parameters on output and non-parallel lines (Intersection) indicates strong interaction effect on performance characteristics. From the interaction plots, it is proved that strong interaction exists between factors (laser power*velocity), (laser power*gas flow pressure) and (Velocity*Gas flow pressure) while moderate interaction exists between the rest of the factors as far as the Surface roughness of particle-reinforced aluminum composites machined using Pulsed CO2 laser cutting machine. It is observed that Laser power versus velocity, Laser power versus gas flow pressure and velocity versus gas flow pressure plots are has the nan parallel lines which indicates that higher interaction of above parameters is higher on surface roughness compared to other input parameters. Titanium carbide percentage does not have any interaction effect on surface roughness with other input parameters because factor A has parallel interaction lines with all factors Laser power, velocity, gas flow pressure and Pulse frequency. Pulse frequency has moderate interaction effect with Laser power, velocity and gas flow pressure.

Response table for signal to noise ratios of surface roughness is shown in Table 3 which represents ranking of the parameters as per S/N ratio. Tables clearly explains that reinforcement percentage of TiC and laser power has the highest influence, velocity has less influence and others has the moderate influence on surface roughness.

Table 3 Response table

ANOVA is a tool used to solve the statistics behind the data to find the influence of input variables on output variable. ANOVA table for this study is demonstrated using F value, P value and R-square values which is shown in Table 4. By observing the F value from the table, A and B has the highest value.

Table 4 ANOVA table

Compared to Velocity, Gas flow pressure and Pulse frequency which means reinforcement percentage of TiC and laser power has the highest influence and velocity has no significant influence on surface roughness which proves the inference of response table ranking values.

Interaction effect of two parameters on output can be demonstrated using contour plots. Different combinations of input parameters versus surface roughness are plotted contour plots which is shown in Fig. 5a–j. It is observed that all factors with minimum level is leads to less surface roughness value. The interaction of factor E (pulse frequency) with any factor has less influence on surface roughness. Where interaction of factor A with all other factors shows the vertical region which explains TiC reinforcement is having highest influence on output has highest influence on surface roughness compared to other parameters. Interaction effect of factor B(laser power) with C(velocity) and D(gas flow pressure) is higher influence on surface roughness.

Fig. 5
figure 5figure 5

a Contour plot for surface roughness vs Reinforcement (A) & Lase Power(B). b Contour plot for surface roughness vs Velocity(C) &Reinforcement(A). c Contour plot for surface roughness vs Gas Flow Pressure(D) & Reinforcement(A). d Contour plot for surface roughness vs Pulse Frequency(E) & Reinforcement(A). e Contour plot for surface roughness vs Velocity (C) & Laser Power (B). f Contour plot for surface roughness vs Gas flow pressure (D) & Laser Power(B). g Contour plot for surface roughness vs Pulse Frequency (E) & Laser Power(B). h Contour plot for surface roughness vs Gas Flow Pressure(D) & Velocity (C). i Contour plot for surface roughness vs Pulse Frequency (E) & Velocity (C). j Contour plot for surface roughness vs Pulse Frequency (E) & Gas Flow Pressure(D)

From Fig. 5a, the interaction effect of Reinforcement percentage and Laser power on surface roughness is observed and it is clearly observed that lower reinforcement and lower laser power gives better surface finish.

From Fig. 5b, the interaction effect of Reinforcement percentage and velocity on surface roughness is observed and it is clearly observed that laser power has less influence compared to Reinforcement. Vertical region represents less influence of y axis on output.

From Fig. 5c, the interaction effect of Reinforcement percentage and gas flow pressure on surface roughness is observed and it is clearly observed that gas flow pressure has less influence compared to Reinforcement. Vertical region represents less influence of y axis on output.

From Fig. 5d, the interaction effect of Reinforcement percentage and gas flow Pulse frequency on surface roughness is observed and it is clearly observed that pulse frequency has less influence compared to Reinforcement. Vertical region represents less influence of y axis on output.

From Fig. 5e, the interaction effect of laser power and velocity on surface roughness is observed and it is clearly observed that lower laser power and low velocity leads to less surface roughness.

From Fig. 5f, the interaction effect of laser power and gas flow pressure on surface roughness is observed and it is clearly observed that lower laser power and lower gas flow pressure leads to less surface roughness.

From Fig. 5g, the interaction effect of laser power and pulse frequency on surface roughness is observed and it is clearly observed that interaction of both does not have any effect on surface roughness.

From Fig. 5h, the interaction effect of velocity and gas flow pressure on surface roughness is observed and it is clearly observed that lower velocity and lower gas flow pressure leads to less surface roughness.

From Fig. 5i, the interaction effect of pulse frequency and velocity on surface roughness is observed and it is clearly observed that interaction of both does not have any effect on surface roughness.

From Fig. 5j, the interaction effect of gas flow pressure and pulse frequency on surface roughness is observed and it is clearly observed that interaction of both does not have any effect on surface roughness.

Regression equation for surface roughness is derived using Mini tab software and probability plot is also plotted which is shown in Fig. 6.

$$ {\text{Ra}} =\, {2}.{215} + 0.{\text{2885A}}\left( {{\text{wt}}\% } \right) + 0.000{4}0{\text{4B}}\left( {\text{W}} \right) + 0.00{25}0{\text{C}}\left( {{\text{mm}}/{\text{s}}} \right) + 0.0{2}0{\text{D}}\left( {{\text{MPa}}} \right) + 0.0{43}0{\text{E}}\left( {{\text{Hz}}} \right) $$
Fig. 6
figure 6

Probability plot for surface roughness

Machine Learning Modeling

The experimental values of machining parameters considered for optimization are Reinforcement (wt% TiC), Velocity, Laser Power(W), Gas flow Pressure and Pulse frequency are used to train the machine learning models such as Artificial Neural Network (ANN) and K Nearest Neighbour Algorithm (KNN) to predict the surface roughness as data is labelled and continuous output. The performance of the algorithm is evaluated using R Square value(R2), Mean Absolute Error (MAE), Mean Squared Error (MSE) and Root Mean Squared Error (RMSE). The machine learning models are trained and tested using sklearn libraries from python 3.1. The modelling of an algorithms is performed using following steps.

Step1: Collecting the data from experimentation.

Step2: Selection of algorithm based on the nature of data (KNN and ANN).

Step 3: selection of Key parameters (For KNN regressor K = 5 and for ANN number of layers = 3).

Step3: Data preprocessing.

Step4: Splitting of data into two sets such as training set and testing set.

Step5: Training the model using training data set.

Step6: Testing the model and calculating performance characteristics using testing data.

The graph is plotted for actual versus prediction of surface roughness using KNN algorithm and it is observed that all the points are fitting in to the feasible region which means algorithm has good accuracy. The R2 value obtained using KNN algorithm is 0.993 which means algorithm has 99.3% accuracy in its prediction and further is proved by lesser Mean Absolute Error is 0.452, Mean Squared Error is 0.311 RMSE value is 0.557.

The graph is plotted for actual versus KNN prediction of surface roughness and it is observed that all the points are fitting in to the feasible region which means algorithm has good accuracy. The R2 value obtained using KNN algorithm is 0.987 which means algorithm has 98.7% accuracy in its prediction and further is analysed by different errors such as RMSE value is 12.11, Mean Absolute Error is 11.9 and Mean Squared Error is 146.6.

Comparison of ANN and KNN in terms of R Square value (R2), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE) and Mean Squared Error (MSE)is shown in below table. By comparing the R Square value, both predictions are accurate which has more than 0.9, but comparatively KNN algorithm gives slightly higher accurate predictions than ANN predictions. The same is proved by Root Mean Squared Error (RMSE), Mean Absolute Error (MAE) and Mean Squared Error (MSE) where KNN has lesser values compared to ANN (Table 5).

Table 5 Comparison of ANN and KNN algorithm

Conclusion

In this study, the main focus is enhancing surface roughness of titanium carbide particles reinforced aluminum (AA6061) composites using a laser cutting machine. Taguchi L27 orthogonal array and ANOVA analysis is performed on experimental data and optimization of machining parameters to achieve minimum surface roughness. Reinforcement of Titanium carbide particle percentage is identified as highest influential parameter on surface roughness compared to laser power (W), velocity, gas flow pressure, and pulse frequency which is proved using Signal-to-noise ratio (S/N ratio), interaction plots, and contour plots.

  • The results indicates that the laser power and its interaction with velocity has the second highest influencing parameter on the surface roughness.

  • Subsequently, two machine learning algorithms such as Artificial Neural Network (ANN) and K Nearest Neighbors Algorithm (KNN) were employed for training and prediction of surface roughness. The performance of machine learning algorithms are measured using Regression metrics such as R-squared value (R2), Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE).

  • The analysis reveals that surface roughness prediction using K Nearest Neighbors Algorithm were more accurate compare to Artificial Neural Network which is demonstrated by R2, MAE, MSE, and RMSE values.

  • This study highlights the influence of Titanium carbide reinforcement in aluminum composites in pulsed CO2 laser cutting machine.

Further it explains the efficiency of machine learning models, especially K Nearest Neighbors algorithm, very accurate prediction of surface roughness based on the experimental values, thereby giving valuable insights on optimization of machining parameters and enhancement of surface roughness.

This work can be extended with different regression algorithms and also can be tried with different machines and materials. It encourages exploring various composite materials and machining conditions to generalize the findings and expand the applicability of the optimization techniques. This analysis based on machine leaning saves lot of time and energy in terms of experimental trails, testing and documentation which gives significant impact on material science research.