Introduction To Ai
Introduction To Ai
Shruti Patil
AI in Fiction
Search engines
Science
Medicine/
Appliances Diagnosis
Labor
Movies Recommendation
What’s interesting with AI
• Honda AISMO
• Advanced Step in Innovation MObility
• Humanoid Robot
• Capable of recognizing:
• Moving objects
• Postures
• Gestures
• Handshake
• Sounds
• Capable of walking and running
http://en.wikipedia.org/wiki/ASIMO
What’s interesting with AI
Darpa Grand Challenge
• To nurture the development of autonomous ground vehicles
• Competition of Driverless vehicles
• 2004
• 1 million
• Mojave Desert
• Follows a route of 240 km
• No one won: best completed 12 km
• 2005
• 2 million dollar prize
• 3 narrow tunnels, 100 sharp turns
• Twisted pass with a drop-off one one side
• Five succeeded
• Winner: 6:54 hours, Stanford Racing Team – Stanely
http://en.wikipedia.org/wiki/DARPA_Grand_Challenge
What’s interesting with AI
1. Introduction
2. Intelligent Agents
3. Solving Problems by Search
4. Constraint satisfaction Problems
5. Game Playing
6. Knowledge representation
7. Logical concepts and programming
Introduction – Chapter 1
Artificial intelligence
AI is a branch of computer science which is
concerned with the study and creation of
computer systems that exhibit
Think Rationally
AI Definition
• “Computational Intelligence is the study of the
design of
intelligent agents” (Poole et al, 1998)
• “AI….is concerned with intelligent behavior in
artifact”,
(Nilsson, 1998)
Act Rationally
How to Achieve AI?
Acting
humanly
Thinking
humanly AI Thinking
rationally
Acting
rationally
17
Acting Humanly: The Turing Test
http://en.wikipedia.org/wiki/Turing_test
Alan Turing
1912-1954
• To be intelligent, a program should simply act like a human
Artificial Intelligence 18
The Turing Test - Example
http://aimovie.warnerbros.co http://www.ai.mit.edu/projects/infolab
m /
slide mostly borrowed from Laurent Itti
The Turing Test - Example
http://aimovie.warnerbros.co http://www.ai.mit.edu/projects/infolab
m /
slide mostly borrowed from Laurent Itti
The Turing Test - Example
http://aimovie.warnerbros.co http://www.ai.mit.edu/projects/infolab
m /
slide mostly borrowed from Laurent Itti
The Turing Test - Example
http://aimovie.warnerbros.co http://www.ai.mit.edu/projects/infolab
m /
slide mostly borrowed from Laurent Itti
The Turing Test - Example
http://aimovie.warnerbros.co http://www.ai.mit.edu/projects/infolab
m /
slide mostly borrowed from Laurent Itti
Acting Humanly
• To pass the Turing test, the computer/robot needs:
– Natural language processing to communicate successfully.
– Knowledge representation to store what it knows or hears.
– Automated reasoning to answer questions and draw conclusions using
stored information.
– Machine learning to adapt to new circumstances and to detect and
extrapolate patterns.
24
Acting Humanly: The Turing Test
http://en.wikipedia.org/wiki/Turing_test
T
Artificial Intelligence u 25
r
Acting Humanly – for Total Turing
27
Problems with Imitating Humans
• The human thinking process is difficult to
understand: how does the mind raises from
the brain ? Think also about unconscious tasks
such as vision and speech understanding.
• Humans are not perfect ! We make a lot of
systemic mistakes:
28
Thinking Rationally
• Instead of thinking like a human : think rationally.
• Find out how correct thinking must proceed: the laws
of thought.
• Aristotle syllogism: “Socrates is a man; all men are
mortal, therefore Socrates is mortal.”
• This initiated logic: a traditional and important branch
of mathematics and computer science.
• Problem: it is not always possible to model thought
as a set of rules; sometimes there uncertainty.
• Even when a modeling is available, the complexity of
the problem may be too large to allow for a solution.
29
Acting Rationally
• Rational agent: acts as to achieve the best outcome
• Logical thinking is only one aspect of appropriate
behavior: reactions like getting your hand out of a hot place
is not the result of a careful deliberation, yet it is clearly
rational.
• Sometimes there is no correct way to do, yet
something must be done.
• Instead of insisting on how the program should think,
we insist on how the program should act: we care only
about the final result.
• Advantages:
– more general than “thinking rationally” and more
– Mathematically principled; proven to achieve rationality unlike
human behavior or thought
30
Acting Rationally
This is how birds fly Humans tried to mimic This is how we finally
birds for centuries achieved “artificial flight”
31
ELIZA
• Eliza was first program developed by Joseph Wiezbaum
to converse in English in mid 1960's
– It passed turing test.
– The following passage shows Eliza’s talking to a teenage girl. Blue text
Eliza’s response
• Simulation of Intelligence:can’t understand the meaning of utterance
• Mathematics
– Formal representation and proof, algorithms, computation, (un)decidability,
probabilit
(in)tractability,
y.
• Economics
– utility, decision theory (decide under uncertainty)
• Neuroscience
– neurons as information processing units.
• Psychology/Cognitive Science
– how do people behave, perceive, process information, represent
knowledge.
• Computer engineering
– building fast computers
• Control theory
– design systems that maximize an objective function over time
• Linguistics
– knowledge representation, grammar
Artificial Intelligence 34
AI History
• Gestation of AI (1934 - 1955)
– In 1943, proposed a binary-based model of neurons
– Any computable function can be modeled by a set of neurons
– A serious attempt to model brain
– 1950, Turing’s “Computing Machinery and Intelligence ”: turing test,
reinforcement learning and machine learning
• The Inception of AI (1956)
– Dartmouth meeting to study AI
– an AI program ”Logic Theorist” to prove many theorems
• Early Enthusiasm and great Expectation (1952-1969)
– General Problem Solver imitates the human way of thinking
– LISP (AI programming language) was defined
– 1965, Robinson discovered the resolution method – logical
reasoning
• AI Winter (1966-1973)
– Computational intractability of many AI problems
– Neural Network starts to disappear
AI History
• Knowledge-based systems (1969-1979)
– Use domain knowledge to allow for stronger reasoning
• Becomes an Industry (1980-now)
– Digital Equipment Corporation selling R1 “expert sytem”
– From few million to billions in 8 years
• The return of neural network (1986-now)
– With the back-propagation algorithm
• AI adopts scientific method (1987-now)
– More common to base theorems on pervious ones or rigorous evidence rather
than intuition
– Speech recognition and HMM
• Emergence of intelligent agent (1995-now)
– search engines, recommender systems,….
• Availability of very large data sets (2001 – now)
– Worry more about the data
The State of the Art
• Robotics Vehicle
– DARPA Challenge
• Speech Recognition
– United Airlines
• Autonomous Planning and Scheduling
– Remote Agent: Plan and control spacecraft
– MAPGEN: daily planning of operations on NASA’s exploration Rover
• Game Playing
– IBM Deep Blue
• Spam Fighting
• Logistic Planning
– DART – Dynamic Analysis and Replacing Tool
– Gulf War 1991
– To plan the logistic for transportation of 50k vehicles, cargo and people
– Generated in hour a plan that could take weeks
• Robotics
• Machine Translation
– Statistical models
Agents and Environment
• An agent is anything that can perceive its environment
through sensors and acts upon that environment through effectors.
• A human agent has sensory organs such as eyes, ears, nose, tongue and
skin parallel to the sensors, and other organs such as hands, legs,
mouth, for effectors.
• A robotic agent replaces cameras and infrared range finders for the
sensors, and various motors and actuators for effectors.
• A software agent has encoded bit strings as its programs and actions.
Artificial Intelligence 46
Environment
• The environment is where agent lives, operate
and provide the agent with something to
sense and act upon it.
• Different types.
• Fully Observable vs Partially Observable
• When an agent sensor is capable to sense or access
the complete state of an agent at each point in
time, it is said to be a fully observable environment
else it is partially observable.
• Maintaining a fully observable environment is easy as
there is no need to keep track of the history of the
surrounding.
• An environment is called unobservable when the
agent has no sensors in all environments.
• Examples:
• Chess – the board is fully observable, and so are the
opponent’s
moves.
• Driving – the environment is partially observable
because
what’s around the corner is not known.
• Deterministic vs Stochastic
• When a uniqueness in the agent’s current state
completely determines the next state of the
agent, the environment is said to be
deterministic.
• The stochastic environment is random in
nature which is not unique and cannot be
completely determined by the agent.
• Examples:
• Chess – there would be only a few possible
moves for a coin at the current state and these
moves can be determined.
• Self-Driving Cars- the actions of a self-driving car
are not unique, it varies time to time.
• Single-agent vs Multi-agent
• An environment consisting of only one
agent is said to be a single-agent
environment.
• A person left alone in a maze is an
example of the single-agent system.
• An environment involving more
than one agent is a multi-agent
environment.
• The game of football is multi-
agent as it involves 11 players in
each team.
• Discrete vs Continuous
• If an environment consists of a finite number of
actions that can be deliberated in the environment to
obtain the output, it is said to be a discrete
environment.
• The game of chess is discrete as it has only a finite
number of moves. The number of moves might vary
with every game, but still, it’s finite.
• The environment in which the actions are performed
cannot be numbered i.e. is not discrete, is said to be
continuous.
• Self-driving cars are an example of continuous
environments as their actions are driving, parking,
etc. which cannot be numbered.
• Percept to refer to the agent’s perceptual inputs at any given instant. An
• Percept sequence is the complete history of everything the agent has ever
perceived.
• Behavior of Agent − It is the action that agent performs after any given
sequence of percepts.
• Agent Function − It is a map from the precept sequence to an action.
• Agent Program-The agent program is a concrete implementation, running
within some physical system.
• An ideal rational agent is the one, which is capable of doing expected actions to
maximize its performance measure, on the basis of −
Its percept sequence
Its built-in knowledge base
Rationality of an agent depends on the following −
• The performance measures, which determine the degree of success.
• Agent’s Percept Sequence till now.
• The agent’s prior knowledge about the environment.
• The actions that the agent can carry out.
• PEAS is a type of model on which an AI agent
works upon. When we define an AI agent
or rational agent, then we can
group its properties under PEAS
representation model. It is made up of
four words:
• P: Performance measure
• E: Environment
• A: Actuators
• S: Sensors
Self driving car
a) Teknowledge
b) IntelliCorpn
c)Texas Instruments
d) Tech knowledge
• A natural language generation
program must decide
a) what to say
b) when to say something
c)why it is being used
d)both what to say & when
to say something