1. Gyanastra
  2. Artificial Intelligence
  3. Multi Agent Systems
  4. Agents Objects and Expert Systems
Free lesson, no account needed 10 min read 26 practice questions after it
Asked in past papers1 time
  • UGC NET2014

Artificial Intelligence · Multi Agent Systems

Agents Objects and Expert Systems

Overview

This lesson covers the core AI concepts of intelligent agents and expert systems, as tested in the Multi Agent Systems area of UGC NET Computer Science.
An agent perceives its environment and acts to achieve goals; an expert system is a rule-based agent that encodes human expertise in a narrow domain.
The syllabus expects you to know agent architectures, environment types, reasoning strategies (forward and backward chaining), and multi-agent coordination protocols.
Before studying this, you should be comfortable with basic state-space search and propositional logic. These notes follow the standard Russell & Norvig definitions and the classic expert-system architecture.

Key concepts

  • Agent: anything that perceives its environment through sensors and acts using actuators. A rational agent maximises its performance measure using its percept sequence and built-in knowledge.
  • PEAS: Performance measure, Environment, Actuators, Sensors—the standard description of a task environment.
  • Agent function maps percept sequences to actions; agent program implements it; agent architecture is the hardware/software platform.
  • Properties of intelligent agents: autonomy (acts without direct intervention), reactivity (responds to changes), proactivity (goal-directed initiative), social ability (interacts with other agents).
  • Simple reflex agent: uses condition–action rules on the current percept only. Works in fully observable, deterministic environments; fails under partial observability.
  • Model-based reflex agent: keeps an internal state using a model of the world (how the world evolves and what actions do) to handle partial observability.
  • Goal-based agent: uses explicit goals and plans sequences of actions; deliberates about the future.
  • Utility-based agent: uses a utility function U(s)U(s) to rank states and chooses actions maximising expected utility. Handles trade-offs and “happy/unhappy” states.
  • Learning agent: contains a learning element, performance element, critic, and problem generator; improves performance over time.
  • Software agent (T2): a computer program capable of acting on behalf of the user to accomplish a given computational task. It is more autonomous than a conventional software object, which only responds when called.
  • Environment types: fully/partially observable; deterministic/stochastic; episodic/sequential; static/dynamic; discrete/continuous; single-agent/multi-agent.
  • Multi-agent system (MAS): loosely coupled network of agents that interact, often to solve problems beyond individual capability.
  • Contract net protocol: task-sharing protocol with manager (announces task), contractors (submit bids), and award to the best bid.
  • Blackboard architecture: agents (knowledge sources) communicate via a shared data structure called the blackboard; a control mechanism selects which agent acts next.
  • Expert system: program using a knowledge base of facts and if–then rules and an inference engine to solve problems in a narrow domain.
  • Expert-system components:
    • Knowledge base: domain facts and rules.
    • Working memory: current problem facts.
    • Inference engine: applies rules to working memory to derive new facts or prove goals.
    • Explanation module: justifies reasoning (why/how).
    • User interface: interacts with user.
    • Knowledge acquisition module: helps experts add knowledge.
  • Reasoning strategies (P3): forward chaining (data-driven), backward chaining (goal-driven), problem reduction (decompose goals into subgoals, often using AND/OR graphs).
  • Expert-system development life cycle (typical order): problem identification → knowledge acquisition → knowledge representation → system design → implementation → testing → maintenance.

How it works

Forward chaining (data-driven)

  1. Start with initial facts in working memory.
  2. Find all rules whose premises are satisfied.
  3. Resolve conflicts if several rules fire (priority, recency, specificity).
  4. Fire the chosen rule: add its conclusion to working memory.
  5. Repeat until the goal is reached or no new facts can be derived.

Backward chaining (goal-driven)

  1. Start with the goal as a subgoal.
  2. If the subgoal is already a known fact, succeed.
  3. Find rules whose conclusion matches the subgoal.
  4. Add the rule’s premises as new subgoals (all must be proved for an AND rule).
  5. Recursively prove subgoals, backtracking on failure.
  6. If all premises of a rule are proved, conclude the subgoal; otherwise fail.

