L1 1,2,3,4 Introduction1
L1 1,2,3,4 Introduction1
1
Introduction: Introduction, basic component of AI
2 Introduction: Identifying AI systems, branches of AI
Reasoning and Knowledge Representation
3 Introduction to Reasoning and Knowledge Representation
1
1
What is Intelligence?
1
2
What is Intelligence?
The capability of a machine to imitate intelligent human
behavior.
Tossing the word
In 1950 English mathematician Alan Turing wrote a landmark paper
titled “Computing Machinery and Intelligence.
Tossing the word
-AI is one of the newest fields in science and engineering. Work
started after World War II and the name itself was coined in
1956.
1
6
1
8
What is AI?
• Systems that. . .
Humanly Rationally
Thinking humanly — Thinking rationally — the use
cognitive modeling. of logic. Need to worry about
Systems should solve modeling uncertainty and dealing
Thinking problems the same way with complexity.
humans do.
1
9
Acting humanly: The Turing test
• Predicted that by the year 2000, a machine might have a 30% chance of fooling a lay person
for 5 minutes
• Anticipated (expect, predict) all major arguments against AI in the following 50 years
• Suggested major components of AI: knowledge, reasoning, language understanding, learning,
computer vision, robotics
• Problems:
– Not all intelligent behavior is mediated by logical deliberation (careful
discussion or consideration).
– What is the purpose of thinking? What thoughts should I have out of
all the thoughts (logical or otherwise) that I could have?
23
Thinking rationally: Laws of
Thought
• There are two main obstacles to this approach.
– First, it is not easy to take informal knowledge and
state it in the formal terms required by logical
notation, particularly when the knowledge is less than
100% certain.
– Second, there is a big difference between solving a
problem “in principle” and solving it in practice. Even
problems with just a few hundred facts can exhaust
the computational resources of any computer unless
it has some guidance as to which reasoning steps to
try first.
24
Acting rationally: Rational agents
• Rational behavior: “doing the right thing”, i.e., that which is
expected to maximize goal achievement, given the available
information
– doesn’t necessarily involve thinking (e.g., blinking reflex), but thinking should be in the
service of rational action
2
9
Agents and environments
3
1
Agents
Human agent:
• Sensors: eyes, ears, ...
• Actuators: hands, legs, mouth, …
Robotic agent:
• Sensors: cameras and infrared rangefinders
• Actuators: various motors
Obviously doing the right thing is better than doing the wrong
thing, but what does it
mean to do the right thing?
In Philosophy
instead of
Rational Agent:
• For each possible percept sequence P
• a rational agent selects an action a
• to maximize its performance measure
16
Expected value
Rational Agent (initial definition):
• For each possible percept sequence P,
• a rational agent selects an action a
• to maximize its performancemeasure
It doesn’t have to
Rational Agent (revised definition): know what the
actual outcome
• For each possible percept sequence P,
will be.
• a rational agent selects an action a
• that maximizes the expected value of
its performance measure
Task environments
Performance measure:
•?
Environment:
•?
Actuators:
•?
Sensors:
•?
PEAS: Specifying an automated taxi driver
Performance measure:
• safe, fast, legal, comfortable, maximize
profits
Environment:
• roads, other traffic, pedestrians, customers
Actuators:
• steering, accelerator, brake, signal, horn
Sensors:
• cameras, LiDAR, speedometer, GPS
PEAS: Amazon Prime Air
Performance measure:
•?
Environment:
•?
Actuators:
•?
Sensors:
•?
https://www.today.com/video/amazon-adebuts-new-package-delivery-drone-
61414981780
PEAS: Specifying an Amazon delivery drone
Performance measure:
maximize profits - minimize time - obey laws governing
airspace restrictions - deliver package to right location -
keep package in good condition - avoid accidents
- reduce noise - preserve battery life
Environment:
-airspace - obstacles when airborne (other drones,
birds, buildings, trees, utility poles) - obstacles when
landing (pets, patio furniture, lawnmowers, people,
cars) - weather - distances/route information between
warehouse and destinations - position of houses, and
spaces that are safe for drop-off- package weight
PEAS: Specifying an Amazon delivery drone
Actuators:
- Propellers and flight control system- Payload actuators:
E.g. Arm/basket/claw for picking up, dropping off
packages- Lights or signals - Mechanism to
announce/verify delivery- Device for delivering packages to
customers
Sensors:
• GPS - radar/Lidar- altitude sensor- weather sensors
(barometer, etc).- gyroscope- accelerometer- camera-
rotor sensors- weight sensor to recognize package
The rational agent designer’s goal
Goal of AI practitioner who designs rational agents:
given a PEAS task environment, abstract
mathematical
descripti
on
1. Construct agent function f that maximizes
the expected value of the performance concrete
measure, implementation
2. Design an agent program that
implements f on a particular
architecture
Agent Types and their PEAS
Agent Types and their PEAS
Why AI ?
-Artificial intelligence is more accurate than doctors in
diagnosing breast cancer from mammograms, a study in the
journal Nature suggests.
-An international team, including researchers from Google
Health and Imperial College London, designed and trained a
computer model on X-ray images from nearly 29,000 women.
-The algorithm outperformed six radiologists in reading
mammograms.
-AI was still as good as two doctors working together.
-Unlike humans, AI is tireless. Experts say it could improve
detection.
https://www.bbc.com/news/health-50857759
AI 'outperforms' doctors diagnosing breast cancer (2 January 2020)
Components of AI
•Perception - sense audio-visual and other inputs
(In perception the environment is scanned by means of various
sense-organs, real or artificial)
54
Identifying and branches of AI
System
-Machine learning: The science of getting a computer to act without
programming. Deep learning is a subset of machine learning.
There are three types of machine learning algorithms:
•Supervised learning: Data sets are labeled so that patterns can be
detected
and used to label new data sets.
•Unsupervised learning: Data sets aren't labeled and are sorted
according
to similarities or differences.
-Machine vision: The science of allowing computers to see. This
technology captures and analyzes visual information using a camera,
analog-to-digital conversion and digital signal processing. It is often
compared to human eyesight.
Identifying and branches of AI
System
-Natural language processing (NLP): One of the older and best known
examples of NLP is spam detection, which looks at the subject line and
the text of an email and decides if it's junk or not. Current approaches to
NLP are based on machine learning.
-Robotics: A field of engineering focused on the design and manufacturin
of robots. Robots are often used to perform tasks that are difficult for
humans to perform or perform consistently. They are used in assembly
lines for car production.
-Self-driving cars: These use a combination of computer vision,
image recognition and deep learning to build automated skill to direct a
vehicle while staying in a given lane and avoiding unexpected
obstructions, such as pedestrians.
Subsets of Artificial
Intelligence
Difference between machine learning and
Deep learning
Both machine learning and deep learning discover patterns in data, but
they involve dramatically different techniques.
Deep learning is a specific kind of machine learning. Both machine
learning and deep learning start with training and test data and a model
and go through an optimization process to find the weights that make the
model best fit the data. Both can handle numeric and non-numeric
problems, deep learning models tend to produce better results than
machine learning models in some areas.
While basic machine learning models do become progressively better at
whatever their function is, but they still need some guidance.
Difference between machine learning and
Deep learning
60
When should something be considered an
agent?
When should something be considered another agent?
35
Properties of Task Environment
• Environment: Observability
• Environment: Determinism
• Environment: Episodicity
• Environment: Dynamism
• Environment: Continuity
• Environment: Other Agents
• Environment: Complex
Environment: Observability
• Fully observable
– If an agent's sensors give it access to the complete state of the
environment at each point in time, then we say that the task
environment is fully observable
– Example: Chess, Poker (if the information of both hands is
available)
• Partially observable
– An environment might be partially observable because of noisy
and inaccurate sensors or because parts of the state are simply
missing from the sensor data
– Example: a vacuum agent with only a local dirt sensor cannot
tell
whether there is dirt in other squares
– Example: Taxi driving - one can never predict the behavior of
traffic exactly
Environment: Determinism
• Deterministic
– The next state of the environment is completely determined by the
current state and the action of agent
– Example: Image analysis, Poker (both hands known)
• Stochastic
– The presence of an element of uncertainty leads to stochastic
environment
– Example: board game with dice (stairs and snakes)
– Example: One's tires blow out and one's engine seizes up without
warning
• Strategic
– The environment wholly determined by the preceding state and
the actions of multiple agents
– Example: Chess
Environment: Episodicity
• Episodic
– Subsequent episodes do not depend on what actions occurred in
previous episodes (agent's experience is divided into atomic episodes)
– Example: An agent that has to spot defective parts on an
assembly line bases each decision on the current part, regardless
of previous decisions
• Sequential
– The agent is engaged in a series of connected episodes
– Example: Chess
– Example: Taxi driving
Environment: Dynamism
• Static
– The environment does not change from one state to the next
while the agent is considering its course of action. The only
changes to the environment are those caused by the agent
itself (agent does not need to observe the world during its thinking
process)
• Single agent
– It is based on the involvement of a single agent
– Example: an agent solving a crossword puzzle by
itself is a single- agent environment
• Multi-agent
– More than one agent is involved resulting in complex
environment
– Example: an agent playing chess is in a two-agent
environment
Environment: Complex