Download as pdf or txt
Download as pdf or txt
You are on page 1of 75

Lecture

On

Artificial intelligence
Artificial Intelligence

MCA- III Semester

Dr. Sandeep Gaikwad

Assistant Professor,
Email: Sandeepgaikwad.mca@charusat.ac.in
Faculty of Computer Science and Applications,
Website: https://svgaikwad.com
CMPICA, CHARUSAT.
10/4/2021 Dr. Sandeep Gaikwad 1
2
Knowledge Based System

10/4/2021 Dr. Sandeep Gaikwad 2


Outline

• Brain and Neuron


• What is knowledge
• Knowledge Based System (KBS)
• Knowledge components
• Knowledge architecture
• Knowledge based system Vs Expert System

10/4/2021 Dr. Sandeep Gaikwad 3


Brain architecture

• Text Neuron architecture

10/4/2021 Dr. Sandeep Gaikwad 4


Brain architecture

• Text

10/4/2021 Dr. Sandeep Gaikwad 5


What is knowledge

“knowledge (of about something) information, understanding and skills that you have gained
through learning or experience.”
Or
“The state of knowing about a particular fact or
Situation”

Or
The term "knowledge" can refer to a theoretical or
practical understanding of a subject

10/4/2021 Dr. Sandeep Gaikwad 6


Example

Ex. Knowledge in action

10/4/2021 Dr. Sandeep Gaikwad 7


Pavlov Experiment

Ivan Petrovich Pavlov (1849 - 1936)


Food is the Unconditioned Stimulus (US).
This means that the food causes the
response of salivation without previous
learning.
Bell is the Conditioned Stimulus (CS). This
is the stimulus which is paried with the
food to make the dog eventually salivate to
just the sound of the bell alone.
Salivation is initially the Unconditioned
Response (UR) when paired with the food
(US), and eventually becomes the
Conditioned Response (CR) when paired
with the bell.

10/4/2021 Dr. Sandeep Gaikwad 8


Knowledge in Mythology

• Text is here

18th-century woodcut depicting Bruno dreaming of a universe


beyond the visible universe
https://www.famous-trials.com/bruno/261-home

10/4/2021 Dr. Sandeep Gaikwad 9


Definition of KBS

• A KBS is a computer program that uses artificial intelligence to solve problems within a
specialized domain that ordinarily requires human expertise.
• Typical tasks for expert systems involve classification, diagnosis, monitoring, design,
scheduling, and planning for specialized tasks.
• Knowledge-based system is a more general than the expert system.

• A system that draws upon the knowledge of human experts captured in a knowledge-base to
solve problems that normally require human expertise.
• Heuristic rather than algorithmic
• Heuristics in search vs. in KBS general vs. domain-specific
• Highly specific domain knowledge
• Knowledge is separated from how it is used
KBS = knowledge-base + inference engine

10/4/2021 Dr. Sandeep Gaikwad 10


Architecture of the KBS

10/4/2021 Dr. Sandeep Gaikwad 11


Component of the KBS

1. Knowledge base
2. Inference Engine
3. User interface

10/4/2021 Dr. Sandeep Gaikwad 12


Inference Engine

•The second part, the inference engine, allows new knowledge to be inferred. Most commonly, it
can take the form of IF-THEN rules
•Coupled with forward chaining or backward chaining approaches.

• Other approaches include the use of


automated theorem provers, logic
programming, blackboard systems, and term
rewriting systems such as CHR (Constraint
Handling Rules).

10/4/2021 Dr. Sandeep Gaikwad 13


Who is involved?

• Knowledge Engineer A knowledge engineer is a computer scientist who


knows how to design and implement programs that incorporate artificial
intelligence techniques.

• • Domain Expert A domain expert is an individual who has significant


expertise in the domain of the expert system being developed.

10/4/2021 Dr. Sandeep Gaikwad 14


Developing KBS

• Determining the characteristics of the problem.


• Knowledge engineer and domain expert work together closely to describe the
problem.
• The engineer then translates the knowledge into a computer- usable language,
and designs an inference engine, a reasoning structure, that uses the
knowledge appropriately.
• He also determines how to integrate the use of uncertain knowledge in the
reasoning process, and what kinds of explanation would be useful to the end
user

10/4/2021 Dr. Sandeep Gaikwad 15


