Skip to main content

Recurrent Neural Networks

  • Chapter
  • First Online:
Image Machine Learning with Python

Abstract

The information flow in a classical ANN is from the input layer to hidden layers and then to the output layer. An ANN with such a ow of information is referred to as a feed-forward network. Such a network, however, has a major limitation in that it is not able to capture dependencies among sequential observations such as time-series. This is because the network has no memory and, as a result, observations are implicitly assumed to be independent.

Recurrent neural networks (RNNs) are fundamentally different from the feed-forward networks in that they operate not only based on input observations, but also on a set of internal states. The internal states capture the past information in sequences that have already been processed by the network. That is to say, the network includes a cycle that allows keeping past information for an amount of time that is not fixed a-priori and, instead, depends on its input observations and weights. Therefore, in contrast with other common architectures used in deep learning, RNN is capable of learning sequential dependencies extended over time. As a result, it has been extensively used for applications involving analyzing sequential data such as time-series, machine translation, and text and handwritten generation. In this chapter, we first cover fundamental concepts in RNNs including standard RNN, stacked RNN, long short-term memory (LSTM), gated recurrent unit (GRU), and vanishing and exploding gradient problems. We then present an application of RNNs for sentiment classification.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from $39.99 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 55.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Free shipping worldwide - view details
Hardcover Book
USD 76.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Free shipping worldwide - view details

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Zollanvari, A. (2023). Recurrent Neural Networks. In: Machine Learning with Python. Springer, Cham. https://doi.org/10.1007/978-3-031-33342-2_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33342-2_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33341-5

  • Online ISBN: 978-3-031-33342-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Profiles

  1. Amin Zollanvari