Skip to content
BENIBIX Learn

Rule-Based System

AI🧭 FoundationsAI Approaches

Also known as Rule-Based AI, Rules Engine, If-Then System

A program that makes choices with if-then rules. People write all the rules.

Think of it like

Think of it like a board game rule book. If you land here, you do this.

Example

A bank's rule says: if a card pays in two countries within one hour, block it. The system follows that rule for every payment.

Why it matters

Rules are easy to read and explain. When you must show why a choice was made, rules can beat a learned model.

Definition

A rule-based system is a program that decides things by following rules people wrote. Each rule says if this is true, then do that. The system checks its rules against the facts it is given and follows the ones that match. It never learns anything new by itself. Early AI was built this way, and many apps still use it.
A rule-based system is the top lane. Every rule in it was written by a person.

Common mistake

Writing rules for a job with too many cases, like spotting faces. The rule book never ends, and learning works better there.

Key takeaways

  1. 1
    If-then rules. Each rule is one choice.
  2. 2
    Written by people. Nothing is learned.
  3. 3
    Easy to explain. You can read every step.

Learn it properly