0% found this document useful (0 votes)
83 views30 pages

Expert Systems Unit1 .

This document provides an overview of expert systems, including: 1. An expert system is a computer program that solves complex problems like a human expert by extracting knowledge from its knowledge base using reasoning and inference rules. 2. The key components of an expert system are the user interface, inference engine, and knowledge base. The inference engine applies rules to the knowledge base to derive solutions. 3. Expert systems have advantages like high performance, reliability, and being able to respond quickly. They are not meant to replace humans but to assist with complex decision making.

Uploaded by

Mohammed Lukhman
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)
83 views30 pages

Expert Systems Unit1 .

This document provides an overview of expert systems, including: 1. An expert system is a computer program that solves complex problems like a human expert by extracting knowledge from its knowledge base using reasoning and inference rules. 2. The key components of an expert system are the user interface, inference engine, and knowledge base. The inference engine applies rules to the knowledge base to derive solutions. 3. Expert systems have advantages like high performance, reliability, and being able to respond quickly. They are not meant to replace humans but to assist with complex decision making.

Uploaded by

Mohammed Lukhman
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/ 30

Lecture Topic 1.1.

This lecture iS MAPPED WITH CO1 AND CO2

Introduction to 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.

Note: It is important to remember that an expert system is not used to replace the
human experts; instead, it is used to assist the human in making a complex decision.
These systems do not have human capabilities of thinking and work on the basis of the
knowledge base of the particular domain.

Some popular examples of the Expert System:


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.

PXDES: It is an expert system that is used to determine the type and level of lung
cancer. To determine the disease, it takes a picture from the upper body, which looks
like the shadow. This shadow identifies the type and degree of harm.

CaDeT: The CaDet expert system is a diagnostic support system that can detect cancer
at early stages.

Characteristics of Expert System

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

Understandable: It responds in a way that can be easily understandable by the user. It


can take input in human language and provides the output in the same way.

Reliable: It is much reliable for generating an efficient and accurate output.

Highly responsive: ES provides the result for any complex query within a very short
period of time.

Components of Expert System

An expert system mainly consists of three components:

User Interface

Inference Engine

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)

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.

With the help of an inference engine, the system extracts the knowledge from the
knowledge base.

There are two types of inference engine:

Deterministic Inference engine: The conclusions drawn from this type of inference
engine are assumed to be true. It is based on facts and rules.

Probabilistic Inference engine: This type of inference engine contains uncertainty in


conclusions, and based on the probability.

Inference engine uses the below modes to derive the solutions:


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.

It is similar to a database that contains information and rules of a particular domain or


subject.

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.

Components of Knowledge Base

Factual Knowledge: The knowledge which is based on facts and accepted by knowledge
engineers comes under factual knowledge.

Heuristic Knowledge: This knowledge is based on practice, the ability to guess,


evaluation, and experiences.

Knowledge Representation: It is used to formalize the knowledge stored in the


knowledge base using the If-else rules.

Knowledge Acquisitions: It is the process of extracting, organizing, and structuring the


domain knowledge, specifying the rules to acquire the knowledge from various experts,
and store that knowledge into the knowledge base.

Lecture Topic 1.1.2

This lecture iS MAPPED WITH CO2

Knowledge representation and organisation

Humans are best at understanding, reasoning, and interpreting knowledge. Human


knows things, which is knowledge and as per their knowledge they perform various
actions in the real world. But how machines do all these things comes under knowledge
representation and reasoning. Hence we can describe Knowledge representation as
following:
Knowledge representation and reasoning (KR, KRR) is the part of Artificial intelligence
which concerned with AI agents thinking and how thinking contributes to intelligent
behavior of agents.

It is responsible for representing information about the real world so that a computer
can understand and can utilize this knowledge to solve the complex real world problems
such as diagnosis a medical condition or communicating with humans in natural
language.

It is also a way which describes how we can represent knowledge in artificial


intelligence. Knowledge representation is not just storing data into some database, but it
also enables an intelligent machine to learn from that knowledge and experiences so
that it can behave intelligently like a human.

What to Represent:

Following are the kind of knowledge which needs to be represented in AI systems:

Object: All the facts about objects in our world domain. E.g., Guitars contains strings,
trumpets are brass instruments.

Events: Events are the actions which occur in our world.

Performance: It describe behavior which involves knowledge about how to do things.

Meta-knowledge: It is knowledge about what we know.

Facts: Facts are the truths about the real world and what we represent.

