Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 4 — Representing Domain-Specific Knowledge

Lesson 31 of 34 in the free Artificial Intelligence notes on Siksha Sarovar, written by Rohit Jangra.

Representing Domain-Specific Knowledge

An expert system is only as good as how well its domain-specific knowledge is represented — this lesson looks at how the general KR approaches from Unit 2 are specialised for building a real expert system.

Domain Knowledge vs General Knowledge

General/common-sense knowledgeDomain-specific knowledge
ScopeBroad, everyday facts ("water is wet")Narrow, specialised to one field ("a fasting glucose above 126 mg/dL indicates diabetes")
SourceWidely shared human knowledgeExtracted from one or a few human domain experts
Expert systems primarily useRarely, if at allAlmost exclusively — this is their whole value

Representing Domain Knowledge as Production Rules

The most common representation in classic expert systems is the IF–THEN rule, because it maps naturally onto how human experts describe their own reasoning.

RULE 17:
IF   the patient has fever
AND  the patient has a rash
AND  the patient has recently travelled to an endemic region
THEN conclude (with certainty factor 0.7) that the diagnosis is dengue
Rule componentPurpose
Conditions (IF part)Pattern to match against the current case's working memory
Conclusion (THEN part)New fact(s) to assert, or an action to recommend
Certainty factorNumeric confidence (used when domain knowledge is uncertain, as in MYCIN)

The Knowledge Acquisition Process

This process is famously slow — called the "knowledge acquisition bottleneck" — because human experts often cannot fully articulate the heuristics they use unconsciously, and a knowledge engineer must repeatedly probe, encode, and test rules against real cases.

Beyond Simple Rules: Structured Domain Knowledge

Large expert systems often combine rules with frames (Unit 2) to represent structured domain objects:

Frame: Patient-Case
  slot: symptoms        value: [fever, rash]
  slot: travel-history   value: endemic-region
  slot: diagnosis         value: (to be inferred by rules)

Rules then reason over the slots of such frames, combining the compactness of frame-based structuring with the modularity of rule-based reasoning.

Handling Uncertainty in Domain Knowledge

Real domain experts are rarely 100% certain. Representations must therefore support degrees of belief:

TechniqueIdea
Certainty factors (MYCIN-style)A number between -1 (definitely false) and +1 (definitely true) attached to each rule/conclusion
Bayesian probabilityFormal probability theory combines evidence using Bayes' theorem
Fuzzy logicDegrees of truth between 0 and 1 for inherently vague predicates ("the fever is high")

Exam tip: be ready to write a sample IF–THEN rule for a given domain (medical, financial, agricultural) — examiners frequently ask you to construct a rule, not just define what one is.