Introduction

WEDM is an unconventional manufacturing process commonly used to process conductive high-strength materials. WEDM is adept at producing complex and complex shapes1,2,3. The very important machining responses of the process are the ideal metal removal rate, ideal the roughness of the finished surfaces, and the effective cutting width, which is the notch. Kara examined the optimum results in the finishing milling of Hardox 400 using the Taguchi method in his study4. Kerf is specified as the cutting width in WEDM activities. This depends on cutting parameters such as gap time between two pulses, wire feed, servo voltage, dielectric fluid pressure and wire tension1,2,3. Manoj et al.1 investigated changes in cutting speed, surface roughness, recast layer and microhardness in wedm using genetic algorithm. Using Taguchi experimental design method, it was found that factors for instance discharge current, pulse time and dielectric rate and their interactions have a significant effect on rough cutting operations in order to maximize material removal rate and minimize Ra and cutting width. Nas et al.5 investigated the effects of machining parameters on the experimental and statistical results using the electric discharge method in the machining of AISI D2 cold work tool steel. Nas and Kara investigated machinability tests on a corrosion resistant superalloy subjected to shallow (SCT) and deep cryogenic machining (DCT) with Electric erosion machining (EDM) and the effect of cryogenic treatment types applied to the material on EDM machining performance6. Bayraktar and Kara7 investigated the effect of deep cryogenic treatment on surface roughness parameters of Sleipner cold work tool steel using PVD coated carbide tools.

Ra estimation have been divided into three classes8, Methods based on machining process theory. The surface morphology is modelled and simulated by the analytical model, and then the Ra is calculated from the simulated surface morphology. Methods based on interrupt signals. Inferences are made on acoustic emission, vibration, and shear force signals and the most relevant feature quantities are determined to examine existing artificial intelligence based Ra methods. With algorithms, the mathematical structure between cutting parameters or cutting signals and Ra is established and Ra is estimated8,9,10.

Artificial intelligence (AI)-based approaches are suitable for existing data-driven production environments as they can integrate with production systems. For Ra prediction methods with artificial intelligence, Zhang et al. Built-in parallel convolution module to extract multidimensional feature information from Ra images. Then, Ra was evaluated with the deep learning model in the light of the extracted information11. Li et al.12 suggested an improved fireworks algorithm to monitor grinding Ra with force signals. Guo et al.13 suggested Ra prediction with features extracted from vibration, grinding force and acoustic emission signals. Patel and Gandhi14 studied the parameters affecting Ra in turning D2 steel. Tian et al.15 In their studies, Ra was estimated with fuzzy learning system together with process parameters and different signal properties. García Plaza et al.16 investigated how Ra would be affected by vibrational signals. Nguyen et al. developed a model for monitoring grinding wheel wear. It showed that the model could accurately predict Ra on the grinding surface with 98% confidence17.

By using AI and ML methods, fuzzy logic, artificial neural network, genetic algorithm, ANFIS and other methods have been made easier to solve engineering problems. Additionally, swarm intelligence optimization algorithms were used to estimate Ra based on tool wear10,18. With DL network structures, it is provided to improve tracking accuracy and learn multi-scale features19,20. Guleria et al.21 created a Ra model with an extreme learning machine (ELM) using effective features selected from the vibration signal as input. Erkan et al. a GFRP composite material was milled to experimentally minimise the damages on the machined surfaces, using two, three and four flute end mills at different combinations of cutting parameters. Also, study, Artificial Neural Network (ANN) models with five learning algorithms were used in predicting the damage factor to reduce number of expensive and time-consuming experiments22. Pimenov et al.23 adopted random forest to predict Ra according to tool wear and spindle power, but the prediction accuracy is not effective. Zhao et al.24 suggested a tuning method for Ra stabilization via the digital twin concept. Li et al.25 proposed a meta-learning model to predict tool wear. This model facilitated the interpretability of DL algorithms. Zhou et al.26 In order to optimize the cutting parameters, a Ra prediction model was established with an artificial neural network. Yan et al.27 introduces residual network with two-dimensional time–frequency domain signal for tool wear monitoring. Dedeakayoğulları et al.28 generated a Ra model through optimized neural network and cutting parameters.

Machine learning, deep learning, and other prediction solutions rely on data from the manufacturing process. The predictive view for quality allows product quality to be evaluated based on process data by removing repetitive template from the data and linking them to quality measures. In this process, evaluations form the basis for making decisions about quality improvement measures, such as adjusting parameters to avoid losses. The general approach to quality forecasting has four stages: formulating a production process and a quality objective, selecting and collecting process and quality data, running a learning model, and using a scoring model as the basis for decision making (Fig. 1). In this sense, estimated quality essentially involves supervised machine learning techniques29.

Figure 1
figure 1

Predictive quality approach29.

Researchers have effectively used methods such as ANN, ML and DL to increase efficiency. Ziletti et al.30 proposed an ML-based approach towards not automatically classifying their work. Researchers used a machine learning prediction method for proposing to stimulate the design of medical parts Ti alloys with low modul31. Cardoso Silva et al.32 specified that machine learning approximation was laid out as systems to help machine learning systems work, provide appropriate resources, and make decisions. Zhang et al.33 contemplated alloys with superior properties by iteratively designing composition by means of Bayesian optimization using the ML strategy.

Du et al.34 roughness, profile deviation and roundness deviation were studied on the lathe. It achieved high prediction accuracy with artificial neural network based machine learning application. Researchers used random forests (RF) machine learning to estimate the dimensional accuracy and surface quality of holes35. Additionally recurrent neural networks methods for instance long short term memory and transformer networks, which represent the latest technology in natural language processing fields for instance speech recognition and machine translation29.

There are also different studies on deep learning in the literature. Researchers studied the analysis of milled surfaces using an experimental and deep learning model. They revealed that the proposed CNN model has a sensitive and thin structure that replaces high-cost Ra measuring devices36. Pan et al.37 used ultrasonic vibratory cutting technology for precision machining of W-tungsten alloy through deep learning method. More than 10% prediction accuracy has been achieved. Researchers worked on the model for machine speed prediction with deep learning. They worked on the model that included convolutional neural networks LSTM encoder-decoder architecture38. Wang et al. examined the advantages of deep learning for the prediction of product quality in welding processes. In addition, they focused on the deep learning technique, conventional neural networks (CNNs) and recurrent neural networks (RNNs), which are suitable for image processing and sequential modeling39.

The extreme learning machine has become a structure used in applications for instance 3D shape analysis and classification today. A single hidden layer feedforward neural network with N-hidden nodes is defined as in Eq. 140. Here, ai and bi are the learning parameters. Bi, i. is the weight of the hidden node. G(x) is the activation function40,41.

$$f_{N} \left( x \right) = \mathop \sum \limits_{i = 1}^{N} B_{i} , G\left( {\left( {a_{i} , b_{i} ,x} \right), x\epsilon R,{ }a_{i} { }\epsilon { }R} \right)$$
(1)

Chen et al.41 proposed an unsupervised attribution selection-based extreme learning machine for clustering that integrates ELM with norm editing to remove hidden neurons and cluster data directly without creating an embedding. Akusok et al.40 presents a new perspective on ELM solution in relation to conventional linear algebraic performance of high performance extreme learning machines for big data; and has successfully achieved the latest software and hardware performance. Zhou et al.42, addresses issues by proposing a new TCM method that uses only a few suitable property parameters of signals in combination with a two-layer angular core extreme learning machine. Wu et al.43, The article explored a voice recognition based ELM pattern detection method to end product poorness caused by cutting tool breakage or wear in the machining process.

Looking at the studies published in WEDM; The determined change of machining parameters and machining performance outputs for instance Kerf, Ra, Mrr and metallurgical structure change was analyzed by various studies. The detailed literature review showed that the number of studies on the extent to which the workpiece changes its properties when exposed to different processes is limited and the limited number of published studies are not comprehensive. Experimental and artificial intelligence-based theoretical studies on this subject will make a great contribution to this field. Therefore, this study investigated the effects of conductivity, microhardness and microstructure of the specimens with WEDM parameters, and the results were predicted for Ra, kerf, MRR and WWR outputs with deep learning and extreme learning machine.

Material and methods

In the first phase of this study, different process types were processed on the samples. The aim here is to determine the changes in properties such as microstructure, microhardness and conductivity that occur in the structure of hardox 400 steel when exposed to different processes. Then, the samples affected by these changes were processed in WEDM and measurement results (Figs. 2, 3) with the box-behnken experimental design. The results were analyzed in the Minitab 21 program. In the second phase of the study, a prediction models were created with DL and ELM for the Ra, Kerf, MRR and WWR to be made using these data. Tensorflow was used for DL and hpelm was used for ELM in the study. A linear regression models are also presented to compare with the results.

