1 Introduction

Electrical discharge machining (EDM) has become one of the most used processes in manufacturing technology; it plays a crucial role in the field of mechanical production, and therefore, it is an open process for making faced with several improvements. Due to the complexity and optimization objectives, a large number of studies and research are oriented towards new technologies in order to increase productivity, improve the quality of machined parts, and minimize costs and times of production.

In the process of machining by electrical discharge, the machining parameters such as current, voltage, and pulse time, as well as the dielectric, the geometry of the electrodes, and the workpieces play a very important role in the choice of machining performance and quality.

To achieve the required machining performance and quality, it is necessary to take into account an optimal selection of the machining parameters. This selection not only guarantees a reduction in costs and production times but also guarantees control of the phenomena accompanying the machining process, which directly affect the machining performance and quality of the machined parts.

In the context of improving the machining performance and quality of parts machined by electrical discharge machining (EDM), research work in this direction has been analyzed in order to propose better solutions and to support existing scientific research work by remedying certain observed shortcomings and proposing alternative solutions that lead to improvements in the performance measurements of the electrical discharge machining process.

A bibliographic synthesis was carried out to study the effect of the different machining parameters on the performance characteristics of electrical discharge machining. The research carried out in the analyzed works mainly relates to the effect of the parameters of electrical discharge machining such as the current, the voltage, the pulse time, ... and how these affect the performance characteristics of machining as MRR, TWR, EWR, Ra, ROC, and electrode material.

S. Dhanabalan et al. [1] studied the effect of different electrode materials on the machining performance characteristics of the titanium alloy. Copper, brass, and aluminum electrodes and kerosene as the dielectric fluid were used in this research. They considered current as an input parameter and MRR, EWR, and Ra as an output parameter. It has been found that a higher MRR is achieved by using brass and aluminum electrodes and that the brass electrodes provide high wear, while the aluminum and copper electrodes provide low wear. A. Torres et al. [2] evaluated the effect of machining parameters of the Inconel 600 alloy machined by EDM and tool materials (graphite) on the electrode wear (EW), the rate of material removal (MRR), and the roughness of machined surfaces for different polarities. The results showed that a higher material removal rate is obtained with a negative polarity. While the low value of electrode wear (EW) and low roughness was obtained with positive polarity. H. Fazlollahtabar et al. [3] analyzed the effect of machining parameters on machining performance. They have developed mathematical models based on the interpolation approach which link the parameters: duty cycle, on time and current by the fineness surface, corrosion rate of the electrode, material removal rate. They also used a fuzzy adaptive neural network to optimize and predict machining performance. Rahul et al. [4] have studied the machinability of four different qualities of Inconel superalloy; they have examined the influence of the variation of interval voltage, peak discharge current, pulse duration, duty cycle, and flushing pressure of the dielectric circulation on the material removal rate, the electrode wear rate; surface roughness and density of surface crack machined by EDM. They showed that increasing the peak current resulted in an improvement in the MRR for different grades of Inconel with an increase in Ra. M. Hanif et al. [5] have studied the influence of the dielectric type, the polarity of the electrodes, the discharge current, and the spark/discharge difference on the material removal rate (MRR) and the surface roughness (Ra) for machining AISI D2 steel. Their results revealed that the kerosene oil and the polarity of the positive led to optimal machining. MK. Pradhan et al. [6] used a neuro-fuzzy model for predicting the material removal rate (MRR), electrode wear, and radial overcut when machining AISI D2 steel. They showed that the discharge current has a very important influence on the material removal rate and the radial overcut. On the other hand, the electrode wear rate is very influenced by the pulse duration. A A. Khan [7] found that when machining aluminum and mild steels with copper and brass electrodes, an increased wear was produced on the electrodes as the discharge current increased. The material removal rate (MRR) also increased with the discharge current. Y. Shen et al. [8] analyzed the effect of peak current, pulse interval, pulse duration on the material removal rate (MRR), and energy consumption during the machining of the titanium alloy Ti-6Al-4V by EDM. They concluded that the most important factor affecting both MRR and energy consumption is current. P. Ong et al. [9] have studied the effect of the machining parameters: the peak current, the pulse interval and the pulse duration on the material removal rate (MRR) and the electrode wear rate (EWR). They found that an increase in the pulse interval will lead to a reduction in MRR, and that an increase in pulse duration is accompanied by an increase in electrode wear rate (EWR). They also developed a new optimization algorithm to find the optimum machining conditions. T.R. Newton et al. [10] examined the influence of EDM process parameters on the formation of the recoat layer on Inconel 718 samples. They concluded that the average thickness of the recoat layer increased with current discharge, peak, and pulse duration. S.A.K. Rajesha et al. [11] have experimentally studied the effects of variables in the EDM process: pulse current, sensitivity, utilization factor, dielectric rinse pressure, and gap control) on the EDM surface recoat layers splashed. It was concluded that the duty factor and the pulse current influenced the propagation of the cracks. J.H. Zhang et al. [12] proposed an empirical model, built both on the peak current and on the pulse duration, for the electrical discharge machining of ceramics. They concluded that the discharge current had a significant effect on the material removal rate (MRR), while the pulse time had a significant influence on the white layer. M. Kiyak et al. [13] found that with a high current and high pulse time, a high surface finish could be produced, but with a low material removal rate (MRR). They also found that with a high pulse time, a high pulse current, and a low pulse time, you get a high MRR, but with a poor surface finish. HT. Lee et al. [14] noted that the value of the MRR and the surface roughness increased with increasing pulsed current values, but that after certain values, the MRR and the surface roughness decreased due to the expansion of the electric plasma. The pulse current affects the surface crack density; however, the pulse duration influences the degree of crack opening. J.C Rebelo et al. [15] presented an experimental study on the effect of electrical discharge machining parameters on the material removal rate (MRR) and surface quality (Ra) during the machining of copper alloys/high resistance beryllium. The treatment parameters for rough, finishing and micro-finishing, or polishing regimes were analyzed. S. Raj et al. [16] evaluated the effect of different parameters on the machining of EN 45 steel with a copper electrode. The input parameters were peak current (Ip), pulse on time (Ton), pulse off time (Toff), and voltage (V). Pulse on time and current are highly significant parameters, while pulse off time is a less important factor for the material removal rate (MRR). Vikas et al. [17] studied various parameters of the electrical discharge machining process on the surface roughness of the EN41 material. The parameters studied were the peak current (Ip), pulse on time (Ton), pulse off time (Toff), and the voltage (V). They concluded that the discharge current had a greater impact on the roughness of the machined surfaces and that the effect of the other parameters was less significant and can be ignored. Ay et al. [18] studied the influence of electrical discharge machining parameters: the discharge current and the pulse duration on the machining performance of the nickel-based Inconel 718 Super Alloy. They found that the discharge current was more effective on performance than the pulse duration. S. Singh [19] used the Taguchi method and gray relational analysis to analyze the influence of pulse current, pulse duration, duty cycle, and interval voltage on MRR, tool wear rate, and surface roughness. They came to the conclusion that among all the process parameters, the pulse current showed the strongest effect on all performance. YF. Chen et al. [20] investigated the effect of peak current and pulse duration on MRR, electrode wear rate and surface roughness. They found that the two parameters significantly affected the MRR and the surface roughness. KT. Chiang [21] carried out a survey to study the effect of the parameters: discharge current, pulse time, utilization factor, and open discharge voltage on the variation of MRR, electrode wear rate, and surface roughness. They found that the discharge current and the service factor were the important factors affecting the MRR. YF. Tzeng et al. [22] studied the influence of the EDM process parameters (circuit voltage, pulse duration, duty cycle, pulsed peak current) on surface roughness and geometric precision with the Tagauchi method. They optimized the geometric variation of the machined product by around 28%. Y. Keskin et al. [23] studied the influence of machining parameters: power, pulse time, and spark time on the quality of surfaces machined from steel by EDM. They showed that surface roughness increasing with an increase in discharge duration. SN grigor’ev et al. [24] analyzed the effect of breakdown voltage, peak current, voltage gain, and working voltage on the precision parameters of small diameter holes machined by EDM on oxide carbide ceramic. They concluded that the increase in breakdown voltage, peak current, voltage gain, and working voltage causes changes in the hole diameter. V. Muthukumar et al. [25] predicted the radial overcut by the response surface method according to the machining parameters: the current, pulse on time, pulse off time, and voltage. It was concluded that current and voltage have a significant effect on the radial overcut.

