Knowledge Representation 14Nov
Knowledge Representation 14Nov
Introduction to AI Contents
1. Motivation: Knowledge vs Search
2. Knowledge Representation and Logic
Production rules
KNOWLEDGE
3. ideal
4. Semantic networks and frames world
REPRESENTATION 5.
6.
Ontologies
Default reasoning
Pedro Meseguer
7. Metaknowledge real
Institut d’Investigació en Intel·ligència Artificial (IIIA) 8. Uncertainty world
Consejo Superior de Investigaciones Científicas (CSIC)
9. Knowledge Engineering
10. Some names
2
11. Wrap-up
1 2
1. Knowledge: AI takes another route 1.How far can you go with plain search?
u Medical diagnosis (AI task, MYCIN)
u Hundred of symptoms
u If considered as a whole à huge state-space
u Data:
u All information from the patient before any deduction
u Silly or illogical questions (imagine asking a man for pregnancy)
u Change of paradigm: use knowledge to guide and limit search
u In the same way humans do to narrow possibilities
u Focus on what is relevant
u Perform search in a different way
3 4
u Generative AI does not use this approach
3 4
1
14/11/24
5 6
7 8
2
14/11/24
9 10
2.KR: Propositional logic — Truth tables (II) 2 KR: Predicate Logic (First-order Logic)
u Predicates over variables that run on a (finite) domain
both have the same
truth tables u Two quatifiers, universal and existential
u Perfect way to check the legal inferences:
u Example: for all x man(x) à mortal(x) // exists x teaches (x,Intro AI)
u (AàB) ßà(¬AvB) (??)
11 12
3
14/11/24
13 14
A rule from the MYCIN knowledge base. $AND and $OR are the
multivalued analogues of the standard Boolean AND and OR.
15 16
15 16
4
14/11/24
u Backward chaining: from the goals, as follows u Select one of these rules
u If external conditions are asked, ES behaviour is more u All matched rules become potentially aplicable
meaningful for the human operator u One of these rules is selected
17 18
u Its conditions are new subgoals to be achieved
17 18
u Simple concepts
19 20
5
14/11/24
21 22
21 22
23 24
6
14/11/24
Ontology Engineering
5. Ontologies: example 6. Default reasoning
Representation Does Tweety fly?
ontology engineering
Property u Tweety is a bird (belongs to the BIRD category)
type
Class ontology
RoadSign type type
u and birds fly, so Tweenty flies (simple inheritance)
approximation
subClassOf
correctness
completeness
B domainC A
ProhibitorySignD B shape
subClassOf
This is Tweety,
DangerWarningSign
subClassOf D C range
it has a broken wing à Tweety does not fly
subClassOf
type type
u Default reasoning:
ontologist roadsign_345 ontologist equilateral_triangle
shape u Inherit values
(philosopher) (informatician) 25
u Unless other some more specific information is available 26
25 26
27 28
7
14/11/24
29 30
31 32
8
14/11/24
33 34
u Combination: u Validation
degree of confidence of condition u Maintenance (hard task!)
degree of confidence of rule
u Generate the adequate data structures for handling
to produce
knowledge at run time
degree of confidence in conclusion
u Facts base
35 36
9
14/11/24
u (1927 — 2011)
u (1927 — 2016)
u MIT, full profesor Stanford
u Full professor MIT
u One of the big old names
u One of the founders (conference of Darmouth)
u Father of AI (conference of Darmouth)
u Worked on perceptrons
u Proposed circumscription (nonmonotonic reasoning) 37 38
37 38
u (?)
u (?) u University / Company ??
u Full profesor Carnegie-Mellon (Pittsburg) u Many contributions to knowledge representation
u Many contributions to expert systems u KL-ONE
u MYCIN (Univ. Stanford) 39 40
39 40
10
14/11/24
u Centainty factors
u Forward and backward chaining
u Usability by doctors
u (?) Canadian
u Ethical issues unsolved
u Full profesor Toronto univ.
u Caused an early ES shell: EMYCIN
u Many contributions to knowledge representation
u Theoretical work 41 42
41 42
43 44
11
14/11/24
45 46
Further reading
u Russel & Norvig 3rd ed :
47
47
12