0% found this document useful (0 votes)
23 views

What is an Expert System

Uploaded by

sanjaykewat07050
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

What is an Expert System

Uploaded by

sanjaykewat07050
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

What is an Expert System?

An expert system is a computer program that is designed to solve complex problems and to provide
decision-making ability like a human expert. It performs this by extracting knowledge from its
knowledge base using the reasoning and inference rules according to the user queries.

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.

Below is the block diagram that represents the working of an expert system:

Characteristics of Expert System

o High Performance: The expert system provides high performance for solving any type of
complex problem of a specific domain with high efficiency and accuracy.

o Understandable: Expert systems communicate with users in a human-readable format.

o Reliable: Expert systems produce consistent and accurate results.

o Highly responsive: Expert systems respond quickly, even to complex queries.


Components of Expert System

An expert system mainly consists of three components:

o User Interface

o Inference Engine

o Knowledge Base

1. User Interface

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.

2. Inference Engine(Rules of Engine)

o The inference engine is known as the brain of the expert system as it is the main processing
unit of the system. It applies inference rules to the knowledge base to derive a conclusion or
deduce new information. It helps in deriving an error-free solution of queries asked by the
user.

3. Knowledge Base

o 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.
Code Components Mapped to Expert System Architecture: copy me nahi likhana hai.
Component Code Example Purpose

User se interaction ke liye


User
input() and print() aur results ko display karne
Interface
ke liye.

Logic lagakar closest


Inference difflib.get_close_matches(user_input,
dictionary, n=3)
matches (suggestions) find
Engine
karne ke liye.

Predefined valid words ka


Knowledge
dictionary = ["apple", "banana", ...] storage, jo suggestions ke
Base
liye use hota hai.

Requirements of an expert system include1234:

1. Knowledge base: An organized collection of facts about the system’s domain.

2. Inference engine: Interprets and evaluates the facts in the knowledge base to provide
answers.

3. High performance: Efficiently processes data and provides rapid solutions.

4. Reliability: Offers consistent and error-free decisions.

5. Adaptability: Can be corrected or updated easily.

6. User-friendly interface: Provides an easy-to-use interface.

7. Explainability: Makes understandable what it knows and the reasons for its answers.

Expert systems are a type of artificial intelligence (AI) designed to mimic the decision-making ability
of a human expert. These systems are used in domains where expertise is required, such as medical
diagnosis, engineering, or finance. Here's an overview of their components and capabilities:

Components of Expert Systems

1. User Interface

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.
2. Inference Engine(Rules of Engine)

o The inference engine is known as the brain of the expert system as it is the main processing
unit of the system. It applies inference rules to the knowledge base to derive a conclusion or
deduce new information. It helps in deriving an error-free solution of queries asked by the
user.

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

4.Explanation Facility:

o Justifies the reasoning process of the system.

o Helps users understand why a particular decision or recommendation was made.

5.Knowledge Acquisition Module:

1. The knowledge acquisition module allows new knowledge to be added to the


system.
2. This can be done manually by experts or through automated learning
mechanisms.
dictionary.append("newword")

6.Working Memory:

o A temporary storage area for intermediate results during reasoning.

o Keeps track of facts and rules currently being processed.

2. Example:

working_memory = {
"user_input": user_input,
"suggestions": suggestions,
"similarity_ratio": similarity_ratio
}
o

Capabilities of Expert Systems

1. Decision Support:

o Expert systems assist users by providing recommendations based on expert


knowledge.

o Example: Diagnosing diseases based on symptoms.

2. Problem Solving:

o Solves specific problems in well-defined domains where expertise is required.

o Example: Troubleshooting technical faults in machines.


3. Explanation:

o Explains its reasoning and conclusions, which helps users trust and learn from the
system.

o Example: Explaining why a particular treatment is recommended in healthcare.

4. Efficiency:

o Expert systems can perform tasks much faster than humans, improving efficiency.

o Can operate 24/7, unlike human experts.

5. Consistency:

o Expert systems provide consistent answers every time for the same problem,
eliminating the variability found in human decision-making..

6. Adaptability:

7. Error Reduction:

o Minimizes human error in decision-making by relying on well-defined rules and


knowledge.

8. Handling Large Data Sets:

Expert systems are capable of processing large amounts of data more efficiently than human
experts, making sense of vast information quickly.

Applications of Expert Systems

1. Medical Diagnosis: Systems like MYCIN and DENDRAL provide diagnostic recommendations.

2. Engineering: Diagnosing faults in equipment or systems.

3. Finance: Credit risk assessment, fraud detection.

4. Customer Support: Automated systems for troubleshooting and answering queries.

5. Education: Tutoring systems to provide personalized learning experiences.

