TY - CONF
T1 - An Open Source and Reproducible Implementation of LSTM and GRU Networks for Time Series Forecasting †
AU - Velarde, Gissel
AU - Brañez, Pedro
AU - Bueno, Alejandro
AU - Heredia, Rodrigo
AU - Lopez-Ledezma, Mateo
N1 - Publisher Copyright:
© 2022 by the authors.
PY - 2022/6
Y1 - 2022/6
N2 - This paper introduces an open source and reproducible implementation of Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks for time series forecasting. We evaluated LSTM and GRU networks because of their performance reported in related work. We describe our method and its results on two datasets. The first dataset is the S&P BSE BANKEX, composed of stock time series (closing prices) of ten financial institutions. The second dataset, called Activities, comprises ten synthetic time series resembling weekly activities with five days of high activity and two days of low activity. We report Root Mean Squared Error ((Formula presented.)) between actual and predicted values, as well as Directional Accuracy ((Formula presented.)). We show that a single time series from a dataset can be used to adequately train the networks if the sequences in the dataset contain patterns that repeat, even with certain variation, and are properly processed. For 1-step ahead and 20-step ahead forecasts, LSTM and GRU networks significantly outperform a baseline on the Activities dataset. The baseline simply repeats the last available value. On the stock market dataset, the networks perform just as the baseline, possibly due to the nature of these series. We release the datasets used as well as the implementation with all experiments performed to enable future comparisons and to make our research reproducible.
AB - This paper introduces an open source and reproducible implementation of Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks for time series forecasting. We evaluated LSTM and GRU networks because of their performance reported in related work. We describe our method and its results on two datasets. The first dataset is the S&P BSE BANKEX, composed of stock time series (closing prices) of ten financial institutions. The second dataset, called Activities, comprises ten synthetic time series resembling weekly activities with five days of high activity and two days of low activity. We report Root Mean Squared Error ((Formula presented.)) between actual and predicted values, as well as Directional Accuracy ((Formula presented.)). We show that a single time series from a dataset can be used to adequately train the networks if the sequences in the dataset contain patterns that repeat, even with certain variation, and are properly processed. For 1-step ahead and 20-step ahead forecasts, LSTM and GRU networks significantly outperform a baseline on the Activities dataset. The baseline simply repeats the last available value. On the stock market dataset, the networks perform just as the baseline, possibly due to the nature of these series. We release the datasets used as well as the implementation with all experiments performed to enable future comparisons and to make our research reproducible.
KW - forecasting
KW - open source
KW - reproducibility
KW - time series
UR - https://www.scopus.com/pages/publications/85145409484
U2 - 10.3390/engproc2022018030
DO - 10.3390/engproc2022018030
M3 - Paper
AN - SCOPUS:85145409484
SP - 1
EP - 9
ER -