Abstract
Accurate short-term traffic speed forecasting is a cornerstone of intelligent transportation systems (ITS), yet remains challenging due to the coexistence of strong linear autocorrelation, multi-scale daily/weekly seasonality, and nonlinear congestion dynamics. Existing residual-based ARIMA-neural hybrids commonly adopt fixed 1:1 additive fusion without explicit seasonal modeling or adaptive component weighting, limiting both expressive power and generalization across heterogeneous sensor locations. To address these gaps, we propose a novel adaptive gated hybrid framework that advances classical residual decomposition in four key ways: (1) three-way Seasonal-Trend decomposition using Loess (STL) to explicitly separate trend, seasonal and irregular components, which are then used to fit the SARIMA model on the STL-adjusted series rather than on the raw signal; (2) Seasonal ARIMA (SARIMA) with explicit daily periodicity to model both linear trend and seasonal structure; (3) Bidirectional LSTM (BiLSTM) with a temporal attention mechanism to capture long-range nonlinear residual dependencies and weight salient time steps adaptively; and (4) a learnable dynamic gating mechanism that infers a context-dependent fusion weight per time step, adaptively balancing the statistical and neural components according to the expected degree of nonlinearity. We conduct rigorous, reproducible experiments on the Caltrans PeMSD7 benchmark across all detectors of the benchmark and five forecasting horizons, and additionally validate the framework on the independent PeMSD8 dataset and on the large-scale 1026-detector PeMSD7 (L) subset, in order to assess cross-dataset generalization. The proposed model is compared with eight baselines, including a Transformer and recent state-of-the-art hybrids, under an identical 20-epoch training budget, and a direct multi-step-ahead evaluation is reported alongside the resampled rolling one-step protocol. The results show statistically significant improvements (Diebold–Mariano tests with Newey–West variance) over all baselines, with an average RMSE reduction of 11.4% relative to the strongest competitor and consistent gains on all three evaluation sets.