Skip to main content
QUICK REVIEW

[Paper Review] Predicting Future Sales of Retail Products using Machine Learning

Devendra Swami, Alay Shah|arXiv (Cornell University)|Aug 18, 2020
Forecasting Techniques and ApplicationsDecision Sciences4 references14 citations
TL;DR

This paper evaluates XGBoost, LSTM, and ARIMA for forecasting retail sales using a large-scale Russian time-series dataset from 1C Company. XGBoost outperformed both LSTM and ARIMA, achieving a test RMSE of 0.878, attributed to effective feature engineering and superior handling of sparse data patterns in the dataset.

ABSTRACT

Techniques for making future predictions based upon the present and past data, has always been an area with direct application to various real life problems. We are discussing a similar problem in this paper. The problem statement is provided by Kaggle, which also serves as an ongoing competition on the Kaggle platform. In this project, we worked with a challenging time-series dataset consisting of daily sales data, kindly provided by one of the largest Russian software firms - 1C Company. The objective is to predict the total sales for every product and store in the next month given the past data. In order to perform forecasting for next month, we have deployed eXtreme Gradient Boosting (XGBoost) and Long Short Term Memory (LSTM) based network architecture to perform learning task. Root mean squared error (RMSE) between the actual and predicted target values is used to evaluate the performance, and make comparisons between the deployed algorithms. It has been found that XGBoost fared better than LSTM over this dataset which can be attributed to its relatively higher sparsity.

Motivation & Objective

  • To predict monthly sales for every product-store combination using historical sales data.
  • To compare the performance of XGBoost, LSTM, and ARIMA models on a real-world retail time-series dataset.
  • To evaluate the impact of feature engineering, particularly lag features and categorical encoding, on model performance.
  • To identify the most influential features in the XGBoost model using F-score importance.
  • To explore the feasibility of using deep learning (LSTM) and traditional statistical models (ARIMA) on sparse, high-dimensional retail data.

Proposed method

  • Applied XGBoost with lagged features, categorical encodings, and hyperparameter tuning via grid search on a validation set.
  • Implemented a customized LSTM architecture that jointly processes static (e.g., item_id, shop_id) and dynamic (e.g., item_count, price) features across time steps.
  • Used ARIMA for univariate forecasting by fitting separate models per unique product-shop combination.
  • Employed RMSE as the primary evaluation metric across training, validation, and test sets.
  • Conducted extensive exploratory data analysis (EDA) and data cleaning, including clipping target values and handling missing data.
  • Tuned hyperparameters for XGBoost and LSTM using random grid search, focusing on learning rate, depth, regularization, and batch size.

Experimental results

Research questions

  • RQ1Does XGBoost outperform deep learning (LSTM) and classical statistical models (ARIMA) in forecasting sparse retail sales data?
  • RQ2How do lagged features and categorical encodings influence model performance in time-series sales forecasting?
  • RQ3To what extent does feature importance, as measured by F-score, reflect the predictive power of input variables in XGBoost?
  • RQ4Can a customized LSTM architecture effectively model both static and dynamic features in a retail sales context?
  • RQ5What role does hyperparameter tuning play in achieving optimal performance across different models?

Key findings

  • XGBoost achieved the lowest test RMSE of 0.878, outperforming LSTM (0.924) and ARIMA (1.093).
  • The XGBoost model showed low variance between training and validation RMSE (0.764 vs. 0.807), indicating stable generalization.
  • Lagged target features (e.g., target_item_lag_1) were the most important predictors, with an F-score of 3034.
  • The top five most important features in XGBoost were item_id (4168), target_item_lag_1 (3034), enc_shop_id_category (2845), item_category (2738), and date_block_num (2515).
  • LSTM required more rigorous hyperparameter tuning, and despite architectural customization, it underperformed XGBoost on this dataset.
  • ARIMA performed worst among the three models, with a test RMSE of 1.093, indicating limitations in handling multivariate, sparse retail data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.