All demos

Expert System: Rule Chain

Forward chaining

Grow working memory with rules

A rule-based expert system starts with observations, finds rules whose conditions are true, and adds new facts. Several rules may be ready at the same time, so the chain can branch and later merge.

Try this
  1. Choose a scenario, then record one result from each observation card.
  2. Find every rule marked Ready to fire and choose one.
  3. Keep firing rules until the system reaches its final recommendation or identification.

Classroom Simulation

Each rule card watches the same working memory. When all of its conditions are present, that rule may fire once.

Forward chaining

What to watch for

Rule policy

  • Any ready rule may fire next.
  • Each rule fires at most once.
  • Adding a fact may make more rules ready.

Working Memory

Facts known by the system. Teal facts came from observation cards; gold facts were inferred by a rule.

Case Observations

Choose one result on each card. Each choice adds a fact to working memory.

Rule Firing History

    Rule Cards