From the literature search presented above, it can be concluded that there is a great need for the development of more precise methods for measuring the performance of electrical discharge machining (EDM) as well as the errors related to the machined shapes. It is also clear that the construction of models for predicting the electrical discharge machining performance depends not only on the method used for the construction of the models but also on the experimental procedure followed. Most scientific research on this subject uses data from the literature, which requires more experimental development to measure machining performance.

In most of the work carried out, two or three machining performances have been considered as outputs of the prediction system. In addition, little scientific research has already tackled the problem of geometric errors associated with electrical discharge machining.

This is why, in this paper, on the basis of experimental measurement tests of the electrical discharge machining performance and the geometric errors associated with the machining of the holes, the effects of the machining parameters, on these performances, and these errors are predicted with an intelligent method based on a fuzzy multi-output inference system. The prediction results found by this model have been approved by other experimental tests.

2 Experimental procedure

2.1 Materials and equipment

All tests were carried out under industrial conditions using an ONA NX4 machine tool (13.7 KVA connected load, working table dimension 800 × 600 mm, maximum working height 400 mm) which is a Sinking EDM machine as shown in Fig. 1.

Fig. 1
figure 1

Sinking EDM machine ONA NX4

The tests were carried out by machining prismatic parts of AISI 1095 treated steel.

AISI 1095 is specially designed for the manufacture of molds, tools, impression plates, punches and dies; they are also used in the manufacture of finished or semi-finished parts which require wear resistance high.

The chemical composition of AISI 1095 steel is described in Table 1.

Table 1 Chemical composition of AISI 1095 steel

The workpieces used in this study delivered in the standardized state allows after thermal tempering to obtain a significant surface hardness (60 to 65 HRC) and were prepared for the size of 50 × 30 × 5 mm ± 0. 2 as shown in Fig. 2 and the upper surface has been highly finished to obtain a real flatness; the density of the materials is 7.78 g/cm3.

Fig. 2
figure 2