Knowledge-Base: The central component of the knowledge-based agents is the


knowledge base. It is represented as KB. The Knowledgebase is a group of the
Sentences (Here, sentences are used as a technical term and not identical with the
English language).

Knowledge: Knowledge is awareness or familiarity gained by experiences of facts, data,


and situations. Following are the types of knowledge in artificial intelligence:

Types of knowledge

Following are the various types of knowledge:


1. Declarative Knowledge:

Declarative knowledge is to know about something.

It includes concepts, facts, and objects.

It is also called descriptive knowledge and expressed in declarativesentences.

It is simpler than procedural language.

2. Procedural Knowledge

It is also known as imperative knowledge.

Procedural knowledge is a type of knowledge which is responsible for knowing how to


do something.

It can be directly applied to any task.

It includes rules, strategies, procedures, agendas, etc.

Procedural knowledge depends on the task on which it can be applied.

3. Meta-knowledge:

Knowledge about the other types of knowledge is called Meta-knowledge.

4. Heuristic knowledge:
Heuristic knowledge is representing knowledge of some experts in a filed or subject.

Heuristic knowledge is rules of thumb based on previous experiences, awareness of


approaches, and which are good to work but not guaranteed.

5. Structural knowledge:

Structural knowledge is basic knowledge to problem-solving.

It describes relationships between various concepts such as kind of, part of, and
grouping of something.

It describes the relationship that exists between concepts or objects.

LectureTopic1.1.3

This lecture iS MAPPED WITH C01

Characteristics of an Expert System :

Human experts are perishable, but an expert system is permanent.

It helps to distribute the expertise of a human.

One expert system may contain knowledge from more than one human experts thus
making the solutions more efficient.

It decreases the cost of consulting an expert for various domains such as medical
diagnosis.

They use a knowledge base and inference engine.

Expert systems can solve complex problems by deducing new facts through existing
facts of knowledge, represented mostly as if-then rules rather than through
conventional procedural code.

Expert systems were among the first truly successful forms of artificial intelligence (AI)
software.

Advantages of Expert System

These systems are highly reproducible.

They can be used for risky places where the human presence is not safe.

Error possibilities are less if the KB contains correct knowledge.


The performance of these systems remains steady as it is not affected by emotions,
tension, or fatigue.

They provide a very high speed to respond to a particular query.

Limitations of Expert System

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.

Its maintenance and development costs are very high.

Knowledge acquisition for designing is much difficult.

For each domain, we require a specific ES, which is one of the big limitations.

It cannot learn from itself and hence requires manual updates.

Applications of Expert System

In designing and manufacturing domain


It can be broadly used for designing and manufacturing physical devices such as
camera lenses and automobiles.

In the knowledge domain


These systems are primarily used for publishing the relevant knowledge to the users.
The two popular ES used for this domain is an advisor and a tax advisor.

In the finance domain


In the finance industries, it is used to detect any type of possible fraud, suspicious
activity, and advise bankers that if they should provide loans for business or not.

In the diagnosis and troubleshooting of devices


In medical diagnosis, the ES system is used, and it was the first area where these
systems were used.

Planning and Scheduling


The expert systems can also be used for planning and scheduling some particular tasks
for achieving the goal of that task.

LectureTopic1.1.4

This lecture iS MAPPED WITH CO3 andCO2


Development of Expert System

Here, we will explain the working of an expert system by taking an example of MYCIN
ES. Below are some steps to build an MYCIN:

Firstly, ES should be fed with expert knowledge. In the case of MYCIN, human experts
specialized in the medical field of bacterial infection, provide information about the
causes, symptoms, and other knowledge in that domain.

The KB of the MYCIN is updated successfully. In order to test it, the doctor provides a
new problem to it. The problem is to identify the presence of the bacteria by inputting
the details of a patient, including the symptoms, current condition, and medical history.

The ES will need a questionnaire to be filled by the patient to know the general
information about the patient, such as gender, age, etc.

Now the system has collected all the information, so it will find the solution for the
problem by applying if-then rules using the inference engine and using the facts stored
within the KB.

In the end, it will provide a response to the patient by using the user interface.

Participants in the development of Expert System

There are three primary participants in the building of Expert System:

Expert: The success of an ES much depends on the knowledge provided by human


experts. These experts are those persons who are specialized in that specific domain.

Knowledge Engineer: Knowledge engineer is the person who gathers the knowledge
from the domain experts and then codifies that knowledge to the system according to
the formalism.

End-User: This is a particular person or a group of people who may not be experts, and
working on the expert system needs the solution or advice for his queries, which are
complex.

Why Expert System?


Before using any technology, we must have an idea about why to use that technology
and hence the same for the ES. Although we have human experts in every field, then
what is the need to develop a computer-based system. So below are the points that are
describing the need of the ES:

No memory Limitations: It can store as much data as required and can memorize it at
the time of its application. But for human experts, there are some limitations to
memorize all things at every time.

High Efficiency: If the knowledge base is updated with the correct knowledge, then it
provides a highly efficient output, which may not be possible for a human.

Expertise in a domain: There are lots of human experts in each domain, and they all
have different skills, different experiences, and different skills, so it is not easy to get a
final output for the query. But if we put the knowledge gained from human experts into
the expert system, then it provides an efficient output by mixing all the facts and
knowledge

Not affected by emotions: These systems are not affected by human emotions such as
fatigue, anger, depression, anxiety, etc.. Hence the performance remains constant.

High security: These systems provide high security to resolve any query.

Considers all the facts: To respond to any query, it checks and considers all the
available facts and provides the result accordingly. But it is possible that a human
expert may not consider some facts due to any reason.
Regular updates improve the performance: If there is an issue in the result provided by
the expert systems, we can improve the performance of the system by updating the
knowledge base.

Capabilities of the Expert System

Below are some capabilities of an Expert System:

Advising: It is capable of advising the human being for the query of any domain from
the particular ES.

Provide decision-making capabilities: It provides the capability of decision making in


any domain, such as for making any financial decision, decisions in medical science, etc.

Demonstrate a device: It is capable of demonstrating any new products such as its


features, specifications, how to use that product, etc.

Problem-solving: It has problem-solving capabilities.

Explaining a problem: It is also capable of providing a detailed description of an input


problem.

Interpreting the input: It is capable of interpreting the input given by the user.

Predicting results: It can be used for the prediction of a result.

Diagnosis: An ES designed for the medical field is capable of diagnosing a disease


without using multiple components as it already contains various inbuilt medical tools.

LectureTopic1.1.5

This lecture iS MAPPED WITH CO3

The relation between knowledge and intelligence:

Knowledge of real-worlds plays a vital role in intelligence and same for creating
artificial intelligence. Knowledge plays an important role in demonstrating intelligent
behavior in AI agents. An agent is only able to accurately act on some input when he
has some knowledge or experience about that input.

Let's suppose if you met some person who is speaking in a language which you don't
know, then how you will able to act on that. The same thing applies to the intelligent
behavior of the agents.

As we can see in below diagram, there is one decision maker which act by sensing the
environment and using knowledge. But if the knowledge part will not present then, it
cannot display intelligent behavior
AI knowledge cycle:

An Artificial intelligence system has the following components for displaying intelligent
behavior:

Perception

Learning

Knowledge Representation and Reasoning

Planning

Execution
The above diagram is showing how an AI system can interact with the real world and
what components help it to show intelligence. AI system has Perception component by
which it retrieves information from its environment. It can be visual, audio or another
form of sensory input. The learning component is responsible for learning from data
captured by Perception comportment. In the complete cycle, the main components are
knowledge representation and Reasoning. These two components are involved in
showing the intelligence in machine-like humans. These two components are
independent with each other but also coupled together. The planning and execution
depend on analysis of Knowledge representation and reasoning.

Approaches to knowledge representation:

There are mainly four approaches to knowledge representation, which are givenbelow:

1. Simple relational knowledge:

It is the simplest way of storing facts which uses the relational method, and each fact
about a set of the object is set out systematically in columns.

This approach of knowledge representation is famous in database systems where the


relationship between different entities is represented.

This approach has little opportunity for inference.

Example: The following is the simple relational knowledge representation.

Player Weight Age


Player1 65 23
Player2 58 18
Player3 75 24

2. Inheritable knowledge:

In the inheritable knowledge approach, all data must be stored into a hierarchy of
classes.

All classes should be arranged in a generalized form or a hierarchal manner.

In this approach, we apply inheritance property.

Elements inherit values from other members of a class.

This approach contains inheritable knowledge which shows a relation between instance
and class, and it is called instance relation.

Every individual frame can represent the collection of attributes and its value.

In this approach, objects and values are represented in Boxed nodes.


We use Arrows which point from objects to their values.

Example:

3. Inferential knowledge:

Inferential knowledge approach represents knowledge in the form of formal logics.

This approach can be used to derive more facts.

It guaranteed correctness.

Example: Let's suppose there are two statements:

Marcus is a man

All men are mortal


Then it can represent as;

man(Marcus)
∀x = man (x) ----------> mortal (x)s

4. Procedural knowledge:

Procedural knowledge approach uses small programs and codes which describes how to
do specific things, and how to proceed.

In this approach, one important rule is used which is If-Then rule.


In this knowledge, we can use various coding languages such as LISP
language and Prolog language.

We can easily represent heuristic or domain-specific knowledge using this approach.

But it is not necessary that we can represent all cases in this approach.

Requirements for knowledge Representation system:

A good knowledge representation system must possess the following properties.

1. Representational Accuracy:
KR system should have the ability to represent all kind of required knowledge.

2. Inferential Adequacy:
KR system should have ability to manipulate the representational structures to produce
new knowledge corresponding to existing structure.

3. Inferential Efficiency:
The ability to direct the inferential knowledge mechanism into the most productive
directions by storing appropriate guides.

4. Acquisitional efficiency- The ability to acquire the new knowledge easily using
automatic methods.

Lecture Topic 1.2.1

This lecture iS MAPPED WITH CO2 and CO3

Types of problems handled by Expert system

An ES is no substitute for a knowledge worker's overall performance of the problem-


solving task. But theses ystems can dramatically reduce the amount of work the individual
must do to solve a problem, and they do leave people with the creative and innovative
aspects of problem solving. Below are some capabilities of an Expert System:

• Advising: It is capable of advising the human being for the query of any domain from the
particular ES.

• Provide decision-making capabilities: It provides the capability of decision making in


any domain,

such as for making any financial decision, decisions in medical science, etc. • Demonstrate
a device: It is capable of demonstrating any new products such as its
features,specifications, how to use that product, etc.

• Problem-solving: It has problem-solving capabilities. • Explaining a problem: It is also


capable of providing a detailed description of an input problem. • Interpreting the input: It
is capable of interpreting the input given by the user. • Predicting results: It can be used
for the prediction of a result.

• Diagnosis: An ES designed for the medical field is capable of diagnosing a disease


without usingmultiple components as it already contains various inbuilt medical tools. • An
Es can complete its part of the tasks much faster than a human expert.

• The error rate of successful systems is low, sometimes much lower than the human error
rate for the same task.

• ESs make consistent recommendations • ESs are a convenient vehicle for bringing to the
point of application difficult-to-use sources of knowledge.

• ESs can capture the scarce expertise of a uniquely qualified expert. • ESs can become a
vehicle for building up organizational knowledge, as opposed to the knowledge
of individuals in the organization.

• When use as training vehicles, ESs result in a faster learning curve for novices.

Lecture Topic 1.2.2

This lecture is mapped with CO3

Architecture of an Expert System

Typical expert system architecture is shown in Figure 11.1.

The knowledge base contains the specific domain knowledge that is used by an expert
to derive conclusions from facts.

In the case of a rule-based expert system, this domain knowledge is expressed in the
form of a series of rules.

The explanation system provides information to the user about how the inference
engine arrived at its conclusions. This can often be essential, particularly if the advice
being given is of a critical nature, such as with a medical diagnosis system.
If the system has used faulty reasoning to arrive at its conclusions, then the user may be
able to see this by examining the data given by the explanation system.

The fact database contains the case-specific data that are to be used in a particular case
to derive a conclusion.

In the case of a medical expert system, this would contain information that had been
obtained about the patient’s condition.

The user of the expert system interfaces with it through a user interface, which provides
access to the inference engine, the explanation system, and the knowledge-base editor.

The inference engine is the part of the system that uses the rules and facts to derive
conclusions. The inference engine will use forward chaining, backward chaining, or a
combination of the two to make inferences from the data that are available to it.

The knowledge-base editor allows the user to edit the information that is contained in
the knowledge base.

The knowledge-base editor is not usually made available to the end user of the system
but is used by the knowledge engineer or the expert to provide and update the
knowledge that is contained within the system.
The Expert System Shell

Note that in Figure 11.1, the parts of the expert system that do not contain domain-
specific or case-specific information are contained within the expert system shell.

This shell is a general toolkit that can be used to build a number of different expert
systems, depending on which knowledge base is added to the shell.

An example of such a shell is CLIPS (C Language Integrated Production System).


Other examples in common use include OPS5, ART, JESS, and Eclipse.

LectureToiopcs1.2.3

This lecture is mapped with CO2

Advising problem handled by expert system

Advising problems can be effectively handled by expert systems. Here's how an expert
system can handle advising problems:

Knowledge Acquisition: The first step in developing an expert system for advising is to
acquire the necessary knowledge from domain experts. This involves capturing the
expertise, rules, heuristics, and decision-making processes used by human advisors.

Knowledge Representation: The acquired knowledge is then represented in a structured


format within the expert system. This can be done using rules, frames, ontologies, or
other knowledge representation techniques that enable the system to reason and make
recommendations based on the available knowledge.

Inference Engine: The expert system utilizes an inference engine to process the
knowledge and draw conclusions. The inference engine applies logical rules, performs
pattern matching, or uses probabilistic reasoning to make inferences and derive
recommendations based on the specific advising problem at hand.

User Interaction: The expert system interacts with the user, typically through a user
interface. The system may ask questions to gather relevant information about the user's
situation, preferences, constraints, and goals. This interactive process helps the system
understand the user's needs and tailor its advice accordingly.

Recommendation Generation: Based on the user's input and the knowledge within the
system, the expert system generates recommendations. These recommendations can be
in the form of specific actions to take, strategies to follow, options to consider, or
alternatives to explore. The system may also provide explanations or justifications for
its recommendations to enhance user understanding and trust.
Continuous Learning: Expert systems can be designed to learn and improve over time.
They can incorporate mechanisms to update their knowledge base with new
information, feedback, or real-world outcomes. This allows the system to adapt to
changing conditions, refine its recommendations, and become more accurate and
effective in advising users.

Integration with External Data and Systems: In many advising scenarios, expert
systems may need to access external data sources or integrate with other systems to
provide comprehensive advice. For example, a financial advising system might need to
fetch real-time market data or integrate with a portfolio management system.

By following these steps and leveraging the expertise of human advisors, an expert
system can provide valuable and reliable advice across various domains, such as
financial planning, healthcare decisions, career guidance, legal counsel.

LectureTopic1.2.4

This lecture is mapped with CO3

Provide Decision -making capabilities handled by expert system

Expert systems are well-suited for handling decision-making problems. Here are some
examples of decision-making problems that can be effectively addressed by expert
systems:

Investment Portfolio Management: An expert system can analyze market trends, risk
factors, investment goals, and constraints to recommend an optimal portfolio allocation
based on an individual's preferences and risk appetite.

Resource Allocation: Expert systems can assist in allocating limited resources such as
personnel, equipment, or budget across various projects or tasks, considering factors
like priority, availability, and constraints.

Supply Chain Optimization: Expert systems can analyze supply and demand data,
production capacities, transportation logistics, and cost factors to optimize supply chain
decisions, such as inventory levels, order fulfillment, and distribution strategies.

Diagnosis and Treatment Planning: In medical settings, expert systems can aid in
diagnosing diseases, suggesting suitable tests or treatments based on symptoms, medical
history, and knowledge of best practices.

Route Planning and Traffic Management: Expert systems can help optimize route
planning, considering factors like traffic congestion, road conditions, vehicle
restrictions, and real-time data, to provide efficient navigation and traffic management
solutions.

Risk Assessment and Management: Expert systems can evaluate risks associated with
various scenarios, guide decision-making on risk mitigation strategies, and provide
recommendations to manage and reduce risks in areas such as finance, insurance, and
project management.

Customer Relationship Management: Expert systems can analyze customer data,


preferences, buying patterns, and interactions to generate recommendations on
personalized marketing strategies, customer segmentation, and retention efforts.

Strategic Planning: Expert systems can support strategic decision-making by analyzing


market trends, competitive intelligence, and internal data to provide insights and
recommendations for business expansion, product development, or market entry
strategies.

Energy Optimization: Expert systems can optimize energy consumption, considering


factors like energy tariffs, weather conditions, equipment efficiency, and user
preferences, to provide recommendations for energy-saving measures and cost
reduction.

Environmental Impact Assessment: Expert systems can assess the environmental


impact of proposed projects, evaluate compliance with regulations, and recommend
mitigation strategies to minimize ecological harm.

These are just a few examples of decision-making problems that can be effectively
addressed by expert systems. By leveraging domain-specific knowledge and intelligent
reasoning capabilities, expert systems can provide valuable insights, recommendations,
and decision support across a wide range of industries and applications.

LectureTopic1.2.5

This lecture is mapped with CO3

Problem solving handled by expert system

Expert systems are adept at handling various problem-solving tasks. Here are some
examples of problem-solving domains where expert systems can be utilized:

Technical Troubleshooting: Expert systems can assist in diagnosing and resolving


technical issues by guiding users through a series of questions and solutions based on
symptom analysis and known problem-solving techniques.

Equipment Maintenance: Expert systems can provide guidance on equipment


maintenance and repair tasks, suggesting appropriate steps, procedures, and
troubleshooting techniques based on the symptoms or reported problems.

Software Debugging: Expert systems can aid in identifying and resolving software bugs
or errors by analyzing error logs, code snippets, and user reports, and providing
recommendations for code modifications or debugging strategies.
Process Optimization: Expert systems can analyze complex processes, such as
manufacturing operations, logistics, or supply chains, and identify opportunities for
improvement by suggesting optimization strategies, cost-saving measures, or workflow
enhancements.

Data Analysis and Interpretation: Expert systems can help analyze large volumes of
data, such as financial records, scientific experiments, or market research, and provide
insights, patterns, or recommendations based on statistical analysis, machine learning
techniques, or domain-specific knowledge.

Decision Support: Expert systems can assist in complex decision-making scenarios by


analyzing available data, evaluating alternatives, and providing recommendations or
simulations to aid in selecting the most suitable course of action.

Legal Case Analysis: Expert systems can assist legal professionals by analyzing legal
cases, statutes, and precedents, and providing insights, relevant case references, or legal
strategies to support legal research, document preparation, or case analysis.

Customer Support: Expert systems can serve as virtual assistants for customer support,
guiding users through common problems, frequently asked questions, or
troubleshooting steps, and providing solutions or escalating to human support if
necessary.

Design Optimization: Expert systems can assist in optimizing designs, such as


architectural layouts, engineering structures, or product designs, by considering
constraints, requirements, and optimization criteria, and suggesting improvements or
alternatives.

Emergency Response: Expert systems can provide guidance and support during
emergency situations, such as natural disasters or medical emergencies, by offering
step-by-step instructions, resource allocation recommendations, or risk assessment
strategies.

These examples demonstrate how expert systems can be applied to various problem-
solving scenarios, leveraging domain knowledge, inference engines, and reasoning
capabilities to provide efficient and effective solutions.

Lecture Topic 1.3.1

This lecture is mapped with CO4

PROSPECTOR computer-based expert system

PROSPECTOR computer-based expert system – 1970’s


SRI International’s Artificial Intelligence Center developed PROSPECTOR for the U.S.
Geological Survey to aid geologists in mineral exploration. The system, one of the
world’s first computer-based expert systems, attempted to represent the knowledge and
reasoning process of geological experts.

Its primary use was intended to be for a exploration geologist in the early stages of
investigating a possible drilling site. PROSPECTOR predicted the existence of a
hitherto unknown molybdenum deposit in Washington State.

PROSPECTOR: An Introduction

Problem domain:
• Evaluation of the mineral potential of a geological site or
region

• Multi-disciplinary decision making: PROSPECTOR


deals with
geologic setting, structural controls, and kind of rocks,
minerals,
and alteration products present or suspected

Target Users:
Exploration geologist who is in the early part of
investigating an
exploration site or "prospect"

PROSPECTOR: An Introduction

• consultation system to assist geologists working in mineral exploration

• developed by Hart and Duda of SRI International

• attempts to represent the knowledge and reasoning processes of experts in the


geological domain

• intended user is an exploration geologist in the early stages of investigating a possible


drilling site

PROSPECTOR: Operational details

Characterisitics of a particular 'prospect'(exploration site)


volunteered by expert
(e.g.geologic setting, structural controls, and kinds of rocks minerals, and
alteration products present or suspected)

PROSPECTOR compares observations with stored models of


ore deposits

PROSPECTOR notes similarities, differences and missing


information

(POSPECTOR asks for additional information if neccessary)

PROSPECTOR assesses the mineral potential of the prospect

PROSPECTOR

• system has been kept domain independent

• it matches data from a site against models describing regional and local characteristics
favourable for specific ore deposits

• the input data are assumed to be incomplete and uncertain

Lecture Topic 1.3.2

<br

This lecture is mapped with CO4

PROSPECTOR At Work
PROSPECTOR: Operational details

PROSPECTOR performs a consultation to determine such things as

• which model best fits the data

• where the most favourable drilling sites are located

• what additional data would be most helpful in reaching firmer conclusions

• what is the basis for these conclusions and recommendations

PROSPECTOR: Knowledge Base

The Knowledge Base (K.B.) is divided into two parts

• General Purpose K.B.

contains background information useful for several applications and


situations e.g. general classification tree

• Special Purpose K.B.

contains information relevent to a specific part of the domain, primarily


in the form of inference networks

PROSPECTOR uses PRODUCTION RULES and


SEMANTIC NETWORKS to organize the domain
knowledge and backward chaining inference strategy

PROSPECTORS' Knowledge Base:

The Representation Scheme


The knowledge representation scheme used by the developer's of PROSPECTOR is
called 'the inference network': a network of connections between evidence and
hypotheses or a network of nodes (assertions)and arcs (links)

PROSPECTOR system contains rules linking observed evidence, 'E'. of the particular
(geological) findings with hypotheses, 'H', implied by the evidence:

If E then H (to degree) LS, LN;

LS and LN are prestored (ranging from +5 to -5) and do not change during the
execution of the program. Also, each piece of evidence (E1,E2, E3..) and hypotheses
(H1...) has a probability assigned to it (P1,P2..) whichmay change during execution
according to Baye's Theorem.

PROSPECTOR: Knowledge Base:

Static Data

In addition to the PROSPECTOR rule-base, the system also has a large taxonomic
network: A 'hierarchical' data-base containing super- and sub-ordinate
relationships between the objects of the domain.

PROSPECTOR Knowledge Base

Semantic networks: Quillian (1966) introduced the idea of semantic networks based on
the so-called "associative memory model": the notion that human memory is organized
on the basis of association, that humans represent the real-world through a series of
associations. More precisely a semantic network is defined as a type of knowledge
representation that formalises objects and values as nodes and connects the nodes with
arcs or links that indicate the relationships between the various nodes: A data structure
for representing declarative knowledge. It can be argued that the nodes can also
represent concepts, and the arcs the relations between concepts, thereby forming
semantic networks.Quillian has pointed out the "type-token" distinction. This may be
related to the generic/specific relationship.

</br

LectureTopic1.3.3

This lecture is mapped with CO3

PROSPECTOR's Inference Mechanism

Probablistic Reasoning

To deal with uncertainty PROSPECTOR uses

• subjective probability theory (including Bayes' theorem.)


supplemented
by Certainty Factors (MYCIN) and fuzzy sets.

A form of Bayes' theorem called "odds-liklihood"is used in PROSPECTOR.

ODDS = PROBABILITY
(1-PROBABILITY)

Definition

P = LS x P

P = prior odds on the hypothesis h

P(h|e) = posterior odds on hypothesis (new odds given evidence)

LS = sufficiency measure of the rule

LS = P(e|h) ( = liklehood ratio )


P(e|not.h)

• LS is used when the evidence is known to exist.

• Probabilities are provided subjectively by the expert


PROSPECTOR's Inference Mechanism

Probablistic Reasoning

Definition

When the evidence is known to NOT exist

P(h | not.e) = LN x P(e)

LN = measure of necessity

LN = P(not e|h)
P(not e| not.h)

Again the probabilities are given subjectively by the domain expert.

PROSPECTOR: Conclusions

Points to note about the PROSPECTOR system

• the conclusions drawn by the PROSPECTOR system match those of the expert who
designed the system to within 7% on a scale used to represent the validity of the
conclusions

• work on the system illustrated the importance of accommodating the special


characteristics of a domain if the system is intended for practical use - all domains have
their own peculiarities in how decisions are made

PROBABLISTIC REASONING: MYCIN, XCON and PROSPECTOR

Evidential Strength Model and Certainty: MYCIN approach

• According to the subjective probability theory:


expert's personal probability, P , reflects his/her belief in h at any given time

therefore, 1 - P can be viewed as an estimate of the expert's disbelief regarding the


truth of h.

• Measure of Belief: If P[h ¦ e] is greater than P , the observation of 'e' increases the
expert's belief in 'h' while decreasing disbelief in h. Proportionate decrease in disbelief (
alternatively, the measure of belief increment) due to the observation 'e' is

P(h y e) - P
MB[h ,e] = --------------------------

1-P

• Measure of Disbelief: If P[h ye] is less than P , the observation of 'e' decreases the
expert's belief in 'h' while increasing disbelief in h. Proportionate decrease in belief (
alternatively, the measure of disbelief increment) due to observation 'e' is:

P(h ) - P(h y e)
MD[h ,e] = --------------------------

• Belief and disbelief correspond to the intuitive concepts of confirmation and


disconfirmation

• Because a given piece of evidence cannot support both belief and disbelief, therefore

if MB[h ,e] > 0 then MD[h ,e] = 0;


if MD[h , e] > 0 then MB[h ,e] = 0
and

if P(h ¦ e) = P then MB[h , e] = MD[h , e] = 0

(evidence is independent of hypothesis)

PROBABLISTIC REASONING: MYCIN, XCON and PROSPECTOR

MYCIN: Each rule is associated with a number between 0 and 1 (CF, the 'cretainity
factor') representing certainity of the inference contained in the rule: MYCIN combines
several sources of inconclusive information to form a conclusion of which it may be
almost certain. Ad-hoc appraoch to probability
PROSPECTOR: Confidence measures (LS,LN)are interpreted precisely as as
probabilities and Bayes' rule is used as the basis of inference procedure.

XCON: In XCON's task domain it is possible to state exactly the correct thing to be
done in each particular set of circumstances. Probablistic information is not neccessary.

LectureTopic1.3.4

This lecture is mapped with CO2

Diagnosis problems handled by expert sytem

Diagnosis problems are a well-known application domain for expert systems. Expert
systems can effectively handle diagnosis problems by leveraging their knowledge base,
inference engine, and reasoning capabilities. Here's how expert systems handle
diagnosis problems:

Knowledge Acquisition: The first step in developing a diagnosis expert system is to


acquire the necessary knowledge from domain experts, such as doctors, technicians, or
experienced professionals. This knowledge includes symptoms, medical history, test
results, and the relationships between symptoms and potential diagnoses.

Knowledge Representation: The acquired knowledge is then structured and represented


in the expert system using rules, frames, ontologies, or other knowledge representation
techniques. This allows the system to understand the relationships and dependencies
between symptoms, diseases, and diagnostic criteria.

Symptom Analysis: When a user presents symptoms to the expert system, it asks
relevant questions to gather more information about the symptoms, their severity,
duration, and any accompanying factors. The system uses this information to narrow
down the possible diagnoses.

Reasoning and Inference: The expert system's inference engine applies logical rules,
pattern matching, or probabilistic reasoning to analyze the symptom data and the
knowledge base. It generates hypotheses about potential diagnoses based on the
symptoms reported by the user.

Hypothesis Evaluation: The expert system evaluates the generated hypotheses by


comparing them against diagnostic criteria and guidelines. It assesses the likelihood of
each diagnosis based on the symptoms, medical history, risk factors, and other relevant
information.

Recommendation Generation: Based on the evaluated hypotheses, the expert system


generates recommendations for further diagnostic tests, additional questions to ask the
user, or potential treatments or interventions to consider. The system may rank the
hypotheses based on their likelihood to assist in decision-making.
Explanation and Justification: The expert system can provide explanations and
justifications for its recommendations, helping users understand the reasoning behind
the suggested diagnoses. This enhances transparency, trust, and user confidence in the
system's advice.

Continuous Learning: Expert systems can be designed to learn and improve over time.
They can incorporate feedback from users and updates from medical research or
clinical practice guidelines to refine their knowledge base and diagnostic capabilities.

By employing these techniques, expert systems can effectively assist in diagnosing


medical conditions, technical malfunctions, or other types of problems. They provide
reliable, consistent, and evidence-based recommendations, serving as valuable decision
support tools for healthcare professionals, technicians, or individuals seeking medical
advice.a

LectureTopic1.3.5

This lecture is mapped with CO4

Human System Vs. Expert System

Human Experts Expert Systems


Perishable and unpredictable in nature Permanent and consistent in nature
Difficult to transfer and document data Easy to transfer and document data
Human expert resources are expensive Expert Systems are cost-effective Systems

Applications of Expert Systems

Applications Role
Design Domain Camera lens design automobile design
Diagnosis Systems to deduce the cause of disease from observed
Medical Domain
dataConduction medical operations on humans.
Monitoring
Comparing data continuously with observed systems
systems
Process Control
Controlling physical processes based on the monitoring.
Systems
Knowledge
Finding faults in vehicles or computers.
Domain
Detection of possible fraud Suspicious transactions Stock market
Commerce
trading Airline scheduling, Cargo scheduling.

You might also like