Time Series Forecasting Using Hybrid CNN - RNN

A hybrid convolutional neural network - recurrent neural network (RNN) for time series prediction is implemented.
3.6K Downloads
Updated 27 May 2021

View License

This example aims to present the concept of combining a convolutional neural network (CNN) with a recurrent neural network (RNN) to predict the number of chickenpox cases based on previous months.
The CNN is an excellent net for feature extractions while a RNN have proved its ability to predict values in sequence-to-sequence series. At each time step the CNN extracts the main features of the sequence while the RNN learn to predict the next value on the next time step.
Please rate this contribution if you think that in some how it helps you. Thank you.

Cite As

H Sanchez (2024). Time Series Forecasting Using Hybrid CNN - RNN (https://www.mathworks.com/matlabcentral/fileexchange/91360-time-series-forecasting-using-hybrid-cnn-rnn), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.13

A hybrid Xception - RNN network is included in this new version. Notice Xception requires high computing power for training. Using last Gen AMD processor and last gen Nvidia 3080 may take around 30 mins to train the network.

1.0.12

A feedforward network options for prediction has been included. It is shown the process of data preparation process for a univariate time series forecasting.

1.0.11

A hybrid ResNet50-RNN was included in this example.
The example includes horizon to predict the values beyond the testing data. It now predicts unobservable values beyond the limit of the testing sequence.
Better documented and explained.

1.0.2

A hybrid ResNet50-RNN was included in this example.
The example includes horizon to predict the values beyond the testing data. It now predicts unobservable values beyond the limit of the testing sequence.
Better documented and explained.

1.0.1

A hybrid ResNet50-RNN was included in this example.
The example includes horizon to predict the values beyond the testing data. It now predicts unobservable values beyond the limit of the testing sequence.
Better documented and explained.

1.0.0