AI Chapter-4
AI Chapter-4
Expert System
❖ What is an Expert System?
The expert system is a part of AI, and the first ES was developed in the
year 1970, which was the first successful approach of artificial
intelligence. It solves the most complex issue as an expert by
extracting the knowledge stored in its knowledge base. The system
helps in decision making for complex problems using both facts and
heuristics like a human expert. It is called so because it contains the
expert knowledge of a specific domain and can solve any complex
problem of that particular domain. These systems are designed for a
specific domain, such as medicine, science, etc.
The performance of an expert system is based on the expert's
knowledge stored in its knowledge base. The more knowledge stored
in the KB, the more that system improves its performance. One of the
common examples of an ES is a suggestion of spelling errors while
typing in the Google search box.
Examples of the Expert System:
DENDRAL
MYCIN
PXDES
CaDeT
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.
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.
Advantages of Expert System
• They can be used for risky places where the human presence is not
safe.
• The response of the expert system may get wrong if the knowledge
base contains the wrong information.
• For each domain, we require a specific ES, which is one of the big
limitations.
Operation/Evaluation/Maintenance:
1. Knowledge Base:
Definition: A repository where domain-specific knowledge is stored.
This knowledge includes facts, rules, heuristics, and other forms of
information used by the expert system.
Functionality: Expert system shells provide a way to define and
organize knowledge within the knowledge base.
2. Inference Engine:
Definition: The core component that processes the knowledge base
to make inferences and draw conclusions. It uses various inference
algorithms to reason through the available information.
Functionality: Expert system shells include built-in or customizable
inference engines that perform tasks such as forward chaining,
backward chaining, and rule-based reasoning.
3. User Interface:
Definition: The part of the expert system that interacts with
end-users or other systems. It can be a text-based interface, a
graphical user interface (GUI), or an API for integration with other
applications.
Functionality: Expert system shells often provide tools for creating
user interfaces, allowing developers to design interfaces for users to
input queries and receive explanations for system outputs.
4. Explanation Generator:
Definition: A component that generates explanations for the
system's decisions or recommendations. Explanations help users
understand why the expert system arrived at a specific conclusion.
Functionality: Expert system shells may include modules for
generating human-readable explanations based on the system's
reasoning process. This is especially important for applications where
transparency and user trust are critical.
7. Integration Capabilities:
Definition: The ability to integrate the expert system with other
software applications and systems.
Functionality: Expert system shells often provide APIs and interfaces
that allow seamless integration with databases, external APIs, and
other software components.
Examples of popular expert system shells include CLIPS, Jess, and
Drools. These shells provide the necessary infrastructure and tools for
building rule-based expert systems efficiently. Developers can focus
on defining the domain-specific knowledge and rules, leveraging the
capabilities provided by the expert system shell to handle the
underlying complexities of inference and user interaction. Examples
of popular expert system shells include CLIPS, Jess, and Drools. These
shells provide the necessary infrastructure and tools for building
rule-based expert systems efficiently. Developers can focus on
defining the domain-specific knowledge and rules, leveraging the
capabilities provided by the expert system shell to handle the
underlying complexities of inference and user interaction.
❖ Explanations:
Explanations in AI are essential for making machine learning models
more transparent, interpretable, and trustworthy. They provide
insights into how AI systems arrive at specific decisions, predictions, or
actions. Here are several common techniques and concepts related to
explanations in AI:
1. Feature Importance:
•Definition: Determining the contribution of each input feature to the
model's output.
•Usage: Helps users understand which features the model relies on the
most when making decisions.
2. Local Explanations:
•Definition: Providing explanations for individual predictions or
decisions made by the AI system.
•Usage: Useful when understanding the reasoning behind a specific
output is more important than understanding the entire model.
3. Global Explanations:
•Definition: Explaining the overall behavior of the AI model across all
data points.
•Usage: Offers a broad overview of the model's decision-making
process, helping users grasp its general tendencies.
4. Rule-Based Explanations:
•Definition: Representing the decision-making process of the model as
a set of rules.
•Usage: Enhances interpretability by presenting the model's logic in a
human-readable format.
.
5. Counterfactual Explanations:
•Definition: Demonstrating how changes in input variables would lead
to different outcomes.
•Usage: Helps users understand the factors influencing the model's
decision by showing what could have happened under different
conditions
6. Visual Explanations:
• Definition: Using visual aids like charts, graphs, or heatmaps to
explain model predictions.
•Usage: Simplifies complex relationships within the data, making it
easier for non-experts to comprehend the model's decisions.
7. Shapley Values:
• Definition: A concept from cooperative game theory, used to
fairly distribute a value among a group of contributors.
•Usage: Applied in AI to attribute a prediction to different features,
providing a clear breakdown of feature importance for each
prediction.
❖ Knowledge Acquisition:
Fourth, data can be biased. That is, it can be skewed to favor certain
outcomes. This can lead to AI models that are not effective or that
produce results that are unfair.
Finally, data can be dynamic. That is, it can change over time. This can
make it difficult to keep AI models up-to-date.
role of knowledge acquisition in AI:
Robotics: Expert systems are used in robotic systems for tasks such as
object recognition, path planning, and autonomous navigation.