A Case-Based Mechanical Redesign System
Proceedings of the Eleventh International Joint Conference on Artificial Intelligence. Knowledge Representation. Pages 1402-1406.
© 1989 International Joint Conferences on Artificial Intelligence
Abstract
We present a system, FIRST, that redesigns structural beams by accessing a case memory of solution plans. FIRST starts by analysing an existing design, using general knowledge about elementary physics. If design constraints are unsatisfied, FIRST searches for similar problem situations in its case memory and retrieves the solution plans associated to those situations. The system performs a transfer by analogy of each plan into the new problem situation and combines the transferred plans and symbolic analysis knowledge into a global redesign plan that is applied to the problem. FIRST is implemented in BB1, a blackboard system that allows the cooperation of problem solving knowledge from different sources. The system, that includes general methods for transferring a plan by analogy and mapping parts of it into a new problem situation is described through the analysis and redesign of a round cantilever beam.
- [Howe et al., 1987] Howe A. et al. Dominic: A Domain Independent Program for Mechanical Engineering De- sign International Journal for AI in Engineering,p. 23-28, January 1987.
- [Mittal et al., 1986] Mittal S., Dym, C.L., Morjaria, M. PRIDE : An Expert System for the Design of Paper Handling systems. Computer, p. 103-114 July 1986.
- [Brown et al., 1986] Brown, D.C., Chandrasekaran, B. Knowledge and Control for a Mechanical Design Ex- pert System. Computer, p. 93-100, July 1986.
- [Mittal et al. , 1986] Mittal, S., Araya, A. A Knowl- edge Based Framework for Design, Proceedings, AAAI 1986 Conference, p. 856-865, 1986.
- [Murthy and Addanki, 1987] Murthy, S. Addanki, S. PROMPT: An Innovative Design Tool Proceedings, AAAI 1987 Conference, p. 637-642, 1987.
- [Cagan and Agogino, 1988] Cagan, J ., Agogino, A. In- novative Design of Mechanical Structures from First Principles. Working Paper, Dept of Mechanical Engi- neering, U.C. Berkeley, 1988.
- [Daube and Hayes-Roth, 1988] Daube, F., Hayes-Roth, B. FIRST, A Case-Based Reasoning System in the BB1 Blackboard Architecture Proceedings, AAAI Workshop on Case-Based Reasoning 1988.
- [Hayes-Roth, 1986] BB1 User's Manual KSL Report 86~61, Stanford University, 1986.
- [Hayes-Roth et al., 1986] Hayes-Roth, B. et al PRO- TEAN: Deriving protein structure from constraints. Technical Report KSL 86-51, Stanford University, 1986.
- [Tommelein et al., 1987] Tommelein, I.D. et al. SIGHT- PLAN, A Blackboard Expert System for Construction Site Layout. Expert Systems in CAD Conference, Syd- ney, 1987.
- [Carbonell, 1983] Carbonell, J .G. Derivational Analogy and its Role in Problem Solving. AAAI 1983 Proceed- ings p. 64-69, 1983
- [Hammond, 1986] Hammond, K. CHEF, A Model of Case-Based Reasoning. AAAI 1986 Proceedings
- [Navinchandra, 1988] Navinchandra, D. Case Based Reasoning in CYCLOPS, a Design Problem Solver (working document).
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Mechanical design is the process of going from a set of specifications to a physical artifact meeting those spec ifications. It is a very underconstrained process whose complexity has been pointed out in previous research [Howe et al., 1987], [Mittal et al., 1986]. Mechanical design rarely starts from first principles. Rather, an ex isting artifact is often modified until it meets the design specifications. Problems in which the structure of the redesigned artifact remains fixed throughout the modi fication process belong to the category of routine design problems.
The knowledge to modify a particular design is tradi tionally encoded as rules or even plans that are instan tiated during the solution process. More recent develop ments such as PROMPT [Murthy and Addanki, 1987] or 1 'tPRINCE [Cagan and Agogino, 1988] have focused on Barbara Hayes-Roth Stanford University 701 Welch Road Stanford, California 94304
*The research described in this paper has been supported by a grant of Mrs Gruner-Schlumberger to Etudes et Produc tions Schlumberger, Clamart, France, by the Center for In tegrated Facilities Engineering at Stanford, Nffi grant 5P41RR-00785, DARPA contract N00039-86C-0033
the ability to derive routine and non-routine modifica tions by performing a symbolic analysis of the behavioral equations describing the design.
Another possibility is to derive the modifications from similar cases. In a designer's memory, these cases rep resent the knowledge acquired on similar projects and make the difference between the expert and the novice designer. This redesign knowledge is naturally expressed by plans. Plans are attractive because they potentially embody all the knowledge required to successfully mod ify an artifact.
Our work investigates the potential of a case-based ap proach to mechanical design. To serve that purpose, we have built a system that uses a case memory of past prob lems and solution plans to redesign structural beams.
Beam analysis is interesting for various reasons. First, its theory is well established and amenable to some rea soning from first principles, thus providing the ground for comparison with other recent work [Murthy and Ad danki, 1987], [Cagan and Agogino, 1988]. Second, it allowed us to focus on a single object or physical sub system. Finally, the domain still bears significance in Mechanical Engineering projects.
This paper briefly describes the analysis capabilities of FIRST, presents the fundamental assumptions of our case-based reasoning approach and describes the imple mentation by working through the analysis and redesign of a round cantilever beam.
2 Overview of the System
FIRST solves problems defined by a set of input vari ables describing a beam, and a set of design constraints to be satisfied. Input variables specify a particular de sign and constraints specify particular relations between variables.
FIRST is given a preliminary design and its goal is to satisfy the design constraints of that design. The system does not use an objective function to assess the quality of a particular design; hence acceptance is made solely on the satisfaction of the design constraints.
FIRST starts by an analysis phase in order to evaluate the constraints (section 4). Its analysis module embodies general knowledge about elementary physics and allows it to evaluate the effect of modifications applied to the design.
When some of the constraints are violated, FIRST
builds a redesign plan from a library of past plans and problems. The system uses a metric to identify the prob lems that have some similarity (section 6) and transfers their associated redesign plan into the new problem situ ation (section 7). The system combines each transferred plan into a global redesign plan that is applied to the design under consideration (section 9). The actions sug gested by the plan that seem irrelevant to the current problem situation are eliminated by building a depen dency graph from the behavioral equations describing the artifact and heuristic information within the taxon omy of domain concepts (section 7). The system stops applying the redesign plan when all design constraints are satisfied. FIRST's overall flow of control and plan application chart are sununarized in figure 1.

