You are on page 1of 12

CS 188: Artificial Intelligence

Fall 2006

Lecture 1: Introduction
8/29/2006

Dan Klein – UC Berkeley


Many slides over the course adapted from
either Stuart Russell or Andrew Moore

Administrivia

http://inst.cs.berkeley.edu/~cs188

1
Course Staff
ƒ Course Staff Professor

Dan Klein
GSIs

Tamara Berg John DeNero Dan Gillick

Course Details
ƒ Book: Russell & Norvig, AI: A Modern Approach, 2nd Ed.

ƒ Prerequisites:
ƒ (CS 61A or B) and (Math 55 or CS 70)
ƒ There will be a lot of statistics and programming

ƒ Work and Grading:


ƒ 4 assignments divided into checkpoints
ƒ Python, groups of 1-2, 5 late days
ƒ Mid-term and final
ƒ Participation
ƒ Academic dishonesty policy

2
Announcements
ƒ Important stuff:
ƒ No section on 9/3
ƒ Python lab this Friday 1-5pm in 275 Soda Hall
ƒ Get your account forms (in front after class)
ƒ Mazeworld assignment on web very soon

ƒ Questions?

Today

ƒ What is AI?

ƒ Brief History of AI

ƒ What can AI do?

ƒ What is this course?

3
Sci-Fi AI?

What is AI?

The science of making machines that:

Think like humans Think rationally

Act like humans Act rationally

4
Acting Like Humans?
ƒ Turing (1950) ``Computing machinery and intelligence''
ƒ ``Can machines think?'' → ``Can machines behave intelligently?''
ƒ Operational test for intelligent behavior: the Imitation Game

ƒ Predicted by 2000, a 30% chance of fooling a lay person for 5 minutes


ƒ Anticipated all major arguments against AI in following 50 years
ƒ Suggested major components of AI: knowledge, reasoning, language
understanding, learning
ƒ Problem: Turing test is not reproducible or amenable to
mathematical analysis

Thinking Like Humans?


ƒ The Cognitive Science approach:
ƒ 1960s ``cognitive revolution'': information-processing
psychology replaced prevailing orthodoxy of
behaviorism

ƒ Scientific theories of internal activities of the brain


ƒ What level of abstraction? “Knowledge'' or “circuits”?
ƒ Cognitive science: Predicting and testing behavior of
human subjects (top-down)
ƒ Cognitive neuroscience: Direct identification from
neurological data (bottom-up)
ƒ Both approaches now distinct from AI
ƒ Both share with AI the following characteristic:
ƒ The available theories do not explain (or engender)
anything resembling human-level general intelligence}

ƒ Hence, all three fields share one principal direction!

Images from Oxford fMRI center

5
Thinking Rationally?
ƒ The “Laws of Thought” approach
ƒ What does it mean to “think rationally”?
ƒ Normative / prescriptive rather than descriptive

ƒ Logicist tradition:
ƒ Logic: notation and rules of derivation for thoughts
ƒ Aristotle: what are correct arguments/thought processes?
ƒ Direct line through mathematics, philosophy, to modern AI

ƒ Problems:
ƒ Not all intelligent behavior is mediated by logical deliberation
ƒ What is the purpose of thinking? What thoughts should I (bother to)
have?
ƒ Logical systems tend to do the wrong thing in the presence of
uncertainty

Acting Rationally
ƒ Rational behavior: doing the “right thing”
ƒ The right thing: that which is expected to maximize goal
achievement, given the available information
ƒ Doesn't necessarily involve thinking, e.g., blinking
ƒ Thinking can be in the service of rational action
ƒ Entirely dependent on goals!
ƒ Irrational ≠ insane, irrationality is sub-optimal action
ƒ Rational ≠ successful
ƒ Our focus here: rational agents
ƒ Systems which make the best possible decisions given goals,
evidence, and constraints
ƒ In the real world, usually lots of uncertainty
ƒ … and lots of complexity
ƒ Usually, we’re just approximating rationality
ƒ “Computational rationality” a better title for this course

6
Rational Agents
ƒ An agent is an entity that
perceives and acts (more
examples later)
ƒ This course is about designing
rational agents
ƒ Abstractly, an agent is a function
from percept histories to actions:

ƒ For any given class of environments and tasks, we seek the


agent (or class of agents) with the best performance
ƒ Computational limitations make perfect rationality unachievable
ƒ So we want the best program for given machine resources

