Research Article  Open Access
Prediction of Surface Roughness When End Milling Ti6Al4V Alloy Using Adaptive Neurofuzzy Inference System
Abstract
Surface roughness is considered as the quality index of the machine parts. Many diverse techniques have been applied in modelling metal cutting processes. Previous studies have revealed that artificial intelligence techniques are novel soft computing methods which fit the solution of nonlinear and complex problems like metal cutting processes. The present study used adaptive neurofuzzy inference system for the purpose of predicting the surface roughness when end milling Ti6Al4V alloy with coated (PVD) and uncoated cutting tools under dry cutting conditions. Real experimental results have been used for training and testing of ANFIS models, and the best model was selected based on minimum root mean square error. A generalized bellshaped function has been adopted as a membership function for the modelling process, and its numbers were changed from 2 to 5. The findings provided evidence of the capability of ANFIS in modelling surface roughness in end milling process and obtainment of good matching between experimental and predicted results.
1. Introduction
Ti6Al4V alloy is an important super alloy being subjected to diverse applications in the biomedical, aerospace, and chemical industries because of its properties and features such as high specific strength, high corrosion resistance, and good performance at high temperatures. However, since it has certain features such as its chemical reactivity, low thermal conductivity (this reduces heat dissipation from the cutting zone), high strength and hardness, and its low modulus of elasticity which make it more flexible than metals such as steel, Ti6Al4V alloy is regarded to be difficult to machine [1, 2]. Therefore, choosing the cutting parameters for end milling alloys such as this is considered as a critical process. High quality products at a reasonable cost have been increasingly demanded or required, which has compelled manufacturers into fierce competition. Thus, to evaluate the quality of products, it is important to consider surface finish as an important factor in such evaluation. The purpose of using surface roughness () as an index is mostly to determine the surface finish in the machining process. In classifying modeling techniques for the prediction of , there are three major categories, namely, experimental models, analytical models, and artificial intelligence (AI) based models [3]. Development of the first two categories or groups is possible to be carried out by using conventional approaches such as the statistical regression technique. However, for developing the last category, AIbased models, nonconventional approaches such as the artificial neural network (ANN), fuzzy logic (FL), and genetic algorithm (GA) are usually used for this purpose [4]. In manufacturing, the importance of the milling process comes after turning in the ranks, and there is a possibility of creating and producing complex geometry by using the end milling process [5]. Milling is stated to be different from turning in that it is considered as a multiple cutting point process which is categorized into slab, face milling, and end milling. It comes in one of two modes either up or down. Moreover, the surface finish generated in milling significantly impacts or affects a material’s fatigue resistance and functional performance. Surface roughness is also regarded as a product quality index, and it is sometimes demanded in product specifications [6].
As displayed in Figure 1, interconnected parameters such as tool wear, cutting speed, feed rate, and radial and axial depth of cut, are found to significantly affect the surface roughness of a machined part [8]. Figure 2 shows the major areas for surface roughness prediction which have been used as the basics upon which research has been founded, and they include design of experiments, processes, materials, and artificial techniques. Thus, it is expected that developing a realistic model for predicting this performance measure will assist researchers to reduce machining time and costs. Recent research has provided evidence of the ability of AIbased models in modelling cutting processes.
One of those AIbased models as prove by such recent research is adaptive neurofuzzy inference system (ANFIS), which, as feature, combines the merits of fuzzy knowledge and function approximation of neural networks [10, 11]. It is stated that neural network is able to deal with imprecise data and can obtain lowlevel computational features, whereas fuzzy logic can provide researchers with highlevel cognitive features and deal with some issues like natural language processing and approximate reasoning [11]. Based on previous research, the nonlinear relationship existing between input and output parameters in neural networks has not been revealed so far and cannot be accessed by the user, and, therefore, the importance of ANFIS is recognized as it can be used to overcome such weakness [12]. In study by Dweiri et al. [13] which aimed to model the down milling for predicting surface roughness of Alumic79, the researchers employed ANFIS. They used two and four flutes, and findings revealed that the optimum value of surface roughness could be obtained using four flutes. In predicting workpiece surface roughness when end milling AA 6061 heat treatable aluminum alloy, Lo [14] used the same system, ANFIS, and the study involved 48 experiments for training and 24 for testing. It was found that obtaining high prediction accuracy was achieved when triangle membership function was used.
Göloğlu and Arslan [15] carried out a study for prediction of the surface roughness of milled 40CrMnNiMo864 alloy steel using zigzag motion for the fourflute cutter. First, the researchers developed three artificial models, namely, genetic programming (GP), artificial neural networks (ANN), and adaptive neurofuzzy inference system (ANFIS) models and then compared them. The experiments were designed by using Taguchi’s orthogonal arrays. The best results were gained by using GP model with good accuracy. For modelling the surface roughness in end milling, Ho et al. [16] made integration of the ANFIS with hybrid Taguchigenetic algorithm, learning algorithm by using Lo’s experimental results [14]. The purpose was to test reliability of the proposed hybrid approach. In comparing their method with other previously reported ones in the literature, the researchers revealed their proposed method was slightly accurate than the others. In a study conducted by Uros et al. [17], the ANFIS model was proposed for the purpose of predicting flank wear using cutting force signal generated in end milling of Ck 45 and Ck 45 (XM) alloys using trapezoidal and triangular membership functions. Findings showed that there was a good consistency found between the experimental results and the ANFIS model. Dong and Wang [18] applied the ANFIS model with leaveoneout crossvalidation method for prediction of surface roughness using also Lo’s experimental results [14]. Based on a comparison between other literatures results and the results obtained by them through the ANFIS clustering method, the researchers gained better accuracy by using the proposed method than the others did. However, the deficiency of previous research is that no study has aimed to model the surface roughness of milled Ti6Al4V super alloy under dry cutting conditions by using the ANFIS, and this is a part of the contributions expected to be offered by the current study to this particular research area.
2. ANFIS Architecture
This section provides an illustration of the basic architecture of the ANFIS and its learning algorithm for the Sugeno fuzzy model. Assuming that the fuzzy inference system consists of two inputs and and one output , for an initial order Sugeno fuzzy model, the followings expressing a typical rule set with two fuzzy ifthen rules are taken into account [9, 14]: Rule If ( is ) and ( is ), then: Rule If ( is ) and ( is ), then: ,where , , , , , and represent the linear parameters, and , , , and symbolize the nonlinear parameters. As displayed in Figure 3, the corresponding equivalent ANFIS architecture is composed of five layers, namely, a fuzzy layer, a product layer, a normalized layer, a defuzzy layer, and a total output layer. Thus, the following subsections provide more detailed description of the functionality of each of these layers.
2.1. Layer 1: Fuzzy Layer
(i)Let be the output of the th node of layer 1.(ii)Every node in this layer is recognized as an adaptive node with a node function as follows: where represents the input to node and refers to the linguistic label (small, large, etc.) which is related to this node function. In other words, , reflects the membership function of and gives specification of the degree to which the given satisfies the quantifier . The most commonly used membership functions are bellshaped and the Gaussian membership functions.(iii)The bellshaped membership function is given by where the parameter is usually positive. The parameter provides a location of the centre of the curve.(iv)The Gaussian membership function is expressed as follows: (v)The parameters in layer 1 are referred to as the premise parameters.
2.2. Layer 2: Product Layer
(i)Each node in this layer has a prod norm operator which is used as a node function.(ii)This layer makes a synthesis of the information transmitted by layer 1, makes multiplication of all the incoming signals, and sends the product out.(iii)The output of the product layer is given by (iv)Each node in this layer functions as a measure of strength of the rule.(v)The output of this layer acts as the weight functions.
2.3. Layer 3: Normalized Layer
(i)Each node in this layer makes normalization of the weight functions gained from the previous product layer.(ii)Thus, in computing the normalized output for the th node as the ratio of the th rule’s firing strength to the sum of all rules’ firing strengths, this process can be expressed as follows:
2.4. Layer 4: Defuzzy Layer
(i)The nodes in this layer are adaptive in nature.(ii)For computing the defuzzified output of this layer, the following formula is used: where , , and refer to the linear or consequent parameters of the corresponding node .
2.5. Layer 5: Total Output Layer
(i)The single node in this layer provides a synthesis of the information transmitted by layer 4, and it also brings back the overall output using the following fixed function: where .
The ANFIS employs a twopass learning algorithm, namely, forward pass and backward pass. In the first type of pass learning algorithm, no modification of the premise parameters is conducted or carried out; what has to be done is computing the consequent parameters using the least squares estimate learning algorithm. In a similar way, in the backward pass, there is no modification of the consequent parameters, but the process of computing such premise parameters is done by using the gradient descent algorithm. Based on these two learning algorithms, ANFIS adapts the parameters in the adaptive network. From the architecture, it is evident that the overall output of the ANFIS can be represented as a linear combination of the consequent parameters as In the forward pass, the movement of the signals follows forward direction till layer 4 and the consequent parameters are computed, while, in the backward pass, the error rates are propagated backward and the premise parameters are updated by the gradient descent method.
3. Experimental Work
As previously stated, in order to be able to perform its task, an adaptive neurofuzzy inference system (ANFIS) needs inputoutput training patterns. The current study used or adopted the experimental work conducted by Elmagrabi [1] to examine the capability of an adaptive neurofuzzy inference system (ANFIS) in predicting surface roughness when end milling Ti6Al4V alloy with PVD and uncoated carbide cutting tools under dry cutting conditions. Elmagrabi’s study [1] was about developing mathematical models of tool life, resultant cutting forces, and surface roughness in the present study, through integrating BoxBehnken design of experiments with response surface methodology (RSM). This is based on the assumption that a comprehensive overview can contain all the factors which affect the output response by using RSM. Furthermore, this method makes use of a minimum number of experiments, thus is characterized as a money and timesaving method. Such sets of experiments could cover the problem investigated in the present study.
Table 1 shows the cutting conditions including the cutting speed (m/min), feed rate (mm/min), and depth of cut (mm). Each cutting condition was coded with low, medium, and high levels to cover the problem domains and investigate its effect on surface roughness. The radial depth of cut was maintained constant at 8 mm.