3 Measuring Similarity
The system organizes its knowledge of beam analysis around a taxonomy that defines each of the concepts of the domain. Concepts include. the vocabulary to describe beams, loadings, materials, as well as problem types and constraint types. Domain concepts may have particu lar attributes, that are also defined as concepts in the taxonomy. As we shall see now, the position of a con cept and of its attributes in the taxonomy provides the foundation for the case-based reasoning capability of the system.
One basic requirement of our approach is the ability to measure the degree of similarity between concepts in cluded in the taxonomy. Our system defines the distance between two concepts A and B by the number of u-a links between those in the type hierarchy and the clos est analog of a concept by the one having the smallest distance to it. The instance most similar to the instance diam1 in figure 2 would then be either ydim1 or zdim1, both located at a distance of 4 links from diam1.
When the information coming from the position of concepts in the taxonomic hierarchy is not adequate or sufficient, our system can refine its approach by measur ing the similarity between their attributes, also defined as concepts. We define the distance between two lists of domain concepts by the sum of the minimum distance between individual members of the lists, minimally dis tant members being removed from the lists at each step. This distance is used to assess the similarity between lists of attributes.

4 Analysis
The system's initial goal is to check the design con straints. Their validity may depend on variables com puted by the equations describing the structure's behav ior. The analysis module applies its knowledge about physical principles to derive this set of equations. It is also used to propagate the effect of design modifications to the system of behavioral equations, and instantiate particular domain specific constraints about beam de sign. The implementation of the analysis module is be yond the scope of this paper which focuses on the case based reasoning capabilities of the system, but further details can be found in [Daube and Hayes-Roth, 1988].
In our example, FIRST is given the description of the round cantilever beam, presented in figure 3, in terms of its design variables (in typewriter fonts).

FIRST is also told to satisfy the following constraints:
- Weight: W ~ w1
- Diameter: Diam1 ~ D1
- Max Stress: MSTRESS ~ Yield-Strength(Katerial1)
- Environment: H2S(Corrosive)
At the end of the analysis phase, FIRST has generated a behavioral model, whose principal equations are :

