SlideShare a Scribd company logo
1 of 50
Knowledge
representation
      2
Knowledge Representation
 using structured objects
Knowledge Representation
 using structured objects
       Semantic nets
c v r db
                                          o ee _ y
                                 a i a
                                  nm l
             t a es b
              r v l _ y                                        s i
                                                                kn
   f yn
    l i g
                                i a
                                 s                  i a
                                                     s
                                                           t a es b
                                                            r v l _ y
                                 br
                                  id              fs
                                                   i h
 f ah r
  e t es
             c v r db
              o ee _ y                                        s i m g
                                                               wm in


      i a
       s                  i a
                           s                i a
                                             s                 i a
                                                                s


      oti h
       sr c           p n un
                       e g i             c nr
                                          a ay              r bn
                                                             o i

t a es b
 r v l _ y                                                        c l u
                                                                   oo r
                                                    c l u
                                                     oo r

     wl i g
      akn                                          y lo
                                                    el w
                t a es b
                 r v l _ y



                                                     r d
                                                      e

                  i sa c _ f
                   nt ne o


                          Ou
                           p s              i sa c _ f
                                             nt ne o


                                          T et
                                           w ey

                                         c l u
                                          oo r
                                                               wie
                                                                ht
Semantic nets

knowledge is represented as a
collection of concepts, represented by
nodes (shown as boxes in the diagram),
connected together by relationships,
represented by arcs (shown as arrows
in the diagram).
certain arcs - particularly isa arcs - allow
inheritance of properties.
Semantic nets

Problems with semantic nets
  logical inadequacy - vagueness about what
  types and tokens really mean.
  heuristic inadequacy – finding a specific
  piece of information could be chronically
  inefficient.
  trying to establish negation is likely to lead
  to a combinatorial explosion.
  "spreading activation" search is very
  inefficient, because it is not knowledge-
  guided.
Semantic nets

Attempted improvements
  building search heuristics into the
  network.
  more sophisticated logical structure,
  involving partitioning.
  these improvements meant that the
  formalism’s original simplicity was
  lost.
Semantic nets

Developments of the semantic nets idea:
  psychological research into whether
  human memory really was organised in
  this way.
  used in the knowledge bases in certain
  expert systems: e.g. PROSPECTOR.
  special-purpose languages have been
  written to express knowledge in semantic
  nets.
Knowledge Representation
 using structured objects
         Frames
Frames

Devised by Marvin Minsky, 1974.
Incorporates certain valuable human
thinking characteristics:
  Expectations, assumptions, stereotypes.
  Exceptions. Fuzzy boundaries between
  classes.
The essence of this form of knowledge
representation is typicality, with
exceptions, rather than definition.
Frames

The idea of frame hierarchies is very
similar to the idea of class hierarchies
found in object-orientated programming.
How frames are organised

A frame system is a hierarchy of frames
Each frame has:
  a name.
  slots: these are the properties of the entity
  that has the name, and they have values.
  A particular value may be:
     a default value
     an inherited value from a higher frame
     a procedure, called a daemon, to find a
     value
     a specific value, which might represent
     an exception.
How frames are organised

In the higher levels of the frame
hierarchy, typical knowledge about the
class is stored.
  The value in a slot may be a range or a
  condition.
In the lower levels, the value in a slot
may be a specific value, to overwrite the
value which would otherwise be
inherited from a higher frame.
How frames are organised

An instance of an object is joined to its
class by an 'instance_of' relationship.
A class is joined to its superclass by a
'subclass_of' relationship.
Frames may contain both procedural
and declarative knowledge.
  Slot values normally amount to declarative
  knowledge, but a daemon is in effect a
  small program. So a slot with a daemon in it
  amounts to procedural knowledge.
How frames are organised

Note that a frames system may allow
multiple inheritance but, if it does so, it
must make provision for cases when
inherited values conflict.
Frames: some examples

The following is an exploration of
Minsky's frames, using simple
examples.
Note that this is not exactly the way
Minsky described frames in his original
paper, but it is the way the idea has
come to be used in practice.
Frames: some examples

First I provide a verbal description of some
concept;
then I show a diagram representing the
resulting frame;
beside this is a bit of programming which
implements this frame in a suitable
knowledge representation programming
language - in this case, the MIKE package
written by knowledge engineering
specialists at the Open University.
Frames: some examples

