Working Memory
No facts set. Add facts below to begin.
Expert Systems
Expert Systems are AI programs that emulate human expert decision-making using a knowledge base of IF-THEN rules and an inference engine.
Forward Chaining
Data-driven inference. Start with known facts and repeatedly apply rules to derive new facts until no more rules can fire.
Backward Chaining
Goal-driven inference. Start with a goal and work backward, finding rules that could prove it and recursively proving their conditions.
How to Use
- Select an example knowledge base
- Add initial facts in Working Memory
- Choose Forward or Backward mode
- Click to watch inference step-by-step
Knowledge Base Rules
Select a knowledge base to view its rules.
Experiments
Animal Identification
- Set
has_hair=T,eats_meat=T,has_stripes=T - Run forward chaining to identify a Tiger
- Watch: hair → mammal → carnivore → tiger
Compare Inference Modes
- Clear facts and switch to Backward mode
- Select tiger as the goal
- Watch it work backward to find what facts are needed
Medical Diagnosis
- Set
fever=T,body_aches=T,fatigue=T - Forward chain to diagnose Flu
Computer Troubleshooting
- Set
power_on=T,screen_on=F,fan_running=T - Diagnose a Display Issue