SlideShare a Scribd company logo
1 of 73
Download to read offline
Artificial Neural Network
 Artificial Neural Networks are
computing systems inspired by the
biological neural networks that is
inspired by the way biological
nervous systems, such as the brain,
process information.
 Biological neuron has dendrites to receive signals, a cell body to
process them, and an axon to send signals out to other neurons, the
artificial neuron has a number of input channels, a processing
stage, and one output that can fan out to multiple other artificial
neurons.
 Rosenblatt proposed the
earliest algorithm of
artificial neural networks
called Perceptron.
 The linear activation function determines the output of the unit.
x1 x2 y
0 0 0
0 1 0
1 0 0
1 1 1
x2
x1
 µ=0.3
 w0=-.5, w1=1, w2=1
 θ = 0
x1 x2 y
0 0 0
0 1 0
1 0 0
1 1 1
x2
x1
 µ=0.3
 w0=-.5, w1=1, w2=1
 θ = 0 θ(x)>0 =1 otherwise 0
x1 x2 y
0 0 0
0 1 0
1 0 0
1 1 1
x2
x1
 w0=-.5, w1=1, w2=1
 net= w1x1+w2x2+w0x0 = x1+x2-0.5
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+x2-0.5
x2
x1
 net =w1x1+w2x2+w0x0 = x1+x2-0.5= 0+0-0.5=-0.5
 yd= θ(net) = θ(-0.5)= 0
 yd =ya correct
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+x2-0.5
x2
x1
 net =w1x1+w2x2+w0x0 = x1+x2-0.5= 0+1-0.5 =+ 0.5
 yd= θ(net) = θ(+0.5)= +1
 yd != ya incorrect
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+x2-0.5
x2
x1
 Update weight wi=wi - µ * xi
 w0=-0.5-0.3*1=-0.8 & w1= 1-0.3*0=1 & w2=1-0.3*1=0.7
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+x2-0.5
x2
x1
 w0=-0.8 & w1= 1 & w2=0.7
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+0.7x2-0.8
x2
x1
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+0.7x2-0.8
 net =w1x1+w2x2+w0x0 = x1+0.7x2-0.8= 1+0-0.8 =+0.2
 yd= θ(net) = θ(+0.2)= +1
 yd != ya incorrect
x2
x1
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
x1+0.7x2-0.8
 Update weight wi = wi - µ * xi
 w0=-0.8-0.3*1=-1.1 & w1= 1-0.3*1=0.7 & w2=0.7-0.3*0=0.7
x2
x1
x1 x2 ya
0 0 0
0 1 0
1 0 0
1 1 1
 w0= -1.1 & w1= 0.7 & w2= 0.7
0.7x1+0.7x2-1.1
x1
x2
 Researchers discovered that
Perceptron cannot approximate
many nonlinear decision functions,
for example, the XOR problem.
x2
x1
 Researchers found a solution
to that problem by stacking
multiple layers of linear
classifiers called multilayer
perceptron to approximate
nonlinear decision functions.
Feedforward
 Werbos effectively solved
the exclusive-or problem
and more generally
accelerated the training of
multi-layer networks using
Backpropagation algorithm.
Backpropagation
 Forward propagation : is simply
multiplying input with weights and
add bias before applying
activation function (sigmoid in
here) at each node.
 Backpropagation: is a method
used in artificial neural networks to
calculate the error contribution of
each neuron after a batch of data
Feedforward
Backpropagation
Three concepts behind Backpropagation (From Calculus)
1) Derivative
2) Partial Derivative
3) Chain Rule
1)Derivative
 =
 ′ = 2
2)Partial Derivative
 , = + 5
 = 5
 = 4 + 5
3)Chain Rule
ℎ( ))′ = ( ( ))′ = ′( ( )) ∗ ′( )
 The linear and non
linear activation
function determines
the output of the
unit.
x1
x2
Net
out
Net
out
Net
out
Net
out
Input Layer Hidden Layer Output Layer
k j i
wkj wji
 Hidden Layer:
 = ∑ ∗ ℎ
 =
x1
x2
Net
out
Net
out
Net
out
Net
out
k j i
wkj wji
 Output Layer:
 = ∑ ∗ ℎ ℎ
 =
x1
x2
Net
out
Net
out
Net
out
Net
out
k j i
wkj wji
 Total Error:
 = ∑ − ℎ ℎ
x1
x2
Net
out
Net
out
Net
out
Net
out
k j i
wkj wji
t
t
 Output Layer:
 = + ∗ ∗ − ∗ ( − )
x1
x2
Net
out
Net
out
Net
out
Net
out
k j i
wkj wji
 Hidden Layer:
 = + ∗ ∗ − ∗
 = ∑ − ∗ ( − ) ∗
x1
x2
Net
out
Net
out
Net
out
Net
out
k j i
wkj wji
 Example
i1
i2
i0
h1
h2
h0
o1
o2
i1
i2
i0
h1
h2
h0
o1
o2
w1
w3
w2
w4
w5
w7
w6
w8
w9
w10
w11
w12
 Assume
= 0.5
t1 = 0.01
t2 = 0.99
.05
0.1
1
h1
h2
1
o1
o2
.15
.25
.20
.30
.40
.5
.45
.55
.35
.35
.60
.60
 Hidden Layers:
 = ∗ + ∗ + ∗
= . ∗ . + . ∗ . + .
∗ = .
 = = .
= .
.05
0.1
1
h1
h2
.15
.25
.20
.30
.35
.35
 Hidden Layers:
 = ∗ + ∗ + ∗
= . ∗. + . ∗ . + .
∗ = .
 = = .
= .
.05
0.1
1
h1
h2
.15
.25
.20
.30
.35
.35
 Output Layer:
 = ∗ + ∗
+ ∗
= . ∗ . + . ∗ .
+ . ∗ = .
 = = .
= .
h1
h2
1
o1
o2
.40
.5
.45
.55
.60
.60
 Output Layer:
 = ∗ + ∗
+ ∗
= . ∗ . + . ∗ .
+ . ∗ = .
 = = .
= .
h1
h2
1
o1
o2
.40
.5
.45
.55
.60
.60
 Total Error:
 = ∑ −
 = − = . − .
= .
 = − = . − .
= .
 = + = . + . = .
o1
o2
t1
t2
 Our goal with back-propagation is to update each of the weights in
the network so that they cause the actual output to be closer the
target output by minimizing the error for each output neuron and
the network as a whole.
 Output Layer
 = + ∗
By applying the chain rule:
 = ∗ ∗
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Output Layer
 = ∗ ∗
 = ∗ + ∗
+ ∗
 = = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Output Layer
 = ∗ ∗
 =
 = =
∗ = ( − )
= −
= . − . = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Output Layer
 = ∗ ∗
 = − + (
− )
 = ∗ − ∗ −
= −( − )
= −(. − . ) = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Output Layer
 = ∗ ∗
 = − ∗ (
− ) ∗
= . ∗ . ∗ .
= .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Update w5
 = + ∗
= . + . ∗ . = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Update w6
 = − ∗ (
− ) ∗
= . ∗ . ∗ .
= .
 = + ∗ = . + .
∗ . = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Update w7
 = − ∗ (
− ) ∗
= . − . ∗ .
∗ − . ∗ . = .
 = + ∗ = . + .
∗ . = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Update w8
 = − ∗ (
− ) ∗
= . − . ∗ .
∗ − . ∗ . = .
 = + ∗ = . + .
∗ . = .
h1
h2
h0
o1
o2
w5
w7
w6
w8
w11
w12
t1
t2
 Hidden Layer
 = + ∗
By applying the chain rule:
 = ∗ ∗
i1
i2
i0
h1
h2
w1
w3
w2
w4
w9
w10
 Hidden Layer
 = ∗ − ∗ (
− ) ∗ − ∗
+ − ∗ − ∗
 = 0.05 ∗ 0.5933 1 − 0.5933 ∗ [(0.7514(1
− 0.7514) ∗ .01 − 0.7514 ∗ 0.4)
+ (0.7729 1 − 0.7729 ∗ .99 − 0.7729
∗ 0.5)]
 = − .
i1
i2
i0
h1
h2
w1
w3
w2
w4
w9
w10
 Hidden Layer
 Update w1
 = + = . − .
∗ . = .
i1
i2
i0
h1
h2
w1
w3
w2
w4
w9
w10
 Hidden Layer
 Update w2
 = .
 Update w3
 = .
 Update w4
 = .
i1
i2
i0
h1
h2
w1
w3
w2
w4
w9
w10
 MNIST is a large database of handwritten digits.
 MNIST contains 60,000 training images and 10,000 testing
images
Each student select one of neural network architecture from
http://www.asimovinstitute.org/neural-network-zoo/
Download the paper that describe the network from
Original Paper PDF
Make two pages using word to summarize your selected
neural network.
Use MS Word
Send me e-mail to mloey@live.com with email subject “
Advanced Topics in CS2 – Task2 “
Put your Arabic name on word and email body
Finally, press Send
Deadline Next Lecture
 http://playground.tensorflow.org/
facebook.com/mloey
mohamedloey@gmail.com
twitter.com/mloey
linkedin.com/in/mloey
mloey@fci.bu.edu.eg
mloey.github.io
www.YourCompany.com
© 2020 Companyname PowerPoint Business Theme. All Rights Reserved.
THANKS FOR
YOUR TIME

More Related Content

Similar to Lecture 2: Artificial Neural Network

Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchAhmed BESBES
 
Data mining assignment 5
Data mining assignment 5Data mining assignment 5
Data mining assignment 5BarryK88
 
latest TYPES OF NEURAL NETWORKS (2).pptx
latest TYPES OF NEURAL NETWORKS (2).pptxlatest TYPES OF NEURAL NETWORKS (2).pptx
latest TYPES OF NEURAL NETWORKS (2).pptxMdMahfoozAlam5
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2Laurie Smith
 
Neural_N_Problems - SLP.pdf
Neural_N_Problems - SLP.pdfNeural_N_Problems - SLP.pdf
Neural_N_Problems - SLP.pdf8dunderground
 
Neural Network Back Propagation Algorithm
Neural Network Back Propagation AlgorithmNeural Network Back Propagation Algorithm
Neural Network Back Propagation AlgorithmMartin Opdam
 
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions ManualCalculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions Manualnodyligomi
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonPamelaew
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solutionunemployedmba
 
Cuaderno+de+integrales
Cuaderno+de+integralesCuaderno+de+integrales
Cuaderno+de+integralesjoseluisroyo
 
Digit recognizer by convolutional neural network
Digit recognizer by convolutional neural networkDigit recognizer by convolutional neural network
Digit recognizer by convolutional neural networkDing Li
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural NetworksArslan Zulfiqar
 
Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Ilir Destani
 
Maximizing the spectral gap of networks produced by node removal
Maximizing the spectral gap of networks produced by node removalMaximizing the spectral gap of networks produced by node removal
Maximizing the spectral gap of networks produced by node removalNaoki Masuda
 

Similar to Lecture 2: Artificial Neural Network (20)

Digital logic circuits
Digital  logic  circuitsDigital  logic  circuits
Digital logic circuits
 
Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from Scratch
 
Data mining assignment 5
Data mining assignment 5Data mining assignment 5
Data mining assignment 5
 
redes neuronais
redes neuronaisredes neuronais
redes neuronais
 
latest TYPES OF NEURAL NETWORKS (2).pptx
latest TYPES OF NEURAL NETWORKS (2).pptxlatest TYPES OF NEURAL NETWORKS (2).pptx
latest TYPES OF NEURAL NETWORKS (2).pptx
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2
 
Neural_N_Problems - SLP.pdf
Neural_N_Problems - SLP.pdfNeural_N_Problems - SLP.pdf
Neural_N_Problems - SLP.pdf
 
Neural Network Back Propagation Algorithm
Neural Network Back Propagation AlgorithmNeural Network Back Propagation Algorithm
Neural Network Back Propagation Algorithm
 
5.n nmodels i
5.n nmodels i5.n nmodels i
5.n nmodels i
 
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions ManualCalculus Early Transcendentals 10th Edition Anton Solutions Manual
Calculus Early Transcendentals 10th Edition Anton Solutions Manual
 
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by AntonSolutions Manual for Calculus Early Transcendentals 10th Edition by Anton
Solutions Manual for Calculus Early Transcendentals 10th Edition by Anton
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solution
 
Cuaderno+de+integrales
Cuaderno+de+integralesCuaderno+de+integrales
Cuaderno+de+integrales
 
lecture4.pdf
lecture4.pdflecture4.pdf
lecture4.pdf
 
Digit recognizer by convolutional neural network
Digit recognizer by convolutional neural networkDigit recognizer by convolutional neural network
Digit recognizer by convolutional neural network
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural Networks
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Generating functions (albert r. meyer)
Generating functions (albert r. meyer)
 
Maximizing the spectral gap of networks produced by node removal
Maximizing the spectral gap of networks produced by node removalMaximizing the spectral gap of networks produced by node removal
Maximizing the spectral gap of networks produced by node removal
 

More from Mohamed Loey

Lecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsLecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsMohamed Loey
 
Lecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsLecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsMohamed Loey
 
Lecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksLecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksMohamed Loey
 
Lecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksLecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksMohamed Loey
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksMohamed Loey
 
Lecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionLecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionMohamed Loey
 
Design of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesDesign of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesMohamed Loey
 
Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Mohamed Loey
 
Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Mohamed Loey
 
Algorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsAlgorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsMohamed Loey
 
Algorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsAlgorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsMohamed Loey
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsMohamed Loey
 
Algorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIAlgorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIMohamed Loey
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IMohamed Loey
 
Algorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIAlgorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIMohamed Loey
 
Algorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IAlgorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IMohamed Loey
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsMohamed Loey
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningMohamed Loey
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work IIMohamed Loey
 
Computer Security Lecture 7: RSA
Computer Security Lecture 7: RSAComputer Security Lecture 7: RSA
Computer Security Lecture 7: RSAMohamed Loey
 

More from Mohamed Loey (20)

Lecture 6: Deep Learning Applications
Lecture 6: Deep Learning ApplicationsLecture 6: Deep Learning Applications
Lecture 6: Deep Learning Applications
 
Lecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network ModelsLecture 5: Convolutional Neural Network Models
Lecture 5: Convolutional Neural Network Models
 
Lecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning FrameworksLecture 4: Deep Learning Frameworks
Lecture 4: Deep Learning Frameworks
 
Lecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural NetworksLecture 4: How it Works: Convolutional Neural Networks
Lecture 4: How it Works: Convolutional Neural Networks
 
Lecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural NetworksLecture 3: Convolutional Neural Networks
Lecture 3: Convolutional Neural Networks
 
Lecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer VisionLecture 1: Deep Learning for Computer Vision
Lecture 1: Deep Learning for Computer Vision
 
Design of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer DiseasesDesign of an Intelligent System for Improving Classification of Cancer Diseases
Design of an Intelligent System for Improving Classification of Cancer Diseases
 
Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2Computer Security - CCNA Security - Lecture 2
Computer Security - CCNA Security - Lecture 2
 
Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1Computer Security - CCNA Security - Lecture 1
Computer Security - CCNA Security - Lecture 1
 
Algorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsAlgorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern Algorithms
 
Algorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph AlgorithmsAlgorithms Lecture 7: Graph Algorithms
Algorithms Lecture 7: Graph Algorithms
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching Algorithms
 
Algorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms IIAlgorithms Lecture 5: Sorting Algorithms II
Algorithms Lecture 5: Sorting Algorithms II
 
Algorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms IAlgorithms Lecture 4: Sorting Algorithms I
Algorithms Lecture 4: Sorting Algorithms I
 
Algorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms IIAlgorithms Lecture 3: Analysis of Algorithms II
Algorithms Lecture 3: Analysis of Algorithms II
 
Algorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms IAlgorithms Lecture 2: Analysis of Algorithms I
Algorithms Lecture 2: Analysis of Algorithms I
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to Algorithms
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep Learning
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work II
 
Computer Security Lecture 7: RSA
Computer Security Lecture 7: RSAComputer Security Lecture 7: RSA
Computer Security Lecture 7: RSA
 

Recently uploaded

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

