AI glossary

Expert Systems

An expert system is an artificial intelligence program that uses a large collection of hand-coded “if-then” rules, written by human experts in a narrow domain, combined with an inference engine that applies those rules to specific facts to reach a conclusion or recommendation. It represents an older, symbolic approach to AI, distinct from the statistical, data-trained approaches that came to dominate the field later.

How an expert system works

A typical expert system has two main parts: a knowledge base of facts and “if-then” rules supplied by domain experts, and an inference engine that chains those rules together against a specific case’s facts to derive new facts or a final recommendation.

Many expert systems could also explain their reasoning by showing which rules fired and in what order, which made their conclusions easier to audit than a typical statistical model’s output. This transparency was a key selling point for industries like medicine and finance, where understanding the “why” behind a decision was as important as the decision itself.

Famous examples

The history of rule-based AI is marked by several landmark projects that demonstrated both the potential and the limitations of the approach.

MYCIN

Developed at Stanford University in the 1970s, MYCIN was an early expert system designed to recommend antibiotics for patients with severe bacterial infections such as bacteremia and meningitis. It reasoned over roughly 500 rules. Notably, MYCIN was a research system and, by its own designers’ account, was never deployed for actual patient care in a hospital.

DENDRAL

Also developed at Stanford starting in the 1960s, DENDRAL was an expert system built to infer the molecular structure of organic chemical compounds from mass spectrometry data. It is often cited as one of the first true expert systems, proving that computers could assist in complex scientific reasoning tasks.

XCON (R1)

Built at Carnegie Mellon University and used internally by Digital Equipment Corporation (DEC) starting around 1980, XCON configured orders for DEC’s VAX computer systems. It applied thousands of rules to a customer’s order and was one of the first expert systems to be used commercially at scale, saving the company significant time and reducing configuration errors.

Expert systems drove a surge of commercial and research interest in AI during the 1980s, sometimes called the “expert systems boom.” They could encode real specialist knowledge and produce useful, explainable results in narrow domains. For organizations struggling with a shortage of human experts, these systems offered a way to capture and scale institutional knowledge.

Why they fell out of favor

Despite their early success, expert systems proved expensive and slow to build and maintain. Every new rule had to be manually elicited from human experts and hand-coded. As the number of rules grew, the system became difficult to manage, and conflicts between rules became harder to resolve.

Furthermore, a system’s knowledge did not transfer to problems outside the narrow domain it was built for. This lack of generalizability meant that building a new expert system for a different problem required starting almost from scratch. The difficulty of scaling and maintaining these systems is commonly cited as one of the contributing factors to the broader slowdown in AI funding and interest in the late 1980s and early 1990s, sometimes referred to as an “AI winter.”

Expert systems vs modern machine learning

The fundamental difference lies in how knowledge is acquired. Expert systems encode knowledge as explicit rules written by people. In contrast, modern machine learning models learn statistical patterns automatically from large amounts of data, without anyone writing down explicit rules for the task.

The rule-chaining approach of an expert system is generally easier for a person to inspect and explain than the internal workings of a large trained neural network. This distinction remains relevant today when discussing Explainable AI, as developers often contrast the transparency of rule-based systems with the “black box” nature of deep learning. While machine learning has largely superseded expert systems for tasks requiring pattern recognition in vast datasets, the logic behind expert systems still influences how we design decision tree algorithms and understand the trade-offs between interpretability and performance.

FAQ

What is an expert system?

It is an AI program that uses hand-coded “if-then” rules and an inference engine to mimic the decision-making ability of a human expert in a specific domain.

Are expert systems still used today?

While largely replaced by machine learning for general AI tasks, rule-based logic is still used in specific domains where explainability and strict rule adherence are critical, often within larger hybrid systems.

What was the main drawback of expert systems?

They were expensive to build and maintain because rules had to be manually elicited from experts and did not scale well or transfer easily to new domains.