AI Lec01
AI Lec01
AI Lec01
Shahela.saif@comsats.edu.pk
GRADING
Quiz / Assignment 25%
There will be surprise quizzes. It can be taken at any time during Lecture.
Assignments will be announced with a specific
deadline. Instructions will be provided along with the
assignment statement.
Late Policy: Assignments will not be accepted later than the deadline.
3
PLAGIARISM POLICY
Any assignment found 30% or more copied from the internet will be marked 0
(ZERO).
Any assignment copied from the class mate will also be marked 0 (ZERO).
Both for the source and the copied one.
4
COURSE DETAILS
Course Title: CSC 462 Artificial Intelligence
Pre Req: CSC 102 Discrete Structures
Credits: 3 + 1
Course Contents:
This course gives a broad overview of the fundamental theories and techniques of
Artificial Intelligence. Topics include: Overview of Artificial Intelligence; Agents &
Environments; Problem-Solving; Adversarial Search; Constraint Satisfaction Problems;
Knowledge Representation & Reasoning; Uncertainty; and Automated Planning.
RESOURCES
1. Artificial Intelligence: A Modern Approach 4th Edition, Russell, S., & Norvig, P.,
(2020), Prentice Hall
Machine
Planning
Learning
Expert
NLP Vision Robotics Systems
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
SYSTEMS THAT ACT LIKE HUMANS:
TURING TEST
“The art of creating machines that perform functions that require intelligence when
performed by people.” (Kurzweil)
“The study of how to make computers do things at which, at the moment, people are
better.” (Rich and Knight)
SYSTEMS THAT ACT LIKE HUMANS
?
You enter a room which has a computer terminal.
You have a fixed period of time to type what you
want into the terminal, and study the replies. At the
other end of the line is either a human being or a
computer system.
If it is a computer system, and at the end of the
period you cannot reliably determine whether it is
a system or a human, then the system is deemed to
be intelligent.
TURING TEST
SYSTEMS THAT ACT LIKE HUMANS
Intelligent behavior
to achieve human-level performance in all cognitive tasks
SYSTEMS THAT ACT LIKE HUMANS
These cognitive tasks include:
Natural language processing
for communication with human
Knowledge representation
to store information effectively & efficiently
Automated reasoning
to retrieve & answer questions using the stored information
Machine learning
to adapt to new circumstances
THE TOTAL TURING TEST
Includes two more issues:
Computer vision
to perceive objects (seeing)
Robotics
to move objects (acting)
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
SYSTEMS THAT THINK LIKE HUMANS:
COGNITIVE MODELING
Humans as observed from ‘inside’
How do we know how humans think?
Introspection vs. psychological experiments
Cognitive Science
“The exciting new effort to make computers think … machines with minds in the full
and literal sense” (Haugeland)
“[The automation of] activities that we associate with human thinking, activities such as
decision-making, problem solving, learning …” (Bellman)
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
SYSTEMS THAT THINK ‘RATIONALLY’
"LAWS OF THOUGHT"
Humans are not always ‘rational’
Rational - defined in terms of logic?
Logic can’t express everything (e.g. uncertainty)
Logical approach is often not feasible in terms of computation time (needs ‘guidance’)
“The study of mental facilities through the use of computational models” (Charniak
and McDermott)
“The study of the computations that make it possible to perceive, reason, and act”
(Winston)
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
SYSTEMS THAT ACT RATIONALLY:
“RATIONAL AGENT”
Rational behavior: doing the right thing
The right thing: that which is expected to maximize goal achievement, given the
available information
Giving answers to questions is ‘acting’.
SYSTEMS THAT ACT RATIONALLY
Logic only part of a rational agent, not all of rationality
Sometimes logic cannot reason a correct conclusion
At that time, some specific (in domain) human knowledge or information is used
Rule base:
If (number of corners == 4) and (equal sides == 4)
points form square
Else
points form circle
PROBLEM WITH CLASSICAL AI
Square or a circle?
USING ML
Features
1) Number of corners
2) Equal Sides
Training Phase:
1) Take 3 examples of circles and 3 examples of squares
2) For each example, compute features (number of corners
number of sides that are equal)
3) Also tell the computer that whether extracted features
are taken from a circle or a square
USING ML: FEATURE SPACE
During training, we give machine all
examples of different shapes that
look similar to a circle or square
Square 4 4
Circle 2 2
Square 3 2
Circle 0 0
Circle 1 0
USING ML: FEATURE SPACE
Testing Phase:
Let’s determine whether a set of points
belonging to a rectangle is classified
as a square or a circle?
Square 4 4
Circle 2 2
Square 3 2
Circle 0 0
Circle 1 0
a10
(x10, y10)
a1*(x1+y1)+a2*(x2+y2)+….+a10*(x10+y10)+a11 = ?
square
a10
(x10, y10)
SUMMARY
Scheme Training Set required Pre-Determined Features
required
AI No Yes
ML Yes Yes
DL Yes No