Human Expertise Vs Artificial Expertise

Human Expertise Artificial Expertise

1. Perishable 1. Permanent
2. Difficult to transfer 2. Easy to transfer
3. Difficult to document 3. Easy to document
4. Unpredictable 4. Consistent
5. Expensive 5. Affordable

• An expert system is judged to be successful when it operates on the level of a


human expert.

10/4/2021 Dr. Sandeep Gaikwad 16


Advantages & Limitations of KBS

• Advantages:
• Increase available of expert knowledge
• Efficient and cost effective
• Consistency of answers
• Explanation of solution
• Deals with uncertainty
Limitations:
• Lack of common sense
• Inflexible, difficult to modify
• Restricted domain of expertise limited to KB - Not always reliable

10/4/2021 Dr. Sandeep Gaikwad 17


Example of the KBS

• Dendral Pioneering work developed in 1965 for NASA at Standford


University by Buchanan & Feigenbaum.
• Drilling Advisor Developed in 1983 by Teknowledge for oil companies to
replace human drilling advisor.
• Mycin Developed in 1970 at Standford by Shortcliffe to assist internists in
diagnosis and treatment of infectious diseases.
• Xcon/RI Developed in 1978 to assist the ordering of computer systems by
automatically selecting the system components based on customer’s
requirements.

10/4/2021 Dr. Sandeep Gaikwad 18


Dendral

• Dendral was a project in artificial intelligence (AI) of the 1960s, and the
computer software expert system that it produced.
• Its primary aim was to study hypothesis formation and discovery in
science. For that, a specific task in science was chosen: help organic
chemists in identifying unknown organic molecules, by analyzing their
mass spectra and using knowledge of chemistry.
• It was written in the Lisp programming language, which was considered
the language of AI because of its flexibility.
• The software program Dendral is considered the first expert system
because it automated the decision-making process and problem-solving
behavior of organic chemists.
• The project consisted of research on two main programs Heuristic Dendral
and Meta-Dendral

10/4/2021 Dr. Sandeep Gaikwad 19


MYCIN

• MYCIN was an early backward chaining expert system that used artificial
intelligence to identify bacteria causing severe infections, such as bacteremia and
meningitis, and to recommend antibiotics, with the dosage adjusted for patient's body
weight — the name derived from the antibiotics themselves, as many antibiotics have
the suffix "-mycin".
• The Mycin system was also used for the diagnosis of blood clotting diseases.
MYCIN was developed over five or six years in the early 1970s at Stanford
University.
• It was written in Lisp as the doctoral dissertation of Edward Shortliffe under the
direction of Bruce G. Buchanan, Stanley N. Cohen and others.
• MYCIN operated using a fairly simple inference engine and a knowledge base of
~600 rules. It would query the physician running the program via a long series of
simple yes/no or textual questions

10/4/2021 Dr. Sandeep Gaikwad 20


Knowledge representation
and
Techniques

10/4/2021 Dr. Sandeep Gaikwad 21


Kind of Knowledge

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).

10/4/2021 Dr. Sandeep Gaikwad 22


Kind of Knowledge….

• 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.

10/4/2021 Dr. Sandeep Gaikwad 23


Types of Knowledge

1.Declarative
knowledge

5. Heuristics 2. Structural
knowledge knowledge

4. Meta 3. Procedural
knowledge knowledge

10/4/2021 Dr. Sandeep Gaikwad 24


Types of Knowledge

1. Declarative knowledge:
It is about concepts, facts and object express in a declarative sentences. Ex. Tea, Cricket
2. Structural knowledge
It is basic problem solving knowledge, that describe relationship between concepts and objects
Ex. Map reading
3. Procedural knowledge
This is responsible for knowing how to doing something and includes rules, strategy procedure etc.
Ex. Cooking
4. Meta knowledge
This define knowledge about other types of knowledge.
5. Heuristics knowledge
This one represent expert knowledge of the field or subject.
Ex. Doctor, Surgeon, Teacher,

10/4/2021 Dr. Sandeep Gaikwad 25


Cycle of the knowledge representation

Learning

Perception

Knowledge
Reasoning
representation

Planning

Planning

10/4/2021 Dr. Sandeep Gaikwad 26


Cycle of the knowledge representation

