IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v10y2020i12p612-d458798.html
   My bibliography  Save this article

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

Author

Listed:
  • 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)

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

Suggested Citation

  • Helin Yin & Dong Jin & Yeong Hyeon Gu & Chang Jin Park & Sang Keun Han & Seong Joon Yoo, 2020. "STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM," Agriculture, MDPI, vol. 10(12), pages 1-17, December.
  • Handle: RePEc:gam:jagris:v:10:y:2020:i:12:p:612-:d:458798
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/10/12/612/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/10/12/612/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. J. Mohan Rao, 1989. "Agricultural Supply Response: A Survey," Agricultural Economics, International Association of Agricultural Economists, vol. 3(1), pages 1-22, March.
    2. Rao, J. Mohan, 1989. "Agricultural supply response: A survey," Agricultural Economics, Blackwell, vol. 3(1), pages 1-22, March.
    3. Marcel Fafchamps & Bart Minten, 2012. "Impact of SMS-Based Agricultural Information on Indian Farmers," The World Bank Economic Review, World Bank, vol. 26(3), pages 383-414.
    4. Youzhu Li & Chongguang Li & Mingyang Zheng, 2014. "A Hybrid Neural Network and H-P Filter Model for Short-Term Vegetable Price Forecasting," Mathematical Problems in Engineering, Hindawi, vol. 2014, pages 1-10, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Youzhu Li & Jinsi Liu & Hongyu Yang & Jianxin Chen & Jason Xiong, 2021. "A Bibliometric Analysis of Literature on Vegetable Prices at Domestic and International Markets—A Knowledge Graph Approach," Agriculture, MDPI, vol. 11(10), pages 1-17, September.
    2. Yeong Hyeon Gu & Dong Jin & Helin Yin & Ri Zheng & Xianghua Piao & Seong Joon Yoo, 2022. "Forecasting Agricultural Commodity Prices Using Dual Input Attention LSTM," Agriculture, MDPI, vol. 12(2), pages 1-18, February.
    3. Dadasaheb G. Godase & P. R. Sheshagiri Rao & Anil Gore, 2022. "Favorit: farmers volatility risk treatment," Papers 2203.12395, arXiv.org, revised Mar 2022.
    4. Kun Zhang & Xing Huo & Kun Shao, 2023. "Temperature Time Series Prediction Model Based on Time Series Decomposition and Bi-LSTM Network," Mathematics, MDPI, vol. 11(9), pages 1-16, April.
    5. Kai Ye & Yangheran Piao & Kun Zhao & Xiaohui Cui, 2021. "A Heterogeneous Graph Enhanced LSTM Network for Hog Price Prediction Using Online Discussion," Agriculture, MDPI, vol. 11(4), pages 1-14, April.
    6. Yan Guo & Dezhao Tang & Wei Tang & Senqi Yang & Qichao Tang & Yang Feng & Fang Zhang, 2022. "Agricultural Price Prediction Based on Combined Forecasting Model under Spatial-Temporal Influencing Factors," Sustainability, MDPI, vol. 14(17), pages 1-18, August.
    7. Feihu Sun & Xianyong Meng & Yan Zhang & Yan Wang & Hongtao Jiang & Pingzeng Liu, 2023. "Agricultural Product Price Forecasting Methods: A Review," Agriculture, MDPI, vol. 13(9), pages 1-20, August.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Nehring, Richard F., 1991. "Output and Input Subsidy Policy Options in Bangladesh," Journal of Agricultural Economics Research, United States Department of Agriculture, Economic Research Service, vol. 43(2), pages 1-13.
    2. Vavra, Pavel & Colman, David, 2003. "The analysis of UK crop allocation at the farm level: implications for supply response analysis," Agricultural Systems, Elsevier, vol. 76(2), pages 697-713, May.
    3. Christophe Gouel, 2013. "Rules versus Discretion in Food Storage Policies," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 95(4), pages 1029-1044.
    4. Magrini, Emiliano & Morales-Opazo, Cristian & Balie, Jean, 2014. "Supply response along the value chain in selected SSA countries: the case of grains," 2014: Food, Resources and Conflict, December 7-9, 2014. San Diego, California 197193, International Agricultural Trade Research Consortium.
    5. Umanath Malaiarasan & R. Paramasivam & K. Thomas Felix & S. J. Balaji, 2020. "Simultaneous equation model for Indian sugar sector," Journal of Social and Economic Development, Springer;Institute for Social and Economic Change, vol. 22(1), pages 113-141, June.
    6. Eric B. Schneider, 2014. "Prices and production: agricultural supply response in fourteenth-century England," Economic History Review, Economic History Society, vol. 67(1), pages 66-91, February.
    7. Gouel, Christophe & Laborde, David, 2021. "The crucial role of domestic and international market-mediated adaptation to climate change," Journal of Environmental Economics and Management, Elsevier, vol. 106(C).
    8. Chr. R. Weiss, 1992. "The Effect Of Price Reduction And Direct Income Support Policies On Agricultural Input Markets In Austria," Journal of Agricultural Economics, Wiley Blackwell, vol. 43(1), pages 1-13, January.
    9. Hareau, Guy G. & Mills, Bradford F. & Norton, George W., 2006. "The potential benefits of herbicide-resistant transgenic rice in Uruguay: Lessons for small developing countries," Food Policy, Elsevier, vol. 31(2), pages 162-179, April.
    10. Mamingi, Nlandu, 1997. "The impact of prices and macroeconomic policies on agricultural supply: a synthesis of available results," Agricultural Economics, Blackwell, vol. 16(1), pages 17-34, March.
    11. Murova, Olga I. & Coble, Keith H. & Trueblood, Michael A., 2001. "Supply Response Of Ukrainian Agriculture," 2001 Annual meeting, August 5-8, Chicago, IL 20539, American Agricultural Economics Association (New Name 2008: Agricultural and Applied Economics Association).
    12. repec:ilo:ilowps:300473 is not listed on IDEAS
    13. Wiebelt, Manfred & Herrmann, Roland & Schenck, Patricia & Thiele, Rainer, 1992. "Discrimination against agriculture in developing countries?," Open Access Publications from Kiel Institute for the World Economy 458, Kiel Institute for the World Economy (IfW Kiel).
    14. Nestor Le Clech & Carmen Fillat‐Castejón, 2017. "International aggregate agricultural supply for grain and oilseed: The effects of efficiency and technological change," Agribusiness, John Wiley & Sons, Ltd., vol. 33(4), pages 569-585, September.
    15. Md Zabid Iqbal & Bruce A. Babcock, 2018. "Global growing‐area elasticities of key agricultural crops estimated using dynamic heterogeneous panel methods," Agricultural Economics, International Association of Agricultural Economists, vol. 49(6), pages 681-690, November.
    16. Kaimba, George K. & Muendo, Kavoi M. & Mithofer, Dagmar, 2020. "Marketing of baobab pulp in Kenya: Collectors’ choice of rural versus urban markets," African Journal of Agricultural and Resource Economics, African Association of Agricultural Economists, vol. 15(3), September.
    17. Alene, Arega D. & Manyong, Victor M. & Omanya, Gospel O. & Mignouna, Hodeba D. & Bokanga, Mpoko & Odhiambo, George D., 2008. "Economic Efficiency and Supply Response of Women as Farm Managers: Comparative Evidence from Western Kenya," World Development, Elsevier, vol. 36(7), pages 1247-1260, July.
    18. Macours, Karen & Swinnen, Johan F. M., 2000. "Causes of Output Decline in Economic Transition: The Case of Central and Eastern European Agriculture," Journal of Comparative Economics, Elsevier, vol. 28(1), pages 172-206, March.
    19. Keeney, Roman & Hertel, Thomas W., 2008. "Yield Response To Prices: Implications For Policy Modeling," Working papers 45969, Purdue University, Department of Agricultural Economics.
    20. Donato, Romano & Carraro, Alessandro, 2015. "Modelling Acreage, Production and Yield Supply Response to Domestic Price Volatility," 2015 Fourth Congress, June 11-12, 2015, Ancona, Italy 207278, Italian Association of Agricultural and Applied Economics (AIEAA).
    21. Abdi, Asad Raza & Halepoto, Ali Hassan & Shah, Aisha Bashir & Shaikh, Faiz M., 2013. "Time Series Analysis of Wheat flour Price Shocks in Pakistan: A Case Analysis," Asian Journal of Agriculture and Rural Development, Asian Economic and Social Society (AESS), vol. 3(10), pages 1-7, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:10:y:2020:i:12:p:612-:d:458798. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.