The Inference Engine is a critical component of expert systems in Artificial Intelligence (AI). It is
responsible for processing the knowledge base (facts and rules) to derive conclusions or make
decisions. Forward chaining and backward chaining are two primary reasoning techniques used by
the inference engine. Here’s a detailed explanation:

Inference Engine Forward & backward Chaining in ai


Forward Chaining

Definition:
Forward chaining is a data-driven reasoning approach. It starts with the known facts and applies
rules to infer new facts or reach a conclusion.

Process:

1. Start with Facts: The system begins with the initial set of known data or inputs.

2. Apply Rules: It examines all the rules in the knowledge base to see which ones are triggered
by the current facts.

3. Add Derived Facts: When a rule is triggered, its conclusion is added to the set of known
facts.

4. Repeat: The process continues until no new facts can be inferred or a goal is reached.

Applications:

• Diagnostic systems where a chain of consequences needs to be established.

• Example: In a fire alarm system, known facts like "smoke detected" and "high temperature"
trigger rules that conclude "fire present."

Advantages:

• Suitable for situations where all facts are known at the outset.

• Works well in domains where reasoning involves accumulating evidence.

Disadvantages:

• Can be computationally expensive if the state space is large.


• May generate unnecessary conclusions if no specific goal is defined.

Backward Chaining

Definition:
Backward chaining is a goal-driven reasoning approach. It starts with a goal and works backward to
determine if the goal can be achieved based on the facts and rules.

Process:

1. Start with a Goal: The system begins with a hypothesis or goal that needs to be verified.

2. Check Rules: It examines the rules in the knowledge base to see which ones can lead to the
goal.

3. Evaluate Conditions: For a rule to be applied, the system checks whether its conditions are
satisfied. If not, it sets those conditions as sub-goals and works to verify them.

4. Repeat: The process continues until the goal is proven true, false, or all possibilities are
exhausted.

Applications:

• Diagnostic and troubleshooting systems where a specific outcome needs to be validated.

• Example: In a medical diagnosis system, the goal might be to determine if a patient has a
particular disease. The system works backward from symptoms to causes.

Advantages:

• Focuses only on what is necessary to achieve the goal, making it efficient.

• Useful in applications with specific, well-defined goals.

Disadvantages:

• Can fail or loop indefinitely if the goal cannot be supported by the facts.

• Relies heavily on the correctness and completeness of the knowledge base.

Comparison: Forward vs. Backward Chaining

Feature Forward Chaining Backward Chaining

Approach Data-driven Goal-driven

Start Point Starts from known facts Starts from a goal

Goal May not have a specific goal Always focused on a specific goal

Efficiency Less efficient if there is no clear goal More efficient for targeted reasoning

Use Cases Used in monitoring and data analysis Used in diagnostics and problem-solving
Example: Diagnosing a Malfunctioning Light

Knowledge Base:

1. If the bulb is burned out, the light will not work.

2. If the power is off, the light will not work.

3. If the switch is faulty, the light will not work.

Forward Chaining:

1. Known fact: "The light is not working."

2. The system checks conditions of each rule and deduces:

o Is the bulb burned out?

o Is the power off?

o Is the switch faulty?

3. Using facts (e.g., "bulb is burned out"), it concludes why the light is not working.

Backward Chaining:

1. Goal: "Why is the light not working?"

2. The system works backward:

o Is the bulb burned out? If yes, stop. If no, check:

o Is the power off? If yes, stop. If no, check:

o Is the switch faulty?

3. The system verifies each condition until the goal is confirmed or ruled out.

Limitations of Expert Systems in AI

While expert systems are valuable tools in artificial intelligence, they have several limitations that
restrict their performance and applicability in certain scenarios. These limitations include:

1. Knowledge Base Limitations

• Dependence on Human Experts:

o The system's effectiveness is limited by the quality and completeness of the


knowledge acquired from human experts.

o If the domain knowledge is incomplete, the system's decisions will be flawed.

• Static Knowledge Base:


o Traditional expert systems have difficulty adapting to new information or evolving
knowledge in their domain.

3. Lack of Common Sense


Expert systems do not have common sense like humans. It works on the basis of predefined
rules and knowledge and can fail in any unexpected situation.

3. Rigidity and Domain-Specificity

Expert Systems are rigid, that is, they work only for a specific domain. If they have to adapt to a
new domain, the entire system has to be redesigned.

Example: A medical expert system cannot be used for car repairing.

4. No Learning Capability:

Expert Systems cannot acquire or update knowledge on their own like machine learning. Knowledge
has to be updated manually.

Example: A disease diagnosis system has to be manually updated with new treatments..

5. Inability to Learn

• Traditional expert systems do not have learning capabilities. They cannot improve or adapt
without manual updates to the knowledge base.

o Modern AI approaches like machine learning and neural networks address this
limitation.

6. No Emotional or Human Touch

• Expert systems lack emotional intelligence, empathy, and the ability to handle subjective or
emotional aspects of human interactions.

7.High Development Costs

Developing and maintaining expert systems is very expensive and time-consuming. It is quite
challenging to acquire knowledge with the help of experts and design it effectively.

Example: It takes years to create an accurate expert system for the aerospace industry.
8. Error Propagation

• If the knowledge base contains errors, those errors can propagate through the inference
process, leading to incorrect conclusions.

• Debugging such systems can be challenging.

9. Lack of Creativity

• Expert systems cannot think creatively or innovate; they are confined to the rules and
knowledge explicitly programmed into them.

10. Ethical and Legal Concerns

Real-World Challenges

• In rapidly changing fields, expert systems may become obsolete unless frequently updated.

• They may also struggle with cultural, linguistic, or contextual nuances that affect decision-
making in diverse environments.

Overcoming Limitations

While expert systems have limitations, combining them with modern AI technologies like machine
learning, fuzzy logic, and natural language processing (NLP) can help overcome some of these
challenges, making them more adaptable, scalable, and intelligent.

Would you like to discuss strategies to mitigate these limitations or explore modern alternatives to
expert systems?

Expert System Development Environment

The development environment for an expert system is a specialized set of tools and platforms used
to design, implement, and deploy the system. It typically includes the following components:

1. Expert System Shell:

o A software framework that simplifies the creation of expert systems.

o It includes built-in inference engines, user interfaces, and knowledge base


management tools.

o Examples: CLIPS, Prolog, Jess, Drools.

2. Programming Languages:
o Commonly used languages for expert system development include:

▪ Prolog: Specialized for logic programming and reasoning.

▪ Lisp: Suitable for symbolic processing and AI applications.

▪ General-purpose languages like Python (with libraries like Pyke) and Java.

3. Knowledge Representation Tools:

o Systems to encode rules, facts, and relationships, such as:

▪ Semantic networks.

▪ Decision trees.

▪ Production rules.

4. Inference Engines:

o Integrated engines to perform reasoning tasks like forward and backward chaining.

5. Database Integration:

o For storing and managing the knowledge base and facts, databases like MySQL or
NoSQL can be integrated.

6. Testing and Debugging Tools:

o Tools to verify the accuracy, reliability, and performance of the system.

7. User Interface Design Tools:

o For creating interactive interfaces that allow users to query the system and view
recommendations.

Technology Used in Expert Systems

1. Artificial Intelligence Techniques:

o Rule-Based Systems: The foundation of most expert systems.

o Fuzzy Logic: For handling uncertain or imprecise information.

o Machine Learning: To incorporate adaptive learning capabilities in modern expert


systems.

2. Natural Language Processing (NLP):

o Enables systems to interact with users in natural language for ease of use.

3. Cloud Computing:

o Supports scalable deployment and integration of expert systems with large data
sets.

4. Big Data and Analytics:


o Enhances the ability to handle and analyze vast amounts of information for decision-
making.

5. Integration with IoT:

o Allows expert systems to interact with sensors and devices, especially in fields like
smart manufacturing and healthcare.

6. Graphical User Interfaces (GUIs):

o Used to create intuitive systems for non-technical users.

Benefits of Expert Systems

1. Consistency in Decision-Making:

o Provides uniform solutions without the variability seen in human decision-making.

2. Efficiency and Speed:

o Processes and analyzes information much faster than human experts, saving time.

3. 24/7 Availability:

o Can operate continuously without fatigue, unlike human experts.

4. Cost Savings:

o Reduces reliance on expensive human expertise for repetitive or routine tasks.

5. Improved Accuracy:

o Reduces human errors by relying on precise, rule-based reasoning.

6. Knowledge Preservation:

o Captures and stores expert knowledge, which can be reused and shared across
organizations.

7. Accessibility to Expertise:

o Makes expert-level knowledge available to non-experts, democratizing specialized


fields like medicine or law.

8. Adaptability:

o Can be updated to include new knowledge, ensuring relevance in dynamic fields.

9. Scalability:

o Can handle large-scale operations and multiple users simultaneously.

10. Training and Education:

o Serves as a tool for training individuals by providing consistent and expert-level


feedback.
Applications of Expert Systems

Expert systems are used across a wide range of industries due to their efficiency and reliability. Key
applications include:

• Healthcare: Diagnosing diseases, recommending treatments (e.g., MYCIN).

• Finance: Fraud detection, investment analysis.

• Engineering: Troubleshooting systems, fault diagnosis.

• Agriculture: Pest control, crop management.

• Customer Support: Automated troubleshooting and problem resolution.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy