Commonsense Physical Reasoning: Boxes and Pitchers Ernest Davis New York University June 6, 2007.

Slides:



Advertisements
Similar presentations
Chapter 16 Section 1.
Advertisements

Ontologies and Representations of Matter Ernest Davis AAAI 2010 July 14, 2010.
Properties of Fluids Chapter 14 Section 2. How do ships float? Despite their weight, ships are able to float. This is because a greater force pushing.
Bouncing Liquid Jets James Bomber, Dr. Thomas Lockhart Department of Physics and Astronomy, University of Wisconsin - Eau Claire
Kinematics & Grasping Need to know: Representing mechanism geometry Standard configurations Degrees of freedom Grippers and graspability conditions Goal.
Forces Ms. Moore 9/10/12.
Physics 201: Lecture 21, Pg 1 Lecture 21 Goals: Discussion conditions for static equilibrium Use Free Body Diagrams prior to problem solving Introduce.
Principles of Rocketry
Reasoning from Radically Incomplete Information: The Case of Containers Ernest Davis, Dept. of Computer Science, NYU Gary Marcus, Dept. of Psychology,
Lecture 3 Bernoulli’s equation. Airplane wing Rear wing Rain barrel Tornado damage.
Fluid Dynamics Introduction Section 0 Lecture 1 Slide 1 Lecture 21 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Physics of Technology—PHYS.
Commonsense Reasoning and Science. Understanding variants What would happen if: There were no test tubes? The test tubes were right side up? The test.
Chapter 15 Fluids.
Conservation of Energy
Single Point of Contact Manipulation of Unknown Objects Stuart Anderson Advisor: Reid Simmons School of Computer Science Carnegie Mellon University.
ABSTRACT Many new devices and applications are being created that involve transporting droplets from one place to another. A common method of achieving.
Density and Buoyancy.
1-1 Principles of Rocketry. 1-2 Water Rockets BASIC CONCEPTS.
Lecture 7 Flow of ideal liquid Viscosity Diffusion Surface Tension.
Chapter 4 States of Matter.
Unit 4 Sections A7-A9 In which you will learn about:
The kinetic theory is an explanation of how _______ in matter behave. Kinetic Theory 16.1.
States of Matter.
Topic 1Topic 2Topic 3Topic 4 $100 $500 $400 $300 $200.
Explaining Motion P4. Speed In real life, it’s pretty rare for an object to go at exactly the same speed for a long period of time Objects usually start.
Fluid Mechanics Chapter 8.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Collisions & Contact.
Chemical Building Blocks
Goal: To understand liquids and gasses Objectives: 1)To understand Pressure 2)To understand Buoyancy 3)To understand Archimedes Principal 4)To learn about.
Introduction to Robot Motion Planning Robotics meet Computer Science.
Questions From Reading Activity? Big Idea(s):  The interactions of an object with other objects can be described by forces.  Interactions between.
Goal: To understand liquids and gasses Objectives: 1)To understand Pressure 2)To understand Buoyancy 3)To understand Archimedes Principal 4)To learn about.
Chapter Fluid pressure and temperature. Pressure  What happens to your ears when you ride in an airplane?  What happens if a submarine goes.
Monday, November 9, 1998 Chapter 9: Archimedes’ principle compressibility bulk modulus fluids & Bernoulli’s equation.
10.3 Properties of Fluids  A fluid is defined as any matter that flows when force is applied.  Liquids like water or silver are kinds of fluid.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Unit 4 KMT, Gas Laws and States of Matter Learning Target: I can describe differences between solids, liquids and gases at the atomic and molecular levels..
Goal: To understand liquids and gasses Objectives: 1)To understand Pressure 2)To understand Buoyancy 3)To learn about Hydraulics 4)To learn about Surface.
Fall Semester Review: Physics Situation 1: Air resistance is ignored. A person is standing on a bridge that is 150 m above a river. a. If a stone with.
The Laws of Motion Newton’s Three Laws of Motion:
Chapter 16 States of Matter. Chapter 16: State of Matter Section 1: Kinetic Theory.
The states of matter are the physical forms in which a substance can exist. Water exists in three different states of matter: Solid (ice) Liquid (water)
Properties of Fluids Mr Carter Science. How do ships float? The answer is buoyancy.
Properties of: FLUIDS A fluid is defined as any matter that flows when force is applied. Liquids, such as water, are one kind of fluid. Gases, such as.
Projectile Motion.
Solids, Liquids and Gases. States of Matter matter – anything that has mass & takes up space there are 4 states of matter that depend on TEMPERATURE solid.
Unit 2 Lesson 4 States of Matter
Copyright © 2010 Pearson Education, Inc. Lecture Outline Chapter 15 Physics, 4 th Edition James S. Walker.
The kinetic theory is an explanation of how particles in matter behave. Kinetic Theory 16.1.
The Naive Physics Perplex “Common sense is a wild thing, savage, and beyond rules.” (G. K. Chesterton, 1906) How do we build systems with “common-sense.
The Force of Moving Water. Work and Energy A river’s water has energy The Force of Moving Water Energy is the ability to do work.
Lesson 2 Chapter 16. Properties of Fluids A fluid is a gas or a liquid A fluid is a gas or a liquid –despite their weight ships are able to float. –greater.
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Forces Chapter 12, Section 1. Forces Force – a push or a pull that acts on an object Force – a push or a pull that acts on an object A force can cause.
1 Ontological Foundations For SysML Henson Graves September 2010.
Lowering the CG of an Object The CG of an object tends to take the lowest position available.
Reasoning about Containers
Unit 6 Lesson 4 States of Matter
60 1. What is the mass M in the system as given in the
Nature of Gases Kinetic Molecular Theory.
Physics Support Materials Higher Mechanics and Properties of Matter
Introduction Artificial Intelligent.
Devil physics The baddest class on campus AP Physics
How does a box work?.
Properties of Fluids.
Stream Erosion.
Ernest Davis Automating Commonsense Reasoning for Science
Projectile motion can be described by the horizontal and vertical components of motion. Now we extend ideas of linear motion to nonlinear motion—motion.
Computer Animation Algorithms and Techniques
Properties of Fluids.
Presentation transcript:

Commonsense Physical Reasoning: Boxes and Pitchers Ernest Davis New York University June 6, 2007

Commonsense inferences You can carry a collection of objects U at location A to location B by bringing an open box OB to A, loading the objects one by one into OB, and carrying OB to B. You can transfer liquid from container OS to container OD by pouring it: i.e. lifting OS over OD and tilting it

Part of Common Sense Reasoning Enterprise Represent knowledge of commonsense domains and automate commonsense reasoning Potential applications to natural language interpretation, automated planning, vision, expert systems, automated tutoring, etc.

Commonsense and Science How experiment – manipulation and perception at the human level – relate to the underlying scientific theory.

Understanding variants What would happen if: There were no test tubes? The test tubes were right side up? The test tubes were slanted? The test tubes were initially full of air? One of the electrodes was outside the tube? Both electrodes were in the same tube?

Variants Will fail if: The cargo objects don’t fit in the box The box is tilted too far –Unless the box has a lid The box has a hole in the bottom –Unless the hole is too small for the objects Some other object falls into the box Some agent lifts a cargo object out

More variants You can put one box inside another. You can make a pitcher overflow by dropping pebbles into it. You can ladle liquid out of a pail with a spoon.

Classic AI Representation (define (domain Box) (:action load (?o ?b ?l) :precondition (and (at ?o ?l) (at ?b ?l) (box ?b)) :effect (and (in ?o ?b) (not (at ?o ?l)))) (:action move (?b ?l1 ?l2) :precondition (at ?o ?l1) :effect (and (at ?o ?l2) (not (at ?o ?l1)))))

Scientific Computing Given precise boundary conditions --- object shapes, material properties, initial state, motion of manipulated objects Output precise prediction. Rigid solid objects: fine-grained time. Model all contact forces and impacts. Liquids: fine-grained time and space. Model forces on every piece of liquid.

Commonsense Reasoning Aware of geometry Does not require exact spatial information –Inconvenient /impossible to perceive or measure. –Information from inference or natural language –System under design / reasoning generically Supports alternative directions of inference –future to past, behavior to shape, etc. Robust under variation of shape and motion –Contrast Newtonian analysis.

Logic-Based Analysis (Hayes) Develop Ontology (microworld) First-order language Formal first-order theory (plus 2 default rules) Problem specification Model qualitative reasoning as logical inference

Constraints Qualitative reasoning: Shapes, motions, number of cargo objects No derivatives No velocities or accelerations No forces or energy Reasoning over extended time and space Keep nonmonotonicity to a minimum –Closed world assumptions in problem spec.

Outline Related work Pre-formal analysis: –Box microworld –Liquids microworld Representation Future work and Conclusion

Related Work Pat Hayes: “Naïve Physics Manifesto”, “Ontology for Liquids” AI Solid Objects: Forbus, Faltings, Nielssen, Joskowicz, Shrobe & Davis, Gelsey. AI Liquids: Gardin & Meltzer, Collins, Kim Sensorless Robotics: Mason, Erdmann, LaValle Sci. Computing, Graphics, Robotics

Pre-Formal Analysis Modelling assumptions: Objects are rigid. Liquids are incompressible. Motion is continuous. Large friction. Inelastic collisions. No viscosity, surface tension – “dry water”. Objects in contact with liquids move slowly. Manipulation is motion of “grasped” object

Box/Cup Region R is boxed in state S iff the interior of R is connected; no solid object is in the interior of R; every boundary point of R below its top is a boundary point of some solid object

Boxed regions

Plan 1 boxTransport(U:object[set], OB:box, L1, L2: location) sequence(while (some object O is not in OB) load(O into OB); carry(OB from L1 to L2) )

