Abstract:
To address multi-factor subway line passenger volume forecasting needs, 12 influential features are selected (time, weather, network scale, urban development, holidays, and events) via feature mining and correlation analysis, and—targeting the difficulty of XGBoost hyperparameter tuning—a hyperparameter optimization approach based on the Zebra Optimization Algorithm (ZOA) is proposed. An XGBoost-ZOA integrated forecasting model is developed, a cross-validation scheme tailored for time-series prediction is designed, and a case study is conducted using Xi’an Metro data. The ZOA-optimized model achieves a MAPE of 3.85% on the Line 1 test set; compared with representative intelligent optimization algorithms, it yields the best performance, confirming the algorithm’s superiority. Across nine lines, the XGBoost-ZOA model attains an average MAPE of 5.18%, with the maximum error below 7%, and the predicted and actual curves show a high degree of agreement. Compared
with SARIMA and LSTM, the MAPE decreases by 17.8% and 21.9%, and the RMSE decreases by 10.8% and 13.6%,
respectively. Finally, using feature importance, the nine lines were grouped into three categories: trend-driven, holiday/
activity-driven, and multi-factor balanced passenger flows. Lines dominated by holidays/activities exhibit larger prediction
errors, whereas those governed by periodic trends show smaller errors, confirming the model’s interpretability and practical
utility.