A (Short) History of AI
ƒ 1940-1950: Early days
ƒ 1943: McCulloch & Pitts: Boolean circuit model of brain
ƒ 1950: Turing's ``Computing Machinery and Intelligence'‘
ƒ 1950—70: Excitement: Look, Ma, no hands!
ƒ 1950s: Early AI programs, including Samuel's checkers program, Newell &
Simon's Logic Theorist, Gelernter's Geometry Engine
ƒ 1956: Dartmouth meeting: ``Artificial Intelligence'' adopted
ƒ 1965: Robinson's complete algorithm for logical reasoning
ƒ 1970—88: Knowledge-based approaches
ƒ 1969—79: Early development of knowledge-based systems
ƒ 1980—88: Expert systems industry booms
ƒ 1988—93: Expert systems industry busts: “AI Winter”
ƒ 1988—: Statistical approaches
ƒ Resurgence of probability, focus on uncertainty
ƒ General increase in technical depth
ƒ Agents, agents, everywhere… “AI Spring”?

ƒ 2000—: Where are we now?

7
What Can AI Do?
Quiz: Which of the following can be done at present?

ƒ Play a decent game of table tennis?


ƒ Drive safely along a curving mountain road?
ƒ Drive safely along Telegraph Avenue?
ƒ Buy a week's worth of groceries on the web?
ƒ Buy a week's worth of groceries at Berkeley Bowl?
ƒ Discover and prove a new mathematical theorem?
ƒ Converse successfully with another person for an hour?
ƒ Perform a complex surgical operation?
ƒ Unload a dishwasher and put everything away?
ƒ Translate spoken English into spoken Swedish in real time?
ƒ Write an intentionally funny story?

Unintentionally Funny Stories


ƒ One day Joe Bear was hungry. He asked his friend Irving Bird
where some honey was. Irving told him there was a beehive in the
oak tree. Joe walked to the oak tree. He ate the beehive. The End.

ƒ Henry Squirrel was thirsty. He walked over to the river bank where
his good friend Bill Bird was sitting. Henry slipped and fell in the
river. Gravity drowned. The End.

ƒ Once upon a time there was a dishonest fox and a vain crow. One
day the crow was sitting in his tree, holding a piece of cheese in his
mouth. He noticed that he was holding the piece of cheese. He
became hungry, and swallowed the cheese. The fox walked over to
the crow. The End.

[Shank, Tale-Spin System, 1984]

8
Natural Language
ƒ Speech technologies
ƒ Automatic speech recognition (ASR)
ƒ Text-to-speech synthesis (TTS)
ƒ Dialog systems
ƒ Language processing technologies
ƒ Machine translation:
Aux dires de son président, la commission serait en mesure de le faire .
According to the president, the commission would be able to do so .
Il faut du sang dans les veines et du cran .
We must blood in the veines and the courage .
There is no backbone , and no teeth .
ƒ Information extraction
ƒ Information retrieval, question answering
ƒ Text classification, spam filtering, etc…

Vision (Perception)

Images from Jitendra Malik

9
Robotics
ƒ Robotics
ƒ Part mech. eng.
ƒ Part AI
ƒ Reality much
harder than
simulations!

ƒ Technologies
ƒ Vehicles
ƒ Rescue
ƒ Soccer!
ƒ Lots of automation…

ƒ In this class:
ƒ We ignore mechanical aspects
ƒ Methods for planning
ƒ Methods for control
Images from stanfordracing.org, CMU RoboCup, Honda ASIMO sites

Logic
ƒ Logical systems
ƒ Theorem provers
ƒ NASA fault diagnosis
ƒ Question answering

ƒ Methods:
ƒ Deduction systems
ƒ Constraint satisfaction
ƒ Satisfiability solvers
(huge advances here!)

Image from Bart Selman

10
Game Playing
ƒ May, '97: Deep Blue vs. Kasparov
ƒ First match won against world-champion
ƒ ``Intelligent creative'' play
ƒ 200 million board positions per second!
ƒ Humans understood 99.9 of Deep Blue's moves
ƒ Can do about the same now with a big PC cluster
ƒ Open question:
ƒ How does human cognition deal with the
search space explosion of chess?
ƒ Or: how can humans compete with computers
at all??
ƒ 1996: Kasparov Beats Deep Blue
“I could feel --- I could smell --- a new kind of intelligence across the table.”
ƒ 1997: Deep Blue Beats Kasparov
“Deep Blue hasn't proven anything.”
Text from Bart Selman, image from IBM’s Deep Blue pages

Decision Making
ƒ Many applications of AI: decision making
ƒ Scheduling, e.g. airline routing, military
ƒ Route planning, e.g. mapquest
ƒ Medical diagnosis, e.g. Pathfinder system
ƒ Automated help desks
ƒ Fraud detection

ƒ … the list goes on.

11
Course Topics
ƒ Part I: Search and Plans
ƒ Fast search
ƒ Constraint satisfaction
ƒ Adversarial and uncertain search
ƒ Part II: Uncertainty and Beliefs
ƒ Reinforcement learning
ƒ Bayes’ nets
ƒ Decision theory
ƒ Throughout: Applications
ƒ Natural language
ƒ Vision
ƒ Robotics
ƒ Games

Course Projects
ƒ Pacman agents

ƒ Robot control

ƒ Battleship

ƒ Spam / digit recognition

12

You might also like