1 Introduction

The use of hard turning to produce high-hardness steel products with acceptable machining parameters has recently gained popularity. It is also used to finish parts with a hardness of over 45 HRC to obtain error-free and precise parts. Many studies have shown that hard turning produces components with improved surface polish and dimensional precision [1]. Hard turning removes more material than grinding and reduces machining time by 60%. The high cutting zone temperature, increased tool wear and break, poor surface polish and non-optimal cutting parameters make hard turning a less attractive alternative to grinding [2].

Hardened steel is machined dry in the majority of turning operations [3]. Cutting fluids are currently being used in hard-turning processes to improve efficiency and cutting performance. High-pressure coolant (HPC) reduces cutting zone temperature, smoothes the surface, and extends tool life when turning hardened steel [4]. HPC outperformed dry and overhead fluid applications in hard-turning stainless steel with coated carbide inserts [5]. HPC lubrication appears to be a promising means of improving workpiece surface integrity and tool performance.

Bouacha et al. [6] investigated the effect of cutting parameters on surface roughness and cutting force components in hard turning of AISI 52,100 with a CBN tool using response surface methodology (RSM). The results illustrate how much feed rate and cutting speed influence surface roughness, and that the depth of cut has the greatest influence on cutting forces when compared to feed rate and cutting speed. According to ANOVA data, cutting temperature is mostly impacted by cutting speed, feed rate, depth of cut, the quadratic value of feed rate, the interaction between cutting speed and feed rate, and the interaction between cutting speed and depth of cut [7].

Coated tools, when used to transform hard materials into complex shapes and pieces, have the potential to cut manufacturing costs by up to 30 times their original value [8]. Ezugwu and colleagues [9] discussed the effect of high-pressure lubrication (HPC) on turning with coated carbide. In completed and extreme conditions, tool life is increased by up to 350 and 740%, respectively. In the hard machining of steels, both coated and uncoated carbide tools are widely used. After testing the performance of uncoated carbide and coated carbide tools on hardened steel turning, Das and colleagues [10] discovered that coated carbide tools performed significantly better than uncoated carbide tools. Coating technology advancements have allowed for the development of coated carbide tools with qualities such as hardness, high toughness values, enhanced fracturing strength, wear resistant capabilities, and improved thermal shock resistance. Coating materials have high wear resistance and are chemically inert, which protects the tool and workpiece from chemical interaction during the machining process [11].

Surface roughness is an important factor in product production and has a substantial impact on [12] machining costs when turning. A piece of work’s surface finish is affected by cutting factors such as cutting speed, feed rate, and depth of cut. High-pressure coolant application is a viable method for increasing surface smoothness [13]. During hard turning, several reasons are thought to be responsible for the challenges, with cutting temperature being the most significant. Another study found that HPC reduces cutting temperature, chip-tool interface temperature, tool wear, and increases surface smoothness [4]. Cutting forces can help explain the machining process because they are directly related to cutting conditions and tool conditions. HPC also reduces cutting forces during hard turning compared to dry machining [14].

Modeling and optimization methods in metal cutting are critical in today’s rapidly expanding industrial sector since they reduce tooling, production, and maintenance costs while simultaneously increasing total productivity. While the predictive model sets the equation connecting input and output to define the machining process's objective function, the optimization approach offers an optimal or near-optimal solution(s) for the stated objective function that the production engineer can execute on the shop floor. Among the several artificial intelligence-based soft computing systems, the artificial neural network (ANN) has been extensively used in machining operations because of its superior prediction accuracy. Sharma et al. [15] developed an ANN model of surface roughness in terms of speed, feed rate, depth of cut, and approaching angle for hard turning and discovered a 76.4% accuracy. ANN is regarded as a highly effective empirical technique since it considers the non-linear relationship between the process’s input and output parameters (performance characteristics). Additionally, neural networks with a single output fared better than neural networks with two outputs combined [16].

Another modeling and optimization method is RSM, which is used to acquire the levels of machining parameters that are required to achieve the desired level of responsiveness in a given situation. The RSM model produced excellent results in terms of forecasting cutting temperature and surface roughness [7, 17]. Surface roughness forecasts were accurately predicted by the ANN model, which generally exhibited better overall performance, especially when compared to the conventional RSM model [18]. In a recent work ANN model was also found effective than RSM model in predicting surface roughness and cutting force components under dry conditions [19].It was also found in another article that ANN outperformed RSM when it came to forecasting cutting temperature in HPC [20]. ANN was also found to be more accurate than RSM in predicting cutting forces in a separate study [21]. Sometimes, nevertheless, it was found that the RSM model was a better way to predict surface roughness than ANN [22]. Another artificial intelligence tool, the adaptive neural fuzzy inference system (ANFIS), enables the industrial business to grow positively [23]. ANFIS is a strong modeling technique that is based on a fuzzy inference system and a neural network. It is used to describe complicated interactions in numerous fields of industry and engineering that are difficult or impossible to explain using classical models [24]. This artificial intelligence technique has been effectively used in the modeling of a variety of machining processes, including turning, milling, and drilling [25, 26]. In another recent study, the ANFIS model was found to be very reliable in predicting cutting temperature with very little error [27]. However, in another study, ANFIS outperformed ANN in terms of obtaining cutting force components, tool wear, and surface roughness during HPC [28]. In addition, the ANFIS Model was found to be more reliable than the RSM Model in forecasting flank wear and surface roughness under dry conditions [29].

A systematic comparison has been performed between the three contemporary ML and statistical model. As there have been no systematic comparison between these three popular models on the same data in hard turning process under dry and HPC condition, this study will help in the decision making and choosing the best model in real life scenarios. Although it can be seen from the literature review that numerous predictive models have been developed to study the impact of variables (cutting speed, feed rate, depth of cut) on responses and, certain experimental research into the capabilities of high-pressure cooling (HPC) was carried out; to the best of our knowledge, no such research has been conducted employing ANN, ANFIS, and RSM models under HPC for predicting machining performances. The goal of this study is to get a better knowledge of surface roughness, cutting temperature, and cutting force during the hard turning of medium carbon steel under the impact of HPC and Dry. The objective of this study is to find the optimum model for predicting surface roughness, cutting temperature, and cutting force in the hard turning process, which will help to reduce costs and boost productivity.

2 Machine, material, methodology

Under high-pressure coolant conditions, the experiment was executed at a variety of industrial feed rates (f), cutting speeds (V), and for a variety of cut depths. With the help of a sturdy and solid lathe with a capacity of 10 horsepower and a maximum spindle speed of 1400 rpm, the machining trials were carried out. The experimental strategy involved hard turning of hardened steel in dry and high-pressure coolant environments. The cutting speed, V (96, 135, and 174 m/min), and feed rate, f (0.1, 0.12 and 0.14 mm/rev) ranges were chosen based on tool manufacturer recommendations and industrial practices. For the finishing operation of the studied tool-work-piece combination, the suggested depth of cut range is 0.3 mm to 2 mm (Widia TM Value). Taking this into account, the d value was selected to (0.2, 0.4 and 0.6 mm) [30]. Table 1 shows the current experimental conditions, which are as follows:

Table 1 Experimental conditions

To satisfy the criteria of the current research activity, which include an uninterrupted supply of coolant at a pressure of approximately 70 bar over a reasonably long cut, a coolant tank was used. The experimental setup is photographed in conjunction with the high-pressure coolant system, which consists of the motor-pump assembly, relief valve, flow control valve, and directional control valve. Cutting fluid must be drawn from the coolant tank, pressurized to high pressure with a vane pump, and then rapidly intruded through the nozzle. A high-pressure coolant jet is directed at an angle through a nozzle from an appropriate distance away from the chip-tool interface, and it is focused on such a way that it reaches the rake and flank surfaces and shields the auxiliary flank, enhancing dimensional precision. The experimental setup is shown in Fig. 1(a).

Fig. 1
figure 1

a Photographic view of the experimental set up, b Photographic view of the calibration set-up and temperature calibration curve for carbide and hardened medium carbon steel

After each cut, the surface roughness of the machined surface was determined using a Talysurf (Surtronic 3+) with a sampling length of 0.8 mm. The average cutting temperature in high-pressure coolant conditions was determined using a reliable tool-work thermocouple approach with suitable calibration [30]. The view of calibration set up and temperature calibration graph are shown in Fig. 1(b). A dynamometer (Kistler) was used to measure the main cutting force (Fc) during hard turning at various V-f-d combinations under high-pressure coolant conditions. Charge amplifiers were used to amplify the charge signal generated by the dynamometer (Kistler). A computer-based data acquisition system is used to acquire and sample the amplified signal at a sampling rate of 2000 Hz per channel. The time-series profiles of the collected force data indicate that the forces are reasonably constant throughout the length of the cut and that effects such as vibration and spindle run-out are minimal. Table 2 shows different process inputs with their levels and Table 3 shows the experimental responses for all the experimental run.

Table 2 Factors and levels used in the experimental plan
Table 3 Experimental data

2.1 Predictive models

2.1.1 Artificial neural network model

Nowadays, artificial neural networks are acknowledged as one of the most robust nonlinear mapping systems, capable of solving a wide variety of problems such as optimization, pattern recognition, control, time series modeling, and function approximation, among others. For modeling complex nonlinear relationships, ANN can be used in place of polynomial regression and produces more precise results [31]. To augment existing data analysis technologies, ANNs are recognized as one of the simplest mathematical models [32], consisting of three interconnected layers with one or more neurons in each layer. The first layer is referred to as the input layer, and it is where the model gets numerical data as input. At this point, a neuron is regarded as a single variable. The second layer is referred to as the hidden layer; it receives data from the input layer and processes it further. The third layer, named the Output layer, is coupled to the hidden layer via synaptic weights and gives an output (s). The precision of an ANN model is determined by the configuration, the various functions, the training algorithm, and the weights and biases. The primary disadvantage of building an ANN model is selecting the ideal number of neurons to achieve the most accurate outcome feasible.

For predicting machining performances under HPC and dry, this research utilized the most well-known and well-established technique, a feed forward error back-propagation training algorithm of ANN. The algorithm has a ‘3-n-1’ architecture and is used to predict cutting forces, temperature, and surface roughness in the hard turning operation, and the feed-forward back propagation algorithm yielded the most error-free results [33]. Using the ‘nnstart’ wizard, MATLAB R2020a has been utilized to create, train, and test the neural network. Neural networks have been developed by using a tangent of the sigmoid activation function in the hidden layer and in the output layer because of their symmetric nature [34].

2.1.2 Response surface methodology

The response surface methodology is a synthesis of numerous mathematical and statistical techniques that enables us to optimize, develop, and improve a wide variety of processes [35]. RSM is a statistical and mathematical technique that generates a unique relationship between dependent and independent variables, as well as mathematical connections [36]. This model makes it simple to determine the effects of process variables on output response, and its prediction and optimization capabilities are also rather good. Additionally, as shown in Eq. (1) and (2), the RSM model can be used to construct both linear and quadratic models (2).

$$ X = \beta_{0} + \, \beta_{1} x_{1} + \, \beta_{2} x_{2} + \, \beta_{3} x_{3} + \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots \ldots . + \, \beta_{n} x_{n} + \xi $$
(1)
$$ X = \beta_{0} + \sum\limits_{(i = 1)}^{k} {\beta_{i} x_{i} } + \sum\limits_{(i = 1)}^{k} {\beta_{ii} x^{2} } + \sum {\sum\nolimits_{(i < j)} \beta_{ij} x_{i} x_{j} } + \xi $$
(2)

Here X is the response parameter– cutting temperature, surface roughness, and cutting force; In Eq. (1) β0 is the fixed term while linear coefficient terms are β1; β2 …..; in Eq. (2) the coefficients of linear, quadratic, and cross-product terms are βi, βii, βij respectively; xi is the input variables (i.e. cutting speed, feed rate and depth of cut).

CCD (Central Composite design) and BBD (Box-Behnken design) are the two most frequently used designs for optimizing multiple responses in hard turning operations. Box and Behnken first proposed RSM factorial designs (BBD) with three-level factors to fit quadratic models to the responses [37].In this research, the BBD of the RSM approach was applied for the conduct of the experiment.

2.1.3 Adaptive neuro-fuzzy inference system

For diverse applications, an adaptive neuro-fuzzy inference system is a fusion intelligent computing approach that integrates ANN with a fuzzy system. [37, 38]. Jang was the first to launch it in 1993 [39]. This network has a five-layered hybrid system with various functions, as shown below.

Layer I (Fuzzy layer): This ANFIS layer turns a collection of inputs to a fuzzy set by the use of a membership function. The adaptive nodes in this layer perform the following functions:

$$ \begin{gathered} {\text{Z1}},{\text{ i }} = \, \mu {\text{Pi}}\left( {\text{M}} \right)\left( {{\text{i}} = {1},{ 2}} \right) \hfill \\ {\text{Z1}},{\text{ j }} = \, \mu {\text{Qj}}\left( {\text{N}} \right)\left( {{\text{j }} = {1},{ 2}} \right)\left( {2} \right){\text{ Z1}},{\text{k }} = \, \mu {\text{Rk}}\left( {\text{ O}} \right) \, \left( {{\text{k}} = { 1},{ 2}} \right) \hfill \\ \end{gathered} $$
(3)

Here input variable nodes M, N, and O are with i, j, k, P, Q, and R are the labels associated with the input node. µ(M), µ(N), and µ(O) are considered as membership functions and because of versatility Gaussian shape membership function was selected.

Layer II(product layer (π)): The output signal is obtained by multiplying the input signal by the node function and the nodes are fixed in this layer.

$$\begin{aligned} {\text{Z2}},{\text{i}} = {\text{Wi}} \, = \mu {\text{Pi}}\left( {\text{M}} \right).\mu {\text{Qj}}\left( {\text{N}} \right).\mu {\text{Rk}}\left( {\text{O}} \right), \, \left( {{\text{ for i}};{\text{ j and k }} = { 1},{2}} \right) \\ \end{aligned}$$
(4)

where Z2, i represents the output of layer II and the strength of fuzzy rule setup is Wi.

Layer III (normalized layer (N)): This layer computes the normalized firing strength of a rule acquired from the preceding layer, as well as a, has fixed node network whose strength is expressed as:

$$ Z3,i = Wx = \frac{Wi}{{\left( {W1 \, + \, W2 \, } \right)}},\left( {for \, i = 1,2} \right) $$
(5)

Here the output of layer III is Z3, i, and Wx is the normalized strength rule.

Layer IV(defuzzy layer): Each node represents a section of the fuzzy rule that is consistent, and nodes can be adjusted in this layer.

$$ Z4,i = Wxi.fi,\left( {for\,i = 1,2} \right) $$
(6)

where the normalized weighting factor of the ith rule is Wxiand fi is a fuzzy rule for i = 1, 2 so fuzzy rule for a system is given as:

$$ fi = \left( {Pix1 + Qix2 + Ri} \right) $$

andPi, Qi, and Ri are the set parameters.

Layer V(Total output layer): Defuzzification of the subsequent part of the rule is achieved in this layer by adding the outputs of all the rules.

$$ {\text{Z5}},{\text{ i }} = \, \Sigma {\text{iWni}}.{\text{fi}},\left( {{\text{for i}} = {1},{2}} \right) $$
(7)

Here Z5, i is the output of this layer.

ANFIS system has several advantages over traditional estimating methods, the most significant of which is that it does not require any changes to the existing model structure. It is possible to simply supplement the model with new input parameters, as well as to automatically explore the non-linear relationship between the input parameters (cutting speed, depth of cut, feed rate) and the output parameters (surface roughness, cutting temperature, cutting force).

2.2 Comparison parameters

The significance of the ANFIS, ANN and RSM models were evaluated concerning different statistical parameters like the coefficient of correlation (R), coefficient of determination (R2), mean square error (MSE), root mean square error (RMSE), mean absolute error (MAPE). The representing equations Eqs. (8), (9), (10), (11), (12) of these parameters are given below

