Expert system

An expert system is a computer program that imitates the decisions of a human specialist by applying a store of hand-written if-then rules to the facts of a case.

An expert system has two main parts. The knowledge base holds facts and rules written down with the help of human specialists, usually in an if-then form: if the patient has symptom A and test result B, then infection C is likely. The inference engine applies those rules to the facts of a particular case to reach new conclusions. It can work forwards, firing every rule whose conditions are met, or backwards, starting from a possible conclusion and checking whether the conditions for it hold. Because the reasoning is a chain of explicit rules, many systems could explain how they reached an answer.

The idea came out of Stanford in the 1960s. Edward Feigenbaum, sometimes called the father of expert systems, led the Stanford Heuristic Programming Project, and Dendral, begun there in 1964 with Joshua Lederberg, Bruce Buchanan and Carl Djerassi, helped chemists identify unknown molecules from their mass spectra. It is usually described as the first expert system. MYCIN, built at Stanford in the early 1970s, recommended antibiotics for serious bacterial infections such as bacteraemia and meningitis.

Expert systems were among the first AI software to succeed commercially. XCON (also called R1), written by John McDermott at Carnegie Mellon for Digital Equipment Corporation, configured orders for DEC's VAX computers and went into use in 1980. It grew from about 700 rules to 6,200 by 1987 and more than 10,000 by 1989, and was credited with saving DEC tens of millions of dollars a year. Through the 1980s companies, governments and Japan's Fifth Generation project poured money into the field.

The boom did not last. Writing the rules meant extracting knowledge from busy experts, a problem known as the knowledge acquisition bottleneck. Large rule sets were costly to maintain, could not learn, and failed badly on cases their authors had not foreseen. The market for specialised Lisp machines that many expert systems ran on collapsed in 1987, and the field entered what is now called the second AI winter. By the 1990s the label had largely fallen out of use, although the technique lived on as business rules engines inside software from companies such as SAP and Oracle.

In practice the lesson still applies. Rule-based systems remain a sound choice where rules are clear, stable and must be auditable, such as eligibility checks or configuration. Where the world is messy and examples are plentiful, machine learning took over because it learns patterns from data instead of waiting for someone to write them down.

Common questions

What is an example of an expert system?

MYCIN, built at Stanford in the 1970s, suggested antibiotics for serious infections by applying a few hundred medical rules to a patient's details. XCON, used by Digital Equipment Corporation from 1980, configured computer orders. Dendral, begun in 1964, helped chemists identify molecules and is usually called the first expert system.

What are the main parts of an expert system?

A knowledge base, which stores facts and if-then rules supplied by human experts, and an inference engine, which applies those rules to a specific case to draw conclusions. Many systems also had an explanation facility that showed which rules led to an answer.

Why did expert systems decline?

Collecting rules from experts was slow and expensive, large rule sets were hard to keep consistent and up to date, and the systems could not learn or cope with situations outside their rules. When cheaper desktop computers undercut specialised Lisp machines in 1987, much of the industry built around them collapsed.

Is an expert system the same as a large language model?

No. An expert system follows rules that people wrote by hand, so its reasoning can be traced line by line. A large language model learns statistical patterns from huge amounts of text and has no explicit rule list. Some modern products combine the two, using hand-written rules to check or constrain a model's output.

Finding more

Search for "expert system history", "knowledge engineering", "XCON R1 DEC" or "rule-based system" to follow the topic. Good sources are histories of AI from university presses, the original project reports from Stanford and Carnegie Mellon, and encyclopedia articles that cite them. For current use, look at documentation for business rules engines rather than marketing that relabels older software as AI.

  • Expert systemReferenceHow knowledge bases and inference engines work, with the history of the 1980s boom and later decline.
  • XconReferenceThe DEC configuration system: its author, rule counts and estimated savings.
  • DendralReferenceThe 1964 Stanford chemistry project usually called the first expert system.
  • AI winterReferenceThe 1987 Lisp machine collapse and why early expert systems became too costly to maintain.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.