Keywords

1 Introduction

Manufacturing industry all around the world is focusing on improving quality even for intricate geometries but not at the expense of high cost. The issue of high forces generated in traditional machining processes has been overcome by the advent of non-conventional machining processes which removed the contact between the tool and workpiece and hence reducing contact and frictional stresses. Wire electrode discharge machining (WEDM) is one of the advanced machining process which uses electro-thermal process for machining conductive materials. A thin metal wire as the electrode removes the material by melting and vaporization of workpiece material [1]. Continuously flowing dielectric fluid ensures the flushing of debris thus formed from the workpiece surface. The spark erosion process used for material removal in WEDM makes it possible to machine even the hard materials. Since there is no contact between tool and workpiece surfaces, friction does not come into play and hence residual stresses generated at the cutting zone are low.

Mahapatra et al. [2] through the study of different input variables including pulse-on time (Ton), pulse frequency, discharge current, wire speed, wire tension (Wt) and dielectric flow on the surface finish, and kerf width (Kw) found discharge current, pulse duration, and dielectric flow rate to be the most influential parameters for minimization of surface roughness and kerf width in rough cutting operations. Kumar et al. [3] found IP (peak current), Ton, Toff, and Wf to have effect on the surface finish in that order while WEDM of high-speed steel (HSS) through zinc-coated wire. Sharma et al. [4] did the experimental study followed by parameter optimization on WEDM and found out that Ton majorly affects the response parameters such as surface roughness (Sr) and Cr. Experimental investigation done by Garg et al. [5] focused on machining Al/10% ZrO2(P) metal matric composite by WEDM. They studied the effect of the input parameters on surface roughness (Sr) and cutting velocity (CV). Machining parameters such as pulse width, short time pulse and time between pulses were found to affect both the response parameters most. Servo control mean reference voltage was observed to have similar significance on affecting the response parameters. Fard et al. [6] machined AlSiC metal matrix composite to study the effect of Ton, Toff, Wf, Wt, Sv, and discharge current on Sr and cutting speed by applying ANOVA to the experimental results. In his study, Ton and discharge current were found to be the most significant factors influencing the studied targets while Wt had the least impact. Parmanik et al. [7] processed duplex stainless steel in WEDM and observed that increasing Ton did not have a linear effect on Kw and craters along with resolidified molten were noticed on the machined surface. Tosun et al. [8] analyzed the crater sizes formed due to 0.25 mm diameter brass wire under different cutting parameters. It was concluded that pulse duration and open-circuit voltage have adverse effect on crater [8]. Chopra et al. [9] found low Ton and Sv to be the important parameters to minimize edge roughness (Er) while machining EN-31 through WEDM.

Regression is a statistical approach to establish a relationship between two sets of variables, dependent variables and the independent variables. Regression can further be multivariate regression or multiple regression. Multivariate regression refers to estimating more than one output variable using single regression model and when multivariate regression consists of more than one predictor variable it refers to multivariate multiple regression. Majumder et al. [10] studied the impact of pulse-on time, pulse-off time and wire feed on kerf width (Kw), Sr, and material removal rate (MRR). They developed general regression neural network (GRNN) and multiple regression models for prediction and comparison of studied key machinability aspects. Maher et al. [11] performed experiments to study the impact on CNC WEDM response parameters like cutting speed, surface roughness, and white layer thickness while machining titanium alloy grade 5(Ti6Al4V). Their study involves development of a regression model to study the effect of performance index on the machinability aspects studied. In order to increase the productivity and accuracy of the machining of super alloy, Udimet-L605 done by WEDM, Nain et al. [12] developed linear regression model to understand the relation between input and output parameters followed by application of particle swarm optimization (PSO), concluding Ton to be the most impacting factor on Cr.

Artificial neural networks were introduced to simulate the neural structure similar to brain by establishing a relationship between I/O data during training phase which could be recalled during the verification or optimization process [13]. In ANN algorithms, each processing element or neurons can reproduce the biological NN having numerous inputs and a single output considering certain assumptions and constraints. ANN is an effective technique which can approximate with high precision even nonlinear functions [14] but the efficiency is constrained to problem under consideration [15]. Ramakrishnan et al. [16] designed an ANN model using back-propagation algorithm to predict the characteristic parameters, namely MRR and Sr, of CNC WEDM while machining Inconel 718. Optimization was done using multi-response signal-to-noise ratio (MRSN) and analysis of variance (ANOVA) was applied to determine the level of impact of the response parameters.

Adaptive neuro-fuzzy inference system (ANFIS) combines ANN with fuzzy modeling thus capturing benefits of both techniques in one framework only. It provides a means to map the input–output data relations. Yilmaz et al. [17] developed a fuzzy model that allowed precise selection of EDM parameters using if-then. Fuzzification was done by triangular membership function while defuzzification process was then carried out by centroid area method in order to obtain minimum electrode wear and better surface quality. Maher et al. [18] applied ANFIS to predict the value of white layer thickness (WLT) in WEDM and obtained an accuracy of 97.39%. Maher et al. [19] successfully designed ANFIS model for the selection of optimum machining parameters with the objective of achieving higher productivity at the highest possible surface quality and sustainable development at minimum cost.

Present study is conducted with the objective of investigating the effect of four input parameters, pulse-on time, servo voltage, wire tension, and wire feed on the machining performance of die steel EN-31 and to develop both multivariate regression and ANFIS model to predict and improve the output parameters, viz. edge roughness (Er) and kerf width (Kw). EN-31 alloy steel has a number of applications in manufacturing industry due to its outstanding wear resistance and high load-carrying capacity. There is limited literature available on the prediction and optimization of Kw; however, no study has been carried out for prediction of Er while machining through WEDM.

2 Experimental Work

The experiments were conducted on “Electronica Wire-cut Electric Discharge Machine” which can cut with speeds upto 230 mm2/min and workpiece of heights up to 250 mm can be held in its clamp. Out of many wires available for cutting operation, brass wire having a diameter of 250 µm was used which provides better integrity of surface while conducting current. Deionized water is a proven dielectric to provide a good conducting sphere of influence while machining and hence was used in our experimentations.

Four machining parameters, namely pulse-on time (Ton), servo voltage (Sv), wire tension (Wt), and wire feed (Wf), were selected in this study for investigating the effect on edge roughness and kerf width. These parameters were identified on the basis of literature survey and pilot experimentation to maintain the appropriate spark gap. Ton and Sv were scrutinized at three levels while Wf and Wt were scrutinized at two levels on the basis of economic impact of changing the parameters. Duty factor for the machine was kept at 0.7. A general full-factorial design for experimentation was used for studying the effect of each parameter on performance. Table 43.1 shows the control parameters and their levels along with the other parameters that were kept constant throughout the machining operation.

Table 43.1 Control and constant parameters

The crests and troughs formed along the edge were the result of craters and irregularities formed due to the rapid melting and re-solidification of material. The accuracy of machined component is a direct measure of kerf width and edge roughness which were measured at several locations along the machined edge by “Olympus optical microscope” as shown in Fig. 43.1 and averaged over all the readings for each experiment. Each machined specimen was cleaned with acetone before observing under the optical microscope.

Fig. 43.1
figure 1

a Experimental setup, b kerf width measurement, and c microscopic image of machined surface at Ton = 110 µs, Sv = 60 V

3 Modeling Approach

Regression analysis has been used to map the input and output variables in order to obtain a function which could predict the response measures on the basis of given input values. Since the ranges of our parameters are not consistent and hence weights were required, instead, techniques like feature scaling, normalization, and polynomial feature scaling were applied as a part of data preprocessing step. It is usually done using Min-Max scaling method, which is the simplest method of all and consists of rescaling the range of features in range of [−1, 1]. Equation (43.1) shows the formula used. Platform used for this project is Jupyter Notebook and programming language was Python. Scikit-learn is a popular open-source library used to implement machine learning and perform statistical analysis in Python. It features various classification, regression, and clustering algorithms and is designed to interoperate with the Python numerical and scientific libraries NumPy, SciPy, and Pandas.

$$x^{{\prime }} = \frac{x - \hbox{min} \left( x \right)}{\hbox{max} \left( x \right) - \hbox{min} \left( x \right)}$$
(43.1)

After that, polynomial feature transformation was applied for both degree 2 polynomial and degree 3 polynomial. It helped find relationship between different dependent variables and their impact on independent variables, Er and Kw. Cubic polynomial regression helped improve the R score from 67 to 94% for both of our response variables which is more accurate than linear regression. The function obtained for Kw and Er are depicted in Eqs. (43.2) and (43.3).

$$\begin{aligned} k_{w} & = \left( { - 2.50e - 10} \right) + \left( { - 192.45} \right)x1 + \left( { - 2165.67} \right)x2 + \left( { 554.52} \right)x3 + \left( { - 7.49} \right)x4 \\ & \quad + \left( { - 48.36} \right)x1^{2} + \left( {6677.44} \right)x1 x2 + \left( { - 1715.03} \right)x1 x3 + \left( { 79.42} \right)x1 x4 \\ & \quad + \left( { - 754.35} \right)x2^{2} + \left( { - 725.72} \right)x2 x3 + \left( { - 233.69} \right)x2 x4 + \left( {554.52} \right)x3^{2} \\ & \quad + \left( { - 159.07} \right)x3 x4 + \left( { - 7.49} \right)x4^{2} + \left( {94.92} \right)x1^{3} + \left( { - 3708.53} \right)x1^{2} x2 \\ & \quad + \left( {2081.60} \right)x1^{2} x3 + \left( { - 222.51} \right)x1^{2} x4 + \left( { - 125.49} \right)x1 x2^{2} + \left( { 575.63} \right)x1 x2 x3 \\ & \quad + \left( { - 854.05} \right)x1 x2 x4 + \left( { - 1950.18} \right)x1 x3^{2} + \left( {895.14} \right)x1 x3 x4 \\ & \quad + \left( {115.820} \right)x1 x4^{2} + \left( {439.84} \right)x2^{3} + \left( {118.36} \right)x2^{2} x3 + \left( { - 11.80} \right)x2^{2} x4 \\ & \quad + \left( { - 35.93} \right)x2 x3^{2} + \left( {213.71} \right)x2 x3 x4 + \left( {605.77} \right)x2 x4^{2} \\ & \quad + \left( {554.52} \right)x3^{3} + \left( { - 210.62} \right)x3^{2} x4 + \left( { - 355.05} \right)x3 x4^{2} + \left( { - 7.49} \right)x4^{3} \\ \end{aligned}$$
(43.2)
$$\begin{aligned} E_{r} & = (6.68409772e - 13) + (44.15)x1 + (95.005)x2 + (47.19)x3 + ( - 10.25)x4 \\ & \quad + ( - 2.44)x1^{2} + ( - 310.30)x1x2 + ( - 165.98)x1x3 + (62.73)x1x4 + (36.996)x2^{2} \\ & \quad + (59.24)x2x3 + (8.78)x2x4 + (47.19)x3^{2} + \left( { - 33.66} \right)x3 x4 + \left( { - 10.25} \right)x4^{2} \\ & \quad + \left( { - 48.77} \right)x1^{3} + \left( {236.87} \right)x1^{2} x2 + \left( {207.42} \right)x1^{2} x3 + \left( { - 156.19} \right)x1^{2} x4 \\ & \quad + \left( { - 34.74} \right)x1 x2^{2} + \left( { - 127.937} \right)x1 x2 x3 + \left( {34.075} \right)x1 x2 x4 \\ & \quad + \left( { - 198.43} \right)x1 x3^{2} + \left( {216.10} \right)x1 x3 x4 + \left( { 65.22} \right)x1 x4^{2} + \left( { - 12.088} \right)x2^{3} \\ & \quad + \left( {8.95} \right)x2^{2} x3 + \left( {13.79} \right)x2^{2} x4 + \left( {42.10} \right)x2 x3^{2} + \left( { - 21.76} \right)x2 x3 x4 \\ & \quad + \left( { - 28.67} \right)x2 x4^{2} + \left( {47.19} \right)x3^{3} + \left( { - 41.62} \right)x3^{2} x4 + \left( { - 55.87} \right)x3 x4^{2} + \left( { - 10.25} \right)x4^{3} \\ \end{aligned}$$
(43.3)

where x1, x2, x3, and x4 are the independent variables (Ton, Sv, Wf, and Wt, respectively) along with the regression coefficients.

ANFIS model exploits the capability of learning by neural network in order to establish a relationship between input–output parameters which uses fuzzy rules. Due to high variability in the input variables, subtractive clustering algorithm was used for fuzzy rule determination process which checks each and every data point for potential cluster center and the point with highest density in its vicinity is considered as the cluster center with readings outside the range of influence of that center being excluded and are again checked for potential of being a cluster center. It is an iterative process that runs until all points lie within the range of influence of a cluster center. Subtractive clustering approximates the function as a generalized bell curve and determine the number of rules and membership functions. Since the number of centers to be created for the distribution of data was not clear, automated algorithm of subtractive clustering and fuzzy rules were used. Similar to feature scaling, the data were first normalized as ranges for our variables are not same. In normalization, mean is involved when standardizing the data as shown in the equation below:

$$x^{{\prime }} = \frac{{x - {\text{average}}\left( x \right)}}{{{\text{stdev}}\left( x \right)}} .$$
(43.4)

The data were then trained using the MATLAB’s ANFIS toolkit using subtractive clustering as an FIS technique having 0.5 s the range of influence using the hybrid training algorithm. The structure with four input and single output parameters formed a structure containing 30 input membership functions and fuzzy rules as shown in Fig. 43.1. The membership functions and parameters obtained are shown in Table 43.2. Training error for Er and Kw came out to be 2.16e–7 and 1.51e–7, respectively. The trained model was used to test the data and predict for randomly selected readings as mentioned in Sect. 43.4.

Table 43.2 Information of the trained ANFIS model

4 Results and Discussion