$$\mathrm{R }=\frac{\sum_{1}^{n}(x-\overline{x })(y-\overline{y })}{\sqrt{\sum_{1}^{n}{(x-\overline{x })}^{2}\sum_{1}^{n}{(y-\overline{y })}^{2}}}$$
(8)
$$\mathrm{R}2 = ({\frac{\sum_{1}^{n}(x-\overline{x })(y-\overline{y })}{\sqrt{\sum_{1}^{n}{(x-\overline{x })}^{2}\sum_{1}^{n}{(y-\overline{y })}^{2}}})}^{2}$$
(9)
$$\mathrm{MSE }= \frac{\sum_{1}^{n}({y-x)}^{2}}{n}$$
(10)
$$\mathrm{RMSE }= \sqrt{\frac{\sum_{1}^{n}({y-x)}^{2}}{n}}$$
(11)
$$\mathrm{MAPE }= \frac{1}{N}\sum_{i=1}^{n}\frac{|Actual- predicted|}{Actual}\times 100$$
(12)

3 Result and discussion

3.1 ANN model

The back-propagation technique was employed as the learning algorithm in this modeling method. The Bayesian regularization technique termed ‘trainbr’ by MacKay [40] can be used to overcome difficulties associated with imprecise noisy input and over-or under-fitting in neural network training. So, the Bayesian regularization algorithm called 'trainbr' was chosen as the training algorithm in this modeling method. The hyperbolic tangent sigmoid function 'tansig' was used as the transfer function for the hidden and output layers, respectively, during modeling. It is worth noting that the 'tansig' was chosen for its symmetrical character [34].

To identify the ideal architecture, we created and tested many networks with varying layers and neurons in the hidden layer. Using a trial and error strategy to determine the most accurate model is one of the most effective methods for ANN model training, especially when a hybrid model such as an ANN-genetic model is not utilized [41]. As a result, the number of neurons in the hidden layer was calculated statistically. The applied technique for determining the ANN model with the lowest error in predicting surface roughness under HPC is illustrated in Fig-2. The ANN model with three inputs (cutting speed, depth of cut, and feed rate), one hidden layer, 14 neurons in the hidden layer, and one output performed the best at predicting surface roughness under HPC. As illustrated in Fig. 2, we can see that when three outputs are predicted simultaneously, the model's accuracy declines.

Fig. 2
figure 2

The error of the ANN models in predicting the Ra in terms of the number of neurons and hidden layer

Table 4 detail various ANN models for three distinct output responses and their associated RMSE. The number of hidden layers were varied starting from a base point of 6 hidden layers. As can be seen from Fig. 2 the RMSE value started to decrease after 8 hidden layers; however, the RMSE value started to increase after 20 hidden layers. Increasing the number of steps did not improve the results either. The optimal ANN structure for surface roughness under HPC is 3-14-1 based on the lowest RMSE value, but the RMSE was high when we applied the same structure for other responses. As a result, different responses based on a trial-and-error technique resulted in diverse ANN structures. Actual and anticipated data were compared to determine the adequacy of the ANN models and in all cases, predicted values were found to be close to observed values, showing that the data were well-fitted. The R, R2, MAPE, MSE, RMSE between the simulated and experimental data for surface roughness, cutting temperature, and cutting force under HPC and Dry conditions are shown in Tables 7, 8. The R-values for various responses under various conditions are depicted in Fig. 3.

Table 4 Optimum ANN model and corresponding lowest RMSE
Fig. 3
figure 3

Actual vs Predicted surface roughness (Ra) under a HPC and b Dry, Actual vs Predicted cutting force (F) under c HPC and d Dry Actual vs Predicted cutting temperature (T) under e HPC and f Dry

3.2 RSM model

According to the BBD, the investigation was carried out to investigate the effect of factors (cutting speed, depth of cut, and feed rate) on surface roughness, cutting temperature, and cutting force in HPC and dry cutting conditions using DesignExpert13 software. Different linear and quadratic equations were created by expressing the responses concerning three input factors using experimental results.

