Tool wear monitoring using genetically-generated fuzzy knowledge bases

Tool wear monitoring using genetically-generated fuzzy knowledge bases

Engineering Applications of Artificial Intelligence 15 (2002) 303–314 Tool wear monitoring using genetically-generated fuzzy knowledge bases Sofiane Ac...

1MB Sizes 9 Downloads 93 Views

Engineering Applications of Artificial Intelligence 15 (2002) 303–314

Tool wear monitoring using genetically-generated fuzzy knowledge bases Sofiane Achichea, Marek Balazinskia, Luc Barona,*, Krzysztof Jemielniakb a

! Department of Mechanical Engineering, Ecole Polytechnique de Montr!eal C.P. 6079, succ. CV, Montr!eal, Qu!ebec, Canada H3C 3A7 b Faculty of Production Engineering, Warsaw University of Technology, Narbutta 86, 02-524 Warsaw, Poland

Abstract Fuzzy logic is an AI method that is being implemented in a growing number of different fields. One of these applications is tool wear monitoring. The construction of a fuzzy knowledge base from a set of experimental data by a human expert however, is a time consuming task, and hence, limits the expansion of the use of this AI method. Alternatively, the fuzzy knowledge base can be automatically constructed by a genetic algorithm from the same set of experimental data without requiring any human expert. This paper compares these two fuzzy knowledge base construction methods and the results obtained in a tool wear monitoring application. r 2002 Elsevier Science Ltd. All rights reserved. Keywords: Artificial intelligence; Fuzzy decision support system; Knowledge base; Tool condition monitoring; Genetic algorithm

1. Introduction Since tool wear has a direct effect on the quality of machined parts, on-line wear monitoring is one of the most important challenges in manufacturing. Tool wear influences a variety of machining phenomena and thus most monitoring systems use an easily measured parameter, such as the increase of the cutting force or other related quantities, as a basis for tool wear estimation (Byrne et al., 1995; Du et al., 1995; Jemielniak and Kosmol, 1995). Systems developed in laboratories are often multi-sensor groups embodying artificial intelligence (AI) methods in order to make a more reliable estimation of the state of the tool and consequently of the machined parts themselves (Byrne et al., 1995; Balazinski et al., 1994; Leski and Czogala, 1997). Usually a set of experimental tests involving different cutting conditions, e.g., different feed rate and depth of cut, is repeatedly performed on a typical part. During machining, the cutting and feed forces are recorded while the tool wear is manually measured after *Corresponding author. Tel.: +1-514-340-4711x4744; fax: +1-514340-5847. E-mail addresses: [email protected] (S. Achiche), [email protected] (M. Balazinski), [email protected] (L. Baron), [email protected] (K. Jemielniak).

each test. This experimental data is then cast into a knowledge base (KB) through a learning process. Finally, this KB is used by an AI method to predict tool wear. Among these methods, fuzzy logic (FL) systems, neural networks (NN) and neuro-fuzzy (NF) systems are the most frequently chosen, for this type of application (Leski and Czogala, 1997; Jemielniak, 1999; Monostori, 1993; Monostori, 1995). The aim of this paper is to compare performances of two FL-based monitoring systems relative to those of a NN-based system for application to tool wear estimation. The first FL system, called FL-MA, uses a KB manually constructed by a human expert from a set of experimental data, while the second FL system, called FL-GA, uses a KB automatically constructed by a genetic algorithm (GA) from the same set of experimental data. Many research works have been conducted concerning the automatic generation of fuzzy knowledge bases. Some of these have focused on different aspects of the automatic generation of fuzzy rules using GAs (Thrift, 1991; Diederich and Renaud, 1999; Hagras et al., 1999; Yuan and Zhuang, 1995; Valenzuela-Rendon, 1991; Janikow, 1995). Conversely, other works have focused on automatic generation of fuzzy sets with GAs (Valesco et al., 1997; Nomura et al. 1992). While very few have focused on simultaneous generation, a very simple GA was used for this purpose in Homaifar and

0952-1976/02/$ - see front matter r 2002 Elsevier Science Ltd. All rights reserved. PII: S 0 9 5 2 - 1 9 7 6 ( 0 2 ) 0 0 0 7 1 - 4

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

304