Conditions In s1, uCargo and oBox are stably placed on oTable1 uCargo and oBox are inside a region isolated from other objects. uCargo fits inside oBox. The path from oTable1 to oTable2 is isolated from other objects. oBox is kept fairly upright while being carried. No other agent manipulates any of the objects.

What can go wrong? Some object is screwed into the table. Loading one object knocks another off the table. The configuration in which the objects fit in the box is unattainable. (Note: Can’t assume that the objects stay where they were originally placed) The box falls over while being loaded.

What else can go wrong? Loading one object causes another to fly out of the box.

What else can go wrong? An object can come out of the box while it is being carried: –Box is tilted too far. –Rolling object in bowl sloshes out. –Large accelerations push object out of box.

Fixes Each cargo object is separately on the table, with a clear path to the box. Lots of excess room in box: |uCargo| ≤ ⌊H/2D⌋⌊W/2D⌋⌊L/2D⌋ Each object loaded to fairly low point. Vertical projection of inside of box inside convex hull of points of support on table.

Default rules By default, no object in a heap moves upward w.r.t. all the supports of the heap. If: –O is supported by OS. –Objects in set U are in heaps supported by O. –U remains over convex hull of points of support of points of O by OS then O does not fall over.

Liquid Microworld Kinematic constraints: Liquids and solids do not interpenetrate, continuity, rigidity, incompressibility.

3 scenarios Cupped region: If throughout a history a cupped region has greater volume than the liquid inside, then there is no outflow. If the volume of a cupped region falls below the liquid inside, then it overflows on top. Liquid flows down when it can, flowing around obstacles.

Overflow During overflow, the liquid rises a finite distance over the spout and goes out a distance beyond the spout. “Falling down” rule is suspended.

Ontology Real-valued time Euclidean space. Geometric entities as needed. Objects. Sets of objects. Chunks of liquids Agents. States Histories Fluents (Boolean and non-Boolean) Pseudo-objects (inside of a box; center of mass) Plans

Open Box openBoxShape(RB,RI:region) openBoxShape(RB,RI)  bounded(RB) ^ bounded(RI) ^ ec(RB,RI) ^ connected(interior(RI)) ^ [ ∀ P P∈boundary(RI) ^ height(P) < top(RI) ⇒ P∈boundary(RB)]

Cupped region holds(S, cuppedRegion(R))  holds(S, openBoxShape # (solidSpace,R)).

Liquid in cupped region dynamic(H) ^ slowObjectsInContact(Q,H) ^ continuous(Q,H) ^ throughout(H,singleCup # (Q) ^ # ¬ # fullOfLiquid # (Q)) ⇒ noOutflow(Q,H). (Note use of region-valued fluent Q: great insight of Hayes.)

Default against flying out of box upwardMotion(O,US,H)  ∀ OS∈US,QC [source(QC)=OS ^ coordSys(QC)^ sometime(H,zAxis * (QC) = # z̑)]⇒ value(end(H),zCoor * (cMass(O),QC)) > value(start(H),zCoor * (cMass(O),QC)).

Default (cntd) anomUp(O,H)  ∃ UH,US O∈UH ^ holds(start(H),heap(UH,US)) ^ throughout(H,isolated(UH,US,∅)) ^ upwardMotion(O,US,H). noAnomUp(H)  ∀ O,H1 subHistory(H1,H) ⇒¬anomUp(O,H1). dynamic(H) : noAnomUp(H) / noAnomUp(H).

Feasibility of manipulation (simplified) kinematic(H) ^ holds(start(H),grasps(A,O)) ⇒ ∃ H1,H2 prefix(H1,H) ^ duration(H1) ǂ 0 ^ sameMotionOn(H2,H1,{O}) ^ start(H2)=start(H) ^ throughout(H2,grasping(A,O)) ^ dynamic(H2).

Box plan specification Plan1 = seq(while(unloaded ǂ ∅, seq(loadBox(a1,unloaded, qinBox,manip1), waitUntil(stable(uCargo ⋃ {oBox, oTab1}))) carryBox(a1,oBox,qIn,uCargo, oTab2,manip2))

Variants I can handle Boxes inside boxes Boxes composed of multiple parts Boxes with holes (milk crate) Boxes with lids Ladling liquid out of a bowl Raising water level by adding pebbles

Close variants I can’t (yet) handle Unloading a box Carrying a heap of objects on a tray Pouring liquid onto a horizontal surface.

Future work More physical domains Probabilistic inference (e.g. stability of a heap) Tractable rule system Establish soundness w.r.t. a plausible model What qualitative inferences are important?

David Waltz (1995): “It was widely believed that logic could successfully model images and scenes, even though the baroque improbability of that effort should have long been clear to everyone who read Pat Hayes’ Naïve Physics Manifesto.”

Conclusion Knowledge-based analysis using a logical language allows us to characterize a broader range of qualitative physical reasoning than any other known technique.