Future-Aware Trend Alignment for Sales Predictions
Abstract
:1. Introduction
- We reproduce and improve the method in the TADA paper and propose a multi-attention machine and trend adjustment algorithms featuring the integration of future known features, which is called F-TADA.
- We analyze two typical real-world time series data. The experimental results show that the performance of the new method is better than that of the original algorithm. To apply the sales forecast algorithm to the intelligent decision-making process, we develop a sales data forecast and analysis decision-making system. This system has a grouping module and a sand table simulation module, which can provide better guidance for the enterprise sales decision-making process.
2. Data Introduction
2.1. Supermarket Sales Data
2.1.1. Description of Supermarket Sales Data
- Training data contain the date, store, and items sold.
- Store data contain the store details, such as store location and store type.
- Item data contain the characteristics of a commodity, such as perishability, and the type of commodity.
- Transaction data contain the number of sales per store in the training data.
- Oil data and holiday event data contain the prices of daily oil and holiday information.
2.1.2. Data Analysis
2.1.3. Data Processing
2.2. Pesticide Sales Data
2.2.1. Description of Pesticide Sales Data
2.2.2. Data Analysis
2.2.3. Preprocessing
3. Research Methodology
3.1. Existing Deep Learning Methods
3.2. Trend Alignment with Dual-Attention Multi-Task Recurrent Neural Networks
3.3. A Deep Learning Model that Incorporates Future Known Features
4. Experiments and Results
- Data set partitioning: In data set 1, we use a total of 365 data from 2016 to 2017 and divide the data into 15:2:2. In data set 2, we use the annual data of each province and city in 2017 and divide them at a ratio of 8:1:1.
- The evaluation index: We use the mean absolute error, MAE, and the symmetrical mean absolute percentage error, MAPE (or SMAPE).
- Gradient descent optimization method: We use mini batch gradient descent and Adam descent.
4.1. Experimental Results and Analysis
4.2. Summary
5. Application Technology
5.1. Demand Analysis
5.2. Technology Module
- System architecture design: We adopt system architecture that separates the frontend and backend.
- Database design: MongoDB is used as the basic database.
- Frontend design: The frontend uses a page structure and is written in AngularJS.
- Backend design: We use the Flash framework with a Celery distributed task queue.
5.3. Function Demonstration
6. Conclusions
Author Contributions
Funding
Conflicts of Interest
Appendix A
References
- Society, R. On a Method of Investigating Periodicities in Disturbed Series, with Special Reference to Wolfer’s Sunspot Numbers Author. Stat. Pap. George Udny Yule 2017, 226, 267–298. [Google Scholar]
- Friedlander, B. A recursive maximum likelihood algorithm for ARMA spectral estimation. IEEE Trans. Inf. Theory 1982, 28, 639–646. [Google Scholar] [CrossRef]
- Cadzow, J. High performance spectral estimation-A new ARMA method. IEEE Trans. Acoust. Speech, Signal Process. 1980, 28, 524–529. [Google Scholar] [CrossRef]
- Shah, I.; Iftikhar, H.; Ali, S. Modeling and forecasting medium-term electricity consumption using component estimation technique. Forecasting 2020, 2, 163–179. [Google Scholar] [CrossRef]
- Box, G.E.P.; Pierce, D.A. Distribution of residual autocorrelations in autoregressive-integrated moving average time series models. J. Am. Stat. Assoc. 1970, 65, 1509–1526. [Google Scholar] [CrossRef]
- Buhl, J.; Liedtke, C.; Schuster, S.; Bienge, K. Predicting the material footprint in germany between 2015 and 2020 via seasonally decomposed autoregressive and exponential smoothing algorithms. Resources 2020, 9, 125. [Google Scholar] [CrossRef]
- Busu, M. Analyzing the impact of the renewable energy sources on economic growth at the EU level using an ARDL model. Mathematics 2020, 8, 1367. [Google Scholar] [CrossRef]
- Schubert, T.; Korte, J.; Brockmann, J.M.; Schuh, W.-D. A generic approach to covariance function estimation using ARMA-models. Mathematics 2020, 8, 591. [Google Scholar] [CrossRef] [Green Version]
- Kechyn, G.; Yu, L.; Zang, Y.; Kechyn, S. Sales Forecasting Using WaveNet within the Framework of the Kaggle Competition. arXiv 2018, arXiv:1803.04037. Available online: https://arxiv.org/abs/1803.04037 (accessed on 24 November 2020).
- Erdem, E.; Shi, J. ARMA based approaches for forecasting the tuple of wind speed and direction. Appl. Energy 2011, 88, 1405–1414. [Google Scholar] [CrossRef]
- Taylor, S.J.; Letham, B. Business time series forecasting at scale. PeerJ Prepr. 2017, 35, 48–90. [Google Scholar]
- Yu, X.; Qi, Z.; Zhao, Y. Support vector regression for newspaper/magazine sales forecasting. Procedia Comput. Sci. 2013, 17, 1055–1062. [Google Scholar] [CrossRef] [Green Version]
- Kazem, A.; Sharifi, E.; Hussain, F.K.; Saberi, M.; Hussain, O.K. Support vector regression with chaos-based firefly algorithm for stock market price forecasting. Appl. Soft Comput. 2013, 13, 947–958. [Google Scholar] [CrossRef]
- Gumus, M.; Kiran, M.S. Crude oil price forecasting using XGBoost. In Proceedings of the 2017 International Conference on Computer Science and Engineering (UBMK), Antalya, Turkey, 5–8 October 2017; pp. 1100–1103. [Google Scholar] [CrossRef]
- Khandelwal, I.; Adhikari, R.; Verma, G. Time series forecasting using hybrid ARIMA and ANN models based on DWT decomposition. Procedia Comput. Sci. 2015, 48, 173–179. [Google Scholar] [CrossRef] [Green Version]
- Babai, M.Z.; Ali, M.M.; Boylan, J.; Syntetos, A.A. Forecasting and inventory performance in a two-stage supply chain with ARIMA (0,1,1) demand: Theory and empirical analysis. Int. J. Prod. Econ. 2013, 143, 463–471. [Google Scholar] [CrossRef]
- Tsai, Y.-T.; Zeng, Y.-R.; Chang, Y.-S. Air pollution forecasting using RNN with LSTM. In Proceedings of the 2018 IEEE 16th International Conference on Dependable, Autonomic and Secure Computing, 16th International Conference on Pervasive Intelligence and Computing, 4th International Conference on Big Data Intelligence and Computing and Cyber Science and Technology Congress (DASC/PiCom/DataCom/CyberSciTech), Athens, Greece, 12–15 August 2018; pp. 1074–1079. [Google Scholar] [CrossRef]
- Bandara, K.; Shi, P.; Bergmeir, C.; Hewamalage, H.; Tran, Q.; Seaman, B. Sales demand forecast in E-commerce using a long short-term memory neural network methodology. In Proceedings of the Public-Key Cryptography-PKC 2018, Rio de Janeiro, Brazil, 25–29 March 2019. [Google Scholar]
- Cho, K.; Van Merrienboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, 14–21 October 2014; pp. 1724–1734. [Google Scholar] [CrossRef]
- Chen, T.; Yin, H.; Chen, H.; Wu, L.; Wang, H.; Zhou, X.; Li, X. TADA: Trend alignment with dual-attention multi-task recurrent neural networks for sales prediction. In Proceedings of the 2018 IEEE International Conference on Data Mining (ICDM), Singapore, 17–20 November 2018; Institute of Electrical and Electronics Engineers (IEEE), 2018; pp. 49–58. [Google Scholar]
- Žliobaitė, I.; Bakker, J.J.; Pechenizkiy, M. Beating the baseline prediction in food sales: How intelligent an intelligent predictor is? Expert Syst. Appl. 2012, 39, 806–815. [Google Scholar] [CrossRef]
- Arunraj, N.S.; Ahrens, D. A hybrid seasonal autoregressive integrated moving average and quantile regression for daily food sales forecasting. Int. J. Prod. Econ. 2015, 170, 321–335. [Google Scholar] [CrossRef]
- Zhang, M.; Huang, X.-N.; Yang, C.-B. A sales forecasting model for the consumer goods with holiday effects. J. Risk Anal. Crisis Response 2020, 10, 69–76. [Google Scholar] [CrossRef]
- Liu, J.; Liu, C.; Zhang, L.; Xu, Y. Research on sales information prediction system of e-commerce enterprises based on time series model. Inf. Syst. e-Business Manag. 2019, 1–14. [Google Scholar] [CrossRef]
- Najera, J.A. Sales Forecast. Using a Machine Learning Time Series Model. 2019. Available online: https://openreview.net/forum?id=rylYCmQ_1H (accessed on 24 November 2020).
- Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13 August 2016; pp. 785–794. [Google Scholar]
Result | ∆ = 2 | ∆ = 4 | ∆ = 8 | |||
---|---|---|---|---|---|---|
MAE | MAPE | MAE | MAPE | MAE | MAPE | |
Encoder and decoder model + attention mechanism | 6.499 | 40.345 | 6.993 | 41.317 | 7.160 | 43.814 |
TADA | 6.251 | 39.569 | 6.838 | 40.762 | 6.853 | 42.619 |
F-TADA | 6.273 | 39.468 | 6.700 | 40.517 | 6.685 | 42.155 |
Result | ∆ = 2 | ∆ = 4 | ∆ = 8 | |||
---|---|---|---|---|---|---|
MAE | MAPE | MAE | MAPE | MAE | MAPE | |
Effect enhancement | −0.021 | 0.101 | 0.138 | 0.245 | 0.168 | 0.464 |
Result | ∆ = 3, Flag ≤ 3 | ∆ = 3, Flag ≤ 5 | ∆ = 3, Flag ≤ 10 | |||
---|---|---|---|---|---|---|
MAE | MAPE | MAE | MAPE | MAE | MAPE | |
Encoder and decoder model + attention mechanism | 2.158 | 143.785 | 1.861 | 166.385 | 0.804 | 190.336 |
TADA | 1.683 | 130.001 | 1.244 | 159.180 | 0.298 | 182.983 |
F-TADA | 1.676 | 128.575 | 1.217 | 157.082 | 0.176 | 181.639 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, Y.; Feng, L.; Jin, B. Future-Aware Trend Alignment for Sales Predictions. Information 2020, 11, 558. https://doi.org/10.3390/info11120558
Liu Y, Feng L, Jin B. Future-Aware Trend Alignment for Sales Predictions. Information. 2020; 11(12):558. https://doi.org/10.3390/info11120558
Chicago/Turabian StyleLiu, Yiwei, Lin Feng, and Bo Jin. 2020. "Future-Aware Trend Alignment for Sales Predictions" Information 11, no. 12: 558. https://doi.org/10.3390/info11120558
APA StyleLiu, Y., Feng, L., & Jin, B. (2020). Future-Aware Trend Alignment for Sales Predictions. Information, 11(12), 558. https://doi.org/10.3390/info11120558