SlideShare a Scribd company logo
1 of 24
Artificial Intelligence 
4. Knowledge Representation 
Akhtar Hussain
Representation Representation Representation 
 Think about knowledge, rather than data in AI 
 Facts 
 Procedures 
 Meaning 
– Cannot have intelligence without knowledge 
 Always been very important in AI 
 Choosing the wrong representation 
– Could lead to a project failing 
 Still a lot of work done on representation issues
Representations for 
Problem solving techniques 
 For certain problem solving techniques 
– The “best” representation has already been worked out 
– Often it is an obvious requirement of the technique 
– Or a requirement of the programming language (e.g., Prolog) 
 Examples: 
– First order theorem proving (first order logic) 
– Inductive logic programming (logic programs) 
– Neural networks learning (neural networks) 
 But what if you have a new project? 
– What kind of general representations schemes are there?
Four General Representation Types 
 Logical Representations 
 Semantic Networks 
 Production Rules 
 Frames
4.1 Logical Representations 
What is a Logic? 
 Lay down some concrete communication rules 
– In order to give information to agents, and get info 
 Without errors in communication (or at least, fewer) 
 Think of a logic as a language 
– Many ways to translate from one language to another 
 Expressiveness 
– How much of natural language (e.g., English) 
 We are able to translate into the logical language 
 Not to be confused with logical reasoning 
– “Sherlock Holmes used pure logic to solve that…” 
– This is a process, not a language
Syntax and Semantics of Logics 
 Syntax 
– How we can construct legal sentences in the logic 
– Which symbols we can use (English: letters, punctuation) 
– How we are allowed to write down those symbols 
 Semantics 
– How we interpret (read) sentences in the logic 
– i.e., what the meaning of a sentence is 
 Example: “All lecturers are six foot tall” 
– Perfectly valid sentence (syntax) 
– And we can understand the meaning (semantics) 
– This sentence happens to be false (there is a counterexample)
Propositional Logic 
 Syntax 
– Propositions such as P meaning “it is wet” 
– Connectives: and, or, not, implies, equivalent 
– Brackets, T (true) and F (false) 
 Semantics 
– How to work out the truth of a sentence 
 Need to know how connectives affect truth 
 E.g., “P and Q” is true if and only if P is true and Q is true 
 “P implies Q” is true if P and Q are true or if P is false 
– Can draw up truth tables to work out the truth of statements
Logical Implication
First Order Predicate Logic 
 More expressive logic than propositional 
– And one we will use a lot in this course 
 Later lecture all about first order predicate logic 
 Syntax allows 
– Constants, variables, predicates, functions and quantifiers 
 So, we say something is true for all objects (universal) 
– Or something is true for at least one object (existential) 
 Semantics 
– Working out the truth of statement 
 This can be done using rules of deduction
Example Sentence 
 In English: 
– “Every Monday and Wednesday I go to John’s 
house for dinner” 
 In first order predicate logic: 
