Enhancing Vegetable Sales Forecasting with A CNN-LSTM-Transformer Hybrid Model

Authors

  • Aoxiang Tian

DOI:

https://doi.org/10.54097/rr7t4d15

Keywords:

CNN-LSTM-Transformer, vegetable sales prediction, seasonal, cyclical.

Abstract

 Due to the short shelf life of vegetable products, a significant portion of the inventory cannot be resold the following day. To facilitate more informed procurement decisions in superstores and minimize vegetable wastage, this study proposes a hybrid prediction model based on CNN-LSTM-Transformer for enhancing the accuracy of forecasting vegetable sales volumes. Firstly, an LSTM model is incorporated to account for the recurring and seasonal variations in vegetable sales. Secondly, a CNN model is introduced to address the limitations of LSTM in capturing spatial data components. The convolutional and pooling layers of CNN help establish spatial relationships among different feature values in the dataset. Finally, a Transformer model is integrated to tackle the issue of long-term dependencies, which LSTM alone struggles to resolve. The Transformer model employs a parallel attention mechanism, eliminating temporal dependencies and effectively addressing LSTM's long-term dependency challenge. This integration also accelerates model training. The evaluation metric employed in this paper is RMSE (Root Mean Square Error). The three-year sales volume of 11 vegetable types is predicted using seasonal ARIMA, XGBoost, LSTM, CNN-LSTM, and CNN-LSTM-Transformer models. The results indicate that the CNN-LSTM-Transformer model achieves the lowest RMSE at 0.0758, followed by ARIMA at 0.0792, CNN-LSTM at 0.0830, XGBoost at 0.0858, and LSTM at 0.0913. These findings demonstrate that the CNN-LSTM-Transformer model exhibits superior accuracy in forecasting vegetable sales volumes, yielding more precise predictions. This accurate forecasting not only aids superstores in reducing waste and enhancing profitability but also assists government authorities in rationalizing vegetable subsidy policies and optimizing the vegetable production and marketing system.

Downloads

Download data is not yet available.

References

Lian, J., Ma, L., Wu, X., Zhu, T., Liu, Q., Sun, Y., ... & Lou, X. (2023). Visualized pattern recognition optimization for apple mechanical damage by laser relaxation spectroscopy. International Journal of Food Properties, 26(1), 1566-1578.

He Zhang & Yu Sun. (2020). Application of LightGBM and LSTM combined model in vegetable sales forecast.Journal of Physics: Conference Series(1) ,012110-.

Sankaran S. Demand forecasting of fresh vegetable product by seasonal ARIMA model [J]. International Journal of Operational Research, 2014, 20(3). 315-330.

Yunhao Cui. Research on fresh vegetables sales prediction based on CNN-PSO-LSTM combination model. 2023.Anhui Agricultural University, MA thesis.

Feng Chen,AND Chen Zhide." Application of weighted combination model based on XGBoost and LSTM for sales forecasting." Computer Systems Applications 28.10 (2019):226-232. doi: 10.15888/j.cnki.csa.007091.

Wang, X., Liao, T.,and Zhang, Shunxiang." An online multi-task sales prediction model based on CNN-LSTM network." Journal of Fuyang Normal University (Natural Science Edition) 38.02(2021):85-91. doi: 10.14096/j.cnki.cn34-1069/n/2096-9341(2021)02-0085-07.

Ren Jianji, Bit Huihui, Zou Zhuolin, et al. Ultra-short-term power load forecasting based on CNN-BiLSTMAttention [J]. Power System Protection and Control, 2022, 50(8): 108-116. REN Jianji, WEI Huihui, ZOU Zhuolin, et al. Ultra-shortterm power load forecasting based on CNN- BiLSTMAttention[J]. Power System Protection and Control, 2022, 50(8): 108-116.

Tang Ge, Yu Yiping, Qin Chuan, et al. Day-ahead interval prediction of bus load based on CNN-LSTM quantile regression [J]. Electric Power Engineering Technology, 2021, 40(4): 123-129. TANG Ge, YU Yiping, QIN Chuan, et al. Day-ahead interval prediction of bus load based on CNN-LSTM quantile regression [J]. Electric Power Engineering Technology, 2021, 40(4): 123-129.

Juxiang Zhu, et al. "CEEMDAN-IGWO-CNN-LSTM based air quality predictive modeling." Computer Simulation.

Downloads

Published

20-01-2024

How to Cite

Tian , A. (2024). Enhancing Vegetable Sales Forecasting with A CNN-LSTM-Transformer Hybrid Model. Highlights in Business, Economics and Management, 25, 112-121. https://doi.org/10.54097/rr7t4d15