Abstract

Currently, manufacturing industries focus on intelligent manufacturing. Prediction and monitoring of tool wear are essential in any material removal process, and implementation of a tool condition monitoring system (TCMS) is necessary. This work presents the flank wear prediction during the hard turning of EN8 steel using the deep learning (DL) algorithm. The turning operation is conducted with three levels of selected parameters. CNMG 120408 grade, TiN-coated cemented carbide tool is used for turning. Cutting force and flank wear are assessed under dry-cutting conditions. DL algorithms such as adaptive neuro-fuzzy inference system (ANFIS) and convolutional auto encoder (CAE) are used to predict the flank wear of the single-point cutting tool. The DL model is developed with turning parameters and cutting force to predict flank wear. The different ANFIS and CAE models are employed to develop the prediction model. Grid-based ANFIS structure with Gauss membership function performed better than ANFIS models. The ANFIS model’s average testing error of 0.0074011 mm and prediction accuracy of 99.81% are achieved.

1. Introduction

The required component can be manufactured through conventional and unconventional machining processes [1, 2]. Automated industries focus on conventional machining processes such as turning, milling, and grinding. Tool wear monitoring is essential to enhance product quality during the machining process. To monitor the machining process with high precision, the tool condition monitoring system (TCMS) should be an integral part of the automated manufacturing systems. TCMS can enhance production and enrich the performance of the machining system by improving the tool life, diminishing downtime and scrappage, and avoiding damage through continuous monitoring and predictive analysis [3]. Tool condition has been monitored by measuring the various sensor signals like cutting force, vibration [4], and sound signals [5]. Cutting force (CF) can be measured with piezoelectric or strain gauge-based sensors [6, 7]. The I-Kaz method analyzed a low-cost strain gauge sensor that measured the CF signals. The investigational outcomes were compared with the adaptive neuro-fuzzy inference system (ANFIS) based prediction model, which produced a maximum of 5.08% error [8]. The ANFIS model with “gbellmf” was used to forecast the surface roughness in milling operation by considering the spindle speed, feed, and depth of cut as input parameters [9].

Tool wear is more sensitive to CF signals, and CF signals are used to indicate tool conditions. Also, CF signals are gradually increased with a rise in tool wear. CF is measured directly through a dynamometer, and the tool wear is measured indirectly by analyzing the CF signals [10]. Prediction of tool wear and optimization of drilling parameters were carried out by ANFIS and genetic algorithm (GA), respectively. A smaller feed was suggested to minimize the thrust force and torque [11]. Response surface methodology (RSM) was employed to investigate process parameters’ effects on CF, surface roughness (Ra), and cutting temperature. Out of two forecasting models, such as an artificial neural network (ANN) and ANFIS, the ANFIS model predicts the response more accurately. The optimum process parameters were selected using the RSM [12].

Estimation of tool life was carried out by the ANFIS model using the surface roughness and CF. The accuracy of the proposed model was 92.62% [13]. ANFIS model was used to estimate the material removal rate (MRR) and surface roughness (Ra) while turning stainless steel 202. The depth of cut and spindle speed was found as the most influencing parameter for MRR and Ra, respectively [14]. CF was estimated using ANFIS with spindle speed, feed, and depth of cut during the turning process, and the CF was predicted with an average error of 2.59% [15].

The neural network was used to forecast the CF, Ra, and tool wear while turning the CP-Ti grade II workpiece. The proposed model was suitable for predicting the responses within a 5% error [16]. A discrete and continuous monitoring, hybrid policy-based tool replacement mechanism was developed. The hybrid policy was optimized by particle swarm optimization (PSO) algorithm. All policies’ results were analyzed, and PSO performed better than the others [17]. Online monitoring of grinding wheel wear was investigated in the grinding of Ti-6Al-4V titanium alloy. The result indicated that the Gaussian membership function-based ANFIS model was more intelligent for monitoring the grinding process [18].

Prediction and optimization of drilling parameters for Ra were investigated while drilling galvanized steel. ANFIS model with the “gbellmf” membership function produced the minimum error. The output of the ANFIS model was given as input to the GA to find the optimum process parameter. The spindle speed and tool angle was Ra’s most influencing parameters [19]. Prediction of CF and Ra was carried out in the Al-20Mg2Si-2Cu metal matrix composite with ANFIS. Feed, speed, and particle size were the inputs, and Ra was the output. The ANFIS model was suitable for forecasting the Ra with minimum error [20]. An investigation was conducted to compare the wear of ceramic tools during the machining of AISI D2 steel and glass fibre reinforced plastics (GFRP) material. The flank wear was smooth and higher for machining the GFRP, whereas low flank wear was observed while machining the AISI D2 steel [21].

An experimental study was carried out on ASTM A36 mild steel, and the wavelet denoising technique was used to decompose the noise signals, and then, the thresholding was done. The decomposed signals were trained with the ANFIS to investigate the relationship between the machining parameters and chatter. The depth of cut was the most influencing parameter on the chatter severity [22].An investigation was carried out to measure the CF, Ra, cutting power, and MRR while turning EN-GJL-250 cast iron using coated and uncoated silicon nitride ceramic tools. The study observed that Ra was affected by feed followed by speed than the depth of cut, and the CF was influenced mainly by the cutting depth followed by feed and cutting speed. ANN model was used for better prediction, and the RSM was used to identify the optimal process parameters and analyze their interactions [23]. RSM was used to perform the regression analysis and optimize the multiresponse problems [24].

Inconel 690 was machined with TiAlN-coated solid carbide insert under minimum quantity lubrication (MQL). The two models, gene expression programming (GEP) and ANN, were used to predict tool wear. The analysis reported that a speed above 100 m/min was not desirable for machining [25]. The surface morphology and chip were analyzed while turning the functionally graded (FG) specimen under nanofluid-assisted minimum quantity lubrication (NFMQL) conditions. They observed that the NFMQL method provided an ecofriendly, green, clean, and sustainable manufacturing process [26]. The tool vibration, Ra, and chip morphology was analyzed during the hard turning of hot work AISI H13 steel under multiwalled carbon nanotubes (MWCNTs) mixed nanofluid with MQL condition. They observed segmented-type serrated saw-toothed chip morphology and increased flank wear and tool vibration responsible for machined surface finish degradation [27]. The experimental investigation was carried out using Taguchi’s L27 orthogonal array. Inconel 718 was turned with a carbide-coated insert. The Mamdani inference system with rule reduction and Sugeno subtractive clustering method was used to model the CF, in which the latter produced the minimum error [28].

Acoustic emission (AE) and CF signals were used to predict the built-up edge formation during AISI 304 stainless steel machining. The discrete wavelet and wavelet packet transform filter the noise signals. Finally, the ANFIS model was used to predict the built-up edge height [29]. A new method of diagnosing the tool wear using the stacked sparse autoencoder is proposed. The different signals obtained from various sensors like accelerometer, dynamometer, and AE sensor were used as inputs. The signals were analyzed with wavelet analysis. The accuracy of this model is 99.63%, and it is more suitable for predicting the values very shortly [30].

During the hard turning of AISI D6 steel, the responses like Ra, CF, crater wear length, crater wear width, and flank wear were measured. Different machine learning algorithms, such as polynomial regression, random forests regression, gradient-boosted trees, and adaptive boosting-based regression, were used to predict the machining characteristics. Polynomial and random forests regression performed better than other algorithms [31]. The spindle structure autoencoder wraps the signal without any parameter mining, and the high ratio compression can be transmitted with a low bandwidth cost [32]. A conditional autoencoder was applied to monitor the wind turbine blade condition. The performance of the conditional autoencoder was compared with the classical and convolutional autoencoder methods. From the analysis, the conditional autoencoder’s accuracy was higher than the other two methods [33]. A deep network method is used to forecast the tool wear with the help of motor power using the deep learning neural network theory, which can increase learning speed and enhance the training process [34].

Furthermore, most of the earlier research works exposed that flank wear was forecasted based on the control factors and CF. Many research articles have reported the prediction of flank wear during the turning operation with vibration signals using machine learning and deep learning algorithms. To the authors’ best knowledge, the utilization of CF signals and turning parameters with the CAE model are not found in the literature. This work aims to develop the ANFIS and CAE model to forecast the flank wear during the dry turning of EN8 medium carbon steel. The prediction accuracy of ANFIS is compared with the CAE model.

The rest of the paper has been structured as follows: Section 2 deals with the experimental method, design of experiments, and measurement process. The modeling and prediction using ANFIS and CAE models are presented in Sections 3 and 4. The obtained results are discussed in Section 5.

2. Materials and Methods

2.1. Workpiece and Tool

The workpiece was EN8 medium carbon steel with a Brinell hardness of 255 BHN. EN8 has good tensile strength, is used for manufacturing various machine parts, and is easy to machine [35]. The TiN-coated cemented carbide tool (CNMG120408) was selected as the cutting tool. The tool insert was attached to a tool holder (PCLNR2525M12), which has a −6° of back rake angle, 5° of clearance angle, −6° of negative cutting-edge inclination angle, 95° of significant cutting edge, 0.8 mm nose radius, and 3.9 Nm of insert tightening torque.

2.2. Experimental Setup

The experiment was performed in a conventional lathe, as shown in Figure 1. The CF during the turning operation was captured using a lathe tool dynamometer. For acquiring the CF, a data acquisition system with the necessary software and hardware [36] was arranged and is shown in Figure 2.

2.3. Design of Experiments

With the help of central composite design (CCD), the effectiveness of the turning process was studied. A suitable variant in the CCD is the face-centered CCD, in which α = 1 [37, 38]. The design matrix is presented in Table 1.

2.4. Flank Wear Measurement

Flank wear was measured with profile projector PJ-A3000 (Make: Mitutoyo). The XY measurement range and resolution were 100 mm × 100 mm and 0.001 mm, respectively. The instrument used for measurement is shown in Figure 3.

3. Modeling Using an Adaptive Neuro-Fuzzy Inference System

ANFIS is a well-known hybrid neuro-fuzzy inference system to model intricate problems was established [26]. ANFIS is a beneficial neural network (NN) method for affording the result for nonlinear and approximating functions. ANFIS employs different learning approaches to a fuzzy logic (FL) system [39].

3.1. ANFIS Prediction Model

The ANFIS catches the merits of both NN and FL principles, and the ANFIS model can efficiently and optimally forecast the response. The parameters related to the membership functions (MF) are changed through the learning process. The parameter computation is simplified by a gradient vector that measures the fuzzy inference system (FIS), which is used to model the given input/output parameters. ANFIS uses a back propagation neural network (BPNN) or a combination of least squares estimation and BPNN (hybrid) for MF parameter estimation [40]. With the help of MATLAB, the ANFIS model was developed, and the graphical user interface was used for training and testing the model.

3.1.1. ANFIS Methodology

The following steps are to be considered for developing the ANFIS model to predict flank wear:

Step 1. Define the architecture of the ANFIS.
The architecture of ANFIS is displayed in Figure 4. The input parameters, such as speed, feed, and depth of cut, were controlled, and flank wear was recorded. The corresponding cutting force was measured using the strain gauge dynamometer coupled with an amplifier and was given as one of the input parameters for the ANFIS model to forecast the flank wear. The dynamometer data were acquired using a USB 6221M series, NI DAQ Card.

Step 2. Set the input and output parameters and MF.
An MF describes how every data in the input is drawn to a membership value between 0 and 1. Several MFs are used for modeling, including trapezoidal, triangular, piecewise linear, and Gaussian. The selection of MF is based on the nature of the problem and their experience. The triangular MF was used for the distribution of the input variable. The triangular membership function (trimf) was just a curtailed triangle. It is a straight-line MF and has the benefit of easiness. The number of data points should be larger than the number of tuning parameters; hence, the three MFs were considered for every input.

3.1.2. Input and Output Parameters

There are four input parameters for the ANFIS model: speed, feed, depth of cut, and CF. Cutting speed has a significant influence on tool life. When the cutting speed increases, the cutting temperature increases, increasing the flank wear [26]. The initial MF for speed is presented in Figure 5.

Control factors and CF were considered input parameters for predicting the tool wear during this study. The CF was increased when tool wear also increased. The CF produced during the metal cutting impacted the heat generation in the cutting zone, tool wear, machined surface quality, and workpiece accuracy [27, 41].

3.1.3. Output Parameter of the ANFIS

The response of the ANFIS is flank wear which is the gradual failure of the tool due to continuous contact with the workpiece during the machining operation. The flank wear was considered as output.

Figure 6 displays the fuzzy architecture of the ANFIS model where the triangular membership function was implemented. Figure 7 is the rule editor where all the rules were fed into the fuzzy system [42]. It consists of 81 fuzzy rules (4 input parameters with three membership functions). ANFIS architecture is shown in Figure 7.

Step 3. ANFIS model training with the given input data.
For the training of the ANFIS model, 14 sets (out of 20 sets—70%) of experimental data were selected, and the training was performed with the chosen ANFIS model. The epoch was regulated until the error reached <0.001 [7]. The ANFIS learning scenario for the prediction can be analyzed from Figure 8 with epoch 20. The average error was achieved as 0.00067123 mm.

Step 4. Testing of the ANFIS model with the experimental data.
The turning data sets (6 sets—30%) obtained from the experiments were used to test with the trained ANFIS model. The response values were loaded into the ANFIS GUI and tested across the parametric value. The user can use checking data and demo data to be loaded into the GUI and can be used for prediction. Testing data was applied to the developed ANFIS model and found an average error of 0.0074011 mm, shown in Figure 9. The blue circles were the actual data, and the red star was the predicted one with the same input parameters criterion.

Step 5. ANFIS model testing with experimental data.
The ANFIS model was tested with the experimental data to validate the accuracy of the model. The ANFIS can predict any value between this range. Finally, the output obtained from the ANFIS was compared with the experimental data obtained from the turning operation. The close assent displayed that the developed ANFIS can be employed to forecast flank wear. To assess the accuracy of the ANFIS model, the error Ei is defined using the following equation:

4. Modeling Using Convolutional Autoencoder

Convolutional auto encoder (CAE) is an unsupervised model with convolutional layers. CAEs are typically used to reduce and compress the size of the input dimension and extract robust features. CAE is distinguished from traditional autoencoders by convolutional layers. These layers stand out for their appealing ability to extract knowledge and learn the internal representation of data. CAE system comprises two convolutional neural network (CNN) models, the encoder and the decoder. The primary function of the encoder is to convert the original input data into a lower-dimensional latent representation. The decoder is in charge of reconstructing the compressed latent representation to generate output data. Training of the CAE is nearly identical to the standard ANN. The backpropagation method minimizes the cost function and the enhanced weight and bias matrix. The structure of the purported model is shown in Figure 10. The mean square error function (MSE) and cross-entropy loss function, which can define reconstruction error, are frequently used as the cost function in autoencoder training.

The model is built in Google Colab, a free Jupyter notebook environment used to implement the CAE. Colab is a free cloud-based service provided by Google, and the best feature of Colab is that no prior installation is required. Many data science and machine learning libraries are preinstalled in Colab, including Pandas, NumPy, TensorFlow, Keras, and OpenCV [43].

4.1. End-to-End-Framework

Unlike the conventional compression methods, the CAE is an end-to-end standard that combines compression and encoding methods. CAE model can persistently encode the input into small-size data by mapping the hidden layers without requiring signal transformation. Convolutional encoding (CE) and convolutional decoding (CD) are linked together during the training phase to learn mapping functions for compression and reconstruction. In CE, the input data is encoded into the compressed data as given by the following equation:

In the hidden layers, x is the input signal, y is the compressed data, is the weight, and b is the bias. In CE, f (.) signifies the compression mapping function. In CD, the compressed data y are reconstructed to form the initial signal x, as defined below.

In CD, is the weight, and b′ is the bias. The reconstruction mapping function is denoted by g(.). As a result, this end-to-end standard can condense the input to a small-scale set using the CE mapping function without an independent encoding method. Furthermore, the compressed data can be restored in CD to obtain the actual output, as shown in Table 2. It overcomes the compression quality limitation imposed by programmed expansion biases and mined parameters in conventional ways. The end-to-end model, operated through mapping functions in hidden layers, attempts to obtain adequate compressed data that recreate the actual data with minor errors.

4.2. Training

The training of the CAE takes place using the backpropagation technique and adjusting the parameters to decrease the loss functions based on a minibatch of training models given in equation (4). The batch is randomly chosen from the training dataset. Training can be accomplished by repetitions of the forward and backward pass.where N is the minibatch size; Dn is the nth input; F (·) is a function of CAE consisting CE and CD; and L is the loss function. The loss function (4) is known as the square loss, which is effective in regression analysis. Let φ be trainable matrix parameters and rules can be updated usingwhere η is the learning rate; is the gradient operator; and t is the -training step. Parameters, including batch size and the number of iterations, impact the accuracy. After training, CAE can be divided into CE and CD to accomplish compression and restoration. The tuning parameters like , , b, and are regulated in training to curtail the modification between the restored output and actual output to attain the optimal parameter settings.

4.3. Performance Evaluation

The evaluation criteria for assessing the proposed method’s reconstruction quality are mean squared error (MSE) and percentage error.(1)Mean squared error: the mean squared error (MSE) is the standard metric for assessing the performance of most regression algorithms. The less data there are, the smaller the aggregated error, MSE, as shown in(2)Percentage error: the percentage error is the difference between the actual and predicted values, as described in equation (7). It can be expressed as an absolute or relative error.

5. Results and Discussion

The analysis was carried out between the actual data and the prediction model that depends on the various input parameters such as cutting speed, feed, depth of cut, and CF. The various MF used in ANFIS modeling reports different results. Optimizing methods like BPNN and hybrid were employed to fine-tune the membership functions. Initially, modeling was performed with the “Gauss” membership function with BPNN and the hybrid optimization method. The hybrid optimization method performed better than BPNN.

A hybrid method comprises backpropagation for the MF parameters related to the input MF. It estimates the least squares for the MF parameters connected with the output MF, which is used to reduce the error values. The grid-based ANFIS structure performed better than the subtractive clustering-based ANFIS structure; hence, grid-based model was selected [40]. The training and testing error for various MF are presented in Table 3. From Table 3, it was found that “Gauss” MF performed better than other functions. The comparison of the actual and predicted tool wear values is given in Table 4.

The CF is a significant parameter to be examined in the machining processes to determine the machined component’s tool life, tool breakage, flank wear, and Ra. When the prediction value produced from the model is within the prescribed limit, the cutting tool is in satisfactory condition and can do the machining operation. If it exceeds the limit, the cutting tool is not in good condition, so it needs to be replaced. The CAE model was trained for data compression on 20 sets. Each value contains three measurements for training and three measures for validation. In the initial training phase, the model’s training error reduced from 0.0035 mm to 0.001 mm during the 25 iterations. The validation error reduced from 0.008 mm to 0.001 mm during the 25 iterations, and the training error and validation error for the trails are shown in Figure 11.

6. Conclusions

The turning of EN8 steel was performed in dry conditions to accelerate the tool wear. The CF and flank wear were measured during the turning operation. The DL model was developed with speed, feed, cutting depth, and CF signals to predict flank wear. Based on the investigational results, the subsequent conclusions have arrived.(i)Flank wear was mainly dependent on cutting speed and depth of cut.(ii)An increase in CF indicates an increase in tool wear. Hence, CF is used as an indicator.(iii)The hybrid optimization method performed better than BPNN in regulating the membership functions in ANFIS.(iv)Various MFs were used to train the ANFIS model, in which the grid-based structure with Gauss MF reveals the best minimum training and testing error.(v)Grid-based ANFIS structure performed better than subtractive clustering-based ANFIS structure.(vi)ANFIS model was used to predict the flank wear with the minimum and maximum average error of 0.602% and 5.77%, respectively.(vii)The overall prediction accuracy of the ANFIS model was 99.81% with the Gauss membership function.(viii)The average prediction error for ANFIS and CAE models is 4.131% and 5.273%, respectively.(ix)The CAE model flourishes the limitations of conventional neural networks, which arbitrarily initialize the weights of the network; hence, the proposed method can be efficiently used to predict the flank wear of the tool under various machining conditions.(x)Compared with the conventional backpropagation method, the proposed method is more appropriate for describing the hidden wear feature from the collected data and provides better prediction accuracy.(xi)In the future, the proposed method can monitor tool wear states online under different machining conditions. Therefore, this method is expected to be more widely used in tool wear monitoring in metal cutting processes.(xii)For other processes like milling and drilling, the model has to be trained with selected input parameters and used to predict the tool condition.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.