7 Expert Systems

Artificial Intelligence · Unit 7

Expert Systems

Exam-focused notes for Expert Systems (Artificial Intelligence, BIT252): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Expert Systems in short

An expert system is a program that copies the decision-making skill of a human expert in one narrow field. This chapter explains what expert systems are, how they are built, and how they reach conclusions.

Expert Systems: notes

Expert system definition and purpose

An expert system (ES) is a computer program that solves problems in one specific area as a human expert would. It uses stored expert knowledge and an inference process. Examples are MYCIN (diagnosis of blood infections), DENDRAL (finding molecular structures), and PROSPECTOR (mineral exploration).

Purposes:

  • Make rare expert knowledge available to many people at low cost.
  • Give consistent answers without tiredness or emotion.
  • Keep knowledge safe when an expert leaves.
  • Help in diagnosis, planning, design, monitoring, prediction, and training.
  • Explain the reasons for the advice given.

Limits: they work only in a narrow domain and lack common sense. They usually cannot learn by themselves. They also need effort to build and update.

Expert system architecture

An expert system has these main parts:

User <--> User interface <--> Inference engine <--> Knowledge base
                                  |   |
                       Explanation facility   Working memory
                                  |
        Knowledge engineer --> Knowledge acquisition module
  • Knowledge base: the expert's facts and rules, mostly as IF-THEN rules.
  • Inference engine: the reasoning part that applies rules to facts to reach conclusions.
  • Working memory: facts about the current problem, supplied by the user or derived.
  • User interface: lets the user ask questions and see results, often in near-natural language.
  • Explanation facility: answers "why do you ask this?" and "how did you reach this?".
  • Knowledge acquisition module: helps the knowledge engineer add and edit knowledge.

How it works: the user enters the problem. The inference engine matches facts in the working memory with the rules in the knowledge base. It fires suitable rules, adds new facts, and repeats until it reaches a conclusion. The interface then shows the answer and the reasoning.

What this unit covers

  • Expert system definition and purpose
  • Expert system architecture
  • Components of expert systems
  • Development of expert systems
  • Expert system operation and inference

Expert system architecture

2082 · 5 marks

How expert system works? Explain the architecture of expert system. [2+3]

--- An expert system is an AI program that simulates the decision-making ability of a human expert in a specific domain. It works by: 1. Knowledge Acquisition: The system collects knowledge from human experts and stores it in a knowledge base in the form of rules (IF-THEN rules), facts, and heuri...

Open this answer on its own page →

2080 · 5 marks

Explain the architecture of expert system. [5]

Note: Reference notes were not available for this topic; the following answer is based on standard Computer Science / AI curriculum content appropriate for BSc CSIT. --- An Expert System is an AI-based computer program that simulates the knowledge and reasoning ability of a human expert in a spec...

Open this answer on its own page →

Expert system definition and purpose

2079 · 5 marks

Define expert system. Describe its architecture. [5]

Show solved answer

Expert System: Definition and Architecture

Definition

An Expert System is an AI-based computer program that simulates the knowledge and reasoning ability of a human expert in a specific domain to solve complex problems and provide expert-level advice or decisions.

Note: Standard AI/Knowledge Engineering content is used here as no specific curriculum notes were found.

An expert system captures the knowledge of human specialists and makes it available to non-experts, enabling them to solve problems that would otherwise require human expertise (e.g., medical diagnosis, fault detection, financial planning).


Architecture of an Expert System

The major components of an expert system are:

+---------------------------+
|      User Interface       |
+---------------------------+
           |
+---------------------------+
|     Inference Engine      |
+---------------------------+
     |              |
+----------+   +----------+
| Knowledge|   | Working  |
|   Base   |   | Memory   |
+----------+   +----------+
     |
+----------+
|Knowledge |
|Acquisition|
|  Module  |
+----------+
     |
[Domain Expert / Knowledge Engineer]

1. Knowledge Base

  • Stores domain-specific knowledge in the form of:
    • IF-THEN rules (production rules)
    • Facts, heuristics, and procedures
  • It is the core of the expert system
  • Example: IF fever > 102 AND cough = yes THEN diagnose = flu

2. Inference Engine

  • The brain of the expert system
  • Applies logical rules to the knowledge base to derive conclusions
  • Uses two main reasoning strategies:
    • Forward Chaining: Starts from known facts and derives conclusions (data-driven)
    • Backward Chaining: Starts from a goal and works backward to find supporting facts (goal-driven)

3. Working Memory (Database)

  • Stores temporary facts and intermediate results during a consultation session
  • Updated dynamically as the inference engine processes rules

4. User Interface

  • Allows the user to interact with the expert system
  • Accepts queries and displays results/recommendations in a user-friendly manner

5. Explanation Module (Justifier)

  • Explains how a conclusion was reached
  • Answers questions like "Why?" and "How?" to build user trust

6. Knowledge Acquisition Module

  • Facilitates the process of adding, updating, or modifying knowledge in the knowledge base
  • Acts as an interface between the domain expert and the knowledge base

Summary Table

ComponentRole
Knowledge BaseStores rules and facts
Inference EngineApplies reasoning to derive conclusions
Working MemoryHolds temporary/session data
User InterfaceInteraction with end user
Explanation ModuleJustifies decisions
Knowledge AcquisitionUpdates knowledge base

Advantages

  • Available 24/7, consistent, and does not forget
  • Can handle complex, domain-specific problems
  • Useful where human experts are scarce
Open this answer on its own page →

Components of expert systems

2080.2 · 5 marks

Describe the components of expert system. [5]

An expert system is an AI-based computer program that simulates the knowledge and reasoning ability of a human expert in a specific domain. It is built from several key components that work together to solve complex problems. --- - The core component of an expert system. - Stores domain-specific ...

Open this answer on its own page →

Development of expert systems

0 · 5 marks

How do you develop expert system? [5]

Note: The reference notes did not contain specific content on this topic. The following answer is based on standard AI/Knowledge Engineering curriculum as taught in BSc CSIT. --- An expert system is developed through a structured process involving several phases. The key steps are: --- - Identify...

Open this answer on its own page →