An expert system is a kind of AI that captures the knowledge of HUMAN EXPERTS in a specific domain (medicine, law, engineering, geology) and uses it to give advice or diagnosis.
The four components.
1. Knowledge base. A large database of facts and rules elicited from human experts. For medical diagnosis: symptoms, conditions, test results, drug interactions, the relationships between them. Typically encoded as IF-THEN rules.
2. Inference engine. The reasoning component. Applies the rules in the knowledge base to the user's inputs to draw conclusions. Uses forward-chaining (start from facts, derive conclusions) or backward-chaining (start from goal, work back).
3. User interface. Lets the user enter information (symptoms, observations, history) and read the system's conclusions and recommendations. Usually question-and-answer style.
4. Explanation system. Tells the user WHY a particular conclusion was reached — which rules fired, which facts mattered. Crucial for medical, legal, financial uses where blind trust isn't acceptable.
Famous examples. MYCIN (medical diagnosis, 1970s). DENDRAL (chemistry). Modern expert systems power some clinical decision-support tools, tax-prep software and engineering diagnostics.
Cambridge tip. Mark schemes expect ALL FOUR components. The 'explanation system' is the one most commonly omitted — and the one Cambridge marks most heavily.