[Paper Review] Sales forecasting using WaveNet within the framework of the Kaggle competition
This paper presents a WaveNet-based convolutional neural network approach for time series sales forecasting in the Kaggle Corporacion Favorita competition, using dilated causal convolutions and a sequence-to-sequence architecture to model long-term dependencies and seasonality. The method achieved second place, demonstrating state-of-the-art performance through iterative training on mini-batches and ensemble averaging with moving averages to reduce overfitting and improve accuracy.
We took part in the Corporacion Favorita Grocery Sales Forecasting competition hosted on Kaggle and achieved the 2nd place. In this abstract paper, we present an overall analysis and solution to the underlying machine-learning problem based on time series data, where major challenges are identified and corresponding preliminary methods are proposed. Our approach is based on the adaptation of dilated convolutional neural network for time series forecasting. By applying this technique iteratively to batches of n examples, a big amount of time series data can be eventually processed with a decent speed and accuracy. We hope this paper could serve, to some extent, as a review and guideline of the time series forecasting benchmark, inspiring further attempts and researches.
Motivation & Objective
- To develop a high-accuracy time series forecasting model for grocery sales using deep learning.
- To address challenges in real-world time series data, including noise, unseen store/item combinations, and non-linear trends.
- To evaluate the effectiveness of WaveNet and dilated convolutional networks in comparison to traditional RNNs and LSTMs for sales forecasting.
- To optimize model performance using ensemble techniques and moving averages to reduce overfitting and improve generalization.
Proposed method
- Adapted the WaveNet architecture using dilated causal convolutions to capture long-range temporal dependencies without recurrent connections.
- Employed a sequence-to-sequence framework with separate encoder and decoder networks to prevent error accumulation during multi-step forecasting.
- Trained the model using mini-batches of 128 randomly sampled sequences, with the target date shifted randomly per iteration to enhance data diversity.
- Applied Adam optimizer with a learning rate of 0.0005 and learning rate decay to improve convergence and generalization.
- Used shifted unit sales and onpromotion features (past and future) as input to capture seasonal and promotional patterns.
- Applied exponential moving average with a locally optimized smooth factor to smooth predictions and reduce short-term fluctuations.
Experimental results
Research questions
- RQ1Can a dilated convolutional neural network like WaveNet outperform traditional RNNs and LSTMs in multi-step sales forecasting on noisy, real-world time series data?
- RQ2How effective is the sequence-to-sequence architecture with non-shared encoder and decoder weights in mitigating error accumulation during long-horizon forecasting?
- RQ3To what extent can moving average and ensemble techniques improve model robustness and generalization on unseen store-item combinations?
- RQ4How do shifted features (e.g., past sales, future promotions) enhance the model’s ability to capture seasonality and trends?
Key findings
- The WaveNet-based model achieved second place in the Kaggle Corporacion Favorita sales forecasting competition, demonstrating superior performance over standard RNN and LSTM baselines.
- The use of dilated causal convolutions enabled efficient modeling of long-range dependencies with fewer parameters and faster training than recurrent architectures.
- The sequence-to-sequence approach with non-shared encoder and decoder reduced error accumulation during multi-step forecasting, improving prediction stability.
- Ensemble averaging of multiple models, particularly using exponential moving averages, significantly improved test performance and reduced overfitting.
- The model effectively captured complex seasonal patterns and trends, even with noisy data and missing values for previously unseen store-item combinations.
- The final model achieved high accuracy on both public and private test sets, with performance validated through step-by-step validation using the last 16 days of training data as a holdout set.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.