• The Perception component retrieves data or information from the environment. with the help of this
component, you can retrieve data from the environment, find out the source of noises and check if the AI was
damaged by anything. Also, it defines how to respond when any sense has been detected.

• Then, there is the Learning Component that learns from the captured data by the perception component.

• The goal is to build computers that can be taught instead of programming them.
• Learning focuses on the process of self-improvement. In order to learn new things, the system requires
knowledge acquisition, inference, acquisition of heuristics, faster searches, etc.

10/4/2021 Dr. Sandeep Gaikwad 27


Cycle of the knowledge representation

• The main component in the cycle is Knowledge Representation and Reasoning which shows the human-like
intelligence in the machines. Knowledge representation is all about understanding intelligence.
• Instead of trying to understand or build brains from the bottom up, its goal is to understand and build
intelligent behavior from the top-down and focus on what an agent needs to know in order to behave
intelligently.
• Also, it defines how automated reasoning procedures can make this knowledge available as needed.
• The Planning and Execution components depend on the analysis of knowledge representation and reasoning.

• Here, planning includes giving an initial state, finding their preconditions and effects, and a sequence of actions
to achieve a state in which a particular goal holds.
• Now once the planning is completed, the final stage is the execution of the
entire process.

10/4/2021 Dr. Sandeep Gaikwad 28


What is the relation between Knowledge & Intelligence?

• In the real world, knowledge plays a vital role in intelligence as well as creating artificial intelligence. It
demonstrates the intelligent behavior in AI agents or systems.
• It is possible for an agent or system to act accurately on some input only when it has the knowledge or
experience about the input.

10/4/2021 Dr. Sandeep Gaikwad 29


Types of Knowledge Representation Techniques

1. Logical representation
1. Predicate logic
2. Propositional logic
2. Production Rules ( if.. Else)
3. Semantic Network representation
4. Frame representation
5. Script

10/4/2021 Dr. Sandeep Gaikwad 30


Logical Representation

• Logical representation is a language with some definite rules which deal with propositions and has
no ambiguity in representation. It represents a conclusion based on various conditions and lays
down some important communication rules.
• Also, it consists of precisely defined syntax and semantics which supports the sound inference.
Each sentence can be translated into logics using syntax and semantics.
Syntax Semantics
•It decides how we can construct legal sentences in
logic. •Semantics are the rules by which we can interpret the
•It determines which symbol we can use in knowledge sentence in the logic.
representation. •It assigns a meaning to each sentence.
•Also, how to write those symbols.
Ex. I is going to college  Wrong
I am going to college  Right

10/4/2021 Dr. Sandeep Gaikwad 31


Logical Representation

Advantages:
Logical representation helps to perform logical reasoning.
This representation is the basis for the programming languages.
Disadvantages:
Logical representations have some restrictions and are challenging to work
with.
This technique may not be very natural, and inference may not be very
efficient.

Types of the Logical representation


1. Propositional logical -> True or False
2. Predicate logic  ForALL, ThereExist

10/4/2021 Dr. Sandeep Gaikwad 32


Production Rules

In production rules, agent checks for the condition and if the condition exists then
production rule fires and corresponding action is carried out.
The condition part of the rule determines which rule may be applied to a problem.
Whereas, the action part carries out the associated problem-solving steps.
This complete process is called a recognize-act cycle.

The production rules system consists of three main parts:


The set of production rules
Working Memory
The recognize-act-cycle

10/4/2021 Dr. Sandeep Gaikwad 33


Production Rules

Advantages:
The production rules are expressed in natural language.
The production rules are highly modular and can be easily removed or modified.
Disadvantages:
It does not exhibit any learning capabilities and does not store the result of the problem for future uses.
During the execution of the program, many rules may be active. Thus, rule-based production systems are
inefficient.
So, these were the important techniques for Knowledge Representation in AI. Now, let’s have a look at the
requirements for these representations.

10/4/2021 Dr. Sandeep Gaikwad 34


Semantic Network Representation

• Semantic networks work as an alternative of predicate logic for knowledge representation.


• In Semantic networks, you can represent your knowledge in the form of graphical networks. This network
consists of nodes representing objects and arcs which describe the relationship between those objects. Also, it
categorizes the object in different forms and links those objects.
• This representation consist of two types of relations:
• IS-A relation (Inheritance)
• Kind-of-relation
• Google graph
– Example Animal Category network

10/4/2021 Dr. Sandeep Gaikwad 35


Semantic Network Representation….

Advantages:
Semantic networks are a natural representation of knowledge.
Also, it conveys meaning in a transparent manner.
These networks are simple and easy to understand.
Disadvantages:
Semantic networks take more computational time at runtime.
Also, these are inadequate as they do not have any equivalent quantifiers.
These networks are not intelligent and depend on the creator of the system.

10/4/2021 Dr. Sandeep Gaikwad 36


Frame Representation

• A frame is a record like structure that consists of a collection of attributes and values to
describe an entity in the world.
• These are the AI data structure that divides knowledge into substructures by representing
stereotypes situations.
• Basically, it consists of a collection of slots and slot values of any type and size. Slots have
names and values which are called facets.
• It includes Slots and fillers ( Objects and Attributes)
• Ex. Student ID card, Tickets

10/4/2021 Dr. Sandeep Gaikwad 37


Frame Representation

• Slots Filters
Game Cricket
Team India
Player Virat Kohli
Designation Captain

Example 2:
Sachin is a student, and his age is 20, he lives in city Anand,
and the country is India.

10/4/2021 Dr. Sandeep Gaikwad 38


Frame Representation

Advantages:
It makes the programming easier by grouping the related data.
Frame representation is easy to understand and visualize.
It is very easy to add slots for new attributes and relations.
Also, it is easy to include default data and search for missing values.
Disadvantages:
In frame system inference, the mechanism cannot be easily processed.
The inference mechanism cannot be smoothly proceeded by frame
representation.
It has a very generalized approach.

10/4/2021 Dr. Sandeep Gaikwad 39


Script

It is an advance form of the frame techniques.


Agent can perform action by understanding the script.
The Agent can take
a right decision according to the situation.
Ex. Movie script

10/4/2021 Dr. Sandeep Gaikwad 40


Properties of Knowledge Representation System

A good knowledge representation system must have properties such as:


Representational Accuracy: It should represent all kinds of required knowledge.

Inferential Adequacy: It should be able to manipulate the representational structures to


produce new knowledge corresponding to the existing structure.

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

Acquisitional efficiency: The ability to acquire new knowledge easily using automatic
methods.

10/4/2021 Dr. Sandeep Gaikwad 41


Approaches to Knowledge Representation in AI

There are different approaches to knowledge representation such as:


1. Simple Relational Knowledge

It is the simplest way of storing facts which uses the relational method. Here, all the facts about a set of the
object are set out systematically in columns. Also, this approach of knowledge representation is famous in
database systems where the relationship between different entities is represented. Thus, there is little
opportunity for inference.
Example:
This is an example of representing simple relational knowledge.
Name Age Emp ID
John 25 100071
Amanda 23 100056
Sam 27 100042

10/4/2021 Dr. Sandeep Gaikwad 42


2. Inheritable Knowledge

In the inheritable knowledge approach, all data must be


stored into a hierarchy of classes and should be
arranged in a generalized form or a hierarchal manner.
Also, this approach contains inheritable knowledge
which shows a relation between instance and class, and
it is called instance relation.
In this approach, objects and values are represented in
Boxed nodes.

10/4/2021 Dr. Sandeep Gaikwad 43


3. Inferential Knowledge

The inferential knowledge approach represents knowledge in the form of formal logic. Thus,
it can be used to derive more facts. Also, it guarantees correctness.
Example:
Statement 1: John is a cricketer.
Statement 2: All cricketers are athletes.
Then it can be represented as;
Cricketer(John)
∀x = Cricketer (x) ———-> Athelete (x)s

10/4/2021 Dr. Sandeep Gaikwad 44


4. Declarative / 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.

10/4/2021 Dr. Sandeep Gaikwad 45


Thank you

Artificial intelligence
Artificial Intelligence

Unit II- Completed

Dr. Sandeep Gaikwad

Assistant Professor,
Email: Sandeepgaikwad.mca@charusat.ac.in
Faculty of Computer Science and Applications,
Website: https://svgaikwad.com
CMPICA, CHARUSAT.
10/4/2021 Dr. Sandeep Gaikwad 46
Lecture
On

Artificial intelligence
Artificial Intelligence

MCA- III Semester

Dr. Sandeep Gaikwad

Assistant Professor,
Email: Sandeepgaikwad.mca@charusat.ac.in
Faculty of Computer Science and Applications,
Website: https://svgaikwad.com
CMPICA, CHARUSAT.
10/4/2021 Dr. Sandeep Gaikwad 47
5
Expert System

10/4/2021 Dr. Sandeep Gaikwad 48


Outline

• What is Knowledge Based System (KBS) Vs Expert System


• Expert System components
• ES architecture

10/4/2021 Dr. Sandeep Gaikwad 49


Expert systems

• Expert systems in Artificial Intelligence are a prominent domain for research


in AI.
• It was initially introduced by researchers at Stanford University and were
developed to solve complex problems in a particular domain.

• The data in the knowledge base is essentially added by humans who are
experts in a particular domain.
• However, the software is used by non-experts to gain information. It is used in
various areas of medical diagnosis, accounting, coding, gaming and more.

10/4/2021 Dr. Sandeep Gaikwad 50


Expert systems

• Traditionally, an expert system is scientific and focused on solving a range of


related problems (say, in medicine, or ethics, or design), whereas a
knowledge-based system relies more upon the programmer or data scientist to
make effective use of a large set of data stored in some type of file or database.

• To some extent, relative to each other, knowledge-based systems are mainly


interested in categories, and expert systems are interested mainly in decisions.

10/4/2021 Dr. Sandeep Gaikwad 51


Characteristics of Expert Systems

• They have high-performance levels


• They are easy to understand
• They are completely reliable
• They are highly responsive

10/4/2021 Dr. Sandeep Gaikwad 52


Capabilities of Expert Systems

• The expert systems are capable of a number of actions including:


• Advising
• Assistance in human decision making
• Demonstrations and instructions
• Deriving solutions
• Diagnosis
• Interpreting inputs and providing relevant outputs
• Predicting results
• Justification of conclusions
• Suggestions for alternative solutions to a problem

10/4/2021 Dr. Sandeep Gaikwad 53


Architecture of Expert Systems

10/4/2021 Dr. Sandeep Gaikwad 54


Architecture of Expert Systems

• Knowledge base: The knowledge base in an expert system represents facts


and rules. It contains knowledge in specific domains along with rules in order
to solve problems, and form procedures that are relevant to the domain.
• Inference engine: The most basic function of the inference engine is to
acquire relevant data from the knowledge base, interpret it, and to find a
solution as per the user’s problem. Inference engines also have
explanationatory and debugging abilities.

10/4/2021 Dr. Sandeep Gaikwad 55


Architecture of Expert Systems

• Knowledge acquisition and learning module: This component functions to


allow the expert systems to acquire more data from various sources and store
it in the knowledge base.
• User interface: This component is essential for a non-expert user to interact
with the expert system and find solutions.
• Explanation module: As the name suggests, this module helps in providing
the user with an explanation of the achieved conclusion.

10/4/2021 Dr. Sandeep Gaikwad 56


Strategies Used By The Inference Engine

Forward Chaining
• With this strategy, an expert system is able to answer the question “What can happen
next?”
• Forward chaining is a method of reasoning in artificial intelligence in which inference
rules are applied to existing data to extract additional data until an endpoint (goal) is
achieved.
• This strategy is followed while working on conclusion, result, or effect. For
• example, predicting how does the share market prediction of share market will react to
the changes in the interest rates.
• Forward chaining can be used in planning, monitoring, controlling, and interpreting
applications.

10/4/2021 Dr. Sandeep Gaikwad 57


Forward Chaining

DENDRAL employs forward chaining to establish the structure of chemicals.


Example: Stock Market

Fig. Forward Chaining

10/4/2021 Dr. Sandeep Gaikwad 58


Forward Chaining

Properties of forward chaining


• The process uses a down-up approach (bottom to top).
• It starts from an initial state and uses facts to make a conclusion.
• This approach is data-driven.
• It’s employed in expert systems and production rule system.

A practical example will go as follows;


Tom is running (A)
If a person is running, he will sweat (A->B)
Therefore, Tom is sweating. (B)

A DENDRAL expert system is a good example of how forward chaining is used in artificial intelligence.
DENDRAL is used in the prediction of the molecular structure of substances.

10/4/2021 Dr. Sandeep Gaikwad 59