The RSM model equations, Eq. 1318 are expressed in terms of coded factors below.

$$ ({\mathbf{Surface}} \, {\mathbf{Roughness}})_{{{\mathbf{HPC}}}} = \,0.{86} - 0.0{8}0{\text{A}} + 0.0{9}0{\text{B}} + 0.{\text{12C}} - 0.0{2}0{\text{AB}} - 0.0{\text{25AC}} + 0.0{3}0{\text{BC}} $$
(13)
$$ ({\mathbf{Surface}} \, {\mathbf{Roughness}})_{{{\mathbf{Dry}}}} = {1}.0{2} - 0.0{\text{94A}} + 0.{\text{13B}} + 0.{\text{17C}} $$
(14)
$$ \left( {{\mathbf{Cutting}} \, {\mathbf{Force}}} \right)_{{{\mathbf{HPC}}}} = {195}.{88} - {21}.{\text{25A}} + {57}.{5}0{\text{B}} + {36}.{\text{25C}} $$
(15)
$$ \left( {{\mathbf{Cutting}} \, {\mathbf{Force}}} \right)_{{{\mathbf{Dry}}}} = {237}.{76} - {16}.{\text{38A}} + {84}.{\text{75B}} + {37}.{\text{63C}} + {2}.{5}0{\text{AB}} - {1}.{\text{75AC}} + {2}0.00{\text{BC}} $$
(16)
$$ \left( {{\mathbf{Cutting}} \, {\mathbf{Temperature}}} \right)_{{{\mathbf{HPC}}}} = {897}.{35} + {9}.{5}0{\text{A}} + {22}.{\text{88B}} + {1}0.{\text{12C}} - {6}.{5}0{\text{AB}} + 0.000{\text{AC}} - {14}.{\text{25BC}} $$
(17)
$$ \left( {{\mathbf{Cutting}} \, {\mathbf{Temperature}}} \right)_{{{\mathbf{HPC}}}} = {963}.{59} + {11}.{\text{63A}} + {11}.{\text{87B}} + {25}.{\text{25C}} $$
(18)

hereA = Cutting Speed, B = Depth of cut and C = Feed rate.