McCormick (1995). The GA used in this paper has been customized to achieve a KB that is accurate, yet simple in structure (small rule set and fuzzy set distribution). It has been developed by the authors at Ecole Polytechnique of Montreal (Baron et al., 2001). The GA tunes all the components of the KB, i.e. distribution and number of fuzzy sets, the fuzzy-rule base (the rules themselves) and the number of rules. The FL system, called FuzzyFlou, has been developed by the authors in collaboration with the Warsaw University of Technology. The experimental conditions of tool wear estimation are described together with the learning and operating conditions. Finally, performances and required resources are compared and discussed.

2. Monitoring systems Since tool wear monitoring requires multiple input information to predict the tool wear, this type of system can be cast into the class of multi-input and single output (MISO) systems. 2.1. Fuzzy logic system

k R ¼ alsoK k¼1 ðRMISO Þ;

RkMISO : if x1 is X1k and x2 is X2k and ? ð1Þ

where fXik gni¼1 denote values of linguistic variables fxi gni¼1 (conditions) defined in the following universe of discourse fXi gni¼1 ; and Y k stands for the value of the independent linguistic variable y (conclusion) in the universe of discourse Y: The global relation aggregating

ð2Þ

where the sentence connective also denotes any t- or snorm (e.g., min (4) or max (3) operators) or averages. For a given set of fuzzy inputs fXi0 gn1 (or observations), the fuzzy output Y 0 (or conclusion) may be expressed symbolically as: Y 0 ¼ ðX10 ; X20 ; y; Xn0 Þ3R;

ð3Þ

where 3 denotes a compositional rule of inference (CRI), e.g., the sup-4 or sup-prod (also denoted sup- * ). Alternatively, the CRI of Eq. (3) is easily computed as Y 0 ¼ Xn0 3?3ðX20 3ðX10 3RÞÞ:

ð4Þ

Usually, there are four variants of CRI: the P sentence connective also can be either 3 or sum ð Þ; the compositional operator is the supremum (sup) of either 4 or * ; denoted sup4 and sup * ; while the sentence connective and and the fuzzy relation are always identical to the second part of the latter. For the sake of brevity, all four P variants of CRI—i.e.: P 3-sup4-4-4; 3-sup * - * - * ; -sup4-4-4; and -sup * - * - * —are expressed as ( WK ) Y0 ¼

A rule-based approach to decision making using FL techniques may consider imprecise vague language as a set of rules linking a finite number of conclusions. The knowledge base of such systems consists of two components: a linguistic terms base and a fuzzy rules base (Balazinski et al., 1994). The former is divided into two parts: the fuzzy premises (or inputs) and the fuzzy conclusions (or outputs). For the sake of simplicity, we consider only non-symmetric triangular fuzzy sets on n inputs (called premises in this context) and sharpsymmetric triangular fuzzy sets on the single conclusion. The representation of such imprecise knowledge by means of fuzzy linguistic terms makes it possible to carry out quantitative processing in the course of inference that is used for handling uncertain (imprecise) knowledge. This is often called approximate reasoning (Zadeh, 1973). Such knowledge can be collected and delivered by a human expert (e.g. decision-maker, designer, process planner, machine operator). This knowledge, expressed by ðk ¼ 1; 2; y; KÞ a finite number of heuristic fuzzy rules of the type MISO, may be written in the form:

and xn is Xnk then y is Y k ;

all rules from k ¼ 1 to K is given as

k¼1

PK

supfxi AXi gni¼1 * t ð * t ðXn0 ; y; X20 ; X10 Þ;

k¼1

k k k k * t ðX1 ; X2 ; y; Xn ; Y ÞÞ;

ð5Þ

where * t ðÞ denotes the t-norm of ðÞ defined as either 4 or * : These variants of CRI mechanisms allow us to obtain different conclusions represented as the membership function Y 0 : Additionally, there are usually three defuzzification methods: the centre of gravity (COG); the mean of maxima (MOM); and the height method (HM). All the results P presented in this paper are obtained with the -sup * - * - * CRI and COG as defuzzification. As shown in Fig. 1, the fuzzy knowledge base, which is the heart of such a system, must be constructed either manually by a human expert, as described in Section 3.1, or automatically by a learning process like GA, as described in Section 3.1. 2.2. Genetic algorithm GAs are powerful stochastic optimization techniques that are based on the analogy of the mechanics of biological genetics and imitate the Darwinian survivalof-the-fittest approach (Baron, 1998). As shown in Fig. 2, each individual of a population is a potential FDSS Fuzzy-Flou KB. The method uses iterative improvement of individuals at each generation to converge toward multiple optima simultaneously. This evolutionary process operates directly on the genotype— i.e., the coded physical characteristics into bit string—of individuals rather than on its phenotype—i.e., the physical characteristics themselves. It is noteworthy that

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

305

Fig. 1. The learning paradigm of FDSS Fuzzy-Flou.

Population of Knowledge Bases KB1

GA

KB 2

KB 3

KBp

Reproduction

Natural Selection

Mutation

Evaluation

Data

optimization techniques show an exponential increase. Fig. 2 presents the encoding/decoding scheme as well as the four basic operations, i.e.: reproduction, mutation, evaluation and natural selection, of the developed GA learning software (Achiche et al., 2000). 2.2.1. Coding The genotype of a fuzzy KB is the coding of the fuzzy sets and rules into a bit-string: G  fGsets ; Grules g;

Fuzzy Monitoring System Fuzzification

New KBi i = 1 ... p

Inference Engine

ð6Þ

where Gsets and Grules are respectively the genotypes of the fuzzy sets and rules. Defuzzification

Fig. 2. The GA learning process of an FDSS Fuzzy-Flou knowledge base.

the coding of several parameters into bit strings is crucial in GA. When the number of unknown parameters increases, GA exhibits only a polynomial increase in the size of the search space, while the other

2.2.1.1. Fuzzy set coding. The FDSS Fuzzy-Flou allows the use of trapezoidal membership functions, as shown in Fig. 3. For the sake of coding simplicity, we consider only non-symmetrical triangular fuzzy sets for premises and symmetrical triangular fuzzy sets for the conclusion. Therefore the position of each fuzzy set is given as m1 ¼ m2 ¼ position of the summit, am and bm are set to reach the positions of the previous and next summit,

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

306

Premise P1 P2 1

Conclusions sets

1 : enable

1

1

1 1 0 1

2

0 1 1 1

510 1

2 3

1

3

0 : desable

4 5

?

Pointer to 6

Fig. 3. Fuzzy set; trapezoidal membership function.

K

while hm ¼ 1 (see Fig. 3). The size of these Gsets depends on the number of premises N; the number of fuzzy sets Ni on each premise i and the number of bits br allocated to specify the resolution on the position. For example, if br ¼ 4; the genotype of the fuzzy sets of premise i is given as 8 9 < = GXi  |ffl{zffl} ð7Þ 1001 |ffl{zffl} 1110 ? |ffl{zffl} 0111 ; : ; summit1 summit2

summitKi

where Ki is the number of fuzzy sets on premise Xi excluding the two summits located at the extreme values of each premise. The total size of Gsets is given as ! N X sizeðGsets Þ ¼ Ki br þ Ky br ; ð8Þ

7

K

8

Fig. 4. Fuzzy rule coding.

ability to survive natural selection. This reproduction is performed with a combination of the four following operators. 2.2.2.1. Simple crossover. The reproduction is mainly performed by crossing of the genotype of the parents, in order to obtain the genotype of two children. One of the techniques of crossover is shown in Fig. 5. This part of the mechanism is governed by an initiating probability p1 :

i¼1

where Ky is the number of fuzzy sets on the conclusion. However on the conclusion the number of fuzzy sets is equal to the number of the coded summits since the limits are also coded. 2.2.1.2. Fuzzy rules coding. The genotype of fuzzy rules must contain information about all the possible combinations connecting one fuzzy set on each premise to a fuzzy set on the conclusion. For N input premises and Ki fuzzy sets on premises, the maximum number of fuzzy rules K is computed as K ¼ ðK1 þ 2Þ ðK2 þ 2Þ ? ðKN þ 2Þ: ð9Þ As shown in Fig. 4, the fuzzy rules are coded as an ordered list of combination of the premises, each having an enable/disable bit, denoted e—0 for disable; 1 for enable—together with a conclusion fuzzy set number. Each rule string, i.e., 8 is coded into a 4 bit 9 < = Grules  |ffl{zffl} ð10Þ e101 |ffl{zffl} e111 ? |ffl{zffl} e011 : : ; rule1

rule2

ruleK

2.2.2. Reproduction mechanisms The evolution of the population is achieved by reproduction of the best individuals based on their

2.2.2.2. Fuzzy sets displacement. Displacement of the fuzzy sets is performed (with a probability p2 ) by randomly selecting a fuzzy set on a premise. The selected fuzzy set is then moved by one step of resolution toward the left or right, with an equal probability (see Fig. 6). This reproduction operator has the virtue of trying different fuzzy set repartitions, while decreasing the number of fuzzy sets by superimposing two or more of them. 2.2.2.3. Fuzzy-rules reduction. The reduction of the number of fuzzy rules is performed with a probability p3 given by p3 ¼ 1 p1 p2 :

