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 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)
- Start with initial facts in working memory.
- Find all rules whose premises are satisfied.
- Resolve conflicts if several rules fire (priority, recency, specificity).
- Fire the chosen rule: add its conclusion to working memory.
- Repeat until the goal is reached or no new facts can be derived.
Backward chaining (goal-driven)
- Start with the goal as a subgoal.
- If the subgoal is already a known fact, succeed.
- Find rules whose conclusion matches the subgoal.
- Add the rule’s premises as new subgoals (all must be proved for an AND rule).
- Recursively prove subgoals, backtracking on failure.
- If all premises of a rule are proved, conclude the subgoal; otherwise fail.
Contract net protocol
- Manager decomposes a task into subtasks.
- Manager announces a task to potential contractors (call for proposals).
- Contractors evaluate and submit bids.
- Manager evaluates bids and awards the contract to the best contractor.
- Contractor performs the task and reports the result.
- Manager may repeat for remaining subtasks.
Expert-system operation
- User enters problem data via the interface.
- Data is stored in working memory.
- Inference engine matches knowledge-base rules against working memory.
- Fired rules add new facts; the explanation module records reasoning.
- Final conclusion is presented to the user.
Drawing the diagram…
Formulas
- Utility of a state: , where is a state; higher value means more preferred.
- Expected utility of action : , where is the probability of outcome given action .
- Rational choice: .
- Rule notation: means “if and then ”.
Worked examples
Example 1 (Forward chaining). Rules: R1: ; R2: ; R3: . Initial facts: .
- Step 1: Facts = . R1 premises and satisfied → add . Facts = .
- Step 2: R2 premise satisfied → add . Facts = .
- Step 3: R3 premises and satisfied → add . Facts = .
- Final derived fact: . Order of derivation: .
Example 2 (Backward chaining). Rules: r1: ; r2: ; r3: ; r4: . Goal: . Facts: .
- Goal : r4 concludes , need .
- Subgoal : r3 concludes , need and . is fact; need .
- Subgoal : r2 concludes , need .
- Subgoal : r1 concludes , need and —both facts.
- proved → proved → proved (since and ) → proved. Order of subgoals: .
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 = .
(Each percept maps to exactly one action; the table has 8 rows, not 16.)
Comparison
| Agent type | Basis for action | Internal state | Handles | Limitation |
|---|---|---|---|---|
| Simple reflex | Condition–action rules | None | Fully observable, deterministic | Fails under partial observability |
| Model-based reflex | Rules + internal model | Yes | Partial observability | Model may be inaccurate |
| Goal-based | Goals and planning | Yes + goals | Future outcomes, goal achievement | May not trade off multiple goals |
| Utility-based | Utility function | Yes + utility | Trade-offs, uncertainty | Requires utility values |
| Learning | Performance element + critic | Yes + learning | Unknown environments | Needs feedback |
| Feature | Forward chaining | Backward chaining |
|---|---|---|
| Direction | Data-driven | Goal-driven |
| Starts with | Known facts | Goal |
| Applies rules | To derive new facts | To find supporting facts |
| Typical use | Monitoring, many facts | Diagnosis, few facts |
| UGC key (P1) | Data-driven | Goal-driven |
| Feature | Expert system | Intelligent agent |
|---|---|---|
| Autonomy | Limited; relies on user input | High; acts on behalf of user |
| Environment | Narrow, often static | Dynamic, possibly multi-agent |
| Knowledge | Explicit rules in knowledge base | Can learn and adapt |
| Focus | Problem solving in a specialty | Perception, action, goals |
Revision summary
- Forward chaining = data-driven; backward chaining = goal-driven.
- Utility-based agent handles happy/unhappy states via .
- 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:
- Define an agent, rational agent, and software agent, and distinguish each from a conventional object.
- List and explain the four properties of intelligent agents: autonomy, reactivity, proactivity, social ability.
- Identify the type of agent from a scenario (simple reflex, model-based, goal-based, utility-based, learning).
- Trace forward chaining on a set of if–then rules and state the final derived fact.
- Trace backward chaining from a goal and list the subgoals in order.
- Describe the components of an expert system and match each to its function.
- Explain the contract net protocol steps: announcement, bidding, award, execution.
- Compare forward and backward chaining in a table.
- Distinguish expert systems from intelligent agents.
- Classify an environment using standard dimensions (observable, deterministic, etc.).
Attempt the PARIKSHA sub-topic test first, then the subject test.