learning physical description from functional...

28
January 1983 Also numbered AIM-349 Report No. STAN-G-82-950 Learning Physical Description from Functional Definitions, Examples and Precedents bY Patrick H. Winston, Thomas 0. Binford, Boris Katz and Michael Lowry Department of Computer Science Stanford University Stanford, CA 94305 x . . . . . - ,r .-,, __ 4 _f . . . -, _ . . . _-. -.

Upload: leminh

Post on 11-Apr-2018

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

January 1983Also numbered AIM-349

Report No. STAN-G-82-950

Learning Physical Description fromFunctional Definitions, Examples and Precedents

bY

Patrick H. Winston, Thomas 0. Binford, Boris Katz

and Michael Lowry

Department of Computer Science

Stanford UniversityStanford, CA 94305

”x

. . . . . - ,r.-,, __ 4 ’ _f

. . . -, _ . . .

_-.-.

Page 2: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

R u l eRULE-Z

if[OBJECT-lo HQ LIGHT][CONCAVITY-8 PHYSICAL-PART-OF OBJECT-lo][ B O D Y - 9 P H Y S I C A L - P A R T - O F O B J E C T - 1 0 - J[ B O T T O M - 8 P H Y S I C A L - P A R T - O F O B J E C T - l o ][CONCAVITY-8 AK0 CONCAVITY][CONCAVITY-8 HQ UPWARD-POINTING][BODY -9 AK0 B O D Y ][BODY-9 HQ CYLINDRICAL][BODY -9 HQ SMALL][ B O T T O M - 8 AK0 B O T T O M ][ B O T T O M - 8 H Q F L A T ]

t h e n[OBJECT-lo AK0 CUP]

u n l e s s[[OBJECT-lo AK0 OPEN-VESSEL] HQ FALSE][[OBJECT-lo HQ LIFTABLE] HQ FALSE][[OBJECT-lo HQ STABLE] HQ FALSE][[BODY-9 H Q G R A S P A B L E ] H Q F A L S E ]

c a s eDEFINITION-l DESCRIPTION-2 DESCRIPTION-4 DESCRIPTION-l

S h o u l d I i n d e x i t a s a r u l e ?> Y

Page 3: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Artificial Intelligence Laboratory

Stanford University

in collaboration with

Artificial Intelligence Laboratory

Massachusetts Institute of Technology

AIM Memo 349 November 1982STAN-CS-82-950 Revised January 1983

Learning Physical Descriptions

From Functional Definitions,

Examples, and Precedents

bY

Patrick H. Winston*

Thomas 0. Binford

Boris Katz*

and Michael Lowry

*Patrick H. Winston and Boris Katz are at the Masachusctts Knstitutc of ‘i’cchnology Artificial [ntclligcncc lab.

‘I’his paper is also availeble from Massachusetts Institute of’l%chnology as M.I.T. AI Memo 679

Page 4: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

To use DEFINITION-l I need to know if [OBJECT-3 AK0 OPEN-VESSEL]I a m t r y i n g t o s h o w [ O B J E C T - 3 AK0 O P E N - V E S S E L ]Supply y, n , ?, r = r u l e s , p = p r e c e d e n t s , o r a s u g g e s t i o n :

> PI f ind:

DESCRIPTION-Z < 3. Tinks >I note [CONCAVITY-3 PHYSICAL-PART-OF OBJECT-31 for use with DESCRIPTION-2I note [CONCAVITY-3 AK0 CONCAVITY] for use with DESCRIPTION-2I note [CONCAVITY-3 HQ UPWARD-POINTING] for use with DESCRIPTION-2The evidence from DESCRIPTION-2 ind icates [ O B J E C T - 3 AK0 O P E N - V E S S E L ]The ev idence f rom DEFINITION-l ind icates [ O B J E C T - 3 AK0 C U P ]Rule RULE-l is derived from DEFINITION-l DESCRIPTION-2 DESCRIPTION-3DESCRIPTION-l and looks like this:

R u l eRULE-l

i f[OBJECT-g HQ LIGHT][ C O N C A V I T Y - 7 P H Y S I C A L - P A R T - O F O B J E C T - 9 1[HANDLE-4 PHYSICAL-PART-OF OBJECT-91[BOTTOM-7 PHYSICAL-PART-OF OBJECT-91[CONCAVITY-7 AK0 CONCAVITY][CONCAVITY-7 HQ UPWARD-POINTING][ H A N D L E - 4 AK0 H A N D L E ][BOTTOM-7 AK0 B O T T O M ][ B O T T O M - 7 H Q F L A T ]

t h e n[OBJECT-9 AK0 C U P ]

u n l e s s[[OBJECT-g AK0 OPEN-VESSEL] HQ FALSE][[OBJECT-9 H Q L I F T A B L E ] H Q F A L S E ][[OBJECT-9 HQ G R A S P A B L E ] H Q F A L S E ][[OBJECT-9 HQ STABLE] HQ FALSE]

caseDEFINITION-l DESCRIPTION-2 DESCRIPTION-3 DESCRIPTION-1

a S h o u l d I i n d e x i t a s a r u l e ?> Y

19

Page 5: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Abstract

It is too hard to tell vision systems what things look like. It is easier to talk about purposeand what things are for. Consequently, we want vision systems to use functionaldescriptions to identify things, when necessary, and we want them to learn physicaldescriptions for themselves, when possible.

This paper describes a theory that explains how to make such systems work. The theory is asynthesis of two sets of ideas: ideas about learning from precedents and exercisesdeveloped at MIT and ideas about physical description developed at Stanford. The strengthof the synthesis is illustrated by way of representative experiments. All of these experimentshave been performed with an implementation system.

This research was done in part at the Artificial Intelligence Laboratory of StanfordUniversity and in part by the Artificial Intelligence Laboratory of the MassachusettsInstitute of Technology. Support for MIT’s artificial-intelligence research is provided inpart by the Advanced Research Projects Agency of the Department of Defense underOffice of Naval Research Contract N00014-80-C-0505.

Page 6: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Dicttcrich, Thomas G. and Ryszard S. Michalski., “Inductive Lcarni ng of StructuralDescriptions,” Ar/@ial IwcNigence, vol. 16, no. 3, 1981.

Freeman, P, and Allen Newell, “A Model for Functional Reasoning in Design,”Proceedings of the Sccorld Irlterua/ional Joitll Coufercucc 011 ArGficial htelligence,London, England, 1971.

Katz, Boris and Patrick H. Winston, “Parsing and Gcncrating English usingCommutative Transformations,” Artificial I ntelligcnce Laboratory Memo No.677, May, 1982. A version is also available as “A Two-wav Natural Language-Interface,” in Integraled ln/eractive Compuhtg SJJ.SICI?IS. edited b!’ P. Deganoand E. Sandcwall, North-Holland, Amsterdam. 1982. Also see “A Three-StepProcedure for Language Generation,” by Boris Katz, ‘Artificial IntelligenceLaboratory Memo No. 599, December, 1980.

Vlitcheli, Tom M., “Generalization as Search,” ArtiJicial htelligence, vol. 18, no. 2,1982.

Winston, Patrick Henry, “Learning Structural Descriptions from Esamples.” Ph.D.thesis, MIT, 1970. A shortened version is in The Ps~~clwlogy of Computer Vision,edited by P;ltrick Henry Winston, McGraw-Hill Book Company, New York.1975.

Winston, Patrick Henry, “Learning and Reasoning by Analogy.” CXXI, vol. 23,no. 12. Dccembcr. 1980. A version with details is available as “Learning andRL‘;ISoning by Analog! : the Details,” MIT. ‘4rtificial Intelligcncc LaboratoryIIt‘nio 30. 520, April 1979.

Winston, Patrick Henry. “Learning New Principles from Precedents and Ertxcises,”ht(ficial lme/li,qerlce, vol. 19, no. 3. A version \\ ith details is available as“Lc;~rning Se\v Principles from Precedents and Exercises: the Details,” M.I.T..4rti ticial I ntclligence Laboratory iMemo No. 632. Uay 1981.

Winston, Patrick Hcnrl*, “Learning b\, Augmenting Rules and XccumulatingCensors.” JUT. ,Artificial Intelligenie Laboratory ,Ilemo so. 678. \fav 1982.

17

Page 7: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Figure 1. A cup with a handle.

Key Ideas _

It is too hard to tell vision systems what things look like. It is easier to talk aboutptn-pose and what things are for. Consequently, we wantfunctional descriptions to identify things, when necessary,learn physical descriptions for themselves, when possible.

vision systems to useand we want them to

For example, there are many kinds of cups: some have handles, some do not;some have smooth cylindrical bodies, some are fluted: some are made of porcelain,others are styrofoam, and still others are metal. You could turn blue in the facedescribing all the physical possibilities. Functionally, however, all cups are thingsthat are easy to drink from. Consequently, it is much easier to convey what cupsare by saying what they are functionally.

To be more precise about what we are after, imagine that you are told cups areopen vessels, standing stably, that you can lift. You see that the object in figure1 has a handle, an upward pointing concavity, and a flat bottom. You happen to

- know it is light. Because you already know something about bowls, bricks, and. suitcases, you conclude that you are looking at a CLIP. You also create a physical

model covering this particular cup type.

Our first purpose, then, is to explain how physical identification can be doneusing functional definitions. Our second purpose is to show how to learn physicalmodels using functional d&Ktions and specific acts of identification.

It is important to note that our theory of model learning involves a physicalexample and some preccdcnts in addition to the functional definition:

n The physical example is essential, for otherwise there would be no way to knowwhich precedents are relevant.

Page 8: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

1

Let E be an exercise. E is an exercise about a light object.The object’s body is sm;rll. The object 1~s ;1 htrndle. Theobject’s bottom is flat. Its conca+ is upward-pointing.Its contents are hot. In E show that the object may bea cup.Let E be an exercise. E is an exercise about a lightobject. The object’s bottom is flat. Its body is small andcylindrical. Its concavity. is upw:lrd-pointing. Its contentsare hot. Its body’s m:lterial is an insulator. In E showthat the object may be a cup.

For the first of these two exercises, the rule requiring ;I handle works immediately.It is immaterial that the contents of the cup are hot.

For the second, the rule requiring a small. cylindrical body works immediately.Again it is immaterial that the contents of the cup are hot since nothing isknown about the links among content temperature , graspability, and insulatingmaterials. Proving some knowledge about these things by way of some censorsmakes identific;ltion more interesting.

Suppose, f6r example. th:lt we teach or tell the machine that an object with hotcontents will not ha1.e a grtispable body , gii.en no reason to doubt that the object’sbode is hot. Further wpposc th:lt we teach or tell the machine that an object’s body-is not hot, even if its contents are, if the body is made from an insulator. All this iscaptured by the following censor rules, each of which can make a simple physicaldeduction:

Let Cl be ;I Censor. Cl is a censor about an object. Theobject’s hod!, is not graspable because its contents arehot unless its body is not hot. Make Cl a censor usingthe object’s body is not graspable.Let C2 be ;I censor. C2 is a censor about an object. Theobject’s contents art‘ hot. Its body is not hot because itsbody’s materi is an insulator. Make C2 a censor usingtht: object’s body is not hot.

Repeating the second exercise now evokes the following scenario:

Asking whether the object is a cup activates the rule about cups without handles.The ifconditions of the rule are satisfied.

The utzlcss conditions of the rule are checked. One of these conditions statesthat the object’s body must not be plainly ungraspable.

Asking ;lbout graspabilit>. acti\eates the censor relating grasptibility to hotcontents. The censor’s i/-condition is satisfied. and the censor is about to block thecup-identifying I-&. The censor’s trr~lcss condition must be checked first, however.

The censor’s u~~lcss condition penains to hot bodies. This condition activates asecond censor, the one denying th:tt it body is hot if it is made of an insulator. Thissecond censor‘s iJ’condition is satisfied. ;md there ;u-e no u~rirss conditions.

15

Page 9: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Precedent Problem

4Does this

Match Il

Match b

Figure 2. The matcher dctcrmincs part corrcspondcncc using the links that populate the precedentand the problem. 11~ marcher pays parucular attention to links that arc cnmcshcd in the CAUSEstructure of the prcccdcnt.

l ACROSYV uses gentxrlized cylinders to describe how objects fill space.

A gcncrtzlizcd cyhdcr is formed when ~1 planar cross section moves along a curve inspace. sweeping out =1 volume. The size of the planx= cross section may change as itmoves. The xnJc bct\veen the planar cross section and the curve is held constant,typicall!, at W. Figure 4;r shows some examples.

l ACKONYV USC’S ribbons ;md ellipses to represent ivhat a viewer sees.

Ribbons xc‘ t\s o-dimension4 amllogs to generalized cylinders. A rihhor~ is formedwhen ;I lint is rnowd along :r t~~,~,-dinlcnsic,n;ll curve. perhaps changing size as itmoves. ‘Illc ~ylc txtwecn the line ;rnd the curve is held constant, typically at 9o”.Figure 3b shows some examples.

3

Page 10: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

bowlic

I

3.kO IC concavity

h+ upward-pointing

. brick

object.

CUP

-u/ /

- hq/ l *bo*om �* flat ‘///& Oh” *body ./

- -/-I * upward-pointing

13

Page 11: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

e\\\\iIIII\ /

e Figure 4. ikt (I shows some ~x~mplcs of yxcralizcd cylinders. Part b shows ribbons and ellipsescorresponding to the &jcctS in pxt a.

are found, the dctcrnlin;lticm cm be quite specific. not only about shape and size,but also ;tbout position. 1 Iwing found the ribbon corresponding to the body of anw-plane. ftx- example, it is possible to predict the location, orientation, and size ofthe ribbons corresponding to the wings.

Brooks’s landmark thesis concentrxted on csxtly this sort of prediction [Brooks19811.

In principle. prediction knowledge cm be used to condition the txrlicst visionproccdurcs to the situation at hand. In current practice. c:u-ly \,ision proceduresopcr;w ;Iutorwnlousl!* up to the Icwl where ribbons and cltipxs art’ formed. EffortsU-C utldcnvay to push predictions further toward the pixels.

5

Page 12: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

1

su i tease

ako

I

akow handle

open-vessel

stableIi ftable

-----whq

- -4

h_q=

t‘i---

I+ g r a s p a b l e

1 I1 11 I1 I

Ilp\\,ard-pointing

Figure 8. Cause links from the suitcase prcccdcnt arc ovcrlaycd on the cxcrcisc. hding toquestions &out whcthcr the object i s l ight ;Ind \+hcthcr the o b j e c t has ;1 handle. Ovcrlaycdctructurc is d&cd. Many links of the suitcase prcccdcnt arc not shown to avoid clutter on thediagram.

11

Page 13: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

---

object open-vessel

stableliftable

Figure 5. The functional definition of a cup. This semantic net is produced using an Englishdescription. AK0 = ,I Kind Of. tlQ = Has Quality.

Let X be a definition. W is a definition of an object. Theobject is a cup because it is stable, because it is liftable,and because it is an open-vessel. Remember X.

Of course, other, more elaborate definitions are possible. but this one seems tous to be good enough for the purpose of illustrating our learning theory.

The English is translated into the semantic net shown in figure 5.

The next step is to show an example of a cup, such as the one in figure 6a.ACRONY kl is capable of translating such visual information into the semantic netshown in figure bb. But inasmuch as our connection to ACRONYM is not complete,we currently bypass ACRONYM bjr using the following English instead.

Let E be an exercise. E is an exercise about a redobject. The object’s body is small. The object’s bottomis flat. The object has an up~rd-pointing concavity.The object h;ls a handle.

In contrast to the definition, the qualities involved in the description of theputiculnr cup are ali ph!,sical qutiliries. not functional ones. (Assume that allqu;llitics involving scales, like small size ;tnd light weight, arc relative to the humanbody, by default, unless otherwise indicated.)

In the next step, we enhance the ph!sicnl example’s ph!.sical description. Thisen;lblcs us to specify physical properties and links that arc not obt;linable fromvision.

The object is light.

NOW it is time to show that the functional requircmcnts are met by thetxh;tnccd physical description. ‘To do this rquirc’s using prccaicnrs rul;lting the

7

Page 14: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

cup’s ftrnctional descriptors to observed and stated physical descriptors. Threeprecedents are used. One indicates ;i way an object can be dctcrmined to be stable:another relates liftability to weight and having a handle: and still another explainswhat being an open-vessel means. All contain one thing that is irrelevant withrespect to dealing with cups: these irrelevant things are representative of the detritusthat can accompany the useful material.

Let X be a description. X is a description of a brick.The brick is stable because the brick’s bottom is flat.

The brick is hard.

Remember X.

Let X be a description. X is a description of a suitcase.The suitcase is liftable because it is graspable and becauseit is light. The suitcase is graspable because it has ahandle.

The suitcase is useful because it is a portable containerfor clothes.

Remember X.

Let X be a description. X is a description of a bowl.The bowl is an open-vessel because it has a concavityand because the concavity is upward-pointing.

The bowl contains tomato soup.

Remember X.

With the functional definition in hand, together with relevant precedents, theanalogy apparatus is ready to work as soon as it is stimulated by the followingchallenge:

In E, show that the object may be a cup.

This initiates a search for precedents relevant to showing something is a cup. Thefunctional definition is retrieved. Next, a matcher determines the correspondencebetween parts of’ the exercise and the parts of the functional definition, a trivial

task in this instance. Now the verifier overlays the cause links of the functionaIf definition onto the exercise. Tracing through these overlayed cause links raises three

questions: is the observed object stable, is it an open vessel, and is it liftable. Allthis is illustrated in figure 7.

Questioning if the object is liftable leads to a second search for a precedent,this time one that relates function to form. causing the suitcase description to beretrieved. The suitcase description, shown in figure 8. is matched to the exercise, itsc;lusal structure is overlayed on the exercise, and other questions are raised: is theobserved object light and does it have a handle. Since it is light and does have ahandle, the suitcase description suf‘liccs to deal with the liftable issue, Icaving openthe stability and open-vessel questions.

9

Page 15: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

cup’s ftrnctional descriptors to observed and stated physical descriptors. Threepreccdcnts ;tre trscd. One indicates a way an object can be dctcrmined to be stable;;inother relates liftability to weight and having 3 handle; and still :rnother explainswhat being an open-vessel means. All contain one thing that is irrelevant withrespect to dealing with cups: these irrelevant things are representative of the detritusthat can accompany the useful material.

Let X be a description. X is a description of a brick.The brick is stable because the brick’s bottom is flat.

The brick is hard.

Remember X.

Let X be a description. X is a description of a suitcase.The suitcase is liftable because it is graspable and becauseit is light. The suitcase is graspable because it has ahandle.

The suitcase is useful because it is a portable containerfor clothes.

Remember X.

Let X be a description. X is a description of a bowl.The bowl is an open-vessel because it has a concavityand because the concavity is upward-pointing.

The bowl contains tomato soup.

Remember X.

With the functional definition in hand, together with relevant precedents, theanalogy apparatus is ready to work as soon as it is stimulated by the followingchallenge:

In E, show that the object may be a cup.

This initiates a search for precedents relevant to showing something is a cup. Thefunctional definition is retrieved. Next, a matcher determines the correspondencebetween parts of’ the exercise and the parts of the functional definition, a trivial

task in this instance. Now the verifier overlays the cause links of the functional- definition onto the exercise. Tracing through these overlayed cause links raises three

questions: is the observed object stable, is it an open vessel, and is it liftable. Allthis is illustrated in figure 7.

Questioning if the object is liftable leads to a second search for a precedent,this time one that relates function to form, causing the suitcase description to beretrieved. The suitcase description, shown in figure 8. is matched to the exercise, itsc;lusal structure is overlayed on the exercise, and other questions are raised: is theobserved object light and does it have a handle. Since it is light and does have ah;lndk, the suitc:lse di:scription sufkcs to deal with the liftable issue, Icaving openthe stability and open-vessel questions.

9

Page 16: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

object 4 ako ako + open-vesselhq w stablelw * liftable

Figure 5. ‘The functionA definition of a cup. This semantic net is produced using an Englishdxription. AK0 = I1 Kind Of, HQ = Has Quality.

Let X bc a definition. X is a definition of an object. Theobject is a cup because it is stable, because it is liftable,and because it is an open-vessel. Remember X.

Of course, other, more elaborate definitions are possible. but this one seems tous to be good enough for the purpose of illustrating our learning theory.

The English is translated into the semantic net shown in figure 5.

The next step is to show an example of a cup, such as the one in figure 6a.ACRONYM is capable of translating such visual information into the semantic netshown in figul-e 6b. But inasmuch as our connection to ACRONYPVl is not complete,we currently bypass ACRONYM by using the following English instead.

Let E be an exercise. E is an exercise about a redobject. The object’s body is small. The object’s bottomis flat. The object has an upvvard-pointing concavity.The object has a handle.

In contrast to the definition, the qualities invaotved in the description of theparticular cup are all ph!,sical qualities, not functional ones. (Assume that allqualities involving scales, like small size and light weight, arc relative to the humanbody, by default, unless othenvisc indicated.)

In the next step, we enhance the physical example’s ph!.sical description. Thisenables us to specify physical properties and links that are not obt;linabte fromvision.

The object is light.

Now it is time to show that the functic)nal rcquknicnts are met by thecnh;rnccd physicA description. To do this rquircs using prcccdcnts relating the

7

Page 17: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

sii i teaseA

ako

\

lw44

w liftablehq I

I hqlight 1

1 graspable! \

c hand1eCUP

t-----

\

i hq--hTq=- -+

ty---

I+ graspable

1 I1 I1 I1 I

open-vessel

stableIi ftable

. ’ ‘l’q blightI ,

+, ~i],\\‘;lrd-polntlng

Figure 8 . Cause links from ~JIC suitm~ prcccdcnt arc ovcrlaycd on the cxcrcisc. lcaciing toqucsti()ns &out whcthcr t.k object i s l i g h t md \chcthcr the object h a s ;1 handle. Ovcrlaycdctructurc is dashed. Many links of the suitcm prcccdcnt XC not shown to avoid cfuttcr on thediagram.

11

Page 18: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

___-- ____-- - ---

t,.

F\ II\

1I\ I\ /\ I

e

Figure 4. Prlrt 0 shows some ~umplcs of gcncralizcd cylinders. Part b shows ribbons and ellipsescwrcsponding to the ohjccts in part a.

are found, the dctcrnlinaticm can be quite specific. not only about shape and size,but also ;ibout position. 1 iwing found the ribbon corresponding to the body of anw-plmc. for csample, it is possible to predict the location, orientation, and size ofthe ribbons corrcspunding to the wings.

Brooks’s landmark thesis concentrated on exactly this sort of prediction [Brooks19811.

In principle, prediction knowledge cm bc used to condition the earliest visionproccd~rrcs to the situation at hand. In current practice. early vision proceduresopct-;~tc autollonlousl!* up to the Icvcl where ribbons and cliipxs art formed. EffortsNC underway to push predictions further toward the pixels.

Page 19: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

bowl4

-brick4

stable

tom

----It \-- \ I

object +-1

t i iakored-4 operqegel

ako -/w handle 0 ’

gurc 9. ‘IIc brick prcccdcnt :lnd the bowl prcccdcnt cwblith that the object is sublc and thatI\ ;in open vcwl. ‘I hc‘ C’;IUX links 01‘ the prcccdcnts xc owrlr~~cd on the cxcrctsc. Icading to

L~UCS~IOIIC~ links th:lt ;Irc ~rnm&~tcly rwl\ cd by the fxts. Owrl;lycd structure ic dxhcd. hlanyhks 01’ rhc prcccdcnts ,IIX not >tioH n to :wid chwr on the diqnm.

13

Page 20: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Precedent Problem

MatchMatch 4

Figure 2. The matcher dctcrmincs part corrcspondcncc using the links that populate the precedentand the problem. I‘hc rnritchcr pays particular attention to links that arc cnmcshcd in the CAUSEstructure of the prcccdcnt.

l ACROSW uws generalized qlindcrs to describe how objects fill space.

A ,qmr;~lr,‘cd c~hhd~r is fM-wd when ;1 plannr cross section JTWWS along a curve inspace. sweeping out ;I plume. The size of the planar cross section may change as itmoves. The ;mslt: bctlvcen the planar cross section and the cur\‘e is held constant,tyicall!~ at NY’. Figure 41 shows some examples.l tU☺tONY☺1 uses ribbons ;md cllipscs to rc’prcsent what a viewer sees.

Ribbons arc‘ t\~c~-dimension;ll :m:tlogs to gcncralizcd cylinders. A ril’,hon is formedwhen ;I lint is moved al~g :I t~\,~,-dirn~nsic)nrrl curve. perhaps changing size as itmoves. Illc ~lglc bctivccn the line ;md the curve is held constant, typically at 90~.Figure 3b shows some examplus.

Page 21: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Let E be an exercise. E is an exercise about a light object.The object‘s body is small. The object has a handle. Theobject’s bottom is flat. Its concavity is upward-pointing.Its contents are hot. In E show that the object may bea cup.Let E be an exercise. E is an exercise about a lightobject. The object’s bottom is flat. Its body is small andcylindrical. Its concavity is l]pMl~~I-d-pointing. Its contentsare hot. Its body’s material is an insulator. In E showthat the object may be a cup.

For the first of these two exercises, the rule requiring a handle works immediately.It is immaterial that the contents of the cup are hot.

For the second, the rule requiring a small. cylindrical body works immediately.Again it is immaterial that the contents of the cup are hot since nothing isknown about the links among content temperature, graspability, and insulatingmaterials. Proving some knowledge about these things by way of some censorsmakes identification more interesting.

Suppose, for example. that we teach or tell the machine that an object with hotcontents will not have a graspable body , gi\*en no reason to doubt that the object’sbody is hot. Further suppose that we teach or tell the machine that an object’s body-is not hot, even if its contents are, if the body is made from an insulator. All this iscaptured by the following censor rules, each of which can make a simple physicaldeduction:

Let Cl bc ;1 Censor. Cl is a censor about an object. Theobject’s hod!’ is not graspable because its contents arehot unless its body is not hot. Make Cl a censor usingthe object’s body is not graspable.

Let C2 be a censor. C2 is a censor about an object. Theobject’s contents are hot. Its body is not hot because itsbody’s material is an insulator. Make C2 a censor usingthe object‘s body is not hot.

Repeating the second exercise now evokes the following scenario:

Asking whether the object is a cup activates the rule about cups without handles.The ifconditions of the rule are satisfied.

The urrlcss conditions of the rule are checked. One of these conditions statesthat the object’s body must not be plainly ungraspable.

Asking about graspability activates the censor relating graspability to hotcontents. The censor’s $condition is satisfied. and the censor is about to block thecup-identifying rule. The censor’s rrrrlcss condition must bc checked first, however.

The censor’s ur~less condition pertains to hot bodies. This condition activates asecond censor, the one denying that a body is hot if it is made of an insulator. Thissecond censor’s iJ‘condition is satisfied, and there are no ut~irss conditions.

15

Page 22: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Figure 1. A cup with a handle.

Key Ideas -

It is too hard to tell vision systems what things look like. It is easier to talk aboutpurpose and what things are for. Consequently, we want vision systems to usefhxtional descriptions to identify things, when necessary, and we want them tolearn physical descriptions for themselves, when possible.

FOJ example, there are many kinds of cups: some have handles, some do not;some have smooth cylindrical bodies, some are fluted: some are made of porcelain,others are styrofoam, and still others are metal. You could turn blue in the face&scribing all the physical possibilities. Functionally, however, all cups are thingsthat are easy to drink from. Consequently, it is much easier to convey what cups

what they are functionally.are by saying

To be moopen vessels,1 has a hand

re precise about what we are after, imagine that you are told cups arestanding stably, that you can lift. You see that the object in figure

le, an upward pointing concavity, and a flat bottom. You happen toknow it is light. Because you already know something about bowls. bricks, and

suitcast’s, you conclude that you are looking at a cup. You also create a physicalmodel covering this particular cup type.

Our first purpose, then, is to explain how physical identification can be doneusing functional definitions. Our second purpose is to show how to learn physicalmodels using functional definitions and specific acts of identification.

It is important to note that our theory of model learning involves a physicalcsamplc: and some prcccdt!nts in addition to the functional definition:

a ‘17~ physical example is essential, for otherwise there would be no way to knowwhich prccederlts are relevant.

Page 23: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Dictterich, Thomas G. and Ryszard S. Michalski., “Inductive Learning of StructuralDescriptions,” ArrtJicial hteiiigence, vol. 16, no. 3, 1981.

Freeman, P, and Allen Newell, “A Model for Functional Reasoning in Design,”Pt-ocecdings of Ille Sccotld Itt~ema~ional Joit Cotlfcrctm ot1 Arh~cial htelligence,London, England, 1971.

Katz, Boris and Patrick H. Winston, “Parsing and Generating English usingCommutative Transformations,” Artificial lntelligcnce I-aboratory iMemo No.677, May, 1982. A version is also available as “A Two-wa\’ Gtural Languagee1 nterface,” in Intcgrared Met-acOve Compulitg S:)~s~ctm. cditcd b!* P. Deganoand E. Sandcwall, North-Holland, Amsterdam. 1982. Also see “A Three-StepProcedure for Language Generation,” by Boris Katz, Artificial lntclligenceLaboratory Memo No. 599, December, 1980.

Mitchell, Tom M., “Generalization as Search,” ArOjicial ItMigence, vol. 18, no. 2,1982.

%‘inston, Patrick Henry, “Learning Structural Descriptions from Examples,” Ph.D.Ihesis, MIT, 1970. A shortened version is in Tile &clzolo~~~ of Compuw Vision,edited by Patrick Henry Winston, McGraw-Hill Book Company, New York.1975. _

\\‘inston. Patrick Henry, “Learning and Reasoning by Analogy.” CXX. vol. 23,no. 12. December. 1980. A version with details is available as “Lt’arning andKc;ISoning by Analog! : the Details,” M.I.T. Artificial Intelligence LaboratoryJh!IllO 30. 520, April 1979.

\!?nston, Patrick Henry, “Learning New Principles from Precedents and Exercises,”Arrjficinl Itmiligetlce, vol. 19, no. 3. A version with details is available as“Lcx-ning Sew Principles from Precedents and Exercises: the Details,” M.1.T.Arti ticid I ntclligence Laboratory iMemo No. 632, Uay 1981.

Winston, Patrick Henry. “l-earning b\f Augmenting Rules and AccumulatingCensors.” W.T. .\rtificial lntelligen~e Laboratory ,Llemo ho. 67% May 1982.

17

Page 24: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Abstract

It is too hard to tell vision systems what things look like. It is easier to talk about purpose

and what things are for. Consequently, we want vision systems to use functionaldescriptions to identify things, when necessary, and we want them to learn physicaldescriptions for themselves, when possible.

This paper describes a theory that explains how to make such systems work. The theory is asynthesis of two sets of ideas: ideas about learning from precedents and exercisesdeveloped at MIT and ideas about physical description developed at Stanford. The strengthof the synthesis is illustrated by way of representative experiments. All of these experimentshave been performed with an implementation system.

This research was done in part at the Artificial Intelligence Laboratory of StanfordUniversity and in part by the Artificial Intelligence Laboratory of the MassachusettsInstitute of Technology. Support for MIT’s artificial-intelligence research is provided inpart by the Advanced Research Projects Agency of the Department of Defense underOffice of Naval Research Contract N00014-80-C-0505.

Page 25: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

T o u s e D E F I N I T I O N - l I need to know i f [ O B J E C T - J AK0 O P E N - V E S S E L ]I a m t r y i n g t o s h o w [ O B J E C T - 3 AK0 O P E N - V E S S E L ]Supply y, n, ?, r = r u l e s , p = p r e c e d e n t s , o r a s u g g e s t i o n :

> PI f i n d :

D E S C R I P T I O N - 2 < 3 . T i n k s >I note [ C O N C A V I T Y - 3 P H Y S I C A L - P A R T - O F O B J E C T - 3 1 for use with DESCRIPTION-2I n o t e [ C O N C A V I T Y - 3 AK0 C O N C A V I T Y ] f o r u s e w i t h D E S C R I P T I O N - 2I note [ C O N C A V I T Y - 3 H Q U P W A R D - P O I N T I N G ] f o r u s e wi th D E S C R I P T I O N - 2The ev idence f r o m D E S C R I P T I O N - 2 i n d i c a t e s [ O B J E C T - 3 AK0 O P E N - V E S S E L )T h e e v i d e n c e f r o m D E F I N I T I O N - l i n d i c a t e s [ O B J E C T - 3 AK0 C U P ]Rule RULE-l is derived from D E F I N I T I O N - l D E S C R I P T I O N - 2 D E S C R I P T I O N - 3D E S C R I P T I O N - l and looks l ike th is :

R u l eR U L E - l

i f[ O B J E C T - 9 H Q L I G H T ][CONCAVITY-7 PHYSICAL-PART-OF OBJECT-91[ H A N D L E - 4 P H Y S I C A L - P A R T - O F O B J E C T - 9 1[BOTTOM-7 PHYSICAL-PART-OF OBJECT-91[CONCAVITYL7 AK0 CONCAVITY][CONCAVITY-7 HQ UPWARD-POINTING][ H A N D L E - 4 AK0 H A N D L E ][BOTTOM-7 AK0 B O T T O M ][ B O T T O M - 7 H Q F L A T ]

t h e n[OBJECT-g AK0 CUP]

u n l e s s[ [OBJECT-g AK0 OPEN-VESSEL] HQ FALSE][ [ O B J E C T - 9 H Q L I F T A B L E ] H Q F A L S E ][ [ O B J E C T - g HQ G R A S P A B L E ] HQ F A L S E ][ [ O B J E C T - 9 H Q S T A B L E ] HQ F A L S E ]

c a s eDEFINITION-l DESCRIPTION-2 DESCRIPTION-3 DESCRIPTION-l

d S h o u l d I i n d e x i t a s a r u l e ?>Y

19

Page 26: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

Artificial Intelligence Laboratory

Stanford University

in collaboration with

Artificial Intelligence Laboratory

Massachusetts Institute of Technology

AIM Memo 349STAN-CS-82-950

Learning Physical

From Functional

November 1982Revised January 1983

Descriptions

Definitions,

Examples, and Precedents

bY

Patrick H. Winston*

Thomas 0. Binford

Boris Katz*

and Michael Lowry

*Patrick H. Winston and Boris Katz are at the Illasachusctts Knstitutc of ‘i’cchnology Artificial [ntclligcncc lab.

This paper is also available from Massachwtts Institute of”I’cchnology as M.I.‘T. AI Memo 679

Page 27: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

R u l eRULE-Z

if[OBJECT-lo HQ LIGHT][CONCAVITY-B PHYSICAL-PART-OF OBJECT-lo][BODY-9 PHYSICAL-PART-OF OBJECT-10 J[BOTTOM-8 PHYSICAL-PART-OF OBJECT-10)[CONCAVITY-8 AK0 CONCAVITY][CONCAVITY-8 HQ UPWARD-POINTING][BODY-9 AK0 BODY][BODY-9 HQ CYLINDRICAL][BODY -9 HQ SMALL][ B O T T O M - 8 AK0 B O T T O M ][ B O T T O M - 8 H Q F L A T ]

t h e n[OBJECT-lo AK0 CUP]

u n l e s s[[OBJECT-lo AK0 OPEN-VESSEL] HQ FALSE][[OBJECT-lo HQ LIFTABLE] HQ FALSE][[OBJECT-lo HQ STABLE] HQ FALSE][ [ B O D Y - 9 H Q G R A S P A B L E ] H Q F A L S E ]

c a s eDEFINITION-l DESCRIPTION-2 DESCRIPTION-4 DESCRIPTION-1

S h o u l d I i n d e x i t a s a r u l e ?> Y

Page 28: Learning Physical Description from Functional …i.stanford.edu/pub/cstr/reports/cs/tr/82/950/CS-TR-82-950.pdfFunctional Definitions, Examples and Precedents bY ... body’s materi

January 1983Also numbered AIM-349

Report No. STAN-CS-82-950

Learning Physical Description fromFunctional Definitions, Examples and Precedents

bY

Patrick H. Winston, Thomas 0. Binford, Boris Katz

and Michael Lowry

Department of Computer Science

Stanford UniversityStanford, CA 94305