We will start with a simple piece of
information: there is a category of things
called cars.
Given this information, we can start to
build a frame:
Name: car   Subclass of: thing
More information: a car has 4 wheels, is
moved by an engine, and runs on petrol
or diesel.
We can now add three slots to the
frame.
The last of these has a restriction rather
than a specific value.
“a car has 4 wheels, is moved by an engine,
        and runs on petrol or diesel.”


                                          car subclass_of
Name: car        Subclass of: thing                      thing
                                          with
              Slots:
                                            wheels: 4,
Name:       Value:     Restrictions:
                                            moved_by:
                                                      engine,
wheels       4                              fuel:
moved by     engine                           [value:
                                                   unknown,
fuel         ?         petrol or diesel        type:
                                              [petrol,diesel]].
More information: there is a particular
type of car called a VW, manufactured
in Germany.
We can add a second frame to our
system, with one slot. We don’t need to
repeat the slots and values in the
previous frame: they will be inherited.
“there is a particular type of car called a VW,
         manufactured in Germany.”


                                      ‘VW’ subclass_of
Name: VW        Subclass of: car                   car
                                      with
             Slots:
                                        made_in:
Name:      Value:     Restrictions:
                                             ‘Germany’.
made in     Germany
More information: there is a particular
type of VW called a Golf, which has a
sun-roof.
We can add a third frame to our system,
with one slot. Once again, we don’t
repeat the slots in the previous frames,
because they will be inherited.
“there is a particular type of VW called a Golf,
             which has a sunroof.”


                                         ‘Golf’ subclass_of
 Name: Golf        Subclass of: VW                     VW
                                         with
                Slots:
                                           top: sunroof.
 Name:        Value:     Restrictions:

 top           sunroof
More information: there is a particular
type of Golf called a TDi, which runs on
diesel. A TDi has 4 cylinders, and an
engine capacity of 1.8 litres.
We can add a fourth frame to our
system, with three slots. One of the slots
(fuel) was already in the system, but
appears here because it now has a
specific value rather than a restriction.
“there is a particular type of Golf called a TDi,
which runs on diesel, has 4 cylinders, and has a 1.8
                   litre engine.”


                                            ‘TDi’ subclass_of
  Name: TDi          Subclass of: Golf                      ‘Golf’
                                            with
                Slots:
                                              fuel: diesel,
  Name:       Value:        Restrictions:
                                              engine_capacity:
 fuel          diesel                                         1.8,
                                              cylinders: 4.
 engine
   capacity    1.8 litres

 cylinders     4
More information: my car, called
C637SRK, is a Golf Tdi. It hasn’t got a
sun-roof.
We can add a fifth frame to our system,
with two slots. Unlike all the previous
frames, this one is an instance frame.
One of the slots (top) was already in the
system, but appears here because the
value contradicts (overwrites) the value
which would otherwise be inherited.
“There is a car called C637SRK which is an
         instance of a Golf TDi etc.”


                                   ‘C637SRK’
 Name: C637SRK Instance of: TDi        instance_of
                                                 ‘TDi’
              Slots:               with
 Name:     Value:    Restrictions:   owner: jp,
                                     top:
owner       jp
                                          no_sun_roof.

top          no sun-roof
More information: to calculate a car’s
cylinder size, you divide the total engine
capacity by the number of cylinders.
We can now add another slot to the car
frame. It’s a daemon, which discovers
the information required, if the user asks
what the value in the slot is.
“to calculate a car’s cylinder size, you divide the
total engine capacity by the number of
cylinders.”

                                                car subclass_of thing
                                                with
   Name: car            Subclass of: thing      wheels: 4,
                                                moved_by: engine,
                     Slots:                     fuel: [value: unknown,
                                                type: [petrol,diesel]],
   Name:          Value:      Restrictions:     cylinder_size:
  wheels           4                             [value: unknown,
  moved by         engine                       access_rule:
  fuel             ?          petrol or diesel. (if the
  cylinder size    ?          find total engine engine_capacity of ?
                                                self is E & the
                              capacity, find    cylinders of ?self is
                              no.of cylinders, C & Ans := E/C
                              divide first by   then make_value
                              second.           Ans)].
Knowledge Representation
 using structured objects
   Other varieties of structured
              object
Other varieties of structured
           object
Knowledge representation researchers -
particularly Roger Schank and his
associates - devised some interesting
variations on the theme of structured
objects.
In particular, they invented the idea of
scripts (1973).
   A script is a description of a class of
