SlideShare a Scribd company logo
1 of 55
Chapter 13
Artificial Intelligence
Chapter Goals
• Distinguish between the types of problems
that humans do best and those that
computers do best
• Explain the Turing test
• Define what is meant by knowledge
representation and demonstrate how
knowledge is represented in a semantic
network
2
Chapter Goals
• Develop a search tree for simple scenarios
• Explain the processing of an expert system
• Explain the processing of biological and
artificial neural networks
• List the various aspects of natural
language processing
• Explain the types of ambiguities in natural
language comprehension
3
Thinking Machines

Can you
list the items
in this
picture?
Courtesy of Amy Rose.

4
Thinking Machines
Can you count
the distribution
of letters in a
book?
Add a thousand
4-digit numbers?
Match finger
prints?
Search a list of
a million values
for duplicates?
Cover Image: © Gurgen Bakhshetsyan/ShutterStock, Inc.

5
Thinking Machines
Computers do best
Humans do best

Can you
list the items
in this
picture?

6

Can you count the
distribution of letters in
a book?
Add a thousand4-digit
numbers?
Match finger prints?
Search a list of a
million values
for duplicates?
Thinking Machines
Artificial intelligence (AI)
The study of computer systems that attempt
to model and apply the intelligence of the
human mind
For example, writing a program to pick out
objects in a picture

7
The Turing Test
Turing test
A test to empirically determine whether a computer
has achieved intelligence
Alan Turing
An English mathematician who wrote a landmark
paper in 1950 that asked the question: Can
machines think?
He proposed a test to answer the question "How
will we know when we’ve succeeded?"
8
The Turing Test
Figure 13.2
In a Turing test, the
interrogator must
determine which
respondent is the
computer and which is
the human

9
The Turing Test
Weak equivalence
Two systems (human and computer) are
equivalent in results (output), but they do not
arrive at those results in the same way
Strong equivalence
Two systems (human and computer) use
the same internal processes to produce
results
10
The Turing Test
Loebner prize
The first formal instantiation
of the Turing test, held
annually
Chatbots
A program designed to carry on a
conversation with a human user
11

Has it been
won yet?
Knowledge Representation
How can we represent knowledge?
•We need to create a logical view of the data,
based on how we want to process it
•Natural language is very descriptive, but does
not lend itself to efficient processing
•Semantic networks and search trees are
promising techniques for representing knowledge

12
Semantic Networks
Semantic network
A knowledge representation technique that
focuses on the relationships between objects
A directed graph is used to represent a semantic
network or net
Remember directed
graphs?

13
Semantic Networks

14
Semantic Networks
What questions can you ask about the data
in Figure 13.3 (previous slide)?

What questions can you not ask?

15
Semantic Networks
Network Design
– The objects in the network represent the
objects in the real world that we are
representing
– The relationships that we represent are
based on the real world questions that we
would like to ask
– That is, the types of relationships represented
determine which questions are easily
answered, which are more difficult to answer,
and which cannot be answered
16
Search Trees
Search tree
A structure that represents alternatives in
adversarial situations such as game playing
The paths down a search tree represent a
series of decisions made by the players
Remember trees?
17
Search Trees

Figure 13.4 A search tree for a simplified version of Nim

18
Search Trees
Search tree analysis can be applied to other, more
complicated games such as chess
However, full analysis of the chess search tree
would take more than your lifetime to determine
the first move
Because these trees are so large, only a fraction of
the tree can be analyzed in a reasonable time limit,
even with modern computing power
Therefore, we must find a way to prune the tree
19
Search Trees
Techniques for pruning search space
Depth-first
A technique that involves searching down the
paths of a tree prior to searching across levels
Breadth-first
A technique that involves searching across levels
of a tree prior to searching down specific paths
Breadth-first tends to yield the best results
20
Search Trees

Figure 13.5 Depth-first and breadth-first searches
21
Expert Systems
Knowledge-based system
Software that uses a specific set of information, from which
it extracts and processes particular pieces
Expert system
A software system based on the knowledge of human
experts; it is a
– Rule-based system A software system based on a set of ifthen rules
– Inference engine The software that processes rules to draw
conclusions
22
Expert Systems
Named abbreviations that represent
conclusions
– NONE—apply no treatment at this time
– TURF—apply a turf-building treatment
– WEED—apply a weed-killing treatment
– BUG—apply a bug-killing treatment
– FEED—apply a basic fertilizer treatment
– WEEDFEED—apply a weed-killing and
fertilizer combination treatment
23
Expert Systems
Boolean variables needed to represent state
of the lawn
– BARE—the lawn has large, bare areas
– SPARSE—the lawn is generally thin
– WEEDS—the lawn contains many weeds
– BUGS—the lawn shows evidence of bugs

24
Expert Systems
Data that is available
– LAST—the date of the last lawn treatment
– CURRENT—current date
– SEASON—the current season
Now we can formulate some rules for our
gardening expert system.
Rules take the form of if-then statements
25
Expert Systems
Some rules
– if (CURRENT – LAST < 30) then NONE
– if (SEASON = winter) then not BUGS
– if (BARE) then TURF
– if (SPARSE and not WEEDS) then FEED
– if (BUGS and not SPARSE) then BUG
– if (WEEDS and not SPARSE) then WEED
– if (WEEDS and SPARSE) then WEEDFEED
26
Expert Systems
An execution of our inference engine
–
–
–
–
–
–
–
–
–
27

System:
User:
System:
User:
System:
User:
System:
User:
System:

Does the lawn have large, bare areas?
No
Does the lawn show evidence of bugs?
No
Is the lawn generally thin?
Yes
Does the lawn contain significant weeds?
Yes
You should apply a weed-killing and
fertilizer combination treatment.
Artificial Neural Network
Artificial neural networks
A computer representation of knowledge
that attempts to mimic the neural networks
of the human body
Yes, but what is a human neural network?

28
Neural Network

Figure 13.6 A biological neuron
29
Neural Network
Neuron
A single cell that conducts a chemically-based
electronic signal
At any point in time a neuron is in either an
excited state or an inhibited state
Excited state
Neuron conducts a strong signal
Inhibited state
Neuron conducts a weak signal
30
Neural Network
Pathway
A series of connected neurons
Dendrites
Input tentacles
Axon
Primary output tentacle
Synapse
Space between axon and a dendrite
31
Neural Network

Chemical composition of a synapse tempers
the strength of its input signal
A neuron accepts many input signals, each
weighted by corresponding synapse
32
Neural Network
The pathways along the neural nets are in a
constant state of flux
As we learn new things, new strong neural
pathways in our brain are formed

33
Artificial Neural Networks
Each processing element in an artificial
neural net is analogous to a biological
neuron
– An element accepts a certain number of input
values (dendrites) and produces a single
output value (axon) of either 0 or 1
– Associated with each input value is a numeric
weight (synapse)

34
Artificial Neural Networks
– The effective weight of the element is the
sum of the weights multiplied by their
respective input values
v1 * w1 + v2 * w2 + v3 * w3

– Each element has a numeric threshold value
– If the effective weight exceeds the threshold,
the unit produces an output value of 1
– If it does not exceed the threshold, it produces
an output value of 0
35
Artificial Neural Networks
Training
The process of adjusting the weights and threshold
values in a neural net
How does this all work?
Train a neural net to recognize a cat in a picture
Given one output value per pixel, train network to
produce an output value of 1 for every pixel that
contributes to the cat and 0 for every one that
doesn't
36
Natural Language Processing
Three basic types of processing occur during human/
computer voice interaction
Voice synthesis
Using a computer to recreate the sound of human speech
Voice recognition
Using a computer to recognize the words spoken by a
human
Natural language comprehension
Using a computer to apply a meaningful interpretation to
human communication
37
Voice Synthesis
One Approach to Voice Synthesis
Dynamic voice generation
A computer examines the letters that make up a
word and produces the sequence of sounds that
correspond to those letters in an attempt to
vocalize the word
Phonemes
The sound units into which human speech has
been categorized
38
Voice Synthesis

Figure 13.7 Phonemes for American English
39
Voice Synthesis
Another Approach to Voice Synthesis
Recorded speech
A large collection of words is recorded digitally and
individual words are selected to make up a
message
Many words must be recorded more than once to
reflect different pronunciations and inflections
Common for phone message:
For Nell Dale, press 1
For John Lewis, press 2
40
Voice Recognition
Problems with understanding speech
– Each person's sounds are unique
– Each person's shape of mouth, tongue,
throat, and nasal cavities that affect the pitch
and resonance of our spoken voice are
unique
– Speech impediments, mumbling, volume,
regional accents, and the health of the
speaker are further complications
41
Voice Recognition
Other problems
– Humans speak in a continuous, flowing manner,
stringing words together
– Sound-alike phrases like “ice cream” and “I scream”
– Homonyms such as “I” & “eye” or “see” & “sea”

