1 Introduction

Over the last decade, polymer machining has been developed as an alternative to injection molding, sintering, or extrusion processes. This is due to the need for cost-effective manufacturing methods when using high-performance polymeric materials with higher mechanical and thermal properties. One of the best thermoplastic polymers is polytetrafluoroethylene (PTFE), a semi-crystalline, soft, easily definable, opaque, and white material, and its trade name is “Teflon.” PTFE is a remarkable material in many functions [1], due to its excellent mechanical properties with a low coefficient of friction [2], thermal insulation [3, 4], and dielectric [5]. The PTFE cylindrical bars have played an essential role in the industry, which are widely used in the aeronautical field, containers for reactive chemicals, seals, coatings, electrical insulation, kitchen utensils, manufacturing gears, pinions, bearings [1, 6], medical, and biotechnology applications [7]. Optimization of turning parameters to achieve a quality set of attributes for productivity needs at an economical cost, superior material removal rate, and good surface finish are the main goals of the turning process on PTFE [8]. Surface roughness is an important characteristic in industrial applications and includes friction, lubrication, heat transfer, corrosion resistance, and wear. Surface roughness is a crucial element in manufacturing applications that determines the reliability and longevity of the parts [9, 10].

The better machinability and better product efficiency offer low surface roughness levels [2]. Mohd et al. [11] conducted the study experiments on cutting force and roughness in the turning of bronze reinforced polymer (PTFE). They noted that the cutting parameters, which give the best results, are as follows: ap = 0.5 mm, la ƒ = 0.05, and Vc = 100 m / min.

Kaladhar et al. [12] have used the Taguchi method for surface roughness optimization and tool flank wear in turning of AISI 4340 steel (35 HRC). ANOVA found that the cutting speed is the most, f = 0.15 mm/rev and ap = 0.25 mm.

Fetecau and Stan [13]. studied the effect of the cutting force and roughness in the turning of polytetrafluoroethylene (PTFE) composites with a polycrystalline diamond tool. The statistical results indicate that the cutting force is significantly influenced (at 95% confidence level) by feed rate, depth of cut, and the interaction of the feed rate with a depth of cut, while the cutting speed and insertion radius have a minor influence. The cutting force increases with increasing feed rate and depth of cut, respectively.

A prediction model based on ANN was developed to determine the optimum cutting parameters in surface roughness terms for the turning of 25% glass fiber-filled PTFE and 25% carbon-filled. The experimental results were compared with the ANN model performance in order to determine its effectiveness; Sanci et al. performed it [2].

Sanjeev Kumar et al. [14] have studied optimizing the best machining parameters of polytetrafluoroethylene (PTFE) and minimizing roughness. They found that the optimal roughness was (Ra = 61.92 μm) using the genetic algorithm in the 9th generation, cutting speed = 158.06 m/min, feed rate = 0.16 mm/rev, and the depth of cut = 1.719 mm. These results present the best parameters to obtain a minimum surface roughness in the machining of PTFE tubes to improve the airflow in aircraft and aircraft air conditioning systems.

Chabbi et al. [15] used both Taguchi analysis, RSM, ANN, and DF methods when studying the influence of machining parameters during the turning of polymer polyoxymethylene (POM C). They investigated the influence of surface roughness (Ra), cutting force (Fz), cutting power (Pc), and the material removal rate (MRR). They concluded that the feed rate presents the most important in surface roughness and the depth of cut presents the most influential parameter on (Pc) and (Fz).

Subramanian et al. [16] have used the ANOVA methodology for surface roughness optimization in the turning cylindrical Teflon rods (PTFE).

Anand et al. [17] carried out the machining parameter optimization during the drilling of polymeric nano-composites using ANN models, fuzzy logic, and gray relational analysis (GRA). They revealed that the drill diameter exhibits the most important factor, followed by the feed rate and the spindle speed.

Azizi et al. [18] have studied the effect of the cutting parameters on the surface roughness, the radial tool vibration, and the stock removal rate with a turning hard EN19 alloy steel in dry conditions and using the response surface methodology (RSM). They reported that the multi-objective optimization is Vc = 95.2 m/min, f = 0.125 mm/rev, ap = 1.2 mm with estimated surface roughness Ra = 0.925 μm, tool radial vibration Vy = 0.499 mm/s, and material removal rate MRR = 14.5 cm3/min.

