4. 1. What is RNN ?
● A recurrent neural network (RNN) is a type of artificial neural network
which uses sequential data or time series data such as : Stock Price ,
Weather Data and Text.
● They are distinguished by their “memory” as they take information
from prior inputs to influence the current input and output , While
traditional deep neural networks assume that inputs and outputs are
independent of each other. (meaning of recurrent)
7. Why to use RNN ?
1. Sequential Data Processing: RNNs are designed to work with data that
occurs in a specific order, like text, time series, audio, or video.
2. Temporal Relationships: They are effective at modeling and
understanding temporal relationships in data, making them suitable for
tasks like predicting the next word in a sentence, recognizing speech, or
forecasting stock prices.
3. Variable-Length Sequences: RNNs can handle sequences of varying
lengths, making them flexible for tasks like language translation or
sentiment analysis on different-length sentences.
8. Why to use RNN ?
4. Contextual Understanding:RNNs maintain an internal state that allows them to
remember and utilize information from previous time steps, enabling them to consider
context when making predictions.
5. Natural Language Processing:RNNs are widely used in natural language processing tasks
like language generation, sentiment analysis, and machine translation, where
understanding the context of words in a sentence is crucial.
In summary, RNNs are used to process and understand data that unfolds over time, making
them a valuable tool for tasks involving sequences and temporal dependencies.
10. When to use RNN ?
● Sequential Data: Use RNNs for tasks where the order of data
matters, such as time series analysis, natural language
processing, speech recognition, and video analysis.
● Variable-Length Sequences: RNNs are suitable for handling
sequences of varying lengths, making them flexible for tasks
like text classification or speech synthesis.
11. When to use RNN ?(2)
● Real-time Data Processing: RNNs are appropriate for
real-time applications like speech recognition and video
analysis, where data arrives sequentially and predictions
must be made incrementally.
● Small to Medium-sized Datasets: RNNs can perform well
with smaller datasets, as they can leverage their ability to
capture sequential patterns effectively.
12. When not to use RNN ?
● Long Dependencies: RNNs struggle with capturing very long-range
dependencies in data. If your task involves very long sequences.
● Structured Data: For structured data with well-defined features and no
inherent sequential order, traditional machine learning algorithms or
feedforward neural networks may be more suitable.
In summary, RNNs are valuable tool for tasks involving sequential data, but
they have limitations, and the choice of architecture depends on the specific
characteristics and requirements of your problem. Consider the nature of
your data and the challenges it presents when deciding whether to use RNNs
or explore alternative neural network architectures.
13. Applications on RNN.
1. Weather Forecasting
2. ChatBots
3. NLP (Natural Language Processing)=>(Text Generation , Machine
Translation)
4. Speech Recognition
5. Stock Market Prediction
6. Handwriting Recognition
7. HealthCare
8. Recommendation Systems
9. etc.