Intro_deep_learning_week_1
Intro_deep_learning_week_1
Course Outline
1. Introduction to Deep Learning
2. Training Neural Networks
3. Optimization Using Neural Networks
4. Convolution Neural Networks (CNNs)
5. Recurrent Neural Networks (RNNs)
6. Natural Neural Networks Using Deep Learning
7. Self-attention and the transformer
8. Topics in Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 2
Deep Learning Chapter 1: Introduction to Deep Learning
Deep learning is in fact a new name for an approach to artificial intelligence called neural
networks.
LAU – School of Arts and Science Department of Computer Science and Maths 3
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 4
Deep Learning Chapter 1: Introduction to Deep Learning
• When a neuron receives a stimulus with high enough voltage, it emits an action
potential (aka, nerve impulse or spike). It is said to fire.
• the connections between neurons are highly complex, diverse and very flexible,
and the strength of the connections can be modified by a variety of factors,
including learning and experience.
LAU – School of Arts and Science Department of Computer Science and Maths 6
Deep Learning Chapter 1: Introduction to Deep Learning
A simple neuronal network in McCullogh and Pitts notation, and its truth table.
The state of each neuron is indicated by Ni.
LAU – School of Arts and Science Department of Computer Science and Maths 7
Deep Learning Chapter 1: Introduction to Deep Learning
McCulloch and Pitts decided on this architecture based on what it was known
at the time about the function of biological neurons.
LAU – School of Arts and Science Department of Computer Science and Maths 8
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 9
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 10
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 11
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 12
Deep Learning Chapter 1: Introduction to Deep Learning
Rosenblatt Perceptron.
The Perceptron. Source: Wikipedia Source: https://commons.wikimedia.org/wiki/File:Rosenblattperceptron.png
LAU – School of Arts and Science Department of Computer Science and Maths 13
Deep Learning Chapter 1: Introduction to Deep Learning
• Weighted sum: He changed the MCP neuron's activation rule, which was based on
reaching a threshold, to a rule that fires if a weighted sum plus a bias is reached. The
threshold Ɵ is computed automatically
• Machine learning: He introduced the perception learning rule, The learning rule allowed
the perceptron to learn from examples, adjust its weights, and make predictions based
on its inputs.
LAU – School of Arts and Science Department of Computer Science and Maths 14
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 15
Deep Learning Chapter 1: Introduction to Deep Learning
• The addition of the bias term is helpful because it serves as another model
parameter (in addition to weights) that can be tuned to make the model’s
performance on training data as good as possible. It also provide the perceptron
with additional flexibility in modeling complex patterns in the input data.
• The default input value for the bias weight is 1 and the weight value is adjustable.
LAU – School of Arts and Science Department of Computer Science and Maths 16
Deep Learning Chapter 1: Introduction to Deep Learning
• The neuron makes a prediction, and an error is calculated. The perceptron learning rule
is then applied to update the weights of the model in order to reduce the error for the
given example.
• The perceptron learning rule consists of minimizing the difference between desired and
actual output.
LAU – School of Arts and Science Department of Computer Science and Maths 17
Deep Learning Chapter 1: Introduction to Deep Learning
4. Repeat steps 2-3 for all the training examples until the perceptron makes no more
mistakes.
LAU – School of Arts and Science Department of Computer Science and Maths 18
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 19
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 20
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 21
Deep Learning Chapter 1: Introduction to Deep Learning
• Impossible to learn an XOR function using a single perceptron. (XOR function is not linearly
separable).
• They basically said: this approach was a dead end. This publication was believed to lead to the
first AI winter - a freeze to funding and publications.
• The Neural networks with a hidden layer (multi-layer perceptrons) Become popular
- Train by "backpropagating errors"
- Have a non-linearity between layers (allows representation of arbitrary functions)
• The introduction of the multilayer perceptron (MLP) and the backpropagation algorithm
brought new life to neural networks. Multi-layer perceptrons can model arbitrarily
complex Boolean functions.
LAU – School of Arts and Science Department of Computer Science and Maths 23
Deep Learning Chapter 1: Introduction to Deep Learning
• Multi-layer neural networks trained with back-propagation don’t work well, especially
compared to simpler models.
LAU – School of Arts and Science Department of Computer Science and Maths 24
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 25
Deep Learning Chapter 1: Introduction to Deep Learning
• AI ethics is a multidisciplinary field that studies how to optimize AI's beneficial impact
while reducing risks and adverse outcomes.
• Examples of AI ethics issues include data responsibility and privacy, fairness, explainability,
robustness, transparency, environmental sustainability, inclusion, moral agency, value
alignment, accountability, trust, and technology misuse.
LAU – School of Arts and Science Department of Computer Science and Maths 26
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 27
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 28
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 29
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 30
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 31
Deep Learning Chapter 1: Introduction to Deep Learning
AI privacy
Data Collection and Surveillance
Invasive Technologies
Profiling and Predictive
Analytics Voice and Speech Recognition
Algorithmic Bias and Discrimination
Regulatory Compliance [GDPR]
Data Encryption and Security Measures
User Consent and Control Transparency and Explainability
LAU – School of Arts and Science Department of Computer Science and Maths 32
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 33
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 34
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 35
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 36
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 37
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 38
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 39
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 40
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 41
Deep Learning Chapter 1: Introduction to Deep Learning
• Machine Translation
• Sentiment Analysis
• Dialogue Agents
• Question Answering
• Text Classification
LAU – School of Arts and Science Department of Computer Science and Maths 42
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 43
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 44
Deep Learning Chapter 1: Introduction to Deep Learning
LAU – School of Arts and Science Department of Computer Science and Maths 45