The analysis of variance (ANOVA) is used to assess the impact of several variables on the dependent variable (surface roughness, cutting temperature, and cutting force shown in Table 5. The ANOVA table contains the sequential sum of squares, from which the percentage contribution of factors is calculated, as well as the F-value and P-value. The P-value reflects the significance of a factor at a 95% confidence level. The higher the F-value, the greater the relevance of that factor.

Table 5 a ANOVA table for surface roughness under HPC and Dry b ANOVA table for Cutting force under HPC and Dry c ANOVA table for Cutting temperature under HPC and Dry

Cutting speed, feed rate, and depth of cut are all statistically significant for RSM surface roughness, cutting force, and cutting temperature models, as the P-values are less than 0.05. The important interactions for the surface roughness model under dry cutting conditions are depth of cut-feed rate and feed rate speed. The depth of cut-feed rate is the sole relevant interaction term for the cutting force model under dry and cutting temperature under HPC.

Figure 4 depicts the regression curve of actual and expected surface roughness, cutting force, and cutting temperature for the RSM model. The regression coefficient values for three output response models are shown in Table 7, and these results indicate that the model is appropriate for predicting surface roughness, cutting force, and cutting temperature in both machining conditions. Because of the larger F-value, the feed rate is the most critical factor in surface roughness and cutting temperature in dry cutting conditions. Similarly, the depth of cut for cutting force and cutting temperature contribute the most under HPC.

Fig. 4
figure 4

a Surface roughness under HPC b Surface roughness under Dry c Cutting force under HPC d Cutting force under Dry e Cutting temperature under HPC f Cutting temperature under Dry

The three-dimensional response surface plots of surface roughness under HPC are shown in Fig. 5. Figure 5(a) depicts the relationship of surface roughness with feed rate and cutting speed, whereas Fig. 5(b) depicts the relationship with cutting speed and depth of cut, and Fig. 5(c) feed rate-depth of cut. Low surface roughness is associated with low feed rate, depth of cut, and high cutting speed in dry and HPC cutting, whereas high surface roughness is associated with high feed rate, depth of cut, and low cutting speed. The high-pressure coolant lowers surface roughness in all circumstances. Similarly, in dry and HPC cutting, low feed rate, depth of cut, and cutting speed are associated with low cutting temperature, while the high cutting temperature is generated at high feed rate, depth of cut, and cutting speed, and HPC creates more cutting temperature than dry cutting circumstances. In dry and HPC cutting conditions, low feed rate, depth of cut and higher cutting speed is associated with low cutting force, whereas high force is created at low feed rate, depth of cut, and lower cutting speed, and HPC also reduces cutting force during machining operation when compared to dry cutting condition.

Fig. 5
figure 5

Response Surface plot of Surface roughness under HPC

3.3 ANFIS model

This section explains how the experimental data and the ANFIS model output differ based on the machining parameters. Table 6 shows the ANFIS output values for surface roughness, cutting temperature, and cutting force under HPC and dry cutting conditions.

Table 6 Predicted values by ANFIS, ANN and RSM

The suggested ANFIS model for surface roughness, cutting force, and cutting temperature under both cutting conditions with three input parameters and one output parameter comprises the approach below to predict the process output parameters.

  • In the command window, enter all of the input values and their corresponding output responses, and then load everything into the ANFIS editor toolbox, which is primarily based on the Sugeno fuzzy model, as shown in Fig. 6.

  • The fuzzy inference system is then created using the grid partitioned technique.

  • In most cases, the proposed fuzzy set's membership function can be parameterized membership function.

  • A total of 1000 epochs are used to train the model. The input and output parameters are modified during the training process, and the error is minimized for each epoch. Figure 7depicts the error minimization process.

  • The data was then tested using fuzzy inference systems that adapt their rules in a self-manner and predicted surface roughness values using ANFIS.

Fig. 6
figure 6

Command window of ANFIS

Fig. 7
figure 7

Error minimization process of ANFIS

In all cases, R values greater than 0.9 suggest a strong link between the actual and anticipated values; the created ANN models, which were trained using actual values, accurately predicted the responses [42].The adaptive neuro-fuzzy interference system performs well in terms of coefficient of correlation, coefficient of determination (R2), MSE, MAPE, and RMSE for all three outputs. The coefficient of determination reflects how much of the variance between the two variables is explained by the linear fit and it is shown in Fig. 8. The value of the Correlation coefficient (R) for surface roughness under HPC is 0.9973, indicating that 99.73 percent of the variance is predictable. Tables 7, 8 displays all of the correlation coefficients and related RMSE and MAE. All of the correlation coefficients are close to one, indicating that the variables are positively linearly connected and that the scatter plot follows virtually a straight line with a positive slope.

Fig. 8
figure 8

a Surface roughness under HPC b Surface roughness under Dry c Cutting force under HPC d Cutting force under Dry e Cutting temperature under HPC f Cutting temperature under Dry

Table 7 R and R-squared values of ANFIS, ANN and RSM
Table 8 RMSE, MAE values of ANFIS, ANN and RSM

3.4 Comparative analysis of ANN, RSM and ANFIS models

The ANFIS, ANN, and RSM techniques were used in this study to predict surface roughness, cutting force, and cutting temperature under HPC and Dry cutting circumstances. The predictive models created by ANFIS, RSM and ANN were compared based on their prediction accuracy as measured by their coefficient of determination (R2), coefficients of correlation (R), Mean absolute error (MAE) and root mean square error (RMSE) shown in Table 7, 8. The good relationship between the input values demonstrated that the models built are suitable for simulating actual results. To assess the accuracy of the constructed ANFIS, ANN and RSM models, the predicted data were compared with the actual data, as shown in Fig. 9. The values were plotted against the run numbers of the experiment. The results reveal that the model projected values for surface roughness, cutting force, and cutting temperature under HPC and Dry cutting circumstances were in close agreement with the corresponding experimental values in all three approaches. However, ANFIS models were found to be marginally more accurate in predicting responses than ANN and RSM.

Fig. 9
figure 9

a Comparison of Actual (Ra) with predicted ANN, RSM and ANFIS predicted (Ra) b Comparison of Actual (F) with predicted ANN, RSM and ANFIS predicted (F) c Comparison of Actual (T) with predicted ANN, RSM and ANFIS predicted (T)

The R2 computed by ANFIS was more accurate as the values were closer to one than the ANN and RSM techniques. This means that the models produced by ANFIS were more effective and better at predicting responses. Based on the statistical analysis, all of the approaches produced high-quality simulations due to their data fitting and prediction abilities.

Table 6 illustrate the prediction performance of the ANFIS, ANN, and RSM models for surface roughness, cutting force, and cutting temperature. The most approximate locations have a reduced failure rate; the differences between projected and experimental data are fewer for ANFIS models than for RSM and ANN models. ANN models, on the other hand, outperform RSM models. The obtained R2 for surface roughness ANFIS models is 0.9947 (under HPC) and 0.9896 (under dry), while their values for ANN models are 0.9867 (under HPC) and 0.9837 (under dry). This can also demonstrate the capabilities of ANFIS models, which also show smaller residuals in Ra, F, and T (at various cutting conditions) as compared to ANN and RSM models. Furthermore, the RMSE and MAE values in Table 8 demonstrate that ANFIS models outperformed ANN and RSM models in terms of prediction capabilities for the evaluated material and process. According to the arguments presented above, ANFIS outperforms ANN and RSM in predicting surface roughness, cutting temperature, and cutting force under HPC and Dry cutting circumstances.

3.5 Comparison with recent works

A detailed comparative analysis between the proposed ANFIS framework with the previous works on predicting machining response in hard turning process has been presented in this section. In [19] Surface roughness and cutting force under dry condition was predicted using ANN and RSM model.The final R-Squared value for surface roughness and cutting force were 0.9679 and 0.9980 respectivley. In another paper, surface roughness was predicted using ANFIS Model and the R-squared value was 0.9801 [43]. Cutting gemperature was predicted by ANN and ANFIS under dry conditions and the final R-squared values were 0.8978 and 0.9594 respectivley [28] in another article.

In [19] prediction was only made in dry conditions, also the predictive accuracy was significantly lower than the proposed ANFIS model which was 0.9896 and 1 for surface roughness and cutting force respoectively. In [43] the prediction was made for only two output parameter which narrowed the scope of that model; wherease the proposed model was prepared for 6 output parameters, which made our model more generic. In[28] the prediction was only made for one response under one condition and the accuracy was also lower than the proposed ANFIS Model in this work.From this analysis, it can be showed that the proposed ANFIS Model imparts significant improvement over the exsting works on hard turning process under Dry and HPC conditions.

4 Conclusion

Using ANFIS, RSM, and ANN, the researchers investigated the effects of varying cutting conditions on surface roughness, cutting temperature, and cutting force by varying cutting speeds, depth of cut, and feed rates. The following are some key takeaways from the discussion just above about how things turned out:

  • The cutting speed, feed rate, and depth of cut are all statistically significant. Because of the larger F-value, the feed rate is the most important factor in determining surface roughness and depth of cut for cutting force.

  • In addition to improving the surface quality, high-pressure coolant also provides a low surface roughness, which allows for the attainment of the required precision. When compared to dry cutting conditions, it also lowers the cutting temperature and cutting force.

  • As a modeling technique, the response surface methodology can help uncover unimportant major factors, interactions, or unimportant quadratic terms in the model, reducing the problem's overall complexity.

  • Findings from simulations of the analyzed properties using ANFIS,ANN and RSM models based on real data showed that each model can produce correct results.

  • ANN and RSM were shown to be inferior in prediction when compared to ANFIS models, which had a larger and better determination coefficient (R2) (close to 1).Additionally, RMSE, MSE, and MAPE were used to verify this, as these parameters had lower values in ANFIS than RSM and ANN.