X ((day_of_week(X, monday) day_of_week(X, weds)) 
(go_to(me, house_of(john) 
 Note the change from “and” to “or” 
– Translating is problematic 
eat(me, dinner))).
Higher Order Predicate Logic 
 More expressive than first order predicate logic 
 Allows quantification over functions and 
predicates, as well as objects 
 For example 
– We can say that all our polynomials have a zero at 17: 
f (f(17)=0). 
Working at the meta-level 
– Important to AI, but not often used
Other Logics 
 Fuzzy logic 
– Use probabilities, rather than truth values 
 Multi-valued logics 
– Assertions other than true and false allowed 
E.g., “unknown” 
 Modal logics 
– Include beliefs about the world 
 Temporal logics 
– Incorporate considerations of time
Why Logic is a Good 
Representation 
 Some of many reasons are: 
– It’s fairly easy to do the translation when possible 
– There are whole tracts of mathematics devoted to it 
– It enables us to do logical reasoning 
– Programming languages have grown out of logics 
Prolog uses logic programs (a subset of predicate logic)
Semantic Networks 
 Logic is not the only fruit 
 Humans draw diagrams all the time, e.g., 
– E.g. causal relationships: 
– And relationships between ideas:
Graphical Representations 
 Graphs are very easy to store inside a computer 
 For information to be of any use 
– We must impose a formalism on the graphs 
– Jason is 15, Bryan is 40, Arthur is 70, Jim is 74 
– How old is Julia?
Better Graphical Representation 
 Because the formalism is the same 
– We can guess that Julia’s age is similar to Bryan’s 
 Limited the syntax to impose formalism
Semantic Network Formalisms 
 Used a lot for natural language understanding 
– Represent two sentences by graphs 
Sentences with same meaning have exactly same graphs 
 Conceptual Dependency Theory 
– Roger Schank’s brainchild 
– Concepts are nodes, relationships are edges 
– Narrow down labels for edges to a very few possibilities 
– Problem: 
Not clear whether reduction to graphs can be automated for all 
sentences in a natural language
Conceptual Graphs 
 John Sowa 
 Each graph represents a single proposition 
 Concept nodes can be: 
– Concrete (visualisable) such as restaurant, my dog spot 
– Abstract (not easily visualisable) such as anger 
 Edges do not have labels 
– Instead, we introduce conceptual relation nodes 
 Many other considerations in the formalism 
– See Russell and Norvig for details
Example Conceptual Graph 
 Advantage: 
– Single relationship between multiple concepts is 
easily representable
Production Rule Representations 
 Consists of <condition,action> pairs 
 Agent checks if a condition holds 
– If so, the production rule “fires” and the action is carried out 
– This is a recognize-act cycle 
 Given a new situation (state) 
– Multiple production rules will fire at once 
– Call this the conflict set 
– Agent must choose from this set 
 Call this conflict resolution 
 Production system is any agent 
– Which performs using recognize-act cycles
Example Production Rule 
 As reported in Doug Lenat’s PhD thesis 
102. After creating a new generalization G of Concept C 
– Consider looking for non-examples of G 
 This was paraphrased 
– In general, we have to be more concrete 
About exactly when to fire and what to do
Frame Representations 
 Information retrieval when facing a new situation 
– The information is stored in frames with slots 
– Some of the slots trigger actions, causing new situations 
 Frames are templates 
– Which are to be filled-in in a situation 
– Filling them in causes an agent to 
Undertake actions and retrieve other frames 
 Frames are extensions of record datatype in databases 
– Also very similar to objects in OOP
Flexibility in Frames 
 Slots in a frame can contain 
– Information for choosing a frame in a situation 
– Relationships between this and other frames 
– Procedures to carry out after various slots filled 
– Default information to use where input is missing 
– Blank slots - left blank unless required for a task 
– Other frames, which gives a hierarchy
Example Frame

More Related Content

What's hot

Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2DigiGurukul
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representationSravanthi Emani
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionThe Integral Worm
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)chauhankapil
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and LiftingMegha Sharma
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in aivikas dhakane
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniquesKirti Verma
 
Lecture 16 memory bounded search
Lecture 16 memory bounded searchLecture 16 memory bounded search
Lecture 16 memory bounded searchHema Kashyap
 

What's hot (20)

Ai notes
Ai notesAi notes
Ai notes
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Frames
FramesFrames
Frames
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representation
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
 
First order logic
First order logicFirst order logic
First order logic
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
Planning
PlanningPlanning
Planning
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
predicate logic example
predicate logic examplepredicate logic example
predicate logic example
 
State Space Search in ai
State Space Search in aiState Space Search in ai
State Space Search in ai
 
State space search and Problem Solving techniques
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniques
 
Lecture 16 memory bounded search
Lecture 16 memory bounded searchLecture 16 memory bounded search
Lecture 16 memory bounded search
 

Viewers also liked

Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceGagan Deep
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introductionVishal Singh
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement SpecificationVishal Singh
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systemsVishal Singh
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 

Viewers also liked (12)

Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software engineering introduction
Software engineering introductionSoftware engineering introduction
Software engineering introduction
 
Coding
CodingCoding
Coding
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement Specification
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systems
 
Memory management
Memory managementMemory management
Memory management
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Research report
Research reportResearch report
Research report
 
File management
File managementFile management
File management
 

Similar to Knowledge Representation in Artificial intelligence

Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representationchauhankapil
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4DigiGurukul
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingToine Bogers
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Languagelorilynw
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptOlusolaTop
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicschauhankapil
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxRuchitaMaaran
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Sabu Francis
 
