You are on page 1of 5

EngngApplic.Artif. lntell. Vol.7, No. 4, pp.

455-459, 1994
Copyright© 1994ElsevierScienceLtd
Pergamon Printed in GreatBritain. All rights reserved
0952-1976(94)00017--4 0952-1976/94$7.00+ 0.00

Brief Paper
An Expert System for Identifying Steels and Cast Irons
J. L . P E R E Z D E L A C R U Z
Universidad de M~ilaga, Spain

M . J. M A R T I
Universidad de Mfilaga, Spain

R. CONEJO
Universidad de M~ilaga, Spain

R. MORALES-BUENO
Universidad de M~ilaga, Spain

T, FERNANDEZ
Universidad de M~ilaga, Spain
(Received November 1993; in revised form February 1994)

This paper presents an application of Knowledge Engineering techniques to the problem of identifying
a steel or cast iron from a microphotograph. The essential aim of the implemented system is to help
metallography students in the task of learning the concepts relevant for identifying and classifying
steels and cast irons. The system has been developed and implemented by means of Knowledge
Engineering tools, and all the goals set up at the beginning of the project have been reached.

Keywords: Expert system, metallography, steel, cast iron, alloy, classification, teaching.

1. INTRODUCTION interaction with a knowledge-based system can facili-


tate the acquisition of domain knowledge for a novice.
The task of identifying a type of steel or cast iron either
That is the reason why an interdisciplinary team was
from its composition and thermal treatments, or from a
created, made up of metallographical experts and
microphotograph, is usually an important part of
computer scientists, to develop an expert system for
college metallography courses. ~'2 In fact, this task is of
such a task.
great practical importance, since in this way it is poss-
In the following section of this paper, the main
ible to foresee and explain the behaviour of an alloy
features of the domain and the target task will be
without resorting to costly testing.
presented. In Section 3, methodological aspects will be
Typically, a student works through many examples of
discussed, as well as the knowledge elicitation process,
microphotographs during half a semester to reach a
and in Section 4 the implemented system A C E so
certain degree of skill in this domain. Some examples
developed will be described. Finally, in Section 5 some
are printed in textbooks, but the best way to become
conclusions will be drawn from the work done.
familiar with them is by looking at a lot of samples
using a metallographical microscope. It is somewhat
difficult for the average student to grasp the knowledge 2. IDENTIFICATION OF STEELS AND CAST
needed to perform the identification task. On the other IRONS
hand, it is widely held that expert system technology
can be very useful for instructional tasks; e.g. the The essential metallographical problem addressed by
this project is the determination of the mechanical
features (breaking stress, resilience, Young module,
Correspondence should be sent to: Dr J. L. Perez de la Cruz,
Departmento Lenguajes y Ciencias de la Computacion, etc.) of an iron-carbon ( F e - C ) alloy without perform-
Universidad de M(daga, Plaza del Ejido, 29013 Malaga, Spain. ing any costly or destructive tests. An initial analysis
455
456 J.L. PEREZ DE LA CRUZ et al.: IDENTIFYINGSTEEL AND CASTIRON

microphotograph student-user

t ,eatures

IY <
I
expert system

Fig. 1. ACE basic identificationprocedure.

showed that this problem is posed in two very different --given the centesimal composition and the pro-
ways. cess followed, determine the mechanical proper-
First, there are identification problems arising from ties of the alloy. This problem can be solved in a
the knowledge of the alloy's composition, the tempera- number of different ways. For example, a simple
ture reached in the alloying process, the rate of cooling, rule-based system could perform the task;
etc. Since all the data are well structured and the --given the structural components of the alloy,
relationship between them and the mechanical proper- determine its mechanical properties. The solu-
ties is available in tables and abaci, this problem could tion is found in a similar way;
be solved by means of conventional programming tech- --given a microphotograph, determine the struc-
niques. However, it was integrated with the solution to tural components of the alloy. This problem
the other problem in the same expert system. cannot be addressed by conventional program-
The more interesting aspects of the identification ming techniques, and it is the more interesting
process arise from the other statement of the problem, problem from the artificial intelligence point of
namely when the problem is to identify the structural view. Therefore, the rest of the paper will be
components shown in a microphotograph, and deter- focused upon it.
mine the mechanical properties of the alloy from the
knowledge of these components. A microphotograph is Since the system's ultimate goal is a didactic one, the
a photograph obtained by means of a metallographical system must simulate the behaviour of a human expert
microscope (magnification ×50 to × 1000). A sample of when solving these kinds of problems. That is the main
the alloy is polished and treated with a reactive, and the reason why only heuristic techniques have been
surface is displayed or photographed. Usually the selected to develop and implement the system. Of
analysis starts by observing low-magnification (50-100) course, this does not mean that mathematical classifica-
pictures. From these pictures, the expert is able to tion techniques are not useful to carry out the steel and
identify which components are present and which kind cast iron identification, even if the task is very complex.
of Fe-C alloy is the one photographed. The properties The system that was finally selected for development is
of the alloy are then inferred from the conceptual, shown in Fig. 1, and can be specified as follows:
explicit metallographical knowledge. - - a novice human user (the student taking the
The problem is not a trivial one: there are many course) must extract the more relevant features
components possibly appearing in the same micro- from the microphotograph,
photograph, e.g. ferrite, cementite, perlite, austenite, - - a n expert system asks the user about the features
ledeburite, bainite, graphite flakes, etc. Even more, a in the microphotograph, processes the answers
single component can look very different in different and generates a final output identifying the
microphotographs. A review of the situation shows alloy.
that the problem is currently solved by human experts
in a heuristic fashion. To sum up, the subproblems The ultimate goal of the global system (user and
that compose the target task are the following: expert system) is to perform a pattern recognition or
J. L. PEREZ DE LA CRUZ et al.: IDENTIFYINGSTEELAND CASTIRON 457

identification task. However, a more exact denomina- transferring the knowledge from the expert to the
tion for the task carried out by the expert system is that system.
of heuristic classification. In fact, having left the (3) Prototyping. Some typical cases were selected,
feature-extraction task to the human user, the remain- and a first prototype was implemented for solving these
ing problem is a typical heuristic classification problem, cases. This stage ended with an evaluation of the
like the one described by Clancey3 or Chandrasekaran/ performance by the expert.
For this reason, expert-system technology is a good (4) Prototype refinement. More knowledge was
candidate for the implementation of the system. As added in order to solve all the problems in the specified
Chandrasekaran4 says, "a large fraction of those expert domain. A global evaluation by the expert was per-
systems that have reached some degree of exposure formed.
deal with some form of the classification problem".
Therefore, there are many development and program- The more interesting aspect of the methodology was
the knowledge-elicitation process. The most general
ming tools well suited to this paradigm.
technique of interaction between the knowledge engi-
neer and the problem-solving activity is given by the
3. METHODOLOGY AND KNOWLEDGE
structured interview, the interactions in the interviews
ELICITATION
are shown in Fig. 2. The knowledge engineer (KE)
The particular features of the problem, given by the plays the role of the intended final user, and the expert
interactions between expert system, student-user and (Ex) plays the role of the intended expert system. The
microphotographical material, required a certain deal KE can see the microphotograph (MP), but the Ex
of methodological inquiry finally yielding a suitable cannot. In this way, the Ex asks the KE questions about
methodology. The stages in the development of the the features in the MP until she reaches a positive
system were as follows: identification. The Ex also expresses the intermediate
conclusions she has reached. Besides this basic interac-
(1) Creation and tuning-in of the working team. At
tion, the KE has a more direct way to elicit the
this stage, the required skills and attitudes were shared:
knowledge, i.e. by means of questions to the Ex.
the knowledge engineer, by means of the study of the
However, the only permissible questions are of three
relevant bibliography ~'2 and informal interviews with
kinds:
the expert, acquired the basic terminology and con-
cepts of the domain; on the other hand, the expert-- (a) WHAT questions, i.e. questions about the
and client--perceived the basic features and limitations concrete visual meaning of a feature invoked
of current expert-system technology. by the Ex.
(2) Initial specification and definition of the know- (b) WHY questions, i.e. questions concerning the
ledge elicitation process. The members of the team relevance of an Ex's question.
specified the kind of consultation allowed the final user, (c) HOW questions, i.e. questions concerning the
and the broad outlines of the elicitation process for justification of an Ex's conclusion.

feature extraction

questionsabout
reasoning
questionsabout the mph.
\/

.~ identification

Fig. 2. Knowledgeelicitationin ACE.


458 J . L . PEREZ DE LA CRUZ et al.: IDENTIFYING STEEL AND CAST IRON

4. THE ACE SYSTEM


The final system is made up of 100 rules relating
about 60 parameters. The rules are grouped into 5
frames or subsystems. The system also comprises a
conventional database and a set of stored microphoto-
graphs, added to elucidate some questions. There are
one or two such images for each conceptual feature.
The model of consultation is the classical MYCIN
model; 5 therefore, the tool selected for the implemen-
tation is one based on this model, namely Personal
Consultant Plus from Texas Instrument. 6 The system
Fig. 3. Example of a microphotograph.
runs on a personal computer with at least 1 Mbyte,
colour monitor and V G A card.
The goal of the system is to give a value for the
By means of both kinds of interaction the KE elicits
three kinds of knowledge:
found-composition parameter. To accomplish this goal,
the sytem identifies the structural components, and to
(1) Features and concepts needed for the classifi- identify these, the system must search for certain
cation• features in the microphotograph. To sum up, it is a
(2) Heuristic rules used for the classification. backward-chaining, goal-driven reasoning process. All
(3) Relationship between conceptual features and the knowledge is compiled in rules. In example 1, one
visual features in the microphotograph. of the rules is shown. The rule detects the presence of a
structural component, namely "ferrite grain boundar-
All kinds of interactions and knowledge can be found
ies", when the sample exhibits certain features like
in the fragments below, corresponding to actual inter-
"presence of bright zones", "presence of dark zones",
views between Ex and KE (remarks in italics):
"dominance of dark zones", etc.:
Ex. Choose a microphotograph from the textbook.
IF B R I G H T AND D A R K AND M O R E - D - B AND
KE. Right. (This is the microphotograph of Fig. 3, one
B O R D E R AND LINES
of the simplest problems of this classification do-
THEN Z O N A C = F E R R I T E - B
main.)
Ex. Are there any bright zones in the microphoto- Example 1
graph? (Task 1: the concept or feature "bright
zone" is elicited.) In example 2, a rule is shown that defines a complex
KE. Yes. feature, namely the presence of scoriae, in terms of
Ex. Are there any dark zones, too? other observable features:
KE. Could you explain what you mean by "dark IF D A R K AND I N T E R I O R
zones"? (Task 3: it looks as ira novice user could THEN S C O R I A E
understand "dark zone" in several different ways,
in terms of the visual characteristics of the micro- Example 2
photograph.)
Notice that no uncertainty handling is needed in this
Ex. Yes, 1 mean black zones, or perhaps with differ-
system. In fact, the classification is always performed
ent gray nuances.
by the human experts in a certain, precise way.
KE. Then it's true, there are some dark zones.
Finally, it is the system user who determines the
presence or absence of observable features (task 3).
KE. What is the difference between the presence or
The relationship between features and microphoto-
the absence of these lines? ( W H Y question.)
graphs is elucidated by the user interface, a module of
E x . I am trying to identify which kind of component is
the system specially studied. In fact, taking into ac-
the bright zone: if there is at least one dark line,
count the didactic goal of the system, the user must be
there are ferrite grain boundaries, otherwise there
an active partner in the consultation, and his attention
are cementite grain boundaries. (Task 2: a heuris-
must be maintained during the session. To achieve this
tic rule of classification has been elicited.)
goal and make clear the meaning of the questions from
the system, an example of the feature asked for is
By means of these interviews, held over several provided as support with each question. The examples
months, the required knowledge was elicited, and are fragments of actual microphotographs selected
finally a consistent and complete set of rules was found from those appearing in a textbook. For example, Fig.
in order to classify the cases posed by the textbook. 4 shows the screen which depicts the concept verbalized
Some implementation details are explained in the fol- as "dark zones in grains of irregular size". A circle
lowing section. points to the example of the feature asked for. At the
J. L. PEREZ DE LA CRUZ et al.: IDENTIFYING STEEL AND CAST IRON 459

end of the session, if the identification of components textbook 1 (about 40) were presented to a coupled
has been partial and there are unidentified components user-expert system, a 100% success was obtained, i.e.
remaining, the system reports this fact to the user, who no microphotograph was misclassified or rejected. The
is invited to start again and pay m o r e attention to the user was the same in all the cases. In fact, the system is
questions. intended to be used during the next few years to
support the teaching of metallographical material.
5. C O N C L U S I O N S It would a p p e a r that some conclusions could be
extrapolated to a broader field. F r o m a basic A I
An artificial intelligence system can be evaluated perspective, the success clearly shows again the possibi-
from three different perspectives, 7 namely those of lities of this technology of structured interview plus
cognitive science, basic A I and applied AI. The work goal-driven consultation to solve these kinds of prob-
presented here falls into the field of applied A I whose lems in a teaching environment, and also in an indus-
criterion is, of course, performance. Regarding this trial one.
criterion, the final evaluation of the system was good.
W h e n all the microphotographs appearing in a
REFERENCES
........................................................................ )

1. Fernandez Gonz~tlez T. Metalografia de aceros y fundiciones.


Universidad de M~laga, Mfilaga (1988).
2. Guliaev A. P. Metalography. Mir, Moscti (1987).
qlP 3. Clancey W. J. Heuristic classification. Artif. Intell. 27, 289-350
(1985).
4. Chandrasekaran B. Expert systems: matching techniques to tasks.
In Artificial Intelligence Application for Business (Edited by
Reitman W.). Ablex, Norwood, N.J. (1986).
5. Buchanan B. G. and Shortliffe E. H. Rule-Based Expert Systems.
Addison-Wesley, Reading, Mass. (1984).
6. Texas Instrument. Personal Consultant Plus Reference Guide.
Austin, Tex. (1988).
1, t l t l l l ~ I n | [ [ ¢ ~ M I l ~ r l I l o ~ i e t ~ l ~ r ~1 c u r e r e~ lm o l ~ t ~ n d e ~ t t ~ . 7. Bundy A. What kind of field is AI? In The Foundations of
2, P a l m ~ I~rm c o n t t l m a r ~
Aritificial Intelligence (Edited by Partridge, D.). Cambridge
Fig. 4. Example of a help screen. University Press (1990).

AUTHORS' BIOGRAPHIES
J. L. Perez de la Cruz obtained his degrees in Engineering at the Polytechnical University of Madrid. R. Morales-Bueno
graduated in Mathematics at the Complutense University of Madrid and obtained his Ph.D. in Computer Science at the
University of M~laga. R. Conejo is currently performing his doctorla research. They lecture at the Department of Computer
Sciences and Languages, University of Malaga. Their current research focuses onto fuzzy systems and instructional and
engineering applications of AI.
M. J. Marti obtained a M.Sc. in Computer Science at the University of Malaga in 1992. As a graduate student, she cooperated
in the design and development of the knowledge engineering tasks presented in this paper.
T. Fermindez lectures on Metallography at the University of Malaga, where she also leads the Metallography section of the
Institute of Technical Development and Control. She has published two books and several papers on the subject.

You might also like