Unit A1.3 Model construction and simulation Kenneth D. Forbus Qualitative Reasoning Group Northwestern University.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
QUALITATIVE MODELLING AND REASONING Ivan Bratko Faculty of Computer and Information Science Ljubljana University Slovenia.
INTRODUCTION TO MODELING
General Concepts for Development of Thermal Instruments P M V Subbarao Professor Mechanical Engineering Department Scientific Methods for Construction.
Using the Crosscutting Concepts As conceptual tools when meeting an unfamiliar problem or phenomenon.
Introduction to Qualitative Reasoning In the Building of Intelligent Tutoring Systems.
Chapter 13 MIMs - Mobile Immobile Models. Consider the Following Case You have two connected domains that can exchange mass
Reminder Midterm is two weeks from today (Oct 21 st !) –Closed book, closed notes, no computers or calculators or electronic devices –Will cover all material.
Thermodynamics can be defined as the science of energy. Although everybody has a feeling of what energy is, it is difficult to give a precise definition.
Development of Dynamic Models Illustrative Example: A Blending Process
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
Unit A1.2 Qualitative Modeling Kenneth D. Forbus Qualitative Reasoning Group Northwestern University.
Unit A2.1 Causality Kenneth D. Forbus Qualitative Reasoning Group Northwestern University.
MCE 561 Computational Methods in Solid Mechanics
Chapter 5 The First Law of Thermodynamics
Introducing Climate Prediction Find out what happens to radiation from the Sun when it reaches the Earth and what this means for the temperature of the.
P340 Lecture 5 (Second Law) THE FUNDAMENTAL POSTULATE (OF THERMAL PHYSICS) Any isolated system in thermodynamic equilibrium is equally likely to be in.
1© Manhattan Press (H.K.) Ltd. 7.9 Examples of forced vibration.
Objectives Identify the conditions of simple harmonic motion.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Mrs. Degl1 This is your introduction to Earth Science We will be covering: 1.Observations/Inferences/Predictions 2.Classification 3.Mass 4.Volume 5.Density.
Chapter 3 Phase Transitions and Chemical Reactions.
In Engineering --- Designing a Pneumatic Pump Introduction System characterization Model development –Models 1, 2, 3, 4, 5 & 6 Model analysis –Time domain.
1 Lec 2: Problem solving, conservation of mass. 2 For next time: –Read: § 1-10 to 1-11; 2-1 to 2-4. Outline: –Properties of systems. –Problem solving.
TEA Science Workshop #3 October 1, 2012 Kim Lott Utah State University.
MATHEMATICAL FOUNDATIONS OF QUALITATIVE REASONING Louise-Travé-Massuyès, Liliana Ironi, Philippe Dague Presented by Nuri Taşdemir.
Lesson 8 SECOND LAW OF THERMODYNAMICS
WELNS 670: Wellness Research Design Chapter 5: Planning Your Research Design.
DIFFERENTIAL EQUATIONS 9. Perhaps the most important of all the applications of calculus is to differential equations. DIFFERENTIAL EQUATIONS.
Daily Challenge, 10/2 Give 3 examples of motions that are periodic, or repeating.
Questions From Reading Activity? Big Idea(s):  The interactions of an object with other objects can be described by forces.  Interactions between.
Mathematical Equations of CFD
Big Ideas Differentiation Frames with Icons. 1. Number Uses, Classification, and Representation- Numbers can be used for different purposes, and numbers.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 19.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Observations vs. Models.
Thermal Physics Topic 3.2 Thermal Properties of Matter.
Differential Equations 7. Modeling with Differential Equations 7.1.
Variational Data Assimilation - Adjoint Sensitivity Analysis Yan Ding, Ph.D. National Center for Computational Hydroscience and Engineering The University.
SW388R6 Data Analysis and Computers I Slide 1 Multiple Regression Key Points about Multiple Regression Sample Homework Problem Solving the Problem with.
Chapter 11 Preview Objectives Hooke’s Law Sample Problem
Unit 7 An Introduction to Exponential Functions 5 weeks or 25 days
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
DIMENSIONAL ANALYSIS SECTION 5.
Lecture 3. Full statistical description of the system of N particles is given by the many particle distribution function: in the phase space of 6N dimensions.
Chemistry XXI The central goal of this unit is to help you understand and apply basic ideas that can be used to distinguish the different substances present.
Computational Fluid Dynamics - Fall 2007 The syllabus CFD references (Text books and papers) Course Tools Course Web Site:
#1 Make sense of problems and persevere in solving them How would you describe the problem in your own words? How would you describe what you are trying.
Thermal Energy & Heat.
PHY 151: Lecture Motion of an Object attached to a Spring 12.2 Particle in Simple Harmonic Motion 12.3 Energy of the Simple Harmonic Oscillator.
Chapter: 06 The Second Law.
Section 1 Simple Harmonic Motion
Selecting the Best Measure for Your Study
Qualitative Reasoning in Garp3
Introducing Climate Prediction
Dynamical Models - Purposes and Limits
7th Grade Cells Natural Selection
Single-Case Designs.
Definition of An Instrument
PURE SUBSTANCE Pure substance: A substance that has a fixed chemical composition throughout. Air is a mixture of several gases, but it is considered to.
8th Grade Matter and Energy in Organisms and Ecosystems
Devil physics The baddest class on campus AP Physics
dse +; thus dp0 −, or p0 decreases.
Laboratory in Oceanography: Data and Methods
Diffusion and Osmosis: What is the solute potential of potato cells?
Differential Equations
Total Energy is Conserved.
27. Compressible Flow CH EN 374: Fluid Mechanics.
Presentation transcript:

