Unit 3 Artificial Intelligence
Unit 3 Artificial Intelligence
Reasoning
Reasoning
Reasoning in Artificial Intelligence (AI) is the logical process of drawing conclusions, making
predictions, or constructing solutions based on existing knowledge.
It plays a crucial role in enabling AI systems to simulate human-like decision-making and
problem-solving capabilities
Monotonic Reasoning
Monotonic Reasoning is the process that does not change its direction or can say that it moves in
the one direction.
•Monotonic Reasoning will move in the same direction continuously means it will either move in
increasing order or decrease.
•Butsince Monotonic Reasoning depends on knowledge and facts, It will only increase and will
never decrease in this reasoning.
•Example:
Deductive Reasoning?
Deductive reasoning is a logical process where one draws a specific conclusion from a
general premise. It involves using general principles or accepted truths to reach a
specific conclusion.
For example, if the premise is "All birds have wings," and the specific observation is
"Robins are birds," then deducing that "Robins have wings" is a logical conclusion.
•In deductive reasoning, the conclusion is necessarily true if the premises are true.
•It
follows a top-down approach, starting with general principles and applying them to
specific situations to derive conclusions.
•It
helps in making predictions and solving puzzles by systematically eliminating
possibilities until only one logical solution remains.
Inductive Reasoning?
Inductive reasoning is a logical approach to making inferences, or conclusions. People often use
inductive reasoning informally in everyday situations .When you use a specific set of data or existing
knowledge from past experiences to make decisions, you're using inductive reasoning.
Example: AI-Based Email Classification
Scenario: An AI system is designed to classify emails into categories such as "urgent," "important,"
"normal," and "spam."
Process:
Data Collection: The AI starts by analyzing thousands of emails that are already labeled by users. It
observes various features such as keywords, sender information, time of email, and user interactions
(like whether emails are opened quickly and replied to, or marked as spam).
Pattern Recognition: Through its analysis, the AI notices certain patterns:
Emails containing words like "urgent" or "immediately" and sent from recognized contacts are often labeled as
"urgent."
Emails from known commercial sources containing words like "sale" or "offer" are frequently marked as "spam."
Emails that are not from contacts but contain formal language and no promotional content are often classified as
"important."
Generalization: Using these observations, the AI develops a general set of rules or a model to
predict the category of new emails. For example, it might generalize that any email from a recognized
contact that includes the word "urgent" should be classified as "urgent."
Application: When new emails arrive, the AI applies these generalized rules to classify them
based on the learned patterns.
Outcome: The AI uses inductive reasoning to generalize from specific instances to broader rules,
Abductive Reasoning?
Abductive reasoning is a type of reasoning that emphasizes drawing inferences from the existing data. There
is no assurance that the conclusion drawn is accurate, though, as the information at hand could not be
comprehensive.
Conclusions drawn from abductive reasoning are likely to be true. This type of reasoning determines the most
likely conclusion for a set of incomplete facts by taking it into account.
Although abductive reasoning is a kind of deductive reasoning, the accuracy of the conclusion cannot be
guaranteed by the information at hand.
Example of Abductive Reasoning : Let's take an example: Suppose you wake up one morning and find that
the street outside your house is wet.
2.Possible Hypotheses:
Additional Information: You recall that the weather forecast predicted rain for last night.
Abductive Reasoning Conclusion: The most plausible explanation for the wet street, given the forecast and
the lack of any other visible cause, is that it rained last night.
Sources of Uncertainty in
Reasoning
Uncertainty is omnipresent because of
incompleteness and incorrectness.
Uncertainty in Data : data derived from assumptions
Uncertainty in Knowledge Representation :
limited expressiveness of the representation mechanism
Uncertainty in Rules : conflict resolution and
incomplete because some conditions are unknown
Reasoning and KR
Non-Monotonic Reasoning:
In a non-monotonic reasoning system new information can be added which
will cause the deletion or alteration of existing knowledge. For example,
imagine you have invited someone to your house for dinner.
In the absence of any other information you may make an assumption that
your guest eats meat and will like chicken. Later you discover that the guest
is in fact a vegetarian and the inference that your guest likes chicken
becomes invalid.
Asystem to deal with such a non-monotonic knowledge is the Truth
Maintenance System (TMS).
The main object of the TMS is the maintenance of the knowledge base.
A TMS is a mechanism for keeping track of dependencies and detecting
inconsistencies. It is also called reason maintenance system.
TMS which implements to permit a form of non-monotonic reasoning by
permitting the addition of changing to a knowledge base.
A Truth Maintenance System (TMS), also known as a Reason
Maintenance System, is a type of artificial intelligence (AI) system
designed to handle situations where information might be contradictory
or uncertain. It essentially helps manage the knowledge base of an AI
system by tracking how beliefs and assumptions are formed.
Here's how a TMS works:
1.Knowledge Representation: The TMS maintains a record of all the
facts and beliefs within the system. This includes both base facts (initial
assumptions) and derived facts (conclusions reached through reasoning).
2.Dependency Tracking: The key aspect of a TMS is that it tracks the
dependencies between these facts. For each derived fact, the TMS
stores the specific base facts and reasoning steps that led to its
conclusion. This creates a network of relationships between beliefs.
3.Maintaining Consistency: Imagine a scenario where a new piece of
information contradicts existing beliefs. This can lead to inconsistencies
in the knowledge base. The TMS detects such inconsistencies and tries to
maintain a coherent view.
Architecture of Truth Management System
Role of Truth Maintenance System
1. The main job is TMS is to maintain “consistency of knowledge” being used by the
problem solver and not to perform any inference functions.
2. TMS also gives the inference – component, the latitude to perform non-monotonic
inferences.
3. When discoveries made, this more recent information can displace previous conclusions
that are no longer valid.
4. the TMS maintains dependency records for all such conclusion.
5. The procedure uses to perform this process that says “Dependency-Directed Back-
tracking“.
6. The records maintain in the form of a “Dependency-Network“.
The nodes in the network represent KB entries such as premises, conclusions, inference rules and the like.
Attached to the nodes are justifications that represent the inference steps from which the node derived.
Working Principle of TMS
The Inference Engine (IE) solves domain problems based on its current
belief set, while the TMS maintains the currently active belief set. The
updating process is incremental. After each inference, information
exchange between the two components. The IE tells the TMS what
deductions it has made. The TMS, in turn, asks a question about current
beliefs and reasons for failure. If maintains a consistent set of beliefs for
the IE to work with even if now knowledge is added or removed.
Step1: Say, The KB contains the propositions P, P->Q and modus ponens.
Step2: From this, the IE would rightfully conclude Q and add this
conclusion to the KB.
Step3: Later, if it was learned that P was appropriate, it would be added
to the KB resulting in a contradiction.
Step4: Consequently, it would be necessary to remove P to eliminate the
inconsistency.
TruthMaintenance Systems can have different
characteristics: