1 Introduction

Non-conventional machining processes are the requirements of the fastest growing industries because of the precision, complex, intricate shape of the work material, higher tolerances and economically. Hard materials and super alloys such as titanium alloys, tungsten carbides, high carbon tool steels generally used in tool industries, automotive and electronics industries, medical and aerospace are very difficult—to-machine by conventional manufacturing processes. Therefore, the ease of material cutting and machining non-conventional machining is preferred. WEDM is generally used to produce complex shapes die cavities and forming tools, fixtures, gauges, etc. which are difficult to produce by means of any other conventional and non-conventional machining methods except micro-machining [1].

Titanium alloys (Ti-alloys) are mostly utilized in aerospace and automotive industries to manufacture higher precision components. Ti–6Al–4V grade 5 titanium alloy is used for the manufacturing of diesel engine components such as connecting rods, gas turbine parts, intake valves, etc. and this alloy covers the 50% of total global consumption [2].

WEDM is a variation and development of EDM. In 1969, the Swiss firm Agie developed and delivered the world’s initially WEDM machine. These machines had machining ability to cut the material about 21 mm2/min per hour. These machines were extremely slow in production rate. After the continuous improvements in the machining ability, the machining speed improved. WEDM removes material from the work metal with the use of electricity by means of spark erosion as shown in Fig. 1 [1, 3]. It is most important requirement that the work material should be electrically conductive. AC servo motors are exploited to provide positioning, stability and enhancement of wire tension. A DC or AC servo mechanism maintains the gap (0.051–0.076 mm) between the electrode and the work material. This maintained gap prevents the short circuiting of wire.

Fig. 1
figure 1

Working principle of WEDM

‘Dielectric’ is the shield between the wire electrode and material. De-ionized water is generally used as a dielectric medium because the dielectric medium acts as an insulator. In this process, the material is submerged in the dielectric medium. When the voltage is applied, the electric pulses are generated, fluid ionizes and a spark generates between the electrode wire and work material, the controlled spark precisely erodes the metal from the work material causing it to melt and vaporize. Pressurized dielectric fluid flows continuously. It cools the vaporize material and carry away the particles from the cutting section. The dielectric passes through the filter to remove suspended particles and it is used continuously. Chillers are used to maintain the temperature of dielectric fluids for higher machining efficiency and accuracy. In WEDM the wire electrode never comes in contact with the work piece, therefore this process is stress free cutting operation [1, 4,5,6].

Various researchers have been reported working on WEDM to measure the influence of input parameters on performance parameters such as, Liao and Woo [7] reported the influence of wire-EDM constraints such as ‘on time’ (Ton), ‘off time’ (Toff) and feed rate on the behavior of pulse train i.e. short ratio, arc ratio, normal ratio and gap width. Experiments were conducted on SKD 11 tool steel. The authors concluded that ‘on time’ was a significant factor for arc ratio [7]. Miller et al. [6] demonstrated the capability of WEDM to machine advanced materials such as porous metal foams, diamond grinding wheels, sintered Nd–Fe–B magnets, etc. Author examined the influence of spark on time duration and spark on time ratio on surface roughness and MRR by using Brother HS-5100 WEDM [6].

Mahapatra et al. [8] optimized the WEDM performance parameters such as MRR, SR and kerf width by using the Taguchi method. ROBOFIL100 5-axis CNC WEDM was used for experimental work. Experiments were conducted on D2 tool steel by using zinc-coated copper wire having 0.25 mm diameter. The author concluded that discharge current, pulse duration and the dielectric flow rate had the significant effect on the performance parameters.

Kumar et al. [9] demonstrated the effect of Ton (pulse on time), Toff (pulse off time), Ip (peak current), spark gap voltage, wire feed (WF) and wire tension (WT) on the surface roughness of machined titanium grade-2 workpieces. The author concluded that pulse on time, pulse off time, peak current and spark voltage had higher impact on surface roughness [9]. Manjaia et al. [10] statistically optimized the pulse on time, pulse off time, servo voltage and wire feed for WEDM of AISI D2 tool steel for the response of MRR and SR. The author resulted the higher significance of pulse on time and servo voltage on performance parameters [10].

Kumar et al. [11] concluded that the surface roughness increases with the increase in peak current because peak current increases the discharge energy. They conducted the experimental work on tungsten carbide with brass wire. Wire feed, flushing pressure and current were the significant parameters for surface roughness [11]. Vijaya Babu [12] concluded that the peak current was the significant parameter for surface roughness after they studied the effect of pulse on time, pulse off time and peak current on Inconel 625. Maniappan et al. [13] reported the influence of peak current on kerf width. The experiments were conducted on Al 6061 alloy with zinc coated brass wire [13].

Various researchers have been reported the use of ANFIS to predict the performance of machining such as turning, ball milling, WEDM etc. Kar et al. [14] explained the applications of Neuro-fuzzy system in various fields such as stock market, financial trading, hazard assessment, etc. Caydas et al. [15] worked to measure the impact of pulse duration, open circuit voltage, wire feed and dielectric flushing pressure on white layer thickness and SR. Author developed the ANFIS model for the prediction of performance parameters [15].

Hossain and Ahmad [16] developed the ANFIS model for the prediction of performance parameters of ball end milling. The authors compared the ANFIS model results with the response surface methodology and found more accurate [16]. Abdul Mayu et al. developed the ANFIS model for the prediction of hardness of TiAlN coatings. Author compared and validated their model with fuzzy and RMS model. They concluded that the triangular membership function obtains best results than other MF’s.

Anwar et al. [5] demonstrated the ANFIS model for the prediction of surface roughness and chipping size of rotary ultrasonic drilling (RUM). The authors compared the ANFIS results with the regression models. They achieved the lover mean absolute percentage error in ANFIS model [5].

Boral and Chakraborty [17] developed case-base reasoning system for machine tool selection and for non-traditional machining process selection. Sarikaya et al. developed a multi-objective optimization model for the selection of micro-electrical discharge drilling of AISI 304 stainless steel using S/N, RSM, RA and ANN method [18,19,20]. Chatterjee et al. proposed a novel hybrid model encompassing factor relationship (FARE) and MABAC (multi-attributed border approximation area comparison) method for selection and evaluation of non-conventional machining [21, 22].

From the literature survey, it is ascertained that no plausible work has been reported on the application of ANFIS system in WEDM. Therefore, the main objective of this work is, (1) to optimize the performance parameters by multi-parametric optimization using grey relation method (GRA) and (2) to develop the ANFIS model for the prediction of two major performance parameters namely surface roughness and material removal rate in WEDM by considering the five major input parameters.

2 Methodology

Design-of-experiments (DOE) needs cautions scheduling, practical layout of trials, Taguchi method has identical procedures for every DOE application steps and DOE can dramatically decrease the amount of trials [4, 18]. Thus, the five parameters such as Taper angle (U and V axis taper in degrees), pulse on time (Ton), peak current (Ip), dielectric flow rate and pulse off time (Toff) had selected for the governing parameters. Each parameter had three levels denoted by level-1, level-2 and level-3 except taper angle. Taper angle had two levels. From the previous literatures, it is clear that the taper angle has the least influence on performance parameters. Therefore, the taper angle has selected two levels to reduce the number of experimental trials and mixed orthogonal array is used, as designated in the Table 1.

Table 1 Allocated values of WEDM constraints and their levels

2.1 Experimental set-up

As per DOE, the experiments were performed on ELEKTRA Ultima-1F WEDM. The WEDM setup is shown in Fig. 2.

Fig. 2
figure 2

Experimental setup of ELEKTRA Ultima-1F WEDM

Titanium alloy namely Ti–6Al–4V grade-5 superalloy was used in the form of thick rectangular plate. Ti–6Al–4V material belongs to (α + β) category of titanium alloys and its chemical composition consists of 5.5–6.5% Al, 3.5–4.5% V, 0.08% C, 0.005% Yttrium, 0.30% Fe and remaining titanium. This superalloy has excellent mechanical properties, acceptable fracture toughness, high strength and resistance to corrosion. Therefore, this superalloy is mostly demanded in aerospace, chemical, heat treatment, nuclear and gas turbine industries. The workpiece and the zinc coated brass wire electrode having diameter 0.25 mm was linked up with +ve and −ve polarity in the D.C. power source, respectively. De-ionized water having a conductivity level of 0.6 µs/cm was used as dielectric medium. The dielectric fluid was flushed from the top and bottom nozzles.

Surface roughness of the machined samples was measured with Mitutoyo surf-test surface roughness tester. Each sample was evaluated thrice and the mean values were obtained. The mathematical relation used to evaluate the surface roughness is given in Eq. 1.

$$ Surface\;roughness\;(Ra) = \frac{1 \, }{L}\int\limits_{0}^{L} {\left| {Zx} \right|\langle dx\rangle \quad (\upmu{\text{m}})} $$
(1)

where Ra is the value of surface roughness measured in µm, L = evaluation length and Z(x) = profile height function.

The ANOVA mathematical relation (lower the better) applied to calculate the S/N ratio of SR is given in Eq. 2

$$ \mathop \eta \nolimits_{HB} = - 10\log \left[ {\frac{1}{n}\sum\limits_{i = 1}^{n} {y_{i} } } \right] $$
(2)

The ANOVA mathematical relation (higher the better) used to calculate the S/N ratio of MRR is given in Eq. 3

$$ \mathop \eta \nolimits_{HB} = - 10\log \left[ {\frac{1}{n}\sum\limits_{i = 1}^{n} {y_{i} } } \right] $$
(3)

The S/N ratio (nij) for the ith performance characteristics in the jth experiment is evaluated by the Eq. 4.

$$ \mathop \eta \nolimits_{ij} = - 10\log [L_{ij} ] $$
(4)

The mathematical relation used to evaluate the material removal rate (MRR) is given in Eq. 5.

$$ MRR = \frac{{{\text{Weight}}\;{\text{of}}\;{\text{work}}\;{\text{material}}\;{\text{removal }}}}{\text{time}}\quad \left( {\text{g/min}} \right) $$
(5)

3 ANFIS modeling for performance prediction

The growing need of artificial intelligence (AI) system to solve out the complex and real world problems, the ANN and fuzzy interference system has drawn the concern of researchers in engineering and various scientific areas. In 1983, Jang proposed a Neuro-fuzzy system (NFS) which is the combination of ANN (artificial neural network) and Fuzzy-logic [23]. This system combines the reasoning of fuzzy system with the structure of neural networks. This system provides the flexible approximation with the ability to explore interpretable If–then fuzzy rules. ANFIS uses a hybrid learning method to determine the optimum distribution of various MF’s (membership functions) and provides the mapping relations between input and output data. ANFIS uses the combined architecture of ANN and Fuzzy-logic [23]. In ANFIS the MF’s function parameters are updated by two approaches, namely hybrid and back propagation. The architecture of ANFIS consists of 5 layers and each layer of the ANFIS architecture is described by node function. The co-operative Neuro fuzzy model is shown in the Fig. 3 and the architecture of ANFIS system with layers and nodes is shown in Fig. 4.

Fig. 3
figure 3

Co-operative neuro fuzzy model

Fig. 4
figure 4

ANFIS architecture

The ANFIS uses the Takagi–Sugeno type fuzzy If–then rules and the five network layers are used to perform the fuzzy interference steps. The steps used in ANFIS are described as:

  • Calculation of the MF’s values (Fuzzyfication): In the ANFIS architecture µAi, µBi, and µCi are the MF’s of three input values x, y and z respectively and each node produces the MF’s of input values. The Eq. 6 describes the MF’s for bell shaped function:

    $$ \mu A_{i} (x) = \frac{1}{{1 + \left[ {\left( {\frac{{x - c_{i} }}{{a_{i} }}} \right)^{2} } \right] \times b_{i} }} $$
    (6)

    where ai, bi and ci—parameter set and these set changes the FMS form in between 0 and 1 value.

  • Multiplication of the incoming signals by applying Fuzzy operator (Eq. 7)

    $$ i = \mu A_{i} (x) \times \mu B_{i} (y) \times \mu C_{i} (z) $$
    (7)

    where i = 1,2….

  • Normalization of node firing strength: The normalization of the firing strength of each node is calculated by the Eq. 8

    $$ \overline{w}_{i} = \frac{{w_{i} }}{{\sum\nolimits_{i} {w_{i} } }},\quad i = 1,2,3 \ldots $$
    (8)
  • Defuzzification: Defuzzification is used to convert the fuzzy quantity to predict the accurate value. Each node in the layer 4 in an adaptive node having a node function. The node functions are identified during the network training. In Defuzzification, the MF’s and the rules are united and thus providing the results.

    $$ \overline{w}_{i} \times f_{i} = \overline{w}_{i} \cdot (p_{i} \cdot x + q_{i} \cdot y + r_{i} \cdot z + s_{i} ) $$
    (9)

    where pi, qi, ri = consequent parameter set of each node.

  • The summation of all incoming signals: the total of incoming signals is calculated by the relation given in Eq.

    $$ Output = \sum\limits_{i} {\overline{w}_{i} \cdot f_{i} } = \frac{{\sum\nolimits_{i} {\overline{w}_{i} \cdot f_{i} } }}{{\sum\nolimits_{i} {\overline{w}_{i} } }} $$
    (10)

3.1 Results of ANFIS model

The ANFIS model has been developed as the function of WEDM parameters for Ti–6Al–4V titanium alloy by using the eighteen testing data and training data. The already existed algorithm in MATLAB was used to achieve the perfect training and prediction of data. The following Table 2 represents the initial parameters for ANFIS model.

Table 2 Initial parameters for the ANFIS model

In this ANFIS structure, the hybrid algorithm was used. ANFIS model has the different shape of input and output MF’s. From all the MF’s the ‘trimf’ MF’s has selected because the trimf MF’s (triangular membership functions) has incline and decline features with one certain value and it displays the lowest test error and the lesser value of mean absolute percentage error rather than other MF’s [5, 24].

The training was executed using 300 epochs for surface roughness and MRR model. Training curve obtained after data training is shown in Fig. 5.

Fig. 5
figure 5

Training curve for surface roughness model

The curve was obtained after training the data. The obtained values of training error was 2.2428 * 10−6. It shows that after 138 epochs, root mean square error become steady because of the limited experimental data. For the prediction of output values for SR, the set of fuzzy interference parameters were chosen in the training phase. The predicted values obtained through the ANFIS model were compared with the experimental values. The comparison between the experimental and predicted surface roughness by ANFIS test data is shown in Fig. 6.

Fig. 6
figure 6

Comparison between the experimental and predicted surface roughness by ANFIS test data

The generated model was used to measure the influence of input parameters on the performance parameters namely surface roughness and MRR. Figure 7 demonstrates the influence of peak current on surface roughness. The values of SR was higher initially at the low value of peak current (i.e. 110 amperes) but as the value of peak current increased, the value of surface roughness declined and become constant.

Fig. 7
figure 7

Influence of peak current (Input2) on surface roughness

Figure 8 expresses the influence of dielectric pressure on surface roughness. It clearly shows that the value of SR increased with the increase in dielectric flow rate.

Fig. 8
figure 8

Influence of dielectric flow rate (Input5) on surface roughness

Figure 9 demonstrates the surface view for measurement the surface roughness of titanium alloy (Ti–6Al–4V) in relation to change of peak current and dielectric pressure. It shows that the value of SR is higher at 12 Lit/min of dielectric flow rate and 120 amps of peak current. As the value of input constraints had changed, the value of output responses also varied. The same procedure was used to develop the model for material removal rate (MRR). For the prediction of output values of MRR, the set of fuzzy interference parameters were chosen in training phase. The predicted values obtained through the ANFIS model were compared with the experimental values. The training curve obtained during the MRR is shown in Fig. 10.

Fig. 9
figure 9

Surface view (Input2-peak current, Input5-dielectric flow rate and output-surface roughness)

Fig. 10
figure 10

Training curve for MRR model

The comparison between the experimental and predicted material removal rate (MRR) by ANFIS test data is shown in Fig. 11.

Fig. 11
figure 11

Comparison between the predicted and experimental MRR by ANFIS test data

The triangular membership function (Trimf) generated for Input and output variables through ANFIS are shown in Fig. 12.

Fig. 12
figure 12

Trimf MF’s for input and output variables (fuzzy-logic designer)

3.2 Regression analysis and empirical model

In regression equations, the coefficients of determination, R2 are used to decide whether regression model is appropriate or not. The value of R2 provides an exact model if the value is 1. In this experimental study, the value of R2 for SR and MRR is very close to unity. Therefore, this model is reliable. The calculated regression empirical models for MRR and SR are given in Eqs. 11 and 12.

$$ \begin{aligned} {\text{SR}} & = - 13.0 + 0.224\,{\text{taper}}\;{\text{angle}} + 0.0459\,{\text{peak}}\;{\text{current}} \\ & \quad + 0.0975\,{\text{pulse}}\;{\text{on}}\;{\text{time}}-0.0245\,{\text{pulse}}\;{\text{off}}\;{\text{time}}-0.0053\,{\text{dielectric}}\;{\text{flow}}\;{\text{rate}} \\ \end{aligned} $$
(11)
$$ \begin{aligned} {\text{MRR}} & = - 33.7 + 0.358\,{\text{taper}}\;{\text{angle}} + 0.184\,{\text{peak}}\;{\text{current}} \\ & \quad + 0.165\,{\text{pulse}}\;{\text{on}}\;{\text{time}}-0.0871\,{\text{pulse}}\;{\text{off}}\;{\text{time}} + 0.038\,{\text{dielectric}}\;{\text{flow}}\;{\text{rate}} \\ \end{aligned} $$
(12)

3.3 Comparison of ANFIS model to regression empirical model

The regression equations were obtained by using the full factorial design in Minitab and a comparison between the ANFIS model and Regression model was made to understand the potential of ANFIS. Figure 13 shows the comparison between the regression and ANFIS model.

Fig. 13
figure 13

Comparison between the experimental and predicted MRR by ANFIS test data

From the comparison between the ANFIS model and Regression model responses, it is found that the ANFIS model has a lower value of absolute mean percentage of error than regression model. Therefore, the ANFIS model performance is higher than regression model.

4 DOE and multi-parametric optimization

The aim of multi-parametric optimization is to increase the material removal rate and to minimize the value of surface roughness. In this experimental analysis, L18 (21 34) mixed orthogonal array (OA) was selected. This OA has 18 parametric combinations; therefore, the total numbers of 18 experiments were conducted to measure the interactions between the various factors. The parameter combinations obtained using the L18 (21 34) mixed orthogonal array (OA) are shown in Table 3.

Table 3 DOE matrix of L18 mixed orthogonal array (OA) and measured values for output responses

4.1 Multi-parametric optimization using the GRA

The steps used for multi-parametric optimization using the grey relational analysis (GRA) are discussed as:

  • Normalization of all the experimental results of SR and MRR: Linear normalization of experimental values is performed in the range of 0 and 1. The normalized values for output responses were calculated by using the standard formula given in Eq. 13.

    $$ Normalized\,results\;(X_{ij} ) = \frac{{(y_{ij} ) - (\min_{j} y_{ij} )}}{{(\max_{j} y_{ij} ) - (\min_{ij} y_{ij} )}} $$
    (13)

    where yij = ith experiment results in jth experiment.

  • Calculation for the Grey relational coefficients: The standard formula used for the computation of Gray relational coefficients is given in Eq. 14.

    $$ \delta_{ij} = \frac{{\min_{i} \min_{j} \left| {x_{i}^{0} - x_{ij} } \right| + \xi \max_{i} \max_{j} \left| {x_{i}^{0} - x_{ij} } \right|}}{{\left| {x_{i}^{0} - x_{ij} } \right| + \xi \max_{i} \max_{j} \left| {x_{i}^{0} - x_{ij} } \right|}},\quad 0 < \xi < 1 $$
    (14)

    where x 0i = ideal normalized value.

  • Calculation for the Grey relational grade: Grey relational grades are evaluated by the average of Grey relational coefficients using the formula given in Eq. 15. The calculated values for normalization, Grey relational coefficients and grades are shown in Table 4.

    $$ \mathop \alpha \limits_{j} = \frac{1}{m}\sum\limits_{i = 1}^{m} {\delta_{ij} } $$
    (15)

    where αj = Grey relational grade and m = No. of execution grade characteristics.

  • Calculation of the optimum levels: optimum levels are calculated to find the significant parameters as shown in Table 5.

  • Selection of the optimum levels of process constraints by taking the highest values of levels for each parameter from the grey response table. The response table is clearly indicating the level values for each process parameter at their different levels. The highest value of the different level shows the best optimized value.

  • Confirmation of experiment and verification of the optimized process parameters.

Table 4 Calculated values for grey relational grades
Table 5 Grey relational grade response table

4.2 Confirmation of experiment

After obtaining the optimized values of process parameters, the last step is to confirm the experimentation as shown in Table 6. The mathematical relation used to calculate the estimated grade relational grade is given in Eq. 9.

$$ \hat{\alpha } = \alpha_{m} + \sum\limits_{i = 1}^{q} {\left( {\overline{\alpha }_{i} - \alpha_{m} } \right)} $$
(16)

where αm = total mean of the Grey relational grade at optimum level and q = no. of process parameters.

Table 6 Confirmation of experiment

Taguchi analysis

Taguchi analysis is used for the selection of best optimized parameter value for the individual process parameter and to measure the influence of each parameter at different levels.

4.3 Influence of input constraints on Ra value (SR)

The main effect plot for data means as shown in Fig. 14 is showing the effect of individual parameter at different level of SR (Ra). For the measurement of SR, smaller is better (S/N ratio) was utilized because the minimum value of SR means the higher value of surface finish.

Fig. 14
figure 14

Main effect plot for data means—SR-(smaller is better)

The rank given in Table 7 shows the influence of parameters on surface roughness. For surface roughness, peak current and Ton is the most influencing parameters, whereas the dielectric flow rate has the least significance.

Table 7 Response table for means (SR)

The value of surface roughness is minimum at 1.5° of taper angle, level-1 of Ip, level-1 of Ton, level- 3 of Toff and level-3 of the dielectric flow rate as shown in Table 8. Therefore, these are the best optimized values for surface roughness.

Table 8 Levels of selected input parameters at minimum SR

4.4 Influence of input constraints on MRR

The main effect plot for data means for MRR is shown in Fig. 15. For MRR, larger is better (S/N ratio) was used because the maximum value of MRR means higher the rate of production.

Fig. 15
figure 15

Main effect plot for data means—MRR-(larger is better)

The value of MRR is maximum at 3° of taper angle, level-3 of Ip, level-3 of Ton, level-1 of Toff and level-3 of the dielectric flow rate as shown in Table 9. Therefore, these are the best optimized values of parameters for MRR. Peak current and pulse off time has the most influence on MRR whereas the dielectric flow rate has the least significance as shown in Table 10.

Table 9 Levels of selected input parameters at maximum MRR
Table 10 Response table for means (MRR)

5 Conclusions

This paper represents the application of ANFIS model for the prediction of output responses, namely surface roughness and MRR of WEDM parameters. The five input parameters of WEDM, i.e. taper angle, peak current, pulse on time, pulse off time and dielectric flow rate are used as input for ANFIS models for the prediction of output responses. The ANFIS models are compared with a regression model to measure the output performance. From comparison, it is concluded that the ANFIS model performance is better for prediction of surface roughness and MRR than Regression models. The results predicted by ANFIS model have been used to measure the influence of various input parameters on the performance parameters along with the surface view. The developed ANFIS models provide better responses and can be used for more reliable results.

An attempt has also been made to attain minimum and maximum evaluation of surface roughness (SR) and MRR respectively; using multi-parametric optimization namely GRA (grey relational analysis) coupled with Taguchi method. The optimized parameters for the response of SR and MRR in WEDM are: 1.5° of taper angle, 110 amps of peak current, 104 µs of pulse on time, 63 µs of pulse off time and 115 Ltr/min of dielectric flow rate. The attained optimum outcomes had also been examined through a real experiment and established to be satisfactory. For surface roughness, the Ip and Ton are the most influencing parameters, whereas for MRR, the Ip and Toff are the most influencing parameters. The dielectric flow rate has the least influence on SR as well as on MRR. The experimental results showed the considerable advancement in the process and obtained results will facilitate the WEDM industries to improve the productivity and performance.