Habib Ullah qamar Mscs(se)

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence in the 21 st Century S. Lucci / D. Kopec Chapter 5: Logic in Artificial Intelligence 1.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Logic Use mathematical deduction to derive new knowledge.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
Knowledge Representation Methods
FT228/4 Knowledge Based Decision Support Systems Rule-Based Systems Ref: Artificial Intelligence A Guide to Intelligent Systems Michael Negnevitsky – Aungier.
Introduction to AI & AI Principles (Semester 1) WEEK 8 (07/08) [Barnden’s slides only] John Barnden Professor of Artificial Intelligence School of Computer.
First order logic (FOL) first order predicate calculus.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
The Science of Good Reasons
Artificial Intelligence Knowledge Representation.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Dr. Muhammed Al-Mulhem ICS An Introduction to Logical Programming.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
1-1 An Introduction to Logical Programming Sept
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Artificial Intelligence Knowledge Representation.
Lecture 14. Recap Problem Solving GA Simple GA Examples of Mutation and Crossover Application Areas.
Artificial Intelligence Logical Agents Chapter 7.
Lecture 15. Recap Types of Knowledge: Declarative, Procedural, Meta, Heuristic, Structural. Knowledge Representation Techniques –Facts Types of Facts:
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Artificial Intelligence 4. Knowledge Representation
Knowledge Representation Techniques
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Chapter 7. Propositional and Predicate Logic
Advanced Algorithms Analysis and Design
Lecture #1 Introduction
CSE15 Discrete Mathematics 01/23/17
CSNB 143 Discrete Mathematical Structures
Lecture 1 – Formal Logic.
Discrete Mathematics Logic.
The function of knowledge representation scheme is
Introduction to Prolog
Artificial Intelligence
Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
A More Realistic Example
CLASSICAL LOGIC and FUZZY LOGIC
Logic Programming Languages
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
CS201: Data Structures and Discrete Mathematics I
KNOWLEDGE REPRESENTATION
Back to “Serious” Topics…
Discrete Mathematics Logic.
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
ece 720 intelligent web: ontology and beyond
Logic of Informatics Introduction.
CS201: Data Structures and Discrete Mathematics I
Representations & Reasoning Systems (RRS) (2.2)
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Habib Ullah qamar Mscs(se) Reasoning and KR Habib Ullah qamar Mscs(se)

Artificial intelligence In computer science, artificial intelligence (AI), sometimes called machine intelligence, is intelligence demonstrated by machines. In Computer science defines AI research as the study of "intelligent agents": any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals. Colloquially, the term "artificial intelligence" is used to describe machines that copycat(mimic) "cognitive" functions that humans associate with other human minds, such as "learning" and "problem solving".

AI Cycle

AI Cycle Learning : the study of computer algorithms that improve automatically through experience. Reasoning : step-by-step reasoning that humans use when they solve puzzles or make logical deductions. KR : representation of data, information and experiment in KB. objects, properties, categories and relations between objects; Planning : able to make predictions about how their actions will change it—and be able to make choices

Knowledge and its types A well-focused subject area is referred to as a knowledge domain, for example, medical domain, engineering domain, business domain etc. Procedural knowledge: Describes how to do things, provides a set of directions of how to perform certain tasks, e.g., how to drive a car. Declarative knowledge: It describes objects, rather than processes. What is known about a situation, e.g. it is sunny today, and cherries are red.

Knowledge and its types Meta knowledge: Knowledge about knowledge, e.g., the knowledge that blood pressure is more important for diagnosing a medical condition than eye color. Heuristic knowledge: Rule-of-thumb, e.g. if I start seeing shops, I am close to the market. o Heuristic knowledge is sometimes called shallow knowledge. Structural knowledge: Describes structures and their relationships. e.g. various parts of the car fit together to make a car, or knowledge structures in terms of concepts, sub concepts, and objects.

Knowledge and its types

Representation Approaches and schemes that come to mind when we begin to think about representation – Pictures and symbols. This is how the earliest humans represented knowledge when sophisticated linguistic ystems had not yet evolved – Graphs and Networks – Numbers

Representation – An example

Formal representation - FACTS Facts are a basic block of knowledge (the atomic units of knowledge). They represent declarative knowledge (they declare knowledge about objects). A proposition is the statement of a fact. Each proposition has an associated truth value. It may be either true or false. In AI, to represent a fact, we use a proposition and its associated truth value, e.g.

Formal representation FACTS In AI, to represent a fact, we use a proposition and its associated truth value, e.g.

Formal Representation - Facts FACTS Types Single values – Multi valued an individual can only have one eye color, but may have many cars. Uncertain facts : it will probably be sunny today. 34% chances Fuzzy facts : Fuzzy facts are ambiguous in nature, e.g. the book is heavy/light. Object-Attribute-Value triplets Ahmed’s son is Ali : Object: Ahmed , Attribute: son , Value: Al

Formal Representation - Facts FACTS Types Single values – Multi valued an individual can only have one eye color, but may have many cars. Uncertain facts : it will probably be sunny today. 34% chances Fuzzy facts : Fuzzy facts are ambiguous in nature, e.g. the book is heavy/light. Object-Attribute-Value triplets Ahmed’s son is Ali : Object: Ahmed , Attribute: son , Value: Al

Formal Representation -facts Rules : are another form of KR. Durkin defines a rule as “A knowledge structure that relates some known information to other information that can be concluded or inferred to be true.” Components of a rule : A Rule consists of two components Antecedent or premise or the IF part Consequent or conclusion or the THEN part For example, we have a rule: IF it is raining THEN I will not go to school Premise: It is raining Conclusion: I will not go to school.

Formal Representation - facts Compound Rules: Multiple premises or antecedents may be joined using AND (conjunctions) and OR (disjunctions), e.g. IF it is raining AND I have an umbrella THEN I will go to school. IF it is raining OR it is snowing THEN I will not go to school.

Formal Representation-fatcs Types of Rules Relationship : are used to express a direct occurrence relationship between two events, e.g. IF you hear a loud sound THEN the silencer is not working. Recommendation : offer a recommendation on the basis of some known information, e.g. IF it is raining THEN bring an umbrella. Directive : like recommendations rule but they offer a specific line of action IF it is raining AND you don’t have an umbrella THEN wait for the rain to stop

Formal Representation- logic Just like algebra is a type of formal logic that deals with numbers, e.g. 2+4 = 6, propositional logic and predicate calculus are forms of formal logic for dealing with propositions. We will consider two basic logic representation techniques: –Propositional Logic –Predicate Calculus

Propositional logic Compound statements : Different propositions may be logically related and we can form compound statements of propositions using logical connectives. Common logical connectives are: AND OR NOT IF Then IF and only IF

Propositional logic

Practice of solving logic using truth table ¬(α ∨ β) ≡ (¬α ∧ ¬β) De Morgan (α ∧ (β ∨ γ)) ≡ ((α ∧ β) ∨ (α ∧ γ))

Predicate calculus Predicate Calculus is an extension of propositional logic that allows the structure of facts and sentences to be defined. With predicate logic, we can use expressions like Color( ball, blue) This allows the relationship of sub-sentence units to be expressed, e.g. the relationship between color, ball and blue in the above example. Due to its greater representational power, predicate calculus provides a mechanism for proving statements and can be used as a logic system for proving logical theorems.

Limitations of Propositional logic Propositions can only represent knowledge as complete sentences, e.g. a = the ball’s color is blue. Cannot analyze the internal structure of the sentence. No quantifiers are available, e.g. for-all, there-exists Propositional logic provides no framework for proving statements such as: All humans are mortal All women are humans Therefore, all women are mortals This is a limitation in its representational power.

Quantifiers Predicate calculus allows us to use quantifiers for statements. Quantifiers allow us to say things about some or all objects within some set. The logical quantifiers used in basic predicate calculus are universal(∀) and existential (∃) quantifiers. Universal is read as “for every” or “for all” and used in formulae to assign the same truth value to all variables in the domain, e.g. in the domain of numbers, we can say that (∀x) ( x + x = 2x). In words this is: for every x (where x is a number), x + x = 2x is true.

Quantifiers Existential quantifier : The symbol for the existential quantifier is ∃. It is read as “there exists”, “ for some”, “for at least one”, “there is one”, and is used in formulae to say that something is true for at least one value in the domain, e.g. in the domain of persons, we can say that (∃ x) (Person (x) ∧ father (x, Ahmed) ). In words this reads as: there exists some person, x who is Ahmed’s father.

Study material Chapter 7 TheITeducation.com

Thanks …… Habib ullah qamar