Literature is prolific and widely available in the field of machining metallic materials and alloys, but there are fewer academic papers on polymer machining. There is very limited literature in this field, especially the machining of PTFE.

The purpose of the present experimental investigation is to determine the impact and optimization of the machining parameters such as (ap, f, and Vc) on surface roughness (Ra, Rz) and material removal rate (MRR) when turning polytetrafluoroethylene (PTFE). The response surface methodology and the artificial neural network method are used to develop mathematical prediction models. A comparative analysis of roughness criteria (Ra, Rz) was carried out between both methods in terms of the R2, MAPE, and MAD to determine the most effective. Finally, the desirability function (DF) was used to find optimal machining parameters. According to three desired cases; minimizing (Ra), maximizing (MRR), and compromising between (Ra, Rz) and (MRR).

2 Experimental

2.1 Materials and equipment

The used material in this study is a Teflon (PTFE) with a diameter of 90 mm and several levels of 20 mm long, separated by grooves of 2 mm. The machining was done on a TOS TRENCIN lathe model SN40 with a spindle power of 6.6 KW. The tests were conducted using a square plate metal carbide of the shade SCMM120512T (P30) designation. The insert was mounted on the tool holder of the CSDPN2525M12 designation with a positive rake angle. The roughness measurement (Ra, Rz) was performed with a surf test roughness meter (Mitutoyo) model 201. For more precision, the roughness tests were performed directly on the machine tool for each test (L27); the experimental setup will be seen in Fig. 1.

Fig. 1
figure 1

Experimental setup of the experimental procedure and methodology

2.2 Experimental design

Taguchi L27 plan is applied for the experiment planning to develop the mathematical models necessary for this study. The selected input factors (ap, f, and Vc), and the levels are grouped in Table 1.

Table 1 Levels of the different machining parameters

The material removal rate (MRR) is defined as the quantity of material extracted per unit of time, specifically aimed at process productivity. This needs to be maximized in roughing operations [19]. MRR is calculated with the obtained results, as follows in Eq. (1):

$$\mathrm{MRR}=\mathrm{ap}\times f\times \mathrm{Vc}$$
(1)

3 Results and discussion

Table 2 presents the coded factors, machining parameters (ap, f, and Vc), and the response factors Ra, Rz, and MRR according to the factorial design L27. It can be seen that the arithmetic mean roughness (Ra) was obtained in the range of 0.8–3.49 µm, the profile maximum height (Rz) was obtained in the range of 3.98–14.92 μm, and the calculation of the material removal rate MRR varies between 10.8 and 129.6 (cm3/min).

Table 2 Experimental results for Ra, Rz, and MRR

3.1 Statistical analysis

3.1.1 Analysis of variance (ANOVA)

The ANOVA results for surface roughness (Ra) were given in Table 3 part a. We can say that the feed rate (ƒ) is the most important factor, which influences the surface roughness (Ra), followed by the product (f2) which have contributions of 90.02 and 8.88%, respectively. Cutting speed (Vc) and depth of cut (ap) have statistically significant effects of less than 1%, while the products (V2, ap2) and interactions (Vc × f, Vc × ap and f × ap) have no significant intensity.

Table 3 Analysis of variance for (a) Ra, (b) Rz, and (c) MRR

The analysis presented in Table 3 part b shows that the feed rate (ƒ) is the most important factor, which influences the surface roughness (Rz). Its contribution is 91.81%, Vc with 1.32% contribution. The depth of cut (ap) is not significant in the surface roughness (Rz); however, the factor (f2) has a contribution of 5.67%, and the other factors are not significant. Table 3 part c illustrates the ANOVA results for material removal rate (MRR). One observes also that the feed rate (ƒ) presents the most important factor with a contribution of 49.22%, followed by Vc and ap with contributions of 22.00 and 21.87%, respectively. The interactions (ap × f, ap × Vc, and f × Vc) are less important and vary between 1.64 and 3.70%. To conclude, ANOVA revealed that the feed rate is a more significant factor than the surface roughness (Ra and Rz) and the material removal rate MRR with the contributions of 90.02, 91.81, and 49.22%, respectively.

