You are on page 1of 23

NATIONAL UNIVERSITY OF

SCIENCES AND TECHNOLGOY

Lecture 01 – Introduction to AI & ML

Instructor: Dr. Syed Imran Ali

Assistant Professor
School of Electrical Engineering and Computer Science (SEECS)
National University of Sciences and Technology (NUST), Islamabad

Courtesy: Dr. Faisal Shafait and Dr. Adnan ul Hasan


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

What is Artificial Intelligence?


 First we have to define “intelligence”

 How many of you are intelligent?

6/1/2023 AI & Machine Learning 2


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

 The definition of intelligence is not easy to formulate

 According to Douglas Hofstadter important factors for


intelligence include:

– To respond to situations very flexibly

– To make sense out of ambiguous or contradictory


messages

– To find similarities between situations despite


differences

– To recognize the relative importance of different


elements

– To draw distinctions between situations despite


similarities which may link them

6/1/2023 AI & Machine Learning 3


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

What is Artificial Intelligence?

Terminator 2
6/1/2023 AI & Machine Learning 4
NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Artificial Intelligence Applications

 Most digital cameras detect faces for face priority focus


• Canon, Sony, Fuji, …

6/1/2023 AI & Machine Learning 5


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Facebook Photo Auto-tagging

6/1/2023 AI & Machine Learning 6


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Google Maps

6/1/2023 AI & Machine Learning 7


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Google Maps – Street View

6/1/2023 AI & Machine Learning 8


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Street View – Reading Street Numbers

6/1/2023 AI & Machine Learning 9


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Google Street View Dataset

6/1/2023 AI & Machine Learning  10


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Street View – Hiding Personal Details

6/1/2023 AI & Machine Learning  11


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY Slide content courtesy of Amnon Shashua

Smart Cars

6/1/2023 AI & Machine Learning  12


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Mercedes S 500 Self-Driving Car

6/1/2023 AI & Machine Learning  13


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Artificial Intelligence : Major Areas

6/1/2023 AI & Machine Learning  14


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Machine Learning Magic!


Essentially, someone can load a
significant amount of data into a
machine learning program, and the
program will be able to sort through
the information, form conclusions,
and generate predictions based on
those conclusions.

6/1/2023 AI & Machine Learning  15


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

What is Machine Learning?

6/1/2023 AI & Machine Learning  16


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Example
Handwritten Digit Recognition

6/1/2023 AI & Machine Learning  17


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Machine Learning
 Machine learning is a fundamental concept in AI which
deals with is the study of computer algorithms that
improve automatically through experience

 Machine learning algorithms build a mathematical


model of sample data, known as "training data“

 Machine learning is divided into two broad types


– Supervised Learning
– Unsupervised Learning

6/1/2023 AI & Machine Learning  18


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Goal of Machine Learning


 Consider a 28 x 28 pixel image
 Represented by a 784 dimensional vector x
 Goal: build a machine that takes the vector x as input
and produces the identity of digit 0,…,9 as the output

 Tom Mitchel’s definition of Machine Learning:


A computer program is said to learn from experience E
with respect to some class of tasks T and performance
measure P, if its performance at tasks in T, as
measured by P, improves with experience E.

6/1/2023 AI & Machine Learning  19


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Important terminology
 Training data
• Data samples
• Target vectors
 Learning / Training
• Machine takes training data and automatically learns
mapping from data samples to target vectors
 Test data
• Target vectors are concealed from the machine
• Machine predicts the target vectors based on previously
learned model
• Accuracy can be evaluated by comparing the predicted
vectors to the actual vectors

6/1/2023 AI & Machine Learning  20


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Types of Machine Learning Problems

6/1/2023 AI & Machine Learning  21


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Types of Machine Learning Problems


 Supervised learning
• Regression
• Classification
 Unsupervised learning
• Clustering
• Density estimation

6/1/2023 AI & Machine Learning  22


NATIONAL UNIVERSITY OF
SCIENCES AND TECHNOLGOY

Any Questions!!!

6/1/2023 AI & Machine Learning  23

You might also like