Neural Networks �and �Deep Learning
Ahmad Kalhor
Associate Professor .
School of Electrical and Computer Engineering –
University of Tehran
Fall 2022
Contents
Ahmad Kalhor - University of Tehran
2
4. Region based CNNs
Ahmad Kalhor - University of Tehran
3
5. Recurrent Neural Networks
6. Transformers
7. Variational Auto encoders and Generative Adversarial Networks
Ahmad Kalhor - University of Tehran
4
Ahmad Kalhor- University of Tehran
5
Mini Projects and Exams | ||||||
Chapters | 2 | 3 | 4 | 5 | 6 | 7 |
Mini Projects 60% | M. Pr. 1 10% | M. Pr. 2 10% | M. Pr. 3 10% | M. Pr. 4 10% | M. Pr. 5 10% | M. Pr. 6 10% |
Exams 40% | Midterm(Chapters2, 3, and 4) 20% | Final(Chapters5, 6, and 7 ) 20% | ||||
Total Score | 100% | |||||
* A few (optional) mini-projects are designed for extra work (bonus points)
Teaching Assistants
Ahmad Kalhor- University of Tehran
6
Chapter 1
Introduction
Ahmad Kalhor - University of Tehran
7
1. Introduction
Ahmad Kalhor- University of Tehran
8
What is Artificial intelligence?
Artificial NN (ANN) and Deep Learning (DL) in AI
Ahmad Kalhor - University of Tehran
9
A simple definition for Neural Networks
Ahmad Kalhor - University of Tehran
10
Outputs
Inputs
Natural Neural Networks
Important questions about animals intelligence
……..
Ahmad Kalhor - University of Tehran
11
(Trying to answer to aforementioned questions)
Biologists and Scientists (about 200-300 years ago) discovered
the brain, nervous system and spinal cord.
(currently) Neuroscientists research about the structure and function of the brain as the most important part of intelligent.
Ahmad Kalhor - University of Tehran
12
A Biological Neuron (nerve cell)
Ahmad Kalhor- University of Tehran
13
to receive the weighted electrochemical signals from adjacent neurons
(2) Cell body (soma)
to make a summation on received signals
(3) Nucleus
to generate an impulsive signal by comparing the absorbed signal with a threshold
(4) Axon
to send the generated signal to other adjacent neurons
(5) Synaptic gaps
to assign a weight to each send signal to adjacent neurons
Communication between neurons by electrochemical signals:
Ahmad Kalhor- University of Tehran
14
A simple mathematical Model for Biological Neuron
Ahmad Kalhor- University of Tehran
15
Dendrites
Synaptic gaps
Soma Nucleus
Types of neurons in human nervous system
1. Sensory neurons
Get information about what's going on inside and outside of the body and bring that information into the central nervous system (CNS) so it can be processed.
2. Interneurons
which are found only in the CNS, connect one neuron to another. Most of interneurons are in the brain.
There are about 100 billiard neurons in the brain.
There are about 10^15 connections among neurons(10000 connections for each neuron on average)
3. Motor neurons
get information from other neurons and convey commands to your muscles, organs and glands.
Ahmad Kalhor- University of Tehran
16
A simple Input-Output Model for human nervous system
Ahmad Kalhor- University of Tehran
17
Sensory neurons
(Input Layer)
Interneurons
(Hidden Layers)
Motor neurons
(Output Layer)
Learning capabilities of NNs in human body
Localization, Detection and Classification of different objects, faces, voices, smells, and approximation and prediction different physical variables: distances, temperatures, smoothness, brightness, and so on…..
(2) Memory
Capability to create memories about different events with long and short dependencies.
Capability to associate sequenced different patterns together.
(3) Complex and difficult tasks/actions
Car driving and parking, Swimming, Playing music,…..
(4) Computational intelligence
Logic, mathematics, Inference
Ahmad Kalhor- University of Tehran
18
Learning in natural neural network �(some important facts)
Ahmad Kalhor- University of Tehran
19
Inspiring From natural NNs:
From begging of the 20- century, Scientists and engineers have been interested to design artificial neural networks:
“To make solutions for demanded (challenging) learning problems”
Ahmad Kalhor- University of Tehran
20
Artificial Neural Networks
Applications of ANNs
Ahmad Kalhor- University of Tehran
21
Ahmad Kalhor- University of Tehran
22
Artificial Neural Networks (Here)
Fully Connected Neural Networks
Convolutional Neural Networks
Recurrent
Neural Networks
Transformers
VAEs and GANs
Classification/Reg.
Distinct Inputs
Partitioning or Mapping
Classification/Reg.
Image/Video/ Time Series
Filtering/Scaling/ Partitioning or Mapping
Memory App.
Sequential Data
Filtering /Scaling (through time) Partit. or Map.
Memory App.
Seq. Data/Image Filtering /Scaling Partit. or Map.
Generative App.
Seq. Data/Image /Distinct Inputs
Generation/Discrimination/Reconstruction
Sequential Data: Text, Time series, Speech, Video,....
Feed-forward and recurrent neural networks
1- Feedforward Neural Networks
In feedforward networks, messages(data flow) are passed forward only
Feedforward neural network is an artificial neural network wherein connections between the nodes do not form a cycle.
Each output is a static of function of inputs.
Ahmad Kalhor- University of Tehran
23
2- Recurrent Neural Networks
In recurrent networks, at least in one layer , messages(data flow) are returned to the same or former layers.
In recurrent neural networks (RNNs), a notion of time is introduced. The input at time step t depends on an output from time step t − 1.
These networks are suitable to represent dynamic behavior of functions and systems as nonlinear difference or differential equations .
Ahmad Kalhor- University of Tehran
24
Activation Functions
Ahmad Kalhor- University of Tehran
25
Supervised and unsupervised learning
1. Supervised Learning
Supervised learning as the name indicates a presence of supervisor as teacher. Basically supervised learning is a learning in which we teach or train the ANNs using data which is well labeled that means some data is already tagged with correct answer.
Applications: Classification/Regression: Function Approximation and Prediction/Recognition
Learning methods
Gradient (Local search): Descent optimization algorithms:
SGD/SGD+Momentum/Nesterov accelerated gradient/Adagrad/RMSprop/Adam/AdaMax/Nadam/AMSGrad
Ahmad 2- University of Tehran
26
2. Unsupervised Learning
Ahmad Kalhor- University of Tehran
27
3. Semi Supervised and Self Supervised Learning�
Ahmad Kalhor- University of Tehran
28
What is the difference between unsupervised and self-supervised?
The only difference is that, unlike unsupervised learning, self-supervised learning does not perform the grouping and clustering of data, as is the case with unsupervised learning. This learning type allows machines to examine part of a data example to figure out the remaining part
Mcculloch & Pitz Neuron�Warren MuCulloch (neuroscientist) and Walter Pitts (logician) 1943
Ahmad Kalhor- University of Tehran
29
Some Logic Functions by M&P neurons��AND���OR���AND Not
Ahmad Kalhor- University of Tehran
30
Two Applications
Ahmad Kalhor- University of Tehran
31
Two Applications
Ahmad Kalhor- University of Tehran
32
End of the Introduction
Thank you
Ahmad Kalhor- University of Tehran
33