and an output gate. These gates can be thought of as
filters. More details about RNN and LSTM can be
found in (Salehinejad et al., 2017) and (Van Houdt
et al., 2020).
In this paper, we study real-world data from
our partner organization and investigate the effect of
adding non-sequential features to the model. The ob-
jective is to increase the forecast accuracy. For this,
we use three static features, the production month,
the temperature, and the number of rainy days, as
additional static features and study different ways to
incorporate them in a sequential LSTM framework.
Notably, the production month was derived from the
DateTime information in the dataset. In fact, food
production has a seasonal effect and is influenced by
the month of its production, and thus, we have in-
corporated it as a parameter to emphasize its impor-
tance. Additionally, we augmented the dataset by
integrating other static features, temperature and the
number of rainy days, from different sources to cap-
ture the influence of weather conditions on productiv-
ity. By considering these factors, we expect to gain
a deeper understanding of the complex interplay be-
tween weather and food production, resulting in more
accurate forecast.
We investigate two ways of incorporating those static
features into the sequential model.
1. By replicating the static feature in the sequence as
a fixed temporal parameter
2. By designing a multi-headed network with an ad-
ditional feed-forward layer to consider the fixed
parameter input.
The rest of the paper is organized as follows. Sec-
tion 2 presents the background of the applied LSTM
model and reviews some of the previous work done in
this area. Section 3 presents the methodology, where
two proposed approach of incorporating static fea-
tures in the sequential model is described. Section
4 describes experimental setups and presents the re-
sults. Finally, section 5 summarizes the paper and
highlights future work.
2 BACKGROUND
Time series are generally affected by four essential
components: trend, seasonal, cyclical, and irregular
components. When a time series exhibits an upward
or downward movement in the long run, it can be
asserted that the series has a general trend. Gener-
ally, the trend is a Long-term increase or decrease
in the data over time. When a series is affected by
seasonal factors, a seasonality pattern exists, such as
quarterly, yearly, monthly, weekly, and daily patterns.
The cyclic occurs when data rises and falls, which
means it is not a fixed period. The cycle duration is
over a long period, which may be two years or more.
The irregular component, sometimes known as the
residual, refers to the variation that exists because of
unpredictable factors. More details about the time se-
ries and its components can be found in (Jose, 2022).
Many different ML techniques are used to solve dif-
ferent time series forecasting problems. The authors
of (Mahmud and Mohammed, 2021) conduct a survey
that studies and compares the efficacy of time series
models to make predictions of real data. According
to the authors, LSTMs have proven to perform well
and are relatively easy to train. Therefore, LSTMs
have become the baseline architecture for tasks where
it is necessary to process sequential data with tempo-
ral information. An application of forecasting finan-
cial data was reported with two tested models, LSTM
and ARIMA, where the results show that LSTM was
a better predictor than ARIMA. LSTM was the best
approach for another reported application by Fischer
and Krauss (Fischer and Krauss, 2018) for stock pre-
diction. LSTM was compared to memory-free algo-
rithms such as Random Forest (Liu et al., 2012), Lo-
gistic Regression Classifier (Peng et al., 2002), and
Deep Neural Network (Burden and Winkler, 2009).
Some approaches have also been proposed in litera-
ture targeting food production forecasting. One ex-
ample can be found in (Kamran et al., 2019), where
the authors predict Wheat Production in Pakistan us-
ing LSTM. Their proposed mechanism was compared
with a few existing models in the literature, such as
ARIMA and RNN. They concluded that the proposed
LSTM model achieves better performance in terms
of forecasting. Another approach was proposed in
(Livieris et al., 2020) for predicting the future prices
of gold using a combination of Convolutional Neu-
ral Networks (CNN) and LSTM networks. The CNN
component of the model is responsible for extract-
ing relevant features from the input data, while The
LSTM component takes the sequential nature of the
time series into account and captures long-term de-
pendencies by learning from past data. The experi-
mental results show that the CNN-LSTM model out-
performs the other models in terms of forecasting ac-
curacy. It demonstrates the ability to capture both lo-
cal and global patterns in the gold price time series,
leading to more accurate predictions. Moreover, a
novel approach was proposed in (Sagheer and Kotb,
2019), where a method for predicting petroleum pro-
duction using deep LSTM (DLSTM) was presented.
The proposed architecture could capture the complex
patterns and dynamics present in petroleum produc-
Testing Variants of LSTM Networks for a Production Forecasting Problem
525