Unit III
Unit III
AI TECHNOLOGIES
UNIT III
Contents
• Introduction
• Non-Monotonic and Monotonic Reasoning
• Bayes Theorem
• Bayesian Networks
• Fuzzy Logic
• NLP
• Speech Recognition
Uncertainty
• Till now, we have learned knowledge representation using
first-order logic and propositional logic with certainty, which
means we were sure about the predicates.
• With this knowledge representation, we might write A→B,
which means if A is true then B is true, but consider a situation
where we are not sure about whether A is true or not then we
cannot express this statement, this situation is called
uncertainty.
• So to represent uncertain knowledge, where we are not sure
about the predicates, we need uncertain reasoning or
probabilistic reasoning.
Uncertainty
• Causes of uncertainty:
• Following are some leading causes of
uncertainty to occur in the real world.
• Information occurred from unreliable sources.
• Experimental Errors
• Equipment fault
• Temperature variation
• Climate change.
Symbolic versus statistical
reasoning
• The (Symbolic) methods basically represent uncertainty belief
as being
• True,
• False, or
• Neither True nor False.
• Some methods also had problems with
• Incomplete Knowledge
• Contradictions in the knowledge.
Symbolic versus statistical
reasoning
• Statistical methods provide a method for representing beliefs
that are not certain (or uncertain) but for which there may be
some supporting (or contradictory) evidence.
• Statistical methods offer advantages in two broad scenarios:
• Genuine Randomness-- Card games are a good example. We
may not be able to predict any outcomes with certainty but we
have knowledge about the likelihood of certain items (e.g. like
being dealt an ace) and we can exploit this.
• Exceptions-- Symbolic methods can represent this. However if
the number of exceptions is large such system tend to break down.
Many common sense and expert reasoning tasks for example.
Statistical techniques can summarise large exceptions without
resorting enumeration.
Probability
• The basic approach statistical methods adopt to deal with
uncertainty is via the axioms of probability:
• Probabilities are (real) numbers in the range 0 to 1.
• A probability of P(A) = 0 indicates total uncertainty in A,
• P(A) = 1 total certainty
• Values in between some degree of (un)certainty.
• Probabilities can be calculated in a number of ways
• Probability =
Probability
• So given a pack of playing cards the probability of being dealt
an ace from a full normal deck is
= 4 (no.of aces) / 52 (no. of cards in deck)
= 1/13.
• Similarly the probability of being dealt a spade suit is
= 13 / 52 = 1/4.
• If you have a choice of number of items k from a set of
items n then the formula is applied to find the number of ways
of making this choice. (! = factorial).
• Conditional probability, P(A|B), indicates the probability of
event A given that we know event B has occurred.
Monotonic Reasoning
• In monotonic reasoning, once the conclusion is taken, then it
will remain the same even if we add some other information to
existing information in our knowledge base. In monotonic
reasoning, adding knowledge does not decrease the set of
prepositions that can be derived.
• To solve monotonic problems, we can derive the valid
conclusion from the available facts only, and it will not be
affected by new facts.
• Monotonic reasoning is not useful for the real-time systems, as
in real time, facts get changed, so we cannot use monotonic
reasoning.
• Monotonic reasoning is used in conventional reasoning systems,
and a logic-based system is monotonic.
• Any theorem proving is an example of monotonic reasoning.
Monotonic Reasoning
• Example:
Earth revolves around the Sun.
It is a true fact, and it cannot be changed even if we add another
sentence in knowledge base like, "The moon revolves around the
earth" Or "Earth is not round," etc.
Monotonic Reasoning
• Advantages of Monotonic Reasoning:
• In monotonic reasoning, each old proof will always remain valid.
• If we deduce some facts from available facts, then it will remain
valid for always.
• Disadvantages of Monotonic Reasoning:
• We cannot represent the real world scenarios using Monotonic
reasoning.
• Hypothesis knowledge cannot be expressed with monotonic
reasoning, which means facts should be true.
• Since we can only derive conclusions from the old proofs, so new
knowledge from the real world cannot be added.
Non-monotonic Reasoning
• In Non-monotonic reasoning, some conclusions may be
invalidated if we add some more information to our knowledge
base.
• Logic will be said as non-monotonic if some conclusions can
be invalidated by adding more knowledge into our knowledge
base.
• Non-monotonic reasoning deals with incomplete and uncertain
models.
• "Human perceptions for various things in daily life, "is a
general example of non-monotonic reasoning.
• Example: Let suppose the knowledge base contains the
following knowledge:
• Birds can fly
• Penguins cannot fly
• Pitty is a bird
• So from the above sentences, we can conclude that Pitty can fly.
• However, if we add one another sentence into knowledge base
"Pitty is a penguin", which concludes "Pitty cannot fly", so it
invalidates the above conclusion.
Non-monotonic Reasoning
• Advantages of Non-monotonic reasoning:
• For real-world systems such as Robot navigation, we can use non-
monotonic reasoning.
• In Non-monotonic reasoning, we can choose probabilistic facts or
can make assumptions.
• Disadvantages of Non-monotonic Reasoning:
• In non-monotonic reasoning, the old facts may be invalidated by
adding new sentences.
• It cannot be used for theorem proving.
Monotonic Reasoning Non-Monotonic Reasoning
1
Monotonic
Monotonic Reasoning is theReasoning
process which Non-monotonicvs Non-
Reasoning is the process
does not change its direction or can say that which changes its direction or values as the
monotonic Reasoning
it moves in the one direction. knowledge base increases.
• Speech is the most basic means of adult human communication. The basic goal
of speech processing is to provide an interaction between a human and a
machine.
• First, speech recognition that allows the machine to catch the words, phrases and
sentences we speak