Interactive Algorithm on Rule-Based AI Systems: Forward & Backward Chaining with Conflict Resolution AI Production Systems Lab (Python)
By the end of this class lab, students will be able to:
Understand the components of a production system (knowledge base, working memory, inference engine). Grounding the theoretical concept for Session 5.
- Apply pattern matching and conflict resolution.
- Run forward chaining (data-driven inference)
- Run backward chaining (goal-driven inference).
- Experiment with different facts and rules interactively.
- Visualisation of rule firing order.
This (Lab) system supports Symbolic AI (rule-based reasoning), not Machine Learning. However, using ML, we can simulate the same domain as our rule-based lab, but let the system learn rules automatically using Decision Trees (Supervised Learning), Rule Induction Algorithms and Association Rule Mining (Unsupervised). Python: from sklearn.tree import DecisionTreeClassifier, export_text