Skip to content
AI-grafen
BInvestigatorClassical machine learning· about 20 min· fundamentals that rarely change· verified 2026-09-20· EN

Rule-based systems and machine learning

Be able to explain the difference between a program where a human has written the rules and a system that has found the rules itself from examples, and determine which one suits a given problem.

Prerequisites

Everyday explanation

Calculating VAT is easy to write as a rule: price × 0.25. Deciding whether an image depicts a cat is almost impossible to write as rules — how do you describe 'cat-ness' in steps?

Rule-based: the human writes the steps. Machine learning: the human shows thousands of examples (image + 'cat'/'not cat') and the computer finds a pattern itself.

Intuition

RulesLearning
Who finds the pattern?The humanThe computer, from data
Suits when…the rules can be written downexamples are numerous and rules are unclear
Errors occur when…a rule is missingexamples are few, wrong, or biased
Can the answer be explained?yes, step by stepoften only partially

Both are algorithms. The difference is where the rules come from.

Mastery means

  • Give examples of problems that suit rules versus learning
  • Explain why 'recognising a cat in an image' is difficult to write rules for

Sign in to do the exercises and build your mastery up.

Sources

All the sources and licences