Skip to content
StackDecode
AI & ML Atlas
Artificial IntelligenceconceptInteractive simulation

Expert System Algorithms

Combine a rule base with an inference engine and an explanation facility.

The idea

An expert system captures a specialist's knowledge as rules. The inference engine (forward or backward chaining) applies them, asks the user follow-up questions, and can explain why it asked and how it reached a conclusion. Early systems like MYCIN diagnosed infections this way.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

R1R2R3R4R5ABECGDFH
  • known / proved
  • active rule or sub-goal
  • unknown

Work backwards from the goal H: which rule would give it, and what must be true for that rule?

1/17

Circles are statements, squares are IF-THEN rules. A rule links its inputs to its conclusion.

Step by step

  1. 1Interview an expert and write their knowledge as rules.
  2. 2Start a consultation; collect facts from the user.
  3. 3Chain through the rules to reach a conclusion.
  4. 4Explain the reasoning on request.

Where it is used

Diagnosis, configuration, compliance checking.

Watch out for

Knowledge acquisition is slow and the rules do not learn on their own.

Related