ð11Þ

One of the K fuzzy rules is randomly selected and deactivated—the bit e is set to disable—as shown in Fig. 7. Obviously, this reproduction operator does not always generate a reduction in the number of fuzzy rules, but gradually works in that direction. The bias toward the reduction of the number of rules tends to produce small KBs. 2.2.2.4. Mutation. Mutation is a random inversion of a bit in the genotype of a new member of the population as shown in Fig. 8. Mutation makes it possible to try

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

307

Crossover site 1 Old generation (Parents)

0

1

1

0

0

0

1

0

1

0

1

0

1 1 1

Father chromosom

0 0 1

1

0

1

1

1

1 1

1

1

0

1

1

0

Mother chromosom 1

0

1

1

0

0

1

1

1

1

0

1

1

1

0

0

Boy chromosom

New generation (childs)

Girl chromosom

Fig. 5. Simple crossover of the genotypes of two parents.

Selected summit Displacement

Displacement

New position

New position

Step of resolution

Fig. 6. Fuzzy-sets displacement.

K fuzzy rules

Mutation site 1

1

1

2

2

Randomly selected

Deactivated fuzzy rule

fuzzy rule

0

1

0

1 1

1

0

Mutated gene 1 0

1

0

0

1

1

0

Fig. 8. Mutation of a genotype.

K

K

Fig. 7. Fuzzy-rules reduction.

completely different solutions. The probability of mutation p4 should be kept very small in order to give the other reproduction operators precedence for improving the population. This way of seeking completely different solutions allows the algorithm to jump out of a local optimum, and potentially fall into more promising regions.

2.2.3. Natural selection and evaluation The capacity of each KB to survive natural selection is measured by two objective functions. The first objective function, denoted f1 ; evaluates the capacity of a KB to approximate the set of experimental data, i.e. f1 

d eRMS ; d

min d  pmax Y pY ;

ð12Þ

where d is defined as the range on the conclusion Y and eRMS the root-mean-square error between the fuzzy

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

308

conclusion Yi computed with the FKB and the corresponding experimental conclusion yi ; for the N experimental data, i.e. sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi PN 2 i¼1 ðYi yi Þ : ð13Þ eRMS ¼ N The second objective function, denoted f2 ; evaluates the complexity of a KB through its number of active fuzzy rules, i.e., f2 

K na ; K

ð14Þ

where K is recalled to be the maximum number of fuzzy rules and na -the actual number of active fuzzy rules. In order to deal with these two contradictory objectives, a weighted sum of the two preceding objective functions is used, i.e., f ¼ wf1 þ ð1 wÞf2 ;

ð15Þ

where the weight w is usually set around 75%. The influence of o; p1 ; p2 and p3 are extensively discussed in Balazinski et al. (2000). Natural selection is performed on the population by keeping the most promising KB along a single fitness value. This is equivalent to using solutions that are closest to the optimum. In this work, the size of the population is kept constant at 100 KB (100 being the usual population size). At each generation, the reproduction produces 100 brand new KB and the 200 resulting KB ð100 þ 100 ¼ 200Þ are evaluated and ranked. The natural selection applies on the 200 KB by keeping the 50 best non-identical KB along with f and f1 ; for a total of 100 KB ð50 þ 50 ¼ 100Þ: The GA learning process is terminated after a specific time period, hence for each learning a pretest is run to set up

2.4

3. Knowledge base learning and results In this paper, tool wear, denoted VB; is estimated from n ¼ 3 input information, i.e.: the feed rate, denoted f ; the feed force, denoted Ff ; and the cutting force, denoted Fc : This choice of input variables is based on the following two observations (see Fig. 9): Force Ff is independent of f ; but rather depends on VB and the depth of cut, denoted d: Moreover, Fc depends on d and f ; while being only weakly dependent on VB: This relationships provides interesting opportunities to use f and the measurement of Fc to determine d; and the use of the measurement Ff to estimate VB without requiring d as input variable. Two sets of experimental tests were repeatedly performed until a tool failure occurred. Test W5 was devised for KB learning, while test W7 was used to verify the performances of the different monitoring systems. In order to simulate factory floor conditions, a typical part was machined on a conventional lathe under six different cutting conditions as shown in Fig. 10. The cutting speed of each operation was selected to ensure approximately the same rate of tool wear. Tool wear was manually measured after carrying out each cycle and the VB of each single cut was linearly interpolated. For each cut, f and Fc were measured using a Kistler 9263 dynanometer during 5 s intervals while the cut was executed. Since the inserts used in the experiments had a soft, cobalt-enriched layer of substrate under the coating, the tool life had a tendency to end suddenly after this coating wore through. In test W5, ten cycles were performed until a sudden rise of flank wear VB

Test W5

6 3

5 1

1.2

Fc (kN)

Fc (kN)

4

the maximum number of generations that will influence both learning time and accuracy.

2.4

0

0.1

0.2 0.3 VB (mm)

6 3 5

1.2

1

0.5

0.4

0

0.1

0.2

Ff (kN)

Ff (kN)

1.2 4 0.6

0.1

0.2

0.3 VB (mm)

0.4

0.5

0.4

0.5

6

1.2 4

0.6

1-3, 5 0

0.3

VB (mm) 6

0

2

2 0

0

Test W7 4

1-3, 5 0 0.4

0.5

0

0.1

0.2 0.3 VB (mm)

Fig. 9. Cutting force components vs. tool wear.

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

Fig. 10. Sets of cutting parameters.

occurred, reaching approximately 0:5 mm: In test W7, failure of the coating resulted in chipping of the cutting edge at the end of the 9th cycle; flank wear at this point was about 0:35 mm: The results of tests W5 and W7 are shown in Fig. 9. The approximation error of the monitoring systems is measured using the root-meansquare error sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi XN ðVBm VBe Þ2 Drms ¼ ; ð16Þ i¼1 N and the maximum error Dmax ¼ maxðVBm VBe Þ;

ð17Þ

where VBm and VBe are, respectively, the measured and estimated VB; and N is the number of patterns in the experimental test (i.e., N ¼ 71 for W5; and N ¼ 66 for W7). For the sake of comparison, the first FKB has been manually constructed by a human expert with the experimental data as described below. The second FKB has been automatically constructed using a GA with the same set of experimental. Finally, the results obtained with these two FKBs are compared with those of a neural network, as reported in Balazinski et al. (2002). 3.1. Manually-constructed fuzzy knowledge base A certain level of experience and expertise is required in order to manually develop a fuzzy knowledge base (FKB) from a set of experimental data since some conditions may be uncertain and incomplete, and hence must be estimated. Moreover, there is no systematic way to transform the knowledge of a human expert into a knowledge base of a FDSS system. The quality of the FKB depends on the quality of the data and the skills of the expert. The usual approach is to choose the number and location of the fuzzy membership functions on each premises and the conclusion, and then determine the fuzzy rules. If the membership functions are wisely chosen only a small number of fuzzy rules are usually needed.

309

The relationship between Ff and VB; as shown in Fig. 9, is roughly linear, and thus only two fuzzy sets are necessary on this premise. The same approximately linear relationship can be observed between Fc and VB; for each specific cut depth; 1.5 and 3 mm: Hence, only two fuzzy sets are necessary for these two premises as shown on the right of Fig. 11. It is noteworthy that the extreme values of the two fuzzy sets on premise f are 0.1 and 0:5 mm=rev; providing a wider range than was used in the experiments (i.e., 0.17 and 0:47 mm=revÞ: This widening of the feed rate range ensures that the monitoring system works properly in cases when shop floor feed rate values exceed the experimental range. There are a maximum of eight possible fuzzy rules with two fuzzy sets on three premises (i.e. 23 ¼ 8). From Fig. 9, test W5, the first fuzzy rule can be directly established as: If f is 0:1 mm=rev and Fc is 600 N and Ff is 300 N then VB is 0:1 mm: This is shown on the left side of Fig. 11. In such a rule, the fuzziness is expressed by the membership function. The strongest conclusions arise at the maximum degree of memberships of each premise (i.e., 0.1, 600 and 300, respectively). The conclusion value diminishes as the observations move away from their maximum degree of memberships. Problems occurred when the expert tried to define a second fuzzy rule because there was no experimental measure of VB for f ¼ 0:1 mm=rev; Fc ¼ 600 N and Ff ¼ 1600 N: However it was possible to extrapolate the actual measurements up to an Fc ¼ 600 N: In this case we obtained an approximate value of VB ¼ 0:9 mm: Obviously, this value of VB does not have any physical meaning. It only serves to complete the integrity of the FKB. As shown for the fuzzy rules 3 and 7 of Fig. 11, the VB can even be negative for this purpose. Once all the fuzzy rules are defined, the expert can perform a tuning of the location of the fuzzy sets on the premises together with a revision of the fuzzy rules themselves with the aim of reducing the approximation errors. The complexity of this tuning process depends on the number of fuzzy sets and rules. For a simple FKB only minor adjustments should be necessary. In our case here, the location of the conclusion fuzzy set of the fuzzy rule 2 was moved from VB ¼ 0:9 to 0:88 mm: Fig. 11 shows a screen printout of the software Fuzzy! Flou developed at Ecole Polytechnique de Montre! al and the Technical University of Silesia in Gliwice with the manually-tuned FKB. On the left side, the fuzzy rules in numerical and linguistic forms are presented. On the right side, the fuzzy sets are shown on the three premises. One can see an example of VB estimation for the following inputs: f ¼ 0:24 mm=rev; Fc ¼ 750 N and Ff ¼ 270 N: A crisp value (centre of gravity of two weighted conclusions VB ¼ 0:1 and 0:24 mm) of estimated VB is 0:118 mm: The performance results of the FL-MA system are presented in Table 1. A large value of Dmax results from

310

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

Fig. 11. Screen printout of the manually constructed knowledge base.

Table 1 Drms of the three AI methods

AI method Neural network FL-MA FL-GA

3.2. Genetically-constructed fuzzy knowledge base W5 (training)

W7 (testing)

Drms (mm) 0.015 0.024 0.02

Drms (mm) 0.029 0.034 0.037

chipping of the cutting edge, and therefore the answer of the FL-MA should not be considered erroneous. Without this last result Dmax is 0.056 mm and Drms is 0:034 mm: Unlike the NN, which is a kind of black-box, the FKB presented above is transparent and understandable. Nevertheless, the manual construction of the FKB requires knowledge and experience, which cannot always be expected from a machine tool operator. Therefore, FL in its pure form is not recommended for small batch production, but rather for mass production where some operations are carried out repeatedly over an extended period of time; at least several months.

A genetic algorithm can be used to automatically generate the FKB from the same set of experimental data (test W5). The GA uses a set of probabilities (i.e., p1 ; p2 ; p3 ; p4 ) in order to control the occurrences of the different reproduction operators. Obviously, a different set of values drive the GA toward an FKB with different behaviours. Moreover, changing the weight o between the two contradictory objectives f1 (approximation error) and f2 (number of fuzzy rules) produces FKBs with completely different behaviours. The value of weight (called o) used at each iteration of the learning process, is generally different from the one used at the end of the learning process to select the final FKB (called os ). Four FKB have been automatically constructed from test W5 with the following parameters: * * * *

Run Run Run Run

1: 2: 3: 4:

o ¼ 0:80; o ¼ 0:80; o ¼ 1:00; o ¼ 1:00;

p1 p1 p1 p1

¼ 0:85; ¼ 1:00; ¼ 0:85; ¼ 1:00;

p2 p2 p2 p2

¼ 0:13: ¼ 0:00: ¼ 0:13: ¼ 0:00:

It is noteworthy that o ¼ 1:00 puts all the emphasis on the approximation accuracy, while o ¼ 0:00 puts the

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

emphasis on a reduction in the number of fuzzy rules. The other parameters are fixed as follow: * *

p4 ¼ 0:05: os ¼ 1:00:

The operator must define the maximal limits of complexity of the desired FKB. These limits are chosen for this problem as: * *

a maximum of 7 fuzzy sets on each premise; a maximum of 8 fuzzy sets on the conclusion.

As a result, the maximum number of fuzzy rules is given as: 7 7 7 ¼ 343: As shown in Table 2, Drms and Dmax

Table 2 Drms and Dmax errors for training and testing sets of data Number of fuzzy rules

Run 1 Run 2 Run 3 Run 4 20

W5 (training)

W7 (testing)

4

28

38

Drms (mm) 0.041 Dmax (mm) 0.110

0.040 0.110

0.050 0.170

0.020 0.070

Drms (mm) 0.040 Dmax (mm) 0.090

0.050 0.140

0.064 0.170

0.037 0.100

311

are both acceptable; note that several runs (learning) with identical evolution parameters converge to the same KB, similar to the results obtained by the neural network for the two experiments (W5 and W7). The Dmax is slightly high because of the last measurement of VB; as was also noticed with the other systems. The time of the execution is around 14 min for each run (on Pentium II-350 Mhz), which makes the method very attractive for factory floor use. The best approximation accuracies are obtained in Run 4; both Drms and Dmax are relatively low and in the same range as those obtained by the neural network method. However, the FKB requires 38 fuzzy rules. Conversely, Run 2 provides an FKB with only 4 fuzzy rules with of course a higher approximation error. It is noteworthy that as many as 38 fuzzy rules are still manageable by a human expert. Recall that this number of fuzzy rules has been reduced by the GA from the maximum of 343 fuzzy rules.

4. Comparison and remarks All three AI methods used to estimate tool wear give satisfactory results. There is a slight difference in the

Fig. 12. Knowledge base obtained for Run 1.

312

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

Fig. 13. Knowledge base obtained for Run 4.

approximation errors depending on the set of control data used (W5 and W7). The testing set (W5) is approximated with a lower level of error, which was predictable since it is the set used for training. An interesting observation can be made from the automatically constructed FKB (see Table 2). Even if Run 4 gives the best approximation error, since Drms is lowest for W7, the difference between the Drms of W5 and W7 increases with the complexity of the FKB. Run 1 and 2 are the simplest, providing less fuzzy rules than runs 3 and 4, which are more complex (see Table 2). This can be explained by a too close approximation of the training set (essentially the case in Run 4) that leads to the generation of a specific FKB, rather than a model that can be used for other sets of data. Figs. 12 and 13 show respectively the knowledge bases corresponding to Run 1 and 4. If a fuzzy knowledge base has to be selected from the four runs, Run 4 would be an obvious choice since it provides the lowest Drms (an error near to those provided by the two other methods—FL-MA and NN— see Table 1). However, it is more interesting to use the results of Run 1 instead of the others since it offers a better balance between simplicity and accuracy of the FKB. We can also notice

Fig. 14. Tool wear vs time for training values.

it’s stability, as the Drms stays at the same value for W5 and W7. Run 2, which gives the simplest FKB, is not reliable, since it uses a small number of fuzzy rules, leaving an important part of the input domain uncovered by fuzzy rules (lack of information), even thought it provides good results for both sets of data (W5 and W7). Such a small amount of fuzzy rules remains a risky choice.

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

313

Acknowledgements Financial support from the Natural Sciences and Engineering Research Council of Canada under grants of RGPIN-203618 and RGPIN-105518 is gratefully acknowledged.

References

Fig. 15. Tool wear vs time for testing values.

As shown in Figs. 14 and 15, all three monitoring systems give similar and acceptable results for the prediction of tool wear from a measure of the three premises.

5. Conclusion The three monitoring systems are equivalently accurate. Important differences remain in their internal structures which are irrelevant for the operator. However, a major difference in their usage is a critical factor. The construction of an FKB necessitates skills and expertise. The operator has to analyze the dependence of Fc on VB; which means that the results of preliminary experiments have to be presented to the operator in a convenient and understandable form. This makes FL systems rather difficult for practical implementation in their manual form. However, this problem can be solved by using a GA to automatically construct the FKB. The operator no longer has to analyze the experimental data. He only needs to setup the maximum level of complexity he wants to consider. This can even be pre-set in order to avoid such interaction if desired. The learning time of the FL-GA method is the shortest among the three methods, making it particularly convenient for shop floor uses. Moreover, one can specify the maximum level of complexity (as the maximum number of fuzzy rules) together with how much emphasis the GA must place on the increase of approximation accuracy versus the reduction of the complexity level. Finally, the FKBs are transparent and understandable KBs—which makes them easier to tune—relative to the black-box, where the NN stores the KBs. The error levels obtained by the NN are slightly lower than those provided by FL-GA, however the FL-GA is more stable when results are compared between the training set W 5 and the testing set W 7: This is a definite advantage for practical applications since the FL-GA provides more generality to the KB.

Achiche, S., Balazinski, M., Baron, L., 2000. G!en!eration automatique par un algorithme g!en!etique de bases de connaissances pour un syst"emes d’aide a" la d!ecision. Proceeding of the Third International Conference on Integrated Design and Manufacturing in Mechanical Engineering, Montreal, Canada, May 2000. Balazinski, M., Bellerose, M., Czogala, E., 1994. Application of fuzzy logic techniques to the selection of cutting parameters in machining processes. Fuzzy Sets and Systems 61, 301–317. Balazinski, M., Achiche, S., Baron, L., 2000. Influences of optimization and selection criteria on genetically-generated fuzzy knowledge bases. (ICAMT2000) International Conference on Advanced Manufacturing Technology, Johor Bahru, Malaysia, August 2000, pp. 159–164. Balazinski, M., Czogala, E., Jemielniak, K., Leski, J., 2002. Tool condition monitoring using artificial intelligence methods. Engineering Applications of Artificial Intelligence, 15 (1), 73–80. Baron, L., 1998. Genetic Algorithm for line extraction. Rapport ! technique EPM/RT-98/06, Ecole Polytechnique Montr!eal. Baron, L., Achiche, S., Balazinski, M., 2001. Fuzzy decisions system knowledge base generation using a genetic algorithm. International Journal of Approximate Reasoning 28 (2–3) 25–148. Byrne, G., Dornfeld, D., Inasaki, I, Ketteler, G., Teti, R., 1995. Tool condition monitoring (TCM)—The status of research and industrial application. Annals of the CIRP 44 (2), 541–567. Diederich, J., Renaud, F., 1999. A Fuzzy classifier using genetic algorithms for biological data. Proceedings of the Eighth International Conference of the North American Fuzzy Information Processing Society—NAFIPS, New York, BEE, pp. 680–684. Du, R., Elbestawi, M.A., Wu, S.M., 1995. Automated monitoring of manufacturing process. Journal of Engineering for Industry Part 1 & 2 117, 121–141. Hagras, H., Callaghan, V., Colley, M., Carr-West, M., 1999. A fuzzygenetic based embedded-agent approach to learning & control in agricultural autonomous vehicles. Proceedings of the 1999 IEEE International Conference on Robotics & Automation, Detroit, Michigan, pp. 1005–1010. Homaifar, A., McCormick, E., 1995. Simultaneous design of membership functions and rule sets for fuzzy controllers using genetic algorithms. IEEE Transactions on Fuzzy Systems 3 (2), 129–139. Janikow, C.Z., 1995. A genetic algorithm for optimizing fuzzy decision trees. Proceedings of the Sixth International Conference on Genetic Algorithms, San Francisco, pp. 421–428. Jemielniak, K., 1999. Commercial tool condition monitoring systems. International Journal of Advanced Manufacturing Technology 15, 711–721. Jemielniak, K., Kosmol, J., 1995. Tool and process monitoring-state of art and future prospects. Scientific Papers of the Institute of Mechanical Engineers and Automation of the Technical University of Wroclaw, Vol. 61, pp. 90–112. Leski, J., Czogala, E., 1997. A new fuzzy inference system with moving consequents in if-then rules, Application to pattern recognition. Bulletin of the Polish Academy of Sciences 45 (4), 643–655. Monostori, L., 1993. A step towards intelligent manufacturing: modeling and monitoring of manufacturing processes

314

S. Achiche et al. / Engineering Applications of Artificial Intelligence 15 (2002) 303–314

through artificial neural networks. Annals of CIRP 42 (1), 485–488. Monostori, L., 1995. Connectionist and neuro-fuzzy techniques in manufacturing. The First World Congress on Intelligent Manufacturing, pp. 940–949. Nomura, H., Hayashi, I., Wakami, N., 1992. A self-tuning method of fuzzy reasoning by genetic algorithm. Proceedings of the International Fuzzy Systems and Intelligent Control Conference, (IFSICC’92), Lousiville, KY, pp. 236–245. Thrift, P., 1991. Fuzzy logic synthesis with genetic algorithms. Proceedings of the Fourth International Conference on Genetic Algorithms, San Diego, CA, pp. 509–513. Valenzuela-Rendon, M., 1991. The fuzzy classifier system: a classifier system for continuously varying variables. Proceedings of the

Fourth International Conference on Genetic Algorithms, San Diego, CA, pp. 346–353. Valesco, J.R., Lopez, S., Magdalena, L., 1997. Genetic fuzzy clustering for the definition of fuzzy sets. Proceedings of the Sixth IEEE International Conference On Fuzzy Systems, FUZZ IEEE, Barcelona, Vol. III, pp. 1665–1670. Yuan, Y., Zhuang, H., 1995. Using a genetic algorithm to generate fuzzy classification rules. In Proceedings. Third European Conference on Intelligent Techniques and Soft Computing (EUFIT’95), Aachen, pp. 458–462. Zadeh, L.A., 1973. Outline of new approach to the analysis of complex systems and decisions processes. IEEE Transactions of Systems, Man and Cybernetics 3, 28–44.