Modelling uncertainty in 3APL Johan Kwisthout Master Thesis

Slides:



Advertisements
Similar presentations
1 Verification by Model Checking. 2 Part 1 : Motivation.
Advertisements

A Randomized Satisfiability Procedure for Arithmetic and Uninterpreted Function Symbols Sumit Gulwani George Necula EECS Department University of California,
Jeremy S. Bradbury, James R. Cordy, Juergen Dingel, Michel Wermelinger
1 Knowledge Representation Introduction KR and Logic.
Introductory Mathematics & Statistics for Business
1 Probability and the Web Ken Baclawski Northeastern University VIStology, Inc.
Slide 1 of 18 Uncertainty Representation and Reasoning with MEBN/PR-OWL Kathryn Blackmond Laskey Paulo C. G. da Costa The Volgenau School of Information.
International Technology Alliance In Network & Information Sciences International Technology Alliance In Network & Information Sciences 1 Interference.
Combining Like Terms. Only combine terms that are exactly the same!! Whats the same mean? –If numbers have a variable, then you can combine only ones.
Combining Like Terms. Only combine terms that are exactly the same!! Whats the same mean? –If numbers have a variable, then you can combine only ones.
0 - 0.
Addition Facts
CS4026 Formal Models of Computation Part II The Logic Model Lecture 8 – Search and conclusions.
Geometry of Dempsters rule NAVLAB - Autonomous Navigation and Computer Vision Lab Department of Information Engineering University of Padova, Italy Fabio.
Génération de jeux de test pour les programmes de règles 1 er juillet 2009 ILOG Chair of Software Engineering Freiburg Universität Bruno Berstel
IONA Technologies Position Paper Constraints and Capabilities for Web Services
Computer Science CPSC 322 Lecture 3 AI Applications.
Efficient Top-k Search across Heterogeneous XML Data Sources Jianxin Li 1 Chengfei Liu 1 Jeffrey Xu Yu 2 Rui Zhou 1 1 Swinburne University of Technology.
1 Knowledge Based Systems (CM0377) Lecture 11 (Last modified 26th March 2001)
FT228/4 Knowledge Based Decision Support Systems
Structures. Procedural (Imperative) Languages Procedural languages work on the basis of explicitly telling the computer ‘how to do something’; by using.
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Detecting Spam Zombies by Monitoring Outgoing Messages Zhenhai Duan Department of Computer Science Florida State University.
An Adaptive System for User Information needs based on the observed meta- Knowledge AKERELE Olubunmi Doctorate student, University of Ibadan, Ibadan, Nigeria;
CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu Lecture 27 – Overview of probability concepts 1.
Introduction The concept of transform appears often in the literature of image processing and data compression. Indeed a suitable discrete representation.
IEOR 4004: Introduction to Operations Research Deterministic Models January 22, 2014.
ICS-171:Notes 8: 1 Notes 8: Uncertainty, Probability and Optimal Decision-Making ICS 171, Winter 2001.
BAYESIAN NETWORKS Ivan Bratko Faculty of Computer and Information Sc. University of Ljubljana.
Naïve Bayes. Bayesian Reasoning Bayesian reasoning provides a probabilistic approach to inference. It is based on the assumption that the quantities of.
Dempster-Shafer Theory
EXPERT SYSTEMS AND KNOWLEDGE REPRESENTATION Ivan Bratko Faculty of Computer and Info. Sc. University of Ljubljana.
Representations for KBS: Uncertainty & Decision Support
Fundamentals of Dempster-Shafer Theory presented by Zbigniew W. Ras University of North Carolina, Charlotte, NC College of Computing and Informatics University.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Uncertainty in Expert Systems (Certainty Factors).
Uncertainty Everyday reasoning and decision making is based on uncertain evidence and inferences. Classical logic only allows conclusions to be strictly.
B. Ross Cosc 4f79 1 Uncertainty Knowledge can have uncertainty associated with it - Knowledge base: rule premises, rule conclusions - User input: uncertain,
Bayesian Networks Using random variables to represent objects and events in the world –Various instantiations to these variables can model the current.
5/17/20151 Probabilistic Reasoning CIS 479/579 Bruce R. Maxim UM-Dearborn.
1 Slides for the book: Probabilistic Robotics Authors: Sebastian Thrun Wolfram Burgard Dieter Fox Publisher: MIT Press, Web site for the book & more.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6 [P]: Reasoning Under Uncertainty Section.
A Probabilistic Framework for Information Integration and Retrieval on the Semantic Web by Livia Predoiu, Heiner Stuckenschmidt Institute of Computer Science,
CS 547: Sensing and Planning in Robotics Gaurav S. Sukhatme Computer Science Robotic Embedded Systems Laboratory University of Southern California
Dempster-Shafer Theory SIU CS 537 4/12/11 and 4/14/11 Chet Langin.
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
EXPERT SYSTEMS Part I.
02 -1 Lecture 02 Agent Technology Topics –Introduction –Agent Reasoning –Agent Learning –Ontology Engineering –User Modeling –Mobile Agents –Multi-Agent.
Quiz 4: Mean: 7.0/8.0 (= 88%) Median: 7.5/8.0 (= 94%)
1 Robot Environment Interaction Environment perception provides information about the environment’s state, and it tends to increase the robot’s knowledge.
Belief-Function Formalism Computes the probability that the evidence supports a proposition Also known as the Dempster-Shafer theory Bayesian Formalism.
Estimating Component Availability by Dempster-Shafer Belief Networks Estimating Component Availability by Dempster-Shafer Belief Networks Lan Guo Lane.
Probabilistic Networks Chapter 14 of Dechter’s CP textbook Speaker: Daniel Geschwender April 1, 2013 April 1&3, 2013DanielG--Probabilistic Networks1.
CSC 480 Software Engineering Design by Contract. Detail Design Road Map Begin with architectural models  Class model: domain classes  Overall state.
Simultaneously Learning and Filtering Juan F. Mancilla-Caceres CS498EA - Fall 2011 Some slides from Connecting Learning and Logic, Eyal Amir 2006.
International Conference on Fuzzy Systems and Knowledge Discovery, p.p ,July 2011.
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
An argument-based framework to model an agent's beliefs in a dynamic environment Marcela Capobianco Carlos I. Chesñevar Guillermo R. Simari Dept. of Computer.
Probabilistic Robotics Probability Theory Basics Error Propagation Slides from Autonomous Robots (Siegwart and Nourbaksh), Chapter 5 Probabilistic Robotics.
Matching ® ® ® Global Map Local Map … … … obstacle Where am I on the global map?                                   
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Reasoning Under Uncertainty in Expert System
Dealing with Uncertainty
CSE-490DF Robotics Capstone
Overivew Occupancy Grids -Sonar Models -Bayesian Updating
Mechanical Engineering Department
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Modelling uncertainty in 3APL Johan Kwisthout Master Thesis

