ElemedexA pocket encyclopedia of AI architectures
No. 009

Expert system (MYCIN)

MYCIN · EMYCIN · R1/XCON

Consultant

It never saw a patient: everything it knows was dictated by infectious-disease specialists in endless interviews. It asks, asks and asks again, and if you ask it why, it shows you the rule. In a blinded test it prescribed as well as the specialists, but it never made it onto the hospital wards.

Height
rule chains of variable depth
Parameters
≈ 450–600 rules + ≈ 1,000 facts
Context
one consultation about one patient
Training data
interviews with Stanford infectious-disease experts
Year
1976
Generation
2 · Classical machine learning
Creators
Edward Shortliffe, Bruce Buchanan, Stanley Cohen, Stanton Axline et al. (Stanford University)
Kind
System

Base stats

Total
122

Approximate, ordinal scales meant for comparing species with each other; the hard numbers are in the data sheet.

Weaknesses

  • Bottleneck: every rule comes out of hours of interviews with an expert.
  • Brittle: faced with cases nobody anticipated, it does not degrade gracefully; it just fails.
  • No common sense: it lacks what physicians know without knowing that they know it.
  • Its certainty numbers look more precise than they are.

Habitat

It lived on a Stanford terminal, conversing with physicians about bacteremia and meningitis. Its commercial descendants configured computers and filled corporate AI departments in the 1980s; its lineage survives in the rule engines of business and clinical software.

Moves

Abilities

Modular knowledge
Each rule is an independent piece that can be added, corrected or removed without touching the rest; in Lisp, rules are also data the program can read and display.
Certainty factors
Each conclusion carries a number between −1 and +1 summarizing belief minus disbelief; it is not a probability.
Detachable engine
The inference engine is separate from the medical knowledge; emptied of medicine, it became EMYCIN, a shell for other domains.

Anatomy

rulesID experts (interviews)Knowledge engineering≈450 IF–THEN rules + CFPhysician: patient dataWorking memoryBackward chainingCombine certainty factorsOrganism andantibioticsExplains: why?how?ConstructionConsultation

MYCIN separates knowledge (rules written with the experts) from the engine that uses it. In each consultation the engine starts from the goal (which organism to cover, which therapy to give), chains rules backwards, and asks the physician for the data no rule can establish.

Evolution chain

009 Expert system (MYCIN)

An expert system is a program that tries to capture a specialist's know-how in a collection of explicit "if… then…" rules (production rules) plus an engine that chains them together. MYCIN, developed at Stanford in the first half of the 1970s, is the laboratory specimen: it advised on which antibiotics to give patients with serious bacterial infections (first of the blood, later meningitis). According to M. Mitchell (2019) it had about six hundred rules (its authors' final assessment speaks of 450, plus about a thousand facts in tables), and it was "a paradigmatic example" of symbolic AI (2019, ch. 2). Its name is the suffix of many antibiotics.

How it works

It has three parts: a knowledge base, an inference engine, and an explanation module (Shortliffe, 1976). A typical rule, translated from its internal Lisp representation, reads: if the identity of the organism is not known with certainty, the stain is gram-negative, the morphology is rod and the organism is aerobic, then there is strongly suggestive evidence (0.8) that it belongs to the enterobacteriaceae (Buchanan & Shortliffe, 1984). That 0.8 is a certainty factor: a number between −1 and +1 that subtracts degrees of disbelief from degrees of belief, and that its authors presented as a computational device, not as a probability.

MYCIN reasons backwards. It starts from the goal (which organism must be covered, which therapy is advisable), looks for rules whose conclusion would establish it, and the premises of those rules become new subgoals; when no rule can establish a datum, it asks the physician. The result is a dialogue. At any point the user can type WHY ("why are you asking this?") or HOW ("how did you conclude that?"), and the system displays the chain of rules: the explanation is the very trace of the inference. Choosing Lisp was not a technical detail, since it allowed rules to be treated as data the program could read, display and edit. Emptied of medicine, the engine became EMYCIN, a shell for building expert systems in other domains.

What changed

Logic Theorist searched for proofs using general heuristics; expert systems bet on the opposite: little general method and a great deal of specific knowledge. Their direct ancestor was DENDRAL, in organic chemistry, and the craft of translating an expert's know-how into rules was called knowledge engineering. Buckner (2024) places this approach at the point of the pendulum where AI hand-programmed as much structure as possible, what Haugeland (1985) dubbed GOFAI (2024, p. 26).

And it worked. In a blinded evaluation published in 1979, eight specialists rated prescriptions for ten meningitis cases without knowing who had written them: MYCIN's were judged acceptable in 65% of the ratings, against 42.5 to 62.5% for those of five Stanford faculty members (Yu et al., 1979). Even so, MYCIN was never tried on the hospital wards, and its infectious-disease knowledge base was shelved in 1978 (Buchanan & Shortliffe, 1984). Its commercial successors did prosper: R1/XCON configured VAX computer orders at Digital Equipment (McDermott, 1982), and by around 1985 companies were spending over a billion dollars a year on expert systems (Chollet, 2021, sec. 1.1.7).

Limits

By the early 1990s these systems had proven expensive to maintain, hard to scale and limited in scope, and the second "AI winter" set in (Chollet, 2021, sec. 1.1.7).

  • The bottleneck. MYCIN's authors concluded that knowledge acquisition was "the critical bottleneck in building expert systems" (Buchanan & Shortliffe, 1984). Witten et al. (2017) show the alternative: in diagnosing soybean diseases, rules induced from about 300 examples got 97.5% of the test cases right, against 72% for the rules elicited from the expert himself (2017, pp. 19–21). That is the niche the decision tree will fill.
  • Brittleness. By the mid-1980s it was clear that these systems failed in new situations, because the experts relied on common sense they never put into the rules (M. Mitchell, 2019, ch. 2).
  • Apparent precision. Certainty factors worked well in practice, but what exactly a 0.8 means is far less clear than the decimal suggests.

Sources

  • Brandom, R. B. (1994). Making it explicit: Reasoning, representing, and discursive commitment. Harvard University Press. §
  • Buchanan, B. G., & Shortliffe, E. H. (Eds.). (1984). Rule-based expert systems: The MYCIN experiments of the Stanford Heuristic Programming Project. Addison-Wesley. §
  • Buckner, C. J. (2024). From deep learning to rational machines: What the history of philosophy can teach us about the future of artificial intelligence. Oxford University Press. https://doi.org/10.1093/oso/9780197653302.001.0001 §
  • Carroll, L. (1895). What the tortoise said to Achilles. Mind, 4(14), 278–280. https://doi.org/10.1093/mind/IV.14.278 §
  • Chollet, F. (2021). Deep learning with Python (2nd ed.). Manning Publications. §
  • Haugeland, J. (1985). Artificial intelligence: The very idea. MIT Press. §
  • McDermott, J. (1982). R1: A rule-based configurer of computer systems. Artificial Intelligence, 19(1), 39–88. https://doi.org/10.1016/0004-3702(82)90021-2 §
  • Mitchell, M. (2019). Artificial intelligence: A guide for thinking humans. Pelican Books. §
  • Shortliffe, E. H. (1976). Computer-based medical consultations: MYCIN. Elsevier. https://doi.org/10.1016/B978-0-444-00179-5.X5001-X §
  • Witten, I. H., Frank, E., Hall, M. A., & Pal, C. J. (2017). Data mining: Practical machine learning tools and techniques (4th ed.). Morgan Kaufmann. https://doi.org/10.1016/C2015-0-02071-8 §
  • Wittgenstein, L. (2009). Philosophical investigations (G. E. M. Anscombe, P. M. S. Hacker, & J. Schulte, Trans.; P. M. S. Hacker & J. Schulte, Eds.; Rev. 4th ed.). Wiley-Blackwell. (Original work published 1953) §
  • Yu, V. L., Fagan, L. M., Wraith, S. M., Clancey, W. J., Scott, A. C., Hannigan, J., Blum, R. L., Buchanan, B. G., & Cohen, S. N. (1979). Antimicrobial selection by a computer: A blinded evaluation by infectious diseases experts. JAMA, 242(12), 1279–1282. https://doi.org/10.1001/jama.1979.03300120033020 §