Figure 2
figure 2

WEDM process44.

Figure 3
figure 3

(a) Ra and (b) kerf images of this study.

Process type

Hardox steel was subjected to different processes (Table 1) to change its structure. These processes were carried out with five different samples as heat treatment, cold forging, plasma welding, mig-mag welding and commercial sample. In this context, it is expected that the microstructure, microhardness and electrical conductivity of Hardox steel samples will vary.

Table 1 Process type.

Master sample

Hardox is a versatile wear resistant steels with hardness of 400 HV. The chemical composition of Hardox 400 is shown in Table 2 and its mechanical properties are shown in Table 3. It is well suited for additional wear applications requiring high toughness, excellent weldability and bendability. They are also wear resistant steels in the form of versatile and wear resistant round bars and the high toughness provides good weldability. It is commercially available quenched to high tensile strength and hardness values. Hardox round bars open up new possibilities for stronger product designs. In addition, these steels help optimize workshop processes such as machining and welding.

Table 2 Chemical composition of Hardox 400 steel.
Table 3 Mechanical properties of Hardox Steel.

Heat treatment

Conductivity, microhardness and microstructures of samples of Hardox Steel exposed to heat treatments were examined in this study. The purpose of this study is to obtain a distinct change on the sample micro structures by applying heat treatment and to determine the effect of this changed microstructures on machinibility with WEDM. The heat treatment of the samples was carried out in the Protherm 442 furnace. The samples were prepared in accordance with the EN 10325 heat treatment standard. Table 1 shows the heat treatment parameters for the austenitizing and subsequent tempering of the samples. Heat treatments applied to Hardox Steel that Heating to 960 °C (15 min) holding and quenching and Heating to 240 °C and holding 3 h after air cooling.

Cold forging

Cold drawn steel, such as cold rolled steel, is machined at room temperature. With the cold drawing process, it is ensured that the hot rolled products are brought to more precise measurement tolerances, more durable and superior surface quality is obtained. The desired hardness can be achieved on the surface without heat treatment, but since the structure of the material is interfered with, problems may occur in the internal structure and surface of the material. As a result of cold drawing, yield and tensile stress and hardness increase, while ductility decreases. In this study, cold drawing process was applied 3 times in succession by reducing the diameter of 2% in each process. The samples were drawn in accordance with the EN 10278 cold drawing standard.

Plasma welding and mig-mag welding

Hardox steels were joined by different welding (Plasma and Mig-mag) methods, but at the same amperage and feed rate. The samples were prepared in accordance with the EN 17632 Mig-Mag welding standard. The changes of these parameters on weld zone, heat affected zone width, microstructure, microhardness, conductivity were investigated. The effects of these changes on machinability in WEDM were investigated. Ra, Kerf, MRR and WWR measurements in welded samples include the average of the measurements of the weld zone and the heat affected zone.

Design of experiment for WEDM

RSM shows an experimental setup that aims to obtain the highest number of dependent variables on the response surface with the least possible number of observable values. Experimental design is made to examine the relations of the variables with the objective or response functions. However, during the experimental design, one variable is changed at a time, as in the classical approach. However, this approach is difficult and time consuming, especially in multivariate systems. On the other hand, the statistical design of experiments, reduces the number of experiments to be performed, takes into account the interactions between variables, and can be used for optimization of operating parameters in multivariate systems45. In this study, Box–Behnken statistical experimental design was used to investigate the effects of six independent variables on response functions and to determine the conditions that maximize Ra, Kerf, MRR, WWR efficiency. The Box–Behnken statistical experiment design method offers an empirical relationship between the response function and the independent variables. The approximation is a first-order model if it gives a good result on the response surface of the system as a linear function of the independent variable Eq. 245;

$$y = \beta_{0} + \beta_{1} x_{1} + \beta_{2 } x_{2} + \ldots + \beta_{k} \beta_{k} + \varepsilon$$
(2)

If the response surface of the system has a curvature, a quadratic model may be more appropriate Eq. 31,45;

$$y = \beta_{0} \mathop \sum \limits_{i = 1}^{n} \beta_{i} X_{i} + \mathop \sum \limits_{i = 0}^{n} \beta_{ii} X_{i}^{2} + \mathop \sum \limits_{i = 0}^{n} \mathop \sum \limits_{j = 1}^{n} \beta_{ij} X_{i} X_{j} + \varepsilon_{0}$$
(3)

As a result of structure change, the machinability of WEDM was examined. Machinability parameters were determined according to the box-behnken surface response methodology. Parameters and their levels are shown in Table 4. The result of Ra, Kerf, MRR, WWR were analyzed and graphics were examined by using Minitab 21 program. Experimental studies were performed on an ONA AF25 precision CNC WEDM. The following were used in the experimental setup; Ø 0.25 mm brass wire was used as the electrode and the dimensions of hardox 400 samples were Ø 40 mm in all experiments. Experiments were carried out to determine the variability in input parameters and the cutting width, surface quality and material removal rates on the workpiece.

Table 4 Parameters and levels of Box behnken surface response methodology.

Optimization with artificial intelligence

Optimization is a mathematical discipline and an approach to determining the optimific in a quantitatively well-defined sense. The math optimization of processes controlled by differential equations has shown significant advances in recent years. This has been applied to a large spectrum of disciplines for instance mathematics, engineering, economics. Optimization theory covers algorithms for solving optimization problems and their analysis. An optimization problem specifies an objective function to be maximized or minimized with constraints.

The prediction models were created with DL and ELM for the modeling studies to be made using these data. Before the analysis, the independent variables were normalized between [0,1], and the dependent variables were not normalized. Python 3.9 was used in the study. The normalization process was applied for all three methods (DL, ELM and regression). Rmsprop and adam methods as optimization algorithms were tried. sigmoid, relu, tanh and linear as activation functions were applied. In the experiments, the number of hidden layers was determined as 1, 2 and 3. The number of neurons in each hidden layer will vary from 6 to 150. 90% of the data were determined for training and 10% for testing (207 were used as training data and 23 were used as test data). Epochs were determined as 1000 (Table 5). Linear regression models is also introduced to compare with the efficiency of the results.

Table 5 DL and ELM parameters.

Results and discussion

Response surface metodology

The Ra, Kerf, MRR, WWR values obtained from the box behnken design of the parameters and subsequent 230 experiments in WEDM are shown in Table 6. Experiment results were analyzed using Minitab 21 program and graphs were drawn. After the samples were subjected to different processes, the changing hardness and microstructures also had an effect on the machinability.

Table 6 WEDM parameters and results.

After the heat treatment, the α-ferrite phase volume increased in the sample, while the pearlite phase volume decreased2. Observable decreases were detected in Ra and kerf values due to the relative decrease in hardness. In Figs. 4 and 5 microstructures of tempered samples at commercial and Heating to 960 °C holding and quenching + Heating to 240 °C and holding 3 h after air cooling are given respectively. In these microstructures as the tempering temperature increased α-ferrite phase volume also increased whereas pearlite phase volume decreased. Similar results were also encountered in literatüre3,46.

Figure 4
figure 4

Master sample Hardox microstructures.

Figure 5
figure 5

Heat treated Hardox microstructures.

Microhardness

The hardness values of the samples were measured and given in Fig. 6. According to the hardness results, the commercial sample hardness was 394. Following the heat treatment, the hardness of the sample was measured as 330. The sample hardness was 348 by cold drawing process. The microhardness values of the welded samples were relatively lower than the other processes. It was measured as plasma welded 245 and mig-mag welded 262. Microhardness also affected machinability due to changes in microstructure and conductivity. Master sample has tempered martensite structure (Fig. 2). These hardox steels are produced thoroughly hardened and presented as such2. Similar results were also encountered in literatüre2,46.

Figure 6
figure 6

Microhardness result.

In hardox bars, 2% diameter reduction was achieved in each cold drawing process. After this process repeated twice, a relative increase in hardness values was expected. This affected its machinability and caused Ra, kerf values to be lower than the commercial sample. The underlying reason for giving similar results with heat treatment can be explained by increased conductivity values.

The effect of heat input and subsequent cooling process to the sample on the microstructure is very important. Since the welding heat of Hardox rods will create a tempering effect in this region after welding3, it is inevitable that a fine perlite structure will form in the microstructure. In addition, heat input affected the electrical conductivity in welded samples. As a result, Ra affected the Kerf, MRR and WWR outputs. Lamel bainite in the weld metal zone microstructure of the sample significantly affected the machinability (Fig. 7).

Figure 7
figure 7

Plasma welded Hardox microstructures.

In Fig. 8, the weld zone microstructure of the sample welded using 180 A with the MAG method is given. Here, the α-ferrite phase morphology is dendritic. In addition, a thin pearlite phase was observed between the dendritic phases.

Figure 8
figure 8

Mig-mag welded Hardox microstructures.

Analysis of variance (ANOVA) tests were also performed for the responses and the results are presented in Tables 7, 10, 13 and 16. As seen in Table 7, the model F value was calculated as 86.04 according to the Ra ANOVA. In addition, since the model p value is < 0.05, it shows that the determined variables and the model are statistically significant. In addition, all WEDM parameters are extremely important for the model according to F and P values. According to the ANOVA results, the most important parameter affecting the surface roughness was found to be the hardox samples exposed to different processes (40.40%).

Table 7 Analysis of variance for Ra.

In the analysis for Ra, Model R2 value was obtained as 0.9534. Estimated and adjust R2 values were calculated as 0.9290 and 0.9423, and these two values show a statistically significant agreement (Table 8).

Table 8 Model summary for Ra.

Regression analyses are performed for the modeling and analysis of different variables with a relationship between one dependent variable and one or more independent variables22. Linear regression models are relatively simple and provide an mathematical formula that can produce predictions. In this study, the equations for estimation of the Ra, kerf, MRR and WWR were calculated using regression analysis. Response function equations with determined coefficients for Ra, Kerf, MRR, WWR efficiency are shown in Tables 9, 12, 15 and 18. Signs and magnitudes of the coefficients in the response functions show the effect of the independent variables on the response function and its importance in this context. The most ideal regression equations for ra are given in Table 9, depending on the results of the Box behnken experimental design.

Table 9 Regression equations for Ra.

When Fig. 9 is examined, an increase in Ra values was observed with the increase of Toff, one of the WEDM parameters. A general decrease in Ra values was observed with the increase of Current, Dielectric, wire feed and wire tension values. When the effects of the samples on Ra were examined according to the process type, the lowest Ra values were acquired in the heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively. Similar results were also encountered in literatüre1,12,28.

Figure 9
figure 9

Main effect plot for Ra.

As seen in Table 10, the model F value was calculated as 90.21 according to the kerf ANOVA. In addition, since the model p value is < 0.05, it shows that the determined variables and the model are statistically significant. In addition, all WEDM parameters were found to be extremely important for the model according to F and P (< 0.05) values. According to the ANOVA results, the most important parameter affecting the kerf was found to be the hardox samples exposed to different processes (41.92%).

Table 10 Analysis of variance for kerf.

In the analysis for Kerf, the Model R2 value was obtained as 0.9555. Estimated and adjust R2 values were calculated as 0.9324 and 0.9449, and these two values show a statistically significant agreement (Table 11). The most ideal regression equations for kerf are given in Table 12, depending on the results of the Box behnken experimental design.

Table 11 Model summary for kerf.
Table 12 Regression equations for kerf.

When Fig. 10 is examined, an increase in kerf values was observed with the increase of Toff, one of the WEDM parameters. A general decrease in kerf values was observed with the increase in Current, Dielectric, wire feed and wire tension values. When the effects of the samples on the kerf were examined according to the process type, the lowest kerf values were obtained in the heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively. There are similar results in some studies in literature2,47,48,49,50,51.

Figure 10
figure 10

Main effect plot for kerf.

As seen in Table 13, the model F value was calculated as 92.11, according to the MRR ANOVA. In addition, since the model p value is < 0.05, it shows that the determined variables and the model are statistically significant. In addition, all WEDM parameters were found to be extremely important for the model according to F and P (< 0.05) values. According to the ANOVA results, the most important parameter affecting the MRR was found to be the hardox samples exposed to different processes (41.87%).

Table 13 Analysis of variance for MRR.

In the analysis for MRR, the Model R2 value was obtained as 0.9563. Estimated and adjust R2 values were calculated as 0.9339 and 0.9460, and these two values show a statistically significant agreement (Table 14). The most ideal regression equations for mrr are given in Table 15, depending on the results of the Box behnken experimental design.

Table 14 Model summary for Mrr.
Table 15 Regression equations for Mrr.

When Fig. 11 is examined, an increase in MRR values was observed with the increase of Toff, one of the WEDM parameters. Contrary to Ra and Kerf, it is desirable to have high MRR values. A general decrease in kerf values was observed with the increase in Current, Dielectric, wire feed and wire tension values. When the effects of the samples on the MRR were examined according to the process type, the highest MRR values were obtained in the mig-mag welded, plasma welded, cold forged, master sample and heat-treated processes, respectively. There are similar results in some studies in literatüre2,6,40,52,53.

Figure 11
figure 11

Main effect plot for MRR.

As seen in Table 16, the model F value was calculated as 92.12, according to the wwr ANOVA. In addition, since the model p value is < 0.05, it shows that the determined variables and the model are statistically significant. In addition, all WEDM parameters were found to be extremely important for the model according to F and P (< 0.05) values. According to the ANOVA results, the most important parameter affecting the WWR was found to be the hardox samples exposed to different processes (41.88%).

Table 16 Analysis of variance for WWR.

In the analysis for WWR, the Model R2 value was obtained as 0.9561. Estimated and adjust R2 values were calculated as 0.9341 and 0.9462, and these two values show a statistically significant agreement (Table 17). The most ideal regression equations for wwr are given in Table 18, depending on the results of the Box behnken experimental design.

Table 17 Model summary for WWR.
Table 18 Regression equations for WWR.

When Fig. 12 is examined, an increase in WWR values was noticed with the increase of Toff, one of the WEDM parameters. A general decrease in WWR values was observed with the increase in Current, Dielectric, wire feed and wire tension values. When the effects of the samples on the wwr were examined according to the process type, the lowest WWR values were obtained in the heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively.

Figure 12
figure 12

Main effect plot for WWR.

Optimization with artificial intelligence

In this study, 36 different trial run were applied with these DL parameters. Additionally 8 different trial run were applied with these ELM parameters. The DL and ELM model used in the study are shown in Figs. 13 and 14. The dataset for DL and ELM are set to (230 * 4). In deep learning, the maximal vigorous results were determined according to the mean square error. Adam as the optimization algorithm, sigmoid as the activation function, number of hidden layers 3, number of neurons 6 and were determined as 10% of the data to be tested. In the extreme learning machine, the activation function is sigmoid in the hidden layers and linear in the output layers. The number of neurons in both the input layers is 6 and the number of neurons in the output layers is 6.

Figure 13
figure 13

DL architecture of this study.

Figure 14
figure 14

ELM architecture of this study.

The results are optimized with the DL and ELM. MSE values and r square values of Ra, Kerf, MRR and WWR values as a result of DL and ELM optimization are given in Table 19. It is also optimized by linear regression to compare the optimization results. In addition, the regression equations of the outputs are shown in Eqs. 47.

Table 19 Result of DL, ELM and linear regression.

Deep learning model runs for two learning algorithms (RmsProp, Adam), two activation functions (ReLU, Sigmoid) and different neuron numbers. ELM models runs for basic-ELM, P-ELM and OP-ELM. For Ra, Kerf, MRR and WWR, the best MSE value for test data are given in bold. The results are given supplementary documents.

The best test MSE value for Ra was obtained as 0.012 in DL and the r squared value 0.9274. The best test MSE value for kerf was obtained as 248.28 in ELM and r squared value 0.8676. The best MSE value for MRR was obtained as 0.000101 in DL and the r squared value 0.944. The best MSE value for WWR was obtained as 0.000037 in DL and the r squared value 0.918473. As a result, it was concluded that different optimization methods can be applied according to different outputs (Ra, Kerf, MRR, WWR). It also shows that artificial intelligence-based optimization methods give successful estimation results about Ra, Kerf, MRR, WWR values.

Comparative graphs of the actual value in the test values of the best model obtained for Ra, Kerf, MRR and WWR and the predicted values of the model are given in the Fig. 15. In the graphs, the black and solid lines show the actual values, and the red and dashed lines show the predicted values of the best model. The graphs show that the best model achieves results very close to the true values.

Figure 15
figure 15

Original data and model output comparison graph for best test MSE Value.

The coefficients of the regression equations obtained without normalization on the data are given Eqs. 47.