Motivation and Background 3APL uses logical formulae to represent and reason with agent beliefs which are either true or false, e.g. whether(rain)  temperature(low) However, in practice agents are confronted with uncertainty, e.g. ‘the chance or rain tomorrow is 70%’ How can we model this uncertainty in 3APL

Layout Introduction to 3APL Reasoning with uncertainty Dempster-Shafer theory Mapping Dempster-Shafer theory to logical formulae Reducing computational complexity Querying and updating Prototype implementation Conclusion and further research

Introduction to 3APL Agent programming language using beliefs, desires (goals) and intentions Basic actions revise belief base Practical reasoning rules reason on the goals and revise them {precondition} BasicAction {postcondition}{door_closed} OpenDoor {door_opened} Goals  guardNewGoalsTakeBus  bus_strikeTakeTaxi Concentrate on belief query and update

Reasoning with uncertainty Evidence: there is a bomb on location 3, with a certainty of 70% This could be denoted with a belief formula and a probability : b(3) : 0.7 But what does this exactly mean? 4 SAFE 3 BOMB? 2 BOMB 1 SAFE A mine-sweeper type of game with four locations

Reasoning with uncertainty With four locations, we have 16 possible worlds: s(1)  s(2)  s(3)  s(4) … b(1)  b(2)  b(3)  b(4) b(3) has a set of models, possible worlds in which b(3) is true Evidence of 0.7 that one of these is the actual world

Reasoning with uncertainty Various methods available: Bayesian networks Dempster-Shafer theory Fuzzy Logic systems Ad-hoc implementations (e.g. MYCIN certainty factors)

Bayesian Networks Network with nodes (variables) and causal relations between them Models causal structures: IF flu, THEN headache AND fever

Bayesian Networks Drawbacks: - All conditional probabilities must be known beforehand - Causal structure does not really fit in with 3APL belief structure - Statically vs. dynamic - No ignorance modeling possible

Dempster-Shafer theory Frame of discernment Ω: set of hypotheses relevant to this domain Mass function assigns a value  0 to every subset of Ω such that If no information is available, m(Ω) = 1 and m(X) = 0 for X  Ω For example:

Dempster-Shafer theory A simple support function has evidence for only one set of hypotheses, for example This is not a simple support function because it has evidence for more than one set of hypotheses

Dempster-Shafer theory Belief function is defined to denote the probability of a set

Dempster-Shafer theory Separate pieces of evidence can be combined using Dempster’s Rule of Combination

D/S theory and agent beliefs With X ²  b(3) denoting, that b(3) is the maximal subset of hypotheses in Ω that are models of b(3) Consider the basic belief formula b(3):0.7. This basic belief formula could be modeled in Dempster-Shafer theory as follows:

D/S theory and agent beliefs H 1 : S1S2S3S4 H 5 : S1B2S3S4 H 9 : B1S2S3S4 H 13 : B1B2S3S4 H 2 : S1S2S3B4 H 6 : S1B2S3B4 H 10 : B1S2S3B4 H 14 : B1B2S3B4 H 3 : S1S2B3S4 H 7 : S1B2B3S4 H 11 : B1S2B3S4 H 15 : B1B2B3S4 H 4 : S1S2B3B4 H 8 : S1B2B3B4 H 12 : B1S2B3S4 H 16 : B1B2B3B4 Y is the maximal subset of hypotheses from Ω that are models of b(3) = {H 3,H 4,H 7,H 8,H 11,H 12,H 15,H 16 }

D/S theory and agent beliefs Each logical formula in the belief base can be represented by a mass function b(3):0.7  Multiple beliefs can be represented by the combination of these mass functions b(3):0.7  s(2):0.2  m b(3)  m s(2)

D/S theory and agent beliefs However, Dempster’s Rule of Combination leads to a combinatorial explosion Combining k mass functions leads to a mass function with 2 k separate clauses… …but this can be reduced with restrictions on the frame of discernment and on the mass functions

Simplifying combination rule Dempsters Rule of Combination can be simplified to If: The frame of discernment Ω is such that the combination of any mass function leads to a non- empy subset of Ω, and The mass functions that represent the belief formulae are simple support functions

Mass calculation Using this simplified rule, the mass value of any clause in the combination of the mass functions that represent the basic belief formulae in the belief base can be computed using the probabilities of that basic belief formulae, without having to calculate the complete combined mass function and therefore without having a combinatorial explosion.

Mass calculation Belief base b(1):p 1 b(2):p 2 s(3):p 3 Mass function m b(1)  m b(2)  m s(3) m 1 2  3 ( X ²  b 1  b 2 ) = m b1 (X ²  b 1 )  m b2 (X ²  b 2 )  m s3 (X =  ) = p 1  p 2  (1 – p 3 ) Because ( X ²  b 1  b 2 ) = (X ²  b 1 )  (X ²  b 2 )  (X =  )

Updating the belief base Update the belief base by just adding that belief formula, or recalculating the belief using Dempsters Rule of Combination Belief base b(1):p 1 b(2):p 2 s(3):p 3 Mass function m b(1)  m b(2)  m s(3) Belief base b(1):p 1 b(2):p 2 s(3):p 3 s(4):p 4 Mass function m b(1)  m b(2)  m s(3)  m s(4) Belief base b(1):p 1 b(2):p 2 s(3):p 3 b(2):p 4 Mass function m b(1)  m b(2)  m s(3)  m b(2)’ Belief base b(1):p 1 b(2):p 2 +p 4 -(p 2  p 4 ) s(3):p 3 Mass function m b(1)  (m b(2)  m b(2)’ )  m s(3)

Querying the belief base Query if a formula is deductible within a certain range by calculating the Belief value A formula  is deductible from a belief base BB with a certainty of Bel(m BB (X ²   )) where m BB is the combination of all mass functions that represent basic belief formulae in the belief base

Querying the belief base Belief base b(1):p 1 b(2):p 2 s(3):p 3 Mass function M BB = m b(1)  m b(2)  m s(3) For example, we can calculate in how far b 1  b 2 is deductible from BB by calculating Bel(m BB (X ²  b 1  b 2 ))

Prototype implementation Algorithms implemented in Prolog, using interaction clauses for pre-condition, post- condition and guards 3APL interpreter uses Prolog Engine for logical reasoning With ‘real’ implementation, also graphical user interface needs to be adapted etc.

Prototype implementation ?- add_fact(b1,0.4). Yes ?- add_fact(b2,0.6). Yes ?- add_fact(and(b2,b3),0.2). Yes ?- add_fact(or(b3,and(b3,b1)),0.3). Yes ?- show. b1, 0.4 b2, 0.6 and(b2, b3), 0.2 or(b3, and(b3, b1)), 0.3

Prototype implementation ?- show. b1, 0.4 b2, 0.6 and(b2, b3), 0.2 or(b3, and(b3, b1)), 0.3 ?- support(or(b1,b2)) ?- pre(or(b1,b2),[0.6,0.9]). Yes ?- pre(or(b1,b2),[0.9,1.0]). No

Prototype implementation ?- post([[and(b5,b2),0.2]]). Yes ?- show. b1, 0.4 b2, 0.6 and(b2, b3), 0.2 or(b3, and(b3, b1)), 0.3 and(b5, b2), 0.2 ?- support(or(b1,b2))

Conclusion and further work Dempster-Shafer theory is a convenient method to model uncertainty in 3APL Computational complexity can be controlled Efficient algorithm for calculating Bel(X) to be designed Some theoretical questions to be addressed (e.g. closed world assumption in relation to combination rule)

Questions?