AI Introduction Agent
AI Introduction Agent
Introduction (unit-1)
1
Introduction
• What is AI?
• The foundations of AI
• A brief history of AI
• Types of AI
• The state of the art
2
What is Intelligence?
Intelligence:
› “the capacity to learn and solve
problems” (Webster's 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”
3
What’s involved in Intelligence?
Ability to interact with the real world
› to perceive, understand, and act
› e.g., speech recognition and understanding and
synthesis
› e.g., image understanding
› e.g., ability to take actions, have an effect
Reasoning and Planning
› modeling the external world, given input
› solving new problems, planning, and making decisions
› ability to deal with unexpected problems,
uncertainties
Learning and Adaptation
› we are continuously learning and adapting
› our internal models are always being “updated” 5
e.g., a baby learning to categorize and recognize animals
Definition of AI in different text books
The automation of activities that we associate with human thinking,
activities such as decision-making, problem solving, learning ...' (Bellman,
1978)
Karel Čapek play named “Rossum's Universal Robots” (RUR) opens in London,
1923
first use of the word "robot" in English.
1945 Isaac Asimov, a Columbia University alumni, coined the term Robotics.
Alan Turing introduced Turing Test for evaluation of intelligence and
1950 published Computing Machinery and Intelligence. Claude Shannon
published Detailed Analysis of Chess Playing as a search.
John McCarthy coined the term Artificial Intelligence. Demonstration of the first
1956
running AI program at Carnegie Mellon University.
7
History of AI
Joseph Weizenbaum at MIT built ELIZA, an interactive problem that carries
1965
on a dialogue in English.
Scientists at Stanford Research Institute Developed Shakey, a robot,
1969 equipped with locomotion, perception, and problem solving.
The Deep Blue Chess Program beats the then world chess champion,
1997 Garry Kasparov.
• During the 1991 Gulf War, US forces deployed an AI logistics planning and
scheduling program that involved up to 50,000 vehicles, cargo, and people
• 2010:IBM Watson defeated the two greatest jeopardy champions Brad Rutter
and Ken Jennings 12
Types Of AI
• Artificial Narrow Intelligence - Weak AI
Involves applying AI only to specific tasks
• More Data
• Better Algorithms
• Broad Investment
What can AI systems NOT do yet?
• Understand natural language robustly (e.g.,
read and understand articles in a newspaper)
• Surf the web
• Interpret an arbitrary visual scene
• Learn a natural language
• construct plans in dynamic real-time domains
• Exhibit true autonomy and intelligence
16
The State of the Art
Computer beats human in a chess game.
Computer-human conversation using speech
recognition.
Expert system controls a spacecraft.
Robot can walk on stairs and hold a cup of water.
Language translation for webpages.
Home appliances use fuzzy logic.
......
17
Some applications of AI
• Game Playing
Deep Blue Chess program beat world champion Gary Kasparov
• Speech Recognition
PEGASUS spoken language interface to American Airlines' EAASY SABRE reseration system, which allows users to obtain
flight information and make reservations over the telephone. The 1990s has seen significant advances in speech
recognition so that limited systems are now successful.
• Computer Vision
Face recognition programs in use by banks, government, etc. The ALVINN system from CMU autonomously drove a van
from Washington, D.C. to San Diego (all but 52 of 2,849 miles), averaging 63 mph day and night, and in all weather
conditions. Handwriting recognition, electronics and manufacturing inspection, photointerpretation, baggage inspection,
reverse engineering to automatically construct a 3D geometric model.
• Expert Systems
Application-specific systems that rely on obtaining the knowledge of human experts in an area and programming that
knowledge into a system.
• Diagnostic Systems
Microsoft Office Assistant in Office 97 provides customized help by decision-theoretic reasoning about an individual user.
MYCIN system for diagnosing bacterial infections of the blood and suggesting treatments. Intellipath pathology diagnosis
system (AMA approved). Pathfinder medical diagnosis system, which suggests tests and makes diagnoses. Whirlpool
customer assistance center.
18
(cont’d)
• Financial Decision Making
Credit card companies, mortgage companies, banks, and the U.S. government employ AI systems to detect fraud and
expedite financial transactions. For example, AMEX credit check. Systems often use learning algorithms to construct
profiles of customer usage patterns, and then use these profiles to detect unusual patterns and take appropriate action.
• Classification Systems
Put information into one of a fixed set of categories using several sources of information. E.g., financial decision making
systems. NASA developed a system for classifying very faint areas in astronomical images into either stars or galaxies
with very high accuracy by learning from human experts' classifications.
• Mathematical Theorem Proving
Use inference methods to prove new theorems.
• Natural Language Understanding
Google's translation of web pages. Translation of Catepillar Truck manuals into 20 languages. (Note: One early system
translated the English sentence "The spirit is willing but the flesh is weak" into the Russian equivalent of "The vodka is
good but the meat is rotten.")
• Scheduling and Planning
Automatic scheduling for manufacturing. DARPA's DART system used in Desert Storm and Desert Shield operations to
plan logistics of people and supplies. American Airlines rerouting contingency planner. European space agency planning
and scheduling of spacecraft assembly, integration and verification.
• Robotics and Path planning
NASA’s Rover mission.
• Biology and medicine
Modeling of cellular functions, analysis of DNA and proteins.
• and…
19
Intelligent Agents
Agents
• An agent is anything that can be
viewed as perceiving its
environment through sensors
and acting upon that
environment through actuators
•
Agents contd..
• Human agent: eyes, ears, and other organs for
sensors hands,legs, mouth, and other body
parts for actuators.
•
• [f: P* A]
Vacuum-cleaner world
Sensors
E
state
What the world is like n
How world evolves now? v
i
What my actions do
o
r
What action should I
n
do now?
Conditions action m
rules e
Actuators n
t
Agent
Goal based Agents
Information comes from sensors-Percepts
Changes the agent current state of the world
• Based on the state of the world and knowledge(memory), and goals / intentions it chooses
actions through the effectors.
state Sensors
E
What the world is like n
How world evolves now? v
What it will be like if I do i
What my actions do
action A o
r
What action should I
n
do now?
GOALS m
e
Actuators n
t
Agent
Utility based Agents
Information comes from sensors-Percepts
Changes the agent current state of the world
• Based on the state of the world and knowledge(memory), and goals / intentions it chooses
actions through the effectors.
Sensors
E
state
What the world is like n
How world evolves now? v
What it will be like if I do i
What my actions do
action A o
r
How happy I will be in
n
such a state
Utility m
e
What action should I n
do now?
t
Agent Actuators
Environment types
• Fully observable (vs. partially observable): An agent's sensors
give it access to the complete state of the environment at
each point in time.
• Deterministic (vs. stochastic): The next state of the
environment is completely determined by the current state
and the action executed by the agent. (If the environment is
deterministic except for the actions of other agents, then the
environment is strategic)
• Episodic (vs. sequential): The agent's experience is divided
into atomic "episodes" (each episode consists of the agent
perceiving and then performing a single action), and the
choice of action in each episode depends only on the episode
itself.
•
Environment types
• Static (vs. dynamic): The environment is unchanged
while an agent is deliberating. (The environment is
semidynamic if the environment itself does not
change with the passage of time but the agent's
performance score does)
• Discrete (vs. continuous): A limited number of
distinct, clearly defined percepts and actions.
• Single agent (vs. multiagent): An agent operating by
itself in an environment.
•
Problem-Solving Agents
• Intelligent agents can solve problems by searching a state-
space
• State-space Model
– the agent’s model of the world
– usually a set of discrete states
– e.g., in driving, the states in the model could be towns/cities
• Goal State(s)
– a goal is defined as a desirable state for an agent
– there may be many states which satisfy the goal test
• e.g., drive to a town with a ski-resort
– or just one state which satisfies the goal
• e.g., drive to Mammoth
• State-space Model
– the agent’s model of the world
– usually a set of discrete states
– e.g., in driving, the states in the model could be
towns/cities
• Goal State(s)
– a goal is defined as a desirable state for an agent
– there may be many states which satisfy the goal
test
• e.g., drive to a town with a ski-resort
– or just one state which satisfies the goal
• e.g., drive to Mammoth
• Operators
– Fill 3-gallon from faucet, fill 4-gallon from faucet
– Fill 3-gallon from 4-gallon , fill 4-gallon from 3-gallon
– Empty 3-gallon into 4-gallon, empty 4-gallon into 3-gallon
– Dump 3-gallon down drain, dump 4-gallon down drain
Production Rules for the Water Jug Problem
1 (x,y) (4,y) Fill the 4-gallon jug
if x < 4
Fill the 3-gallon jug
2 (x,y) (x,3)
if y < 3 Pour some water out of the 4-gallon jug
3 (x,y) (x – d,y)
Pour some water out of the 3-gallon jug
if x > 0
if x + y ≥ 3 and x >
0 Pour all the water from the 3-gallon jug into
the 4-gallon jug
9 (x,y) (x + y, 0) Pour all the water from the 4-gallon jug into
the 3-gallon jug
if x + y ≤ 4 and y >
0
10 (x,y) (0, x + y)
if x + y ≤ 3 and x >
8 puzzle of the tiles on the
• State: 3 x 3 array configuration
board.
• Operators: Move Blank Square Left, Right, Up or
Down.
– This is a more efficient encoding of the operators than
one in which each of four possible moves for each of the
8 distinct tiles is used.
• Initial State: A particular configuration of the
board.
• Goal: A particular configuration of the board.
The 8-Queens Problem
58
Next Topics
• Uninformed search
– Breadth-first, depth-first
– Uniform cost
– Iterative deepening
• Informed (heuristic) search
– Greedy best-first
– A*
– Memory-bounded heuristic search
– And more….
• Local search and optimization
– Hill-climbing
– Simulated annealing
– Genetic algorithms