Next Article in Journal
A Series of Acute Psychological Priming Interventions Assessing Changes in Hormonal and Physical Performance Measures During Resistance Training
Previous Article in Journal
Multi-Objective Optimization Study on the Separation Stability of the Falling Body in Absolute Gravimeters
Previous Article in Special Issue
A Deep Multi-Task Learning Model for OD Traffic Flow Prediction Between Highway Stations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Traffic Arrival Prediction for Intelligent Signal Control Using a Hidden Markov Model-Filtered Dynamic Platoon Dispersion Model and Automatic License Plate Recognition Data

1
College of Civil Engineering and Architecture, Zhejiang University, Hangzhou 310058, China
2
Zhejiang Urban Governance Studies Center, Hangzhou 310058, China
3
IOT Technology Application Transportation Industry R & D Center, Hangzhou 310013, China
4
School of Information and Electrical Engineering, Hangzhou City University, Hangzhou 310058, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(21), 11537; https://doi.org/10.3390/app152111537
Submission received: 15 September 2025 / Revised: 7 October 2025 / Accepted: 13 October 2025 / Published: 29 October 2025

Abstract

Accurate prediction of downstream vehicle arrivals is pivotal for intelligent signal control, yet many advanced controllers depend on high-resolution trajectories that are rarely available outside connected-vehicle settings. We present a deployable alternative that converts ubiquitous Automatic License Plate Recognition (ALPR) timestamps into the predictive inputs required by modern controllers. The method couples a Hidden Markov Model (HMM) for separating free-flow samples from signal-induced delays with a dynamic platoon-dispersion model that is re-estimated online in a rolling window to forecast downstream arrival profiles in real time. In a Simulation of Urban Mobility (SUMO) corridor testbed, the proposed framework consistently outperforms fixed-kernel dispersion and fixed-travel-time baselines, reducing RMSE by 57–75% and MAE by 53–73% across demand levels; ablation results confirm that HMM-based filtering is the dominant contributor to the gains. Robustness experiments further show stable parameter estimation under low ALPR matching rates, indicating suitability for real-world conditions where data quality fluctuates. Because it operates with existing roadside cameras and lightweight inference, the framework is readily integrable into adaptive signal strategies and broader smart-city traffic management. By turning discrete ALPR events into reliable arrival predictions, it bridges the gap between advanced signal control and today’s sensing infrastructure, enabling cost-effective real-time signal optimization in data-constrained urban networks.

1. Introduction

In recent years, advances in computational intelligence have propelled the development of sophisticated real-time traffic signal control (RT-TSC) strategies, notably those employing DRL [1] and MPC [2]. These methods offer the potential to learn complex traffic patterns and proactively optimize signal timings, moving beyond the limitations of traditional reactive systems [3]. However, a critical bottleneck hinders their widespread practical implementation: an inherent reliance on high-resolution, real-time traffic state data, particularly individual vehicle trajectories [4,5]. Such granular data is typically assumed to be available only in simulations or future connected vehicle (CV) ecosystems [6]. Given the low penetration rate of CVs and the significant cost of deploying the requisite infrastructure, a persistent gap exists between the data demands of advanced algorithms and the data available from current urban infrastructure [7]. To bridge this gap, this paper explores the potential of a widely deployed and cost-effective data source: ALPR systems. Thanks to deep learning advancements, ALPR technology now achieves high accuracy in diverse conditions [8,9] and is already ubiquitous for applications like electronic tolling [10] and parking management [11], providing a rich, albeit discrete, stream of vehicle movement data.
Indeed, prior research has demonstrated the utility of license plate recognition data for estimating key traffic parameters. It has been used to reconstruct individual speed profiles [12], estimate real-time queue lengths [13,14], and model traffic arrival patterns [15,16,17]. However, these efforts primarily focus on current or past states and stop short of providing the forward-looking arrival profiles required by proactive controllers (e.g., MPC, DRL). The disconnect between state estimation and predictive control reflects a practical gap: transforming sparse, point-based ALPR timestamps into continuous, downstream arrival forecasts suitable for next-generation signal control. Figure 1 sketches our study scenario: ALPR devices at consecutive intersections provide (i) spatio-temporal departure profiles at the intersection stop line and (ii) dynamic link travel-time samples via cross-site plate matching.
To address this gap, we propose a deployable framework that converts ALPR event streams into downstream arrival predictions usable by RT-TSC. As summarized in Figure 2, the framework couples a HMM-filtered dynamic platoon-dispersion module with a propagation step to forecast arrival profiles. Concretely, it integrates three components: (1) link travel-time collection from matched ALPR events, (2) HMM-based classification to extract free-flow samples and calibrate the dispersion model dynamically within a rolling window, and (3) real-time prediction of downstream arrivals. This yields the exact predictive inputs (future arrivals, queues, and delays) needed by advanced controllers while leveraging existing ALPR infrastructure in non-CV-saturated urban networks.

2. Literature Review

This review covers two key areas central to our proposed framework: the use of platoon dispersion models for traffic prediction and the statistical methods required to calibrate these models using real-world travel time data.

2.1. Platoon Dispersion Models for Traffic Prediction

Platoon dispersion, the process by which a group of vehicles spreads out as it travels downstream from a signalized intersection, is a fundamental concept in traffic flow theory [18]. Accurate modeling of this phenomenon is essential for predicting vehicle arrival patterns at downstream intersections, a critical input for optimizing coordinated traffic signal timing. The importance of this concept was first operationalized in the seminal TRANSYT system, which incorporated a platoon dispersion model to coordinate arterial signals [19]. The principle remains highly relevant today, with modern research integrating platoon dispersion models into dynamic predictive signal control frameworks to enhance system efficiency, often in conjunction with emerging technologies like Vehicle Infrastructure Integration (VII) [20].
The efficacy of any platoon dispersion model hinges on its ability to accurately characterize the stochastic dynamics of traffic flow. These models typically assume that vehicle travel times or speeds follow a specific probability distribution (e.g., normal, log-normal, or shifted geometric) to capture the temporal spreading of vehicle platoons. Therefore, the accurate calibration of the statistical properties of these distributions (e.g., mean and variance) is paramount for model performance [21]. In response, the field has seen the development of increasingly sophisticated models, such as those based on a truncated mixed Gaussian distribution to better fit empirical data [22], models that feature online parameter calibration to adapt to changing conditions [23], and models designed to handle heterogeneous traffic flow composed of different vehicle types [24].

2.2. Data Challenges: Classifying Free-Flow Travel Times

