Professional Documents
Culture Documents
Archana R. Shinde
Question ask in University Exam
Questions:
Archana R. Shinde
What is Understanding
To understand something is to transform it from one representation to
another to correspond to a set of available actions that could be
performed and where the mapping has been designed so that for each
event, an appropriate action will be performed.
For example if you say to airline database system “i need to go to New
York as soon as possible”, the system will have “understood” if it find
first availble palne to New York.if you say same thing to your
friend,who knows that your family lives in New York, she will have
“understood” if she realizes that there may be problem in your family
and you may need emotional support.
About understanding , the success or failure of an “understanding”
program can rarely be measured in an absolute sense but must be
measured with respect to a particular task to be performed.
Constraint
Determination/Satisfaction
Archana R. Shinde
Constraint Determination/
Satisfaction
Many of the real world problem demands the solution to
satisfy a set of algebraic or logical conditions, called
constraints.
Archana R. Shinde
Constraint Determination/
Satisfaction
There are two important steps to use the constraint in problem
solving,
1.Analyze the problem domain to determine what the
constrains are,
2.Solve the problem by applying a constraint satisfaction
algorithm that effectively uses the constraint from step 1 to
control the search.
Archana R. Shinde
Constraint Determination/
Satisfaction
The multidimensional aspect of these problems, where each
variable can be seen as a separate dimension, makes them
difficult to solve but also provides structure that can be
exploited.
Archana R. Shinde
Figures Labelling
Figure labeling is the process of identification of edges and vertices of the
given objects.
There are Two types of the figures,
1.Trihedral and
2.Non-Trihedral.
1. Trihedral figure consist of Trihedral vertices. Trihedral vertex is the
vertex at which exactly three surface are meets.
Archana R. Shinde
Figures Labelling
Types of Edges:
2. A Concave Edge: An Edge between two faces that form an acute angle
(<90) when viewed from Outside the object. It is Denoted by the “–”
Sign.
3. A Convex Edge: An Edge between two faces that form an obtuse angle
(>90) when viewed from Outside the object. It is Denoted by the “+”
Sign.
Archana R. Shinde
Determining the Constraint
The problem we are trying to solve is how to recognize individual
objects in a figure
To do that, we intend to first label all the lines in the figures so that we
know which one correspond to boundries between objects.
For boundary lines, we also need to indicate a direction,telling which
side of line corresponds to the object and which to the background.
This produces a set of four labels that can be attached to a given line as:
Example of Line Labelling
For the trihedral figures we are considering, there are only four
configurations that describe all the possible vertices.these
configurations are shown in the following fig.
The eighteen physically possible Trihedral vertices
Waltz algorithm
Example
Consider simple drwaing shown in Fig. 14.18(a).we can begin by
labeling all the boundary edges, as shown in Fig 14.18(b).
Suppose we then begin labeling vertices at vertex 1.the only vertex
label that is consistent with known line labels is 13.
At vertex 2 , the only consistent label is 6.
At each of the remaining boundary vertices, there is also only one
labeling choice.these labelings are shown in parentheses in Fig.
14.18(c).
Now consider vertex 7. just looking at vertex 7 itselt, it would appear
that any of the five FORK labelings is possible.but from the only
labeling we found for vertex 2, we know that line between vertices 2
and 7 must be labeled +.using this fact, we can eliminate four of the
FORK labels.only label 8 is now possible
The complete labeling computed in shown in Fig. 14.18(d).
Thus by exploiting constraints on vertex labelings, we have correctly
identified vertex 7 as being formed by three convex edges.
Example
Natural Language Processing
Definition:
A system is called a natural language processing (NLP) system
when a subset of the input or output of the system is coded / written
in a natural language
And
the processing of the data is performed by algorithms for the
morpho-syntactic, semantic, and pragmatic analysis or generation of
natural language
Archana R. Shinde
Natural Language Processing
Natural Language Processing, usually shortened as NLP, is a branch of
artificial intelligence that deals with the interaction between computers
and humans using the natural language.
The ultimate objective of NLP is to read, decipher, understand, and
make sense of the human languages in a manner that is valuable.
Most NLP techniques rely on machine learning to derive meaning from
human languages.
Natural language Processing
Why then natural language ?
Computers speak their own language. This language is efficient,
economical, and exact. Why then would we want to “teach“ the
computer a natural language with all its ambiguities and difficulties?
When you need to make a phonecall with someone in Japan, but
you don‘t speak Japanese (voice recognition, machine translation).
When you want to evaluate millions of lines of text (text/data
mining)
When you don‘t want to learn a database query language to get
data (textanalysis, textgeneration, machine translation).
Archana R. Shinde
Natural language Processing
When you don‘t want to learn a programming language to
program your computer (machine translation).
When you busy with your hands and you still want to type
(voice type).
when travelling, when you are a slow typer (voice type)
Archana R. Shinde
Natural Language Processing steps.
Archana R. Shinde
Natural Language Processing steps.
Archana R. Shinde
Natural Language Processing steps.
World Knowledge: The world knowledge stands for the
domain knowledge of the environment, without which the
semantic understanding of the sentences is difficult.
Archana R. Shinde
Natural Language Processing steps.
• Step-1: Morphological Analysis:
Archana R. Shinde
Natural Language Processing steps.
Step-1: Morphological Analysis: Individual words are analyzed
into their components and non word to kens such as punctuation
is separated from the words.
ART N
Starting State Intermediate State Terminal State
NP
Fig: Transition network for noun phrase, constructed from re-write rules:
NP--> ART N and NP --> N.
Archana R. Shinde
V NP
Starting State Intermediate State Terminal State
Fig: Transition network for verb phrase using the re-write rules:
VP --> V. NP, VP --> V.
Archana R. Shinde
ATN (Augmented Transition Network)
Augmented transition networks (ATN) Extend transition networks
by attaching procedures to the arcs of the networks. When an arc is
traversed, the ATN parser executes the procedure, attached to that arc.
These procedures
1)Assign values to grammatical features, and
2)Check whether the number or person (1st, 2nd, 3rd) conditions are
satisfied and accordingly allow or fail a transition.
For instance, the ATN that may be employed for parsing part of the
sentence ‘the boy’ is presented below.
Suppose the grammatical characteristics or features of the words ‘the’
and ‘boy’ are available in a data dictionary, as shown in fig. Also
assume that the procedures are attached to the arcs of the article and
noun, as described below, Archana R. Shinde
ATN (Augmented Transition Network)
The:
Part of Speech Root Number
ART The Singular/ Plural
Boy:
Part of Speech Root Number
N Boy Singular
Fig: The grammatical characteristics of the word (a) the and (b) boy,
represented by structures.
Archana R. Shinde
ATN (Augmented Transition Network)
The:
Part of Speech Root Number
N Crocodile Singular
Boy:
Part of Speech Root Number
V Smile Singular/Plural
Fig: The grammatical characteristics of the word (a) Crocodile and (b) Smile,
represented by structures.
Archana R. Shinde
Semantic Analysis
Archana R. Shinde
Semantic Analysis
Archana R. Shinde
Fig: The type hierarchy for the animal kingdom.
Archana R. Shinde
Discourse and Pragmatic Analysis
Archana R. Shinde
Discourse and Pragmatic Analysis
Archana R. Shinde
Learning Techniques
What is Learning ?
- Learning is the process of updating the knowledgebase for
solving the modified problems.
Archana R. Shinde
Learning Techniques
Request For
New
Knowledge
Archana R. Shinde
Learning Techniques
Various type of learning methodologies:- (Types of Learning)
1. Rote learning
2. Learning by taking advise
3. Learning in problem solving
4. Learning from example
5. Learning by parameter adjustment
6. Learning by analogy
Archana R. Shinde
Rote learning
l
When a computer is storing a piece of data it is performing
rudimentory form of learning.
This act odf storage presumbly allows the program to perform
better in future
In the case of data caching, we store computed values so that we
do not have to recompute them later.When computation is more
expensive, this strategy can save significant amount of time.
Caching has been used in AI programs to produce some
surprising performance improvements.
Archana R. Shinde
Learning by taking advise
• Another way to learn is through taking advice from others.
• Advice taking is similar to rote learning but high level may not
be in simple from for a program to use directly in problem
solving.
• When a programmer writes a series of instructions into a
computer rudimentary type learning take place the programmer
is a sort of teacher and computer is a now able as student after
being programmed the computer is now able to do some thing it
previously could not.
• Executing the program may not be simple suppose the program is
written in high level language like lisp, some interpreter is
required to change the teachers instruction into the code that the
machine can execute directly
Archana R. Shinde
Learning in problem solving
• People also learn through their own problem solving
experience after solving a complex problem we remember the
structure of the problem and the method we can use to solve
it.
• The next turn we see the problem, we can solve more
efficiently. moreover we can generalize from our experience
to solve related problem more easily. In contrast to advice
taking learning, from problem solving experience does not
usually involve gathering new knowledge that was
previously unavailable to the learning program.that is the
program remember its experiences and generalizes them,but
dose not add to the transitive closure of its knowledge.
Archana R. Shinde
Learning from example
• We learn to classify things in the world without being taught
explicit rules,
E.g.
Adults can differentiate between cats and dogs but small
children cannot.
It involves a teacher who helps us to classify things by
correcting us when we are wrong.
Previously
NEW Problem
Solved
Previously
NEW Problem
Solved
Archana R. Shinde
Expert System
• Expert System is a set of program that manipulate encoded
knowledge to solve problem in a specialized domain that
normally requires human experts
Knowledge
Based Rules Expert
Interpreter Natural
Inference Language
Engine Interface
Data base
Context Set
of facts
User
Interface
4 Components of an Expert System
1.Knowledge Base.
3.User Interface
4.Explanation Facility
Archana R. Shinde
Knowledge Base
Archana R. Shinde
Knowledge Acquisition
Explanation Facility:
Archana R. Shinde
Does anyone know any examples of expert
systems used in everyday life?
Expert System
To understand what an expert system can do consider the following
dialog between a fruit expert and someone seeking advice.
Expert: It is Green
User: No
Expert: It is Red
User: Yes
Expert: Does it grow on the tree
User: No
Expert: Does it grow on the Cane
User: Yes
Expert: Does it cane have thorns
User: Yes
Expert: It is Raspberry
Archana R. Shinde
Utilization and functionality
Archana R. Shinde
Utilization & functionality
Expert System is utilized where human expertise is needed. On the basis
of knowledgebase expert system is utilized.
There are many reasons to use the expert system some of the are,
Step1: Using user interface expert system receives problem domain (whot, how,
where)
Step 4: IF Particular knowledge is not there, then send request to the learning
module for updating the knowledgebase.
Step 5: Apply inference mechanism and solve the given expert problem
Archana R. Shinde
Utilization & functionality
Inference Engine
User
User
Interface
Knowledgebase Learning
Module
Archana R. Shinde
Architecture of Expert System
Archana R. Shinde
Architecture of Expert System
• Architecture of expert system is dependent upon the
architecture of knowledge base.
Archana R. Shinde
Architecture of Expert System
Archana R. Shinde
Architecture of Expert System
Archana R. Shinde
Non Rule Base Architecture
1. Association of rule
2. The rule that is applied to an attribute states that the object
either “HAS” or “HAS NOT attribute.
The different methods related to the way that the engine attempts
to reach the goal,
Archana R. Shinde
Forward Chaining Method.
Example:
• Imagine that your car having some problems and you take it to
mechanic.
• He will ask you to describe the problems in the car.
• You tell him the problem that the car ignition is not working
properly.
• After that he will provide some conclusion to you that the car
need the service.
Archana R. Shinde
Backward Chaining Method.
•
Backward chaining is totally reverse of the forward
chaining.
•
A backward chaining interference engine stats with a
hypothesis a request information conform or deny it.
Archana R. Shinde
Backward Chaining Method.
Example:
•
To understand how the backward chaining works, Imagine that your
computer suddenly stop working. Your First hypothesis is that it has lost
power supply.
•
To check this your check first the fan of computer that it is running or
not.
•
If it is running you reject the hypothesis and process another one.
•
You second hypothesis is that your computer has crashed because of
the faulty software to conform or reject this possibility you restart your
system.
•
On restarting the computer starts working properly, hence your second
hypothesis gets true.
•
We are checking the possibilities one by one as Try and Error.
Here we are doing the reverse engineering. So this is the Backward
Chaining.
Archana R. Shinde
The Rule Value Method:
Example:
•
In your home one child is sick and you called your Doctor.
•
The doctor first asked if the child has a fever because the answer
for this question having greatest number of possibilities.
•
After that the doctor also ask the child having the cough or body
pain.
•
This process is going on till the diagnosis is not done.
So this procedure goes by one rule so it is called as Rule Value
Method
Archana R. Shinde
The Rule Value Method:
The problem with ruled value system is that they are difficult to
implement there are some reasons for this,
Archana R. Shinde
Knowledge Representation and
Utilization in Expert System
Archana R. Shinde
Knowledge Representation and Utilization in
Expert System
1) Production Rules
2) Semantic Net
3) Frame
4) Decision Tree
5) Blackboard
6) Neural Network.
Archana R. Shinde
Knowledge Representation and Utilization in
Expert System
Knowledge
Knowledge System Knowledge
Sources (Domain Engineer Editor Base
Expert)
Archana R. Shinde
Knowledge Representation and Utilization in
Expert System
Procedure to search the knowledge.
Step 1: When expert system requires knowledge it sends request
to the knowledge engineer.
Step 2: Knowledge engineer search a particular knowledge from
the expert knowledge source (i.e. Internet, Book, Human etc)
Step 3: After that it encode that knowledge in knowledgebase.
Archana R. Shinde
Problems with Expert Systems
1. There is no expert in the field
2. The expert is unable to communicate his/her ideas
3. The expert is unwilling to communicate his/her ideas
4. The expert is not available
5. Must have all information on a subject
6. Can all the testing be accomplished?
7. User acceptance
Archana R. Shinde
Expert System Shell
Archana R. Shinde
Expert System Shells
Archana R. Shinde
Expert System Shells
MYCIN took approximately 20 years to complete. The system was
written in INTERLISP, a dialect of the LISP programming language.
During the work on MYCIN, a large amount of LISP code was written for
different modules:
Knowledge base
Inference engine
Working memory
Explanation facility
End-user interface
Toward the end of the project, the MYCIN developers realized that
because the knowledge on infectious diseases was separate from its
control, then the code written for the other modules should be portable to
other applications.
Archana R. Shinde
Expert System Shells
By removing the knowledge about infectious blood diseases, a
system known as EMYCIN (van Melle, 1979) was formed. EMYCIN
is a domain-independent version of MYCIN that contains all of
MYCIN except its knowledge about infectious blood disease.
Archana R. Shinde
EMYCIN MYCIN
E. S. Shell Medical E.S.
User
Specification of
E.S.
Archana R. Shinde
EXPERT SYSTEM SHELL ARCHITECTURE
System interface
External
Programs
Working memory
Knowle
Explanation Facility l
Inference Engine dge
Base
l
User Interface
Developer’s interface
Knowledge
User
Engineer
Archana R. Shinde
Shells and Environments
Archana R. Shinde
Applications of Expert System
Archana R. Shinde
Expert System Shells
• High performance
• Understandable
• Reliable
• Highly responsive
Archana R. Shinde
Expert System Shells
• Advising
• Instructing and assisting human in decision making
• Demonstrating
• Deriving a solution
• Diagnosing
• Explaining
• Interpreting input
• Predicting results
• Justifying the conclusion
• Suggesting alternative options to a problem
Archana R. Shinde
Archana R. Shinde