$RGK1H9G.ppt
$RGK1H9G.ppt$RGK1H9G.ppt
$RGK1H9G.pptWepper1
 
intro.ppt
intro.pptintro.ppt
intro.pptth_oh
 
intro.ppt
intro.pptintro.ppt
intro.pptYipYop1
 

Similar to Knowledge Representation in Artificial intelligence (20)

Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representation
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4
 
Artificial intelligence course work
Artificial intelligence  course workArtificial intelligence  course work
Artificial intelligence course work
 
NLP
NLPNLP
NLP
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Oop concept
Oop conceptOop concept
Oop concept
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Language
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.ppt
 
Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logics
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
$RGK1H9G.ppt
$RGK1H9G.ppt$RGK1H9G.ppt
$RGK1H9G.ppt
 
ai.ppt
ai.pptai.ppt
ai.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 

More from Yasir Khan (20)

Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lec#1
Lec#1Lec#1
Lec#1
 
Ch10 (1)
Ch10 (1)Ch10 (1)
Ch10 (1)
 
Ch09
Ch09Ch09
Ch09
 
Ch05
Ch05Ch05
Ch05
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
Snooping 2
Snooping 2Snooping 2
Snooping 2
 
Introduction 1
Introduction 1Introduction 1
Introduction 1
 
Hpc sys
Hpc sysHpc sys
Hpc sys
 
Hpc 6 7
Hpc 6 7Hpc 6 7
Hpc 6 7
 
Hpc 4 5
Hpc 4 5Hpc 4 5
Hpc 4 5
 
Hpc 3
Hpc 3Hpc 3
Hpc 3
 
Hpc 2
Hpc 2Hpc 2
Hpc 2
 
Hpc 1
Hpc 1Hpc 1
Hpc 1
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Dir based imp_5
Dir based imp_5Dir based imp_5
Dir based imp_5
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 

