Expert systems: knowledge as a product
Why:You’ll learn how, in the 1970s and 1980s, specialists’ knowledge began to be written down as rules and sold: MYCIN advised on antibiotics, XCON put together computer orders, and a new profession appeared between the expert and the program. Afterwards you’ll be able to tell a checked AI figure from a legend, and ask who will maintain the rules when the world changes.
Part 1, lesson 5 · 25 minutes
An expert system is a program that holds a specialist’s knowledge as “if… then…” rules and uses them to solve problems in one narrow field.
Knowledge instead of general intelligence
While some were building blocks worlds, others had already taken another road. In 1965 at Stanford, Edward Feigenbaum, the geneticist Joshua Lederberg and Bruce Buchanan started DENDRAL, a program that worked out the structure of molecules from mass spectrometry data, using chemists’ knowledge. Feigenbaum later treated it as the start of what he called knowledge engineering. By the mid-1970s this bet had become the main one: the power lies not in a general ability to reason but in knowledge. An experienced doctor is good not because she’s the cleverest person in the room, but because she knows thousands of details of her field.
That’s where the expert system came from. Take one narrow field, have a specialist explain how they make decisions, and write their experience down as “if… then…” rules. The program itself works out which rules to apply, and in what order.
The rules were written by someone in a new profession, the knowledge engineer, who interviewed the expert and translated the answers into rules. In a 1977 paper Feigenbaum called getting knowledge out of experts the bottleneck of the whole enterprise. Remember that word: it will come back.
Check yourself: what was the bet behind expert systems?
Not a general ability to reason, but a great deal of knowledge of one narrow field, written down as rules from a specialist’s account.
MYCIN: antibiotics by the rules
The best-known expert system was born in medicine. Edward Shortliffe wrote MYCIN at Stanford in the first half of the 1970s wrote his 1974 dissertation on it, and received his PhD in 1975. The program helped choose an antibiotic for serious bacterial infections: first infections of the blood, then meningitis too.
Its rules went roughly like this: if the bacterium has such a shape, stains such a way and was found in such a place, then it is probably such an organism. MYCIN tagged every conclusion with a certainty factor, because medicine rarely offers certainty. It worked backward from the goal, as Logic Theorist did: it started from “which organism?” and asked the doctor the questions needed to answer it. Asked “why are you asking that?”, it explained which rule it was checking.
The 1975 description of MYCIN mentions about 200 rules; by 1984 there were about 450. Take the medical knowledge out of MYCIN and you got an empty shell, EMYCIN, into which the rules of another field could be loaded. Knowledge had come apart from the program, and became something you could collect and sell.
Check yourself: what is an expert-system shell?
A program that can apply rules but holds no knowledge of its own. You load the rules of the field you need into it.
How MYCIN was tested, and what came of it
You’ll often read that MYCIN “outperformed doctors.” Here’s what actually happened. In 1979 the journal JAMA published an evaluation on 10 difficult cases of meningitis. For each case, prescriptions were written by MYCIN, five Stanford specialists, other doctors and a medical student. Eight outside experts, without knowing whose prescription they were looking at, rated every one. MYCIN’s prescriptions were judged acceptable in 65% of the ratings; the five Stanford specialists averaged 55.5%, ranging from 42.5 to 62.5%.
That’s a strong result, but it has limits, and the authors name them: only ten cases, rated from written summaries, not at the bedside. The honest sentence is: on these cases, the program’s prescriptions were rated no worse than the specialists’.
And MYCIN never made it into a clinic’s routine work. The authors give mundane reasons. Doctors didn’t feel they needed it. To consult it, you had to find a terminal, log in and type the lab results in again. On a busy machine, a consultation could take from half an hour to an hour. A good program that is awkward to use stays on the shelf.
Check yourself: why is “MYCIN outperformed doctors” inaccurate?
The evaluation used 10 cases from written summaries, and nobody was treated. Its prescriptions were rated no worse than the specialists’, and that’s all it showed.
XCON: rules that made money
The first real money from expert systems came not in medicine but on the factory floor. Digital Equipment Corporation, DEC, sold VAX computers, and every order had to be put together: which cabinets, boards and cables, in what order, so that everything fitted. People did it, and people made mistakes.
John McDermott of Carnegie Mellon University wrote a program for this called R1, later renamed XCON. By McDermott’s own account, DEC had been using it regularly in manufacturing since January 1980; another source from 1987 dates the start to 1981. In September 1979 it had about 750 rules. In 1986 it configured about 50,000 orders, and DEC estimated that 99% of the systems were configured correctly.
Now for the famous figure. You’ll often read that XCON saved DEC $40 million a year. In the 1987 source, DEC claims that its whole network of expert systems, XCON among other sales and manufacturing systems, is saving it “an additional $40 million per year.” That’s the company’s own estimate, not an independent calculation for one program. Still, it was probably the first time a big company used an AI program every day and said it was making money.
See how the number of rules grew, and open the source of each figure.
XCON, 1989: 10,129 rules. Source: V. Barker et al., Expert systems for configuration at Digital: XCON and beyond, Communications of the ACM 32(3), 1989. Someone wrote every rule down from an expert’s words, and someone had to keep it up to date.
Check yourself: what does the “$40 million a year” figure actually mean?
It’s DEC’s 1987 claim about the savings from its whole network of expert systems, XCON included, not a checked calculation for XCON alone.
The price of rules
XCON’s rules had to be rewritten all the time: new models, new parts, new options kept coming. The team that maintained it grew to eight people. By an estimate from Elliot Soloway and colleagues in 1987, about half the rules changed in a year. By 1987 there were about 6,200 rules, and by a 1989 paper by DEC staff, more than 10,000.
That’s Feigenbaum’s bottleneck at full size. Knowledge had to be drawn out of people, written down by hand, and rewritten every time the world changed. And past the edge of its rules, a system broke at once, without warning: it didn’t know what it didn’t know.
Expert systems didn’t disappear. They became an ordinary product: a 1997 review, quoted by the US National Research Council, put the North American market for expert systems at about $250 million, with more than 12,000 separate systems in use. Rules still check payments, work out taxes and process orders today, wherever they can be written down and checked.
Rules and trained models today
Today’s models are built the other way round: nobody writes rules; the model finds patterns in data. That solved Feigenbaum’s bottleneck, but it didn’t do away with the questions people asked of expert systems.
- Who will maintain it when the world changes? A team of eight rewrote XCON’s rules. A model goes stale too, and has to be checked again.
- What does it know past the edge of its field? An expert system broke sharply at the edge. A model slides past the edge smoothly and confidently, which is harder to notice.
- What lies behind the figure? When you read that a model “diagnoses better than doctors,” ask what you’d ask of MYCIN: how many cases, who rated them, did the raters know whose answer was whose, and was anyone actually treated?
Do it now
- Find one striking AI figure in the news, in medicine or business. Find out who calculated it, and on how many cases.
- Think of a rule system you run into: a bank declined a payment, a website rejected a form. Who updates those rules, and when?
- Press “Finish the lesson” so the cards go into Review.
Test
Question 1 of 5
Cards
These cards go into your review once you finish the lesson.
What is an expert system?
Answer
A program holding a specialist’s knowledge as “if… then…” rules, so that it can solve problems in one narrow field.
What did MYCIN do, and what did its 1979 evaluation show?
Answer
It advised on antibiotics for serious infections. On 10 difficult meningitis cases, experts rating blind found its prescriptions acceptable in 65% of the ratings, against 42.5 to 62.5% for Stanford specialists.
What did XCON (R1) do?
Answer
It put together the full configuration of VAX computers for an order, for DEC. Built by John McDermott, in use, by his account, from January 1980; by 1987 it had about 6,200 rules.
What is a knowledge engineer?
Answer
A person who interviews an expert and turns the expert’s experience into an expert system’s rules.
What was the bottleneck of expert systems?
Answer
Knowledge had to be drawn out of experts and written down by hand, then rewritten whenever the world changed.
Sources
- B. Buchanan, E. Shortliffe (eds.), Rule-Based Expert Systems: The MYCIN Experiments (1984), the full book link only, in English
- E. Feigenbaum, The Art of Artificial Intelligence: Themes and Case Studies of Knowledge Engineering (IJCAI, 1977) link only, in English
- Expert Systems Strategies, vol. 3, no. 8 (1987): on XCON and DEC’s expert systems link only, in English
- Xcon (Wikipedia) CC BY-SA, in English
- Mycin (Wikipedia) CC BY-SA, in English
- National Research Council, Funding a Revolution (1999), chapter 9: Developments in artificial intelligence link only, in English
Next
Next in the course: Two AI winters