Forward Chaining – Advantages and Disadvantages

Advantages
Den Disadvantages

• It can be used to draw multiple conclusions. • The process of forward chaining may be
• It provides a good basis for arriving at time-consuming.
conclusions. • It may take a lot of time to eliminate and
• It’s more flexible than backward chaining synchronize available data.
because it does not have a limitation on the
data derived from it. • Unlike backward chaining, the explanation
of facts or observations for this type of
chaining is not very clear.
• The former uses a goal-driven method that
arrives at conclusions efficiently.

10/4/2021 Dr. Sandeep Gaikwad 60


Backward Chaining

• Backward chaining is used by an expert system to answer the question “Why


did this happen?”
• Depending upon what has already occurred, the inference engine tries to
identify the conditions that could have happened in the past to trigger the final
result.
• This strategy is used to find the cause or the reason behind something
happening. For example, the diagnosis of different types of cancer in humans.
• Backward-chaining is also known as a backward deduction or backward
reasoning method when using an inference engine.
• A backward chaining algorithm is a form of reasoning, which starts with the
goal and works backward, chaining through rules to find known facts that
support the goal.

10/4/2021 Dr. Sandeep Gaikwad 61


Backward Chaining

Examples of expert systems include MYCIN and DENDRAL. MYCIN uses the backward chaining technique to
diagnose bacterial infections.

10/4/2021 Dr. Sandeep Gaikwad 62


Difference between Forward Chaining and Backward Chaining
S.
Forward Chaining Backward Chaining
No.

Forward chaining starts from known facts and applies inference Backward chaining starts from the goal and works backward through
1.
rule to extract more data unit it reaches to the goal. inference rules to find the required facts that support the goal.

2. It is a bottom-up approach It is a top-down approach

Forward chaining is known as data-driven inference technique as Backward chaining is known as goal-driven technique as we start
3.
we reach to the goal using the available data. from the goal and divide into sub-goal to extract the facts.

Forward chaining reasoning applies a breadth-first search


4. Backward chaining reasoning applies a depth-first search strategy.
strategy.
5. Forward chaining tests for all the available rules Backward chaining only tests for few required rules.
Forward chaining is suitable for the planning, monitoring, Backward chaining is suitable for diagnostic, prescription, and
6.
control, and interpretation application. debugging application.
Forward chaining can generate an infinite number of possible
7. Backward chaining generates a finite number of possible conclusions.
conclusions.
8. It operates in the forward direction. It operates in the backward direction.
9. Forward chaining is aimed for any conclusion. Backward chaining is only aimed for the required data.

10/4/2021 Dr. Sandeep Gaikwad 63


Expert System Technology- Development

• There are several levels of ES technologies available. Expert systems


technologies include −

• Expert System Development Environment − The ES development


environment includes hardware and tools. They are −
• Workstations, minicomputers, mainframes.

• Large databases.

10/4/2021 Dr. Sandeep Gaikwad 64


Tools

• − They reduce the effort and cost involved in developing an expert system to
large extent.
• Powerful editors and debugging tools with multi-windows.

• They provide rapid prototyping

• Have Inbuilt definitions of model, knowledge representation, and inference


design.

10/4/2021 Dr. Sandeep Gaikwad 65


Shells

• − A shell is nothing but an expert system without knowledge base. A shell provides the
developers with knowledge acquisition, inference engine, user interface, and
explanation facility. For example, few shells are given below −
• Java Expert System Shell (JESS) that provides fully developed Java API for creating an
expert system. Jess is a rule engine for the Java platform that was developed by Ernest
Friedman-Hill of Sandia National Labs.
• It is a superset of the CLIPS programming language.
• It was first written in late 1995.
• The language provides rule-based programming for the automation of an expert system, and
is frequently termed as an expert system shell.
• In recent years, intelligent agent systems have also developed, which depend on a similar
capability.

10/4/2021 Dr. Sandeep Gaikwad 66


Java Expert System Shell (JESS)

• Jess, an expert system shell and scripting language written entirely in Sun
Microsystem's Java language. Jess supports the development of rule-based
expert systems which can be tightly coupled to code written in the powerful,
portable Java language.
• Jess 6.1 is compatible with all versions of Java starting with Java 1.2. In
particular, this includes JDK 1.4 (or "Java 2" as it is now known.) Versions
numbered 4.x are compatible with JDK 1.0, and the 5.x versions work with
JDK 1.1.

10/4/2021 Dr. Sandeep Gaikwad 67


JESS program

• Addition of two no

(bind ?x 2) // Variable declaration


(bind ?y 3)
bind ?res (+?x ?y)) //Formula of addition

10/4/2021 Dr. Sandeep Gaikwad 68


JESS

• Merits of JESS
• Jess has many unique features including backwards chaining and working memory queries, and of course
Jess can directly
• manipulate and reason about Java objects.
• Jess is also a powerful Java scripting environment, from which you can create Java objects, call Java
methods, and implement
• Java interfaces without compiling any Java code.
• Jess is available at no cost for academic use and can be licensed for commercial use.
• Demerits of JESS
• JESS is three times slower than CLIPS because of Java but it totally depends on application type.
• It is a bit more complicated since the software has to be compiled before it can be started.

10/4/2021 Dr. Sandeep Gaikwad 69


Vidwan

• Vidwan, a shell developed at the National Centre for Software Technology,


Mumbai in 1993. It enables knowledge encoding in the form of IF-THEN
rules.
• Vidwan
• An expert system shell - Vidwan has been developed at the National Centre
for Software Technology (NCST), Mumbai (India) in
• 1993. It's a web-based expert system shell that allows us to create rule-based
expert system. As it is a rule-based expert system shell, it
• enables us to encode domain knowledge in the form of IF-THEN rules . The
inference engine of this shell applies backward chaining inference mechanism
to manipulate the piece of information. The explanation component of the
shell provides facility to

10/4/2021 Dr. Sandeep Gaikwad 70


Vidwan

• explain an specific query in the form of why and how. It also has an
interactive text editor that enables knowledge engineer to update/create rules
in the knowledgebase.
• This software can be embedded in programs developed in other languages .
• The latest
• version of Vidwan is also compatible with UNIX operating system

10/4/2021 Dr. Sandeep Gaikwad 71


Vidwan

• Vidwan, a shell developed at the National Centre for Software Technology, Mumbai
in 1993. It enables knowledge encoding in the form of IF-THEN rules.
• Vidwan
• An expert system shell - Vidwan has been developed at the National Centre for
Software Technology (NCST), Mumbai (India) in
• 1993. It's a web-based expert system shell that allows us to create rule-based expert
system. As it is a rule-based expert system shell, it
• enables us to encode domain knowledge in the form of IF-THEN rules . The
inference engine of this shell applies backward chaining inference mechanism to
manipulate the piece of information. The explanation component of the shell provides
facility to
• explain an specific query in the form of why and how. It also has an interactive text
editor that enables knowledge engineer to
• update/create rules in the knowledgebase. This software can be embedded in
programs developed in other languages [25]. The latest
• version of Vidwan is also compatible with UNIX operating system
10/4/2021 Dr. Sandeep Gaikwad 72
Advantages of Expert Systems

• Availability − They are easily available due to mass production of software.


• Less Production Cost − Production costs of expert systems are extremely
reasonable and affordable.
• Speed − They offer great speed and reduce the amount of work.
• Less Error Rate − Error rate is much lower as opposed to human errors.
• Low Risks − They are capable of working in environments that are
dangerous to humans.
• Steady response − They avoid motions, tensions and fatigues.


10/4/2021 Dr. Sandeep Gaikwad 73


Limitations of Expert Systems

• It is evident that no technology is entirely perfect to offer easy and complete


solutions. Larger systems are not only expensive but also require a significant
amount of development time and computer resources. Limitations of Es
include:

• Difficult knowledge acquisition


• Maintenance costs
• Development costs
• Focused only to specific domains.
• Requires constant manual updates, it cannot learn by itself.
• It is incapable of providing logic behind the decisions.

10/4/2021 Dr. Sandeep Gaikwad 74


Thank you

Artificial intelligence
Artificial Intelligence

Unit II- Completed

Dr. Sandeep Gaikwad

Assistant Professor,
Email: Sandeepgaikwad.mca@charusat.ac.in
Faculty of Computer Science and Applications,
Website: https://svgaikwad.com
CMPICA, CHARUSAT.
10/5/2021 Dr. Sandeep Gaikwad 75

You might also like