While these models are powerful, their effectiveness in real-world applications is contingent upon the quality of the input data used for calibration. When using ALPR data to estimate the travel time distribution for a road segment between two signals, a significant challenge arises: the raw travel time calculated from license plate matches is a composite measure. It includes not only the free-flow travel time (the time it would take without the influence of the downstream signal) but also any delay experienced at the downstream signal’s queue. Using this conflated data to estimate the travel time distribution for the platoon dispersion model leads to inaccuracies, as the signal delay component artificially inflates the mean and variance of the travel time.
To address this data contamination issue, a crucial pre-processing step is to classify the raw travel time observations and isolate the data points that represent free-flow conditions. Various data-driven methods have been proposed for this task. Early approaches include fitting the data with finite mixture models, such as a mixture of two lognormal distributions representing cruising and delayed vehicles [25], or employing a finite mixture of regression models with varying mixing probabilities [26]. Other researchers have utilized clustering algorithms like DBSCAN to group travel time data and identify the free-flow cluster [27]. However, these classification methods are designed for static datasets and often treat each data point as independent. This assumption fails to account for two critical characteristics of traffic data: (1) the collected travel times inherently form a time series, and (2) strong correlations exist between the travel times of successive vehicles within and across signal cycles.
To overcome these limitations, recent research has demonstrated that the HMM exhibits superior performance in classifying travel times, particularly under scenarios with low license plate matching rates [28]. As a stochastic model designed for sequential data, the HMM can explicitly model the underlying state transitions (e.g., from a “free-flow” state to a “congested” state) and the temporal dependencies in the observed travel times. This makes it exceptionally well-suited for the task of calibrating platoon dispersion models, forming the methodological foundation of this study.

3. Method

3.1. Problem Statement and Method Overview

As illustrated in Figure 1, the deployment of Automatic License Plate Recognition (ALPR) cameras at urban intersections allows for the real-time collection of vehicle departure timestamps and license plate information as vehicles cross the stop-line. This ALPR data serves two primary functions: (1) establishing spatio-temporal profiles of vehicles departing the intersection and (2) constructing dynamic link travel-time datasets by matching license plates across sequential intersections.
However, a critical limitation of ALPR data is that it provides only discrete departure timestamps from the upstream intersection, not the complete, continuous arrival sequence at the downstream intersection. This data gap prevents the direct application of supervised learning models commonly used for arrival prediction, such as LSTMs or Transformers, which require complete ground-truth arrival sequences for training. Therefore, the central challenge is to develop a precise traffic state prediction model that can effectively utilize these discrete data streams to provide critical decision parameters—such as traffic volume, queue length, and delay—for advanced traffic control systems.
To address this challenge, we propose a framework, depicted in Figure 2, composed of two core modules: dynamic platoon dispersion model parameter estimation and downstream arrival prediction.

3.1.1. Dynamic Model Parameter Estimation

The first module focuses on accurately estimating the parameters of a dynamic platoon dispersion model. This process involves three key steps:
1.
Data collection: Link travel time data is continuously collected within a rolling 10 min time window [16]. This dataset, however, is inherently “contaminated” by delays caused by downstream traffic signals.
2.
Data filtering: To isolate accurate travel times, an HMM is employed to stochastically classify the raw travel time data into different traffic states. This allows for the effective filtering and extraction of free-flow travel time samples, which represent unimpeded vehicle movement.
3.
Parameter calibration: The platoon dispersion model parameters are then iteratively calibrated using only the filtered free-flow data. This update process is executed in a rolling manner; the system re-runs the Baum–Welch and Viterbi algorithms on the latest 10 min data window to update both the HMM parameters and the free-flow speed distribution parameters ( μ t u , σ t u ), μ t u and σ t u denote the mean and standard deviation of free-flow speed at time t u , estimated from samples classified as free-flow by the HMM within window W. This mechanism ensures the model dynamically adapts to gradual changes in traffic conditions.

3.1.2. Downstream Arrival Prediction

The second module leverages the calibrated model to generate actionable predictions. By integrating the real-time upstream intersection departure records with the updated dynamic platoon dispersion model, a downstream arrival prediction model is established. This enables the framework to accurately forecast the distribution of vehicle arrivals at the downstream intersection for future time intervals, providing the necessary input for advanced real-time traffic signal control strategies.

3.2. HMM for Free-Flow Speed Distribution Estimation

3.2.1. Rationale for Model Selection

The travel time data collected from ALPR matching is inherently a time series. The state of a vehicle in a platoon is not independent of the vehicles preceding it; rather, there exists a strong sequential dependency. For instance, a vehicle in a free-flow state is likely to be followed by another in free-flow. Conversely, the state of a vehicle following one delayed at the head of a queue depends on whether that queue has begun to dissipate. Conventional static classification methods, such as Gaussian Mixture Models or DBSCAN, treat each travel time as an independent data point, thereby ignoring this critical temporal information. This makes it difficult to distinguish between similar travel time values that arise from different traffic dynamics (e.g., queue formation vs. queue dissipation).
The HMM is a probabilistic graphical model specifically designed to analyze sequential data with unobservable latent states. By establishing a statistical relationship between the observable outputs (travel times) and the hidden states (traffic congestion states), HMM can effectively capture the dynamic characteristics and temporal evolution of sequential data. Therefore, HMM is the ideal choice for this problem.

3.2.2. HMM Formulation

In this study, we define the traffic condition experienced by a vehicle as one of three hidden states. These states are not directly observed but govern the vehicle’s travel time (the observation):
  • State m (head-of-queue delay): Vehicles at the head of a platoon are affected by a downstream red signal. Their travel times are long but tend to decrease as the queue dissipates after the light turns green.
  • State u (free-flow): Vehicles are unimpeded by signals or queues and travel at or near the free-flow speed. Their travel times are stable and typically short.
  • State s (tail-of-queue delay): Vehicles at the tail of a platoon are delayed by a queue that has already formed ahead. Their travel times are significantly longer and may even increase as they join the back of the queue.
The state transitions among these three states reflect the physical process of a platoon moving through the intersection. The evolution of a platoon can be modeled as a sequence of these states. Based on the platoon’s arrival time relative to the signal phase, four typical state-transition scenarios can occur:
  • Scenario 1 ( u s ): A group of free-flow vehicles (State u) arrives, but subsequent vehicles begin to queue due to a signal change, causing a transition to tail-of-queue delay (State s).
  • Scenario 2 ( m u s ): A queue dissipates (State m), allowing a set of vehicles to pass in free-flow (State u), before a new queue begins to form near the end of the green phase (State s).
  • Scenario 3 (u): An entire platoon passes through the intersection during a “green wave” or otherwise unimpeded, with all vehicles remaining in the free-flow state (State u).
  • Scenario 4 ( m u ): A queue fully dissipates (State m), and all subsequent vehicles observed proceed in free-flow (State u) until the end of the observation window.
It is important to note that while the physical descriptions of states m and s involve dynamic trends in travel time (e.g., decreasing for a dissipating queue), the standard HMM employed in this study simplifies this by assigning an independent observation distribution to each state. The model primarily distinguishes between these different congestion states by learning the state transition probabilities and analyzing the sequence of states, rather than by directly modeling trends within the emission probabilities. For instance, the Viterbi algorithm, by finding the most likely state sequence, can effectively differentiate typical patterns such as m u (queue dissipation) from u s (queue formation).
The HMM’s state transition matrix A = { a i j } (where a i j = Pr ( S g = j | S g 1 = i ) ) can perfectly characterize all the above scenarios probabilistically by learning from the mixed data. These states and their corresponding transition scenarios are visually illustrated in Figure 3.
The HMM framework is illustrated in Figure 4; this layered structure explicitly models how latent congestion states (upper layer) probabilistically generate observable travel times (lower layer) while accounting for the chronological sequence of vehicles passing through downstream intersections.
The input data consists of a sequence of tuples ( departure time , Travel time ) sorted chronologically. The travel time component is selected as the observation sequence T 1 : G = { T 1 , T 2 , , T G } , where T g represents the travel time of the g-th vehicle in the set. The departure time through the downstream intersection is used for temporal alignment but not directly incorporated into the HMM framework.
We model the matched travel-time sequence and its latent congestion states with a first-order HMM. The joint probability factors into an initial term, state transitions, and emissions as follows:
Pr ( T 1 : G , S 1 : G θ ) = Pr ( S 1 ) g = 2 G Pr ( S g S g 1 ) g = 1 G Pr ( T g S g ) .
Notation used in Equation (1).
  • S g { m , u , s } : hidden state of the g-th observation (queue head m, free flow u, queue tail s).
  • T g R : link travel time (s) of the g-th observation; T 1 : G = { T 1 , , T G } with g = 1 : G .
  • π i = Pr ( S 1 = i ) : initial state probabilities.
  • A =   [ a i j ] : transition matrix with a i j = Pr ( S g = j S g 1 = i ) and i (origin), j (destination) { m , u , s } .
  • B = { b i ( · ) } : emission family; b i ( T g ) = N ( T g μ i , Σ i ) (univariate case Σ i = σ i 2 ).
  • θ = { π , A , B } : parameter set of the HMM.
A compact list of all symbols is provided in Table 1.
Since these parameters are not known beforehand, they must be learned directly from the observed data sequence T 1 : G . For this task, we employ the Baum–Welch algorithm [29,30]. This algorithm, a specific application of the expectation-maximization (EM) procedure, iteratively adjusts the parameters θ = { π , A , B } to maximize the likelihood of the observed travel times, as expressed in Equations (2) and (3). The detailed steps are provided in Appendix A as Algorithm A1.
θ * = arg max θ Pr T 1 : G | θ
Pr ( T 1 : G | θ ) = S 1 : G Pr ( T 1 : G , S 1 : G | θ ) .
The HMM in this study uses continuous observations: each T g is a scalar link travel time and b i ( T g ) = N ( T g μ i , σ i 2 ) . Only the hidden state S g { m , u , s } is discrete.
Once the model parameters θ have been estimated using the Baum–Welch algorithm, the next step is to use these parameters to infer the most probable sequence of hidden states that corresponds to the observed travel times. This process, known as decoding, is accomplished using the Viterbi algorithm.
The Viterbi algorithm [31,32] finds the single most likely state sequence S ^ 1 : G given the observations T 1 : G and the now-trained model parameters θ , as shown in Equation (4). This dynamic programming approach recursively computes the maximum likelihood path through the trellis of states, with the procedure detailed in Appendix A as Algorithm A2.
S ^ 1 : G = arg max S 1 : G Pr S 1 : G | T 1 : G , θ
Finally, the inferred state sequence S ^ 1 : G is used to partition the data into three groups corresponding to states { s , m , u } . The group with the smallest mean is identified as the free-flow group (state u).

3.2.3. Free-Flow Speed Distribution Estimation

After obtaining the free-flow group, the parameters of the platoon dispersion model can be dynamically estimated. To establish the dynamic platoon dispersion model, we propose the following microscopic driving assumptions:
  • Speed heterogeneity: The speeds of different vehicles within the platoon are not uniform; instead, they are independent and identically distributed (i.i.d.) random variables following a common free-flow speed distribution f t u ( v ) .
  • Individual speed constancy: The speed v i of any individual vehicle i is assumed to be constant throughout its journey along the link from the upstream to the downstream intersection.
In this study, the free-flow speed distribution function is assumed to follow a truncated normal distribution, as given by the following formula:
f t u ( v ) = c 2 π σ t u exp ( v μ t u ) 2 2 σ t u 2 , v min v s . v max
where c is the coefficient of truncated distribution, μ t u is the average speed at time t u over a 10 min time window, σ t u is the mean square deviation of speed at time t u over a 10 min time window, v min is the minimum speed at time t u over a time 10 min window, and v max is the maximum speed at time t u over a time 10 min window.
Within the free-flow group, the free-flow speed set can be obtained V 1 : M = { v 1 , v 2 , , v M } . Here M is the number of samples in the free-flow group within the current window. The parameters in Equation (5) can be estimated using the following formula:
μ t u = 1 M i = 1 M v i
σ t u 2 = 1 M i = 1 M ( v i μ t u ) 2
v min = min ( v i ) , i = 1 , 2 , , M
v max = max ( v i ) , i = 1 , 2 , , M
c 1 = v min v max 1 2 π σ t u exp ( v μ t u ) 2 2 σ t u 2 d v

3.3. Dynamic Platoon Dispersion Model

Before detailing the prediction model, it is crucial to clarify the logical link between the parameter estimation based on a data subset and the arrival prediction for the entire traffic stream. The methodology rests on the following premises:
1.
HMM training data source: The travel time sequence T 1 : G used to train the Hidden Markov Model is constructed exclusively from vehicles successfully matched by the upstream and downstream ALPR systems. This sequence is sorted chronologically based on the vehicles’ departure times from the downstream intersection.
2.
Core generalization assumption: We posit a core assumption that the free-flow travel behavior of the successfully matched vehicles is statistically representative of the entire vehicle population on the link. This assumption is reasonable as the success of ALPR matching is generally independent of a driver’s free-flow speed choice. Consequently, the free-flow speed distribution f t u ( v ) estimated from the matched data subset is considered applicable to all vehicles.
3.
Prediction workflow: In the prediction stage, the model utilizes the complete upstream departure flow u ( t u ) , which is directly recorded by the upstream ALPR detector and includes all vehicles, irrespective of whether they are later matched. The dynamic platoon dispersion model then applies the generalized free-flow speed distribution f t u ( v ) to this complete departure flow to calculate the dispersion of each vehicle platoon.
Having established these principles, the aggregated flow distribution of vehicles arriving at the downstream intersection can be derived. The flow departing from the upstream section at time t u and arriving at the downstream intersection at time t d is illustrated in Figure 5, with the formulation expressed as follows [22]:
1. When L / v min L / v max + Δ t
q d ( t u , t d ) = 0 , t d t u < L / v max or t d t u > L / v min + Δ t u ( t u ) L / t d v max f t u ( v ) d v , L / v max t d t u < L / v min u ( t u ) v min v max f t u ( v ) d v , L / v min t d t u < L / v max + Δ t u ( t u ) v min L / ( t d Δ t ) f t u ( v ) d v , L / v max + Δ t t d t u < L / v min + Δ t
2. When L / v min > L / v max + Δ t
q d ( t u , t d ) = 0 , t d t u < L / v max or t d t u > L / v min + Δ t u ( t u ) L / t d v max f t u ( v ) d v , L / v max t d t u < L / v max + Δ t u ( t u ) L / t d L / ( t d Δ t ) f t u ( v ) d v , L / v max + Δ t t d t u < L / v min u ( t u ) v min L / ( t d Δ t ) f t u ( v ) d v , L / v min t d t u < L / v min + Δ t
where q d ( t u , t d ) is the flow that departs upstream at time t u and arrives downstream at time t d , u ( t u ) is the flow that departs upstream at time t u , Δ t is a unit time interval (s) and L is the link length (m).
The aggregated arriving flow distribution is computed by accumulating the arriving flows at the downstream for all upstream departing flows.
q d ( t d ) = t u = t d L / v min t d L / v max q d ( t u , t d )

4. Case Study

4.1. Simulation Scenario

This study is conducted entirely in simulation using the open-source road traffic simulator SUMO [33]. The run spans 2 h; the first 10 min are treated as a warm-up and excluded from evaluation. The simulated test corridor comprises two coordinated signalized intersections on Jincheng Rd: the upstream junction at Jinli Rd × Jincheng Rd and the downstream junction at Gongren Rd × Jincheng Rd (see Figure 6). The saturation flow rate is 0.5 veh/s/lane. Both controllers operate with a common cycle of C = 100 s. The upstream intersection uses four-phase splits of 29 s/15 s/21 s/15 s, while the downstream intersection uses 32 s/14 s/20 s/14 s. Signals are coordinated with a mainline offset of ϕ = 50 s to generate progressing platoons from upstream to downstream. The inter-signal spacing between the two intersections is 700 m.
Within SUMO, virtual ALPR detectors are placed at the stop lines of the through approaches at both intersections. During effective green, each detector emits an anonymized plate (vehicle) ID and the timestamp at which the vehicle crosses the stop line, producing (i) the departure sequence and (ii) the matched link travel times between the two sites. To obtain an independent validation target that is not used for model calibration, we additionally place a mid-block virtual ALPR detector located 500 m downstream of the upstream stop line; its observed arrivals serve as the ground-truth reference for evaluating the accuracy of the downstream-arrival predictions propagated from the upstream intersection. These validation data are excluded from model calibration to ensure an unbiased assessment of prediction performance at this intermediate location.
The SUMO–HMM pipeline proceeds as follows. Stop-line crossing events are streamed via TraCI and logged as (vehicle ID, time, site). Upstream and downstream events are matched by ID to obtain continuous-valued link travel times T g = t down t up , which form the HMM observation sequence T 1 : G . The HMM thus operates on continuous-valued observations with Gaussian emissions b i ( T g ) = N ( T g μ i , Σ i ) ; only the hidden states S g { m , u , s } are discrete. In parallel, upstream releases u ( t u ) and predicted downstream profiles q d ( t d ) are time-binned with bin size B solely for platoon-dispersion propagation and evaluation—this binning does not quantize T g nor alter the continuous emission modeling. Parameter learning uses a rolling window of length W and is updated every Δ I ; matched pairs contribute to learning, whereas all released vehicles contribute to prediction. Lightweight Python scripts (TraCI + pandas/numpy and hmmlearn) implement event logging, ID matching, window management, and HMM training/decoding; random seeds are fixed for reproducibility. The hardware platform and software stack are summarized in Table 2 and Table 3.

4.2. Experimental Protocol

This section specifies the comparison models (with final naming) and the robustness procedure used in the SUMO testbed.
For the naming convention, we use short acronyms in tables and figures and provide expanded names on first mention.

4.2.1. Models for Comparison

To evaluate overall predictive accuracy and to quantify the contribution of individual modules, we compare the following models in Table 4. All models use the same upstream release sequence, network geometry, and signal timing. For models with online updates, parameters are re-estimated every Δ I = 1 min using a rolling window of W = 10 min. Evaluation uses a prediction horizon of H = 100 s and a bin size of B = 5 s.

4.2.2. Robustness to ALPR Matching Rate

To assess sensitivity to reduced ALPR data availability, we uniformly down-sample the set of successfully matched trips to target matching-rate levels of 90%, 75%, 60%, and 45%. For each level, we run the HMM-based free-flow identification and parameter-estimation procedure on the down-sampled ALPR dataset to obtain the estimated free-flow parameters ( μ est , σ est ) .
Reference for free-flow statistics. The true free-flow speed distribution used for parameter-error benchmarking is derived directly from SUMO vehicle trajectories: we collect link traversals that exhibit no stop-and-go (continuous motion above a small speed threshold and no queueing) and compute the reference mean and standard deviation ( μ true , σ true ) . ALPR-based estimates at each matching-rate level are then compared against ( μ true , σ true ) .
At each level, we report the deviations of the ALPR-estimated free-flow parameters from the trajectory-derived reference.

4.3. Evaluation Metrics

This section defines the metrics used to assess downstream arrival-prediction accuracy and robustness in the SUMO testbed. Unless otherwise stated, evaluation uses a prediction horizon of H = 100 s and a bin size of B = 5 s .

4.3.1. Count Accuracy (Per Bin)

Given observed arrivals y i and predicted arrivals y ^ i in bin i = 1 , , K , we report:
MAE = 1 K i = 1 K y ^ i y i
RMSE = 1 K i = 1 K ( y ^ i y i ) 2

4.3.2. Robustness to ALPR Matching Rate

At each matching-rate level r { 90 % , 75 % , 60 % , 45 % } , robustness is quantified at the parameter-learning stage using the trajectory-derived free-flow reference. Let ( μ ( r ) , σ ( r ) ) be the ALPR-estimated free-flow parameters at level r, and ( μ true , σ true ) denote the trajectory-derived reference. Relative errors were reported:
RE μ ( r ) = | μ ( r ) μ true | μ true
RE σ ( r ) = | σ ( r ) σ true | σ true
Two-sample Kolmogorov–Smirnov (K–S) tests between the ALPR-estimated and trajectory-derived free-flow speed distributions are also performed, reporting the p-values and D-statistics per level.

4.4. Results and Discussion

4.4.1. Overall Prediction Accuracy Against Baselines

Table 5 summarizes the prediction accuracy of the proposed HMM+DD model compared with two baselines (FK and FTT) under different demand levels, expressed as the ratio of volume to capacity ( v / c ). Across all traffic conditions, HMM+DD consistently outperforms the baselines in both RMSE and MAE.
At high demand ( v / c = 0.95 ), the proposed method reduces RMSE by 27.3% compared with FK and by 65.3% compared with FTT, while MAE is lowered by 33.1% and 68.1%, respectively. Under medium demand ( v / c = 0.70 ), the improvements are even more pronounced: RMSE is reduced by 57.7% relative to FK and 75.4% relative to FTT, with MAE reduced by 53.5% and 72.7%. At low demand ( v / c = 0.45 ), prediction errors are overall smaller, but HMM+DD still maintains superior accuracy, lowering RMSE by 41.4% compared with FK and 73.2% compared with FTT, while MAE is reduced by 39.5% and 67.6%.
These results demonstrate that the dynamic, HMM-filtered dispersion model adapts effectively to varying traffic demand levels and consistently yields more reliable predictions than static dispersion kernels or fixed-travel-time assumptions. Importantly, the advantage of HMM+DD is not limited to congested scenarios but is evident across the full spectrum of v / c conditions, confirming its robustness and general applicability for real-time traffic signal control.

4.4.2. Ablation Study on HMM Filtering and Online Updates

Table 6 presents the results of ablation experiments designed to isolate the effects of HMM-based free-flow filtering and online parameter updates. The comparison highlights two degraded variants of the proposed model: (i) DD–NoHMM, which removes the HMM classification and directly estimates dispersion from unfiltered travel times, and (ii) SD, which freezes parameter updates after an initial calibration.
The results show that removing HMM filtering leads to dramatic performance degradation. For example, at v / c = 0.95 , RMSE rises from 0.1482 (HMM+DD) to 0.6270 (DD–NoHMM), an increase of 323.1%, while MAE more than triples. This indicates that unfiltered travel times introduce substantial noise from queue-induced delays, severely distorting the estimated dispersion parameters. The negative impact remains evident at lower demand levels ( v / c = 0.70 and 0.45 ), where errors remain 3–5 times higher than the full model.
Freezing updates (SD) results in only moderate degradation compared with HMM+DD. While errors are slightly higher across all demand levels, the relative increase is limited (e.g., RMSE grows by only 7.1% at v / c = 0.95 ). This suggests that while online updates improve adaptability to changing traffic conditions, the HMM filtering plays a more decisive role in maintaining prediction accuracy.
In summary, the ablation study confirms that both HMM filtering and online updates contribute to the accuracy of the proposed model, but the filtering mechanism is the dominant factor in reducing noise and ensuring robust performance across varying traffic demand.

4.4.3. Robustness to ALPR Matching Rate

To assess the model’s sensitivity to data availability, we conducted a Monte Carlo simulation by randomly removing a certain percentage of successfully matched vehicle trips, creating scenarios with reduced ALPR matching rates. We tested the HMM-based free-flow parameter estimation at matching rates of 90%, 75%, 60%, and 45%, with 30 simulation runs for each level. The estimated free-flow parameters ( μ e s t , σ e s t ) at each level were compared against a ground-truth reference derived from the underlying SUMO simulation trajectories.
Figure 7 illustrates the stability of the estimation process. The distributions of the Kolmogorov–Smirnov D-statistic, its corresponding p-value, and the relative errors in the mean ( R E μ ) and standard deviation ( R E σ ) of the free-flow speed are presented. Across all tested matching rates, the relative errors for the mean free-flow speed ( R E μ ) remain consistently low, with median values well below 2%. Similarly, the relative errors for the standard deviation ( R E σ ) are contained, staying below 7% even at the lowest matching rate of 45%. The K-S D-statistics are small, and the p-values are generally well above the 0.05 significance threshold, indicating no statistically significant difference between the estimated and true free-flow distributions.
Table 7 summarizes the numerical results, reinforcing the visual findings from the boxplots. The mean relative errors for both μ and σ show remarkable stability and do not exhibit a strong degradation trend as the matching rate decreases. This suggests that the HMM framework can reliably estimate free-flow speed parameters even with substantial data loss, a critical feature for real-world ALPR systems where matching rates can vary. The model’s performance is robust, ensuring that the foundational parameters for downstream traffic applications remain accurate across a wide range of data-quality scenarios.

4.4.4. Limitations and Alternatives

The Viterbi decoder yields a single most-probable state path under a fixed parameter set θ = { π , A , B } within each update cycle. This implies local stationarity for transitions/emissions and hard assignments that may under-represent posterior uncertainty near boundaries. In traffic dynamics, these assumptions can be challenged by phase-dependent non-stationarities (e.g., offset shifts, demand surges).
This issue is mitigated in our framework through frequent rolling re-estimation ( W = 10  min, update every Δ I = 1  min) to refresh { π , A , B } from the latest window while keeping decoding lightweight for real-time use.
When stronger non-stationarity is expected, alternative formulations may be considered, one may use posterior decoding (per-sample MAP), non-stationary or hierarchical HMMs (time-varying A , B ), hidden semi-Markov models (dwell times), or switching state-space models/particle filters to capture regime changes. These extensions can plug into our ALPR pipeline at a higher computational cost.

5. Conclusions

This work addressed the gap between point-based ALPR observations and the predictive, link-level arrival profiles required for modern urban signal control. We presented a HMM-filtered dynamic platoon-dispersion framework that converts sparse license plate timestamps into real-time downstream arrival predictions. The approach operates with existing roadside infrastructure and requires neither CV penetration nor continuous trajectories.
Across a corridor-scale simulation study, the proposed method consistently outperformed fixed-kernel and fixed-travel-time baselines over a wide demand range. Ablation analyses showed that the HMM-based filtering is the primary source of accuracy gains by isolating free-flow samples from signal-induced delays, while online dispersion updates add adaptability under time-varying conditions. Robustness tests further indicated stable parameter estimates under low ALPR matching rates, supporting deployability when data quality fluctuates.
This framework offers strong practical relevance, given that it is lightweight and depends solely on already deployed ALPR cameras, the predicted arrival profiles q d ( t d ) can be fed directly to adaptive signal strategies (e.g., split/offset updates, spillback mitigation, and progression maintenance) on rolling horizons, enabling near-term integration into existing traffic management centers.
The framework has several limitations and corresponding future directions. HMMs assume a fixed number of predefined states and locally stationary transitions/emissions within each update cycle, and Viterbi provides a single-path decoding; we mitigate these effects via frequent rolling re-estimation. Data-wise, ALPR does not provide continuous ground-truth arrival flows, which limits the direct use of fully supervised deep predictors (e.g., LSTM/Transformer). Our design explicitly targets this constraint by exploiting discrete ALPR events via HMM filtering and dispersion; when richer labels become available, hybrid pipelines that wrap the dispersion stage with learning-based predictors merit investigation. Promising model extensions include non-stationary or hierarchical HMMs, hidden semi-Markov models (explicit dwell times), and switching state-space models to capture regime changes, as well as fusion with complementary sensors (e.g., roadside radar or CV probes). We also plan field tests on operational corridors to assess end-to-end impacts on signal performance.

Author Contributions

Conceptualization, H.Q. and D.W.; methodology, H.Q.; software, H.Q. and J.Z.; validation, H.Q., D.W. and Z.C.; formal analysis, H.Q.; investigation, H.Q.; resources, D.W.; data curation, H.Q.; writing—original draft preparation, H.Q.; writing—review and editing, Z.C.; visualization, H.Q.; supervision, Z.C.; project administration, Z.C.; funding acquisition, D.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant 52131202; in part by the “Pioneer” and “Leading Goose” Research and Development Program of Zhejiang under Grant 2023C01240, 2024C03271, and Grant 2023C03155; in part by the Open Fund Support Project of IOT Technology Application Transportation Industry R & D Center; in part by the Henan Provincial Key Science and Technology Project under Grant 252102240016.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Algorithms

Algorithm A1 Baum–Welch Algorithm with Gaussian Emissions
1:
Input:
2:
- Observation sequence T 1 : G = T 1 , T 2 , , T G
3:
- Number of states N = 3
4:
- initial parameters θ ( 0 )
5:
Output:
6:
- Estimated HMM parameters θ * = ( A , μ , Σ , π )
7:
     where μ = state means, Σ = state covariances
8:
while not converged do
9:
    E-step: Compute forward/backward probabilities
10:
   Compute forward variables α g ( i ) using Gaussian emissions
11:
   Compute backward variables β g ( i ) using Gaussian emissions
12:
    for  g 1 to G  do
13:
      for  j 1 to N  do
14:
        Compute state occupancy probability:
15:
         γ g ( j ) = α g ( j ) β g ( j ) i = 1 N α g ( i ) β g ( i )
16:
      end for
17:
    end for
18:
    Compute state transition probabilities ξ g ( i , j )
19:
    for  g 1 to G 1   do
20:
      for  i 1 to N  do
21:
         for  j 1 to N  do
22:
           ξ g ( i , j ) = α g ( i ) a i j N ( T g + 1 | μ j , Σ j ) β g + 1 ( j ) i = 1 N j = 1 N α g ( i ) a i j N ( T g + 1 | μ j , Σ j ) β g + 1 ( j )
23:
         end for
24:
      end for
25:
    end for
26:
    M-step: update θ = ( A , μ , Σ , π ) to maximize the expected complete-data log-likelihood.
27:
    for  i 1 to N  do
28:
     Update initial state distribution:
29:
      π i = γ 1 ( i )
30:
      for  j 1 to N  do
31:
        Update transition probabilities:
32:
         a i j = g = 1 G 1 ξ g ( i , j ) g = 1 G 1 γ g ( i )
33:
      end for
34:
     Update Gaussian parameters for state j:
35:
      μ j = g = 1 G γ g ( j ) T g g = 1 T γ g ( j )
36:
      Σ j = g = 1 G γ g ( j ) ( T g μ j ) 2 g = 1 G γ g ( j )
37:
    end for
38:
   Check for convergence based on log-likelihood change
39:
end while
Algorithm A2 Viterbi Algorithm
Require
Observation sequence T 1 : G , model parameters θ .
Ensure
Optimal state sequence S ^ 1 : G .
1:
Initialize δ 1 ( i ) = π i b i ( T 1 ) ψ 1 ( i ) = 0 .
2:
for  g = 2 to G  do
3:
    for  j = 1 to N  do
4:
      δ g ( j ) = max 1 i N   [ δ g 1 ( i ) a i j ] · b j ( T g )
5:
      ψ g ( j ) = arg max 1 i N   [ δ g 1 ( i ) a i j ]
6:
    end for
7:
end for
8:
S ^ G = arg max 1 i N δ G ( i )
9:
for  g = G 1 to 1 do
10:
    S ^ g = ψ g + 1 ( S ^ g + 1 )
11:
end for

References

  1. Haydari, A.; Yilmaz, Y. Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey. IEEE Trans. Intell. Transp. Syst. 2020, 23, 110032. [Google Scholar] [CrossRef]
  2. Ye, B.L.; Wu, W.; Ruan, K.; Li, L.; Chen, T.; Gao, H.; Chen, Y. A survey of model predictive control methods for traffic signal control. IEEE/CAA J. Autom. Sin. 2019, 6, 623–640. [Google Scholar] [CrossRef]
  3. Qadri, S.S.S.M.; Gökçe, M.A.; Öner, E. State-of-art review of traffic signal control methods: Challenges and opportunities. Eur. Transp. Res. Rev. 2020, 12, 55. [Google Scholar] [CrossRef]
  4. Guo, Q.; Li, L.; Ban, X.J. Urban traffic signal control with connected and automated vehicles: A survey. Transp. Res. Part C Emerg. Technol. 2019, 101, 313–334. [Google Scholar] [CrossRef]
  5. Feng, Y.; Head, K.L.; Khoshmagham, S.; Zamanipour, M. A real-time adaptive signal control in a connected vehicle environment. Transp. Res. Part C Emerg. Technol. 2015, 55, 460–473. [Google Scholar] [CrossRef]
  6. Li, J.; Yu, C.; Shen, Z.; Su, Z.; Ma, W. A survey on urban traffic control under mixed traffic environment with connected automated vehicles. Transp. Res. Part C Emerg. Technol. 2023, 154, 104258. [Google Scholar] [CrossRef]
  7. Gong, T.; Zhu, L.; Yu, F.R.; Tang, T. Edge Intelligence in Intelligent Transportation Systems: A Survey. IEEE Trans. Intell. Transp. Syst. 2023, 24, 8919–8944. [Google Scholar] [CrossRef]
  8. Wang, J.; Sun, K.; Cheng, T.; Jiang, B.; Deng, C.; Zhao, Y.; Liu, D.; Mu, Y.; Tan, M.; Wang, X.; et al. Deep High-Resolution Representation Learning for Visual Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 43, 349–3364. [Google Scholar] [CrossRef] [PubMed]
  9. Tang, Y.; Zhang, S.; Liu, W.; Wang, Z.; Wang, J. Ultra-Lightweight Automatic License Plate Recognition System for Microcontrollers: A Cost-Effective and Energy-Efficient Solution. IEEE Trans. Intell. Transp. Syst. 2024, 25, 20419–20434. [Google Scholar] [CrossRef]
  10. Usama, M.; Anwar, H.; Anwar, S. Vehicle and license plate recognition with novel dataset for toll collection. Pattern Anal. Appl. 2025, 28, 57. [Google Scholar] [CrossRef]
  11. Rashid, M.M.; Musa, A.; Rahman, M.A.; Farahana, N.; Farhana, A. Automatic Parking Management System and Parking Fee Collection Based on Number Plate Recognition. Int. J. Mach. Learn. Comput. 2012, 2, 93–98. [Google Scholar] [CrossRef]
  12. Mo, B.; Li, R.; Zhan, X. Speed profile estimation using license plate recognition data. Transp. Res. Part C Emerg. Technol. 2017, 82, 358–378. [Google Scholar] [CrossRef]
  13. Zhan, X.; Li, R.; Ukkusuri, S.V. Lane-based real-time queue length estimation using license plate recognition data. Transp. Res. Part C Emerg. Technol. 2015, 57, 85–102. [Google Scholar] [CrossRef]
  14. Ma, D.; Luo, X.; Jin, S.; Guo, W.; Wang, D. Estimating Maximum Queue Length for Traffic Lane Groups Using Travel Times from Video-Imaging Data. IEEE Intell. Transp. Syst. Mag. 2018, 10, 123–134. [Google Scholar] [CrossRef]
  15. An, C.; Guo, X.; Hong, R.; Lu, Z.; Xia, J. Lane-Based Traffic Arrival Pattern Estimation Using License Plate Recognition Data. IEEE Intell. Transp. Syst. Mag. 2021, 14, 133–144. [Google Scholar] [CrossRef]
  16. Li, M.; Tang, J.; Chen, Q.; Liu, Y. Traffic arrival pattern estimation at urban intersection using license plate recognition data. Phys. A Stat. Mech. Its Appl. 2023, 625, 128995. [Google Scholar] [CrossRef]
  17. He, Y.; An, C.; Lu, J.; Wu, Y.J.; Lu, Z.; Xia, J. Bayesian Deep Learning Approach for Real-Time Lane-Based Arrival Curve Reconstruction at Intersection Using License Plate Recognition Data. IEEE Trans. Intell. Transp. Syst. 2024, 26, 661–672. [Google Scholar] [CrossRef]
  18. Bonneson, J.A.; Pratt, M.P.; Vandehey, M.A. Predicting Arrival Flow Profiles and Platoon Dispersion for Urban Street Segments. Transp. Res. Rec. J. Transp. Res. Board 2010, 2173, 28–35. [Google Scholar] [CrossRef]
  19. Robertson, D.I. TRANSYT: A Traffic Network Study Tool. 1969. Available online: https://trid.trb.org/View/114912 (accessed on 1 August 2025).
  20. Yao, Z.; Shen, L.; Liu, R.; Jiang, Y.; Yang, X. A Dynamic Predictive Traffic Signal Control Framework in a Cross-Sectional Vehicle Infrastructure Integration Environment. IEEE Trans. Intell. Transp. Syst. 2020, 21, 1455–1466. [Google Scholar] [CrossRef]
  21. Yu, L. Calibration of Platoon Dispersion Parameters on the Basis of Link Travel Time Statistics. Transp. Res. Rec. J. Transp. Res. Board 2000, 1727, 89–94. [Google Scholar] [CrossRef]
  22. Wu, W.; Jin, W.; Shen, L. Mixed Platoon Flow Dispersion Model Based on Speed-Truncated Gaussian Mixture Distribution. J. Appl. Math. 2013, 2013, 480965. [Google Scholar] [CrossRef]
  23. Shen, L.; Liu, R.; Yao, Z.; Wu, W.; Yang, H. Development of Dynamic Platoon Dispersion Models for Predictive Traffic Signal Control. IEEE Trans. Intell. Transp. Syst. 2019, 20, 431–440. [Google Scholar] [CrossRef]
  24. Yao, Z.; Zhao, B.; Qin, L.; Jiang, Y.; Ran, B.; Peng, B. An efficient heterogeneous platoon dispersion model for real-time traffic signal control. Phys. A Stat. Mech. Its Appl. 2019, 539, 122982. [Google Scholar] [CrossRef]
  25. Kazagli, E.; Koutsopoulos, H.N. Estimation of Arterial Travel Time from Automatic Number Plate Recognition Data. Transp. Res. Rec. J. Transp. Res. Board 2013, 2391, 22–31. [Google Scholar] [CrossRef]
  26. Chen, P.; Yin, K.; Sun, J. Application of Finite Mixture of Regression Model with Varying Mixing Probabilities to Estimation of Urban Arterial Travel Times. Transp. Res. Rec. 2014, 2442, 96–105. [Google Scholar] [CrossRef]
  27. Luo, X.; Wang, D.; Ma, D.; Jin, S. Grouped travel time estimation in signalized arterials using point-to-point detectors. Transp. Res. Part B Methodol. 2019, 130, 130–151. [Google Scholar] [CrossRef]
  28. An, C.; Shen, H.; Xu, Y.; Lu, Z.; Xia, J. Hidden Mixture Vehicle Discharge State Inference at Signalized Intersection Using Vehicle Travel Time and Discharge Headway Data. IEEE Trans. Intell. Transp. Syst. 2022, 23, 21700–21711. [Google Scholar] [CrossRef]
  29. Baum, L.E.; Petrie, T.; Soules, G.; Weiss, N. A Maximization Technique Occurring in the Statistical Analysis of Probabilistic Functions of Markov Chains. Ann. Math. Stat. 1970, 41, 164–171. [Google Scholar] [CrossRef]
  30. Rabiner, L. A tutorial on hidden Markov models and selected applications in speech recognition. Proc. IEEE 1989, 77, 257–286. [Google Scholar] [CrossRef]
  31. Viterbi, A. Error bounds for convolutional codes and an asymptotically optimum decoding algorithm. IEEE Trans. Inf. Theory 1967, 13, 260–269. [Google Scholar] [CrossRef]
  32. Forney, G. The viterbi algorithm. Proc. IEEE 1973, 61, 268–278. [Google Scholar] [CrossRef]
  33. Alvarez Lopez, P.; Behrisch, M.; Bieker-Walz, L.; Erdmann, J.; Flötteröd, Y.P.; Hilbrich, R.; Lücken, L.; Rummel, J.; Wagner, P.; Wießner, E. Microscopic Traffic Simulation using SUMO. In Proceedings of the 2018 21st International Conference on Intelligent Transportation Systems (ITSC), Maui, HI, USA, 4–7 November 2018. [Google Scholar]
