Skip to content
BENIBIX Learn

Rule-Based and Expert Systems

Level 2 · AI built from rules

How early AI was built from if-then rules that people wrote. Why expert systems boomed in the 1980s, and why rules break on messy tasks.

Course contentsLesson 3 of 10

After this lesson you can

  • Explain how a rule-based system decides
  • Say what made expert systems useful
  • Spot a task too messy for rules written by hand

11 mincovers 3 glossary entries

Worth reading first: Artificial Intelligence (AI)

How AI was built from rules

A rule-based system is a program that decides by following rules people wrote. Each rule reads: if this is true, then do that. In the 1970s, one program at Stanford used about 600 such rules to suggest which germ was causing a blood infection. It never learned a thing by itself.

This was how most AI was built for its first 30 years. The idea behind it is called symbolic AI. Facts are written as words a person can read, such as 'a robin is a bird' and 'a bird has wings'. The program joins facts with logic to reach new ones.

The big strength is that you can read every step. Ask why it said no, and it can show the exact rule. That matters in a bank or a hospital, where someone must explain each choice. Rules are also cheap to run and easy to change.

An expert system is a rule-based program that copies how a human expert decides. Builders sat with doctors or engineers and asked how they worked. Then they wrote it all down as hundreds or thousands of rules. In the 1980s, many big firms bought one. They were the hot AI idea of that decade.

Then the rule books ran into trouble. Each new case needed a new rule, and new rules clashed with old ones. Experts could not put all they knew into words. Keeping a big rule book up to date took a whole team. Many firms gave up, and the money moved away.

Rules fail worst on messy tasks, like naming a face in a photo. No one can write the rules for what makes a face. There are too many angles, lights and hair styles. Learning from examples works far better there, which is why it took over.

Rules did not go away, though. Banks still block a card with rules like 'two countries in one hour'. Many apps join the two ways: a learned model gives a score, and a written rule decides what to do with it. People call rules old when they are often just the right tool.

Older AI follows rules that people wrote. Most AI today learns its rules from examples.

Worked example

Lucy writes rules for refunds

Lucy's online shop gets 300 refund requests a week. She writes 12 rules, such as: if the order is under 30 days old and unopened, approve it.

The rules settle 240 requests on their own. The other 60 fit no rule, so a person reads them. She can show any customer the exact rule behind each answer.

The words for this lesson3

Check yourself

Why did rules written by hand struggle with tasks like naming faces?

Finished this lesson?

Marking it complete also marks its 3 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.