Unit A1.3 Model construction and simulation Kenneth D. Forbus Qualitative Reasoning Group Northwestern University

Overview Model fragments –A key constituent of domain theories –Will use CML syntax Qualitative states, transitions, and simulation Properties of qualitative models

Model Fragments Encode conditions under which domain knowledge is relevant –Participants are the individuals and relationships that must hold before it makes sense to think about it –Conditions must be true for it to hold (i.e., be active) –Consequences are the direct implications of it being active. (defmodelFragment saturated :participants ((am :type air-mass)) :conditions ((= (relative-humidity am) 100-percent) :consequences ((saturated am)))

Example: Physical Processes A kind of model fragment But also has direct influences, which are constraints on derivatives Examples: –“Most water [in the air] comes from evaporation. When the sun heats the liquid water in the earth’s oceans, lakes, and rivers, some of it changes into water vapor and rises into the air” –(I+ (water-vapor am) (rate evap)) (I- (amount-of water-body) (rate evap)) –N.B. accumulating bodies of water into an abstract entity, based on shared properties. This is a transfer pattern of influences.

Physical process example (defModelFragment heat-flow :subclass-of (physical-process) :participants ((the-src :type thermal-physob) (the-dst :type thermal-physob) (the-path :type heat-path :constraints ((heat-connection the-path the-src the-dst)))) :conditions ((heat-aligned the-path) (> (temperature the-src) (temperature the-dst))) :quantities ((heat-flow-rate :type heat-flow-rate)) :consequences ((Q= heat-flow-rate (- (temperature the-src) (temperature the-dst))) (I- (heat the-src) heat-flow-rate) (I+ (heat the-dst) heat-flow-rate)))

Participants :participants ((the-src :type thermal-physob) (the-dst :type thermal-physob) (the-path :type heat-path :constraints ((heat-connection the-path the-src the-dst)))) Provides sufficient conditions for an instance of the process to exist –Computationally, enough evidence to warrant instantiation Constraint information customarily assumed to be true across a reasoning session –But reasoners should be sensitive to this assumption being violated

Conditions :conditions ((heat-aligned the-path) (> (temperature the-src) (temperature the-dst))) Determines whether or not a model fragment is active Can be thought of as two types: –Preconditions involve external changes –Quantity conditions involve changes predictable from the domain theory Conditions can change as behavior evolves –Quantity conditions can change due to dynamic effects –Preconditions can change based on actions, other effects external to the qualitative physics

Consequences :quantities ((heat-flow-rate :type heat-flow-rate)) :consequences ((Q= heat-flow-rate (- (temperature the-src) (temperature the-dst))) (I- (heat the-src) heat-flow-rate) (I+ (heat the-dst) heat-flow-rate))) Entities and relationships that are necessary consequences of the model fragment being active Provides inferential “hooks” to other theories Different implementations support special-purpose extensions –e.g., Q=  appropriate qprop+, qprop-, and correspondence.

Qualitative Reasoning Deriving new values from given values and qualitative constraints is one form of QR Qualitative simulation and envisioning are very important forms of qualitative reasoning There are other important types of qualitative reasoning as well: –Measurement interpretation –Simulation construction –… More complex reasoning operations can typically be defined in terms of a set of basic inferences

Basic inferences of QP theory 1. Finding process and view instances –“What phenomena might be relevant?” 2. Determining activity –“What’s happening?” 3. Influence resolution –“What’s changing?” 4. Limit Analysis –“What might happen next?”

