AI AnIntroduction
AI AnIntroduction
INSTRUCTOR
Hafiz Syed Muhammad Muslim
1
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.
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.
2
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
3
SYLLABUS
OBJECTIVES
4
COURSE LEARNING OUTCOMES
Machine
Planning
Learning
Expert
NLP Vision Robotics Systems
10
5
SOPHIA – HANSON ROBOTICS
11
AI APPLICATIONS
Autonomous Planning & Scheduling:
Autonomous rovers.
12
6
AI APPLICATIONS
Autonomous Planning & Scheduling:
Telescope scheduling
13
AI APPLICATIONS
Autonomous Planning & Scheduling:
Analysis of data:
14
7
AI APPLICATIONS
Medicine:
Image guided surgery
15
AI APPLICATIONS
Medicine:
Image analysis and enhancement
16
8
AI APPLICATIONS
Transportation:
Autonomous vehicle control:
17
AI APPLICATIONS
Transportation:
Pedestrian detection:
18
9
AI APPLICATIONS
Games:
19
AI APPLICATIONS
Games:
20
10
AI APPLICATIONS
Robotic toys:
21
AI APPLICATIONS
Other application areas:
Bioinformatics:
Gene expression data analysis
Prediction of protein structure
Text classification, document sorting:
Web pages, e-mails
Articles in the news
Video, image classification
Music composition, picture drawing
Natural Language Processing .
Perception.
22
11
WHAT IS ARTIFICIAL INTELLIGENCE ?
making computers that think?
23
24
12
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
25
26
13
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.
27
Intelligent behavior
to achieve human-level performance in all cognitive tasks
28
14
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
29
30
15
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
31
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)
32
16
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
33
34
17
WHAT IS ARTIFICIAL INTELLIGENCE ?
HUMAN RATIONAL
35
36
18
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
37
38
19
From the above definitions, we can see that AI has two major roles:
Study the intelligent part concerned with humans.
Represent those actions using computers.
39
GOALS OF AI
To make computers more useful by letting them take over dangerous or tedious tasks
from human
Understand principles of human intelligence
40
20
AI VS MACHINE LEARNING VS DEEP LEARNING
41
USING AI
Problem:
Given a set of connected points, find if the points form a circle or a
square?
42
21
USING AI
Features
1) Number of corners
2) Number of equal Sides
Rule base:
If (number of corners == 4) and (equal sides == 4)
points form square
Else
points form circle
43
Square or a circle?
44
22
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
45
46
23
USING ML: FEATURE SPACE
Class Number of Number of
corners equal sides
Square 5 5
Square 4 4
Circle 2 2
Square 3 2
Circle 0 0
Circle 1 0
47
48
24
USING ML: FEATURE SPACE
Class Number of Number of
corners equal sides
Square 5 5
Square 4 4
Circle 2 2
Square 3 2
Circle 0 0
Circle 1 0
49
USING DL
No need of determining features
Just let an artificial neural network learn
what type of features are useful for a given
task.
In classical AI and ML, we don’t feed all
points to an algorithm directly. We first
compute features and then feed those
computed features only.
In DL, we don’t compute features, we feed
input directly to a network.
50
25
(x1, y1)
a10
(x10, y10)
51
(x1, y1)
a1*(x1+y1)+a2*(x2+y2)+….+a10*(x10+y10)+a11 = ?
square
a10
(x10, y10)
52
26
SUMMARY
Scheme Training Set required Pre-Determined Features
required
AI No Yes
ML Yes Yes
DL Yes No
53
27