CSC 494 · Introduction to Artificial Intelligence
Our notes
2 min readWhat an expert system is
A computer program that gives expert-level advice in a narrow field by reasoning with knowledge captured from human experts: diagnosing diseases, faults in machines, approving loans, identifying minerals.
Architecture
| Component | Role |
|---|---|
| Knowledge base | facts and rules (often IF-THEN) about the domain |
| Inference engine | applies rules to facts (forward or backward chaining) to reach conclusions |
| Working memory | facts about the current case |
| User interface | asks questions, gives advice |
| Explanation facility | answers "why?" (why this question) and "how?" (how a conclusion was reached) |
| Knowledge acquisition facility | tools to add and edit knowledge |
An expert system shell is the inference engine, interface and tools without the domain knowledge (CLIPS, JESS, and older shells).
Forward and backward chaining
- Forward (data-driven): start with known facts; fire rules to derive conclusions. Suits monitoring, configuration (XCON).
- Backward (goal-driven): start with a hypothesis; ask for facts that would prove it. Suits diagnosis (MYCIN).
Certainty factors (MYCIN style)
Each rule and fact has a certainty factor (CF) from −1 (definitely false) to +1 (definitely true).
- Rule conclusion CF = rule CF × CF of the premise (for AND premises, use the minimum).
- Combining two positive CFs for the same conclusion: CF = CF₁ + CF₂ × (1 − CF₁).
Worked example: two rules support "bacterial infection" with CF 0.6 and 0.5. Combined CF = 0.6 + 0.5 × 0.4 = 0.8.
If a rule has CF 0.7 and its premises are "fever" (CF 0.9) AND "stiff neck" (CF 0.6): conclusion CF = 0.7 × min(0.9, 0.6) = 0.42.
Building an expert system
- Identify a suitable problem: narrow, needs expertise, experts exist and agree, solved by reasoning not common sense, valuable.
- Knowledge acquisition: the knowledge engineer interviews experts, studies cases and documents: the main bottleneck.
- Represent the knowledge (rules, frames).
- Build a prototype with a shell.
- Test and validate against expert decisions on real cases.
- Deploy and maintain: update the knowledge as the field changes.
People involved: domain expert, knowledge engineer, end user, programmers.
Famous systems
| System | Domain |
|---|---|
| DENDRAL (1960s) | identifying chemical structures from mass spectra |
| MYCIN (1970s) | diagnosing blood infections and recommending antibiotics |
| PROSPECTOR | mineral exploration |
| XCON / R1 | configuring DEC computers |
| CADUCEUS | internal medicine |
Advantages and limits
- Advantages: consistent, available any time, preserves scarce expertise, explains its reasoning, can train staff.
- Limits: brittle outside its narrow domain, no common sense, costly knowledge acquisition and maintenance, does not learn by itself (unless combined with machine learning), questions of responsibility when advice is wrong.
Exams usually ask
- Draw and explain the architecture of an expert system.
- Describe the stages of building an expert system.
- Combine certainty factors.
Common mistake
Calling any database or calculator an expert system. An expert system reasons with encoded expert knowledge and can explain its conclusions.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Expert system
(opens en.wikipedia.org in a new tab)
Wikipedia, Expert system, CC BY-SA 4.0 · licence
-
Mycin
(opens en.wikipedia.org in a new tab)
Wikipedia, Mycin, CC BY-SA 4.0 · licence
Watch
-
Best pick Artificial Intelligence - Introduction to Expert System
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
-
Expert Systems | Scope of AI | Artificial intelligence | Lec-45 | Bhanu Priya
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Expert Systems: The Brain Behind Artificial Intelligence!
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Expert Systems in AI Explained | Components, Examples, Advantages & Limitations
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
Introduction to Expert Systems
25 min · ≈ 113 MB · about ₦63
(opens youtube.com in a new tab)
-
3. Reasoning: Goal Trees and Rule-Based Expert Systems
50 min · ≈ 225 MB · about ₦126
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.