Unit 5-1
Unit 5-1
• Planning representation
involves
1) State
Representation
2) Goal Representation
3) Action
Representation
Planning Representation
Consider a
delivery robot
with mail and
coffee to
deliver. Assume
a simplified
problem
domain with
four locations
Planning Representation
State Representation Goal Representation
• A state is represented with • Goal is a partially
a conjunction of positive specified state
literals using • A proposition satisfies a
• Logical Propositions: Poor Λ goal if it contains all the
Unknown
atoms of the goal and
• FOL literals: At(Plane1,OMA)
Λ At(Plane2,JFK) possibly others.
Example: Rich ^ Famous ^
• Closed World Assumption
• What is not stated are
Miserable satisfies the goal
assumed false Rich ^ Famous
Action Representation
Simple planning agent
• A simple planning agent is very similar to problem-solving agents.
• It constructs plans that achieve its goals, and then executes them.
• The limitations of the problem- solving approach motivates the
design of planning systems.
• To solve a planning problem using a state-space search approach
we would let the:
• initial state = initial situation
• goal-test predicate = goal state description
• successor function computed from the set of operators
• Once a goal is found, solution plan is the sequence of operators in
the path from the start node to the goal node
Algorithm of a simple planning
agent
1.Generate a goal to achieve
2. Construct a plan to achieve goal from current state
3. Execute plan until finished
4. Begin again with new goal
• The agent first generates a goal to achieve, and then
constructs a plan to achieve it from the current state.
• Once it has a plan, it keeps executing it until the plan is
finished, then begins again with a new goal.
Languages for Planning Problems
• STRIPS
– Stanford Research Institute Problem Solver
– Historically important
• ADL
– Action Description Languages
• PDDL
– Planning Domain Definition Language
Stanford Research Institute Problem Solver (STRIPS)
3.Value function
• The value of a state is the total amount of reward an agent
can expect to accumulate over the future, starting in that state.
• Values must continually be re-estimated from the sequence of
observations that an agent makes over its lifetime.
4. Optional model of the environment
• A model of the environment allows inferences to be made
about how the environment will behave.
• Example: Given a state and an action to be taken while in that
state, the model could predict the next state and the next
reward.
• Models are used for planning, which means deciding on a
course of action by considering possible future situations before
they are experienced
Adaptive learning
1. User Interface
• With the help of a user interface, the expert system interacts with the user, takes
queries as an input in a readable format, and passes it to the inference engine.
• After getting the response from the inference engine, it displays the output to the user.
• In other words, it is an interface that helps a non-expert user to communicate with the
expert system to find a solution.
2. Inference Engine(Rules of Engine)
• The inference engine is known as the brain of the expert system as it is the main
processing unit of the system.
• It applies inference rules to the knowledge base to derive a conclusion or deduce new
information.
• It helps in deriving an error-free solution of queries asked by the user.
3. Knowledge Base
• The knowledgebase is a type of storage that stores knowledge acquired from the
different experts of the particular domain.
• It is considered as big storage of knowledge.
• The more the knowledge base, the more precise will be the Expert System.
Expert Systems
• DENDRAL: It was an artificial intelligence project that was made as a
chemical analysis expert system. It was used in organic chemistry to
detect unknown organic molecules with the help of their mass spectra
and knowledge base of chemistry.
• MYCIN: It was one of the earliest backward chaining expert systems
that was designed to find the bacteria causing infections like
bacteraemia and meningitis. It was also used for the recommendation
of antibiotics and the diagnosis of blood clotting diseases.
• PXDES: It is an expert system that is used to determine the type and
level of lung cancer. To determine the disease, it takes a picture from
the upper body, which looks like the shadow. This shadow identifies
the type and degree of harm.
• CaDeT: The CaDet expert system is a diagnostic support system that
can detect cancer at early stages.
Architecture of Expert System
Architecture of Expert System
Explanation Facility
Knowledge acquisition facility
• Allows a user to understand how the
expert system arrived at certain • Provide convenient and efficient
conclusions or results. means of capturing and storing all
• For example: it allows a doctor to find out the components of the knowledge
the logic or rationale of the diagnosis base.
made by a medical expert system.
• Acts as an interface between
Inference Engine
experts and the knowledge base.
• Seeks information and relationships from
the knowledge base and provides User Interface
answers, predictions, and suggestions the • Specialized user interface software
way a human expert would. employed for designing, creating,
Knowledge Base updating, and using expert systems.
• Stores all relevant information, data, • The main purpose of the user
rules, cases, and relationships used by the interface is to make the
expert system.
development and use of an expert
• It uses rules, If-then statements, fuzzy
logic system easier for users and decision
Advantages and Limitations of
Expert Systems