events in terms of contexts, participants,
              and sub-events.
Scripts

Rather similar to frames: uses inheritance
and slots; describes stereotypical
knowledge, (i.e. if the system isn't told
some detail of what's going on, it
assumes the "default" information is true),
but concerned with events.
Somewhat out of the mainstream of
expert systems work. More a
development of natural-language-
processing research.
Scripts

Why represent knowledge in this way?
  Because real-world events do follow
  stereotyped patterns. Human beings use
  previous experiences to understand verbal
  accounts; computers can use scripts instead.
  Because people, when relating events, do
  leave large amounts of assumed detail out of
  their accounts. People don't find it easy to
  converse with a system that can't fill in
  missing conversational detail.
Scripts

Scripts predict unobserved events.
Scripts can build a coherent account from
disjointed observations.
Scripts

Commercial applications of script-like
structured objects: work on the basis that a
conversation between two people on a pre-
defined subject will follow a predictable
course.
Certain items of information need to be
exchanged.
  Others can be left unsaid (because both people
  know what the usual answer would be, or can
  deduce it from what's been said already), unless
Scripts

This sort of knowledge representation has
been used in intelligent front-ends, for
systems whose users are not computer
specialists.
It has been employed in story-
understanding and news-report-
understanding systems.
Conceptual graphs

In 1984, John Sowa published his
conceptual graph approach.
This is something like the semantic net
approach described earlier.
It is more sophisticated in the way in
which it represents concepts
It is much more precise regarding what
the objects in the graphs mean in real-
world terms.
Knowledge Representation
 using structured objects
     Practical applications
KBSs using structured objects

Two more examples of KBSs using
structured objects for knowledge
representation
Explorer

Explorer is a natural-language interface
for a database relating to oil-wells:
Contains geological knowledge,
organised as structured objects.
Interfaced to a graphics package that
can draw oil-exploration maps.
The geologist can converse with the
program in unconstrained natural
language, and in geological jargon.
Bank customer advisory
           system
Bank customer advisory system:
Advises customer on opening a bank
account, based on customer's
needs/characteristics. This is a task that
can consume a lot of the bank staff's time.
Deduces customer's intended meaning.
Does not annoy customer by asking for
every detail; uses its knowledge about
people to deduce what the answers must
be.
Knowledge Representation
 using structured objects
      The CYC project
The CYC Project

A very large scale commercial research
project designed to represent a large
body of common-sense knowledge.
Headed by Lenat and Guha, and based
in Austin, Texas
Has been making steady progress since
1984
The CYC Project

It now ‘knows’ a huge collection of
fragments of real-world knowledge such
as:
  Mothers are older than their children.
  You have to be awake to eat.
  You can usually know people’s noses, but
  not their hearts.
  If you cut a lump of peanut butter in half,
  each half is a lump of peanut butter, but if
  you cut a table in half, neither half is a table.
The CYC Project

The ultimate objective is to give it enough
knowledge to understand ordinary books,
so that it can read them and expand its
own knowledge.
So far, it’s got to a stage where, when
asked to find photos of “risky activities”, it
located photos of people climbing
mountains and doing white-water rafting.
Knowledge Representation
 using structured objects
       Final comments
Structured objects: final
           comments
A knowledge-representation system with
property inheritance should make a
distinction between essential properties
('universal truths') and accidental properties.
  Some don't: some allow unrestrained overwriting
  of inherited properties.
  It's possible to generate incoherent structures in
  any of these systems.
  It's particularly easy when multiple inheritance is
  involved.
Structured objects: final
          comments
At best, structured objects provide data
& control structures which are more
flexible than those in conventional
languages, and so more suited to
simulating human reasoning.

More Related Content

Viewers also liked

Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 
Computer security threats & prevention
Computer security threats & preventionComputer security threats & prevention
Computer security threats & preventionPriSim
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine Learningbutest
 
Machine Learning presentation.
Machine Learning presentation.Machine Learning presentation.
Machine Learning presentation.butest
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningRahul Jain
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningLior Rokach
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

Viewers also liked (11)

Frames
FramesFrames
Frames
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
Computer security threats & prevention
Computer security threats & preventionComputer security threats & prevention
Computer security threats & prevention
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine Learning
 
Machine Learning presentation.
Machine Learning presentation.Machine Learning presentation.
Machine Learning presentation.
 
Machine Learning for Dummies
Machine Learning for DummiesMachine Learning for Dummies
Machine Learning for Dummies
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar to 01bkb05p

The New Media Literacies and International Education
The New Media Literacies and International EducationThe New Media Literacies and International Education
The New Media Literacies and International EducationAnna van Someren
 
Amanda's Portfolio
Amanda's PortfolioAmanda's Portfolio
Amanda's PortfolioSambar07
 
Lesson 1 mendelian genetics & heredity
Lesson 1 mendelian genetics & heredityLesson 1 mendelian genetics & heredity
Lesson 1 mendelian genetics & hereditykimedillon
 
Lesson plan edtp 635
Lesson plan edtp 635Lesson plan edtp 635
Lesson plan edtp 635kimedillon
 
Nicole gomez 3ptppt.
Nicole gomez 3ptppt.Nicole gomez 3ptppt.
Nicole gomez 3ptppt.nicoleg6
 

Similar to 01bkb05p (7)

The New Media Literacies and International Education
The New Media Literacies and International EducationThe New Media Literacies and International Education
The New Media Literacies and International Education
 
Amanda's Portfolio
Amanda's PortfolioAmanda's Portfolio
Amanda's Portfolio
 
Lesson 1 mendelian genetics & heredity
Lesson 1 mendelian genetics & heredityLesson 1 mendelian genetics & heredity
Lesson 1 mendelian genetics & heredity
 
Lesson plan edtp 635
Lesson plan edtp 635Lesson plan edtp 635
Lesson plan edtp 635
 
Michiels maarten
Michiels maartenMichiels maarten
Michiels maarten
 
Vidhi mehta
Vidhi mehtaVidhi mehta
Vidhi mehta
 
Nicole gomez 3ptppt.
Nicole gomez 3ptppt.Nicole gomez 3ptppt.
Nicole gomez 3ptppt.
 

Recently uploaded

NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdfKhaled Al Awadi
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...ictsugar
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In.../:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...lizamodels9
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedLean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedKaiNexus
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncrdollysharma2066
 

Recently uploaded (20)

NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdfNewBase  19 April  2024  Energy News issue - 1717 by Khaled Al Awadi.pdf
NewBase 19 April 2024 Energy News issue - 1717 by Khaled Al Awadi.pdf
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In.../:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
/:Call Girls In Indirapuram Ghaziabad ➥9990211544 Independent Best Escorts In...
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedLean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 

01bkb05p

  • 2. Knowledge Representation using structured objects
  • 3. Knowledge Representation using structured objects Semantic nets
  • 4. c v r db o ee _ y a i a nm l t a es b r v l _ y s i kn f yn l i g i a s i a s t a es b r v l _ y br id fs i h f ah r e t es c v r db o ee _ y s i m g wm in i a s i a s i a s i a s oti h sr c p n un e g i c nr a ay r bn o i t a es b r v l _ y c l u oo r c l u oo r wl i g akn y lo el w t a es b r v l _ y r d e i sa c _ f nt ne o Ou p s i sa c _ f nt ne o T et w ey c l u oo r wie ht
  • 5. Semantic nets knowledge is represented as a collection of concepts, represented by nodes (shown as boxes in the diagram), connected together by relationships, represented by arcs (shown as arrows in the diagram). certain arcs - particularly isa arcs - allow inheritance of properties.
  • 6. Semantic nets Problems with semantic nets logical inadequacy - vagueness about what types and tokens really mean. heuristic inadequacy – finding a specific piece of information could be chronically inefficient. trying to establish negation is likely to lead to a combinatorial explosion. "spreading activation" search is very inefficient, because it is not knowledge- guided.
  • 7. Semantic nets Attempted improvements building search heuristics into the network. more sophisticated logical structure, involving partitioning. these improvements meant that the formalism’s original simplicity was lost.
  • 8. Semantic nets Developments of the semantic nets idea: psychological research into whether human memory really was organised in this way. used in the knowledge bases in certain expert systems: e.g. PROSPECTOR. special-purpose languages have been written to express knowledge in semantic nets.
  • 9. Knowledge Representation using structured objects Frames
  • 10. Frames Devised by Marvin Minsky, 1974. Incorporates certain valuable human thinking characteristics: Expectations, assumptions, stereotypes. Exceptions. Fuzzy boundaries between classes. The essence of this form of knowledge representation is typicality, with exceptions, rather than definition.
  • 11. Frames The idea of frame hierarchies is very similar to the idea of class hierarchies found in object-orientated programming.
  • 12. How frames are organised A frame system is a hierarchy of frames Each frame has: a name. slots: these are the properties of the entity that has the name, and they have values. A particular value may be: a default value an inherited value from a higher frame a procedure, called a daemon, to find a value a specific value, which might represent an exception.
  • 13. How frames are organised In the higher levels of the frame hierarchy, typical knowledge about the class is stored. The value in a slot may be a range or a condition. In the lower levels, the value in a slot may be a specific value, to overwrite the value which would otherwise be inherited from a higher frame.
  • 14. How frames are organised An instance of an object is joined to its class by an 'instance_of' relationship. A class is joined to its superclass by a 'subclass_of' relationship. Frames may contain both procedural and declarative knowledge. Slot values normally amount to declarative knowledge, but a daemon is in effect a small program. So a slot with a daemon in it amounts to procedural knowledge.
  • 15. How frames are organised Note that a frames system may allow multiple inheritance but, if it does so, it must make provision for cases when inherited values conflict.
  • 16. Frames: some examples The following is an exploration of Minsky's frames, using simple examples. Note that this is not exactly the way Minsky described frames in his original paper, but it is the way the idea has come to be used in practice.
  • 17. Frames: some examples First I provide a verbal description of some concept; then I show a diagram representing the resulting frame; beside this is a bit of programming which implements this frame in a suitable knowledge representation programming language - in this case, the MIKE package written by knowledge engineering specialists at the Open University.
  • 18. Frames: some examples We will start with a simple piece of information: there is a category of things called cars. Given this information, we can start to build a frame:
  • 19. Name: car Subclass of: thing
  • 20. More information: a car has 4 wheels, is moved by an engine, and runs on petrol or diesel. We can now add three slots to the frame. The last of these has a restriction rather than a specific value.
  • 21. “a car has 4 wheels, is moved by an engine, and runs on petrol or diesel.” car subclass_of Name: car Subclass of: thing thing with Slots: wheels: 4, Name: Value: Restrictions: moved_by: engine, wheels 4 fuel: moved by engine [value: unknown, fuel ? petrol or diesel type: [petrol,diesel]].
  • 22. More information: there is a particular type of car called a VW, manufactured in Germany. We can add a second frame to our system, with one slot. We don’t need to repeat the slots and values in the previous frame: they will be inherited.
  • 23. “there is a particular type of car called a VW, manufactured in Germany.” ‘VW’ subclass_of Name: VW Subclass of: car car with Slots: made_in: Name: Value: Restrictions: ‘Germany’. made in Germany
  • 24. More information: there is a particular type of VW called a Golf, which has a sun-roof. We can add a third frame to our system, with one slot. Once again, we don’t repeat the slots in the previous frames, because they will be inherited.
  • 25. “there is a particular type of VW called a Golf, which has a sunroof.” ‘Golf’ subclass_of Name: Golf Subclass of: VW VW with Slots: top: sunroof. Name: Value: Restrictions: top sunroof
  • 26. More information: there is a particular type of Golf called a TDi, which runs on diesel. A TDi has 4 cylinders, and an engine capacity of 1.8 litres. We can add a fourth frame to our system, with three slots. One of the slots (fuel) was already in the system, but appears here because it now has a specific value rather than a restriction.
  • 27. “there is a particular type of Golf called a TDi, which runs on diesel, has 4 cylinders, and has a 1.8 litre engine.” ‘TDi’ subclass_of Name: TDi Subclass of: Golf ‘Golf’ with Slots: fuel: diesel, Name: Value: Restrictions: engine_capacity: fuel diesel 1.8, cylinders: 4. engine capacity 1.8 litres cylinders 4
  • 28. More information: my car, called C637SRK, is a Golf Tdi. It hasn’t got a sun-roof. We can add a fifth frame to our system, with two slots. Unlike all the previous frames, this one is an instance frame. One of the slots (top) was already in the system, but appears here because the value contradicts (overwrites) the value which would otherwise be inherited.
  • 29. “There is a car called C637SRK which is an instance of a Golf TDi etc.” ‘C637SRK’ Name: C637SRK Instance of: TDi instance_of ‘TDi’ Slots: with Name: Value: Restrictions: owner: jp, top: owner jp no_sun_roof. top no sun-roof
  • 30. More information: to calculate a car’s cylinder size, you divide the total engine capacity by the number of cylinders. We can now add another slot to the car frame. It’s a daemon, which discovers the information required, if the user asks what the value in the slot is.
  • 31. “to calculate a car’s cylinder size, you divide the total engine capacity by the number of cylinders.” car subclass_of thing with Name: car Subclass of: thing wheels: 4, moved_by: engine, Slots: fuel: [value: unknown, type: [petrol,diesel]], Name: Value: Restrictions: cylinder_size: wheels 4 [value: unknown, moved by engine access_rule: fuel ? petrol or diesel. (if the cylinder size ? find total engine engine_capacity of ? self is E & the capacity, find cylinders of ?self is no.of cylinders, C & Ans := E/C divide first by then make_value second. Ans)].
  • 32. Knowledge Representation using structured objects Other varieties of structured object
  • 33. Other varieties of structured object Knowledge representation researchers - particularly Roger Schank and his associates - devised some interesting variations on the theme of structured objects. In particular, they invented the idea of scripts (1973). A script is a description of a class of events in terms of contexts, participants, and sub-events.
  • 34. Scripts Rather similar to frames: uses inheritance and slots; describes stereotypical knowledge, (i.e. if the system isn't told some detail of what's going on, it assumes the "default" information is true), but concerned with events. Somewhat out of the mainstream of expert systems work. More a development of natural-language- processing research.
  • 35. Scripts Why represent knowledge in this way? Because real-world events do follow stereotyped patterns. Human beings use previous experiences to understand verbal accounts; computers can use scripts instead. Because people, when relating events, do leave large amounts of assumed detail out of their accounts. People don't find it easy to converse with a system that can't fill in missing conversational detail.
  • 36. Scripts Scripts predict unobserved events. Scripts can build a coherent account from disjointed observations.
  • 37. Scripts Commercial applications of script-like structured objects: work on the basis that a conversation between two people on a pre- defined subject will follow a predictable course. Certain items of information need to be exchanged. Others can be left unsaid (because both people know what the usual answer would be, or can deduce it from what's been said already), unless
  • 38. Scripts This sort of knowledge representation has been used in intelligent front-ends, for systems whose users are not computer specialists. It has been employed in story- understanding and news-report- understanding systems.
  • 39. Conceptual graphs In 1984, John Sowa published his conceptual graph approach. This is something like the semantic net approach described earlier. It is more sophisticated in the way in which it represents concepts It is much more precise regarding what the objects in the graphs mean in real- world terms.
  • 40. Knowledge Representation using structured objects Practical applications
  • 41. KBSs using structured objects Two more examples of KBSs using structured objects for knowledge representation
  • 42. Explorer Explorer is a natural-language interface for a database relating to oil-wells: Contains geological knowledge, organised as structured objects. Interfaced to a graphics package that can draw oil-exploration maps. The geologist can converse with the program in unconstrained natural language, and in geological jargon.
  • 43. Bank customer advisory system Bank customer advisory system: Advises customer on opening a bank account, based on customer's needs/characteristics. This is a task that can consume a lot of the bank staff's time. Deduces customer's intended meaning. Does not annoy customer by asking for every detail; uses its knowledge about people to deduce what the answers must be.
  • 44. Knowledge Representation using structured objects The CYC project
  • 45. The CYC Project A very large scale commercial research project designed to represent a large body of common-sense knowledge. Headed by Lenat and Guha, and based in Austin, Texas Has been making steady progress since 1984
  • 46. The CYC Project It now ‘knows’ a huge collection of fragments of real-world knowledge such as: Mothers are older than their children. You have to be awake to eat. You can usually know people’s noses, but not their hearts. If you cut a lump of peanut butter in half, each half is a lump of peanut butter, but if you cut a table in half, neither half is a table.
  • 47. The CYC Project The ultimate objective is to give it enough knowledge to understand ordinary books, so that it can read them and expand its own knowledge. So far, it’s got to a stage where, when asked to find photos of “risky activities”, it located photos of people climbing mountains and doing white-water rafting.
  • 48. Knowledge Representation using structured objects Final comments
  • 49. Structured objects: final comments A knowledge-representation system with property inheritance should make a distinction between essential properties ('universal truths') and accidental properties. Some don't: some allow unrestrained overwriting of inherited properties. It's possible to generate incoherent structures in any of these systems. It's particularly easy when multiple inheritance is involved.
  • 50. Structured objects: final comments At best, structured objects provide data & control structures which are more flexible than those in conventional languages, and so more suited to simulating human reasoning.