$$y_{Ra} = \, 0.454 + 0.0041*Toff - 0.2214*Current - 0.0378*Dielectric - 0.085*Wire \, feed - 0.058*Wire \, tension + 0.1053*Process \, type$$
(4)
$$y_{kerf} = \, 469.28 + 0.0044*Toff - 22.97*Current - 3.87*Dielectric - 8.44*Wire \, feed - 6.131*Wire \, tension + 11.168*Process \, type$$
(5)
$$y_{mrr} = \, 0.4634 + 0.00043*Toff - 0.0227*Current - 0.0038*Dielectric - 0.0082*Wire \, feed - 0.0060*Wire \, tension + 0.0110*Process \, type$$
(6)
$$y_{wwr} = \, 0.231 + 0.00021*Toff - 0.011*Current - 0.0019*Dielectric - 0.0040*Wire \, feed - 0.00303*Wire \, tension + 0.0054*Process \, type$$
(7)

Conclusion

Hardox steel was subjected to different processes to change its structure. These processes were carried out with five different samples as heat treatment, cold forging, plasma welding, mig-mag welding and commercial sample. In this context, the microstructure, microhardness and electrical conductivity of Hardox steel samples are expected to vary. Then, the samples affected by these changes were processed in WEDM with the box-behnken experimental design. Ra, Kerf, MRR and WWR results were analyzed in Minitab 21 program.

In the next phase of the study, a prediction model was created for Ra, Kerf, MRR and WWR with DL and ELM using these data. Anaconda Python 3.9 version was used as a program in the optimization study. Additionally, a linear regression models are presented to compare the results. According to these results, ideal DL and ELM models have been presented for future studies.

According to the experimental results;

  • The lowest Ra values were obtained in heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively. The best Ra (surface roughness) value of 1.92 µm was obtained in the heat treated sample and in the experiment with a time off of 250 µs.

  • Model F value in ANOVA analysis for Ra is 86.04. In addition, the model showed that the determined variables and the model were statistically significant since the p value was < 0.05.

  • WEDM parameters are extremely important for Ra compared to F and P values.

  • In the analysis made for Ra, the model r2 value was obtained as 0.9534.

  • The lowest kerf values were obtained in heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively. The best kerf value of 200 µ was obtained in the heat treated sample and in the experiment with a time off of 200 µs.

  • In the ANOVA analysis for Kerf, the model F value is 90.21. In addition, the model showed that the determined variables and the model were statistically significant since the p value was < 0.05.

  • WEDM parameters are extremely important for kerf compared to F and P values.

  • In the analysis made for Kerf, the model r2 value was obtained as 0.9555.

  • Contrary to Ra and kerf, it is desirable to have high mrr values. On average, the highest mrr values were obtained in mig-mag welded, plasma welded, cold forged, master sample and heat-treated processes, respectively. The best mrr value of 200 g min−1 was obtained in the mig-mag welded sample and in the experiment with a time off of 300 µs.

  • Model F value in ANOVA analysis for Mrr is 92.12. In addition, the model showed that the determined variables and the model were statistically significant since the p value was < 0.05.

  • WEDM parameters are extremely important for mrr compared to F and P values.

  • In the analysis made for Mrr, the model r2 value was obtained as 0.9563.

  • The lowest wwr values were obtained in heat-treated, cold forged, master sample, plasma welded and mig-mag welded processes, respectively. The best wwr value of 0.098 g was obtained in the heat treated sample and in the experiment with a time off of 200 µs.

  • Model F value in ANOVA analysis for Wwr is 92.12. In addition, the model showed that the determined variables and the model were statistically significant since the p value was < 0.05.

  • WEDM parameters are extremely important for wwr compared to F and P values.

  • In the analysis made for WWR, the model r2 value was obtained as 0.09561.

In the analysis made with artificial intelligence systems;

  • The best test MSE value for Ra was obtained as 0.012 in DL and the r squared value 0.9274.

  • The best test MSE value for Kerf was obtained as 248.28 in ELM and r squared value 0.8676.

  • The best MSE value for MRR was obtained as 0.000101 in DL and the r squared value 0.9444.

  • The best MSE value for WWR was obtained as 0.000037 in DL and the r squared value 0.9184

As a result, it was concluded that different optimization methods can be applied according to different outputs (Ra, Kerf, MRR, WWR). It also shows that artificial intelligence-based optimization methods give successful estimation results about Ra, Kerf, MRR, WWR values. According to these results, ideal DL and ELM models have been presented for future studies.