UNIHIVE

Study Hub UNIPORT CSC 494

CSC 494 · Introduction to Artificial Intelligence

Expert systems: architecture, construction and use

What expert systems are, their parts, how they are built, certainty factors, famous examples and their limits.

Our notes

2 min read

What an expert system is

A computer program that gives expert-level advice in a narrow field by reasoning with knowledge captured from human experts: diagnosing diseases, faults in machines, approving loans, identifying minerals.

Architecture

ComponentRole
Knowledge basefacts and rules (often IF-THEN) about the domain
Inference engineapplies rules to facts (forward or backward chaining) to reach conclusions
Working memoryfacts about the current case
User interfaceasks questions, gives advice
Explanation facilityanswers "why?" (why this question) and "how?" (how a conclusion was reached)
Knowledge acquisition facilitytools to add and edit knowledge

An expert system shell is the inference engine, interface and tools without the domain knowledge (CLIPS, JESS, and older shells).

Forward and backward chaining

  • Forward (data-driven): start with known facts; fire rules to derive conclusions. Suits monitoring, configuration (XCON).
  • Backward (goal-driven): start with a hypothesis; ask for facts that would prove it. Suits diagnosis (MYCIN).

Certainty factors (MYCIN style)

Each rule and fact has a certainty factor (CF) from −1 (definitely false) to +1 (definitely true).

  • Rule conclusion CF = rule CF × CF of the premise (for AND premises, use the minimum).
  • Combining two positive CFs for the same conclusion: CF = CF₁ + CF₂ × (1 − CF₁).

Worked example: two rules support "bacterial infection" with CF 0.6 and 0.5. Combined CF = 0.6 + 0.5 × 0.4 = 0.8.
If a rule has CF 0.7 and its premises are "fever" (CF 0.9) AND "stiff neck" (CF 0.6): conclusion CF = 0.7 × min(0.9, 0.6) = 0.42.

Building an expert system

  1. Identify a suitable problem: narrow, needs expertise, experts exist and agree, solved by reasoning not common sense, valuable.
  2. Knowledge acquisition: the knowledge engineer interviews experts, studies cases and documents: the main bottleneck.
  3. Represent the knowledge (rules, frames).
  4. Build a prototype with a shell.
  5. Test and validate against expert decisions on real cases.
  6. Deploy and maintain: update the knowledge as the field changes.

People involved: domain expert, knowledge engineer, end user, programmers.

Famous systems

SystemDomain
DENDRAL (1960s)identifying chemical structures from mass spectra
MYCIN (1970s)diagnosing blood infections and recommending antibiotics
PROSPECTORmineral exploration
XCON / R1configuring DEC computers
CADUCEUSinternal medicine

Advantages and limits

  • Advantages: consistent, available any time, preserves scarce expertise, explains its reasoning, can train staff.
  • Limits: brittle outside its narrow domain, no common sense, costly knowledge acquisition and maintenance, does not learn by itself (unless combined with machine learning), questions of responsibility when advice is wrong.

Exams usually ask

  • Draw and explain the architecture of an expert system.
  • Describe the stages of building an expert system.
  • Combine certainty factors.

Common mistake

Calling any database or calculator an expert system. An expert system reasons with encoded expert knowledge and can explain its conclusions.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CSC 494 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.