Humans clarify these situations by context, but that
requires another level of comprehension
Voice-recognition systems still have trouble with
continuous speech
42
Voice Recognition
Voiceprint
The plot of frequency changes over time
representing the sound of human speech
A human trains a voice-recognition system
by speaking a word several times so the
computer gets an average voiceprint for a
word
Used to authenticate the declared
sender of a voice message

43
Natural Language Comprehension
Natural language is ambiguous!
Lexical ambiguity
The ambiguity created when words have multiple meanings
Syntactic ambiguity
The ambiguity created when sentences can be constructed
in various ways
Referential ambiguity
The ambiguity created when pronouns could be applied to
multiple objects
44
Natural Language Comprehension
What does this sentence mean?
Time flies like an arrow.
– Time goes by quickly
– Time flies (using a stop watch) as you would
time an arrow
– Time flies (a kind of fly) are fond of an arrow
Silly?
Yes, but a computer
wouldn't know that
45
Natural Language Comprehension
Lexical ambiguity
Stand up for your country.
Take the street on the left.

Syntactic ambiguity

Can you think
of
some others?

I saw the bird watching from the corner.
I ate the sandwich sitting on the table.

Referential ambiguity
The bicycle hit the curb, but it was not damaged.
John was mad at Bill, but he didn't care.
46
Robotics
Mobile robotics
The study of robots that move relative to their environment,
while exhibiting a degree of autonomy
Sense-plan-act (SPA) paradigm
The world of the robot is represented in a complex
semantic net in which the sensors on the robot are used to
capture the data to build up the net

Figure 13.8 The sense-plan-act (SPA) paradigm
47
Subsumption Architecture
Rather than trying to model the entire world all the time, the
robot is given a simple set of behaviors each associated
with the part of the world necessary for that behavior

Figure 13.9
The new control
paradigm
48
Subsumption Architecture

Figure 13.10 Asimov’s laws of robotics are ordered.

49
Robots

Sony's Aibo

© Chris Willson/Alamy

50
Robots

Sojourner
Rover
Courtesy of NASA/JPL-Caltech.

51
Robots

Spirit or
Opportunity Rover

Courtesy of NASA/JPL-Caltech.

52
Ethical Issues
Politics and the Internet: Public’s View
Have you ever used the Internet to get
information on a political candidate?
How can the Internet increase political
extremism?
How can you differentiate good political
information from bad?
53
Who am I?
I'm another of
those who
looks like I
don't belong
in a CS book.
For what did
I win a Nobel
Prize? In
what other
fields did I do
research?
Courtesy of Carnegie Mellon University

54
Do you know?
What language is known as the AI
language?
How is the PKC expert system different from
most other medical expert systems?
Did natural language translation prove to be
as easy as early experts predicted?
What is the name of the program that acts
as a neutral psychotherapist?
55

More Related Content

What's hot

Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learningamalalhait
 
Chap19
Chap19Chap19
Chap19himo
 
Turing Test in Artificial Intelligence.pptx
Turing Test in Artificial Intelligence.pptxTuring Test in Artificial Intelligence.pptx
Turing Test in Artificial Intelligence.pptxRSAISHANKAR
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in aiRobert Antony
 
Image classification using cnn
Image classification using cnnImage classification using cnn
Image classification using cnnSumeraHangi
 
Machine learning - AI
Machine learning - AIMachine learning - AI
Machine learning - AIWitekio
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computingSakshiMahto1
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learningHaris Jamil
 
Data mining
Data miningData mining
Data miningR A Akerkar
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsKM Bappi
 
ppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxAnweshaGarima
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3SURBHI SAROHA
 
First order logic
First order logicFirst order logic
First order logicRushdi Shams
 
Semantic nets in artificial intelligence
Semantic nets in artificial intelligenceSemantic nets in artificial intelligence
Semantic nets in artificial intelligenceharshita virwani
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningEng Teong Cheah
 

