Introduction To AI and Intelligent Agents
Introduction To AI and Intelligent Agents
&
Intelligent Agents
Artificial Intelligence in Movies
AI in Computer Games
https://www.analyticsindiamag.com/top-5-video-games-that-have-made-the-best-use-of-ai/
What is Intelligence?
• Intelligence:
– “the capacity to learn and solve problems” (Websters dictionary)
– in particular,
• the ability to solve novel problems
• the ability to act rationally
• the ability to act like humans
• Artificial Intelligence
– build and understand intelligent entities or agents
– 2 main approaches: “engineering” versus “cognitive modeling”
What’s involved in Intelligence?
• Conclusion
– YES: in the near future we can have computers with as many basic
processing elements as our brain, but with
• far fewer interconnections (wires or synapses) than the brain
• much faster updates than the brain
– but building hardware is very different from making a computer
behave like a brain!
AIs beat humans
at their own game
3000
Deep Blue
2800 Human World Champion
2600
Points Ratings
• Conclusion:
– YES: today’s computers can beat even the best human
Can Computers Talk?
• This is known as “speech synthesis”
– translate text to phonetic form
• e.g., “fictitious” -> fik-tish-es
– use pronunciation rules to map phonemes to actual sound
• e.g., “tish” -> sequence of basic audio sounds
• Difficulties
– sounds made by this “lookup” approach sound unnatural
– sounds are not independent
• e.g., “act” and “action”
• modern systems (e.g., at AT&T) can handle this pretty well
– a harder problem is emphasis, emotion, etc
• humans understand what they are saying
• machines don’t: so they sound unnatural
• Conclusion:
– YES, for individual words
Can Computers Recognize Speech?
• Speech Recognition:
– mapping sounds from a microphone into a list of words
– classic problem in AI, very difficult
• “Lets talk about how to wreck a nice beach”
• Conclusion:
– NO, normal speech is too complex to accurately recognize
– YES, for restricted problems (small vocabulary, single speaker)
Can Computers Understand speech?
• Conclusion:
– mostly NO: computers can only “see” certain types of objects under
limited circumstances
– YES for certain constrained problems (e.g., face recognition)
Can computers plan and make optimal decisions?
• Intelligence
– involves solving problems and making decisions and plans
– e.g., you want to take a holiday in Brazil
• you need to decide on dates, flights
• you need to get to the airport, etc
• involves a sequence of decisions, plans, and actions
• Speech Recognition
• Machine Translation
• Chatbots
https://www.edureka.co/blog/artificial-intelligence-tutorial/
Summary of State of AI Systems in Practice
• Speech synthesis, recognition and understanding
– very useful for limited vocabulary applications
– unconstrained speech understanding is still too hard
• Computer vision
– works for constrained problems (hand-written zip-codes)
– understanding real-world, natural scenes is still too hard
• Learning
– adaptive systems are used in many applications: have their limits
• Overall:
– many components of intelligent systems are “doable”
– there are many interesting research problems remaining
Intelligent Systems in Your Everyday Life
• Post Office
– automatic address recognition and sorting of mail
• Banks
– automatic check readers, signature verification systems
– automated loan application classification
• Customer Service
– automatic voice recognition
• The Web
– Identifying your age, gender, location, from your Web surfing
– Automated fraud detection
• Digital Cameras
– Automated face detection and focusing
• Computer Games
– Intelligent characters/agents
Hard or Strong AI
• Requires:
– Natural language
– Knowledge representation
– Automated reasoning
– Machine learning
– (vision, robotics) for full test
Acting humanly: Turing test
◊ The interrogator can communicate with the other 2 by teletype (to avoid
the machine imitate the appearance or voice of the person).
◊ The interrogator tries to determine which is the person and which is the
machine.
◊ The machine tries to fool the interrogator to believe that it is the human,
and the person also tries to convince the interrogator that it is the
human.
◊ If the machine succeeds in fooling the interrogator, then conclude that the
machine is intelligent.
back
gammon
taxi partial stochastic sequential dynamic continuous multi
driving
medical partial stochastic sequential dynamic continuous single
diagnosis
image fully determ. episodic semi continuous single
analysis
partpicking partial stochastic episodic dynamic continuous single
robot
refinery partial stochastic sequential dynamic continuous single
controller
interact. partial stochastic sequential dynamic discrete multi
Eng. tutor
task observable determ./ episodic/ static/ discrete/ agents
environm. stochastic sequential dynamic continuous
crossword fully determ. sequential static discrete single
puzzle
chess with fully strategic sequential semi discrete multi
clock
poker partial stochastic sequential static discrete multi
back
gammon
taxi partial stochastic sequential dynamic continuous multi
driving
medical partial stochastic sequential dynamic continuous single
diagnosis
image fully determ. episodic semi continuous single
analysis
partpicking partial stochastic episodic dynamic continuous single
robot
refinery partial stochastic sequential dynamic continuous single
controller
interact. partial stochastic sequential dynamic discrete multi
Eng. tutor
task observable determ./ episodic/ static/ discrete/ agents
environm. stochastic sequential dynamic continuous
crossword fully determ. sequential static discrete single
puzzle
chess with fully strategic sequential semi discrete multi
clock
poker partial stochastic sequential static discrete multi
Episodic??
Static??
Discrete??
Single-agent??
Environment types
Static vs. dynamic: If the environment can change while the agent is choosing
an action, the environment is dynamic. Semi-dynamic if the agent’s performance
changes even when the environment remains the same.
Static vs. dynamic: If the environment can change while the agent is choosing
an action, the environment is dynamic. Semi-dynamic if the agent’s performance
changes even when the environment remains the same.
Discrete vs. continuous: This distinction can be applied to the state of the
environment, the way time is handled and to the percepts/actions of the agent.
Discrete vs. continuous: This distinction can be applied to the state of the
environment, the way time is handled and to the percepts/actions of the agent.
Single vs. multi-agent: Does the environment contain other agents who
are also maximizing some performance measure that depends on the
current agent’s actions?
Single vs. multi-agent: Does the environment contain other agents who
are also maximizing some performance measure that depends on the
current agent’s actions?
• Goal-based agents
• Utility-based agents
• Learning agents
Table Driven Agent.
current state of decision process
table lookup
for entire history
Table Driven Agent.
Drawbacks:
• Huge table
• Take a long time to build the table
• No autonomy
• Even with learning, need a long time to learn the table
entries
Simple reflex agents
NO MEMORY
Fails if environment
is partially observable
Example 1:
Example 2:
if car-in-front-is-braking then initiate-braking
Simple reflex agents
Model-based reflex agents
description of Model the state of the world by:
current world state modeling how the world changes
how it’s actions change the world
Example:
• “how the world evolves independently of the agent”
– an overtaking car generally will be closer behind than it was a
moment ago
• “how the agent’s own actions affect the world”
– when the agent turns the steering clockwise, the car turns to
the right.
– After driving for five minutes northbound on the freeway, one
is usually about five miles north of where one was five
minutes ago.
Evaluates
current
world
state
changes
action
rules “old agent”=
model world
and decide on
actions
suggests to be taken
explorations
Learning agents
• Learning element – responsible for making
improvements
• Performance element – responsible for selecting
external actions (it is what we had defined as the
entire agent before)
• Learning element uses feedback from the critic on
how the agent is doing and determines how the
performance element should be modified to do better
in the future
• Problem generator is responsible for suggesting
actions that will lead to a new and informative
experiences