The first successful expert systems came from Stanford University in the 1960s and 70s and set the pattern for the field.
Case Study 1: MYCIN
MYCIN (early 1970s, Edward Shortliffe, Stanford) diagnosed bacterial infections of the blood (bacteraemia and meningitis) and recommended antibiotics with the dose adjusted to the patient's weight. It had about 500 production rules of the form IF (the stain of the organism is gram-negative) AND (the morphology is rod) AND (the patient is a compromised host) THEN there is suggestive evidence (0.6) that the organism is Pseudomonas. It used backward chaining, starting from the goal "identify the organism", and asked the physician questions as needed. Because medical knowledge is uncertain, MYCIN introduced certainty factors (CF) from −1 (definitely false) to +1 (definitely true). The CF of a conclusion is the rule's CF times the smaller CF of its premises (AND takes the minimum). When two rules support the same hypothesis with positive CF₁ and CF₂, the combined certainty is CF = CF₁ + CF₂ × (1 − CF₁). It also had an explanation facility (WHY and HOW) and a rule editor. In tests MYCIN's recommendations were rated as good as or better than those of faculty specialists, but it was never used in clinical practice because of legal and ethical worries about responsibility, the lack of integration with hospital systems and limited computing at the time. Its successors include EMYCIN, the first expert system shell, and GUIDON for teaching.
Definition: Certainty factor. A number from −1 to +1 attached to a hypothesis or rule in MYCIN to express the degree of belief or disbelief, combined by simple rules instead of full probability theory.
Case Study 2: DENDRAL
DENDRAL (1965 onwards, Feigenbaum, Buchanan, Lederberg, Djerassi, Stanford) was the first expert system. It determined the molecular structure of an organic compound from its mass spectrum and chemical formula. It followed the plan–generate–test approach: Plan uses chemical knowledge to constrain the problem (which substructures must or must not be present); Generate (the CONGEN program, based on exhaustive structure generation) lists all candidate structures that satisfy the constraints without duplicates; Test (Meta-DENDRAL's rules of mass spectrometry) predicts the spectrum of each candidate and compares it with the observed one, ranking the candidates. Meta-DENDRAL went further and learned the fragmentation rules from data, an early example of machine learning. DENDRAL reached the level of a skilled chemist in its narrow area and was used in practice by chemists. Its lesson, the knowledge principle, is that the power of such a program comes from the knowledge it holds and not from clever general reasoning.
What These Systems Taught
Both showed that domain knowledge, encoded in rules and separated from the inference engine, can produce expert performance; that explanation and handling of uncertainty are essential; and that knowledge acquisition is hard. They led to commercial systems (XCON for configuring DEC computers saved millions of dollars) and to the AI boom of the 1980s.
Table 4.7: MYCIN and DENDRAL
| Basis | MYCIN | DENDRAL |
|---|---|---|
| Domain | Medicine: blood infections | Chemistry: molecular structure |
| Input | Symptoms and lab results | Mass spectrum and formula |
| Reasoning | Backward chaining with certainty factors | Plan, generate and test |
| Output | Diagnosis and antibiotic advice | Ranked candidate structures |
| Legacy | EMYCIN shell | Meta-DENDRAL learning |
Example 4.7: Combining certainty factors
Problem: A rule with CF 0.8 has premises with CFs 0.9 and 0.6, and concludes hypothesis H. A second rule independently supports H with CF 0.4. Find the final CF of H.
Solution:
- Premise CF = min(0.9, 0.6) = 0.6.
- Conclusion CF of the first rule = 0.8 × 0.6 = 0.48.
- Combine with the second: CF = 0.48 + 0.4 × (1 − 0.48) = 0.48 + 0.208 = 0.688.
Result: CF(H) = 0.688: two independent pieces of evidence increase the belief.
def rule_cf(rule_cf, premises):
return rule_cf * min(premises)
def combine(a, b):
return a + b * (1 - a)
c1 = rule_cf(0.8, [0.9, 0.6])
print("first rule CF:", round(c1, 3))
print("combined CF:", round(combine(c1, 0.4), 3))
masses = [15, 29, 30, 43]
pairs = [(a, b) for a in masses for b in masses
if a <= b and a + b == 58]
print("fragment pairs summing to 58:", pairs)
Output
first rule CF: 0.48
combined CF: 0.688
fragment pairs summing to 58: [(15, 43), (29, 29)]
Common mistakes
- Treating certainty factors as ordinary probabilities.
- Thinking MYCIN was deployed widely; it was a research system.
- Forgetting that DENDRAL's strength came from its chemical knowledge.
- Using the wrong combination formula when two rules support the same hypothesis.
Key takeaways
- MYCIN: blood infections, about 500 rules, backward chaining, certainty factors; origin of EMYCIN.
- Combined CF = CF₁ + CF₂(1 − CF₁); AND uses the minimum.
- DENDRAL: first expert system; plan–generate–test; Meta-DENDRAL learned rules.
- Lesson: expert performance needs domain knowledge (the knowledge principle).
Practice questions
- What domain did MYCIN work in?
- What is the DENDRAL approach called?
- How are two positive CFs for the same hypothesis combined?
Answers to the practice questions
- Diagnosis of bacterial blood infections and recommendation of antibiotics.
- Plan–generate–test.
- CF = CF₁ + CF₂ × (1 − CF₁).
Sources
- Official BCA syllabus Artificial Intelligence, course code 26BCA404DS04, Unit IV
