LOGISTICS AND TRANSPORTATION: FREIGHT DEMAND FORECASTING USING SARIMA AND XGBOOST
DOI:
https://doi.org/10.36674/mythos.v18i1.1066Keywords:
E-commerce, Machine Learning, Seasonality, Sales Order Data, Decision Support SystemsAbstract
Accurate freight demand forecasting is essential for improving logistics planning and supporting decision-making in e-commerce supply chains. This study compares the performance of two forecasting approaches—Seasonal Autoregressive Integrated Moving Average (SARIMA) and Extreme Gradient Boosting (XGBoost)—for predicting daily freight demand measured by transported weight. The research followed the CRISP-DM methodology using the Brazilian Olist public e-commerce dataset. After data preprocessing, exploratory analysis, stationarity testing, and feature engineering, multiple SARIMA and XGBoost models were developed and evaluated using chronological train-test splitting, cross-validation, and Mean Absolute Percentage Error (MAPE). The SARIMA models incorporated seasonal differencing and Box-Cox transformations, whereas the XGBoost models included calendar-based variables, moving averages, and moving standard deviations. The results demonstrate that feature engineering substantially improved predictive performance. The best XGBoost model achieved a MAPE of 3%, considerably outperforming the best SARIMA model, whose predictive accuracy remained limited despite data transformations. These findings indicate that machine learning techniques combined with temporal feature engineering provide superior freight demand forecasts for e-commerce logistics. The proposed approach offers a practical decision-support tool for transportation planning, resource allocation, and operational efficiency while providing a reproducible computational workflow through publicly available source code and processed data.
References
Bruce, P., & Bruce, A. (2019). Estatística prática para cientistas de dados: 50 conceitos essenciais. Alta Books.
Brunheroto, P. H., Pepino, A. L. G., et al. (2022). Data analytics in fleet operations: A systematic literature review and workflow proposal. Procedia CIRP, 107, 1192–1197. https://doi.org/10.1016/j.procir.2022.05.130
Chapman, P., Clinton, J., Kerber, R., et al. (2000). CRISP-DM 1.0: Step-by-step data mining guide. SPSS.
Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). ACM. https://doi.org/10.1145/2939672.2939785
Fávero, L. P., & Belfiore, P. (2017). Manual de análise de dados. Elsevier.
Haque, M. S., Amin, M. S., & Miah, J. (2023). Retail demand forecasting: A comparative study for multivariate time series. arXiv preprint arXiv:2308.11939. https://arxiv.org/abs/2308.11939
Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Prin ciples and practice (3rd ed.). OTexts. https://otexts.com/fpp3/
Jahin, M. A., Shahriar, A., & Al Amin, M. (2024). MCDFN: Supply chain demand forecasting via an explainable multi-channel data fusion network model integrating CNN, LSTM, and GRU. arXiv preprint arXiv:2405.15598. https://arxiv.org/abs/2405.15598
McKinney, W. (2022). Python para análise de dados. Novatec.
Morettin, P. A., & Bussab, W. O. (2016). Estatística básica (8ª ed.). Saraiva.
Nagel, M., & dos Santos, C. P. (2017). A relação entre a satisfação com o gerenciamento de reclamações e as intenções de recompra: Detectando influências moderadoras em retail. Brazilian Business Review, 14(5). https://doi.org/10.15728/bbr.2017.14.5.4
Novack, R. A., Gibson, B., Coyle, J. J., & Suzuki, Y. (2020). Transportation: A global supply chain perspective (9th ed.). Cengage Learning.
Olist, & Sionek, A. (2018). Brazilian e-commerce public dataset by Olist [Data set]. Kaggle. https://doi.org/10.34740/KAGGLE/DSV/195341
Pavlyshenko, B. M. (2019). Machine-learning models for sales time series forecasting. Data, 4(1), 15. https://doi.org/10.3390/data4010015
Prim, A. L., & de Freitas, K. A. (2020). Frete barato e entrega atrasada: O dilema do nível de serviço versus custos. Revista de Administração Contemporânea, 24(6), 618–631. https://doi.org/10.1590/19827849rac2020190226
Pankratz, A. (1983). Forecasting with univariate Box-Jenkins models: Concepts and cases. John Wiley & Sons.
Saha, P., Gudhenia, N., Mitra, R., et al. (2022). Demand forecasting of a multinational retail company using deep learning frameworks. IFAC-PapersOnLine. https://doi.org/10.1016/j.ifacol.2022.09.425 Shumway, R. H., & Stoffer, D. S. (2011). Time series analysis and its applications (3rd ed.). Springer.
VanderPlas, J. (2016). Python data science handbook. O’Reilly Media. https://jakevdp.github.io/PythonDataScienceHandbook/
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Eduardo Modesto de Melo, Fabricio Pelloso Piurcosky

This work is licensed under a Creative Commons Attribution 4.0 International License.
Since January of 2024, the authors retain the copyright relating to their article and grant the journal Mythos, from FEPESMIG, the right of first publication, with the work simultaneously licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), as stated in the article’s PDF document. This license provides that the article published can be shared (allows you to copy and redistribute the material in any medium or format) and adapted (allows you to remix, transform, and create from the material for any purpose, even commercial) by anyone.

