O'em is the equivalent (von-mises) stress within the struc
I is the inertia of the cross-section lp is the polar inertia of the cross-section ture.
After the analysis has been completed, the system checks for the satisfaction of the constraints. In our example, the maximum equivalent stress in the structure is found to exceed the yield strength of the material. In addi tion, the material, steel, is found unacceptable for the corrosive environment. FIRST then decides to access its memory of past problems in order to modify the struc ture and eventually satisfy its design constraints.
5 Redesign Options
5.1 Symbolic Analysis
When violated constraints involve simple equations, symbolic analysis provides an efficient way of deriving changes to the structure. We have implemented such a symbolic analysis module to propose qualitative modi fications in simple cases of non-conflicting constraints. Too often though, conflicting constraints, evinced by contradicting suggestions from the analysis module pre vent such an approach. Our system then relies on its case memory to derive relevant modification steps.
5.2 Redesign Plans - Redesign Language
Case-based reasoning applies earlier experience of similar situations to help solve new problems. Our system fo cuses on the use of past plans rather than past solutions and in that aspect exemplifies Carbonell's derivational analogy [Carbonell, 1983]. A solution plan consists of an ordered set of actions that represent the various steps that lead to a successful solution in a particular case.
Several stages can be distinguished in the generation of a redesign plan using case-based reasoning:
An access phase which identifies the cases in memory that present useful similarities with the current problem. A transfer phase where the plans corresponding to the cases selected in the access phase are transferred by anal ogy in the current problem situation.
A mapping stage in which similarities and differences between each case selected from memory and the current problem situation are identified. We shall see in the next sections that this step is performed as the plan is being applied to the structure.
Our decision to work on plans prompted the need to express solution plans in a high level, declarative and simple fashion. To that purpose, we developed a lan guage framework that incorporates a type hierarchy of design actions and the translation of the high level ac tions into low level LISP statements. Using this lan guage, modification steps are concisely expressed by an action verb followed by relevant design variables or do main concepts. Figure 4 provides a view of FIRST's action hierarchy. For example, the action sentence increase diam1, which tells the system to increase monotonically the variable diam1 would result upon ap plication into LISP statements that implement those modifications. Complete plans are then defined by an ordered set of action sentences.

6 Case Access
FIRST has a case memory of solution plans from which particular plans can be retrieved and instantiated into a new problem. The case memory is indexed by the physical nature of the problem and the associated type of constraints and constraint status (satisfied/violated). The system's metric selects analogous cases in memory based on the similarity between the violated and satis fied constraints of the current problem and the violated and satisfied constraints associated to the cases in mem ory. The result of that phase is a list of useful cases along with the violated constraints of the current prob lem they address. Note that this is no more than a goal indezing method since the system's goal is to satisfy all its violated constraints.
In our example, FIRST's metric does not find any case addressing both violated constraints, but identifies a rectangular simply-supported beam that includes a max imum stress constraint and a pinned round beam in tor sion to address a similar environment constraint. Those structures are presented in figure 5.

