Introduction to Deep Learning
Introduction to Deep Learning
Zhenhua He
AI is intelligence demonstrated by
machines, as opposed to natural intelligence
displayed by animals including humans.
( Source: Wikipedia)
Relationship of AI, ML and DL
Artificial Intelligence
● Artificial Intelligence (AI) is
anything about man-made
intelligence exhibited by Machine Learning
machines.
● Machine Learning (ML) is
an approach to achieve AI.
● Deep Learning (DL) is one Deep Learning
technique to implement
ML.
Types of ML Algorithms
● Supervised Learning
○ trained with labeled data; Machine Learning
including regression and
classification problems
● Unsupervised Learning Supervised Learning
○ trained with unlabeled data;
clustering and association rule
learning problems. Unsupervised Learning
● Reinforcement Learning
○ no training data; stochastic
Markov decision process; robotics Reinforcement Learning
and self-driving cars.
What is Deep Learning?
Deep learning is a class of machine learning algorithms that:
● use a cascade of multiple layers of nonlinear processing units
for feature extraction and transformation. Each successive
layer uses the output from the previous layer as input.
● learn in supervised (e.g., classification) and/or unsupervised
(e.g., pattern analysis) manners.
● learn multiple levels of representations that correspond to
different levels of abstraction; the levels form a hierarchy of
concepts.
(Source: Wikipedia)
Why Deep Learning?
DL model
4-Element Vector
X Y
1
2 A
3 C M
4 T F
5 G
6
Output/Prediction
Target Output
x x ….. x
1 2 n
Error: - =5
Output/Prediction
Target Output
x x ….. x
1 2 n
Error: - = 15
Output/Prediction
Target Output
x x ….. x
1 2 n
Error: - = 2.5
X1
W1
X2 W2
f is the activation function,
Wi is the weight, and bi is Y3
the bias.
X3 W3
Training - Minimizing the Loss
The loss function with regard to weights Input Output
and biases can be defined as
W1, b1 X1
Y2
W3, b3 X3
Image Credit: Deep Learning Methods for Vision | CVPR 2012 Tutorial
Activation Functions
Image Credit: Deep Learning Methods for Vision | CVPR 2012 Tutorial
Max Pooling
Image Credit: Deep Learning Methods for Vision | CVPR 2012 Tutorial
Convolutional Neural Networks
A convolutional neural network (CNN, or ConvNet) is a class of deep, feed-forward
artificial neural networks that explicitly assumes that the inputs are images, which allows
us to encode certain properties into the architecture.
file:///home/<username>/.local/share/jupyter/runtime/jpserver-462321-open.html
http://localhost:<port>/lab?token=67b0e1263053b6bc449c59999984bbfc30a97fa61fcd9e18
or http://127.0.0.1:<port>/lab?token=612b6b0iiic840c449c5a97fa61bbfc3fcd9e7b630530e18