Workpiece

Surface roughness measurements were made after the finishing process of each part to ensure that the part was ready for testing. The roughness of the surface found on all the parts varied between 0.1 and 0.17 μm.

The electrodes used in this study are cupro-tungsten electrodes (Fig. 3a): an alloy made from the powder metallurgy process, with 40% copper (Cu), with a grain size < 150 (μ) and 60% tungsten (W) has an average grain size between 20 (μ) and 100 (μ). This alloy has unique physical properties. One of the most important benefits of tungsten is high-temperature resistance, while copper increases thermal and electrical conductivity.

Fig. 3
figure 3

Electrodes used in the tests

The electrodes were machined so as to obtain a length of 50 mm and a diameter of the working part 10 ± 0.05 mm (Fig. 3b). The base surface and the side surface of the electrode were highly finished, using abrasive paper, to obtain a fine surface.

The properties of the tungsten copper electrodes used in the tests are given in Table 2.

Table 2 Properties of electrodes

For the measurement of the circularity and the cylindricity of the machined holes, a coordinate measuring machine, OPTIV Performance 443 Dual Z (MMT) manufactured by HEXAGON METROLOGY SAS, was used. This machine combines optical and tactile measurement in a single system; it supports multi-sensor measurements using the vision sensor, the touch trigger, and the scanning probe (Fig. 4).

Fig. 4
figure 4

Three-dimensional measuring machines 443 Dual Z

Voyager Pro digital density meter Model: VP6102 C (Fig. 5) is used to measure the density of electrodes and workpieces.

Fig. 5
figure 5

Voyager Pro digital density meter Model: VP6102 C

The workpieces and the electrode were weighed before and after the machining of each experiment on an AP 250 D balance (Fig. 6) with precision 0.0001 g to determine the weight loss. These values were then used to calculate the material removal rate and the tool wear rate.

Fig. 6
figure 6

AP 250 D balance

For surface measurement a roughness meter (Mitutoyo-sufftest-211), shown in Fig. 7 is used. It consists of a stylus that moves mechanically over a surface to record the roughness of the surface over a determined sample length.

Fig. 7
figure 7

Roughness meter (Mitutoyo-sufftest-211)

2.2 Experimental setup

Twenty-seven (27) tests were carried out using three input (control) parameters; each of these parameters varies to three discrete level values as illustrated in Table 3. These parameters are current (I), voltage (V), and pulse on time (Ton).

Table 3 Settings of process control parameters

There are many machining parameters that affect the electrical discharge machining performance. Current, voltage, and pulse on time are the most active influence parameters on machining performance. Advantageously, these parameters are also the easiest to adjust, and can directly modify their value in EDM machine with no additional cost. Thus, other important parameters were not considered (such as pulse off time, polarity, gap) whose values were kept constant throughout experiments. The constant parameters and corresponding values were pulse off time = 50 μs; polarity: direct; gap = 0.5 mm; fluid pressure = 16 kg/cm2).

The tests concern the production of 3.5-mm-deep holes. On each part, three holes were made with variation of the three control parameters according to the experiment plans chosen (Fig. 8). Each test ends when the electrode reaches a depth of 3.5 mm.

Fig. 8
figure 8

The machining configuration of workpiece

In addition to this, another series of tests (seven tests) was carried out with the same experimental conditions but with other input parameters. The results of these tests were later used to validate the models built.

A view of all the parts machined during the twenty-seven (27) tests carried out was provided in Fig. 9.

Fig. 9
figure 9

Workpieces used in the tests after machining

It is important to note that in order to improve the reliability of the measurements, the points below are taken into account:

  1. 1.

    All measurements are carried out in a fully closed controlled room at a temperature of 20 ± 1 °C and the humidity is 50 ± 5%.

  2. 2.

    Each part has been thoroughly cleaned with acetone before measurement.

  3. 3.

    Measurements are performed in a short time by a single operator using the same equipment.

  4. 4.

    Ensure the fidelity of measuring instruments and devices: the calibration of the measuring instruments and devices was carried out before each test.

    The three-dimensional measuring machine 443 Dual Z is calibrated according to normative reference: ISO 10360-2.

    The digital micrometer is calibrated according to the normative reference: ISO 3611.

    The roughness meter (Mitutoyo-sufftest-211) is calibrated according to the normative reference: ISO 5436.

  5. 5.

    Ensure the measurement trueness: each measure was conducted three times and the average of the obtained results was considered. Standard deviation of the three readings after each of the 27 experiments was calculated and the reliability coefficient is determined.

2.2.1 Determination of the material removal rate

The average weight of material removed from the workpiece per unit of time during machining is called the material removal rate. It directly determines the machining efficiency of the process. It is generally measured in mm3/min. Mathematically, it can be expressed as

$$ MRR=\frac{1000\Delta {W}_W}{\rho_WT} $$
(1)
ΔWW:

is the weight loss of the working material during machining;

ρ W :

is the density of the workpiece material;

T :

is the machining time.

2.2.2 Determination of the tool wear rate (EWR)

The average weight of the material lost of the tool per unit of time during machining is called the tool wear rate (TWR). It is directly linked to the precision and profitability of the machining. The tool life plays an important role in increasing productivity. It is expressed by this equation:

$$ TWR=\frac{1000\Delta {W}_T}{\rho_TT} $$
(2)
ΔWT:

is the weight loss of the electrode material during machining;

ρ T :

is the density of the electrode material;

2.2.3 Determination of the wear rate

The wear rate is defined as the ratio between the tool removal rate and the material removal rate. It is usually expressed as a percentage as shown in Eq. (3)

$$ WR=\frac{100 TWR}{MRR} $$
(3)

2.2.4 Surface roughness measurement

In EDM, the fatigue strength of the machined component is strongly influenced by the quality of the machined surface. The quality of the machined surface strongly depends on the energy per spark and the size of the craters. Figure 10 illustrates the surface machined during a test among the twenty-seven tests carried out.

Fig. 10
figure 10

Microscopic visualization of the machined surface

Surface roughness measurement was taken at 3 different locations, and average values are reported, where cutoff length is kept at 0.8 during the surface roughness measurement. Standard deviation of the three roughness readings varies between 0.082 and 0.93, and the reliability coefficient (Cronbach’s alpha) is around 0.976.

2.2.5 Radial overcut

The radial overcut is expressed as the difference in the radius of the hole produced compared to the radius of the electrode used. It is given by Eq. (4)

$$ ROC=\frac{\left({D}_h-{D}_T\right)}{2} $$
(3)
D h :

is the diameter of the hole.

D T :

is the diameter of the tool.

The diameter of the holes was measured three times, using the three-dimensional measuring machine 443 Dual Z, and the average of the results obtained was considered. Standard deviation of the three measures varies between 0.002 and 0.007, and the reliability coefficient (Cronbach’s alpha) is around 0.9984. A negligible variation is noted when measuring the diameter of the electrodes.

2.2.6 Measure of circularity

The circularity is considered as a difference between the radial distances from the nearest point and the furthest from the geometric center of the hole.

To produce the desired tolerance, the electrical discharge machining process faces a challenge to produce zero circularity; this is due to debris exiting the hole with the dielectric fluid under pressure, which causes wear on the upper part of the hole.

In this work, the circularity is measured using the automatic element estimation mode on the PC-DMIS Vision software which controls the three-dimensional measuring machine 443 Dual Z (Fig. 11).

Fig. 11
figure 11

Measure of circularity

The circularity was measured three times and the average of the results obtained was considered. Standard deviation of the three measures varies between 0.0003 and 0.004, and the reliability coefficient (Cronbach’s alpha) is around 0.9939.

2.2.7 Measure of cylindricity

Cylindricity defines the shape deviation of a cylinder. Their tolerance defines a band between two concentric cylinders in which the real shape of the cylinder to which the tolerance must apply.

In this work, the cylindricity measured using the cylinder measurement option in the PC-DMIS software which controls the three-dimensional measuring machine (Fig. 12).

Fig. 12
figure 12

Measure of cylindricity

The cylindricity was measured three times and the average of the results obtained was considered. Standard deviation of the three measures varies between 0.0003 and 0.002, and the reliability coefficient (Cronbach’s alpha) is around 0.9994.

The configuration of the experimental setup is presented in Fig. 13.

Fig. 13
figure 13

Experimental setup

The study of the variation of various performance measures as a function of the parameters leads to finding the values of these parameters mentioned in Table 4.

Table 4 Experimental conditions and results

3 Fuzzy models

In this work, the fuzzy model designed to predict various performance measures for electrical discharge machining uses three inputs and seven outputs (Fig. 14). Current (I), voltage (Volt), and pulse on time (Ton) are the inputs and the cutting electrical machining discharge performance is the output of the system.

Fig. 14
figure 14

Fuzzy system

The first step in the study of the performance measures for electrical discharge machining algorithm is to choose the forms of the membership functions for the process variables according to the experimental database, which were used on the machine tool. Fuzzy expressions for current (I), voltage (V), and pulse on time (Ton) and performances measures for electrical discharge machining: material removal rate (MRR), tool wear rate (TWR), wear rate (WR), surface roughness (Ra), radial overcut (ROC), circularity (CIR), and cylindricity (CYL) are shown in Figs. 15, 16, 17, 18, 19, 20, 21, 22, 23, and 24, respectively.

Fig. 15
figure 15

Linguistic variables for current (I)

Fig. 16
figure 16

Linguistic variables for voltage (V)

Fig. 17
figure 17

Linguistic variables for pulse on time (Ton)

Fig. 18
figure 18

Linguistic variables for material removal rate (MRR)

Fig. 19
figure 19

Linguistic variables for wear rate (TWR)

Fig. 20
figure 20

Linguistic variables for electrode wear rate (WR)

Fig. 21
figure 21

Linguistic variables for surface roughness (Ra)

Fig. 22
figure 22

Linguistic variables for radial overcut (ROC)

Fig. 23
figure 23

Linguistic variables for circularity (CIR)

Fig. 24
figure 24

Linguistic variables for cylindricity (CYL)

3.1 Fuzzy expressions

The numerical values of current (I) are linked by linguistic variables as shown in Fig. 15.

The numerical values of voltage (V) are linked by linguistic variables as shown in Fig. 16.

Numerical pulses on time (Ton) values are linked by linguistic variables as shown in Fig. 17.

