Expert System
Expert System
Expert system is a crucial subset of artificial intelligence (AI) that is designed to solve complex
problems and to provide decision-making ability like a human expert. In simple terms, An
Expert System is an AI program that mimics human decision-making to solve complex
problems in a specific field. It uses knowledge and rules to provide expert-level solutions. It
performs this by extracting knowledge from its knowledge base and apply some reasoning
according to the user queries.
The performance of an expert system is based on the its knowledge stored in its knowledge
base. The more knowledge stored in the Knowledge Base, the more that expert system
improves its performance. One of the common examples of an Expert System is a suggestion
of spelling errors while typing in the Google search box.
DENDRAL: It was an artificial intelligence project that was made as a chemical analysis
expert system. It was used in organic chemistry to detect unknown organic molecules
with the help of their mass spectra and knowledge base of chemistry.
MYCIN: It was one of the earliest backward chaining expert systems that was designed
to find the bacteria causing infections like bacteraemia and meningitis. It was also used
for the recommendation of antibiotics and the diagnosis of blood clotting diseases.
High Performance: The expert system provides high performance for solving any type
of complex problem of a specific domain with high efficiency and accuracy.
Highly responsive: ES provides the result for any complex query within a very short
period of time.
Inference Engine
Knowledge Base
1. User Interface
The user interface is like the bridge that allows users to interact with the expert system. With
the help of a user interface, the expert system interacts with the user, takes queries as an
input in a readable format, and passes it to the inference engine. After getting the response
from the inference engine, it displays the output to the user. In other words, it is an interface
that helps a non-expert user to communicate with the expert system to find a solution.
With the help of an inference engine, the system extracts the knowledge from the
knowledge base.
Deterministic Inference engine: The conclusions drawn from this type of inference
engine are assumed to be true. It is based on facts and rules.
Forward Chaining: It starts from the known facts and rules, and applies the inference
rules to add their conclusion to the known facts.
Backward Chaining: It is a backward reasoning method that starts from the goal and
works backward to prove the known facts.
3. Knowledge Base
The knowledgebase is a type of storage that stores knowledge acquired from the
different experts of the particular domain. It is considered as big storage of knowledge.
The more the knowledge base, the more precise will be the Expert System.
One can also view the knowledge base as collections of objects and their attributes.
Such as a Lion is an object and its attributes are it is a mammal, it is not a domestic
animal, etc.
1. Rule-Based Expert Systems : One of the most common types is Rule-Based Expert
Systems, which rely on if-then rules to process information and make decisions. These
rules are typically crafted by domain experts and serve as the system’s reasoning
mechanism. A well-known example is MYCIN, an early medical diagnosis system that
identified bacterial infections.
2. Frame-Based Expert Systems : Another category is Frame-Based Expert Systems, which
organize knowledge using frames, similar to objects in programming. These frames store
attributes and values related to specific concepts, making them useful in natural
language processing and other knowledge representation tasks.
3. Fuzzy Logic Systems : For situations involving uncertainty and imprecision, fuzzy logic
Systems come into play. These systems don’t operate on strict true/false values but
instead allow for degrees of truth. Fuzzy control systems, commonly used in household
appliances like washing machines and air conditioners, leverage this approach to
optimize performance based on variable input conditions.
4. Neural Network-Based Expert Systems : Integrate artificial neural networks to learn
patterns from data and improve decision-making. These systems are widely used in
applications like image recognition and speech processing, where traditional rule-based
approaches might struggle.
5. Neuro-Fuzzy Expert Systems : A more advanced hybrid approach is Neuro-Fuzzy Expert
Systems, which merge the learning capabilities of neural networks with the uncertainty-
handling strengths of fuzzy logic. These systems are particularly useful in financial
forecasting and automated control systems, where both structured learning and flexible
reasoning are necessary.
They can be used for risky places where the human presence is not safe.
Error possibilities are less if the Knowledge Base contains correct knowledge.
Cost control : Expert systems are relatively inexpensive compared to the cost of
employing human experts. They can help reach decisions more efficiently, which saves
time and cuts costs.
Permanence : Human experts eventually leave their role, and a lot of specific knowledge
may go with them. Knowledge-based systems provide a permanent repository for
knowledge and information.
Accuracy : Expert systems are not prone to human error or emotional influence. They
make decisions based on defined rules and facts.
Availability: They are available 24/7 and can handle multiple queries simultaneously,
providing timely assistance and support.
The response of the expert system may get wrong if the knowledge base contains the
wrong information.
Like a human being, it cannot produce a creative output for different scenarios.
For each domain, we require a specific Expert System, which is one of the big limitations.
3. Explanation Ability Can explain reasoning and Can trace rules used in
provide details on how a problem-solving and explain
conclusion was reached. how and why a conclusion
was reached.
4. Handling Uncertainty Can make decisions even with Can handle some uncertainty
incomplete, uncertain, or but relies on predefined rules.
unclear information.
5. Improvement Over Time Improves through learning, Improves by adding new rules
experience, and practice over or modifying existing ones in
years. the knowledge base.
7. Time Taken for Problem- Time varies depending on the Solves problems quickly and
Solving complexity of the problem. takes very little time.
An Expert System Shell is like a basic framework of an expert system, but without any
knowledge. To create a complete expert system, the user just needs to add knowledge in the
form of rules and provide the necessary data.
It provides a simple software environment that helps developers build expert systems without
starting from scratch. The shell already includes the core logic needed for an expert system.
Using an expert system shell makes development easier and faster, but it also has limitations.
Developers must work within the fixed structure of the shell, meaning they cannot freely
choose how to represent knowledge, make inferences, or manage uncertainty. Because of
this, expert systems built with shells can solve problems efficiently but may lack advanced
customization. Today, many expert system shells are available in the market, each with
different features and capabilities.
1. Knowledge Base
The core component that processes information from the knowledge base.
Uses logical rules to make conclusions, provide solutions, and give recommendations.
4. User Interface
How It Worked:
MYCIN used a rule-based system with around 600 IF-THEN rules.
It collected information about a patient’s symptoms, lab test results, and medical history.
The inference engine applied rules to match symptoms with known diseases.
MYCIN provided diagnosis recommendations and suggested the best antibiotic treatment,
along with dosage instructions.
Advantages of MYCIN:
✔ More accurate than many human doctors in diagnosing infections.
✔ Provided reasoning for its recommendations, helping doctors understand why a decision
was made.
✔ Used certainty factors to handle uncertainty in medical diagnosis.
Limitations of MYCIN:
❌ Never used in real hospitals due to legal and ethical concerns (AI making medical
decisions).
❌ Could not explain its reasoning in a way that humans could always understand.
❌ Required constant updates to keep medical knowledge up to date.
How It Worked:
Scientists provided mass spectrometry data (a method used to analyze chemical substances).
DENDRAL applied heuristic rules (expert knowledge of chemistry) to generate possible
molecular structures.
It analyzed all possible structures and selected the most likely one based on chemical rules.
Advantages of DENDRAL:
✔ Accurately identified unknown chemical compounds faster than human experts.
✔ Helped chemists discover new molecules in scientific research.
✔ Was one of the first AI systems that showed machines could outperform humans in
specialized tasks.
Limitations of DENDRAL:
❌ Limited to organic chemistry and could not be used for other scientific domains.
❌ Required expert chemists to manually input rules, making it difficult to scale.
Both MYCIN and DENDRAL were groundbreaking expert systems that proved AI could solve
specialized problems. MYCIN showed how expert systems could assist in medical diagnosis,
while DENDRAL demonstrated AI’s power in scientific discovery. These systems paved the
way for modern AI applications in healthcare, chemistry, and beyond.
Next Topic #
← prev next →