Hierarchical Flow Decomposition for Turning Movement Prediction at Signalized Intersections
arXiv:2604.09336v1 [cs.LG] 10 Apr 2026
Md Atiqur Rahman Mallick
Kamrul Hasan Pulock Das S M Shazzad Rassel
Liang Hong
Department of Electrical and Computer Engineering Tennessee State University, Nashville, TN, USA {mmallick,mhasan1,pdas,lhong,srassel}@tnstate.edu This is the author’s accepted manuscript of a paper accepted for publication in the Proceedings of IEEE SoutheastCon 2026. The final version will be available via IEEE Xplore. Abstract Accurate prediction of intersection turning movements is essential for adaptive signal control but remains difficult due to the high volatility of directional flows. This study proposes HFD-TM (Hierarchical Flow-Decomposition for Turning Movement Prediction), a hierarchical deep learning framework that predicts turning movements by first forecasting corridor throughmovements and then expanding these predictions to individual turning streams. This design is motivated by empirical traffic structure, where corridor flows account for 65.1% of total volume, exhibit lower volatility than turning movements, and explain 35.5% of turning-movement variance. A physics-informed loss function enforces flow conservation to maintain structural consistency. Evaluated on six months of 15-minute intervals of LiDAR (Light Detection and Ranging) data from a six-intersection corridor in Nashville, Tennessee, HFD-TM achieves a mean absolute error of 2.49 vehicles per interval, reducing MAE by 5.7% compared to a Transformer and by 27.0% compared to a GRU (Gated Recurrent Unit). Ablation results show that hierarchical decomposition provides the largest performance gain, while training time is 12.8× lower than DCRNN(Diffusion Convolutional Recurrent Neural Network), demonstrating suitability for real-time traffic applications.
Keywords: Turning movement prediction, traffic forecasting, deep learning, hierarchical decomposition, flow conservation.
1
Introduction
Accurate forecasting of intersection turning movements is pivotal for optimizing urban traffic signal control and enabling proactive Intelligent Transportation Systems (ITS) [1–3]. Despite advances in deep learning, modeling these fine-grained dynamics remains challenging due to the inherent stochasticity and volatility of traffic flow at the intersection level. Unlike smoother corridor-level metrics, directional turning movements fluctuate rapidly due to signal phases and upstream disturbances [4–6]. This creates a bottleneck for real-world deployment, as traditional methods often fail to capture complex spatiotemporal dependencies. Classical statistical models like ARIMA assume linearity, rendering them ineffective for non-linear traffic dynamics, while standard machine learning approaches like Support Vector Regression are constrained by shallow architectures that cannot model long-range temporal dependencies [7, 8]. 1
Recent deep learning adoptions, such as Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRU), have improved sequence forecasting but often treat traffic streams as isolated time series, neglecting the structural relationship between corridor throughput and local turning movements [9,10]. While advanced Graph Neural Networks (GNNs) and Transformer-based models attempt to capture network-level dependencies, they frequently suffer from excessive computational complexity and a “black-box” nature that ignores physical constraints like flow conservation [11–13]. These complex hybrid architectures are difficult to train and often fail to explicitly model the hierarchical interaction between upstream volumes and downstream turning fractions [14–16], necessitating a more robust, physics-informed approach that balances computational efficiency with structural consistency [17]. In this study, we propose HFD-TM, a deep learning framework for intersection turning-movement prediction that hierarchically separates corridor-level through flows from intersection-level turning streams while enforcing flow conservation through a physics-informed loss. Rather than predicting each turning movement directly, HFD-TM reformulates the task as a hierarchical conditional problem, in which volatile turning movements are modeled as realizations conditioned on lowervariance corridor through-flows that maintain structural consistency, and computationally efficient forecasting suitable for real-time traffic signal controls [18]. The key contributions of this work are summarized as follows: • Hierarchical modeling: A hierarchical framework that forecasts corridor-level through movements before estimating intersection turning movements. • Learned turning expansion: A turn-movement expansion module that combines corridor predictions with time-of-day embeddings to generate full turning streams. • Constrained refinement: A refinement stage with residual correction and zero-movement masking to enforce temporal continuity and geometric feasibility. The remainder of this paper is organized as follows: Section II reviews related work; Section III presents the proposed HFD-TM methodology; Section IV describes the experimental setup and results; Section V discusses comparative performance; and Section VI concludes the paper.
2
Related Work
Early methodologies for estimating turning movements relied heavily on static analytical techniques, such as iterative proportional fitting, to resolve flow distributions from limited boundary constraints [1]. While effective for long-term planning, these approaches struggle to accommodate the stochastic volatility inherent in real-time operations. To address temporal dynamics, researchers applied classical time-series models, including Autoregressive Integrated Moving Average (ARIMA) and Kalman filtering [4]. However, the fundamental assumption of linearity within these frameworks limits their applicability to the non-linear flow patterns observed at signalized intersections [7]. The constraints of parametric models necessitated a shift toward non-parametric machine learning. Artificial Neural Networks (ANNs) and Support Vector Regression (SVR) emerged as effective alternatives, offering the capability to approximate complex functions without rigid theoretical assumptions [7]. Despite improving predictive accuracy, these architectures often process traffic data as isolated vectors, failing to capture long-range temporal dependencies [6]. Enhancing the robustness of deep learning methods in the face of stochastic traffic dynamics remains a crucial area of investigation [3]. Recurrent architectures, specifically bi-directional LSTMs
2
and Spatio-Temporal Transformers, have shown utility in sequence modeling by analyzing temporal contexts in both forward and reverse directions [8, 13]. However, purely data-driven sequence models often neglect fundamental spatial constraints. To address these challenges, hierarchical spatial–temporal graph convolutional networks (ST-GCNs) and federated learning frameworks have been proposed to model complex topological dependencies in urban traffic networks [12, 19]. While effective in capturing citywide propagation, ST-GCN-based approaches face substantial computational overhead and difficulty generalizing across heterogeneous geometries [11]. Similarly, adaptive spatiotemporal feature fusion networks have been introduced to improve intersection-level prediction by dynamically weighting input features [16, 20]. However, such approaches often struggle to ensure structural consistency, as predicted turning fractions may fail to sum to the entering volume [21]. Attention-based models using historical traffic sequences have further improved short-term forecasting performance [10]. Despite these advances, existing methods generally do not explicitly model the hierarchical interaction between upstream corridor flows and downstream turning movements [14, 15, 18], nor do they fully exploit physics-informed constraints for regularization [6, 17]. To address these computational and structural limitations, the proposed HFD-TM framework adopts a hierarchical decomposition strategy integrated with a physics-informed conservation objective.
3
Methodology
3.1
Proposed HFD-TM Framework
The proposed Hierarchical Flow-Decomposition for Turning Movements (HFD-TM) framework predicts intersection turning-movement counts by decomposing the task into two stages: (i) forecasting dominant corridor-level through movements and (ii) expanding these forecasts to obtain full turning-movement streams. This design reflects the empirical structure of corridor traffic, where through movements account for the majority of volume and exhibit lower temporal variability than individual turning movements. Let the normalized input sequence be X ∈ RT ×N ,
(1)
where T denotes the input sequence length and N is the total number of movement streams across the corridor. Let C ⊂ {1, . . . , N } denote the index set corresponding to corridor (through) movements. The corridor-level input is defined as Xc = X[:, C] ∈ RT ×Nc , (2) where Nc = |C|. The HFD-TM framework generates predictions in a hierarchical manner. It first produces a corridor-level prediction ŷc ∈ RNc , (3) which represents the predicted through-movement volumes along the corridor. These corridor predictions are subsequently expanded through a learned turn-movement prediction module to obtain the full turning-movement prediction ŷ ∈ RN .
3
(4)
Figure 1: System-level overview of the proposed HFD-TM framework. Block A encodes corridorlevel through flows from historical inputs, Block B expands corridor predictions into turning movements using contextual information, and Block C refines predictions with residual correction and zero-movement masking.
3.2
Turning-Movement Expansion via Ratio Prediction
The expansion from corridor predictions to full movement predictions is implemented using a TurnRatioPredictor module. This module combines corridor predictions with a learned hour-of-day embedding to generate an additive correction on top of a linear expansion. Let the hour-of-day input be h ∈ {0, . . . , 23}, (5) provided as a LongTensor. The hour embedding is defined as eh = Embed(h) ∈ RH ,
(6)
where H is the hidden dimension (set to 64 in this work). A linear expansion of corridor predictions is first computed as ŷexpand = We ŷc + be ∈ RN .
(7)
The input to the multilayer perceptron (MLP) is the concatenation of corridor predictions and the hour embedding: z = [ŷc , eh ] ∈ RNc +H . (8) The MLP produces an additive adjustment: ∆ŷ = fMLP (z) ∈ RN . 4
(9)
The expanded full-movement prediction is then given by ŷall = ŷexpand + ∆ŷ.
3.3
(10)
Residual Refinement and Zero-Movement Masking
After expansion, a residual connection from the most recent observed full-movement vector is applied. Let xT ∈ RN (11) denote the last time step of the input sequence. The residual weight was chosen empirically based on validation performance, with stable results observed for values between 0.0 and 0.5. A fixed value of 0.3 was selected to balance recent observations and model predictions while avoiding additional parameters and training complexity. This choice ensures that the residual term provides temporal smoothing without allowing persistence to dominate the hierarchical prediction. ŷres = ŷall + 0.3 xT .
(12)
A lightweight refinement network then produces a residual correction: ŷref = frefine (ŷres ) + ŷres .
(13)
The refinement network is intentionally lightweight (two fully connected layers) to preserve computational efficiency and avoid overfitting. Finally, a zero-movement mask, are identified based on intersection geometry and lane configuration and remain fixed during training, m ∈ {0, 1}N
(14)
is applied to enforce physically implausible zero movements: ŷ = ŷref ⊙ m.
(15)
The mask m is implemented as a registered buffer, assigning zeros to indices corresponding to structurally infeasible movements, where ⊙ denotes element-wise multiplication.
3.4
Hierarchical Loss Formulation
Training is performed using a hierarchical loss function that combines prediction accuracy, corridor emphasis, and flow conservation constraints. Let A denote the index set of active movements and C the corridor movement indices. The active-movement mean squared error (MSE) is defined as Lmse = MSE(ŷ[:, A], y[:, A]).
(16)
The active index set excludes structurally inactive movements to avoid biasing the loss with trivial zero flows. A corridor-weighted MSE term is added: Lcorr = MSE(ŷ[:, C], y[:, C]).
(17)
Corridor movements are weighted separately due to their dominant contribution to total volume and their influence on downstream turning predictions. To enforce flow conservation at intersections, movements are grouped by intersection. Let Gk denote the index set of movements belonging 5
Algorithm 1: Proposed HFD-TM Based Turning Movement Prediction Procedure Data: Normalized sequences X, targets y, hour indices h; corridor indices C; active indices A; intersection groups {Gk }K k=1 Result: Predicted turning movements ŷ; trained parameters Θ∗ Function Main((X, y, h)): Step 1: Initialize Model and Optimizer; Initialize HFD-TM fΘ (GRU encoder, ratio predictor, refine block, zero-mask); Initialize Adam optimizer (lr=0.001, wd=5×10−4 ) and LR scheduler; Step 2: Train the HFD-TM Model; for epoch = 1 to Emax do foreach mini-batch (Xb , yb , hb ) do Step 2.1: Corridor Encoding; Xc ← Xb [:, :, C]; ŷc ← CorridorEncoder(Xc ); Step 2.2: Turning Expansion and Refinement; ŷ ← TurnRatioPredictor(ŷc , hb ); ŷ ← Refine(ŷ, Xb ); ŷ ← ŷ ⊙ zero mask; Step 2.3: Hierarchical Loss and Update; L ← MSE(ŷ[:, A], yb [:, A]) + λcorr MSE(ŷ[:, C], yb [: , C]) + λcons Lcons (ŷ, yb , {Gk }); Backpropagate L and update Θ; Update LR scheduler and apply early stopping on validation MAE; Save best checkpoint Θ∗ ; Step 3: Inference; ŷ ← fΘ∗ (X, h); return ŷ;
to intersection k, and let K be the total number of intersections. The conservation loss is defined as K X X X 1 Lcons = MSE ŷi , yi . (18) K i∈Gk
k=1
i∈Gk
The total training loss is given by L = Lmse + λcorr Lcorr + λcons Lcons .
(19)
The weighting parameters λcorr and λcons are chosen to balance prediction accuracy, corridor fidelity, and flow conservation while maintaining stable optimization behavior.
4
Proposed Framework Training and Optimization
The HFD-TM framework is trained in an end-to-end supervised manner using normalized temporal input sequences, corresponding turning-movement targets, and discrete hour-of-day indices. Train6
ing strictly follows the hierarchical modeling pipeline described in Section III and is governed by the optimization procedure summarized in Algorithm 1.
4.1
Training Setup
Let (X, y, h) denote the normalized input sequences, ground-truth turning-movement vectors, and hour-of-day indices, respectively. Corridor movement indices C, active movement indices A, and intersection groupings {Gk }K k=1 are predefined and fixed throughout training. All model parameters Θ, including the corridor encoder, turn-ratio predictor, residual refinement block, and the registered zero-movement mask, are jointly optimized. The model is trained using the Adam optimizer with a learning rate of 1 × 10−3 and a weight decay of 5 × 10−4 . A learning-rate scheduler is applied during training, and early stopping based on validation mean absolute error (MAE) is employed to prevent overfitting. The model checkpoint achieving the best validation performance is retained for inference.
4.2
Mini-Batch Training Procedure
During each training epoch, the dataset is processed in mini-batches. Given a mini-batch (Xb , yb , hb ), corridor-level inputs are first extracted as Xc = Xb [:, :, C].
(20)
The corridor encoder processes Xc to generate corridor-level predictions ŷc . These predictions are subsequently passed to the turn-ratio predictor, together with the corresponding hour-of-day embeddings, to generate expanded turning-movement estimates. The expanded predictions are further refined through a residual refinement block that incorporates a fixed residual contribution from the most recent observed full-movement vector. Finally, a registered zero-movement mask is applied to enforce physically implausible zero-flow constraints prior to loss evaluation.
5
Experimental Evaluation
5.1
Experimental Setup and Evaluation Metrics
The proposed HFD-TM framework is evaluated using real world LiDAR based traffic data collected from a six-intersection corridor along Clarksville Pike in Nashville, Tennessee. The dataset was obtained via the Bluecity platform provided by the Nashville Department of Transportation (NDOT), which aggregates and distributes traffic measurements from deployed roadside LiDAR sensors. It contains 20,352 samples recorded at 15 minutes intervals over six months and includes 72 movement streams (12 corridor through-movements and 60 turning movements). Hour of day indices extracted from timestamps are provided as auxiliary inputs to capture diurnal traffic patterns. The data are split chronologically into training, validation, and test sets using a 70%–15%–15% partition to preserve temporal ordering and avoid leakage. All movement counts are normalized using min–max scaling parameters computed on the training set and applied consistently to validation and test sets. Performance is evaluated using Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE), reported in vehicles per 15-minute interval: n
MAE =
1X |yi − ŷi | , n i=1
7
(21)
Table 1: Baseline comparison results. Errors are reported in vehicles per 15-minute interval. Model GRU LSTM Transformer DCRNN HFD-TM
MAE
RMSE
Time (s)
MAE ∆
RMSE ∆
3.4071 3.5363 2.6383 2.6779 2.4873
8.1654 8.4549 5.7130 5.8697 5.1886
67.4 44.1 230.1 3539.9 275.8
+27.0% +29.7% +5.7% +7.1% –
+36.5% +38.6% +9.2% +11.6% –
Table 2: Ablation Study Results. ∆MAE is reported relative to the full HFD-TM model. Configuration Full Model − Hierarchy − Corridor Weight − Conservation
MAE
RMSE
∆MAE
2.4873 2.6035 2.5474 2.5437
5.1886 5.7393 5.4205 5.3142
– +4.67% +2.41% +2.27%
v u n u1 X RMSE = t (yi − ŷi )2 . n
(22)
i=1
Training time (seconds) is also recorded to assess computational efficiency.
5.2
Baseline Comparison Results
HFD-TM is compared with four baseline models: GRU, LSTM, Transformer, and DCRNN. All models are trained using identical data splits and evaluated using the same metrics. Table 1 summarizes the results. HFD-TM achieves the lowest MAE (2.4873) and RMSE (5.1886), outperforming all baselines. Relative to the strongest baseline (Transformer, MAE = 2.6383), HFD-TM reduces MAE by 5.7% and RMSE by 9.2%. Larger gains are observed relative to GRU and LSTM, with MAE reductions of 27.0% and 29.7%, respectively. In addition, HFD-TM trains in 275.8 seconds, which is approximately 12.8× faster than DCRNN while achieving higher accuracy.
5.3
Training Stability and Convergence Analysis
All models are trained using the Adam optimizer with early stopping based on validation MAE. HFD-TM converges consistently within 60 epochs. Direct comparison of raw training loss magnitudes across models is not meaningful, as the HFD-TM objective includes additional terms (corridor weighting and conservation). Accordingly, model comparison is based on test-set accuracy at the best validation checkpoint.
5.4
Ablation Study and Component Contribution
An ablation study is conducted to assess the contribution of individual components in HFD-TM. Results are reported in Table 2 . Removing hierarchical decomposition increases MAE from 2.4873 to 2.6035 (+4.67%), representing the largest degradation. Removing the corridor-weighting term increases MAE to 2.5474 (+2.41%), while removing the conservation term increases MAE to 2.5437 8
Figure 2: Comparison of mean absolute error (MAE) across baseline models and the proposed HFD-TM framework. (+2.27%). These results confirm that all components contribute positively, with hierarchical decomposition providing the dominant benefit.
5.5
Theoretical Explanation for Error Reduction
The observed error reductions are consistent with the statistical structure of intersection flows. Corridor through-movements dominate total volume (65.1%) and exhibit lower volatility (mean coefficient of variation ≈ 0.80) than turning movements (mean coefficient of variation ≈ 1.19). Turning movements are moderately correlated with corridor totals (mean Pearson correlation ≈ 0.567), and corridor totals explain a substantial portion of turning-movement variance (mean R2 ≈ 0.355). By the law of total variance, Var(Yt ) = E [Var(Yt | Yc )] + Var (E[Yt | Yc ]) ,
(23)
where Yt denotes a turning movement and Yc denotes corridor flow. Since Var (E[Yt | Yc ]) is nontrivial in this dataset, conditioning turn prediction on corridor flow reduces the residual uncertainty the model must learn. HFD-TM operationalizes this principle by first predicting lower-variance corridor flows and then estimating turning movements conditioned on these corridor predictions, yielding consistently lower prediction error than flat architectures.
6
Conclusion
This paper presents HFD-TM, a hierarchical deep learning framework for turning movement prediction at signalized corridor intersections. The framework decomposes the prediction task by first 9
estimating stable corridor through-movements and then predicting turning movements conditioned on these estimates, while enforcing flow conservation through a physics-informed loss function. Experimental results using real-world LiDAR data demonstrate that HFD-TM consistently outperforms GRU, LSTM, Transformer, and DCRNN baselines. Ablation analysis confirms that hierarchical decomposition is the primary contributor to performance improvement, consistent with observed traffic characteristics in which corridor flows exhibit lower volatility and explain a substantial portion of turning-movement variance. The framework also achieves significantly lower training time than graph-based baselines, supporting practical deployment. Future work will extend the framework to corridors with diverse geometric and demand conditions, multi-step prediction horizons, and integration with signal timing optimization. Evaluation on additional corridors with varying geometric configurations is a natural next step to assess generalizability further. The proposed hierarchical formulation provides an efficient and principled approach for data-driven turning-movement prediction in intelligent transportation systems.
References [1] C. Zhang et al., “Real-time intersection turning movement flow forecasting using neural networks,” Transportation Research Record, 2024. [2] C. Watson, “Real-time short-term intersection turning movement flow forecasting,” Master’s thesis, University of Waterloo, 2024. [3] Y. Li et al., “Deep learning methods for intersection traffic prediction: A survey,” Transportation Research Part C, 2024. [4] S. Afandizadeh, “Deep learning algorithms for traffic forecasting: A comprehensive review,” Journal of Advanced Transportation, 2024. [5] D. A. Tedjopurnomo, Z. Bao, B. Zheng, F. M. Choudhury, and A. K. Qin, “A survey on modern deep neural network for traffic prediction: Trends, methods and challenges,” in 2023 IEEE 39th International Conference on Data Engineering (ICDE). IEEE, 2023, pp. 3795–3796. [6] C. Li and M. G. Md Johar, “Traffic flow prediction in urban built-up areas using deep learning,” in Proceedings of the 2nd International Conference on Artificial Intelligence of Things and Computing, 2025, pp. 299–304. [7] R. Ali et al., “A comprehensive survey of deep learning-based traffic flow prediction models,” ICCK Transactions on Advanced Computing and Systems, 2025. [8] Y. Han, “Traffic flow prediction using deep learning techniques in urban road networks,” Applied Mathematics and Nonlinear Sciences, vol. 10, no. 1, 2025. [Online]. Available: https://doi.org/10.2478/amns-2025-0832 [9] A.-L. Toba, S. Kulkarni, W. Khallouli, and T. Pennington, “Long-term traffic prediction using deep learning long short-term memory,” Smart Cities, vol. 8, no. 4, p. 126, 2025. [10] C. Ren et al., “A combined short-term traffic flow prediction model using vmd and deep learning,” Scientific Reports, 2025. [11] S. F. Ahmed et al., “Enhancement of traffic forecasting through graph neural networks,” Information Fusion, 2024. 10
[12] Y. A. Pan et al., “Urban intersection traffic flow prediction using physics-guided spatiotemporal graph neural networks,” Transportation Research Part C, 2025. [13] M. Xu, W. Dai, C. Liu, X. Gao, W. Lin, G.-J. Qi, and H. Xiong, “Spatial-temporal transformer networks for traffic flow forecasting,” arXiv preprint arXiv:2001.02908, 2020. [14] P. Wang, L. Feng, Y. Zhu, and H. Wu, “Hybrid spatial–temporal graph neural network for traffic forecasting,” Information Fusion, vol. 118, p. 102978, 2025. [15] Y. Zhang, S. Peng, and Y. Zhou, “Spatial–temporal graph transformer network for traffic network flow prediction using parallel training based on cloud computing,” Applied Soft Computing, p. 113422, 2025. [16] W. Kong, Z. Guo, and Y. Liu, “Spatio-temporal pivotal graph neural networks for traffic flow forecasting,” in Proceedings of the AAAI conference on artificial intelligence, vol. 38, no. 8, 2024, pp. 8627–8635. [17] M. Usama, R. Ma, J. Hart, and M. Wojcik, “Physics-informed neural networks (pinns)-based traffic state estimation: An application to traffic network,” Algorithms, vol. 15, no. 12, p. 447, 2022. [18] L. Wei, K. Ampountolas, A. Hirrle, and M. Wang, “Hierarchical predictive control of network traffic signals using link transmission model with queue dynamics,” IEEE Transactions on Intelligent Transportation Systems, 2025. [19] J. Feng et al., “Traffic flow prediction based on federated learning and spatio-temporal graph neural networks,” ISPRS International Journal of Geo-Information, 2024. [20] Y. Gong, C. Zhang, H. Wei, W. Zheng, and G. Pan, “A parallel adaptive feature fusion framework for intersection-level traffic turning movement flow prediction,” in Proceedings of the 2024 2nd International Conference on Frontiers of Intelligent Manufacturing and Automation, 2024, pp. 295–300. [21] C. Liu et al., “Pnns4: A parallel quadruple neural network model for intersection turning traffic flow prediction,” Canadian Journal of Civil Engineering, 2025.
11