Next Article in Journal
Quantitative Assessment of Trace and Macro Element Compositions of Cassava (Manihot esculenta) Storage Roots Enriched with Β-Carotene as Influenced by Genotypes and Growing Locations
Previous Article in Journal
Alternatives to Synthetic Insecticides in the Control of the Colorado Potato Beetle (Leptinotarsa decemlineata Say) and Their Environmental Benefits
Article

STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM

1
Department of Computer Science and Engineering, Sejong University, Seoul 05006, Korea
2
Department of Bioresources Engineering, Sejong University, Seoul 05006, Korea
3
Supply & Demand Management Office, Integrated Information System Team, Korea Agro-Fisheries & Food Trade Corporation, Naju 58326, Korea
*
Author to whom correspondence should be addressed.
Agriculture 2020, 10(12), 612; https://doi.org/10.3390/agriculture10120612
Received: 2 November 2020 / Revised: 4 December 2020 / Accepted: 5 December 2020 / Published: 8 December 2020
It is difficult to forecast vegetable prices because they are affected by numerous factors, such as weather and crop production, and the time-series data have strong non-linear and non-stationary characteristics. To address these issues, we propose the STL-ATTLSTM (STL-Attention-based LSTM) model, which integrates the seasonal trend decomposition using the Loess (STL) preprocessing method and attention mechanism based on long short-term memory (LSTM). The proposed STL-ATTLSTM forecasts monthly vegetable prices using various types of information, such as vegetable prices, weather information of the main production areas, and market trading volumes. The STL method decomposes time-series vegetable price data into trend, seasonality, and remainder components. It uses the remainder component by removing the trend and seasonality components. In the model training process, attention weights are assigned to all input variables; thus, the model’s prediction performance is improved by focusing on the variables that affect the prediction results. The proposed STL-ATTLSTM was applied to five crops, namely cabbage, radish, onion, hot pepper, and garlic, and its performance was compared to three benchmark models (i.e., LSTM, attention LSTM, and STL-LSTM). The performance results show that the LSTM model combined with the STL method (STL-LSTM) achieved a 12% higher prediction accuracy than the attention LSTM model that did not use the STL method and solved the prediction lag arising from high seasonality. The attention LSTM model improved the prediction accuracy by approximately 4% to 5% compared to the LSTM model. The STL-ATTLSTM model achieved the best performance, with an average root mean square error (RMSE) of 380, and an average mean absolute percentage error (MAPE) of 7%. View Full-Text
Keywords: attention mechanism; deep learning; LSTM; STL; vegetable price forecasting attention mechanism; deep learning; LSTM; STL; vegetable price forecasting
Show Figures

Figure 1

MDPI and ACS Style

Yin, H.; Jin, D.; Gu, Y.H.; Park, C.J.; Han, S.K.; Yoo, S.J. STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM. Agriculture 2020, 10, 612. https://doi.org/10.3390/agriculture10120612

AMA Style

Yin H, Jin D, Gu YH, Park CJ, Han SK, Yoo SJ. STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM. Agriculture. 2020; 10(12):612. https://doi.org/10.3390/agriculture10120612

Chicago/Turabian Style

Yin, Helin, Dong Jin, Yeong H. Gu, Chang J. Park, Sang K. Han, and Seong J. Yoo 2020. "STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM" Agriculture 10, no. 12: 612. https://doi.org/10.3390/agriculture10120612

Find Other Styles
Note that from the first issue of 2016, MDPI journals use article numbers instead of page numbers. See further details here.

Article Access Map by Country/Region

1
Back to TopTop