Lecture 2: Artificial Neural Network

  • 2.  Artificial Neural Networks are computing systems inspired by the biological neural networks that is inspired by the way biological nervous systems, such as the brain, process information.
  • 3.  Biological neuron has dendrites to receive signals, a cell body to process them, and an axon to send signals out to other neurons, the artificial neuron has a number of input channels, a processing stage, and one output that can fan out to multiple other artificial neurons.
  • 4.
  • 5.  Rosenblatt proposed the earliest algorithm of artificial neural networks called Perceptron.
  • 6.  The linear activation function determines the output of the unit.
  • 7. x1 x2 y 0 0 0 0 1 0 1 0 0 1 1 1 x2 x1
  • 8.  µ=0.3  w0=-.5, w1=1, w2=1  θ = 0 x1 x2 y 0 0 0 0 1 0 1 0 0 1 1 1 x2 x1
  • 9.  µ=0.3  w0=-.5, w1=1, w2=1  θ = 0 θ(x)>0 =1 otherwise 0 x1 x2 y 0 0 0 0 1 0 1 0 0 1 1 1 x2 x1
  • 10.  w0=-.5, w1=1, w2=1  net= w1x1+w2x2+w0x0 = x1+x2-0.5 x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+x2-0.5 x2 x1
  • 11.  net =w1x1+w2x2+w0x0 = x1+x2-0.5= 0+0-0.5=-0.5  yd= θ(net) = θ(-0.5)= 0  yd =ya correct x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+x2-0.5 x2 x1
  • 12.  net =w1x1+w2x2+w0x0 = x1+x2-0.5= 0+1-0.5 =+ 0.5  yd= θ(net) = θ(+0.5)= +1  yd != ya incorrect x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+x2-0.5 x2 x1
  • 13.  Update weight wi=wi - µ * xi  w0=-0.5-0.3*1=-0.8 & w1= 1-0.3*0=1 & w2=1-0.3*1=0.7 x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+x2-0.5 x2 x1
  • 14.  w0=-0.8 & w1= 1 & w2=0.7 x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+0.7x2-0.8 x2 x1
  • 15. x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+0.7x2-0.8  net =w1x1+w2x2+w0x0 = x1+0.7x2-0.8= 1+0-0.8 =+0.2  yd= θ(net) = θ(+0.2)= +1  yd != ya incorrect x2 x1
  • 16. x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1 x1+0.7x2-0.8  Update weight wi = wi - µ * xi  w0=-0.8-0.3*1=-1.1 & w1= 1-0.3*1=0.7 & w2=0.7-0.3*0=0.7 x2 x1
  • 17. x1 x2 ya 0 0 0 0 1 0 1 0 0 1 1 1  w0= -1.1 & w1= 0.7 & w2= 0.7 0.7x1+0.7x2-1.1 x1 x2
  • 18.  Researchers discovered that Perceptron cannot approximate many nonlinear decision functions, for example, the XOR problem. x2 x1
  • 19.  Researchers found a solution to that problem by stacking multiple layers of linear classifiers called multilayer perceptron to approximate nonlinear decision functions. Feedforward
  • 20.  Werbos effectively solved the exclusive-or problem and more generally accelerated the training of multi-layer networks using Backpropagation algorithm. Backpropagation
  • 21.  Forward propagation : is simply multiplying input with weights and add bias before applying activation function (sigmoid in here) at each node.  Backpropagation: is a method used in artificial neural networks to calculate the error contribution of each neuron after a batch of data Feedforward Backpropagation
  • 22. Three concepts behind Backpropagation (From Calculus) 1) Derivative 2) Partial Derivative 3) Chain Rule
  • 24. 2)Partial Derivative  , = + 5  = 5  = 4 + 5
  • 25. 3)Chain Rule ℎ( ))′ = ( ( ))′ = ′( ( )) ∗ ′( )
  • 26.  The linear and non linear activation function determines the output of the unit.
  • 27.
  • 29.  Hidden Layer:  = ∑ ∗ ℎ  = x1 x2 Net out Net out Net out Net out k j i wkj wji
  • 30.  Output Layer:  = ∑ ∗ ℎ ℎ  = x1 x2 Net out Net out Net out Net out k j i wkj wji
  • 31.  Total Error:  = ∑ − ℎ ℎ x1 x2 Net out Net out Net out Net out k j i wkj wji t t
  • 32.  Output Layer:  = + ∗ ∗ − ∗ ( − ) x1 x2 Net out Net out Net out Net out k j i wkj wji
  • 33.  Hidden Layer:  = + ∗ ∗ − ∗  = ∑ − ∗ ( − ) ∗ x1 x2 Net out Net out Net out Net out k j i wkj wji
  • 36.  Assume = 0.5 t1 = 0.01 t2 = 0.99 .05 0.1 1 h1 h2 1 o1 o2 .15 .25 .20 .30 .40 .5 .45 .55 .35 .35 .60 .60
  • 37.  Hidden Layers:  = ∗ + ∗ + ∗ = . ∗ . + . ∗ . + . ∗ = .  = = . = . .05 0.1 1 h1 h2 .15 .25 .20 .30 .35 .35
  • 38.  Hidden Layers:  = ∗ + ∗ + ∗ = . ∗. + . ∗ . + . ∗ = .  = = . = . .05 0.1 1 h1 h2 .15 .25 .20 .30 .35 .35
  • 39.  Output Layer:  = ∗ + ∗ + ∗ = . ∗ . + . ∗ . + . ∗ = .  = = . = . h1 h2 1 o1 o2 .40 .5 .45 .55 .60 .60
  • 40.  Output Layer:  = ∗ + ∗ + ∗ = . ∗ . + . ∗ . + . ∗ = .  = = . = . h1 h2 1 o1 o2 .40 .5 .45 .55 .60 .60
  • 41.  Total Error:  = ∑ −  = − = . − . = .  = − = . − . = .  = + = . + . = . o1 o2 t1 t2
  • 42.  Our goal with back-propagation is to update each of the weights in the network so that they cause the actual output to be closer the target output by minimizing the error for each output neuron and the network as a whole.
  • 43.  Output Layer  = + ∗ By applying the chain rule:  = ∗ ∗ h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 44.  Output Layer  = ∗ ∗  = ∗ + ∗ + ∗  = = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 45.  Output Layer  = ∗ ∗  =  = = ∗ = ( − ) = − = . − . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 46.  Output Layer  = ∗ ∗  = − + ( − )  = ∗ − ∗ − = −( − ) = −(. − . ) = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 47.  Output Layer  = ∗ ∗  = − ∗ ( − ) ∗ = . ∗ . ∗ . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 48.  Update w5  = + ∗ = . + . ∗ . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 49.  Update w6  = − ∗ ( − ) ∗ = . ∗ . ∗ . = .  = + ∗ = . + . ∗ . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 50.  Update w7  = − ∗ ( − ) ∗ = . − . ∗ . ∗ − . ∗ . = .  = + ∗ = . + . ∗ . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 51.  Update w8  = − ∗ ( − ) ∗ = . − . ∗ . ∗ − . ∗ . = .  = + ∗ = . + . ∗ . = . h1 h2 h0 o1 o2 w5 w7 w6 w8 w11 w12 t1 t2
  • 52.  Hidden Layer  = + ∗ By applying the chain rule:  = ∗ ∗ i1 i2 i0 h1 h2 w1 w3 w2 w4 w9 w10
  • 53.  Hidden Layer  = ∗ − ∗ ( − ) ∗ − ∗ + − ∗ − ∗  = 0.05 ∗ 0.5933 1 − 0.5933 ∗ [(0.7514(1 − 0.7514) ∗ .01 − 0.7514 ∗ 0.4) + (0.7729 1 − 0.7729 ∗ .99 − 0.7729 ∗ 0.5)]  = − . i1 i2 i0 h1 h2 w1 w3 w2 w4 w9 w10
  • 54.  Hidden Layer  Update w1  = + = . − . ∗ . = . i1 i2 i0 h1 h2 w1 w3 w2 w4 w9 w10
  • 55.  Hidden Layer  Update w2  = .  Update w3  = .  Update w4  = . i1 i2 i0 h1 h2 w1 w3 w2 w4 w9 w10
  • 56.  MNIST is a large database of handwritten digits.  MNIST contains 60,000 training images and 10,000 testing images
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69. Each student select one of neural network architecture from http://www.asimovinstitute.org/neural-network-zoo/ Download the paper that describe the network from Original Paper PDF Make two pages using word to summarize your selected neural network.
  • 70. Use MS Word Send me e-mail to mloey@live.com with email subject “ Advanced Topics in CS2 – Task2 “ Put your Arabic name on word and email body Finally, press Send Deadline Next Lecture
  • 73. www.YourCompany.com © 2020 Companyname PowerPoint Business Theme. All Rights Reserved. THANKS FOR YOUR TIME