Figure 1. Schematic of the study scenario, illustrating the deployment of Automatic License Plate Recognition (ALPR) cameras for travel-time data collection between two consecutive signalized intersections.
Figure 1. Schematic of the study scenario, illustrating the deployment of Automatic License Plate Recognition (ALPR) cameras for travel-time data collection between two consecutive signalized intersections.
Applsci 15 11537 g001
Figure 2. Framework for downstream arrival prediction using a Hidden Markov Model-filtered dynamic platoon-dispersion model.
Figure 2. Framework for downstream arrival prediction using a Hidden Markov Model-filtered dynamic platoon-dispersion model.
Applsci 15 11537 g002
Figure 3. Visualization of the three HMM hidden states on time–space diagrams with consistent color coding (free-flow u = lavender, head-of-queue m = olive green, and tail-of-queue s = red). Arrows annotate dominant transitions inferred by Viterbi. (a) u s : free-flow vehicles encounter a red and join a tail; (b) m u s : a dissipating queue, a short free-flow, then a new tail near phase end; (c) all u: a platoon passes unimpeded (“green wave”); (d) m u : a dissipating queue followed by free-flow. Each panel shows a mini legend ( u / m / s ) for quick reference.
Figure 3. Visualization of the three HMM hidden states on time–space diagrams with consistent color coding (free-flow u = lavender, head-of-queue m = olive green, and tail-of-queue s = red). Arrows annotate dominant transitions inferred by Viterbi. (a) u s : free-flow vehicles encounter a red and join a tail; (b) m u s : a dissipating queue, a short free-flow, then a new tail near phase end; (c) all u: a platoon passes unimpeded (“green wave”); (d) m u : a dissipating queue followed by free-flow. Each panel shows a mini legend ( u / m / s ) for quick reference.
Applsci 15 11537 g003aApplsci 15 11537 g003b
Figure 4. Structure of the Hidden Markov Model, illustrating the relationship between latent traffic states (S) and observable travel times (T).
Figure 4. Structure of the Hidden Markov Model, illustrating the relationship between latent traffic states (S) and observable travel times (T).
Applsci 15 11537 g004
Figure 5. Illustration of the platoon dispersion model, where L is the link length (m), v is the free-flow speed (m/s), v min and v max are the minimum and maximum free-flow speeds (m/s), respectively.
Figure 5. Illustration of the platoon dispersion model, where L is the link length (m), v is the free-flow speed (m/s), v min and v max are the minimum and maximum free-flow speeds (m/s), respectively.
Applsci 15 11537 g005
Figure 6. Study Corridor layout, signal timing ( C = 100 s, ϕ = 50 s), and ALPR detector placement for two coordinated intersections on Jincheng Rd: the upstream junction at Jinli Rd × Jincheng Rd (1) and the downstream junction at Gongren Rd × Jincheng Rd (2). The intersections are spaced 700 m apart, with a 500 m mid-block validation detector located between them. Colored arrows denote permitted movements (purple: through; red: left-turn and right-turn), and orange lines indicate the locations of ALPR detectors.
Figure 6. Study Corridor layout, signal timing ( C = 100 s, ϕ = 50 s), and ALPR detector placement for two coordinated intersections on Jincheng Rd: the upstream junction at Jinli Rd × Jincheng Rd (1) and the downstream junction at Gongren Rd × Jincheng Rd (2). The intersections are spaced 700 m apart, with a 500 m mid-block validation detector located between them. Colored arrows denote permitted movements (purple: through; red: left-turn and right-turn), and orange lines indicate the locations of ALPR detectors.
Applsci 15 11537 g006
Figure 7. Robustness of HMM free-flow estimation under Monte Carlo missing-data perturbations (30 runs per matching-rate level). (a) Distribution of K–S D-statistic; (b) distribution of K–S p-value (red dashed line marks the 0.05 threshold); (c) relative error in mean free-flow speed ( R E μ ); (d) relative error in standard deviation ( R E σ ). Lower values of the D-statistic, relative errors, and higher p-values indicate robustness of the HMM estimation against missing data.
Figure 7. Robustness of HMM free-flow estimation under Monte Carlo missing-data perturbations (30 runs per matching-rate level). (a) Distribution of K–S D-statistic; (b) distribution of K–S p-value (red dashed line marks the 0.05 threshold); (c) relative error in mean free-flow speed ( R E μ ); (d) relative error in standard deviation ( R E σ ). Lower values of the D-statistic, relative errors, and higher p-values indicate robustness of the HMM estimation against missing data.
Applsci 15 11537 g007
Table 1. Notation and symbols.
Table 1. Notation and symbols.
SymbolMeaning
i , j Hidden states; i , j { m , u , s } (queue head m, free flow u, queue tail s).
g = 1 : G Index of matched observations in the current window.
GLength of observation sequence T 1 : G .
S g Hidden state at index g.
T g Travel time observation at index g (s).
π Initial state probabilities { π i } .
A =   [ a i j ] Transition matrix; a i j = Pr ( S g = j S g 1 = i ) .
B = { b i } Emission family; b i ( T g ) = N ( T g μ i , Σ i ) .
μ i , Σ i mean and covariance (here Σ i = σ i 2 ) of state-i emission.
LLink length (m).
WRolling-window length for online re-estimation.
Table 2. Hardware specifications.
Table 2. Hardware specifications.
ComponentSpecification
CPUIntel Core i7-12700
Memory16 GB DDR5
Storage1.5 TB NVMe SSD
GPUNVIDIA RTX 4050 (6 GB)
Table 3. Software platform and libraries.
Table 3. Software platform and libraries.
SoftwareVersion
OSWindows 11
Python3.10.1
SUMO1.23.0
Key librariesnumpy 1.26, pandas 2.2, scipy 1.13, matplotlib 3.8
HMM toolkithmmlearn 0.3.3
Table 4. Model comparison.
Table 4. Model comparison.
IDModel NameHMM FilteringFree-Flow DistributionDispersion KernelOnline Update
HMM+DDProposed (time-varying dispersion)Online (rolling window)Time-varying
DD–NoHMMAblation—remove HMMOnlineTime-varying
SDAblation—freeze updatesStatic (initialized once)Time-varying
FKClassical fixed-kernel baselineN/AStatic (literature constants)
FTTFixed travel time, no dispersionN/ANone (constant offset)
Notes. FTT propagates the upstream release by a constant offset equal to the median free-flow travel time estimated once on a calibration subset; no dispersion is applied. FK represents the conventional practice of using a static platoon-dispersion kernel with the literature/empirical constants and without data-driven filtering or updating. ✓ indicates the presence of a feature, whereas ✗ denotes its absence.
Table 5. Overall prediction accuracy of different models under varying v / c ratios.
Table 5. Overall prediction accuracy of different models under varying v / c ratios.
Model v / c = 0.95 v / c = 0.70 v / c = 0.45
RMSEMAERMSEMAERMSEMAE
HMM+DD0.14820.12400.08530.07820.06140.0572
FK0.20380.18520.20160.16800.10490.0945
FTT0.42750.38860.34650.28630.22950.1765
Table 6. Ablation study on HMM filtering and online updates under varying v / c ratios.
Table 6. Ablation study on HMM filtering and online updates under varying v / c ratios.
Model v / c = 0.95 v / c = 0.70 v / c = 0.45
RMSEMAERMSEMAERMSEMAE
HMM+DD (Proposed)0.14820.12400.08530.07820.06140.0572
DD–NoHMM (w/o HMM)0.62700.48980.39900.30930.32400.2492
SD (frozen updates)0.15870.14170.12820.11550.08100.0675
Table 7. Summary of Monte Carlo robustness simulation results (N = 30 runs/level).
Table 7. Summary of Monte Carlo robustness simulation results (N = 30 runs/level).
Metricr = 45%r = 60%r = 75%r = 90%
Mean R E μ (%)1.291.591.411.28
Std Dev R E μ (%)0.571.660.370.19
Mean R E σ (%)5.826.235.074.54
Std Dev R E σ (%)3.435.072.752.40
Mean K-S D-statistic0.0880.0960.0800.071
Mean K-S p-value0.4190.3690.3050.351
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Qin, H.; Wang, D.; Cai, Z.; Zeng, J. Real-Time Traffic Arrival Prediction for Intelligent Signal Control Using a Hidden Markov Model-Filtered Dynamic Platoon Dispersion Model and Automatic License Plate Recognition Data. Appl. Sci. 2025, 15, 11537. https://doi.org/10.3390/app152111537

AMA Style

Qin H, Wang D, Cai Z, Zeng J. Real-Time Traffic Arrival Prediction for Intelligent Signal Control Using a Hidden Markov Model-Filtered Dynamic Platoon Dispersion Model and Automatic License Plate Recognition Data. Applied Sciences. 2025; 15(21):11537. https://doi.org/10.3390/app152111537

Chicago/Turabian Style

Qin, Hanwu, Dianhai Wang, Zhengyi Cai, and Jiaqi Zeng. 2025. "Real-Time Traffic Arrival Prediction for Intelligent Signal Control Using a Hidden Markov Model-Filtered Dynamic Platoon Dispersion Model and Automatic License Plate Recognition Data" Applied Sciences 15, no. 21: 11537. https://doi.org/10.3390/app152111537

APA Style

Qin, H., Wang, D., Cai, Z., & Zeng, J. (2025). Real-Time Traffic Arrival Prediction for Intelligent Signal Control Using a Hidden Markov Model-Filtered Dynamic Platoon Dispersion Model and Automatic License Plate Recognition Data. Applied Sciences, 15(21), 11537. https://doi.org/10.3390/app152111537

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop