Sari WESIC2003 Paper
Sari WESIC2003 Paper
Sari WESIC2003 Paper
†
Middle East Technical University, Mechanical Engineering Department
Integrated Manufacturing Technologies Research Group-IMTRG, 06531, Ankara, Turkey
Email: burak@me.metu.edu.tr & e121259, engink@metu.edu.tr
Abstract
Machining parameters such as cutting speed, feed rate and depth of cut affect
the production rate, quality and cost of a component during a machining
operation. Selection of process parameters is traditionally carried out by
process planners or experienced machinists, either on the basis of their
experience on the shop floor or with the help of handbooks, for achieving the
desired surface quality on the component. In the past decade, process
planners have optimized the machining parameters using some optimization
algorithms. The optimization of machining parameters is a nonlinear
algorithm with constraints, so it is difficult for traditional optimization
algorithms to solve this problem because of the problems of convergence
speed or accuracy. Recently, process planners have started using artificial
intelligent techniques, such as neural networks, fuzzy logic and genetic
algorithms to select the machining parameters and have made some progress.
This paper presents a neural network model for CAPP to automatically select
machining parameters for rotational parts taking into consideration the
technological and economical constraints. A back-propagation algorithm is
used in the training of the network with more than 150 training patterns. The
applicability of the proposed model is illustrated by comparing the results
obtained for several samples with ones obtained from optimization model and
have shown good fit.
1 Introduction
In a Computer Aided Process Planning (CAPP) system, the machining parameters have to be
selected automatically. The approaches used in the existing computerized selection systems
for the machining parameters fall into one of the four categories, namely data storage and
retrieval, empirical method, expert system and mathematical modeling. The storage and
retrieval procedure requires a large amount of memory space for storing data, and the data it
provides are often too conservative and not optimal. The systems based on empirical
approaches reduce the data to an empirical form whereas the expert system approach uses the
stored data or the empirical equations along with a knowledge base [Shunmugam et al.,
2000]. The mathematical modeling is using optimization algorithms with constraints. It is
difficult for traditional optimization algorithms to solve this problem because of the
problems of the convergence speed and accuracy [Liu & Wong, 1999].
Recently, process planners have started using artificial intelligent techniques, such as neural
networks [Santoch & Dini, 1996], fuzzy logic [EL Baradie, 1997, Amaitik & Kilic, 2002]
and genetic algorithms [Shunmugam et al., 2000] to select the machining parameters and
have made some progress. In this paper, a neural network model for CAPP is proposed to
automatically select the machining parameters for rotational parts taking into consideration
the technological and economical aspects.
2 Neural Networks
Neural networks can be defined as a computing system made up of a number of simple,
highly interconnected processing elements, which process information by their dynamic state
response to external inputs. Neural networks are typically organized in layers. Layers are
made up of a number of interconnected nodes, which contain an activation function. Patterns
are presented to the network via the input layer, which communicates to one or more hidden
layers where the actual processing is done via a system of weighted connections. The hidden
layers the link to an output layer where the answer is output as shown in fig. 1.
A neural network is defined mainly by three features: topology, functionality and learning.
Topology refers to the number of nodes in each layer, and the way nodes are connected.
Functionality refers to the implemented activation function in each node. Learning refers to
the learning algorithm and the values of the learning parameters (e.g., learning rates, and
momentum rates) [Jain et al., 1999]. A neural network can be trained by presenting to the
network an appropriate number of examples, each of them formed by an input and output
vectors. By means of a training algorithm, the network self-learns the examples by
modifying step by step the connection weights in order to reduce as much as possible the
network error [Santochi & Dini, 1996]. Once a neural network is trained to a satisfactory
level it may be used as an analytical tool on other data. To do this, the user no longer
specifies any training runs and instead allows the network to work in forward calculation
mode only. New inputs are presented to the input pattern where they filter into and are
processed by the middle layers as though training were taking place, however, at this point
the output is retained and no learning occurs. The output of a forward calculation is the
predicted model for the data, which can then be used for further analysis and interpretation.
Selection of machining parameters such as cutting speed, feed rate and depth of cut affect the
production time, cost and quality of a product during a machining operation. Rational
selection of machining parameters cannot be achieved unless technical specifications,
limitations and economical aspects are taken fully into consideration. Moreover, the number
of input parameters makes this selection more difficult. Neural network can be used
effectively to select the required machining parameters. To verify the applicability of neural
network in this task, a fully connected multi-layer neural network has been designed as
shown in fig. 2. The network has six input neurons receiving the coded values of the material
hardness, surface finish, tool material (high speed steel and carbide), tool life, operation type
(rough and finish cut) and economic criteria (minimum production cost and time); the output
vector is formed by three elements corresponding to the cutting speed, feed rate and depth of
cut. In the selection of machining parameters, only tool carbon steel is considered as a
workpiece material.
Step 1 Set all the necessary network parameters such as the number of input neurons, the
number of hidden layers and the number of neurons included in each hidden
layer, the number of output neurons, etc.
Step 2 Set all network weights to small random values, positive and negative.
Step 3 Initialize the iteration (epoch) number and presentation (example) number.
Step 4 Apply one training sample to the input layer and note the corresponding desired
output.
Step 5 Calculate the output of the neurons layer by layer through the network, from input
to the output layer.
Step 6 Calculate the error gradient for every neuron in every layer in backward order
from output to the first hidden layer.
Step 7 Adjust the network weights starting from the output layer neurons working back
to the first hidden layer.
Step 8 Repeat actions in steps 4 to 7 for every training sample.
Step 9 Calculate the average sum-squared error resulted at the end of every training
cycle.
Step 10 Compare the average sum-squared error with the tolerance value of the error, if it
is less then stop. Otherwise, increase number of iterations and randomize the
order in the training set and return to step 4.
Several training experiments have been performed to select the optimal structure and training
parameters of the neural networks. In this work, the optimal structure of the designed
network, which gave minimum error, is summarized as follows: the input layer consists of 6
neurons, two hidden layers with 8 neurons each and the output layer consists of three
neurons. The learning parameters are 0.9 for momentum and 0.95 for learning rate. An
average error of 3x10-5 has been reached after the 160 training samples (selected for training
the designed network) have been presented to the network 15000 times. Figure 3 shows the
training progress of the network. The graph illustrates downward movement of the error rate
as learning progressed, indicating that the average error decreased between actual and
predicted results.
In fig. 4, the cutting speed values generated from neural network are plotted with the values
calculated using optimization model [Sari et al., 2002]. The results presented in fig. 4 show a
very good correlation between the cutting speed values calculated form the optimization and
those generated using neural network. This shows the applicability of neural networks in
machining parameters selection of automated process planning.
6 Conclusion
The neural network model proposed in this paper demonstrates the possibility of application
neural networks in CAPP systems to select machining parameters. The main advantages of
this application, in comparison with traditional approaches are outlined as follows: (1) fast
inference and high working efficiency, (2) Its ability to perform the new inference procedure
by training neural networks with new examples, and (3) Its adaptability to the dynamic
manufacturing environment, owing to efficient knowledge acquisition capability. Further
work in this research will include more workpiece and tool material combinations and
implementation of the model in a hybrid neural-fuzzy automated process planning system.
7 Acknowledgement
We would like to express our gratefulness and appreciation to the Turkish State Planning
Agency, Turkish Scientific and Technique Research Association and Graduate School of
Natural and Applied Sciences of METU for their support throughout this research.
8 References
Amaitik, S. M. & Kilic, S. E. (2002), Fuzzy logic model for selection of machining
parameters in CAPP", Annals of DAAAM 2002, 11-12.
Chao, P. & Hwang, Y.D. (1997), An improved neural network model for the prediction of
cutting tool life, Journal of Intelligent Manufacturing, 8: 107-115.
EL Baradie, M. A. (1995). A fuzzy logic model for machining data selection, International
Journal of Machine Tool & Manufacture, 37, 9: 1353-1372.
Jain, R.K., Jain, V.K & Kalra, P.K. (1999), Modelling of abrasive flow machining process: a
neural network approach, Wear, 231:242-248.
Liu, Y. & Wang, C. (1999). A modified genetic algorithm based optimization of milling
parameters, Advanced Manufacturing Technology, 15: 296-799.
Santochi, M. & Dini, G. (1996), Use of neural networks in automated selection of
technological parameters of cutting tools, Computer Integrated Manufacturing Systems,
9, 3:137-148.
Sari, B., Kilic, S.E, Anlagan, O, and Sen, D.T. (2002), Web-based optimization system for
machining operations, UMTIK 2002 The 10th International Conference on Machine
Design and Production, 259-278.
Shunmugam, M.S., Reddy, S.V. & Narendran, T.T. (2000), Selection of optimal conditions
in multi-pass face-milling using a genetic algorithm, International Journal of Machine
Tool & Manufacture, 40: 401-414.
Tsai, Y., Chen, J.C. & Lou, S-J. (1999), An in-process surface recognition system based on
neural networks in end milling cutting operations, International Journal of Machine
Tools & Manufacture, 39: 583-605.
Zhang, H.C. & Huang, S.H. (1995), Applications of neural networks in manufacturing: a
state-of-the-art survey, International Journal of Prod. Res., 33, 3: 705-728.