What's hot (20)

Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learning
 
Bayes network
Bayes networkBayes network
Bayes network
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Chap19
Chap19Chap19
Chap19
 
Turing Test in Artificial Intelligence.pptx
Turing Test in Artificial Intelligence.pptxTuring Test in Artificial Intelligence.pptx
Turing Test in Artificial Intelligence.pptx
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in ai
 
Image classification using cnn
Image classification using cnnImage classification using cnn
Image classification using cnn
 
Machine learning - AI
Machine learning - AIMachine learning - AI
Machine learning - AI
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
 
Data mining
Data miningData mining
Data mining
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized Algorithms
 
ppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptxppt on machine learning to deep learning (1).pptx
ppt on machine learning to deep learning (1).pptx
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3
 
Intelligent systems
Intelligent systems Intelligent systems
Intelligent systems
 
First order logic
First order logicFirst order logic
First order logic
 
Semantic nets in artificial intelligence
Semantic nets in artificial intelligenceSemantic nets in artificial intelligence
Semantic nets in artificial intelligence
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 

Similar to Artificial Intelligence

Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.pptNaveen396858
 
Chapter.ppt
Chapter.pptChapter.ppt
Chapter.pptRamyaD76
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.pptNaveen396858
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.pptssuser2ef991
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.pptAhmed138536
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceNitesh Kumar
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceRohan Vadsola
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligencefunpathshala
 
MIS 07 Expert Systems
MIS 07  Expert SystemsMIS 07  Expert Systems
MIS 07 Expert SystemsTushar B Kute
 
Ch 1 Introduction to AI.pdf
Ch 1 Introduction to AI.pdfCh 1 Introduction to AI.pdf
Ch 1 Introduction to AI.pdfKrishnaMadala1
 
Artificial_Intelligence
Artificial_IntelligenceArtificial_Intelligence
Artificial_IntelligenceMallick Sharique
 
Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Taymoor Nazmy
 
AI and Expert Systems
AI and Expert SystemsAI and Expert Systems
AI and Expert SystemsAkhil Kaushik
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceaparichit Aryal
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligenceiarthur
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Amr Rashed
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning TutorialAmr Rashed
 
Ai introduction
Ai introductionAi introduction
Ai introductionBabar Siraj
 

Similar to Artificial Intelligence (20)

Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.ppt
 
Chapter.ppt
Chapter.pptChapter.ppt
Chapter.ppt
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.ppt
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.ppt
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.ppt
 
Chapter13.ppt
Chapter13.pptChapter13.ppt
Chapter13.ppt
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
MIS 07 Expert Systems
MIS 07  Expert SystemsMIS 07  Expert Systems
MIS 07 Expert Systems
 
Ch 1 Introduction to AI.pdf
Ch 1 Introduction to AI.pdfCh 1 Introduction to AI.pdf
Ch 1 Introduction to AI.pdf
 
Artificial_Intelligence
Artificial_IntelligenceArtificial_Intelligence
Artificial_Intelligence
 
Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-
 
Beekman5 std ppt_14
Beekman5 std ppt_14Beekman5 std ppt_14
Beekman5 std ppt_14
 
AI and Expert Systems
AI and Expert SystemsAI and Expert Systems
AI and Expert Systems
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Ai introduction
Ai introductionAi introduction
Ai introduction
 

More from Institute of Technology Telkom

Matematika arah kiblat mikrajuddin abdullah 2017
Matematika arah kiblat   mikrajuddin abdullah 2017Matematika arah kiblat   mikrajuddin abdullah 2017
Matematika arah kiblat mikrajuddin abdullah 2017Institute of Technology Telkom
 

More from Institute of Technology Telkom (20)

Econopysics
EconopysicsEconopysics
Econopysics
 
Science and religion 100622120615-phpapp01
Science and religion 100622120615-phpapp01Science and religion 100622120615-phpapp01
Science and religion 100622120615-phpapp01
 
Konvergensi sains dan_spiritualitas
Konvergensi sains dan_spiritualitasKonvergensi sains dan_spiritualitas
Konvergensi sains dan_spiritualitas
 
Matematika arah kiblat mikrajuddin abdullah 2017
Matematika arah kiblat   mikrajuddin abdullah 2017Matematika arah kiblat   mikrajuddin abdullah 2017
Matematika arah kiblat mikrajuddin abdullah 2017
 
Iau solar effects 2005
Iau solar effects 2005Iau solar effects 2005
Iau solar effects 2005
 
Hfmsilri2jun14
Hfmsilri2jun14Hfmsilri2jun14
Hfmsilri2jun14
 
Fisika komputasi
Fisika komputasiFisika komputasi
Fisika komputasi
 
Computer Aided Process Planning
Computer Aided Process PlanningComputer Aided Process Planning
Computer Aided Process Planning
 
Archimedes
ArchimedesArchimedes
Archimedes
 
Web and text
Web and textWeb and text
Web and text
 
Web data mining
Web data miningWeb data mining
Web data mining
 
Time series Forecasting using svm
Time series Forecasting using  svmTime series Forecasting using  svm
Time series Forecasting using svm
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
World population 1950--2050
World population 1950--2050World population 1950--2050
World population 1950--2050
 
neural networks
 neural networks neural networks
neural networks
 
Artificial neural networks
Artificial neural networks Artificial neural networks
Artificial neural networks
 
002 ray modeling dynamic systems
002 ray modeling dynamic systems002 ray modeling dynamic systems
002 ray modeling dynamic systems
 
002 ray modeling dynamic systems
002 ray modeling dynamic systems002 ray modeling dynamic systems
002 ray modeling dynamic systems
 
System dynamics majors fair
System dynamics majors fairSystem dynamics majors fair
System dynamics majors fair
 

Recently uploaded

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 

Recently uploaded (20)

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 

Artificial Intelligence

  • 2. Chapter Goals • Distinguish between the types of problems that humans do best and those that computers do best • Explain the Turing test • Define what is meant by knowledge representation and demonstrate how knowledge is represented in a semantic network 2
  • 3. Chapter Goals • Develop a search tree for simple scenarios • Explain the processing of an expert system • Explain the processing of biological and artificial neural networks • List the various aspects of natural language processing • Explain the types of ambiguities in natural language comprehension 3
  • 4. Thinking Machines Can you list the items in this picture? Courtesy of Amy Rose. 4
  • 5. Thinking Machines Can you count the distribution of letters in a book? Add a thousand 4-digit numbers? Match finger prints? Search a list of a million values for duplicates? Cover Image: © Gurgen Bakhshetsyan/ShutterStock, Inc. 5
  • 6. Thinking Machines Computers do best Humans do best Can you list the items in this picture? 6 Can you count the distribution of letters in a book? Add a thousand4-digit numbers? Match finger prints? Search a list of a million values for duplicates?
  • 7. Thinking Machines Artificial intelligence (AI) The study of computer systems that attempt to model and apply the intelligence of the human mind For example, writing a program to pick out objects in a picture 7
  • 8. The Turing Test Turing test A test to empirically determine whether a computer has achieved intelligence Alan Turing An English mathematician who wrote a landmark paper in 1950 that asked the question: Can machines think? He proposed a test to answer the question "How will we know when we’ve succeeded?" 8
  • 9. The Turing Test Figure 13.2 In a Turing test, the interrogator must determine which respondent is the computer and which is the human 9
  • 10. The Turing Test Weak equivalence Two systems (human and computer) are equivalent in results (output), but they do not arrive at those results in the same way Strong equivalence Two systems (human and computer) use the same internal processes to produce results 10
  • 11. The Turing Test Loebner prize The first formal instantiation of the Turing test, held annually Chatbots A program designed to carry on a conversation with a human user 11 Has it been won yet?
  • 12. Knowledge Representation How can we represent knowledge? •We need to create a logical view of the data, based on how we want to process it •Natural language is very descriptive, but does not lend itself to efficient processing •Semantic networks and search trees are promising techniques for representing knowledge 12
  • 13. Semantic Networks Semantic network A knowledge representation technique that focuses on the relationships between objects A directed graph is used to represent a semantic network or net Remember directed graphs? 13
  • 15. Semantic Networks What questions can you ask about the data in Figure 13.3 (previous slide)? What questions can you not ask? 15
  • 16. Semantic Networks Network Design – The objects in the network represent the objects in the real world that we are representing – The relationships that we represent are based on the real world questions that we would like to ask – That is, the types of relationships represented determine which questions are easily answered, which are more difficult to answer, and which cannot be answered 16
  • 17. Search Trees Search tree A structure that represents alternatives in adversarial situations such as game playing The paths down a search tree represent a series of decisions made by the players Remember trees? 17
  • 18. Search Trees Figure 13.4 A search tree for a simplified version of Nim 18
  • 19. Search Trees Search tree analysis can be applied to other, more complicated games such as chess However, full analysis of the chess search tree would take more than your lifetime to determine the first move Because these trees are so large, only a fraction of the tree can be analyzed in a reasonable time limit, even with modern computing power Therefore, we must find a way to prune the tree 19
  • 20. Search Trees Techniques for pruning search space Depth-first A technique that involves searching down the paths of a tree prior to searching across levels Breadth-first A technique that involves searching across levels of a tree prior to searching down specific paths Breadth-first tends to yield the best results 20
  • 21. Search Trees Figure 13.5 Depth-first and breadth-first searches 21
  • 22. Expert Systems Knowledge-based system Software that uses a specific set of information, from which it extracts and processes particular pieces Expert system A software system based on the knowledge of human experts; it is a – Rule-based system A software system based on a set of ifthen rules – Inference engine The software that processes rules to draw conclusions 22
  • 23. Expert Systems Named abbreviations that represent conclusions – NONE—apply no treatment at this time – TURF—apply a turf-building treatment – WEED—apply a weed-killing treatment – BUG—apply a bug-killing treatment – FEED—apply a basic fertilizer treatment – WEEDFEED—apply a weed-killing and fertilizer combination treatment 23
  • 24. Expert Systems Boolean variables needed to represent state of the lawn – BARE—the lawn has large, bare areas – SPARSE—the lawn is generally thin – WEEDS—the lawn contains many weeds – BUGS—the lawn shows evidence of bugs 24
  • 25. Expert Systems Data that is available – LAST—the date of the last lawn treatment – CURRENT—current date – SEASON—the current season Now we can formulate some rules for our gardening expert system. Rules take the form of if-then statements 25
  • 26. Expert Systems Some rules – if (CURRENT – LAST < 30) then NONE – if (SEASON = winter) then not BUGS – if (BARE) then TURF – if (SPARSE and not WEEDS) then FEED – if (BUGS and not SPARSE) then BUG – if (WEEDS and not SPARSE) then WEED – if (WEEDS and SPARSE) then WEEDFEED 26
  • 27. Expert Systems An execution of our inference engine – – – – – – – – – 27 System: User: System: User: System: User: System: User: System: Does the lawn have large, bare areas? No Does the lawn show evidence of bugs? No Is the lawn generally thin? Yes Does the lawn contain significant weeds? Yes You should apply a weed-killing and fertilizer combination treatment.
  • 28. Artificial Neural Network Artificial neural networks A computer representation of knowledge that attempts to mimic the neural networks of the human body Yes, but what is a human neural network? 28
  • 29. Neural Network Figure 13.6 A biological neuron 29
  • 30. Neural Network Neuron A single cell that conducts a chemically-based electronic signal At any point in time a neuron is in either an excited state or an inhibited state Excited state Neuron conducts a strong signal Inhibited state Neuron conducts a weak signal 30
  • 31. Neural Network Pathway A series of connected neurons Dendrites Input tentacles Axon Primary output tentacle Synapse Space between axon and a dendrite 31
  • 32. Neural Network Chemical composition of a synapse tempers the strength of its input signal A neuron accepts many input signals, each weighted by corresponding synapse 32
  • 33. Neural Network The pathways along the neural nets are in a constant state of flux As we learn new things, new strong neural pathways in our brain are formed 33
  • 34. Artificial Neural Networks Each processing element in an artificial neural net is analogous to a biological neuron – An element accepts a certain number of input values (dendrites) and produces a single output value (axon) of either 0 or 1 – Associated with each input value is a numeric weight (synapse) 34
  • 35. Artificial Neural Networks – The effective weight of the element is the sum of the weights multiplied by their respective input values v1 * w1 + v2 * w2 + v3 * w3 – Each element has a numeric threshold value – If the effective weight exceeds the threshold, the unit produces an output value of 1 – If it does not exceed the threshold, it produces an output value of 0 35
  • 36. Artificial Neural Networks Training The process of adjusting the weights and threshold values in a neural net How does this all work? Train a neural net to recognize a cat in a picture Given one output value per pixel, train network to produce an output value of 1 for every pixel that contributes to the cat and 0 for every one that doesn't 36
  • 37. Natural Language Processing Three basic types of processing occur during human/ computer voice interaction Voice synthesis Using a computer to recreate the sound of human speech Voice recognition Using a computer to recognize the words spoken by a human Natural language comprehension Using a computer to apply a meaningful interpretation to human communication 37
  • 38. Voice Synthesis One Approach to Voice Synthesis Dynamic voice generation A computer examines the letters that make up a word and produces the sequence of sounds that correspond to those letters in an attempt to vocalize the word Phonemes The sound units into which human speech has been categorized 38
  • 39. Voice Synthesis Figure 13.7 Phonemes for American English 39
  • 40. Voice Synthesis Another Approach to Voice Synthesis Recorded speech A large collection of words is recorded digitally and individual words are selected to make up a message Many words must be recorded more than once to reflect different pronunciations and inflections Common for phone message: For Nell Dale, press 1 For John Lewis, press 2 40
  • 41. Voice Recognition Problems with understanding speech – Each person's sounds are unique – Each person's shape of mouth, tongue, throat, and nasal cavities that affect the pitch and resonance of our spoken voice are unique – Speech impediments, mumbling, volume, regional accents, and the health of the speaker are further complications 41
  • 42. Voice Recognition Other problems – Humans speak in a continuous, flowing manner, stringing words together – Sound-alike phrases like “ice cream” and “I scream” – Homonyms such as “I” & “eye” or “see” & “sea” Humans clarify these situations by context, but that requires another level of comprehension Voice-recognition systems still have trouble with continuous speech 42
  • 43. Voice Recognition Voiceprint The plot of frequency changes over time representing the sound of human speech A human trains a voice-recognition system by speaking a word several times so the computer gets an average voiceprint for a word Used to authenticate the declared sender of a voice message 43
  • 44. Natural Language Comprehension Natural language is ambiguous! Lexical ambiguity The ambiguity created when words have multiple meanings Syntactic ambiguity The ambiguity created when sentences can be constructed in various ways Referential ambiguity The ambiguity created when pronouns could be applied to multiple objects 44
  • 45. Natural Language Comprehension What does this sentence mean? Time flies like an arrow. – Time goes by quickly – Time flies (using a stop watch) as you would time an arrow – Time flies (a kind of fly) are fond of an arrow Silly? Yes, but a computer wouldn't know that 45
  • 46. Natural Language Comprehension Lexical ambiguity Stand up for your country. Take the street on the left. Syntactic ambiguity Can you think of some others? I saw the bird watching from the corner. I ate the sandwich sitting on the table. Referential ambiguity The bicycle hit the curb, but it was not damaged. John was mad at Bill, but he didn't care. 46
  • 47. Robotics Mobile robotics The study of robots that move relative to their environment, while exhibiting a degree of autonomy Sense-plan-act (SPA) paradigm The world of the robot is represented in a complex semantic net in which the sensors on the robot are used to capture the data to build up the net Figure 13.8 The sense-plan-act (SPA) paradigm 47
  • 48. Subsumption Architecture Rather than trying to model the entire world all the time, the robot is given a simple set of behaviors each associated with the part of the world necessary for that behavior Figure 13.9 The new control paradigm 48
  • 49. Subsumption Architecture Figure 13.10 Asimov’s laws of robotics are ordered. 49
  • 50. Robots Sony's Aibo © Chris Willson/Alamy 50
  • 53. Ethical Issues Politics and the Internet: Public’s View Have you ever used the Internet to get information on a political candidate? How can the Internet increase political extremism? How can you differentiate good political information from bad? 53
  • 54. Who am I? I'm another of those who looks like I don't belong in a CS book. For what did I win a Nobel Prize? In what other fields did I do research? Courtesy of Carnegie Mellon University 54
  • 55. Do you know? What language is known as the AI language? How is the PKC expert system different from most other medical expert systems? Did natural language translation prove to be as easy as early experts predicted? What is the name of the program that acts as a neutral psychotherapist? 55

Editor's Notes

  1. replace with new figure