The adoption of a BoxBehnken design in the present study was conducted based on [1]. By doing so, Elmagrabi [1] combined a factorial design of experiments with RSM because of these reasons: the first reason is that such kind of experimental design does not need or require many points of design and it is regarded as a design which costs less than central composite design by using almost the same number of factors; the second reason is that this type of design does not have axial points, and, therefore, there would not be simultaneous setting of all cutting parameters levels at higher levels and all the design points would be located in the safe operating zone. Moreover, in using this design, only five design points were replicated so that the effects and interactions among the three independent cutting parameters could be investigated. Putting what was mentioned above into application, 17 data sets were created based on this design of the experiments. The experimental data were divided into two sets: one set for training (Table 2) and the other for testing or checking (Table 3). As displayed in Figure 4, Cincinnati Milacron Vertical CNC Milling Machine (model Sabre 750 with Acramatic 850 SX) was used for the purpose of machining Ti6Al4V alloy. In carrying out the milling process, it was conducted under dry cutting conditions by using PVD (TiAlN) coated and uncoated carbide cutting tools. The mechanical features of Ti6Al4V alloy and tool geometry are provided in Tables 4 and 5, respectively. The current study adopted the arithmetic surface roughness (), and its measurement was conducted on the machined surface which was parallel to the feed motion with a portable surface roughness tester (Mpi Maher perthometer model) as displayed in Figure 5.




Measuring the arithmetic surface roughness (), was carried out online with a portable surface tester, and its measurement was taken after each pass. To obtain the values of the machined surface, the surface roughness values have been averaged at three locations on the centre path of the work piece width. In order to calibrate the instrument, the setting of the roughness width cutoff based on the roughness value expected was needed or required. Selection of the width cutoff was done as 0.8 mm, and the failure criterion for the tool was maintained at 6 μm surface roughness.
4. Result and Discussion
Like any AI techniques, the ANFIS model requires two different sets of data: training data sets and testing data sets. The present study made use of or utilized the experimental data shown in Table 2 in the training phase, whereas the experimental data of Table 3 was used in the testing phase. Figure 6 displays the flow chart of training of ANFIS. The study used the architecture of ANFIS which adopted a generalized bellshaped function as shown in Figure 7. As it is noticed, this architecture consisted of 8 fuzzy rules.
In carrying out the training process, the researcher chose the generalized bellshaped (gbell) function as a membership function being numbered as 2, 3, 4, and 5 to show its impacts on the prediction accuracy. Epochs were changed from 50 up to 1000. 160 ANFIS models were developed for two cases, that is, coated and uncoated cutting tools, and selection of the best models was carried out based on the minimum root mean square error in the testing phase. After the training and testing phases were accomplished, only six models was chosen and each three models were chosen for evaluating the model for each case. Tables 6 and 7 present the ANFIS parameters for each model.


Based on recommendation or suggestions by previous review, the stepsize profile was made in a form or shape of a curve in that it increased at first, then, reached some maximum point, and finally decreased for the rest of the training. It was gained through tuning the initial step size and the increase and decrease of rates.
As shown in Tables 8 and 9, the predicted results obtained from the experiments of the three ANFIS models for both PVD coated and uncoated cutting tools are presented. Findings revealed that, in general, the experimental and predicted results for all six models in the training phase matched each other well.


The minimum root mean square error (RMSE) was used as a criterion for selecting the best two models for coated and uncoated tools among the six ones, and the results concerning the different values of the RMSE for the six models are presented in Table 10.

According to the above results, the minimum RMSE for PVD cutting tool is 0.2412 (Model A) while the minimum RMSE for uncoated tool is 0.1030 (Model A). Therefore, based on these values, the two models were selected as the best ANFIS models in prediction surface roughness using coated and uncoated cutting tools.
Figures 8, 9, and 10 display the results concerning the membership functions of the model A in the pretraining and posttraining stages for three input parameters, namely, cutting speed, feed rate, and depth of cut, respectively. The findings provided evidence of a huge change occurred to the membership functions of feed rates, but the change in those of the depth of cut was slight. Such results imply that the feed rate is the factor which most significantly affects the surface roughness when using coated tool followed by depth of cut.
(a)
(b)
(a)
(b)
(a)
(b)
Figures 11, 12, and 13 displayed the results concerning the effect of those factors on the surface roughness, and as shown in Figures 9–11, the highest effect on the surface roughness was exerted by the feed rate when using uncoated carbide cutting tool to machine Ti6Al4V alloy. Closely looking at the results presented in Table 2 and the ANFIS results, it can be summed up that the most significant effects on the surface roughness were exerted by feed rate followed by depth of cut. In obtaining good surface finish, both the feed rate and depth of cut should be at level (−1) and cutting speed at level (), respectively. Such important findings are consistent with the findings obtained by Elmagrabi [1]. It is clear from Tables 2 and 3 that the surface roughness values of the milled Ti6Al4V alloy are different for the two cutting tools. The reasons beyond that difference return to the fact that the insert type has significant effect on surface roughness in addition to cutting conditions and other parameters. Moreover, the TiAlN coated layer which acts as dry lubricant for the PVD coated insert resulted in good surface finish especially at low feed rate and high cutting speed. On the other hand, the high surface roughness values for uncoated insert, are probably due to pronounced chipping, flaking of the sharp edge.
(a)
(b)
(a)
(b)
(a)
(b)
Figures 14 and 15 display the results obtained through the best two models in the training phase, respectively. The most effective and best matching training phase and minimum RMSE in testing phase were given by the two models. Figures 16 and 17 show the scatter diagram for the measured and predicted results in training phase for coated and uncoated cutting tools. Based on these findings, a good agreement between the experimental and predicated values was evidently proven and the data followed 45° line.
5. Conclusion
The present study examined the application of the ANFIS in prediction of the surface roughness when end milling Ti6Al4V alloy with coated and uncoated cutting tool under dry cutting conditions. Among many ANFIS models that have been developed and tested in the current experimental work, only two models were chosen as the best models in making prediction of the surface roughness generated through the cutting process. The findings showed that Model A with gbell membership function and 50 epochs obtained a minimum RMSE of 0.2412 for the PVD coated tool. However, the same model with the same membership function and 100 epochs obtained a minimum RMSE of 0.1030. Although the data sets used for training and testing in the present study were lower than those used in other previous studies, the study obtained good results, thus providing evidence of the efficient use of such models in predicting the surface roughness.
Abbreviations
ANFIS:  Adaptive neurofuzzy inference system 
GP:  Genetic programming 
ANN:  Artificial neural network 
RSM:  Response surface methodology 
RMSE:  Root mean square error 
:  Inputs of the ANFIS 
:  Output of the ANFIS 
, and :  Linear parameters 
, and :  Non linear parameters 
:  Output of the th node 
:  Output of the th node 
:  Membership function of the inputs 
:  Normalised weight function of normalised layer 
:  Output of defuzzy layer 
:  Output of the output layer. 
References
 N. H. E. Elmagrabi, End Milling of Titanium Alloy Ti6Al4V With Carbide Tools Using Response Surface Methodology, Universiti Kebangsaan, Bangi, Malaysia, 2009.
 J. Sun and Y. B. Guo, “A comprehensive experimental study on surface integrity by end milling Ti6Al4V,” Journal of Materials Processing Technology, vol. 209, no. 8, pp. 4036–4042, 2009. View at: Publisher Site  Google Scholar
 P. G. Benardos and G. C. Vosniakos, “Prediction of surface roughness in CNC face milling using neural networks and Taguchi's design of experiments,” Robotics and ComputerIntegrated Manufacturing, vol. 18, no. 56, pp. 343–354, 2002. View at: Publisher Site  Google Scholar
 A. M. Zain, H. Haron, and S. Sharif, “Prediction of surface roughness in the end milling machining using artificial neural network,” Expert Systems with Applications, vol. 37, no. 2, pp. 1755–1768, 2010. View at: Publisher Site  Google Scholar
 T. Erzurumlu and H. Oktem, “Comparison of response surface model with neural network in determining the surface quality of moulded parts,” Materials and Design, vol. 28, no. 2, pp. 459–465, 2007. View at: Publisher Site  Google Scholar
 P. Benardos, “Predicting surface roughness in machining: a review,” International Journal of Machine Tools and Manufacture, vol. 43, no. 8, pp. 833–844, 2003. View at: Publisher Site  Google Scholar
 V. Dhokia, S. Kumar, P. Vichare, and S. Newman, “An intelligent approach for the prediction of surface roughness in ballend machining of polypropylene,” Robotics and ComputerIntegrated Manufacturing, vol. 24, no. 6, pp. 835–842, 2008. View at: Publisher Site  Google Scholar
 A. K. M. N. Amin, A. F. Ismail, and M. K. Nor Khairusshima, “Effectiveness of uncoated WCCo and PCD inserts in end milling of titanium alloyTi6Al4V,” Journal of Materials Processing Technology, vol. 192193, pp. 147–158, 2007. View at: Publisher Site  Google Scholar
 S. sumathi and S. Paneerselvam, Computational Intelligence Paradigms Theory and Applications Using MATLAB, Taylor & Francis, Boca Raton, Fla, USA, 2010.
 J. S. R. Jang, “ANFIS: adaptivenetworkbased fuzzy inference system,” IEEE Transactions on Systems, Man and Cybernetics, vol. 23, no. 3, pp. 665–685, 1993. View at: Publisher Site  Google Scholar
 S. N. Sivanandam and S. Deepa, Introduction to Neural Networks Using MATLAB 6. 0, Tata McGrawHill, Delhi, India, 2006.
 U. Zuperl, F. Cus, B. Mursec, and T. Ploj, “A generalized neural network model of ballend milling force system,” Journal of Materials Processing Technology, vol. 175, no. 1–3, pp. 98–108, 2006. View at: Publisher Site  Google Scholar
 F. Dweiri, M. AlJarrah, and H. AlWedyan, “Fuzzy surface roughness modeling of CNC down milling of Alumic79,” Journal of Materials Processing Technology, vol. 133, no. 3, pp. 266–275, 2003. View at: Publisher Site  Google Scholar
 S. Lo, “An adaptivenetwork based fuzzy inference system for prediction of workpiece surface roughness in end milling,” Journal of Materials Processing Technology, vol. 142, no. 3, pp. 665–675, 2003. View at: Publisher Site  Google Scholar
 C. Göloğlu and Y. Arslan, “Zigzag machining surface roughness modelling using evolutionary approach,” Journal of Intelligent Manufacturing, vol. 20, no. 2, pp. 203–210, 2008. View at: Publisher Site  Google Scholar
 W.H. Ho, J.T. Tsai, B.T. Lin, and J.H. Chou, “Adaptive networkbased fuzzy inference system for prediction of surface roughness in end milling process using hybrid Taguchigenetic learning algorithm,” Expert Systems with Applications, vol. 36, no. 2, pp. 3216–3222, 2009. View at: Publisher Site  Google Scholar
 Z. Uros, C. Franc, and K. Edi, “Adaptive network based inference system for estimation of flank wear in endmilling,” Journal of Materials Processing Technology, vol. 209, no. 3, pp. 1504–1511, 2009. View at: Publisher Site  Google Scholar
 M. Dong and N. Wang, “Adaptive networkbased fuzzy inference system with leaveoneout crossvalidation approach for prediction of surface roughness,” Applied Mathematical Modelling, vol. 35, no. 3, pp. 1024–1035, 2011. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2013 Salah AlZubaidi et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.