A simple example Might be water in each container Only considering flows of liquid between each Ignoring phase changes, evaporation, thermal properties, momentum… F G H

Finding model fragment instances Figure out how the model fragments in the domain theory can be instantiated given the structural description Introduces new conceptual entities New entities can themselves participate in other entities

Example Three possible contained stuffs, four potential fluid flows F G H   

Determining Activity Evaluate conditions to figure out which model fragments are active. –Called process structure and view structure in literature, more generally, activity structure. Closed-world assumption on influences can now be made, based on –CWA on individuals, relationships in situation –CWA on domain theory –CWA on model fragments The influence graph that results is a set of qualitative differential equations –N.B. When the activity structure changes, the influence graph can change.

Example If pressure in G is higher than in F and H, and both paths are aligned, water will flow out of G F G H  

Influence Resolution Combine effects of direct influences to figure out net change Propagate through qualitative proportionalities Can be ambiguous Resolve ambiguities by –adding extra information –exploring all possibilities –adding assumptions Task determines which method of ambiguity resolution is appropriate

Example Suppose more in F than in G than in H. Net effect on G unknown, unless we know or assume something about relative flow rates F G H 

Limit Analysis Using derivatives, figure out how set of ordinal relations can change. Result are possible changes in active processes, existence of individuals Often ambiguous –multiple changes –relative rates/distances unknown Requires taking continuity into account Illustrates a good solution to the frame problem

Example F G H   F G H F G H Valves closed, Nothing can happen Valves opened, flows begin Other possibilities described later Equilibrium eventually occurs

Partial knowledge  Ambiguity In general, limit analysis can predict multiple behaviors F  G  HF  G  H F G H F  G  H F G H F  G H F G  H i i i i means the transition occurs in an instant. All other transitions occur over an interval of time

Continuity and Change You can’t get from A to B without going through C. Holds for qualitative values, too –Ds[foo] = -1  Ds[foo] = 1? No, must be Ds[foo] = 0 first –foo bar? No, must be foo = bar first Key constraint for pruning state transitions in qualitative simulation ACB

Continuity has surprising consequences Suppose the string is unbreakable and perfectly inelastic. What can happen in the situation below when the block is released?

Putting the basic inferences to work Measurement Interpretation Qualitative simulation Envisioning

Measurement Interpretation Given a set of measurements at a single time: 1. Find possible model fragments 2. Perform a dependency-directed search over possible activation structures –Resolve influences for each combination. –If ambiguous influences, search all possibilities. –If state satisfies measurements, record 3. Return as answer the set of recorded states

Example F G H F  G H F  G  H F  G  H F  G  H F  G  H F G  H F  G HF G  H

Interpreting measurements across time Find best explanation in terms of qualitative behaviors Use transitions as compatibility constraints to prune

Qualitative Simulation For initial state –Find view and process instances –Determine activity –Resolve influences –Perform limit analysis For each next state, treat as initial state Continue as desired –Some desired/undesired behavior found –Resource limits

Envisioning Envisioning = complete qualitative simulation –Attainable envisionment = all states that might be reached from a given initial state –Total envisionment = all possible states of the system and all possible transitions between them Envisionments provide finite characterization of system behavior –Can be useful for FMEA, design Caution: Finite  small –Can be exponential in size of system –With landmark introduction, no longer finite

How qualitative simulation can be used in design T(s)  T(w)  Desired state for tea warmer Desired state for kettle Something to worry about

Time and change Time individuated by changes in qualitative state Qualitative states differentiated by –Set of active model fragments –Qualitative values of system parameters Constrast with notion of time used in numerical simulators Spring state Block velocity

Qualitative states and transitions Many dynamical properties of systems can be reasoned about based on topological properties of qualitative state graphs

Judging correctness of qualitative reasoning Several “gold standards” possible –Physical world –Mathematical models –Psychological plausibility Example: What does it mean for a qualitative simulation to be correct? –Envisionment = quantized phase space for physical system –Every state = some real behavior –Every transition = some transition that could occur between real states as part of a real behavior –Not quite enough…

Paths = possible behaviors? Ideally, all paths through envisionment should correspond to physically possible behaviors Not always true! Physically possible for a spring/block oscillator with dynamic friction Not physically possible due to energy considerations

Properties of qualitative simulation Soundness: If it is in the envisionment, it is possible Completeness: If it is physically possible, there is something corresponding to it in the envisionment Qualitative simulation is unsound but complete Interesting question: –Is there some minimal level of information, less detailed than say numerical values, that would make qualitative simulation sound?