AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (759.6 KB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Research Article | Open Access

Forecasting freight railway traffic in Morocco: a data-driven machine learning approach for efficient logistics planning

Alaa Eddine El Moussaoui1( ), Taoufiq El Moussaoui2
EMIO, LIREEM Laboratory, Higher School of Technology, Nador, Mohammed First University, Oujda, Morocco
Polydisciplinary Faculty of Sidi Bennour, Chouaib Doukkali University, El Jadida, Morocco
Show Author Information

Abstract

Purpose

This study develops and evaluates a data-driven forecasting framework for freight railway traffic along Morocco's Tanger–Casablanca corridor, with the objective of assessing whether advanced machine learning models can enhance the accuracy and robustness of medium-term demand forecasting compared to conventional statistical time-series methods, thereby improving both operational railway planning and strategic logistics decision-making.

Design/methodology/approach

A quantitative research design is employed using sixteen weeks of aggregated data derived from 2,159 operational records collected along the Tanger-Casablanca railway corridor. The dataset integrates multiple sources, including railway operational indicators, port throughput measures, industrial production indices, and macroeconomic variables. The study implements classical statistical models (ARIMA and SARIMA) alongside machine learning approaches, namely Random Forest, Gradient Boosting, Long Short-Term Memory (LSTM), and Prophet. Rigorous preprocessing, feature engineering, rolling-window validation, and multi-metric evaluation (MAE, RMSE, MAPE, and R2) are applied to ensure robust and unbiased model comparison.

Findings

The results indicate that machine learning approaches consistently outperform traditional statistical models in forecasting freight railway demand. Among all models, LSTM delivers the highest predictive accuracy, followed by Gradient Boosting and Random Forest, while ARIMA and SARIMA serve as baseline benchmarks but show reduced performance during periods of peak demand. The analysis further reveals that port throughput and wagon allocation are the most significant predictors of freight volume, confirming the presence of nonlinear and temporally dependent demand structures that are more effectively captured by advanced learning models.

Originality/value

This study contributes to the limited empirical literature on railway freight forecasting in developing countries by applying and systematically comparing advanced machine learning techniques within the Moroccan railway context. It introduces an integrated forecasting framework that combines heterogeneous data sources with rigorous validation procedures, thereby bridging the gap between predictive analytics and operational railway decision-making. The proposed approach offers both methodological innovation and practical insights to support the modernization of rail freight systems in emerging logistics environments.

References

【1】
【1】
 
 
Railway Sciences
Pages 597-617

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
El Moussaoui AE, El Moussaoui T. Forecasting freight railway traffic in Morocco: a data-driven machine learning approach for efficient logistics planning. Railway Sciences, 2026, 5(5): 597-617. https://doi.org/10.1108/RS-03-2026-0015

2

Views

0

Downloads

0

Crossref

0

Scopus

Received: 02 March 2026
Revised: 17 April 2026
Accepted: 19 April 2026
Published: 01 October 2026
© Alaa Eddine El Moussaoui and Taoufiq El Moussaoui. Published in Railway Sciences.

This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence may be seen at http://creativecommons.org/licences/by/4.0/