← View in Interactive Graph

3.Rule based System

A rule-based system is a type of expert system that uses a set of predefined rules (if-then statements) to solve problems or make decisions. These systems consist of the following key components:

  1. Knowledge Base: This is a collection of rules and facts that represent knowledge in a specific domain. The rules are typically in the form of "IF condition THEN action" (also known as production rules). For example:
  2. IF it is raining THEN take an umbrella.

  3. Inference Engine: This is the component that processes the knowledge base. It uses logical reasoning to apply the rules and facts to draw conclusions or make decisions. The inference engine can operate in two primary modes:

  4. Forward chaining: Starts with known facts and applies rules to infer new facts.
  5. Backward chaining: Starts with a goal and works backward to find which rules and facts can help achieve that goal.

  6. User Interface: This is where the user interacts with the system, entering data and receiving results or recommendations based on the inference engine’s processing.

  7. Working Memory: This holds the intermediate facts or data generated during the reasoning process.

How a Rule-Based System Works:

  1. The user interface collects input from the user and places it in the working memory.
  2. The inference engine uses the rules in the knowledge base to process the facts, either by forward or backward chaining.
  3. The system draws conclusions or makes decisions and displays them through the user interface.

Example: A medical diagnostic system that uses rules like: - IF a patient has a fever AND a cough THEN the patient may have the flu.


Tags: #ai #ai-foundations

Search_and_Logic