LOGISTICS AND TRANSPORTATION: FREIGHT DEMAND FORECASTING USING SARIMA AND XGBOOST

Authors

DOI:

https://doi.org/10.36674/mythos.v18i1.1066

Keywords:

E-commerce, Machine Learning, Seasonality, Sales Order Data, Decision Support Systems

Abstract

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.

Author Biographies

Eduardo Modesto de Melo, University of São Paulo - USP

Computer Engineer with nearly two decades of professional experience in software engineering, enterprise systems, and digital transformation. He holds an MBA in Data Science and Analytics from the University of São Paulo (USP/ESALQ), a postgraduate specialization in Software Engineering from the University of Campinas (UNICAMP), and a B.Sc. in Computer Engineering from the Faculty of Engineering of Sorocaba (FACENS). His professional expertise includes software architecture, business analysis, logistics optimization, ERP implementation, and regulatory compliance for multinational organizations. He has led end-to-end technology projects across Latin America, North America, Europe, and the Middle East, serving as IT Product Owner, Solution Architect, and Business Analyst. His research interests include data science, software engineering, enterprise systems, artificial intelligence, and digital innovation.

Fabricio Pelloso Piurcosky, University Center Integrado

Postdoctoral Researcher in Social Sciences, Politics and Territory from the University of Aveiro, Portugal (2022). Holds a Ph.D. in Business Administration from the Federal University of Lavras (2020), a Postgraduate Specialization in Innovation and Business Communication from the Polytechnic Institute of Porto, Portugal (2015), a Master's degree from the Federal University of São João del-Rei (2013), an MBA in Information Technology Management (2007), a Postgraduate Specialization in Computer Networks (2005), and a Bachelor's degree in Computer Science (2003) from the Centro Universitário do Sul de Minas (UNIS). He is the Coordinator of the Research Department at the UNIS Educational Group and serves as a professor in graduate programs at the Universidad Científica del Sur, Peru.

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

2026-07-17

How to Cite

Melo, E. M. de, & Piurcosky, F. P. (2026). LOGISTICS AND TRANSPORTATION: FREIGHT DEMAND FORECASTING USING SARIMA AND XGBOOST. Revista Mythos, 18(1), 483–501. https://doi.org/10.36674/mythos.v18i1.1066

Most read articles by the same author(s)

Similar Articles

<< < 15 16 17 18 19 20 21 22 23 24 > >> 

You may also start an advanced similarity search for this article.