Short Trip To Artificial Intelligence: Lecturer Adrian Groza
Short Trip To Artificial Intelligence: Lecturer Adrian Groza
Short Trip To Artificial Intelligence: Lecturer Adrian Groza
Warm-up
Short Trip Knowledge Representation and Reasoning
Outline
1 Short Trip
Semantic Web and Ontologies
Fuzzy expert systems
Reasoning with constraints
Knowledge acquisition
Case-based reasoning
Reasoning about knowledge
Model-based reasoning
2 Knowledge Representation and Reasoning
Reasoning
Logics
Knowledge engineering
Short Trip Knowledge Representation and Reasoning
Semantic Web
Social Web
Short Trip Knowledge Representation and Reasoning
Social Web
Semantic Web
Short Trip Knowledge Representation and Reasoning
Semantic Search
Short Trip Knowledge Representation and Reasoning
Semantic Search
Short Trip Knowledge Representation and Reasoning
Semantic Search
Short Trip Knowledge Representation and Reasoning
Semantic Search
Short Trip Knowledge Representation and Reasoning
Semantic Search
Short Trip Knowledge Representation and Reasoning
Rule-based systems
Fuzzy Knowledge
FuzzyLogic
←→
Paradoxes?
The world is made up of opposites, for The world is filled with contradictions, that
example male versus female, hot versus almost everything contains some of its
cold, dry versus wet, active versus opposite, or in other words, that things can
passive. Everything has to be A or not-A, be A and not-A at the same time.
it can’t be both.
Law of noncontradiction: A ∧ ¬A 6= 0 Law of excluded middle: A ∨ ¬A 6= 1
Short Trip Knowledge Representation and Reasoning
Example
A bottle of liquid has a probability of 0.5 of being rat poison
and 0.5 of being pure water.A second bottle’s contents, in the
fuzzy set of liquids containing lots of rat poison, is 0.5. 50%
probability means 50% chance that the water is clean. 50%
fuzzy membership means that the water has poison.
Remark
1 Probability deals with uncertainty, fuzzy logic deals with ambiguity and
vagueness.
2 Probability is only valid for future/unknown events; fuzzy set
membership continues after the event.
Short Trip Knowledge Representation and Reasoning
Example
A bottle of liquid has a probability of 0.5 of being rat poison
and 0.5 of being pure water.A second bottle’s contents, in the
fuzzy set of liquids containing lots of rat poison, is 0.5. 50%
probability means 50% chance that the water is clean. 50%
fuzzy membership means that the water has poison.
Remark
1 Probability deals with uncertainty, fuzzy logic deals with ambiguity and
vagueness.
2 Probability is only valid for future/unknown events; fuzzy set
membership continues after the event.
Short Trip Knowledge Representation and Reasoning
Example
A bottle of liquid has a probability of 0.5 of being rat poison
and 0.5 of being pure water.A second bottle’s contents, in the
fuzzy set of liquids containing lots of rat poison, is 0.5. 50%
probability means 50% chance that the water is clean. 50%
fuzzy membership means that the water has poison.
Remark
1 Probability deals with uncertainty, fuzzy logic deals with ambiguity and
vagueness.
2 Probability is only valid for future/unknown events; fuzzy set
membership continues after the event.
Short Trip Knowledge Representation and Reasoning
Example
A bottle of liquid has a probability of 0.5 of being rat poison
and 0.5 of being pure water.A second bottle’s contents, in the
fuzzy set of liquids containing lots of rat poison, is 0.5. 50%
probability means 50% chance that the water is clean. 50%
fuzzy membership means that the water has poison.
Remark
1 Probability deals with uncertainty, fuzzy logic deals with ambiguity and
vagueness.
2 Probability is only valid for future/unknown events; fuzzy set
membership continues after the event.
Short Trip Knowledge Representation and Reasoning
Constraints everywhere...
Constraints everywhere...
Simplification
Short Trip Knowledge Representation and Reasoning
Constraints everywhere...
Contradiction Redundancy
Combination
Simplification
Short Trip Knowledge Representation and Reasoning
Constraints everywhere...
Redundancy
Combination Contradiction
Simplification
Short Trip Knowledge Representation and Reasoning
Constraints everywhere...
Simplification
Short Trip Knowledge Representation and Reasoning
Knowledge acquisition
Datamining
”Everything about you is being tracked - get over it.”
Knowledge acquisition
Datamining
Definition
Extraction of interesting knowledge (rules, regularities patterns,
constraints ) from data in large datasets.
Case-based reasoning
Case-based Reasoning
Example
Medicine: Find which diagnosis was made for
similar symptoms in the past, and adapt
treatment appropriately.
Law: Find what judgment was made for
similar cases in the past (’precedents’), and
adapt appropriately
Short Trip Knowledge Representation and Reasoning
Model-based reasoning
Model-based Checking
The Intel Pentium bug (1994), was the ”disaster” that got
model checking on the map in the hardware industry
We examine the applications of computational tree logic to
verify the correctness of computer systems.
Short Trip Knowledge Representation and Reasoning
Outline
1 Short Trip
Semantic Web and Ontologies
Fuzzy expert systems
Reasoning with constraints
Knowledge acquisition
Case-based reasoning
Reasoning about knowledge
Model-based reasoning
2 Knowledge Representation and Reasoning
Reasoning
Logics
Knowledge engineering
Short Trip Knowledge Representation and Reasoning
Pyramid of knowledge
ASCII rules
Intelectual origins
Intelectual origins
Bool
Short Trip Knowledge Representation and Reasoning
Intelectual origins
the syllogism
2 17t h century
the algebra of thoughts
human reasoning can be reduced to calculations
Leibniz
3 19t h century
boolean logic
Bool
Short Trip Knowledge Representation and Reasoning
Intelectual origins
1 19t h century
analitycial engine (Babbage, 1791-1871)
the first programmer
Babbage
2 20t h century Imitationgame
Turing’s (1912-1954) ideas about thought and
computation McCarthy
McCarthy (1927) reasoning can be reduced to
calculations
Short Trip Knowledge Representation and Reasoning
Intelectual origins
1 19t h century
analitycial engine (Babbage, 1791-1871)
the first programmer
Babbage
Imitationgame
Intelectual origins
1 19t h century
analitycial engine (Babbage, 1791-1871)
the first programmer
Babbage
Imitationgame
Intelectual origins
1 19t h century
analitycial engine (Babbage, 1791-1871)
Babbage
the first programmer
Imitationgame
2 20t h century
Turing’s (1912-1954) ideas about thought and
computation
McCarthy (1927) reasoning can be reduced to
calculations McCarthy
Short Trip Knowledge Representation and Reasoning
Reasoning
Cognitive Processing
Short Trip Knowledge Representation and Reasoning
Reasoning
1
Example taken from D. M. Gabbay, Sampling Logic and Argumentation
Networks: A Manifesto, 2010
Short Trip Knowledge Representation and Reasoning
Reasoning
1
Example taken from D. M. Gabbay, Sampling Logic and Argumentation
Networks: A Manifesto, 2010
Short Trip Knowledge Representation and Reasoning
Reasoning
Reasoning
Remarks
Short Trip Knowledge Representation and Reasoning
Reasoning
Remarks
Short Trip Knowledge Representation and Reasoning
Reasoning
Remarks
Short Trip Knowledge Representation and Reasoning
Reasoning
Remarks
Short Trip Knowledge Representation and Reasoning
Reasoning
Reasoning
Reasoning
Reasoning
Logical Inferences
Reasoning
Deduction:
apply a general principle to infer some fact.
r1 : A ⇒ B
B is true.
A is true.
Short Trip Knowledge Representation and Reasoning
Reasoning
Deduction:
apply a general principle to infer some fact.
r1 : A ⇒ B
B is true.
A is true.
Abduction
: allows inffering A as an explanation of B
r1 : A ⇒ B
A is true.
B is true.
r2 : C ⇒ B → nondeterminism
Reasoning
Reasoning
Reasoning
Reasoning
Logics
Logics
FOL Warm-up
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Short Trip Knowledge Representation and Reasoning
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Short Trip Knowledge Representation and Reasoning
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
FOL Warm-up
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
There is a woman who likes all men who are not vegetarians
Short Trip Knowledge Representation and Reasoning
Logics
FOL Warm-up
Everyone in this room is smart
∀x In(x, F ) ⇒ Smart(x)
Someone in the other room is smart
Logics
Warm-Up
Logics
Warm-Up
Logics
Warm-Up
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Logics
Warm-Up
There is a barber who shaves all men in town who do not
shave themselves.
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Logics
Warm-Up
There is a barber who shaves all men in town who do not
shave themselves.
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Logics
Warm-Up
There is a barber who shaves all men in town who do not
shave themselves.
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Logics
Warm-Up
There is a barber who shaves all men in town who do not
shave themselves.
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Logics
Warm-Up
There is a barber who shaves all men in town who do not
shave themselves.
Politicians can fool all of the people some of the time, but
they can’t fool all of the people all of the time.
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering
Knowledge engineering