Recently uploaded

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Recently uploaded (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

Knowledge Representation in Artificial intelligence

  • 1. Artificial Intelligence 4. Knowledge Representation Akhtar Hussain
  • 2. Representation Representation Representation  Think about knowledge, rather than data in AI  Facts  Procedures  Meaning – Cannot have intelligence without knowledge  Always been very important in AI  Choosing the wrong representation – Could lead to a project failing  Still a lot of work done on representation issues
  • 3. Representations for Problem solving techniques  For certain problem solving techniques – The “best” representation has already been worked out – Often it is an obvious requirement of the technique – Or a requirement of the programming language (e.g., Prolog)  Examples: – First order theorem proving (first order logic) – Inductive logic programming (logic programs) – Neural networks learning (neural networks)  But what if you have a new project? – What kind of general representations schemes are there?
  • 4. Four General Representation Types  Logical Representations  Semantic Networks  Production Rules  Frames
  • 5. 4.1 Logical Representations What is a Logic?  Lay down some concrete communication rules – In order to give information to agents, and get info  Without errors in communication (or at least, fewer)  Think of a logic as a language – Many ways to translate from one language to another  Expressiveness – How much of natural language (e.g., English)  We are able to translate into the logical language  Not to be confused with logical reasoning – “Sherlock Holmes used pure logic to solve that…” – This is a process, not a language
  • 6. Syntax and Semantics of Logics  Syntax – How we can construct legal sentences in the logic – Which symbols we can use (English: letters, punctuation) – How we are allowed to write down those symbols  Semantics – How we interpret (read) sentences in the logic – i.e., what the meaning of a sentence is  Example: “All lecturers are six foot tall” – Perfectly valid sentence (syntax) – And we can understand the meaning (semantics) – This sentence happens to be false (there is a counterexample)
  • 7. Propositional Logic  Syntax – Propositions such as P meaning “it is wet” – Connectives: and, or, not, implies, equivalent – Brackets, T (true) and F (false)  Semantics – How to work out the truth of a sentence  Need to know how connectives affect truth  E.g., “P and Q” is true if and only if P is true and Q is true  “P implies Q” is true if P and Q are true or if P is false – Can draw up truth tables to work out the truth of statements
  • 9. First Order Predicate Logic  More expressive logic than propositional – And one we will use a lot in this course  Later lecture all about first order predicate logic  Syntax allows – Constants, variables, predicates, functions and quantifiers  So, we say something is true for all objects (universal) – Or something is true for at least one object (existential)  Semantics – Working out the truth of statement  This can be done using rules of deduction
  • 10. Example Sentence  In English: – “Every Monday and Wednesday I go to John’s house for dinner”  In first order predicate logic: X ((day_of_week(X, monday) day_of_week(X, weds)) (go_to(me, house_of(john)  Note the change from “and” to “or” – Translating is problematic eat(me, dinner))).
  • 11. Higher Order Predicate Logic  More expressive than first order predicate logic  Allows quantification over functions and predicates, as well as objects  For example – We can say that all our polynomials have a zero at 17: f (f(17)=0). Working at the meta-level – Important to AI, but not often used
  • 12. Other Logics  Fuzzy logic – Use probabilities, rather than truth values  Multi-valued logics – Assertions other than true and false allowed E.g., “unknown”  Modal logics – Include beliefs about the world  Temporal logics – Incorporate considerations of time
  • 13. Why Logic is a Good Representation  Some of many reasons are: – It’s fairly easy to do the translation when possible – There are whole tracts of mathematics devoted to it – It enables us to do logical reasoning – Programming languages have grown out of logics Prolog uses logic programs (a subset of predicate logic)
  • 14. Semantic Networks  Logic is not the only fruit  Humans draw diagrams all the time, e.g., – E.g. causal relationships: – And relationships between ideas:
  • 15. Graphical Representations  Graphs are very easy to store inside a computer  For information to be of any use – We must impose a formalism on the graphs – Jason is 15, Bryan is 40, Arthur is 70, Jim is 74 – How old is Julia?
  • 16. Better Graphical Representation  Because the formalism is the same – We can guess that Julia’s age is similar to Bryan’s  Limited the syntax to impose formalism
  • 17. Semantic Network Formalisms  Used a lot for natural language understanding – Represent two sentences by graphs Sentences with same meaning have exactly same graphs  Conceptual Dependency Theory – Roger Schank’s brainchild – Concepts are nodes, relationships are edges – Narrow down labels for edges to a very few possibilities – Problem: Not clear whether reduction to graphs can be automated for all sentences in a natural language
  • 18. Conceptual Graphs  John Sowa  Each graph represents a single proposition  Concept nodes can be: – Concrete (visualisable) such as restaurant, my dog spot – Abstract (not easily visualisable) such as anger  Edges do not have labels – Instead, we introduce conceptual relation nodes  Many other considerations in the formalism – See Russell and Norvig for details
  • 19. Example Conceptual Graph  Advantage: – Single relationship between multiple concepts is easily representable
  • 20. Production Rule Representations  Consists of <condition,action> pairs  Agent checks if a condition holds – If so, the production rule “fires” and the action is carried out – This is a recognize-act cycle  Given a new situation (state) – Multiple production rules will fire at once – Call this the conflict set – Agent must choose from this set  Call this conflict resolution  Production system is any agent – Which performs using recognize-act cycles
  • 21. Example Production Rule  As reported in Doug Lenat’s PhD thesis 102. After creating a new generalization G of Concept C – Consider looking for non-examples of G  This was paraphrased – In general, we have to be more concrete About exactly when to fire and what to do
  • 22. Frame Representations  Information retrieval when facing a new situation – The information is stored in frames with slots – Some of the slots trigger actions, causing new situations  Frames are templates – Which are to be filled-in in a situation – Filling them in causes an agent to Undertake actions and retrieve other frames  Frames are extensions of record datatype in databases – Also very similar to objects in OOP
  • 23. Flexibility in Frames  Slots in a frame can contain – Information for choosing a frame in a situation – Relationships between this and other frames – Procedures to carry out after various slots filled – Default information to use where input is missing – Blank slots - left blank unless required for a task – Other frames, which gives a hierarchy

Editor's Notes

  1. We examine below four examples of meta-level knowledge, and review for each (/) the general idea; (//&amp;apos;) a specific instance, detailing the information it contains; (iii) an example of how that information is used to support knowledge base construction, maintenance, or use; and (/V) the other capabilities it makes possible. Figure 3 summarizes the type of information contained in each of the four examples. KNOWLEDGE ABOUT IS ENCODED IN *************** ************* representation of objects schemata representation of functions function templates inference rules rule models reasoning strategies meta-rules