JOURNAL ARTICLE

Sales forecasting using long short term memory networks

Abstract

The Annapolis Cider Company would like to estimate their future hourly and daily sales based on their historical sales, date and time, weather conditions and knowledge of special events in Annapolis Valley. This study uses machine learning methods to predict hourly and daily sales for up to two days in advance. The Annapolis Cider Company has provided sales data stored in their POS system for up to four years. Both observed and forecast weather data have been retrieved from the Dark Sky website. Special event data has been extracted from various online calendars from the web. This study focues on the performance of LSTM neural networks compared to ARIMA, persistence and Avg6Week models. Mean absolute error (MAE) and mean absolute percentage error (MAPE) are used to evaluate the performance of each model. The LSTM daily prediction model provides the lowest test MAE of $597.93 and test MAPE of 19.7% on daily basis. It decreases the test error by 22.6% compared with a persistence daily model. The LSTM hourly prediction model has the lowest test MAE of $51.59 and MAPE of 40.8% on an hourly basis, which is 17.2% lower than the persistence hourly model.

Keywords:
Mean absolute percentage error Artificial neural network Persistence (discontinuity) Test (biology) Event (particle physics) Mean absolute error Term (time) Long short term memory Recurrent neural network

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.45
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Geochemistry and Geologic Mapping
Physical Sciences →  Computer Science →  Artificial Intelligence
Geological and Geophysical Studies
Physical Sciences →  Earth and Planetary Sciences →  Geology
Geological Modeling and Analysis
Physical Sciences →  Earth and Planetary Sciences →  Geochemistry and Petrology
© 2026 ScienceGate Book Chapters — All rights reserved.