SlideShare a Scribd company logo
RNN
Recurrent Neural
Network
By: M. Sabouri
ACRRL
Applied Control & Robotics Research Laboratory of
Shiraz University
Department of Power and Control Engineering, Shiraz University, Fars, Iran.
Recurrent Neural Network
A Recurrent Neural Network (RNN) is a class of artificial neural
network that has memory or feedback loops that allow it to better
recognize patterns in data.
• Recurrent neural network (RNN) is a neural network model
proposed in the 80’s for modelling time series.
RNNs are an extension of regular artificial neural networks that add connections
feeding the hidden layers of the neural network back into themselves - these are called
recurrent connections.
Recurrent Neural Network
The structure of the network is similar to feedforward neural network, with t
he distinction that it allows a recurrent hidden state whose activation at each
time is dependent on that of the previous time (cycle).
Recurrent Neural Network
• Recurrent networks, on the other hand, take as their input not just the current input exa
mple they see, but also what they have perceived previously in time.
• This enables RNNs to have improved accuracy compared to MLPs, which only have t
he single input and no memory, RNNs can take several prior input and extrapolate out
with improved accuracy. In other words, RNNs take into consideration what it has lear
ned from prior inputs to classify the current input.
Some Example of Recurrent
Neural Network
The beauty of recurrent neural networks lies in their diversity of applicati
on. When we are dealing with RNNs they have a great ability to deal wit
h various input and output types.
• Sentiment Classification
• Image Captioning
• Language Translation
Some example of Recurrent
Neural Network
Sentiment Classification
This can be a task of simply classifying tweets into positive and negative sentiment. So he
re the input would be a tweet of varying lengths, while output is of a fixed type and size.
Some Example of Recurrent
Neural Network
• Image Captioning
Here, let’s say we have an image for which we need a textual description. So we have a si
ngle input – the image, and a series or sequence of words as output. Here the image might
be of a fixed size, but the output is a description of varying lengths
Some Example of Recurrent
Neural Network
• Language Translation
This basically means that we have some text in a particular language let’s say English, an
d we wish to translate it in French. Each language has it’s own semantics and would have
varying lengths for the same sentence. So here the inputs as well as outputs are of varying
lengths.
Recurrent Neural Network
So RNNs can be used for mapping inputs to outputs of varying types, lengths and are fairly
generalized in their application. Looking at their applications
Where to use a RNN?
• Language Modelling and Generating Text
Given a sequence of word, here we try to predict the likelihood of the next wo
rd. This is useful for translation since the most likely sentence would be the on
e that is correct.
• Machine Translation
Translating text from one language to other uses one or the other form of RN
N. All practical day systems use some advanced version of a RNN.
• Speech Recognition
Predicting phonetic segments based on input sound waves, thus formulating a
word.
Where to use a RNN?
• Generating Image Descriptions
A very big use case is to understand what is happening inside an image, thus
we have a good description. This works in a combination of CNN and RNN. C
NN does the segmentation and RNN then used the segmented data to recreat
e the description. It’s rudimentary but the possibilities are limitless.
• Video Tagging
This can be used for video search where we do image description of a video fr
ame by frame.
RNN VS FNN
Feed-forward Neural Netwo
rk
Multilayer Perceptron (MLP
Recurrent Neural Network (RNN)
Recurrent Neural Network
Recurrent Neural Network (RNN), with additional feed-forward la
yer
Mathematical Formulation
Recurrent neural networks learn from sequences. A sequence is define
d as a list of (xi,yi) pairs, where xi is the input at time i and yi is the d
esired output. Note that that is a single sequence; the entire data set co
nsists of many sequences.
Mathematical Formulation
In addition to the data in our data set, each time step has another input: the hidden state hi−1
from the previous time step. In this way, the recurrent neural network can maintain some int
ernal context as it progresses forward in the sequence. Thus, to summarize, at time i the rec
urren
t network has:
• Input vector xi (data)
• Output vector yi (data)
• Predicted output vector y^i(computed through forward propagation)
• Hidden state hi
Mathematical Formulation
When looking only at a single timestep, the recurrent network looks like a simple one-hidden-
layer feed forward network. It has an input layer for xi, an output layer for yi, and another inp
ut layer for the previous hidden state hi−1. Finally, it has one hidden layer between these. The
only unusual thing is that we have two input layers; both of the input layers are are connected
to the hidden layer as if they were really just a single layer.
Thus, we have three separate matrices of weights:
• Input-to-hidden weights Whx
• Hidden-to-hidden weights Whh
• Hidden-to-output weights Wyh
Mathematical Formulation
There are several things to note here. First of all, note that the predicted outputs are not su
bject to the nonlinearity. We may want to predict things other than the things in the range
of the nonlinearity, so instead we do not apply the nonlinearity. For specific use cases of r
ecurrent nets, this can be amended, and a nonlinearity specific to the problem can be chos
en. Finally, note that these equations are the same as the equations for a single hidden lay
er feed forward network, with the caveat that the input layer is broken into two pieces xi a
nd hi−1.
Expanded figure of Recurrent
Neural Network
Expanded figure of Recurrent
Neural Network
Kind Of RNN
Jordan RNN
Pro: Fast to train because can be parallelized in time
Cons:
• Output transforms hidden state → nonlinear effects, information distorted
• The output dimension may be too small → information in hidden states is t
runcated
Elman RNN
Often referenced as the basic RNN structure and called “Vanilla” RNN
• Should see complete sequence to be trained
• Can not be parallelized by timestamps
• Has some important training difficulties….
Vanilla RNN
The Vanilla RNN Cell and Network
BackPropagation Refresher!
Multiple Laye
rs
Chain Rule for Gradient Computat
RNN Problem
However, conventional RNNs have a few limitations. They are difficult to train and have a
very short-term memory, which limits their functionality. To overcome the memory limitatio
n, a newer form of RNN, known as LSTM or Long Short-term Memory networks are used.
LSTMs extend the memory RNNs to enable them to perform tasks involving longer-term m
emory.
References
https://www.analyticsvidhya.com
https://www.allerin.com/
http://andrew.gibiansky.com/
http://corochann.com/
Thank you
Mohammad Sabouri
You can find me at m.sabouri@shirazu.ac.ir

More Related Content

What's hot

Lstm
LstmLstm
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Edureka!
 
Introduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural Network
Yan Xu
 
Neural network
Neural networkNeural network
Neural network
Ramesh Giri
 
Quantum neural network
Quantum neural networkQuantum neural network
Quantum neural network
surat murthy
 
Rnn & Lstm
Rnn & LstmRnn & Lstm
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
Rakuten Group, Inc.
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
grinu
 
RNN and its applications
RNN and its applicationsRNN and its applications
RNN and its applications
Sungjoon Choi
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep Learning
Mohamed Loey
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
Sharath TS
 
Understanding RNN and LSTM
Understanding RNN and LSTMUnderstanding RNN and LSTM
Understanding RNN and LSTM
健程 杨
 
A Brief Introduction on Recurrent Neural Network and Its Application
A Brief Introduction on Recurrent Neural Network and Its ApplicationA Brief Introduction on Recurrent Neural Network and Its Application
A Brief Introduction on Recurrent Neural Network and Its Application
Xiaohu ZHU
 
CNN Tutorial
CNN TutorialCNN Tutorial
CNN Tutorial
Sungjoon Choi
 
Rnn and lstm
Rnn and lstmRnn and lstm
Rnn and lstm
Shreshth Saxena
 
Recurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: TheoryRecurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: Theory
Andrii Gakhov
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural Networks
Christian Perone
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
Gaurav Mittal
 
Recurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text AnalysisRecurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text Analysis
odsc
 
Deep Learning - CNN and RNN
Deep Learning - CNN and RNNDeep Learning - CNN and RNN
Deep Learning - CNN and RNN
Ashray Bhandare
 

What's hot (20)

Lstm
LstmLstm
Lstm
 
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
 
Introduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural Network
 
Neural network
Neural networkNeural network
Neural network
 
Quantum neural network
Quantum neural networkQuantum neural network
Quantum neural network
 
Rnn & Lstm
Rnn & LstmRnn & Lstm
Rnn & Lstm
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
 
RNN and its applications
RNN and its applicationsRNN and its applications
RNN and its applications
 
Convolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep LearningConvolutional Neural Network Models - Deep Learning
Convolutional Neural Network Models - Deep Learning
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
 
Understanding RNN and LSTM
Understanding RNN and LSTMUnderstanding RNN and LSTM
Understanding RNN and LSTM
 
A Brief Introduction on Recurrent Neural Network and Its Application
A Brief Introduction on Recurrent Neural Network and Its ApplicationA Brief Introduction on Recurrent Neural Network and Its Application
A Brief Introduction on Recurrent Neural Network and Its Application
 
CNN Tutorial
CNN TutorialCNN Tutorial
CNN Tutorial
 
Rnn and lstm
Rnn and lstmRnn and lstm
Rnn and lstm
 
Recurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: TheoryRecurrent Neural Networks. Part 1: Theory
Recurrent Neural Networks. Part 1: Theory
 
Deep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural NetworksDeep Learning - Convolutional Neural Networks
Deep Learning - Convolutional Neural Networks
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
Recurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text AnalysisRecurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text Analysis
 
Deep Learning - CNN and RNN
Deep Learning - CNN and RNNDeep Learning - CNN and RNN
Deep Learning - CNN and RNN
 

Similar to Recurrent Neural Network

Complete solution for Recurrent neural network.pptx
Complete solution for Recurrent neural network.pptxComplete solution for Recurrent neural network.pptx
Complete solution for Recurrent neural network.pptx
ArunKumar674066
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
Junaid Bhat
 
Convolutional Neural Network and RNN for OCR problem.
Convolutional Neural Network and RNN for OCR problem.Convolutional Neural Network and RNN for OCR problem.
Convolutional Neural Network and RNN for OCR problem.
Vishal Mishra
 
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
changedaeoh
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Engineering Intelligent NLP Applications Using Deep Learning – Part 2 Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Saurabh Kaushik
 
Deep Learning - RNN and CNN
Deep Learning - RNN and CNNDeep Learning - RNN and CNN
Deep Learning - RNN and CNN
Pradnya Saval
 
DEEPLEARNING recurrent neural networs.pdf
DEEPLEARNING recurrent neural networs.pdfDEEPLEARNING recurrent neural networs.pdf
DEEPLEARNING recurrent neural networs.pdf
AamirMaqsood8
 
Sequence Modelling with Deep Learning
Sequence Modelling with Deep LearningSequence Modelling with Deep Learning
Sequence Modelling with Deep Learning
Natasha Latysheva
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
RADO7900
 
Advanced Machine Learning
Advanced Machine LearningAdvanced Machine Learning
Advanced Machine Learning
ANANDBABUGOPATHOTI1
 
Lec10new
Lec10newLec10new
lec10new.ppt
lec10new.pptlec10new.ppt
lec10new.ppt
SumantKuch
 
Deep Learning: Application & Opportunity
Deep Learning: Application & OpportunityDeep Learning: Application & Opportunity
Deep Learning: Application & Opportunity
iTrain
 
Lecture on Deep Learning
Lecture on Deep LearningLecture on Deep Learning
Lecture on Deep Learning
Yasas Senarath
 
Artificial Neural Network in Medical Diagnosis
Artificial Neural Network in Medical DiagnosisArtificial Neural Network in Medical Diagnosis
Artificial Neural Network in Medical Diagnosis
Adityendra Kumar Singh
 
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
csandit
 
lepibwp74jd2rz.pdf
lepibwp74jd2rz.pdflepibwp74jd2rz.pdf
lepibwp74jd2rz.pdf
SajalTyagi6
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural Networks
Sangwoo Mo
 
Neural networks of artificial intelligence
Neural networks of artificial  intelligenceNeural networks of artificial  intelligence
Neural networks of artificial intelligence
alldesign
 
Applying Deep Learning Machine Translation to Language Services
Applying Deep Learning Machine Translation to Language ServicesApplying Deep Learning Machine Translation to Language Services
Applying Deep Learning Machine Translation to Language Services
Yannis Flet-Berliac
 

Similar to Recurrent Neural Network (20)

Complete solution for Recurrent neural network.pptx
Complete solution for Recurrent neural network.pptxComplete solution for Recurrent neural network.pptx
Complete solution for Recurrent neural network.pptx
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Convolutional Neural Network and RNN for OCR problem.
Convolutional Neural Network and RNN for OCR problem.Convolutional Neural Network and RNN for OCR problem.
Convolutional Neural Network and RNN for OCR problem.
 
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
Convolutional Neural Networks for Natural Language Processing / Stanford cs22...
 
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Engineering Intelligent NLP Applications Using Deep Learning – Part 2 Engineering Intelligent NLP Applications Using Deep Learning – Part 2
Engineering Intelligent NLP Applications Using Deep Learning – Part 2
 
Deep Learning - RNN and CNN
Deep Learning - RNN and CNNDeep Learning - RNN and CNN
Deep Learning - RNN and CNN
 
DEEPLEARNING recurrent neural networs.pdf
DEEPLEARNING recurrent neural networs.pdfDEEPLEARNING recurrent neural networs.pdf
DEEPLEARNING recurrent neural networs.pdf
 
Sequence Modelling with Deep Learning
Sequence Modelling with Deep LearningSequence Modelling with Deep Learning
Sequence Modelling with Deep Learning
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
 
Advanced Machine Learning
Advanced Machine LearningAdvanced Machine Learning
Advanced Machine Learning
 
Lec10new
Lec10newLec10new
Lec10new
 
lec10new.ppt
lec10new.pptlec10new.ppt
lec10new.ppt
 
Deep Learning: Application & Opportunity
Deep Learning: Application & OpportunityDeep Learning: Application & Opportunity
Deep Learning: Application & Opportunity
 
Lecture on Deep Learning
Lecture on Deep LearningLecture on Deep Learning
Lecture on Deep Learning
 
Artificial Neural Network in Medical Diagnosis
Artificial Neural Network in Medical DiagnosisArtificial Neural Network in Medical Diagnosis
Artificial Neural Network in Medical Diagnosis
 
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
EXPERIMENTS ON DIFFERENT RECURRENT NEURAL NETWORKS FOR ENGLISH-HINDI MACHINE ...
 
lepibwp74jd2rz.pdf
lepibwp74jd2rz.pdflepibwp74jd2rz.pdf
lepibwp74jd2rz.pdf
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural Networks
 
Neural networks of artificial intelligence
Neural networks of artificial  intelligenceNeural networks of artificial  intelligence
Neural networks of artificial intelligence
 
Applying Deep Learning Machine Translation to Language Services
Applying Deep Learning Machine Translation to Language ServicesApplying Deep Learning Machine Translation to Language Services
Applying Deep Learning Machine Translation to Language Services
 

More from Mohammad Sabouri

Extremely low-cost lower limb prostheses_G12.pptx
Extremely low-cost lower limb prostheses_G12.pptxExtremely low-cost lower limb prostheses_G12.pptx
Extremely low-cost lower limb prostheses_G12.pptx
Mohammad Sabouri
 
MECHANICAL DESIGN METHODS IN ROBOTICS.pptx
MECHANICAL DESIGN METHODS IN ROBOTICS.pptxMECHANICAL DESIGN METHODS IN ROBOTICS.pptx
MECHANICAL DESIGN METHODS IN ROBOTICS.pptx
Mohammad Sabouri
 
Human Computer Interaction (HCI).pptx
Human Computer Interaction (HCI).pptxHuman Computer Interaction (HCI).pptx
Human Computer Interaction (HCI).pptx
Mohammad Sabouri
 
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptxIntelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
Mohammad Sabouri
 
Introducing the services of Iran Patent Center- PDF
Introducing the services of Iran Patent Center- PDFIntroducing the services of Iran Patent Center- PDF
Introducing the services of Iran Patent Center- PDF
Mohammad Sabouri
 
Introduction to Lens database -in Persian (powerful site for searching)
Introduction to Lens database -in Persian (powerful site for searching)Introduction to Lens database -in Persian (powerful site for searching)
Introduction to Lens database -in Persian (powerful site for searching)
Mohammad Sabouri
 
CV_ nov.2019
CV_ nov.2019CV_ nov.2019
CV_ nov.2019
Mohammad Sabouri
 
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
Mohammad Sabouri
 
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
Mohammad Sabouri
 
Traffic monitoring using drone_ACRRL_Shiraz University
Traffic monitoring using drone_ACRRL_Shiraz UniversityTraffic monitoring using drone_ACRRL_Shiraz University
Traffic monitoring using drone_ACRRL_Shiraz University
Mohammad Sabouri
 
Robotic introduction
Robotic introductionRobotic introduction
Robotic introduction
Mohammad Sabouri
 
Labview2_Computer Applications in Control_ACRRL
Labview2_Computer Applications in Control_ACRRLLabview2_Computer Applications in Control_ACRRL
Labview2_Computer Applications in Control_ACRRL
Mohammad Sabouri
 
Labview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRLLabview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRL
Mohammad Sabouri
 
Spoofing attack on PMU (Phasor measurement unit)
Spoofing attack on PMU (Phasor measurement unit)Spoofing attack on PMU (Phasor measurement unit)
Spoofing attack on PMU (Phasor measurement unit)
Mohammad Sabouri
 
Haptic technology ppt
Haptic technology pptHaptic technology ppt
Haptic technology ppt
Mohammad Sabouri
 

More from Mohammad Sabouri (15)

Extremely low-cost lower limb prostheses_G12.pptx
Extremely low-cost lower limb prostheses_G12.pptxExtremely low-cost lower limb prostheses_G12.pptx
Extremely low-cost lower limb prostheses_G12.pptx
 
MECHANICAL DESIGN METHODS IN ROBOTICS.pptx
MECHANICAL DESIGN METHODS IN ROBOTICS.pptxMECHANICAL DESIGN METHODS IN ROBOTICS.pptx
MECHANICAL DESIGN METHODS IN ROBOTICS.pptx
 
Human Computer Interaction (HCI).pptx
Human Computer Interaction (HCI).pptxHuman Computer Interaction (HCI).pptx
Human Computer Interaction (HCI).pptx
 
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptxIntelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
Intelligent Decision Making Assistant (IDMA) for SAL improvement.pptx
 
Introducing the services of Iran Patent Center- PDF
Introducing the services of Iran Patent Center- PDFIntroducing the services of Iran Patent Center- PDF
Introducing the services of Iran Patent Center- PDF
 
Introduction to Lens database -in Persian (powerful site for searching)
Introduction to Lens database -in Persian (powerful site for searching)Introduction to Lens database -in Persian (powerful site for searching)
Introduction to Lens database -in Persian (powerful site for searching)
 
CV_ nov.2019
CV_ nov.2019CV_ nov.2019
CV_ nov.2019
 
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
Icbme2020- Use of neural network algorithms to predict arterial blood gas ite...
 
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
Prediction of Arterial Blood Gases(ABG) by Using Neural Network In Trauma Pat...
 
Traffic monitoring using drone_ACRRL_Shiraz University
Traffic monitoring using drone_ACRRL_Shiraz UniversityTraffic monitoring using drone_ACRRL_Shiraz University
Traffic monitoring using drone_ACRRL_Shiraz University
 
Robotic introduction
Robotic introductionRobotic introduction
Robotic introduction
 
Labview2_Computer Applications in Control_ACRRL
Labview2_Computer Applications in Control_ACRRLLabview2_Computer Applications in Control_ACRRL
Labview2_Computer Applications in Control_ACRRL
 
Labview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRLLabview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRL
 
Spoofing attack on PMU (Phasor measurement unit)
Spoofing attack on PMU (Phasor measurement unit)Spoofing attack on PMU (Phasor measurement unit)
Spoofing attack on PMU (Phasor measurement unit)
 
Haptic technology ppt
Haptic technology pptHaptic technology ppt
Haptic technology ppt
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 

Recently uploaded (20)

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 

Recurrent Neural Network

  • 2. ACRRL Applied Control & Robotics Research Laboratory of Shiraz University Department of Power and Control Engineering, Shiraz University, Fars, Iran.
  • 3. Recurrent Neural Network A Recurrent Neural Network (RNN) is a class of artificial neural network that has memory or feedback loops that allow it to better recognize patterns in data. • Recurrent neural network (RNN) is a neural network model proposed in the 80’s for modelling time series. RNNs are an extension of regular artificial neural networks that add connections feeding the hidden layers of the neural network back into themselves - these are called recurrent connections.
  • 4. Recurrent Neural Network The structure of the network is similar to feedforward neural network, with t he distinction that it allows a recurrent hidden state whose activation at each time is dependent on that of the previous time (cycle).
  • 5. Recurrent Neural Network • Recurrent networks, on the other hand, take as their input not just the current input exa mple they see, but also what they have perceived previously in time. • This enables RNNs to have improved accuracy compared to MLPs, which only have t he single input and no memory, RNNs can take several prior input and extrapolate out with improved accuracy. In other words, RNNs take into consideration what it has lear ned from prior inputs to classify the current input.
  • 6. Some Example of Recurrent Neural Network The beauty of recurrent neural networks lies in their diversity of applicati on. When we are dealing with RNNs they have a great ability to deal wit h various input and output types. • Sentiment Classification • Image Captioning • Language Translation
  • 7. Some example of Recurrent Neural Network Sentiment Classification This can be a task of simply classifying tweets into positive and negative sentiment. So he re the input would be a tweet of varying lengths, while output is of a fixed type and size.
  • 8. Some Example of Recurrent Neural Network • Image Captioning Here, let’s say we have an image for which we need a textual description. So we have a si ngle input – the image, and a series or sequence of words as output. Here the image might be of a fixed size, but the output is a description of varying lengths
  • 9. Some Example of Recurrent Neural Network • Language Translation This basically means that we have some text in a particular language let’s say English, an d we wish to translate it in French. Each language has it’s own semantics and would have varying lengths for the same sentence. So here the inputs as well as outputs are of varying lengths.
  • 10. Recurrent Neural Network So RNNs can be used for mapping inputs to outputs of varying types, lengths and are fairly generalized in their application. Looking at their applications
  • 11. Where to use a RNN? • Language Modelling and Generating Text Given a sequence of word, here we try to predict the likelihood of the next wo rd. This is useful for translation since the most likely sentence would be the on e that is correct. • Machine Translation Translating text from one language to other uses one or the other form of RN N. All practical day systems use some advanced version of a RNN. • Speech Recognition Predicting phonetic segments based on input sound waves, thus formulating a word.
  • 12. Where to use a RNN? • Generating Image Descriptions A very big use case is to understand what is happening inside an image, thus we have a good description. This works in a combination of CNN and RNN. C NN does the segmentation and RNN then used the segmented data to recreat e the description. It’s rudimentary but the possibilities are limitless. • Video Tagging This can be used for video search where we do image description of a video fr ame by frame.
  • 13. RNN VS FNN Feed-forward Neural Netwo rk Multilayer Perceptron (MLP Recurrent Neural Network (RNN)
  • 14. Recurrent Neural Network Recurrent Neural Network (RNN), with additional feed-forward la yer
  • 15. Mathematical Formulation Recurrent neural networks learn from sequences. A sequence is define d as a list of (xi,yi) pairs, where xi is the input at time i and yi is the d esired output. Note that that is a single sequence; the entire data set co nsists of many sequences.
  • 16. Mathematical Formulation In addition to the data in our data set, each time step has another input: the hidden state hi−1 from the previous time step. In this way, the recurrent neural network can maintain some int ernal context as it progresses forward in the sequence. Thus, to summarize, at time i the rec urren t network has: • Input vector xi (data) • Output vector yi (data) • Predicted output vector y^i(computed through forward propagation) • Hidden state hi
  • 17. Mathematical Formulation When looking only at a single timestep, the recurrent network looks like a simple one-hidden- layer feed forward network. It has an input layer for xi, an output layer for yi, and another inp ut layer for the previous hidden state hi−1. Finally, it has one hidden layer between these. The only unusual thing is that we have two input layers; both of the input layers are are connected to the hidden layer as if they were really just a single layer. Thus, we have three separate matrices of weights: • Input-to-hidden weights Whx • Hidden-to-hidden weights Whh • Hidden-to-output weights Wyh
  • 18. Mathematical Formulation There are several things to note here. First of all, note that the predicted outputs are not su bject to the nonlinearity. We may want to predict things other than the things in the range of the nonlinearity, so instead we do not apply the nonlinearity. For specific use cases of r ecurrent nets, this can be amended, and a nonlinearity specific to the problem can be chos en. Finally, note that these equations are the same as the equations for a single hidden lay er feed forward network, with the caveat that the input layer is broken into two pieces xi a nd hi−1.
  • 19. Expanded figure of Recurrent Neural Network
  • 20. Expanded figure of Recurrent Neural Network
  • 22. Jordan RNN Pro: Fast to train because can be parallelized in time Cons: • Output transforms hidden state → nonlinear effects, information distorted • The output dimension may be too small → information in hidden states is t runcated
  • 23. Elman RNN Often referenced as the basic RNN structure and called “Vanilla” RNN • Should see complete sequence to be trained • Can not be parallelized by timestamps • Has some important training difficulties….
  • 25. The Vanilla RNN Cell and Network
  • 27. Multiple Laye rs Chain Rule for Gradient Computat
  • 28. RNN Problem However, conventional RNNs have a few limitations. They are difficult to train and have a very short-term memory, which limits their functionality. To overcome the memory limitatio n, a newer form of RNN, known as LSTM or Long Short-term Memory networks are used. LSTMs extend the memory RNNs to enable them to perform tasks involving longer-term m emory.
  • 31. Mohammad Sabouri You can find me at m.sabouri@shirazu.ac.ir