Chapter01 PDF
Chapter01 PDF
CS 404
Berrin Yanikoglu
1
Overview
• Course Info
– Briefly discussed. All of the information regarding the course
can be found at SUCourse.
• Introduction to AI
2
• Instructor: Berrin Yanıkoğlu Office: MDBF 2056
• Office Hours: Fridays 9-10am or by email appointment.
• Assistant:
– Furkan Coskun ([email protected]) and
– Ekberdjan Derman ([email protected])
• Important:
– Questions about homeworks etc should be asked at SUCourse discussion
boards. The discussion board will be followed every night at least, so you will get
an answer to your questions in about a day (often much sooner).
– Please dont ask homework related questions on email, so that the TA’s answer are
visible to everyone.
3
• Exams:
– There will be one midterm.
– Those who miss the midterm or the final exam needs to have a
documented excuse (medical emergency, death in immediate family) and
advance warning.
– In case of a missing exam (midterm or final), the makeup will be
counted for the missing exam. But if the makeup is taken due to non-
passing condition (low final or low overall score), the average of the final
and makeup exams will be used in computing the overall score.
• Homeworks:
– There will be 6 homeworks total, given approximately every other week.
• Grading:
– Midterm (35%) + Final (35%) + Homeworks (30%)
– To pass the course you grade as calculated above must be at least 40
(strict) and Final grade should be 30/100 or above.
4
Course Book & What we will cover
5
Artificial Intelligence: A Modern
Approach Russel and Norvig
Part I Artificial Intelligence Part IV Uncertain Knowledge and Reasoning
1 Introduction 13 Quantifying Uncertainty
2 Intelligent Agents 14 Probabilistic Reasoning
15 Probabilistic Reasoning over Time
Part II Problem Solving
16 Making Simple Decisions
3 Solving Problems by Searching
17 Making Complex Decisions
4 Beyond Classical Search
5 Adversarial Search Part V Learning
6 Constraint Satisfaction Problems 18 Learning from Examples
19 Knowledge in Learning
Part III Knowledge and Reasoning
20 Learning Probabilistic Models
7 Logical Agents
21 Reinforcement Learning
8 First-Order Logic
9 Inference in First-Order Logic Part VII Communicating, Perceiving, and Acting
10 Classical Planning 22 Natural Language Processing
11 Planning and Acting in Real World 23 Natural Language for Communication
12 Knowledge Representation 24 Perception
6
25 Robotics
What is AI?
7
On May 12th, 1997, the best
chess player in the world, Gary
Kasparov, lost a six-game chess
match to a computer named
“Deep Blue 2”
10
Studying AI
• For thousands of years, philosophers tried to understand
how humans think
• The field of Artificial Intelligence goes further and attempts
not just to understand but also to build intelligent systems
– Started out in 1950s
– The Dartmouth meeting in 1956
• Turned out much more difficult than anyone had imagined
• Currently encompasses a large variety of subfields,
– from general areas such as perception and logical reasoning to
– specific tasks such as playing chess, writing poetry…
– bringing together philosophy, logic, computer science, cognitive
science and cognitive neuroscience
11
What is AI?
So it’s not surprising that defining artificial intelligence (AI) is hard. In general,
artificial intelligence is the field of science devoted to making computers
perceive, reason, and act in ways that have, until now, been reserved for human
beings.
12
Thinking Humanly: Cognitive Science
• In order to say that a given program thinks like a human, we must have
some way of determining how humans thinks
• Requires scientific theories of internal activities of the brain
• What level of abstraction? ``Knowledge'' or ``circuits''?
• How to validate?
– Bring together computational models from AI and experimental
techniques from psycho-physics to model the human mind
• 1) Predicting and testing behavior of human subjects (Cognitive Science; top-
down)
• 2) Direct identification from neurological data (Cognitive Neuroscience;
bottom-up)
– Both approaches are now distinct from AI
• Difficulties:
– How to take informal knowledge and state in formal terms especially
when knowledge is less than 100% certain
14
Acting Humanly - Turing Test
15
• The computer passes the test if a human interrogator,
after posing some written questions, cannot tell
whether the written responses come from a person or
not
• Suggested major components of AI: natural language
processing, knowledge representation, automated
reasoning, machine learning
• Total Turing test also requires computer vision and
robotics
• “Artificial flight” is succeeded by not imitating the birds,
but by learning aerodynamics. The goal is not to fool
pigeons. 16
Acting Humanly - Turing Test
• Reading: https://crl.ucsd.edu/~saygin/papers/MMTT.pdf
• Captchas
– Tests to identify humans from bots on the Internet, to deny services to
webcrawlers or spammers
17
Acting Humanly - Turing Test
• Chatterbots:
– One of the most complex (and entertaining!)
chatter bots are at: http://www.simonlaven.com/
18
Acting Rationally
• Rationality: ideal concept of intelligence
19
Why do we want artificial intelligence?
20
AI Components
21
Intelligent Agents
Machine Speech
Learning Understanding
Knowledge
Bilgi Gösterimi
Representation Computer
Search and Akıl Reasoning
Yürütme Vision
and
Optimization
AI
Natural
Language
Robotics Understanding
22
Seeing, Hearing and Understanding
An intelligent computer must be able to recognize its surrounding environment
and adapt to changes in it. To do this it must be able to “see” and “hear”
what’s going on
Computer vision is the capability of a computer to mimic the ways that human
brains process and interpret light waves to produce a model of reality. Though
it’s very easy for people to do that, it’s very difficult for computers to do build
and update their models.
Computer Vision
From deepai.org
Hearing, Seeing and Understanding
The ability of a computer to recognize the speech of a user and
take action based on the words spoken is called speech
recognition or voice recognition. The computer matches spoken
words against stored speech patterns to determine what was said
27
Natural Language Understanding
Natural language understanding (NLP) works well among languages
with similar structures (& maybe more importantly, for languages
for which there is enough data to learn from).
Had to correct an error in almost every other sentence in Turkish to
English translation (2019), with Google Translate:
28
Machine Learning
•It is difficult to collect and maintain knowledge is.
•It would help if the machine could build up its own knowledge from
experiences in the world, like a child learning how to walk. The ability of the
machine to discover knowledge from observations of the world is called
machine learning.
For example, some of the best game-playing programs learn from past
experiences.
• If a move pays off, a learning program is more likely to use that (or
similar moves) in future games.
• If a move results in a loss, the program will remember to avoid
similar moves.
Machine Learning
Supervised learning:
Learning from
examples
Kadın
Training Testing
Knowledge Representation and
Reasoning
• Rain => WetGround
• Sprinkler => WetGround
• WetGround => Rain OR Sprinkler
31
Robotics
• Japanese companies such
as Honda, Fujitsu and Sony
are racing to develop
humanoid robots.
33
History of AI
• 1943 McCulloch and Pitts: Artificial Neuron Model
• 1950 Turing's ``Computing Machinery and Intelligence'‘
• 1950s Early AI programs, including Samuel's checkers program, Newell & Simon's
Logic Theorist (proving theorems), Gelernter's Geometry Engine, Shannon
and Turing writing chess programs
– Shortage of computer times => Development of time sharing (=> DEC)
– Creation of LISP (McCarthy)
35
History of AI
• 1980--88 Expert systems industry booms
– After all, they work, even if in limited domains
– An expert system is a software designed to replicate the decision-making
process of a human expert, within a narrow topic. At the heart of every
expert system is a knowledge base representing ideas from the specific
field of expertise
– A knowledge-based system derives knowledge from experts as well as
other sources like government regulations, statistical databases, company
guidelines, etc.
– In practice, the terms expert system and knowledge-based system are
often used interchangeably
• While a database contains only facts, a knowledge base also contains a
system of if-then rules for determining and changing the relationships
between those facts
36
History of AI
• 1988--93 Expert systems industry start losing its power
• Successful only in very narrow domains
• Building a successful expert system is much more than simply buying a
reasoning system and filling it with rules
38
Current State of AI
39
Narrow AI
42
Current State
• Which of the following can be done at present?
• ...
44
Artificial Intelligence and the Humans
•What does the advent of the intelligent machine mean for human
beings?
•Are artificial intelligences just extensions of human intelligence?
•When AARON creates a drawing, who is the artist, Cohen or AARON?
•When expert systems make decisions, who is responsible? the user, the
programmer, the software company, or somebody else?
47