The Pareto charts (Fig. 2) have classified the machining parameters and their correlations from the largest effect to the smaller effect, according to their corresponding Fisher’s test values (F value) at 95% (α = 0.05) confidence level. Standard values in Fig. 2 are calculated by dividing the mean square of each factor by the error mean square, if the F values for the surface roughness criteria Ra, Rz, and the material removal rate (MRR) are greater than 2.11 which is noteworthy that it is depicted as a red line of color which are important (significant). Based on the results of the variance analysis (Table 3) and the Pareto diagram (Fig. 2), it can be deduced that the feed rate is the most important parameter influencing the surface roughness and the material removal rate. Therefore, the results of ANOVA (Ra, Rz, and MRR) are confirmed by the Pareto chart.

Fig. 2
figure 2

Results of Pareto charts of surface roughness: a Ra, b Rz, and c MRR

4 Modeling of cutting parameters

4.1 Response surface methodology RSM

The relationship between depth of cut (ap), feed rate (f), and cutting speed (Vc) and the outputs titled Y defines the machinability of polytetrafluoroethylene (PTFE) in terms of (Ra, Rz, and MRR), and this rapport is given by Eq. (2):

$$Y=K\left(Vc, f, ap\right)+{e}_{ij}$$
(2)

where Y is the desired machinability aspect and K is a function proposed by using a non-linear quadratic mathematical model, which is suitable for studying the interaction effects of process parameters on machinability characteristics.

In the present work, the mathematical model of the second-order based on RSM (Eq. (3)) was calculated using Design-Expert version 10 software:

$$\begin{aligned}\mathrm{Y} & = \mathrm{a}_{0} + \mathrm{a}_{1}\mathrm{A} + \mathrm{a}_{2}\mathrm{B} + \mathrm{a}_{3}\mathrm{C} + \mathrm{a}_{12}\mathrm{AB} + \mathrm{a}_{13}\mathrm{AC} \\ & \quad + \mathrm{a}_{23}\mathrm{BC} + \mathrm{a}_{11}\mathrm{A}^{2} + \mathrm{a}_{22}\mathrm{B}^{2} + \mathrm{a}_{33}\mathrm{C}^{2}\end{aligned}$$
(3)

where ao is constant; a1, a2, a3, and a11, a22, and a33 represent the coefficients of linear quadratic; and a12, a13, and a23 represent the interactions terms, respectively. A, B, and C reveal the coded variables that correspond to the studied machining parameters.

The coded variables A, B, and C are obtained from the following transformation equations:

$$A=\frac{ap-apo}{\Delta ap}$$
(4)
$$B=\frac{f-fo}{\Delta f}$$
(5)
$$C=\frac{Vc-Vco}{\Delta Vc}$$
(6)

where:

A, B, and C are the coded values of parameters ap, f, and Vc, respectively.

apo, fo, and Vco are factors at zero level.

Δap, Δf, and ΔVc are the increment values of ap, f, and Vc, respectively.

Many researchers used the response surface methodology RSM to estimate the influence of input parameters on the response factors and to create predictive mathematical models and plots 3D of the response surface [15, 20,21,22,23]. The arithmetic means roughness (Ra), the maximum height of the profile (Rz), the material removal rate (MRR), and its coefficients of determination (experimental and adjusted) are given in Eqs. (7)–(9):

$$\begin{aligned}Ra & = 1.83054 - 0.15319ap - 18.47512f - 3.07687Vc + 0.041667ap\times f \\ & \quad - 9.86739\times {10}^{-4}ap\times Vc + 4.67149\times {10}^{-3}f\times Vc + 0.16444{ap}^{2}\\ & \quad +101.21528{f}^{2} +9.63337\times {10}^{-7}{Vc}^{2} ({R}^{2} = 99.78\%, {{R}^{2}}_{adj}=99.66\%)\end{aligned}$$
(7)
$$\begin{aligned}Rz & =9.48615 + 1.55169ap - 43.30872f- 0.034472Vc + 1.20833ap\times f \\ & \quad + 2.64135\times {10}^{-3}ap\times Vc-1.55967 \times {10}^{-3}f\times Vc-0.79556 {ap}^{2} \\ & \quad +312.67361 {f}^{2}+ 5.55462 \times {10}^{-5}Vc2({R}^{2}=99.48\%, {{R}^{2}}_{adj}=99.20\%)\end{aligned}$$
(8)
$$\begin{aligned}MRR & = 47.6 - 31.73\times ap - 297.5\times f - 0.240\times Vc- 0.00\times {ap}^{2} - 0.00 {f}^{2} \\ & \quad +0.00 {Vc}^{2}+198.3\times ap\times f + \mathrm{0,160}\times ap\times Vc + 1.500\times f\times Vc \\ & \quad ({R}^{2} = 99.73\%, {{R}^{2}}_{adj}=99.58\%)\end{aligned}$$
(9)

