Rule-Based (Expert Systems)

Before data ruled, rules ruled. Here is what that looked like.

Case: The Case of the Technologically Orphaned Thief

A modern office building after hours, that mysterious moment when the business world falls into deep sleep and only the gentle steps of the cleaning staff break the silence.

RulesA rule has the form IF conditions THEN conclusion. When all conditions are met, the rule fires and derives a new fact.

Logical rules showing when conditions lead to conclusions. Active rules can be applied when all conditions are met.
WHENCamera RecordingANDAccess Log
THENSuspect Identified
Waiting for evidence
WHENSuspect IdentifiedANDWitness Report
THENLaptop Thief Identified
Waiting for evidence

Detective Guidance

"👋 Welcome, detective! Start with: Security camera shows person at 6:30 PM"

EvidenceEvidence is the collected facts of a case. You gather it so the rules have something to act on.

Click on available evidence to collect it.Collected evidence (🔍) is what you added yourself. Inferred evidence (🧠) was derived by the system from the rules — it is the result of inference.

??

Quick Actions and Status

Automatically execute all remaining steps to solve the case
Reset the current case to start over
0 evidence 0 rule applied 0% solved
🎭
A modern office building after hours, that mysterious moment when the business world falls into deep sleep and only the gentle steps of the cleaning staff break the silence. In this digitized world of the 21st century, someone still believes they can be invisible – a touching anachronism in an era where every breath is archived.

Collect clues and solve criminal cases through systematic application of rule-based logic. This interactive demo shows how AI systems reach solutions step by step.

Definition

Rule-Based AI Systems

Analogy

Imagine you are a detective solving a case. You collect clues and apply logical rules to reach a conclusion.

If you find that 'the suspect was at the crime scene at the time of the crime' AND 'his fingerprints are on the weapon', then you can conclude: 'He is probably the perpetrator'.

That's exactly how rule-based AI systems work: They use 'IF-THEN' rules to derive new insights from existing facts.

It's like a digital detective that systematically applies logic!

This interactive simulation shows how rule-based AI systems function. You play a detective who solves cases by systematically collecting clues and applying rules.

The three components of the system

  • Clues (Knowledge Base): Information you collect and use as the basis for your conclusions
  • Rules (Rule Base): Logical IF-THEN rules that define how conclusions are drawn from clues
  • Inference (Inference Engine): The process of automatically applying rules to collected clues

How to use the simulation

  • Select a case from the dropdown list
  • Collect clues by clicking on available evidence
  • Watch how the system automatically applies rules
  • Solve the case through systematic inference

TheoryPseudo-CodeStep by StepFlow Diagram

Theory of Rule-Based Systems

Rule-based AI systems use explicit if-then rules for problem solving. Unlike learning systems such as neural networks, they are based on human expert knowledge encoded in the form of logical rules.

These systems operate according to the principle of deductive logic: New conclusions are drawn from known facts and defined rules. Each rule has a condition (IF) and a consequence (THEN). When the condition is met, the consequence is executed.

Advantages

  • Transparent and traceable: Every decision can be traced back to the applied rules
  • Explainable decisions: The system can explain exactly why a particular conclusion was reached
  • Easy to maintain and extend: New rules can be added without retraining the entire system
  • Reliable for known problem domains: When the rules are correctly defined, the system delivers consistent results

Limitations

  • Becomes complex with many rules: As the rule base grows, the system becomes difficult to oversee
  • Extensive maintenance of rule base: Rules must be created and updated manually
  • No automatic learning capability: The system cannot learn from experience or adapt to new situations

Practical Applications

Typical applications: Expert systems in medicine and diagnostics, compliance checking in banks and insurance, quality control in manufacturing, troubleshooting systems in IT, and legal decision support.

Try the demo! Solve the detective cases and experience how if-then rules enable logical conclusions.

Check

Rule-Based AI Understanding Quiz

Not completed

What is an inference engine in a rule-based system?

Select one answer

Answer Key: 1) B · 2) A B D · 3) C

Plain Language

This preview is in Plain Language. The whole portal is also available in Plain Language. You can change the language at the top. Or use the button below. Our Plain Language texts are AI-assisted and editorially reviewed. They follow the core principles of easy-to-read language, but they are not certified Easy Read: a review panel of people with learning difficulties does not test them.

Preview: Demo: solving a detective case with AI rules

What is shown?

This demo shows rule-based AI. AI means Artificial Intelligence. Rule-based means: the program follows fixed if-then rules. Example: IF clue A, THEN suspect known.

How does the demo work?

You play a detective. You collect clues by clicking. The program applies if-then rules. This is how you solve the case step by step.

What you learn

You learn something important. AI can work with fixed rules. Other AI programs learn by themselves. Rule-based AI does not learn. Humans write all the rules.