'T Case Transfer and Mapping
After potentially useful cases (source cases) have been identified in memory, their corresponding solution plans need to be adequately transferred into the new prob lem domain, while actions irrelevant to the new problem should be eliminated.
An additional problem arises from the fact that if the transfer takes place before the start of the redesign pro cess, some design variables referred to by a plan in mem ory might not have any equivalent yet in the new prob lem. We shall see that the system addresses this issue by delaying as much as possible the transfer of design variables from one problem to another.
7.1 Plan 'l'l'ansfer
The transfer of a plan occurs by parsing each of its lan guage sentences and transferring each design variable of the problem in memory into its closest analog in the new problem. Section 3 presents the method for transferring variables.
This approach, which does not modify problem independent concepts, does not suffice for action sen tences such as change-type instance-A to type-B, which relate an instance to a class. For such action sen tences, the system identifies the transformation leading from concept A to B thru the links of the type hierarchy and characterizes each individual transformation along the links by the list of attributes created or deleted. The closest analog of the action sentence in the new problem will then transform the closest analog of instance-A, instance-A' into type-B' such that the distance be tween lists of created and deleted attributes at each step in both problems is minimal (section 3).
This way, the sentence : change-type cross-section2 to hollow-rectangular-cross-section
gets translated into: change-type cross-section! to hollow-circular-cross-section by identifying the transformation that lead from cross-section2 to hollow-rectangular-cross-section in the case prob lem and following the most similar one in the type hierar chy of the new problem, starting from cross-sectionl. The concepts referred above are included in the type hi erarchy of figure 2.
7.2 Delayed 'l'l'ansfer and Action Elimination
Accessing the case memory takes place at the beginning ofthe solution process; at that time some of the concepts in a past plan, which might have been created during the solution process may not have proper equivalents in the new problem. We have designed the transfer mechanism so that the transfer of a concept is performed only when the action that refers to it is considered for execution. This late commitment strategy maximizes the number of analogous candidates when a variable is being transfered from a past case into a new problem situation.
Not everything is useful in a past plan; some of the actions suggested by a plan in memory might have noth ing to do with the goals of the new problem. FIRST has a mechanism to assess the relevance of each action to the current goals. Recall that case solutions were retrieved from memory with the constraints they ad dressed. FIRST evaluates the influence between each of the design variables referred to in its action sen tences and ·the violated constraints addressed by the plan. The system scans the variables involved in the violated constraints and builds for each of those a de pendency gmph based on the behavioral equations (de rived in the analysis phase). If any of the variables re ferred to in the action sentence appears in any of the dependency graphs, the action is assumed to be rele vant to the case. Thus, the dependency graph is used to decide whether some variable might have some in fluence on a violated constraint. If no relation can be found between the variables referred to in the action sentence and the violated constraints addressed by the plan, the action is discarded. However, this approach is not sufficient for those design variables that do not appear in any equations, such a cross-section for ex ample. The system then uses particular links in its tax onomy of domain concepts to assess the influence of a particular variable on a set of others. In our domain, the concept cross-section has a named link 'affects' to the concept cross-section-properties, expressing the fact that any change in cross-section will affect the cross-sectional properties. Assessing the relevance of actions is the mapping stage of our system, since it establishes the amount of similarity between a case in memory and the current problem situation.
8 Combining Plans: The Blackboard Model
Our implementation needed a way to take into account the cases selected from memory and knowledge coming from its symbolic analysis module.
FIRST is implemented in BB1, a blackboard system that has been applied to the domain of protein struc ture derivation [Hayes-Roth et al., 1986] and the layout of civil engineering sites [Tommelein et al., 1987]. BB1 supports knowledge-based problem solving by means of a global database (the blackboard) that records the evolv ing solution and of independent knowledge sources that contribute to the solution. Knowledge sources become executable during the solution process, posting action proposals on the system's agenda. The system selects among the actions in its agenda according to its current control strategy. A control strategy can roughly be de scribed as a set of functions that rate the actions posted on the agenda. A description of the control capabili ties of BB1 is provided in [Hayes-Roth, 1986]. In our blackboard model, a plan is simply expressed by a set of knowledge sources, each of which implements a particu lar action.
The blackboard model lends itself to the kind cooper ative problem solving needed to take into account knowl edge from symbolic analysis and selected cases in mem ory. The symbolic module, implemented in a knowledge source posts particular action proposals on the agenda; knowledge sources from the selected cases also post ac tion proposals. The system then selects among those according to its global control strategy, which we implemented as the summation of the ratings provided by each of the control strategies of the selected cases.
9 Plan Application Example
After the behavioral equations have been built, violated constraints identified and analogous cases selected, we illustrate the redesign of our cantilever beam in figure 6.
The first actions on the agenda are the initial actions from the round rod and rectangular beam plans (rrl, rbl), transferred into the current problem situation and one action coming from symbolic analysis. The action suggested by the round rod plan is considered irrelevant and discarded, by application of the dependency graph technique described in the previous section. Namely, the dependency graphs do not show any relation between the design variable diamLproblem2 and the violated con straint environment that the plan retrieved from the round rod case is addressing (figure 6).

The action suggested by the symbolic analysis mod ule is rated higher by the control strategy inherited from both plans because it implements a simple routine mod ification. It is then selected for execution and the diam eter of the beam is increased, until the maximum weight of the beam is reached. Next, the second action trans ferred from the round rod plan (rr2) is selected (it is also a routine modification) and the system changes the material of the beam from steel to nickel...alloy, satisfy ing the environment constraint. At this point, there are only conflicting constraints left (maximum stress, max imum weight) and no routine changes can be suggested by the plans or the analysis module. The system then selects a non-routine modification step coming from the rectangular beam plan (rbl) and transforms the circular beam into a hollow circular one, also adding from its do main knowledge of hollow beams a fabrication constraint that limits its external diameter. As a result of this modification in the structure of the beam, the analysis module updates the behavioral equations of the struc ture (modified inertia, section, weight). The next action selected, derived from the rectangular beam plan (rb2) then suggests to increase both the internal and external diameter of the beam. This step is performed until the fabrication constraint gets .violated. Again, there are no routine changes to choose from; the system selects the action coming from the rectangular beam plan (rb3) that calls for converting the circular beam into an 1-beam, for which the behavioral model gets appropriately modified (analysis module). At that point, there are no more ac tions in the plan and the solution process is stopped. Figure 7 describes the modifications of the design as the plan is applied.