The numerical values of material removal rate (MRR) are linked by linguistic variables as shown in Fig. 18.

The numerical values of tool wear rate (TWR) are linked by linguistic variables as shown in Fig. 19.

The numerical values of the electrode wear rate (WR) are linked by linguistic variables as shown in Fig. 20.

The numerical values of surface roughness (Ra) are linked by linguistic variables as shown in Fig. 21.

The numerical values of radial overcut (ROC) are linked by linguistic variables as shown in Fig. 22.

The numerical values of circularity (CIR) are linked by linguistic variables as shown in Fig. 23.

The numerical values of cylindricity (CYL) are linked by linguistic variables as shown in Fig. 24.

Membership functions come in many forms. In this study, triangular membership functions for the input variables and trapezoidal for the output parameters were used for the construction of the first model.

The choice of this type of membership function is due to the nature of the experimental data; it is noted that the values of the input parameters are limited (each parameter is determined by three values). The triangular membership functions are suitable for this type of data and it suffices to determine the central value and the slope of each side.

On the other hand, the output seems more complicated because it is represented by several values; these values are divided into intervals. These intervals are represented by trapezoidal shapes.

For the second model, the Gaussian membership functions for the input variables and the PIMF membership functions for the output parameters were used.

The triangular membership functions for the input and the trapezoidal membership functions for output parameters of the first model are illustrated in Fig. 25.

Fig. 25
figure 25

Membership functions for input and output parameters using triangular and trapezoidal membership

The Gaussian membership functions for the input and the PIMF membership functions for output parameters of the second model are illustrated in Fig. 26.

Fig. 26
figure 26

Membership functions for input and output parameters using Gaussian and Pimf membership

3.2 Fuzzy rules

The fuzzy model was created from twenty-seven (27) fuzzy rules defined on the basis of experimental work (the twenty-seven tests carried out).

The fuzzy system created has three input parameters to produce seven outputs; the fuzzy rules can be described in matrix form. Table 5 shows the set of matrix rules between input parameters and output performances.

Table 5 Inference table

The second column indicates the fuzzy sets for current (P: low current, M: medium current, G: high current) from low current to high current. The third column indicates the fuzzy sets for voltage varying from low voltage to high voltage (P: low voltage, M: average voltage, G: high voltage), the fourth column indicates the fuzzy sets for Pulse on time varying from low pulse on time to high pulse on time (TP: low pulse on time, M: average pulse on time G: high pulse on time). Contents of the matrix are the result obtained, which is the outputs for this study. The fuzzy operators used in the rules will apply are: “and”, “or.” Some examples of fuzzy rules in linguistic form are presented below:

  • 1. If I is (P: low) and V is (P: low) and Ton is (P: low) Then: MMR is (F) and TWR is (J) and WR is (J) and Ra is (B) and ROC is (A) and CIR is (A) and CYL is (A)

  • 2. If I is (M: average) and V is (P: low) and Ton is (P: low) Then: MMR is (C) and TWR is (K) and WR is (K) and Ra is (E) and ROC is (B) and CIR is (A) and CYL is (A)

  • 3. If I is (G: high) and V is (P: low) and Ton is (P: low) Then: MMR is (G) and TWR is (F) and WR is (E) and Ra is (H) and ROC is (A) and CIR is (B) and CYL is (D)

  • 27. If I is (G: high) and V is (G: high) and Ton is (G: high) Then: MMR is (H) and TWR is (E) and WR is (D) and Ra is (D) and ROC is (G) and CIR is (D) and CYL is (D)

3.3 Defuzzification and study of the error and accuracy of fuzzy models

The constructed model uses a continuous universe for all the input and output variables. So the input can be any combination of three variables (current, voltage and pulse on time) and the outputs are: material removal rate (MRR), tool wear rate (TWR), wear rate (WR), surface roughness (Ra), radial overcut (ROC), circularity (CIR), and cylindricity (CYL). Defuzzification makes it possible to merge the different rules generated by the inference engine to give it only one value of each output and to transform this linguistic output variable into digital data by calculating the abscissa of the center of gravity of the membership function.

Seven new tests that are not entered into the model creation process were carried out. It will be used to verify the model. These tests were carried out under the same conditions as the previous tests, but with different machining parameters.

To calculate the error percentage of the seven tests, we use Eq. (4):

$$ {e}_i=\left[\frac{\left|{Output}_{\mathrm{exp}}-{Output}_{pred}\right|}{Output_{\mathrm{exp}}}\right]\times 100 $$
(4)

To calculate the percentage of the accuracy of the 7 tests, Formula (5) is used:

$$ A=\frac{1}{N}\sum \limits_{i=1}^N\left[1-\frac{\left|{Output}_{\mathrm{exp}}-{Output}_{pred}\right|}{Output_{\mathrm{exp}}}\right]\times 100 $$
(5)

4 Results

Table 6 groups the values of the outputs obtained with the two fuzzy logic models in terms of the maximum, minimum, standard deviation, and coefficient of variation, the accuracy, and the error rate for the seven new tests are also presented in this table.

Table 6 Fuzzy system error and accuracy for the confirmation tests

The difference in the precision of the two models shows that it is possible to use either of them with little preference for the first model.

4.1 Result of material removal rate

