Knowledge Representation and Reasoning: Dr. Anjali Diwan
Knowledge Representation and Reasoning: Dr. Anjali Diwan
REPRESENTATION AND
REASONING
DR. ANJALI DIWAN
KNOWLEDGE AND REASONING:
Examples:
Medical diagnosis --- physician diagnosing a patient
infers what disease, based on the knowledge he/she
acquired as a student, textbooks, prior cases
Common sense knowledge / reasoning ---
common everyday assumptions / inferences
e.g., “lecture starts at four” infer pm not am;
when traveling, I assume there is some way to get from the
airport to the hotel.
Logical agents:
Agents with some representation of the
complex knowledge about the world / its environment,
and uses inference to derive new information from that
knowledge combined with new inputs (e.g. via perception).
Key issues:
1- Representation of knowledge
What form? Meaning / semantics?
2- Reasoning and inference processes
Efficiency.
KNOWLEDGE-BASE AGENTS
• Key issues:
• Representation of knowledge knowledge base
• Reasoning processes inference/reasoning
•
Knowledge base = set of sentences in a formal language representing
facts about the world(*)
Both tasks may involve inference – i.e. how to derive new sentences from old
sentences
Logical agents – inference must obey the fundamental requirement that when one asks
a question to the knowledge base, the answer should follow from what has been
told to the knowledge base previously. (In other words the inference process should
not “make things” up…)
TYPES OF KNOWLEDGE IN AI
• Requirements:
• Adequacy (I) (also called completeness)
• Correctness (II) I/II/III
• Efficiency (III)
-Inference
-Acquisition ?
• Consider the question “Which student is the tallest?”
• Without a procedure to calculate max, the question
cannot be answered. (Needs Inferencing)
KNOWLEDGE REPRESENTATION
SCHEMES
1. Propositional calculus
2. Predicate calculus
3. Semantic net
4. Frames
Declarative Procedural
• Because it operates with 0 and 1, propositional logic is also known as Boolean logic.
• In propositional logic, symbolic variables are used to express the logic, and any symbol can be used to represent a
proposition, such as A, B, C, P, Q, R, and so on.
• Propositions can be true or untrue, but not both at the same time.
• An object, relations or functions, and logical connectives make up propositional logic.
• Logical operators are another name for these connectives.
• The essential parts of propositional logic are propositions and connectives.
• Connectives are logical operators that link two sentences together.
• Tautology, commonly known as a legitimate sentence, is a proposition formula that is always true.
• Contradiction is a proposition formula that is always false.
• Statements that are inquiries, demands, or opinions are not propositions, such as "Where is Rohini","How are
you", and "What is your name" are not propositions.
SYNTAX
• See text for formal rules.
• All of propositional + quantifiers, predicates,
functions, and constants.
• Variables can take on values of constants or terms.
• Term = reference to object
• Variables not allowed to be predicates.
• E.G. What is the relationship between Bill and Hillary?
• Text Notation: variables lower case, constants
upper
• Prolog Notation: variables are upper case, etc
SYNTAX OF PROPOSITIONAL LOGIC
The allowed sentences for knowledge representation are defined by the syntax of propositional logic.
• Propositions are divided into two categories:
• Atomic Propositions:
• Simple assertions are referred to as atomic propositions. It is made up of only one proposition sign. These are the sentences that
must be true or untrue in order to pass.
• Compound propositions:
• Simpler or atomic statements are combined with parenthesis and logical connectives to form compound propositions.
20
LIMITATIONS OF PROPOSITIONAL LOGIC
• This is not possible to represent relations like ALL, some, or none with
propositional logic. Example:
• All the girls are intelligent.
• Some apples are sweet.
• The expressive power of propositional logic is restricted.
• We can't explain propositions in propositional logic in terms of their qualities
or logical relationships.
PROPOSITIONAL LOGIC CAN’T SAY
REPRESENTATION
SYSTEMS
KNOWLEDGE 3
● Types of knowledge
– objects
– events
– procedures
– relations
– mental states
– meta knowledge
PROPERTIES OF 4
REPRESENTATION SYSTEMS
● Representational adequacy
– ability to represent the required knowledge
● Inferential adequacy
– ability to manipulate knowledge
⇒ produce new knowledge
● Inferential efficiency
– ability to direct inference methods into productive directions
– ability to respond with limited resources (time, storage)
● Acquisitional efficiency
– ability to acquire new knowledge
– ideally, automatically
GOLDBACH’S CONJECTURE
CATEGORIES AND
OBJECTS
Philipp Koehn
CATEGORIES 6
● Subcategories
– for instance Subset(Basketballs, Ball)
– abbreviated as Basketballs ⊂ Ball
CATEGORIES
● Disjoint({Animals, Vegetables})
● ExhaustiveDecomposition(
{Americans, Canadians, Mexicans},
NorthAmericans)
• Definitional Networks
• Assertion Networks
• Implicational Networks
• Executable Network
• Learning Networks
• Hybrid Networks
SIX MOSTLY USED TYPES OF SEMANTIC NETWORKS
Definitional networks:
Implicational networks:
Executable networks:
• Include some mechanism, such as marker
passing or attached procedures, which can
perform inferences, pass messages, or
search for patterns and associations.
• Executable semantic networks contain
mechanisms that can cause some change to
the network itself.
SIX MOSTLY USED TYPES OF SEMANTIC NETWORKS
Learning networks:
• Build or extend their representations by
acquiring knowledge from examples.The new
knowledge may change the old network by
adding and deleting nodes and arcs or by
modifying numerical values, called weights,
associated with the nodes and arcs.
• The purpose of learning, both from a natural
and AI standpoint, is to create modifications
that enable the system to respond more
effectively within its environment.
SIX MOSTLY USED TYPES OF SEMANTIC NETWORKS
Hybrid networks:
• Combine two or more of the previous
techniques, either in a single network or in
separate, but closely interacting networks..
• System are usually called hybrids if their
component languages have different
syntax... The most widely used hybrid of
multiple network notations is the Unified
Modeling Language (UML), which was by
designed by three authors....who merged
their competing notations.
SEMANTIC NETWORKS ARE MAJORLY USED FOR
• Representing data
• Revealing structure (relations, proximity, relative importance)
• Supporting conceptual edition
• Supporting navigation
EXAMPLE
Frames are derived from semantic networks and later evolved into our modern-day
classes and objects
DESCRIPTION OF FRAMES
• Frames can support values more naturally than semantic nets (e.g. the value 25)
• Frames can be easily implemented using object-oriented programming
techniques.
• Demons allow for arbitrary functions to be embedded in a representation.
• But a price is paid in terms of efficiency, generality, and modularity !
• Inheritance can be easily controlled.
WHAT IS CONCEPTUAL GRAPHS
• A knowledge modeling approach based on semantic networks and first-order logic, first introduced by Sowa,
whereby knowledge is represented by concepts and relations linked together in a bipartite graph
• Conceptual graphs consist of a formal language to access knowledge and meaning.
• A conceptual graph is a graph or network of two kinds of nodes, concepts and relations.
• They have the full power of first-order logic and can represent model and higher-order logic.
• Conceptual graphs have a direct translation into natural language.
• Conceptual graphs (CGs) are a system of logic based on the existential graphs of Charles Sanders Peirce and the
semantic networks of artificial intelligence.
• They express meaning in a form that is logically precise, humanly readable, and computationally tractable. With
a direct mapping to language, conceptual graphs serve as an intermediate language for translating
computer-oriented formalisms to and from natural languages.
• With their graphic representation, they serve as a readable, but formal design and specification language
HIERARCHIES AND 10
INHERITANCE
● Example: saying ”elephants are mammals” is sufficient to know a lot about them
INHERITANCE
● IS relations:
Clyde
↓
Elephant
(category) Gray
↓
(p roperty)
● Transitive closure
Clyde is Elephant, Elephant is Gray ⇒ Clyde is Gray
STRICT 12
INHERITANCE
Philipp Koehn
LATTICE STRUCTURE WITH 13
STRICT INHERITANCE
● Trees: all conclusions you can reach by any paths are supported
Philipp Koehn
DEFEASIBLE 14
INHERITANCE
Philipp Koehn