Artificial Neural Networks�The Beginning of �Artificial Intelligence
Prof. Debasis Samanta
Indian Institute of Technology Kharagpur
BDSET
2
DSamanta@IITKGP
Introduction to Artificial Intelligence
About AI
BDSET
4
DSamanta@IITKGP
Von Neuman Architecture
BDSET
5
DSamanta@IITKGP
Mark Minosi’s Dream
BDSET
6
DSamanta@IITKGP
Reality: Man versus Machine
BDSET
7
DSamanta@IITKGP
Reality: Compuman
BDSET
8
DSamanta@IITKGP
Towards the Reality….
BDSET
9
DSamanta@IITKGP
?
BDSET
10
DSamanta@IITKGP
Towards AI
BDSET
11
DSamanta@IITKGP
History of Artificial Neural Networks
BDSET
13
DSamanta@IITKGP
Why NN provides the state of art technique today but diminished in 80’s?
BDSET
14
DSamanta@IITKGP
In early 80’s,
Today,
11
Concept of Artificial Neural Networks
BDSET
16
DSamanta@IITKGP
Brain: Centre of the nervous system
Gray matter
Cerebellum
Spinal Cord
BDSET
17
DSamanta@IITKGP
Biological nervous system
BDSET
18
DSamanta@IITKGP
Neuron: Basic unit of nervous system
BDSET
19
DSamanta@IITKGP
Neuron and its working
Figure shows a schematic of a biological neuron. There are different parts in it
BDSET
20
DSamanta@IITKGP
Neuron and its working
BDSET
21
DSamanta@IITKGP
Neuron and its working
BDSET
22
DSamanta@IITKGP
Analogy between BNN and ANN
Neural Network
BDSET
23
DSamanta@IITKGP
BDSET
24
DSamanta@IITKGP
Artificial neural network
BDSET
25
DSamanta@IITKGP
Artificial neural network
Analogy with Human Brain
HUMAN NEURON
PERCEPTRON
BDSET
26
DSamanta@IITKGP
MULTIPLE NERVE CELL
MULTI LAYER PERCEPTRON (MLP)
Src of Images: Internet
BDSET
27
DSamanta@IITKGP
Artificial neural network
We may note that a neutron is a part of an interconnected network of nervous system and serves the following.
We also can see the analogy between the biological neuron and artificial neuron. Truly, every component of the model (i.e., artificial neuron) bears a direct analogy to that of a biological neuron. It is this model which forms the basis of neural network (i.e., artificial neural network).
BDSET
28
DSamanta@IITKGP
Artificial neural network
BDSET
29
DSamanta@IITKGP
Artificial neural network
Activation Functions
BDSET
31
DSamanta@IITKGP
Artificial neural network
BDSET
32
DSamanta@IITKGP
Transformation functions
BDSET
33
DSamanta@IITKGP
Transformation functions
BDSET
34
DSamanta@IITKGP
Transformation functions
BDSET
35
DSamanta@IITKGP
Transfer functions in ANN
Transformation functions
BDSET
36
DSamanta@IITKGP
Sigmoid Activation Function
Linear Activation Function
Transformation functions
BDSET
37
DSamanta@IITKGP
ReLU Activation Function
Leaky ReLU Activation Function
Transformation functions
BDSET
38
DSamanta@IITKGP
Hyperbolic Tangent Activation Function
Softmax Activation Function
Transformation functions
BDSET
39
DSamanta@IITKGP
Neural Network Computing
BDSET
40
DSamanta@IITKGP
This diagram shown is a model of a single neural unit called perceptron.
A set of synapses or connecting links, each of which is characterized by it’s own weights.
An Adder for summing the input signals, weighted by the respective synaptic weight.
An activation function for limiting the amplitude of the output of a neuron. (Also called squashing function)
Multiple such neuron structures are linked together to make a neural system called Multi-Layer Perceptron (MLP).
The output of one neuron is input to the other neuron in next layer only.
No neuron in the same layer can be connected.
∑
ⱷ(.)
W1k
W2k
W3k
Wmk
.
.
.
.
.
.
Ѵk
X1
X2
X3
Xm
bias
bk
Synaptic
Weights
Summing
Junction
Activation
Function
Input
Output
ŷk
Node k
ŷk
ŷk
Given X = {x1, x2, .. xm}
Neural Network Computing
BDSET
41
DSamanta@IITKGP
BDSET
42
DSamanta@IITKGP
Advantages of ANN
BDSET
43
DSamanta@IITKGP
Advantages of ANN
Applications of ANNs
BDSET
44
DSamanta@IITKGP
Pattern Classification
Medical Application
Forecasting
Anomaly / Outlier Detection
Adaptive Filtering
Adaptive Control
Why ANNs?
BDSET
45
DSamanta@IITKGP
It’s power to solve complex real world case study.
Real world problem has large no of complex features which is hard to solve by classical ML algorithms.
Like human brain can do complex tasks through various neuron networks, Deep Learning also try to mimic human brain.
Let’s understand each of these points one by one.
ANN Architectures
BDSET
47
DSamanta@IITKGP
Neural network architectures
There are three fundamental classes of ANN architectures:
Before going to discuss all these architectures, we first discuss the mathematical details of a neuron at a single level. To do this, let us first consider the AND problem and its possible solution with neural network.
BDSET
48
DSamanta@IITKGP
The AND problem and its Neural network
BDSET
49
DSamanta@IITKGP
The AND problem and its Neural network
Alternatively, the AND problem can be thought as a perception problem where we have to receive four different patterns as input and perceive the results as 0 or 1.
BDSET
50
DSamanta@IITKGP
The AND problem and its Neural network
A possible neuron specification to solve the AND problem is given in the following. In this solution, when the input is 11, the weight sum exceeds the threshold ( = 0.9) leading to the output 1 else it gives the output 0.
BDSET
51
DSamanta@IITKGP
Single layer feed forward neural network
The concept of the AND problem and its solution with a single neuron can be extended to multiple neurons.
BDSET
52
DSamanta@IITKGP
Single layer feed forward neural network
BDSET
53
DSamanta@IITKGP
Modeling SLFFNN
BDSET
54
DSamanta@IITKGP
Multilayer feed forward neural networks
BDSET
55
DSamanta@IITKGP
Multilayer feed forward neural networks
BDSET
56
DSamanta@IITKGP
Multilayer feed forward neural networks
BDSET
57
DSamanta@IITKGP
Recurrent neural network architecture
BDSET
58
DSamanta@IITKGP
Recurrent neural network architecture
Depending on different type of feedback loops, several recurrent neural networks are known such as Hopfield network, Boltzmann machine network etc.
BDSET
59
DSamanta@IITKGP
Why different type of neural network architectures?
To give the answer to this question, let us first consider the case of a single neural network with two inputs as shown below.
BDSET
60
DSamanta@IITKGP
Revisit of a single neural network
BDSET
61
DSamanta@IITKGP
AND problem is linearly separable
BDSET
62
DSamanta@IITKGP
XOR problem is linearly non-separable
BDSET
63
DSamanta@IITKGP
Our observations
Note:
Horizontal or a vertical line in case of XOR problem is not admissible because in that case it completely ignores one input.
BDSET
64
DSamanta@IITKGP
Example
BDSET
65
DSamanta@IITKGP
Example: Solving XOR problem
BDSET
66
DSamanta@IITKGP
Dynamic neural network
BDSET
67
DSamanta@IITKGP
Dynamic neural network
BDSET
68
DSamanta@IITKGP
Dynamic neural network
From the above discussions, we conclude that
BDSET
69
DSamanta@IITKGP
Thank You!!