The results of defuzzification of the first output (MRR) are shown in Fig. 27.

Fig. 27
figure 27

Variation of the experimental and predicted material removal rate (MRR) as a function of the number of tests

Figure 28 shows the capacity of the fuzzy model constructed to predict the material removal rate (MRR). For the same machining parameters, the material removal rate obtained by the fuzzy model and the confirmation tests are shown in Fig. 28.

Fig. 28
figure 28

Comparison of predicted and experimental material removal rate (MRR)

The results of the confirmatory tests have shown that the fuzzy model constructed gives values of the material removal rate (MRR) close to the real values. The maximum and minimum deviation of the predicted material removal rate (MRR) and the real material removal rate (MRR) is observed at 0.084 mm3/min and 1.544 mm3/min, respectively. The predicted accuracy of the fuzzy model constructed is 98.489%.

4.2 Result of tool wear rate

The results of defuzzification of the second output (TWR) are shown in Fig. 29.

Fig. 29
figure 29

Variation of the experimental and predicted tool wear rate (TWR) as a function of the number of tests

Figure 30 shows the ability of the fuzzy model constructed to predict the tool wear rate (TWR). For the same machining parameters, the tool wear rate obtained by the fuzzy model and the confirmation tests are shown in Fig. 30.

Fig. 30
figure 30

Comparison of predicted and experimental tool wear rate (TWR)

The results of the confirmation tests have shown that the fuzzy model constructed gives tool wear rate (TWR) values close to the real values. The maximum and minimum deviation of the predicted tool wear rate (TWR) values with the real tool wear rate (TWR) is observed at 0.01 mm3/min and 0.099 mm3/min, respectively. The prediction accuracy of the fuzzy model constructed is 96.614%.

4.3 Result of wear rate

The results of defuzzification of the third output (WR) are shown in Fig. 31.

Fig. 31
figure 31

Variation of the experimental and predicted wear rate (WR) as a function of the number of tests

Figure 32 shows the ability of the fuzzy model constructed to predict the wear rate (WR). For the same machining parameters, the wear rate (WR) obtained by the fuzzy model and the confirmation tests are shown in Fig. 32.

Fig. 32
figure 32

Comparison of predicted and experimental wear rate (WR)

The results of the confirmation tests have shown that the fuzzy model constructed gives values of the wear rate (WR) close to the real values. The maximum and minimum deviation of the wear rate (WR) values predicted with the real wear rate (WR) is observed at 0.004% and 0.205%, respectively. The prediction accuracy of the fuzzy model constructed is 97.076%.

4.4 Result of surface roughness

The results of defuzzification of the fourth output (Ra) are shown in Fig. 33.

Fig. 33
figure 33

Variation of the experimental and predicted surface roughness (Ra) as a function of the number of tests

Figure 34 shows the ability of the fuzzy model constructed to predict the surface roughness (Ra). For the same machining parameters, the surface roughness (Ra) obtained by the fuzzy model and the confirmation tests are shown in Fig. 34.

Fig. 34
figure 34

Comparison of predicted and experimental surface roughness (Ra)

The results of the confirmation tests have shown that the fuzzy model constructed gives values of surface roughness (Ra) close to the real values. The maximum and minimum deviation of the predicted surface roughness (Ra) values with the real surface roughness (Ra) is observed at 0.5 μm and 0.17 μm, respectively. The predicted accuracy of the fuzzy model constructed is 94.715%.

4.5 Result of radial overcut

The results of defuzzification of the fifth output (ROC) are shown in Fig. 35.

Fig. 35
figure 35

Variation of the experimental and predicted radial overcut (ROC) as a function of the number of tests

Figure 36 shows the ability of the fuzzy model constructed to predict radial overcut (ROC). For the same machining parameters, the radial overcut (ROC) obtained by the fuzzy model and the confirmation tests are shown in Fig. 36.

Fig. 36
figure 36

Comparison of predicted and experimental radial overcut (ROC)

The results of the confirmation tests have shown that the fuzzy model constructed gives values of Radial overcut (ROC) close to the real values. The maximum and minimum deviation of the predicted radial overcut (ROC) values with the real radial overcut (ROC) is observed at 0.0047 mm and 0.017 mm, respectively. The predicted accuracy of the fuzzy model constructed is 95.996%.

4.6 Result of circularity

The results of defuzzification of the sixth output (CIR) are shown in Fig. 37.

Fig. 37
figure 37

Variation of the experimental and predicted circularity (CIR) as a function of the number of tests

Figure 38 shows the ability of the constructed fuzzy model to predict circularity (CIR). For the same machining parameters, the circularity (CIR) obtained by the fuzzy model and the confirmation tests are shown in Fig. 38.

Fig. 38
figure 38

Comparison of predicted and experimental circularity (CIR)

The results of the confirmation tests have shown that the fuzzy model constructed gives circularity (CIR) values close to the real values. The maximum and minimum deviation of the predicted circularity (CIR) values with the real circularity (CIR) is observed at 0.0001 mm and 0.0033 mm, respectively. The prediction precision of the fuzzy model constructed is 95.619%.

4.7 Result of cylindricity

The results of defuzzification of the seventh output (CYL) are shown in Fig. 39.

Fig. 39
figure 39

Variation of the experimental and predicted cylindricity (CYL) as a function of the number of tests

Figure 40 shows the ability of the fuzzy model constructed to predict cylindricity (CYL). For the same machining parameters, the cylindricity (CYL) obtained by the fuzzy model and the confirmation tests are shown in Fig. 40.

Fig. 40
figure 40

Comparison of predicted and experimental cylindricity (CYL)

The results of the confirmation tests have shown that the fuzzy model constructed gives values of cylindricity (CYL) close to the real values. The maximum and minimum deviation of the predicted cylindricity (CYL) values with the real cylindricity (CYL) is observed at 0.0001 mm and 0.0033 mm, respectively. The prediction precision of the fuzzy model constructed is 97.063%.

5 Graphical representation of electrical discharge machining performances

5.1 Material removal rate

The influence of the current on the MRR is shown in Fig. 41a and b. It can be observed in these figures that the variation in the current is not significant and remains almost stable. This tendency can be at the interval of the current chosen in this study which has high levels [12, 16]. This tendency has been observed at high current levels, due to excessive and counterproductive discharge. This leads to an increase in the size of the plasma channel over time during discharge, which results in a loss of energy in the dielectric causes a decrease in material removal. The same observation was noted by O. Pauline et al. [9] and F. Klocke et al. [26].

Fig. 41
figure 41

Variation of the material removal rate predicted by fuzzy logic according to the machining parameters

The influence of pulse on time on the MRR is shown in Fig. 41a and b.

Figure 41 b shows that increasing pulse on time results in a significant increase in MRR. This figure also shows the largest increase in the MRR produced in the low current region. A high pulse on time transfers more discharge energy to the workpiece and therefore increases the removal rate of the material.

Figure 41c shows that the MRR turns out to be maximized in the region with a short pulse on time and maximum voltage values. Although the quantity of molten material will be small, but when the voltage is increased, the intensity of the electric field in the volume between the electrodes is greater than the resistance of the liquid dielectric (at least in certain places), which allows current to flow between the two electrodes. As a result, rapid tearing of the material is produced. This may be due to an increase in the density of surface crack caused by the localized effect of limited heat dissipation. The most influential factor among the three machining parameters on the material removal rate is pulse on time with a maximum contribution of 28.37%

5.2 Tool wear rate

Figure 42 shows a graphical representation of the fuzzy tool wear rate (TWR) as a function of the three machining parameters.

Fig. 42
figure 42

Variation of the tool wear rate predicted by fuzzy logic according to the machining parameters

Figure 42a shows a decrease in EWR with the increase in voltage. This returns according to P. Ong et al. [9] to the decrease of current participating in the removal of material. The decrease of current is caused by the formation of a viscous layer slowing the exchange of species in the environment of the electrode.

Figure 42b and c show that an increase in Pulse on time leads to a reduction in EWR. According to Y.C. Lin et al., [27] this is due to the deposition of the cracked pyrolytic carbon from the dielectric on the electrode, which leads to the formation of a protective layer. On the other hand, an increase in EWR is observed at currents greater than 14 A (Fig. 42b) and at small voltage values (Fig. 42c). This is due to the fact that the conductivity of the electrode is much higher than the conductivity of the room, and therefore, the heat given off by the electrode is faster which is indicated in the work of C.P. Mohanty [28].

The most influential factor among the three machining parameters on the tool wear rate (TWR) is the voltage with a maximum contribution of 39.80%.

5.3 Wear rate

Figure 43a, b, and c show the variation of WR. And as WR represents the ratio between the tool removal rate and the material removal rate, then its variation is explained by the same reasons for variation of MRR and TWR.

Fig. 43
figure 43

Variation of the wear rate predicted by fuzzy logic according to the machining parameters

The most influential factor among the three machining parameters on the wear rate (EWR) is the voltage with a maximum contribution of 52.62%.

5.4 Surface roughness

Figure 44 graphically shows the effect of current (I), voltage (V), and pulse on time (Ton) on the surface roughness.

Fig. 44
figure 44

Variation of the surface roughness predicted by fuzzy logic according to the machining parameters

As seen in Fig. 44a, the surface plot consists of two regions: a high slope region and a low slope region. In the region with a low slope, the roughness of the surface gradually increases with the voltage. Also, in this region, the roughness increases with the increase of the current.

In the second region V > 160 V and I < 14 A, the roughness increases rapidly when the voltage increases due to surface damage, which is attributed to the formation of cracks. The increase of the current in this voltage range causes greater melting of the material which leads to a reduction in crack formation. Slowing the formation of cracks reduces the size and depth of craters generated due to the high thermal decomposition point of the part material; therefore, the roughness decreases.

Figure 44b clearly shows that the roughness of the surface is controlled by the current and pulse on time which is explained by the quantity of energy applied during the duration of the pulse. With a longer pulse on time and a high current, more material of the part will be melted. Increased discharge current causes impulsive force acting on the workpiece. This improves the formation of a wider and deeper crater which will increase the surface roughness. On the other hand and despite the discharge time is important but the application of a low current caused less spark energy released. This led to the formation of tiny-sized craters on the machined surface and therefore caused a good surface finish this has been reported in the work of Rahul et al. [4].

Figure 44c shows that a combination of the low values of pulse on time and the average values of the voltage leads to maximum values of surface roughness.

The most influential factor among the three machining parameters on the surface roughness (Ra) is pulse on time with a maximum contribution of 81.24%.

5.5 Radial overcut

Figure 45 shows the evolution of radial overcut as a function of current, Volatge and Pulse on time.

Fig. 45
figure 45

Variation of the radial overcut predicted by fuzzy logic according to the machining parameters

Generally, we see that the value of radial overcut increases with Pulse on time.

Figure 45a shows that radial overcut decreases with increasing current and voltage to a value of 14 A for current and a value of 160 V for voltage. Beyond these values, there is a slight increase in radial overcut.

Figure 45b shows that radial overcut increases with increasing pulse on time regardless of the current value; this increase according to Dhar et al. [29] is due to the prolonged presence of sparks thus producing an increase in energy per spark.

A combination of the maximum values of voltage and pulse on time leads to maximum values of radial overcut as shown in Fig. 45c.

The most influential factor among the three machining parameters on the radial overcut (ROC) is pulse on time with a maximum contribution of 36.11%.

5.6 Circularity

Figure 46 shows the evolution of circularity as a function of current, voltage, and pulse on time.

Fig. 46
figure 46

Variation of the circularity predicted by fuzzy logic according to the machining parameters

In general, as shown in Fig. 46a and b, the precise tolerance of circularity is obtained for mean values of three variables (I = 14 A, V = 160 V, and Ion = 200 μs).

As shown in Fig. 46c, the combination of maximum pulse on time values and minimum voltage values leads to an increase in the tolerance of circularity.

The most influential factor among the three machining parameters on circularity (CIR) is the voltage with a maximum contribution of 49.54%.

5.7 Cylindricity

Figure 47 shows the evolution of cylindricity as a function of current, voltage, and pulse on time.

Fig. 47
figure 47

Variation of the cylindricity predicted by fuzzy logic according to the machining parameters

The combination of the minimum values of voltage and pulse on time with maximum values of the current leads to a minimum cylindricity as illustrated in Figs. 47a, b. The increase in pulse on time and voltage leads to a rapid increase in cylindricity up to a voltage of 160 Volts. Above this value, the cylindricity stabilizes (Fig. 47c).

An increase in the pulse duration results in deterioration of the lateral side of the hole due to the recoat layer formed on the lateral face of the hole, for which the surface quality deteriorates, and consequently the increase in cylindricity. This is due, according to Ay et al. [18], to the higher discharge energy causing violent sparks and a resulting deeper erosion crater on the surface.

The most influential factor among the three machining parameters on the cylindricity (CYL) is pulse on time with a maximum contribution of 63.10%.

6 Conclusions

In the present work, an experimental study of the electrical discharge machining process (EDM) is carried out on AISI 1095 treated steel parts. The factors considered in this study are current (I), voltage (V), and pulse on time (Ton). Several conclusions are summarized as follows:

The experimental approach used in this work to measure the performance of electrical discharge machining (EDM) and the associated geometric errors can be used in a practical way. It is useful to be an economical way to follow the machining performance evolution of AISI 1095 treated steel with EDM.

The experimental approach for measuring the electrical discharge machining performance and the associated geometric errors is easy to implement and use. The response of the measurement system to the nature of the machining operation is adequate and the results show that the machining performance has been measured satisfactorily whatever the machining conditions used.

The membership functions and the fuzzy rules developed were based on experimental measurements of the machining electrical discharge performance and associated geometric errors.

The effects of the machining parameters, on the electrical discharge machining performance and the associated geometric errors, have been studied and it has been found that certain cutting parameters have a greater effect than others such as follows:

  • The most influential factor among the three machining parameters on the material removal rate is pulse on time with a maximum contribution of 28.37%.

  • The most influential factor among the three machining parameters on the tool wear rate (TWR) is the voltage with a maximum contribution of 39.80%.

  • The most influential factor among the three machining parameters on the wear rate (WR) is the voltage with a maximum contribution of 52.62%.

  • The most influential factor among the three machining parameters on the surface roughness (Ra) is pulse on time with a maximum contribution of 81.24%.

  • The most influential factor among the three machining parameters on the radial overcut (ROC) is pulse on time with a maximum contribution of 36.11%.

  • The most influential factor among the three machining parameters on circularity (CIR) is the voltage with a maximum contribution of 49.54%.

  • The most influential factor among the three machining parameters on the cylindricity (CYL) is pulse on time with a maximum contribution of 63.10%.

The suitability of the fuzzy model has been checked and found adequate with a level of precision of 98.489% for material removal rate (MRR), 96.614% for tool wear rate (TWR), 97.076% for wear rate (WR), 94.715% for surface roughness (Ra), 95.996% for radial overcut (ROC), 95.619% for circularity (CIR), and 97.063% for cylindricity (CYL) which demonstrates that the model can be used to predict the electrical discharge machining performance of AISI 1095 treated steel.

The comparison and validation of the fuzzy results with the results of the experimental tests confirmed the high accuracy of the model. The fuzzy modeling technique could be an economical and effective method for predicting other electrical discharge machining (EDM) performance.

The strategy based on operator qualification to select the machining parameters for machining AISI 1095 treated steel can be described by fuzzy set theory.