10 Status
The analysis module currently includes knowledge about beams of circular cross-section in bending, torsion and compression, rectangular and !-beams in bending and compression. Boundary conditions implemented include cantilever and simply supported at both ends. The case library itself contains a limited number of cases, so that new cases do not have easy matches in memory. Five cases, spanning over the domain of interest are currently included in the library.
11 Limitations
Much of our efforts went into devising transfer and map ping mechanisms for our case-based implementation. Se lecting promising problems from the case memory ( ac cess phase) is also an important part of a case-based rea soning system. Multiple indexing can provide different viewpoints on the set of problems in memory, especially when dealing with large case memories. We have not explored this field and our metric for selecting problems remains relatively simple.
The algorithm that transfers concepts from one prob lem situation to another is strictly based on the distance measured on the type hierarchy. This works well when a detailed type hierarchy is available for each problem situation, but otherwise leads to several solutions when looking for the closest analog of a particular concept. In that case, supplementing the distance information with equivalent information coming from the attributes of the concept (that are also concepts) is a promising solution path.
When it comes to deriving modifications from the be havioral equations and applying them to a design, our mechanisms are much simpler than the ones found in [Howe et al., 1987],[Murthy and Addanki, 1987], [Cagan and Agogino, 1988]. Those systems perform a quantita tive evaluation of modifications prior to applying them to a design, whereas we proceed by qualitative analysis, followed by iterative changes of design variables.
Perhaps more seriously, plans expressed as an ordered set of actions fail to capture the rationale behind each of those actions, forcing us to rely on weak methods such as the dependency graphs to select relevant actions within a plan.
12 Related Research
Current mechanical design systems do not attempt to utilize past experience to derive their actions. There has been interesting applications of case-based reasoning in other areas though, two of which are described below.
Chef [Hammond, 1986] is a case-based system that works in the domain of Szechwan cooking. As our sys tem, Chef uses a memory of past recipes to build a new one and has a simulation module to assess the quality of new recipes. In addition, Chef has a mechanism to archive and index new plans in the case memory, giving it a learnin~ capability.
Cyclops lNavinchandra, 1988] works in the domain of landscape design. Instead of working on past plans, Cy clops works directly on a memory of past design solutions to extract useful features for its current design problem. We have not addressed this issue in our research.
13 Conclusion
More experiments are needed to see if the ideas presented in this paper can be generalized to the redesign of assem blies, instead of a single artifact and to more complex domains. We believe though that our approach goes fur ther than existing routine design systems [Howe et al., 1987] [Brown et al., 1986], by giving them the ability to perform non-routine modifications.
Building a new plan from a memory of past ones, our system is not likely to produce innovative designs, but it is more efficient than reasoning from first principles and also takes into account heuristic knowledge that cannot be derived from these first principles.
Although applied to the simple domain of beam de sign, the architecture we propose is quite general. Given a body of domain knowledge provided by a type hier archy and a language framework that allows a user to express plans in a concise manner, we present general mechanisms for selecting useful cases, transferring cor responding plans and mapping relevant parts of those into a global redesign plan.
@inproceedings{ijcai1989p224,
title = {A Case-Based Mechanical Redesign System},
author = {Daube, Francois and Hayes-Roth, Barbara},
booktitle = {Proceedings of the Eleventh International Joint Conference on
Artificial Intelligence, {IJCAI-89}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {N. S. Sridharan},
pages = {1402--1406},
year = {1989},
month = {8},
note = {Knowledge Representation},
url = {https://ijcai.org/proceedings/1989/224},
}
TY - CPAPER TI - A Case-Based Mechanical Redesign System AU - Daube, Francois AU - Hayes-Roth, Barbara T2 - Proceedings of the Eleventh International Joint Conference on Artificial Intelligence, IJCAI-89 PB - International Joint Conferences on Artificial Intelligence PY - 1989 SP - 1402 EP - 1406 UR - https://ijcai.org/proceedings/1989/224 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: