EconPapers    
Economics at your fingertips  
 

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

Helin Yin, Dong Jin, Yeong Hyeon Gu, Chang Jin Park, Sang Keun Han and Seong Joon Yoo
Additional contact information
Helin Yin: Department of Computer Science and Engineering, Sejong University, Seoul 05006, Korea
Dong Jin: Department of Computer Science and Engineering, Sejong University, Seoul 05006, Korea
Yeong Hyeon Gu: Department of Computer Science and Engineering, Sejong University, Seoul 05006, Korea
Chang Jin Park: Department of Bioresources Engineering, Sejong University, Seoul 05006, Korea
Sang Keun Han: Supply & Demand Management Office, Integrated Information System Team, Korea Agro-Fisheries & Food Trade Corporation, Naju 58326, Korea
Seong Joon Yoo: Department of Computer Science and Engineering, Sejong University, Seoul 05006, Korea

Agriculture, 2020, vol. 10, issue 12, 1-17

Abstract: 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%.

Keywords: attention mechanism; deep learning; LSTM; STL; vegetable price forecasting (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2020
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (7)

Downloads: (external link)
https://www.mdpi.com/2077-0472/10/12/612/pdf (application/pdf)
https://www.mdpi.com/2077-0472/10/12/612/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:10:y:2020:i:12:p:612-:d:458798

Access Statistics for this article

Agriculture is currently edited by Ms. Leda Xuan

More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-03-19
Handle: RePEc:gam:jagris:v:10:y:2020:i:12:p:612-:d:458798