To reduce the models, only the significant parameters will be conserved and are given by Eqs. (10) to (12):

$$Ra = 1.58598+0.15111\;ap-17.48611f- 6.46373Vc + 101.21528\;{f}^{2}$$
(10)
$$Rz = 7.79063-41.80556f- 8.04240Vc + 312.67361\;{f}^{2}$$
(11)
$$\begin{aligned}MRR & = 47.600- 31.733\times ap- 297.500\times f- 0.240\times Vc \\ & \quad + 198.333\times ap\times f + 0.160\times ap\times Vc + 1.500\times f\times Vc\end{aligned}$$
(12)

The coefficients of determination values R2 for the components of the roughness criteria (Ra, Rz) and the material removal rate (MRR) models are, respectively, R2 = 0.9778, R2 = 0.9948, and R2 = 0.9973.These values indicate that the developed models explain 99.78, 99.48, and 99.73% of the variation (Ra, Rz, and MRR). The surface roughness (Ra, Rz) and the material removal rate MRR of the adjusted coefficient value of the model determination are, respectively, 99.66, 99.20, and 99.58%. They represent a correction of R2, which takes into account the number of variables used in the model. These two values of the determination coefficients R2 and R2adj show a very good correlation between the values predicted by this model, and the results measured experimentally are higher and suggest great importance of the models and display a good agreement with the experimental data.

Figure 3a–c shows a comparison between the values estimated by the developed model deduced from the (Ra, Rz, and MRR) and the experimental values obtained. The previous models can be used to predict the surface roughness (Ra, Rz), and the material removal rate MRR, for the selected cutting conditions. These figures indicate that the quadratic models are capable of the system representing in the given experimental domain. The comparison results illustrate that the predicted values of the studied technological parameters are closer to the experimental values.

Fig. 3
figure 3

Comparison results of predicted and measured a Ra, b Rz, and c MRR

To visualize the influence of the cutting parameters on the surface roughness (Ra, Rz), and the material removal rate (MRR), the response surfaces (3D), and the contour graphics were plotted based on Eqs. (7)–(9) of the model quadratic shown in Figs. 4, 5 and 6. Each model allowed three variables (ap, f, and Vc), and one of the variables was kept constant at the central level for each plot; therefore, a total of three response area plots were created from the responses (Figs. 4, 5 and 6). The influence of the feed rate (f) and the depth of cut (ap) on the surface roughness (Ra) with a constant cutting speed are presented in Fig. 4. It is observed that the surface roughness increases rapidly with increasing feed rate; however, the depth of cut does not have a significant effect on the surface roughness criteria. Figure 5 illustrates the interaction effect between the feed rate (f) and the cutting speed (Vc) on the surface roughness while maintaining the depth of cut (ap) at a constant level. It is noted that the surface roughness increases with increasing feed rate; however, the cutting speed shows no significant change in the surface quality. This suggests that the feed rate effect is the main significant factor contributing to the surface roughness variation. In conclusion, the interaction effects between the cutting speed (Vc) and the depth of cut (ap) on the surface roughness criteria (Ra, Rz) are shown in Fig. 6. One demonstrated that the cutting speed increasing and depth of cut have negligible effects on the surface roughness.

Fig. 4
figure 4

Effect of depth of cut and feed rate on surface roughness parameters at Vc = 270 m/min, a Ra and b Rz

Fig. 5
figure 5

Effect of feed rate and cutting speed on surface roughness parameters at ap = 1 mm, a Ra and b Rz

Fig. 6
figure 6

Effect of depth of cut and cutting speed on surface roughness parameters at f = 0.08 mm/rev, a Ra and b Rz

It revealed that a combination of higher cutting speed along with a lower feed rate and depth of cut is necessary for minimizing the surface roughness. A surface finish improvement Ra of 0.837 μm and Rz of 4.297 μm was recorded with a depth of cut of 1 mm, feed rate of 0.08 mm/rev, and at a higher cutting speed of 270 m/min.

Figure 7 illustrates the 3D plots of the (MRR) on a function of the combination of cutting parameters (Vc, f, and ap). It should be noted that the increase of the three values of (Vc, f, and ap) increases the maximal material removal rate (Eq. (1)).

Fig. 7
figure 7

Estimated response surface for MRR depending on: a ap, b f, and c Vc

4.2 Artificial neural network ANN

Artificial neural network (ANN) is potentially more accurate [24] and one of the best known predictive models which are capable to estimate the output parameter of the machining process in the range of input parameters studied. Several researchers have used ANNs for modeling the turning process successfully [25,26,27]. A neuron or node is classified as a single processor for junction measurements and transfer functions. In addition, and according to Hagan et al. research [28], the transmitted information between neurons was defined by the difference in weight (w) and biases (b). The increasing success of neural networks over other statistical technics can be due to their strength, flexibility, and ease of use [29].

In this study, a prediction model based on ANN was developed to determine the optimum cutting parameters (depth of cut, feed rate, and cutting speed) as a function of the surface roughness (Ra, Rz) in the turning of PTFE. The performance of the ANN model was compared with experimental results to determine its effectiveness. The ANN model is generally represented graphically as given in Fig. 8. The surface roughness Ra and Rz they modeled separately, with three hidden neurons (nodes) for each. The neuron number in the input layer is fixed as three neurons (ap, f, and Vc). The output layer contains a single neuron, which indicates the desired response (Ra, Rz, and MRR). The activation function used is a hyperbolic tangent (TanH) with a sigmoid function (Eq. (13)), which transforms the values between (−1 and 1). x is the linear combination of the X variables [30]. The general graph of the opted neural network for the surface roughness is illustrated in Fig. 9:

Fig. 8
figure 8

The ANN general graph

Fig. 9
figure 9

Neural network architecture chosen for Ra, Rz, and MRR

$$TanH=\frac{{\mathrm{e}}^{2\mathrm{x }}- 1}{{\mathrm{e}}^{2\mathrm{x}}+ 1}$$
(13)

The ANN models of the surface roughness (Ra, Rz) and the material removal rate (MRR) have been written as follows:

$$\begin{aligned}\mathrm{Ra} & = 4.4398 + 0.0392 \times \mathrm{ H}1 + 0.19259 \times \mathrm{ H}2 + 5.8890 \\ & \quad \times \mathrm{ H}3 + 0.6183 \times \mathrm{ H}4 + 0.1514 \times \mathrm{ H}5 + 0.5205 \times \mathrm{ H}6 + 0.7458 \\ & \quad \times \mathrm{ H}7 - 0.0787 \times \mathrm{ H}8 + 1.0465 \times \mathrm{ H}9 - 2.2093 \times \mathrm{ H}10\end{aligned}$$
(14)
$$\begin{aligned}\mathrm{Rz } & = 17.2032 + 3.8599 \times \mathrm{ H}1 + 1.6810\times \mathrm{H}2 + 18.5586 \\ & \quad \times \mathrm{H}3 + 0.7131 \times \mathrm{ H}4 + 0.1207 \times \mathrm{ H}5 - 0.1866 \times \mathrm{ H}6 + 3.8563 \\ & \quad \times \mathrm{ H}7 + 2.1838 \times \mathrm{ H}8 + 5.6968 \times \mathrm{ H}9 - 5.1926 \times \mathrm{ H}10\end{aligned}$$
(15)
$$\begin{aligned}\mathrm{MMR } & = 43.2727 + 42.2353 \times \mathrm{ H}1 - 2.9719 \times \mathrm{ H}2 + 39.4888 \\ & \quad \times \mathrm{ H}3 - 24.4053 \times \mathrm{ H}4 + 22.2320 \times \mathrm{ H}5 - 41.2604 \times \mathrm{ H}6 - 66.7335 \\ & \quad \times \mathrm{ H}7 + 19.4229 \times \mathrm{ H}8 - 47.6191 \times \mathrm{ H}9 + 18.3143 \times \mathrm{ H}10\end{aligned}$$
(16)

With:

$$\text{H1= TanH }(0.5 \times (-4.6886 + 0.8855 \times \mathrm{ap}+ 7.2974 \times f + 0.0077 \times \mathrm{Vc}))$$
$$\text{H2= TanH }(0.5 \times (3.4588 + 0.9032 \times \mathrm{ap} - 15.9704 \times f - 0.0103 \times \mathrm{Vc}))$$
$$\text{H3= TanH }(0.5 \times (- 3.2696 + 0.0996 \times \mathrm{ap} + 12.3787 \times f + 0.0019 \times \mathrm{Vc}))$$
$$\text{H4= TanH (0.5 }\times (- 3.4506 + 2.4092 \times \mathrm{ap} - 2.7219 \times f - 0.0034 \times \mathrm{Vc}))$$
$$\text{H5= TanH }(0.5 \times (2.1091 - 0.5186 \times \mathrm{ap} + 1.9492 \times f - 0.0041 \times \mathrm{Vc}))$$
$$\text{H6 = TanH }(0.5 \times (- 6.0975 + 1.7772 \times \mathrm{ap} + 12.1907 \times f + 0.0095 \times \mathrm{Vc}))$$
$$\text{H7= TanH }(0.5 \times (4.9372 - 1.8441 \times \mathrm{ap} - 6.4098 \times f - 0.0033 \times \mathrm{Vc}))$$
$$\text{H8= TanH }(0.5 \times (- 0.0216 + 1.7923 \times \mathrm{ap} - 3.9068 \times f - 0.0043 \times \mathrm{Vc}))$$
$$\text{H9 =TanH }(0.5 \times (- 1.1754 - 0.1424 \times \mathrm{ap} + 11.7417 \times f - 0.0077 \times \mathrm{Vc}))$$
$$\text{H10= TanH }(0.5 \times (- 4.2862 + 0.4925 \times \mathrm{ap} + 21.7649 \times f + 0.0023 \times \mathrm{Vc}))$$

4.3 Comparison between RSM and ANN models

After ANOVA and modeling, a comparable step between ANN and RSM models was done in terms to improve precision and maximum reliability. Qualified and quantified comparisons are required to evaluate the difference between the experimentally measured values and produced the values and to examine the precision of both models (RSM and ANN) [31]. The constructed model’s efficiency was calculated to determine the mean absolute error (MAD), absolute mean percentage error (MAPE), and determination coefficient (R2). The relationships expressing the different error criteria are given by the Eqs. (17) to (19). The work also concentrated on the accuracy and functionality of the RSM and ANN methods benchmarking approaches. [32, 33].

Figures 10, 11 and 12 illustrate the results that determine the difference between the experimental values and the predicted in the RSM and ANN models for the surface roughness responses and the material removal rate (MRR). Table 4 presents the surface roughness criteria and the material removal rate (MRR), results, predicted by the ANN and RSM models, and the percentage of their absolute errors. The RSM values of the absolute percentage error for (Ra, Rz, and MRR) criteria varied between 0 to 7.14% for Ra, 0 to 8.90%, and 0 to 23.43% for MRR. For the ANN model, they correspond to Ra = 0 to 5.81%, Rz = 0.14 to 10.03%, and MRR = 0 to 9.08%. We conclude that the ANN model provides better results with a low error compared to the RSM model. The obtained values of MAD, MAPE, and R2 of the response surface methodology (RSM) and the artificial neural network approach (ANN) for Ra, Rz, and MRR are presented in Table 5. Indeed, the ANN model presents the greatest results with the lowest values of MAD and MAPE compared to the RSM model. Consequently, the MAD and MAPE values of the RSM model are 0.039 and 2.468% for Ra, 0.228 and 3.231% for Rz, 0.848 and 2.880% for MRR, respectively. While the ANN model, the values are 0.024 and 1.647% for Ra, 0.290 and 3.467% for Rz, 0.884 and 1.790% for MRR, respectively. Finally, it should be pointed out that all models obtained by the ANN approach have a high determination coefficient (R2Ra = 99.92%, R2Rz = 99.69%, and R2MRR = 99.96%). The obtained values (R2) of the RSM model for Ra, Rz, and MRR are 99.78, 99.48, and 99.73%, respectively. This can clarify the competence of the ANN model. The deviations in the predicted and experimental results are lower for the ANN model relative to the RSM model; it may be concluded that the ANN model is more adequate for the surface roughness and the material removal rate prediction in the turning of polytetrafluoroethylene.

$$MAPE={\sum}_{\text{i=1}}^{\text{n}}\frac{\left|{(A}_{i}-\left.{B}_{i})/{A}_{i}\right|\right.}{n}\times 100$$
(17)
$$MAD={\sum}_{\text{i=1}}^{\text{n}}\frac{\left|{A}_{i}-\left.{B}_{i}\right|\right.}{n}$$
(18)
$${R}^{2}=\frac{{\sum}_{i=1}^{n}{(B}_{i}-{A}_{i})}{{\sum}_{i=1}^{n}{\left({A}_{i}-{Y}_{e }\right)}^{2}}$$
(19)

where:

Fig. 10
figure 10

Experimental, RSM, and ANN predicted results for (Ra)

Fig. 11
figure 11

Experimental, RSM, and ANN predicted results for (Rz)

Fig. 12
figure 12

Experimental, RSM, and ANN predicted results for (MRR)

Table 4 Comparison between ANN and RSM prediction results for Ra, Rz, and MRR
Table 5 Comparison between RSM and ANN

n is the number of experiments.

Ai is the experimental value.

Bi is the predicted value.

Ye is the average of the experimentally determined values.

4.4 Optimization of responses using the desirability method

The comparison between the experimental values for surface roughness (Ra, Rz) and the material removal rate (MRR) and those estimated by the mathematical models obtained by the RSM and ANN methods is presented in Fig. 9. They found it very close; however, the models obtained by the ANN method confirm a better correlation with the experimental data than those obtained by the RSM method.

Table 6 shows the constraints variation and the range of cutting parameters for the optimization step shown.

Table 6 Goals and parameters range of optimization for (Ra, Rz, and MRR)

Table 7 presents the three solutions selected for the three-optimization cases obtained:

  • For case 1, which obtain a good surface quality, the optimal cutting parameters attained are ap = 1 mm, f = 0.08 mm/rev, and Vc = 270 m/min. Surface roughness criteria take a lower value, Ra = 0.837 µm and Rz = 4.297 µm, while MRR = 18.733 cm3/min and desirability = 0.98.

  • For case 2, which obtain the best productivity (MRR) with the optimal cutting parameters, ap = 2 mm, f = 0.240 mm/rev, and Vc = 270 m/min. In this case, the material removal rate takes a maximum value of MRR = 126.733 cm3/min, while Ra = 3.355 µm, Rz = 13.670 µm, and desirability = 0.976.

  • For case 3, which is a combined optimization between (Ra) and (MRR). The optimal cutting parameters obtained in this case are represented by ap = 2 mm, f = 0.126 mm/rev, and Vc = 270 m/min. The minimum roughness and the maximum of the material removal rate reach Ra = 1.087 µm, Rz = 5.345 µm, and a maximum of MRR = 69.399 cm3/min, while desirability = 0.743.

Table 7 Optimization RSM for Ra, Rz, and MRR

4.5 Validation of models

The model’s suitability shall be verified by the investigations test. Residual analysis is expected to confirm that the ANOVA assumptions are being followed. The difference between the predicted and experimental values is examined, and the residuals versus predicted values are employed. Diagnostic verification was performed by the residual analysis of the developed models. The residual plots are shown in Figs. 13 and 14. It may be seen in Fig. 13a–c the normal probability plots for the output parameter residuals (Ra, Rz, and MRR). The residuals are generally decreased with a straight line, and most of the points are close to the 45° line, indicating that the errors are distributed normally and the proposed model which is significant [34] and can be used to estimate the surface roughness and the material removal rate when turning to polytetrafluoroethylene (PTFE). Residuals versus fitted values should be randomly scattered above and below the zero line, as shown in Fig. 14a–c [35], and this means that the proposed model is adequate.

Fig. 13
figure 13

Normal probability plot of residuals for a Ra, b Rz, and c MRR

Fig. 14
figure 14

Residual versus fitted for a Ra, b Rz, and c MRR

The industry aims to have better surface quality and high productivity at the same time, a very interesting advantage; this is what we found in the case of the third optimization. Figure 15a–c demonstrates the variation of the desirability as a function of the cutting parameters (ap, f, and Vc) for the various optimization cases along with the contour graphs. The value of desirability is recognized for the three-optimization cases represented by (a) minimization of Ra and Rz, (b) maximum of MRR, and finally (c) a compromise between Ra, Rz, and MRR. Figures 16 and 17 illustrate the desirability ramp plots and the bar graphs for the three-optimization cases.

Fig. 15
figure 15

Contour graphs of desirability for the three-optimization cases

Fig. 16
figure 16

Ramp function graphs for the three-optimization cases

Fig. 17
figure 17

Bar graphs of desirability for the three-optimization cases, a case 1, b case 2, and c case 3

5 Conclusion

In our work, the modeling and the optimization were presented during the turning of PTFE. Mathematical models for the prediction of roughness criteria (Ra, Rz) and the material removal rate (MRR) as a function of the machining conditions were studied. Based on the outcomes achieved, the following conclusions can be drawn:

  1. 1.

    From the ANOVA, it is proved that the feed rate (f) is the most influential parameter on the surface roughness (Ra, Rz) with the contributions of 90.02 and 91.81%, respectively. Moreover, the remaining cutting parameters showed a low significant effect on the surface roughness when turning PTFE.

  2. 2.

    An improvement in surface quality is observed at a lower feed rate and depth of cut with high cutting speed.

  3. 3.

    The material removal rate (MRR) was found affected by the feed rate (f) with the contribution of 49.22%, followed by (ap, Vc) with almost the same contribution of 21.87% and 22%, respectively. The contributions to the interaction process parameter were important.

  4. 4.

    The Pareto chart and the 3D plots confirmed the ANOVA.

  5. 5.

    The correlation coefficients of the predictive models of Ra, Rz, and MRR were found to be about 99.78%, 99.48%, and 99.73%, respectively. Therefore, the developed models are thus accurate and reflect an important industrial interest as they help to make forecasts within the framework of actual experiments.

  6. 6.

    The comparison of the predicted (ANN and RSM) models with the experimental results clearly shows that the ANN models are more reliable and yield excellent results, with high determination coefficient (R2) and the lowest values of MAD and MAPE compared with the RSM model for surface roughness criteria and the material removal rate:

    • The R2 values for Ra, Rz, and MRR of the models obtained by ANN present a high determination coefficient of 99.92%, 99.69%, and 99.96%, respectively, while others obtained from the RSM models are 99.78%, 99.48%, and 99.73% for Ra, Rz, and MRR, respectively.

    • The values for the RSM model of MAD and MAPE were obtained as follows: 0.039 and 2.468% for Ra, 0.228 and 3.231% for Rz, and 0.848 and 2.28% for MRR, respectively, while the ANN models are 0.024 and 1.647% for Ra, 0.29 and 3.467% for Rz, and 0.884 and 1.79% for MRR, respectively.

  7. 7.

    The multi-objective optimization of the technological parameters (Ra, Rz, and MRR) using the desirability function (DF) permitted us to find the optimal cutting parameters. Three cases of optimization are recognized in the present study:

    • Case 1: minimization of surface roughness, ap = 1 mm, f = 0.080 mm/rev, Vc = 270 m/min, Ra = 0.837 µm, and Rz = 4.297 µm

    • Case 2: maximization of the material removal rate, ap = 2 mm, f = 0.240 mm/rev, Vc = 270 m/min, and MRR = 126.733 cm3/min

    • Case 3: compromise between the quality and the productivity, ap = 2 mm, f = 0.126 mm/rev, Vc = 270 m/min, Ra = 1.087, Rz = 5.345 µm, and MRR = 69.399 cm3/min