Effect of machining parameters on Er and Kw is shown in Figs. 43.2 and 43.3. With the rise in Sv and Ton values roughness is found to be increasing. While wire tension at higher Sv values and wire feed has negligible effect on the roughness. Higher values of wire tension reduce the vibration in the wire thus maintaining the spark gap required for the machining process. The reduced vibrations give more interaction time to electrode with the workpiece thus utilizing the energy available for material removal and forming larger number of craters on the surface. At higher gap, voltage energy density is more resulting in more rapid vaporization and hence localized material removal takes place at the cutting edge which leads to higher roughness. As the pulse duration increases, discharge energy around the wire intensifies. Due to more energy available at the spark zone, deep craters are formed which contribute to the roughness of the cutting edge.

Fig. 43.2
figure 2

Modeled edge roughness by ANFIS w.r.t a wire feed and servo voltage, b wire tension and servo voltage, and c wire feed and pulse-on time

Fig. 43.3
figure 3

Modeled kerf width by ANFIS in w.r.t. a wire feed and servo voltage, b wire tension and servo voltage, and c wire feed and pulse-on time

Kerf width depends on the radius of effective spark gap. With the rise in Sv spark energy increases, this increases accounts for a wider spark gap and hence higher kerf width values. Kerf width was found to be increase with Ton. As at higher Ton values, more electrons from the wire comes in contact with the neutral particles of dielectric fluid. This interaction magnifies the ionization effect which causes more material to vaporize. While wire tension is not affecting the kerf much, wire feed at lower Sv and Ton values decreases the kerf. This can be accounted to the inability of wire to maintain least required spark gap for conduction when the vibrations in the wire are more at higher feed. When more discharge energy is available, increase in vibrations results in widening the gap further.

5 Model Verification

Six random readings were selected to test the models generated by both the methods. First, they were put into the relation obtained from multivariate regression and each output value was compared with experimental value and a prediction error was calculated for both Er and Kw as shown in Tables 43.3 and 43.4. Average error, Eavg was measured by the following formula:

Table 43.3 Comparison of experimental and predicted responses of Er for test data
Table 43.4 Comparison of experimental and predicted responses of Kw for test data
$$E_{\text{avg}} = \frac{1}{m}\sum\limits_{i = 1}^{m} {Ei} .$$
(43.5)

where Ei = error of sample number i an m is the total number of samples.

$$E_{i} = |\frac{{{\text{Experimental}} - {\text{Predicted}}}}{{{\text{Experimental}} }}|$$
(43.6)

The errors in multivariate regression model came out to be 15.1 and 5.3% for Er, and Kw, respectively. The same six readings were then predicted with the ANFIS model and again a prediction error was measured. ANFIS model predicted the output with an error of 3.8 and 2.7% for Er and Kw, respectively. Figure 43.4 shows the comparison of measured and predicted values of test data in ANFIS model. These low values of average error show that the ANFIS model developed is adequate to predict the studied response parameters, Er and Kw. However, the average prediction error obtained through multivariate regression model for Er and Kw are quite high when compared with ANFIS model and is thus, not capable of predicting the machinability aspects accurately.

Fig. 43.4
figure 4

Measured vs. predicted values for a edge roughness and b kerf width

5.1 Analysis of Machining Variables

Analysis of variance (ANOVA) was performed to determine significance of each machining parameters on both the responses. Er is most influenced by servo voltage followed by Wt, Wf, and Ton as can be seen from Table 43.5 below, whereas Table 43.6 shows that Ton and Wf are the most and least important parameters, respectively, for affecting the kerf.

Table 43.5 ANOVA table for mean w.r.t. Er
Table 43.6 ANOVA table for mean w.r.t. Kw

Main effects plots for the mean of Er and Kw were also plotted using MiniTab software. Figure 43.5a shows the relation of Er with the various machining parameters. Roughness is increasing with the increase in Wt, Sv, and Ton but is inversely dependent on the Wf, while Kw is seen to be directly dependent on all the input parameters.

Fig. 43.5
figure 5

Main effects plot for a edge roughness and b kerf width

6 Conclusion

Manufacturing Industry has a socio-economic responsibility in providing quality products keeping the costs incurred as low as possible. This has driven many researchers to look for best set of machining conditions. A full-factorial design has been used for experimentations upon which predictive models were built through multivariate regression and ANFIS. ANFIS model was able to predict with an accuracy of 96.2 and 97.3% for Er and Kw, respectively, which is higher than that obtained by regression model. Surface plots from ANFIS show that high Ton values increase the Er significantly. High Wt also increased the roughness on edges. Similarly, increasing Ton and Sv increased the Kw. Lower wire feed value was able to decrease the Kw even at high Sv and Ton. These inputs cannot be kept too low as productivity is again a matter to be considered while production and hence a trade-off is necessary while deciding the input variables for any machining process. Further work can include finding the most optimum input variables which could give highly efficient process.