Contract net protocol

  1. Manager decomposes a task into subtasks.
  2. Manager announces a task to potential contractors (call for proposals).
  3. Contractors evaluate and submit bids.
  4. Manager evaluates bids and awards the contract to the best contractor.
  5. Contractor performs the task and reports the result.
  6. Manager may repeat for remaining subtasks.

Expert-system operation

  1. User enters problem data via the interface.
  2. Data is stored in working memory.
  3. Inference engine matches knowledge-base rules against working memory.
  4. Fired rules add new facts; the explanation module records reasoning.
  5. Final conclusion is presented to the user.
Figure. Notice that the inference engine uses the knowledge base and working memory, and sends results to the explanation module; the explanation module connects back to the user interface.

Formulas

  • Utility of a state: U(s)U(s), where ss is a state; higher value means more preferred.
  • Expected utility of action aa: EU(a)=∑rP(r∣a) U(r)EU(a) = \sum_{r} P(r \mid a) \, U(r), where P(r∣a)P(r \mid a) is the probability of outcome rr given action aa.
  • Rational choice: a∗=arg⁡max⁡aEU(a)a^* = \arg\max_{a} EU(a).
  • Rule notation: P∧Q→RP \land Q \rightarrow R means “if PP and QQ then RR”.

Worked examples

Example 1 (Forward chaining). Rules: R1: P∧Q→RP \land Q \rightarrow R; R2: R→SR \rightarrow S; R3: S∧T→US \land T \rightarrow U. Initial facts: P,Q,TP, Q, T.

  • Step 1: Facts = {P,Q,T}\{P,Q,T\}. R1 premises PP and QQ satisfied → add RR. Facts = {P,Q,T,R}\{P,Q,T,R\}.
  • Step 2: R2 premise RR satisfied → add SS. Facts = {P,Q,T,R,S}\{P,Q,T,R,S\}.
  • Step 3: R3 premises SS and TT satisfied → add UU. Facts = {P,Q,T,R,S,U}\{P,Q,T,R,S,U\}.
  • Final derived fact: UU. Order of derivation: R,S,UR, S, U.

Example 2 (Backward chaining). Rules: r1: P∧Q→RP \land Q \rightarrow R; r2: R→SR \rightarrow S; r3: S∧T→US \land T \rightarrow U; r4: U→VU \rightarrow V. Goal: VV. Facts: P,Q,TP, Q, T.

  • Goal VV: r4 concludes VV, need UU.
  • Subgoal UU: r3 concludes UU, need SS and TT. TT is fact; need SS.
  • Subgoal SS: r2 concludes SS, need RR.
  • Subgoal RR: r1 concludes RR, need PP and QQ—both facts.
  • RR proved → SS proved → UU proved (since SS and TT) → VV proved. Order of subgoals: V,U,S,RV, U, S, R.

Example 3 (Agent type). A robot car uses a camera to observe lanes, maintains a map of its position, and chooses actions to reach a destination while minimising fuel and time.
It has an internal model, goals, and trades off competing objectives. This is a utility-based agent (it maximises a utility function over multiple outcomes).
A thermostat that switches a heater on when temperature falls below 20°C is a simple reflex agent.

Example 4 (Expert-system components). Match List-I to List-II:

  • A. Working memory → iii. Holds current problem facts.
  • B. Inference engine → i. Applies rules to derive new facts.
  • C. Knowledge base → ii. Stores domain facts and rules.
  • D. Explanation module → iv. Justifies reasoning to the user.
    Answer: A-iii, B-i, C-ii, D-iv.

Example 5 (Lookup table size). An environment has 3 Boolean state variables (8 possible percepts) and 2 possible actions. A simple reflex agent uses a lookup table mapping each percept to one action.
Number of entries = number of possible percepts = 23=82^3 = 8.
(Each percept maps to exactly one action; the table has 8 rows, not 16.)

Comparison

Agent typeBasis for actionInternal stateHandlesLimitation
Simple reflexCondition–action rulesNoneFully observable, deterministicFails under partial observability
Model-based reflexRules + internal modelYesPartial observabilityModel may be inaccurate
Goal-basedGoals and planningYes + goalsFuture outcomes, goal achievementMay not trade off multiple goals
Utility-basedUtility functionYes + utilityTrade-offs, uncertaintyRequires utility values
LearningPerformance element + criticYes + learningUnknown environmentsNeeds feedback
FeatureForward chainingBackward chaining
DirectionData-drivenGoal-driven
Starts withKnown factsGoal
Applies rulesTo derive new factsTo find supporting facts
Typical useMonitoring, many factsDiagnosis, few facts
UGC key (P1)Data-drivenGoal-driven
FeatureExpert systemIntelligent agent
AutonomyLimited; relies on user inputHigh; acts on behalf of user
EnvironmentNarrow, often staticDynamic, possibly multi-agent
KnowledgeExplicit rules in knowledge baseCan learn and adapt
FocusProblem solving in a specialtyPerception, action, goals

Revision summary

  • Forward chaining = data-driven; backward chaining = goal-driven.
  • Utility-based agent handles happy/unhappy states via U(s)U(s).
  • Expert-system reasoning strategies: forward, backward, problem reduction.
  • Software agent acts on behalf of the user autonomously.
  • Simple reflex uses current percept only; model-based adds internal state.
  • Contract net: manager announces, contractors bid, manager awards.
  • Blackboard: shared data structure for agent communication.
  • Expert-system components: KB, WM, IE, explanation, UI, knowledge acquisition.
  • Rational agent maximises expected performance.
  • Agent properties: autonomy, reactivity, proactivity, social ability.
  • Environment dimensions: observable, deterministic, episodic, static, discrete, single/multi.
  • Conflict resolution is needed when multiple rules fire.

Previous-year exam insights

  • Direct concept: definition of software agent—check “acts on behalf of user”, not merely any program.
  • Chaining direction: forward = data-driven, backward = goal-driven. Trap: swapping the two.
  • Agent types: utility-based for trade-offs or happy/unhappy states.
    Trap: choosing goal-based when multiple objectives are traded.
  • Expert-system reasoning strategies: forward, backward, problem reduction.
    Trap: options with back propagation or boundary mutation.
  • Statement I/II on properties: reactivity is responding; proactivity is taking initiative. Do not mix them.
  • Match-the-list: expert-system components vs functions, agent types vs limitations, contract net roles.
  • Assertion/Reason on rationality: rational agent maximises expected performance; perfect rationality is computationally impossible in complex worlds.
  • Numeric on lookup table: entries = number of percepts (states), not states × actions.
  • Development life cycle order: problem identification first, maintenance last.
  • Contract net: manager awards to best bid based on evaluation criteria, not necessarily lowest cost.

Practice at PARIKSHA

You are ready for the PARIKSHA tests of this sub-topic when you can:

  1. Define an agent, rational agent, and software agent, and distinguish each from a conventional object.
  2. List and explain the four properties of intelligent agents: autonomy, reactivity, proactivity, social ability.
  3. Identify the type of agent from a scenario (simple reflex, model-based, goal-based, utility-based, learning).
  4. Trace forward chaining on a set of if–then rules and state the final derived fact.
  5. Trace backward chaining from a goal and list the subgoals in order.
  6. Describe the components of an expert system and match each to its function.
  7. Explain the contract net protocol steps: announcement, bidding, award, execution.
  8. Compare forward and backward chaining in a table.
  9. Distinguish expert systems from intelligent agents.
  10. Classify an environment using standard dimensions (observable, deterministic, etc.).

Attempt the PARIKSHA sub-topic test first, then the subject test.

Pages 1–2 of 2