Submitted:
25 October 2026
Posted:
28 October 2026
You are already at the latest version
Abstract
In order to anticipate traffic, modern traffic systems now employ non-parametric techniques like machine learning. The traffic management system’s execution depends on sensory data sent to it, and a minor infrastructure breakdown, like a power outage, can significantly alter traffic patterns in the area. When this failure happens at a busy crossroads, it increases the time that cars idle, creates a traffic bottleneck, and may even result in a crash. A self-organizing traffic system called Virtual Traffic Light can be used to solve these problems: the vehicles at the intersection collaboratively manage the traffic flow using data from every vehicle present. Federated machine learning can be adopted when the vehicles collaborate to predict traffic, because data privacy is at the center of its operation. In this paper, I evaluate the ten-model zoo of such a system on traffic data from Austin, Texas, comparing centralized, federated, and local training at a single shared training budget and reporting every result against naive baselines on a held-out month. All ten models beat a persistence baseline, the best by 27.9%. The model that is best to deploy, however, is not the one that is most accurate centrally, and the usual explanation does not apply here: the two most accurate models are recurrent networks that can be federated, and at two clients they lose under 2% and remain the best available. The decisive variable is how many vehicles contribute. Across a sweep from 2 to 25 federated clients, the recurrent models lose 276% and 289% of their accuracy and fall below the naive baseline between four and five clients, while the two multi-layer perceptrons lose 14.5% and 18.6% and never fall below it. Only two federated models stay below the baseline under both partitionings at every client count: a multi-layer perceptron occupying 8 KB, 4.9% behind the best model under centralized training, and a 1 KB Ridge model, which is less accurate but almost untouched by federation. Federation is not the best way to train once each participant holds months of its own approach, though: a model trained on that history alone is more accurate than any federated model, at this intersection and at all nine others I tested. A federated model earns its place with a participant that has just joined, which it serves better than persistence for its first days. I further show that how clients are partitioned matters as much as which model is used, since splitting by approach, which is the situation a virtual traffic light is actually in, is considerably harder than splitting at random, and that federation’s cost is concentrated at peak demand: over the whole test month, it is 11.7% in the lower half of the demand distribution and 92.0% in the top decile. Finally, I tested the running system and not only the models. In eighteen live multi-node runs over three transports, some with packet loss, the nodes coordinated with no central server. There was one master at every sampled instant, every federated round finished, and every cycle took well under the 200 ms budget. None of the 1,413 validated plans led to a conflicting green on the road. This depends on the single master. With the single-master safeguards off, every plan still passed validation, yet conflicting greens showed on the road for 150.5 s in total across the same eighteen runs, and splitting the network on purpose caused them as well. A deployment must keep to one master and stop giving green when it cannot. In a queue model replaying the measured demand, adaptive control cleared 10.6% more vehicles than fixed timing at three times the measured demand and none more at the measured demand. The learned forecaster performed no better than naive persistence (within 0.2% at every demand level), since the two chose the same phase group in 97 to 98% of control steps.
Keywords:
traffic management
; virtual traffic lights
; federated machine learning
; infrastructure-free traffic control
; traffic prediction
; centralized learning
; decentralized learning
; traffic flow optimization
; machine learning models
; real-time traffic control
1. Introduction
1.1. Background and Significance of Research
Following the commercialization of automobiles and the establishment of roads, the world has come a long way in providing systems that aid in traffic management. Some of these systems are smart, such as a traffic light at a busy intersection or a simple stop sign. The current traffic system works fine until there is an infrastructure failure, such as a power outage. When this failure occurs at an intersection with heavy traffic, it results in longer idle time for vehicles, causes a traffic jam, and could lead to road accidents. This occurrence shows that the current system has points of failure.
The installation of Dedicated Short-Range Communication (DSRC) radios in vehicles has made infrastructure-free traffic coordination possible as an alternative to current traffic systems at intersections. This concept is known as “virtual traffic lights”. Using a DSRC device for communication, right-of-way can be decided through vehicle-to-vehicle (V2V) or vehicle-to-everything (V2E) communication in a self-organized way. Machine learning (ML) has been adopted in vehicular networks for tasks such as autonomous driving and road safety prediction, but most of these applications train their models centrally, an approach known as centralized learning [1].
Traffic prediction methods are usually divided into parametric and non-parametric methods. Parametric methods, such as the Auto-Regressive Integrated Moving Average (ARIMA) model and its variants, which are among the most established approaches in the field, fix the form of the model in advance and estimate its parameters. Non-parametric methods, which include machine learning models, need no explicit form and learn the relationship from the data [2,3]. Deep learning models have been shown to outperform many traditional approaches when there is enough data [2], but a benchmark on traffic datasets of different kinds found that deep learning is not the best choice in every case [4].
1.2. Related Work
Several studies have compared machine learning models on traffic flow. Using multi-model machine learning methods, Li et al. [5] estimated traffic flow from Floating Car Data. In their experiment, Gaussian Process Regression (GPR) was the best-performing model for estimating traffic flow. To estimate and forecast Porto’s traffic flow, Alam et al. [6] gathered real-time data from the city and used five regression models: Linear Regression, Sequential Minimal Optimization (SMO) Regression, Multi-layer Perceptron, M5P model tree, and Random Forest. The efficacy of these regression models has also been evaluated. The trial findings favor the M5P regression tree over its competitors. Closest to the setting of this paper, Navarro-Espinoza et al. [7] predicted five-minute vehicle counts at intersections as groundwork for adaptive signal control, and a multi-layer perceptron was the most accurate of their models, ahead of gradient boosting and recurrent networks.
Federated learning has also been applied to traffic flow prediction. Liu et al. [8] trained a gated recurrent unit (GRU) by federated averaging across organizations holding freeway data and found that accuracy fell once more than eight organizations took part. They countered it by sampling the participants in each round and by clustering the organizations before training. Xia et al. [9] divided a road network into subnetworks by community detection and trained a graph convolutional network across them, coming close to a centrally trained model at lower cost. Pizzolante et al. [10] compared online federated, centralized, and local training of a GRU on resource-limited devices. Local training gave the lowest error, federated training worsened as clients ran more local epochs, and two methods designed for clients with dissimilar data, FedProx [11] and SCAFFOLD [12], gave only limited improvements. All three studies federate across sensors or organizations spread over a road network, and none federates among the participants at a single intersection, which is the setting of a virtual traffic light.
1.3. Problem Description
Modern traffic systems have moved to the use of non-parametric methods such as machine learning for traffic prediction. The implementation relies on sensory data reported to a centralized system that manages traffic. A simple infrastructure failure such as a power outage can dramatically disrupt traffic flow in the affected region. When this failure occurs at an intersection with a heavy traffic load, it results in longer idle time for vehicles, causes a traffic jam, and possible road accidents. This occurrence shows that the current system has points of failure.
The most viable solution for this scenario is to create a self-organizing traffic control scheme that utilizes vehicles. The idea was introduced by Ferreira et al. [13], who proposed a protocol in which vehicles elect one of their number to act as a temporary intersection controller and broadcast signal messages shown on in-vehicle displays, removing the need for roadside hardware. In [14], a working scheme called Virtual Traffic Light (VTL) was developed. The proposed solution allows coordinated traffic flow without the need for a physical traffic light by electing a leader (vehicle) that determines the traffic flow, but the solution did not account for traffic prediction. Jame et al. [15] later built a vehicle-to-vehicle virtual traffic light for crossroads with no signals and no roadside units, in which the vehicle nearest the junction on each road leads the group behind it and can hand that role to the next vehicle. In simulation it passed more vehicles per minute than both an unregulated and a signalized junction, but like the earlier scheme, it schedules the vehicles that are present rather than forecast demand.
To effectively predict traffic flow in a virtual traffic light, there is a need to utilize data from all the vehicles at an intersection. In this paper, federated machine learning is the proposed solution, since it trains a shared model without collecting the raw data, which keeps data transfer small and reduces the privacy risk [16,17]. Figure 1 shows a proposed simplified algorithm for implementing virtual traffic lights with federated machine learning.
1.4. Where the Model Has to Run
The prediction model in a virtual traffic light is not a service a vehicle calls. It is a component of the vehicle’s own onboard system, and that placement sets the terms the model has to meet. It has to be stored on the vehicle, loaded by it, and evaluated there in time for the coordinator to issue a phase plan before the traffic it governs arrives. It also has to be exchanged: the weights a vehicle contributes to a federated round travel over a link shared with every other vehicle at the junction, so a model that is accurate but large is expensive in a way an offline study never sees.
Three things follow for what I measure. Model size counts as a result, because a model that is too big to hold and swap on a vehicle is no use, however accurate it is. Some models, such as tree ensembles, cannot be federated at all, since they have no parameters to average, although a participant can still train one on its own data. And the behavior I care about is behavior under federation across several vehicles, because the system never trains once on pooled data.
For this reason I evaluate the models the system actually deploys. I report each model’s size next to its error, and I compare centralized, federated, and purely local training instead of giving only the centralized figure. As the results show, this changes which model I would choose, and whether a participant should federate at all.
The model comparison does not settle the questions this section opened with. I also wanted to find out if an intersection can organize itself without central infrastructure and produce a phase plan in time, if it could ever give green to two conflicting approaches, and if prediction improves traffic at all. Answering these needed the running system, not the dataset. Section 4 reports that part of the work. It covers live runs on several nodes, a network deliberately cut in two, and a queue model fed with measured demand. With the safeguards on, the system ran without any infrastructure and stayed well within its latency budget. It also never put a conflicting green on the road. The evaluation also shows what that safety rests on: a single coordinator at every moment, since two coordinators can each issue a valid plan and still give conflicting approaches green together. And the prediction layer turns out to have the weakest case of the components tested.
1.5. Contributions
The paper makes three contributions. Each is set against the closest earlier work I found, and where I say something has not been reported before, the claim is limited to the literature I searched.
First, it establishes where federated learning helps the forecasting a virtual traffic light needs, and where it does not. In the work I found, federated traffic forecasting is done across sensors or organizations spread over a road network [8,9,10]. Among the participants at one intersection, I find that a participant holding months of its own approach forecasts it better with a model trained on that history alone than with any federated model, at the study intersection and at all nine others tested, while a model federated across other intersections serves a participant that has just joined better than persistence for its first days. I also find that recurrent models degrade sharply as federated clients are added, nearly quadrupling their error by twenty-five clients, even when every client holds the same distribution and takes part in every round, which client failures [8] cannot explain.
Second, it measures what a second coordinator does to a virtual traffic light. Earlier designs elect one leader [13,14] or one per road [15], and a consensus protocol for vehicles at unsignalized intersections requires a strict majority so that the vehicles agree [18], but to my knowledge none of them reports what the signals display when two coordinators are active. I show that two coordinators can each issue plans that pass validation while the participants following them display conflicting greens, measure how long that lasts, and show that an election term combined with a strict majority prevents it, failing safe when no majority exists.
Third, it evaluates a running implementation rather than a simulation: an open-source virtual traffic light that coordinates without a central server over three transports, with four to twenty participants and live federated rounds, under message loss and deliberate network partitions. A queue-model replay finds that the learned forecaster changes few control decisions, which agrees with independent recent evidence that better forecasts need not improve signal control [19].
2. Materials and Methods
In this paper, the Camera Traffic Counts dataset from the City of Austin, Texas, is used. This is a public dataset collected from the City of Austin’s Open Data Portal [23]. The dataset contains traffic counts in the form of flow time series and speeds for 15-minute intervals, covering 69 intersections from June 2017 to July 2024. The dataset labels traffic volume based on the intersection, direction (such as southbound or eastbound), movement (like left turn or thru), vehicle size, average speed, and date-time. The feed stopped being updated in July 2024, so the window used here is fixed and will not change under future re-runs.
Table 1 shows a few records as the feed supplies them.
Due to the large size of the data available, this paper uses traffic data for one intersection starting from January 2022 till August 2022.
The intersection is chosen for its coverage rather than for its volume alone, and it is named here so the experiment can be repeated exactly. Cameras in this feed drop in and out: of the 38 intersections reporting in the window, only 20 record at least 15,000 observations in every one of the eight months. Several otherwise busy sites fail that test because their camera stops partway through the window, which would leave the held-out month too thin to measure anything. Among the sites with complete coverage, the busiest is US 183 HWY / BURLESON RD, with 478,952 observations over the window and no month below 54,000, and that is the intersection used throughout.
2.1. Data Preprocessing
Two decisions in the preprocessing matter more than anything else I report, so I set them out before the rest.
2.1.0.1. The prediction task.
Traffic volume is forecast one interval ahead from the recent history of the same approach, rather than regressed on the remaining columns of its own row. Predicting a bin’s volume from the other measurements recorded in that same bin is not a forecasting problem: the target is recoverable from its own features, and a model that appears to solve it perfectly has learned an identity rather than a traffic pattern. Forecasting the next interval is also the question a virtual traffic light actually asks, because the phase plan has to be decided before the traffic it governs arrives.
The unit of prediction is an approach to the intersection, identified by its direction of travel. The intersection has four approaches, and each gives one series: the volumes of all its movements are summed in every bin, as described below. The records of each approach are ordered in time, and the four preceding bins are used to predict the next one. Ten features are built: the volumes of the four preceding bins, the speed in the most recent of them, the mean of the four lagged volumes, the hour of day, the day of week, the encoded direction, and a movement code. Because movements are summed into the approach volume, the movement code is the same on every row and carries no information; it is kept so that the feature layout matches the deployed system. The target is the volume of the following bin.
2.1.0.2. The split.
Training and test data are divided by calendar month rather than at random. Months January to July 2022 are used for training, and August 2022 is held out for testing, so every test prediction is made from the past, which is the position a deployed forecaster is always in.
Whether a random split is admissible for time series is more nuanced than it first appears. Bergmeir et al. [24] show that ordinary cross-validation is valid for purely autoregressive models provided their errors are uncorrelated, and recommend testing the residuals for serial correlation before relying on it. I do not establish that condition here, and lag-1 autocorrelation in this feed is 0.970, so a random split would place a bin’s immediate neighbors on both sides of the partition. A split in time avoids the question entirely and measures the quantity the application cares about, which is how well the model predicts an interval it has not seen.
Rows are merged per approach and timestamp before any of this. The Austin feed reports each movement separately and emits up to two rows for each direction, movement, and timestamp, one for each value of the heavy-vehicle flag, so treating the rows as independent samples double-counts every bin. Since this study forecasts the demand on an approach and does not account for vehicle size, the volumes of all rows that share a direction and timestamp are summed, and the highest of their speeds is kept.
2.1.0.3. Missing bins.
A camera that drops out leaves a gap in its series, and simple imputation is a common response, filling the gap with a historical average, mode, mean, or median of the surrounding values [25]. I do not impute. A lagged window is built from whichever records an approach actually reports, so where a gap falls inside a window, the four lags span more than an hour rather than the intended forty-five minutes. On the intersection used here, that affects 50 of 93,271 windows, or 0.05%, which is small enough to leave alone and to prefer over inventing values the sensor never recorded. It is a reason to select intersections on coverage, as described above, rather than a reason to fill gaps after the fact.
Input features are scaled using StandardScaler from the Scikit-learn library. The scaler is fitted on the training split only and then applied to the test split, so that no information about the held-out month reaches the model through the preprocessing.
2.1.0.4. Baselines.
Next to every model I report two naive predictors, scored on the same test split, since an error value means little without something to compare it with, and a forecasting study should include at least one naive method as the floor a model has to beat [4]. Persistence takes the next bin to be the same as the last one. Seasonal-naive takes it to be the same as the bin one hour (four intervals) earlier. The feed is highly autocorrelated, which makes persistence a strong baseline. Simple baselines are often hard to beat in transport prediction: one built from the average weekly pattern and a linear regression matches many state-of-the-art deep learning models and beats them on several datasets [22].
2.2. Machine Learning Methods
I evaluate the models that are implemented in my virtual traffic light system, not a separate set picked for this paper. They are implemented in Python 3.12 with scikit-learn 1.8.0 and TensorFlow 2.21.0, whose Keras interface builds the neural models, and the federated aggregator is the system’s own code. Six are Scikit-learn estimators. The other four are Keras models, exported to TensorFlow Lite so that they can run on the vehicle. The numbers in this paper therefore describe the system as it was built.
A distinction runs through the zoo and decides which models are federated. Six of the ten hold their parameters as arrays of the same shape on every client, which the aggregator can average: Ridge regression, the Scikit-learn multi-layer perceptron, and the four Keras models (the Keras multi-layer perceptron, the 1D convolutional network, the LSTM, and the GRU). All six are run through the federated experiments below. Tree-based models cannot be federated: a decision tree, a random forest, and a gradient boosting ensemble are described by split thresholds and leaf values, and averaging those across differently shaped trees is not defined. Linear SVR does have a coefficient vector, but the system designates it a local baseline and never aggregates it, so it is treated like the trees. These four are reported as local baselines, trained on a vehicle’s own data and never aggregated.
2.2.1. Centralized Learning
It is a machine learning implementation where the data, model, and evaluation happen on the same machine. The usual procedure is to gather data across edge devices and train a statistical model with them. This method is referred to as centralized learning, and it serves here as the control: it is the best a model could do if privacy were not a concern and every vehicle’s data could be pooled. Figure 2 shows the sequence in which centralized learning was done.
2.2.2. Federated Learning
Data privacy is ignored in centralized machine learning, while federated machine learning ensures that actual data is not shared. Federated learning, in simple terms, is decentralized machine learning without sharing data. It ensures the training of statistical models over edge devices while keeping data localized [26]. To aggregate the results of federated learning, strategies such as Federated Averaging [27] and its proximal variant, FedProx [11], are commonly used.
The federated training in this paper is done by the aggregator inside my virtual traffic light implementation, not by an outside framework, so the paper measures the code the system runs. Each client trains on its own partition and sends its weight vector to the aggregator, which sends back the average weighted by sample count. The aggregator supports both Federated Averaging and the proximal variant. Unless stated otherwise, the results use Federated Averaging. Figure 3 shows one round.
Two partitioning schemes are used, and the difference between them turns out to matter:
- Random (IID) partitioning, where the preprocessed data is shuffled and split evenly across clients. Every client then sees the same kind of traffic.
- Per-approach partitioning, where each client holds the data for its own approach to the intersection. This is what a virtual traffic light actually has, since a vehicle observes the approach it is sitting on and not the others.
2.2.2.1. Client counts.
I swept 2, 3, 4, 5, 10, 15, 20, and 25 clients, so that the effect of federation size is measured directly and not guessed from the two or three smallest cases. Per-approach partitioning runs out of data early. With four approaches at the intersection, any client beyond the fourth holds nothing, and the usable split is the same as with four, so those counts are reported once and not run again.
2.2.2.2. Training budget.
Centralized and federated training are comparable only if each training participant is given the same amount of work, so every iterative model here is trained for the same number of local epochs, 80, in both conditions. The obvious alternative, letting each architecture keep whatever budget suits it, is a trap. These architectures converge at different rates, so their natural budgets differ by a factor of three, and a difference of that size is enough to reorder the models on test error. Where budgets differ, a gap between the two conditions measures the budget as much as the training scheme, and the quantity of interest is the cost of federating rather than the cost of training less. The non-iterative models are unaffected, since a closed-form fit has no epoch count to equalize.
The budget is counted in epochs and not in gradient steps. A client holding a kth of the rows takes a kth of the steps per epoch, so the work summed across the federation matches the centralized run rather than exceeding it k-fold. This is the realistic setting, since each vehicle performs a bounded amount of local work, and it is also the convention in which federated averaging is defined [27].
2.2.2.3. Local training.
Every model is also trained without federation, so that federation is compared with doing nothing as well as with pooling. Each client fits its own model on its own partition at the same epoch budget, and no weights leave it. What a client hands to the coordinator is a forecast, so the forecast is what I score. Under per-approach partitioning, the test rows of each approach are forecast by the model of the client that holds that approach. Under random partitioning, every client holds every approach, so the clients’ forecasts are averaged.
2.2.2.4. Participants Without History
A participant that has just joined an intersection has no history of its own to train on. I measure its options at the study intersection, holding each approach out in turn as the newcomer: persistence; a model federated across the intersection’s other three approaches; a model federated across the approaches of nine other intersections, described next; each of these federated models fine-tuned on the newcomer’s last 1, 7, 30, or 90 days for one round’s worth of local epochs; and a model the newcomer trains alone on the same days, at the full budget. Every model takes its input scaling from the data it is trained on, so a federated model has seen nothing of the newcomer’s approach before it is handed over. The four held-out approaches are pooled, so the figures cover the same test month as the other tables.
2.2.2.5. Other intersections.
To check whether the comparison between federated and local training holds beyond the study intersection, I repeat it at every other intersection in the 2022 feed whose four approaches each report at least 70% of their fifteen-minute bins in both the training months and the test month. Nine intersections qualify. Each is run under the study site’s protocol, with August held out, one client per approach, five rounds of Federated Averaging, and the same epoch budget for centralized, federated, and local training. Two models are run: the Keras multi-layer perceptron and Ridge, the two that stay below persistence under both partitionings when federated.
2.2.3. Relevant Machine Learning Models
2.2.3.1. Ridge Regression.
A linear model that predicts a continuous value as a weighted sum of its inputs, with a penalty on the size of the weights that keeps any single feature from dominating. For a set of independent variables, the dependent variable is estimated from the fitted line. It is the simplest model in the zoo and sets the floor for what the features alone can support.
2.2.3.2. Linear Support Vector Regressor.
A linear model fitted so that errors smaller than a tolerance are ignored, which makes it less sensitive to occasional large deviations than an ordinary least-squares fit.
2.2.3.3. Decision Tree Regressor.
A model that repeatedly splits the feature space on single thresholds and predicts the average of the training values in each resulting region.
2.2.3.4. Random Forest Regressor.
This regressor is a supervised learning algorithm that uses an ensemble learning technique. The predictions of numerous decision trees are combined to provide a more precise forecast than any one tree could on its own [28].
2.2.3.5. Gradient Boosting Regressor.
In general, boosting combines multiple simple models to produce an ensemble. Boosting’s central tenet is the sequential introduction of new models into the ensemble. A new weak learner is fitted at each iteration to the errors of the ensemble built so far [29].
2.2.3.6. Multi-Layer Perceptron Regressor.
An artificial neural network that has at least three layers of perceptrons. In addition to its input and output layers, a multi-layer perceptron often comprises one or more hidden layers that contain a number of neurons. A multi-layer perceptron’s neurons are free to employ whatever activation function they wish. Two versions appear in the zoo: a Scikit-learn estimator and a Keras model exported for on-vehicle inference.
2.2.3.7. 1D Convolutional Network.
A network that slides small filters along the sequence of lagged bins, so that short patterns in recent history are detected wherever they occur in the window.
2.2.3.8. LSTM and GRU.
Recurrent networks that read the lagged bins in order and carry a state forward between them, which lets them represent how traffic is developing rather than only what the recent values were. These are the only models in the zoo that treat the four lags as a sequence rather than as four independent numbers. The LSTM cell is due to Hochreiter and Schmidhuber [30] and the gated recurrent unit to Cho et al. [31].
2.2.4. Performance Metrics
To make a proper comparison between centralized machine learning and federated learning, mean absolute error (MAE), root mean squared error (RMSE), mean absolute percentage error (MAPE), explained variance (EV), and the coefficient of determination (R2) are used.
2.2.4.1. Mean Absolute Error (MAE).
Mean absolute error, or L1 loss, is a straightforward statistic for judging model performance. It is determined by averaging the absolute differences between the predicted and actual values across the dataset.
where is the actual value, the predicted value, and n the sample size.
2.2.4.2. Root Mean Squared Error (RMSE).
RMSE is calculated by taking the square root of the mean squared error. It measures the average magnitude of the errors and, because the differences are squared before averaging, it penalizes large deviations more heavily than MAE does. A zero value indicates a perfect fit.
2.2.4.3. Mean Absolute Percentage Error (MAPE).
The absolute difference between the actual and predicted value is divided by the actual value, and the result is averaged across the dataset and expressed as a percentage.
MAPE is undefined wherever the actual volume is zero. Because movements are summed into the approach volume, no bin in this study is empty, so the measure is defined throughout. It is still dominated by low-volume bins, where a small absolute error is a large percentage, and Hyndman and Koehler [32] set out this and other failure modes of percentage-based accuracy measures. For that reason MAPE is not used to rank the models, and the tables report MAE, RMSE, EV, and R2.
2.2.4.4. Explained Variance (EV) and R2.
Both express how much of the variation in the data a model accounts for, on a scale where 1.0 is a perfect fit, and 0.0 is no better than predicting the mean. They differ in that R2 also penalizes a systematic offset in the predictions, so a gap between the two indicates a biased model.
3. Results
To evaluate the performance of both centralized and federated machine learning, mean absolute error (MAE), root mean squared error (RMSE), explained variance (EV), and R2 were obtained using the Scikit-learn library. All results below are measured on the held-out month, August 2022, which no model saw during training. The intersection contributes four approaches and 93,287 fifteen-minute bins in total, giving 81,367 training samples and 11,904 test samples after the lagged features are constructed.
Every figure reported here is set against the two naive predictors described in Section 2. On this test month, persistence achieves MAE 17.475, and seasonal-naive achieves MAE 28.976. Persistence is the harder of the two to beat, and it is the bar I use throughout.
3.1. Centralized Learning
Table 2 gives the performance of the ten models when all of the data is pooled on one machine, which is the control condition.
All ten models beat persistence. The best of them is the LSTM at MAE 12.594, an improvement of 27.9% on the baseline, with the GRU 0.037 behind it at 12.631 and Random Forest third at 12.914. The two multi-layer perceptrons follow at 13.192 and 13.214, the Decision Tree and the convolutional network at 13.665 and 13.682, Gradient Boosting at 14.236, and the two linear models trail at 16.082 and 16.174. Figure 4 shows the same ordering against the baseline.
It is worth noting what the margins look like. The top six models are separated by 1.07 MAE, while the gap from the best of them to the baseline is 4.88 MAE. Choosing between the leading models therefore matters much less than choosing to use a model at all. I also note that the two linear models, which are the weakest here, still improve on persistence by roughly 7.5%.
Two of those margins are small enough that I do not read an ordering into them. The LSTM and the GRU are separated by 0.037 MAE and the two multi-layer perceptrons by 0.022, both of which are smaller than the difference a change of random seed produces. I report the ranking as it came out and treat those pairs as ties.
Accuracy is not the only thing that decides whether a model can be used in a vehicle. Figure 5 places each model against the space it occupies, and the result is that at the top of this table, accuracy and footprint are not in tension. The LSTM is the most accurate model in the study and occupies 21 KB, while Random Forest is third at 12.914 and occupies 3.7 MB, a factor of 174 more space for 0.32 MAE less accuracy. The two multi-layer perceptrons are indistinguishable in error and differ by a factor of 6.6 in size, at 54 KB for the Scikit-learn estimator against 8 KB for the Keras model. For something that has to be stored, loaded, and exchanged on board a vehicle, those differences matter more than the error gaps that separate them.
I draw attention to one thing this table does not do, because the earlier literature invites the opposite expectation. The most accurate models here are not the ones that have to be left out of a federated system. The LSTM and the GRU both hold weight vectors and can be averaged; the one model in the top three that cannot be federated is Random Forest, and it is third rather than first. On centralized evidence alone, there would be no tension between accuracy and federation in this study at all.
3.2. Federated Learning
Two partitionings were run, as described in Section 2.2.2. Under the random partitioning, every client receives a shuffled share of the same data. Under the per-approach partitioning, each client holds the traffic for its own approach to the intersection, which is the situation a virtual traffic light is actually in, since a vehicle sees the approach it is waiting on and not the others. Client counts run from 2 to 25, which divides the training split into shares of 40,684 rows down to 3,254. Under the per-approach partitioning, every model is also trained locally, as described in Section 2.2.2.
Table 3 should be read in two parts, because what it reports is not a single cost for federation but a divergence between two families of models.
At two clients, federation costs almost nothing. The GRU gives up 1.4% against its centralized score, the LSTM 1.9%, the Scikit-learn MLP 2.4%, the Keras MLP 3.0%, and the 1D convolutional network 4.6%, while Ridge does not move. The two most accurate federated models at this client count are the recurrent ones, at 12.804 and 12.838, which is the same ordering as the centralized table. On a split with no heterogeneity and two participants, federated learning reproduces centralized learning closely, and nothing in this column would lead me to prefer one architecture over another.
With more clients, the two families drift far apart. The dense models hold up well: across the sweep the Keras MLP goes from 13.610 to 15.583, and the Scikit-learn MLP from 13.512 to 16.029, losses of 14.5% and 18.6%. The 1D convolutional network follows the same pattern, from 14.313 to 15.993, a loss of 11.7%, and none of the three does worse than persistence at any client count I tested. Ridge does not move at all. It is fitted in closed form, so averaging the coefficients of clients that hold shuffled shares of the same data reproduces the centralized fit, at 16.173 for every client count. The recurrent models do not hold up. The GRU rises from 12.804 to 48.189 and the LSTM from 12.838 to 49.871, losses of 276% and 289%. Somewhere between four and five clients, both fall behind persistence, and by twenty-five clients their error is close to three times that of just repeating the previous interval.
The consequence is that which model is best depends on how many vehicles are contributing. The GRU leads at two and three clients, the Scikit-learn MLP at four and five, and the Keras MLP from ten clients upwards. No single row of this table is the answer.
The local baselines are steady under this partitioning. Random Forest moves from 12.932 to 13.712 across the sweep and the Decision Tree from 13.506 to 13.704, which is what one expects when each client holds a shuffled sample of the same distribution: a smaller sample of the same thing is still the same thing. It is worth noting that these are the figures the recurrent models have to be compared against from five clients onwards, and they are better by a wide margin.
Table 4 tells a different story. Its left half gives the federated scores, and they are worse across the board than under random partitioning. Two federated models stay below persistence at every client count: the Keras MLP, at 16.154, 16.563, and 17.148, and Ridge, at 16.293, 16.413, and 16.591. They trade places. The Keras MLP is ahead with two clients and Ridge with three and four, where the Keras MLP is 30% above its own centralized score while Ridge has moved only 2.6% from its own. The 1D convolutional network is the best federated model with two clients, at 15.864, but falls behind persistence with four, at 19.615. The Scikit-learn MLP behaves non-monotonically, at 21.308 with two clients – worse than predicting that the next interval repeats the last one – improving to 18.874 and then 16.887. The recurrent models start level with the Keras MLP, at 16.136 and 16.565, and end far behind it, at 25.179 and 29.819.
The right half gives the same models trained locally, each client on its own data alone, and it reverses the picture. Trained locally, every model beats persistence at every client count, and every model that can be federated is more accurate trained locally than federated. With four clients, one approach each, the Keras MLP reaches 13.241 locally against 17.148 federated, the Scikit-learn MLP 13.285 against 16.887, Ridge 15.818 against 16.591, and the GRU 16.935 against 25.179. The most accurate model in the table is a Random Forest trained by each client on its own approach, at 12.346 with four clients, which is also more accurate than the best centralized model, the LSTM at 12.594. A model of one approach, used for that approach, does better than one model of the whole intersection used for every approach.
The dense models keep their local accuracy as the clients specialize: the Keras MLP moves only from 13.136 to 13.241 between two and four clients. The recurrent models do not. Trained locally, the GRU goes from 12.692 to 16.935 and the LSTM from 12.755 to 16.953 as each client’s share of the data halves, so part of their sensitivity is to how much data a participant holds. Federation adds a further loss on top of that, and at four clients the federated GRU is at 25.179.
The table stops at four clients because of how clients and approaches interact. The intersection has four approaches. A per-approach run with more than four clients therefore gives the extra clients no data and ends up with the same four partitions as a run with four, so I report those client counts once instead of computing them again.
Figure 6 places the two partitionings side by side.
Figure 7 shows the round-by-round behavior of the Scikit-learn MLP with four clients under both partitionings. Under random partitioning, the model settles quickly and stays settled. Under the per-approach split, it is still moving at the end of the five rounds, because each round averages weights fitted to approaches whose traffic differs in volume and in shape.
3.3. Participants Without History
The participants in Table 4 each hold seven months of their own approach. A participant that has just joined holds none, and Table 5 shows what it can forecast with.
With no history at all, the best option is a Ridge model federated across the approaches of the nine other intersections, at 16.567, 5.2% better than persistence. A model federated across the study intersection’s own three other approaches does less well, since none of them carries traffic like the newcomer’s: Ridge reaches 17.130, 2.0% better than persistence, and the Keras MLP 23.719, which is worse than persistence. The Keras MLP federated across the other intersections is also worse than persistence as handed over, at 18.914, but it adapts quickly. Fine-tuned on a single day of the newcomer’s own data, it reaches 16.290, 6.8% better than persistence and the best result for a one-day history.
That advantage lasts less than a week. With seven days of history, the newcomer’s own Random Forest is more accurate than any federated option, at 14.146 against 15.306 for the best fine-tuned model, and with ninety days it comes close to what the full seven months give, at 12.516 against 12.346. Starting from a federated model helps the multi-layer perceptron for longer. Fine-tuned, it beats the same network trained from scratch up to about ninety days of history, where the two meet (13.742 against 13.810), and with the full history the network trained alone is better, at 13.207. That figure differs slightly from the 13.241 in Table 4 because here each model takes its input scaling from its own data, while there the four local models share the intersection’s.
3.4. Other Intersections
Table 6 repeats the per-approach comparison at the nine other intersections in the feed with full four-approach coverage, for the Keras MLP and Ridge.
Local training is more accurate than federated training at all nine, for both models. For the Keras MLP, federated error is 9.8% to 68.6% above local error, with a median of 25.2%. For Ridge the gap is smaller, 0.4% to 11.1% with a median of 2.5%, probably because a linear model has less approach-specific structure to lose when its coefficients are averaged. The federated Keras MLP beats persistence at only three of the nine intersections, and federated Ridge at six, while both models trained locally beat it at all nine.
Local training also comes close to pooling. At every intersection, the locally trained Keras MLP is within 4.9% of the same network trained centrally on all four approaches’ data, and at three of them it is more accurate; at the study site the two differ by 0.2%. Pooling the approaches gains little over letting each participant learn its own, and averaging separately trained networks loses a great deal.
3.5. Where the Error Falls
Figure 8 shows something the aggregate figures do not, namely how closely the models follow one held-out day on each approach. All three follow the morning and evening peaks. The differences between them are small compared with the difference between any of them and having no prediction at all.
Figure 9 repeats this for the Keras MLP under centralized and federated training, and the two curves do not separate evenly across the day.
One day’s curve is suggestive rather than conclusive, so I measured it over the whole test month. Splitting all 11,904 test bins by actual volume and scoring the same two models in each band gives the breakdown in Table 7. The cost of federation is not spread evenly: it is modest in the bottom half of the demand distribution and very large in the top tenth.
Federation costs 11.7% in the bottom half of the distribution and 15.8% in the next forty percent, but 92.0% in the top decile, where the federated model’s error nearly doubles. The aggregate figure of 30% reported in Table 4 is an average over those three very different regimes.
3.6. Training Cost
Training cost is given in Figure 10. Federation does not multiply the work by the number of clients, because the epoch budget is fixed and a client holding a share of the rows takes a correspondingly smaller number of steps through it. What grows instead is the per-client overhead, and it grows very differently by model. Across the sweep from two clients to twenty-five, the Scikit-learn MLP’s training time barely moves, from 12.1 s to 14.2 s. The Keras models pay for rebuilding and recompiling a graph for every client in every round: the Keras MLP goes from 34.8 s to 151.6 s, a factor of 4.4; the GRU from 68.8 s to 250.8 s; and the LSTM from 54.8 s to 210.0 s. This is an artifact of how the experiment is driven rather than a property of federated learning, since in deployment the clients are separate vehicles training in parallel and the wall-clock cost is one client’s share of the work.
These are wall-clock times on a single laptop, and I compare them only within the one sweep in which they were measured. Repeat runs of an identical seeded fit on this host took noticeably different times depending on how long the machine had been under load, so a ratio between times taken in different runs would measure the host as much as the training scheme.
4. System Evaluation
The experiments so far show which model to federate and what federation costs, but they leave the premise of the system untested. The introduction argued that a central traffic controller is a single point of failure, so the participants at an intersection should coordinate among themselves. It also noted that the virtual traffic light of Zhang et al. [14] grants right-of-way without using any prediction. A dataset cannot settle either point; for that I needed the system running.
This section reports on it. The implementation tested here is the same virtual traffic light whose model zoo the earlier sections evaluate. Each participant looks after one lane group. It senses that lane, announces itself, takes part in a deterministic election and in federated rounds, and either issues or follows a signal phase and timing (SPaT) plan, which it shows to the traffic in its lane as go or no-go. None of the configurations below has a central server or a roadside controller.
I put four questions to it, in roughly the order an engineer deploying it would. Can it organize itself without central infrastructure? Is it fast enough? Can it ever show conflicting greens? Does the prediction layer improve traffic? The third question led to a fifth, which takes up much of this section: what the safety found under the first three depends on.
4.1. Setup
I ran six configurations, each with three seeds and for 90 seconds. Three use UDP multicast with four, eight, and twenty participants, which is the range the system is designed for. Two use four participants, one over CoAP and one over an emulated long-range radio. The last uses four participants over UDP multicast with ten percent of incoming messages dropped. I left MQTT out on purpose. It needs a broker, and a broker is exactly the kind of central component the system is meant to do without. The long-range radio is emulated. Messages are cut into radio-sized frames and put back together as they would be on the radio, and each frame is charged its airtime, but delivery happens on the local machine. This tests the protocol over a transport that fragments messages. It does not test radio timing.
Each run is measured in five ways. Agreement is the share of instants, sampled every 250 ms, at which all participants name the same master. (Checking that each session agrees with itself would prove nothing, because a session identifier contains the name of its master.) Divided control is the time during which two different masters broadcast plans at once. Plan conflicts are plans that the safety validator finds to contain conflicting greens. Displayed conflicts are the moments when both lanes of a conflicting pair show go at the same time, rebuilt from what each participant actually displayed. Federated rounds are counted one by one from the master’s log.
4.2. Coordination Without Infrastructure
Table 8 gives the answer to the infrastructure question. In every run, all participants agreed on one master at every sampled instant, and that master held the role for the whole run. Coordination worked the same way over UDP multicast, CoAP, and the emulated long-range radio, none of which used a broker or server. Dropping ten percent of incoming packets made no difference. Those runs also kept one master throughout, finished every federated round, and showed no conflicting green. Over all eighteen runs, the system issued 1,413 validated plans and finished all 54 federated rounds, 53 of them with every participant taking part.
4.3. Timing
The plan must be ready before the traffic it controls reaches the junction. The worst 95th-percentile coordination latency in the eighteen runs was 6.00 ms, and no single cycle took longer than 12.98 ms. Inference took 1.10 ms at the 95th percentile and never more than 2.35 ms. Every one of the 2,826 measured cycles finished inside the system’s 200 ms cycle budget; the slowest used less than a tenth of it. Of the transports, the emulated long-range radio was the slowest, since cutting a plan into frames takes time at the sender. The number of nodes hardly matters: the 95th percentile rises only from 4.20 ms with four participants to 4.73 ms with twenty. These figures are the master’s own cycle, from reading its sensor to broadcasting the plan, which is what the cycle budget bounds; they do not include the time the plan then takes to reach the other participants.
4.4. Safety: What the Plan Says and What the Road Shows
Before any plan is broadcast, a safety validator checks it, and in no run did a plan contain a conflicting green. That check is required, but it does not cover everything. Conflicting greens can still show on the road when every plan is clean, and I found two ways for this to happen.
The first is a lost message. A participant that misses the plan turning its lane red goes on showing its last go, while the master, unaware, grants the conflicting lane green. The second is two masters. If two participants are each acting as master, each issues a plan that is valid on its own, and participants following different masters can show conflicting greens although neither plan contains them.
The first is closed by making a go a time-limited grant rather than a state. A participant’s go lapses 2.5 s after the last plan that granted it, and the master withholds green from any lane while a conflicting lane could still be showing a grant it received earlier: for 3.5 s after the conflicting lane’s last grant, which is the grant’s lifetime plus a one-second all-red margin. Because of this, every switch between conflicting groups goes through an all-red clearance. A newly elected master also holds all-red for the same interval before it grants anything, because it has no way of knowing when the previous master’s grants were sent. The old lane’s grant then runs out before the new lane’s grant starts, even if every message to the old lane is lost, as long as the margin is longer than the time a plan takes to reach a participant.
The result is that across 1,413 validated plans and 2,826 measured cycles, no conflicting green was displayed in any run, including the runs with ten percent packet loss.
That proviso is satisfied here and would not be on a real long-range radio. Every transport in these runs delivers over the local host, so a plan reaches the other participants almost at once and a one-second margin is ample. On air it is not: messages in these runs average 0.9 to 1.9 KB, which at spreading factor 7 and 125 kHz takes roughly 1.1 to 2.2 s to transmit, longer than the one-second margin and longer than the one-second interval between plans. A radio deployment must set its clearance from the measured delivery delay of its own link, and would need much smaller plans or a much slower plan cadence before this design fits it.
4.5. A Single Master Is a Safety Requirement
Grants and clearance do nothing against the second mechanism. A master can only hold back green from a lane it knows is green, and the only grants it knows about are its own. Two masters can each apply clearance correctly and still give conflicting approaches green at the same time. Keeping the intersection to a single master is therefore a safety matter, not just a question of efficiency. The system does it with five rules.
- Every participant ranks the same quantity. The election is a deterministic sort on priority, announcement time, and node identifier, so participants holding the same candidate set elect the same master. Each candidate is ranked on its announcement time alone, never on the time some other message happened to arrive, and a participant waits for announcements to stop arriving before it decides.
- Elections are ordered. Each node keeps an election term, which goes up by one with every election it runs. The term is sent with every announcement and heartbeat and is written into the session identifier. If two masters hear each other, the one with the lower rank stands down and follows the other, and the network is back to a single master.
- A master needs a majority. No participant may take mastership without hearing from a strict majority of the intersection’s expected participants. Two disjoint majorities cannot exist, so two legitimate masters cannot either. This is the pairing Ongaro and Ousterhout [33] use for leader election, and the pairing matters: a term alone would let any participant that raises its term unseat a working master. For automated vehicles electing a leader at an unsignalized intersection, Lee and Yoon [18] prove that a quorum smaller than a strict majority cannot guarantee that every working vehicle reaches the same decision.
- The master owns the session. The master ends a session on its timer, and participants end it when the master does, so the whole intersection enters the next election together, from fresh announcements. A participant that loses contact with its master starts a fresh cycle and listens before electing, rather than appointing a successor that may not know it has been chosen.
- Plans from another intersection are refused. UDP multicast and radio are broadcast media, so a participant receives the plans of the junction next door, and it must never follow them.
To measure what these rules are worth, the same eighteen runs were repeated with them switched off. Each participant then commits to the outcome of its own election and ends sessions on its own timer, and the collection window is shorter than the interval at which participants re-announce. Grants and clearance stay on, so the comparison isolates the effect of having more than one master.
Table 9 gives the consequence. Without the rules, participants agreed on one master at 22.3% of sampled instants, against 100% with them. Two masters broadcast at once in 12 of 18 runs, for 1,083 s of the 1,460 s of broadcasting, and only 79 of 156 federated rounds completed. The safety validator found no conflicting plan in either condition. Yet without the rules, conflicting greens were displayed for 150.5 s in 11 of the 18 runs. Every one of those plans was valid on its own; the hazard was that there were two of them.
Losing agreement through random loss alone is uncommon once the rules are in place, so the failure was also produced on purpose, the way it arises in deployment: a network partition, such as a blocked radio path, that splits the participants into groups that cannot hear each other.
Table 10.
A network partition is the realistic cause of two masters. Four nodes are split into two groups that cannot hear each other from 30 s to 90 s of a 120 s run, after which the partition heals. Times are totals over 3 seeded runs per condition. “Lanes green” is the mean number of lanes showing GO at once, a measure of service that is comparable across phases of different length; at most two of the four lanes can be green together. Under 2 | 2 neither side holds a majority of the four; under 3 | 1 one node is cut off alone.
Table 10.
A network partition is the realistic cause of two masters. Four nodes are split into two groups that cannot hear each other from 30 s to 90 s of a 120 s run, after which the partition heals. Times are totals over 3 seeded runs per condition. “Lanes green” is the mean number of lanes showing GO at once, a measure of service that is comparable across phases of different length; at most two of the four lanes can be green together. Under 2 | 2 neither side holds a majority of the four; under 3 | 1 one node is cut off alone.
| Split | Safeguards | Phase | Conflicting greens (s) | Two masters (s) | Lanes green |
| 2 | 2 | on | before | 0.00 | 0.0 | 0.96 |
| during | 0.00 | 0.0 | 0.12 | ||
| after | 0.00 | 0.0 | 0.76 | ||
| 2 | 2 | off | before | 0.00 | 21.1 | 0.72 |
| during | 1.20 | 91.3 | 0.86 | ||
| after | 2.55 | 17.7 | 0.74 | ||
| 3 | 1 | on | before | 0.00 | 0.0 | 0.96 |
| during | 0.00 | 0.0 | 0.88 | ||
| after | 0.00 | 0.0 | 1.01 | ||
| 3 | 1 | off | before | 6.16 | 42.0 | 0.79 |
| during | 0.48 | 9.7 | 0.71 | ||
| after | 11.24 | 54.4 | 0.99 |
With the rules in place, no conflicting green was displayed in any phase of either split, during the partition or after it. The two splits show the price of that, and it is the right price. Under a 2 | 2 split, neither side holds a majority, so neither elects a master: service falls to 0.12 lanes green on average during the partition, and every signal fails safe to no-go. Under a 3 | 1 split, the majority side keeps a master and keeps serving, at 0.88 lanes green, while the participant cut off on its own fails safe. The system gives up availability rather than safety when it cannot be sure it has one master. Without the rules, both splits produce conflicting greens during the partition and after it heals, because nothing reconciles two sessions once they have formed; in the 3 | 1 runs they appear even before the partition, since without the rules the intersection can divide on its own.
Deployment requirement. A virtual traffic light must ensure that exactly one participant acts as master at any moment, and must treat any doubt about that as grounds to stop issuing green. Validating each plan is not enough: two masters each issue valid plans, and participants following different masters show conflicting greens to traffic. In my measurements, running without the single-master rules produced 150.5 s of conflicting greens across eighteen runs whose every plan passed validation. Any deployment should verify the guarantee on the system it builds, by measuring agreement over time and conflicts as displayed, because a check that each state was reached or that each plan is valid passes on a divided intersection.
4.6. Does Prediction Improve Traffic?
The last question is the one the introduction raises against prior work: a virtual traffic light that grants right-of-way without prediction is incomplete. It follows that adding prediction ought to improve traffic, and that ought to be demonstrated rather than assumed.
Demand from the same intersection is replayed through a queue model under three controllers that see an identically seeded arrival stream: fixed-time signal timing, an adaptive controller driven by naive persistence, and the same adaptive controller driven by a learned forecaster, the linear model each participant trains on board. Because an undersaturated intersection has nothing to optimize, demand is also scaled up, which is the only way to reach the loaded conditions where signal timing matters.
Table 11.
Vehicles cleared and mean delay. All three controllers see the same seeded arrivals. Demand is scaled by the factor in the first column, because at the measured demand the intersection is undersaturated and signal timing changes little. Percentages are against fixed-time control.
Table 11.
Vehicles cleared and mean delay. All three controllers see the same seeded arrivals. Demand is scaled by the factor in the first column, because at the measured demand the intersection is undersaturated and signal timing changes little. Percentages are against fixed-time control.
| Demand | Controller | Cleared | vs fixed | Mean delay (s) |
| 1.0× (measured) | fixed-time | 56,721 ± 152 | – | 95.8 |
| persistence | 56,721 ± 152 | 0.00% | 147.2 | |
| forecast | 56,721 ± 152 | 0.00% | 146.7 | |
| 1.5× | fixed-time | 83,823 ± 194 | – | 2,272.5 |
| persistence | 84,570 ± 302 | 0.89% | 805.1 | |
| forecast | 84,690 ± 302 | 1.03% | 813.4 | |
| 2.0× | fixed-time | 104,623 ± 227 | – | 5,272.3 |
| persistence | 110,036 ± 219 | 5.17% | 2,688.6 | |
| forecast | 110,102 ± 216 | 5.24% | 2,682.4 | |
| 3.0× | fixed-time | 131,026 ± 317 | – | 14,075.3 |
| persistence | 144,949 ± 195 | 10.63% | 9,515.3 | |
| forecast | 145,214 ± 199 | 10.83% | 9,473.7 |
There are two findings, and the first is negative.
Adaptive control helps only when the intersection is loaded. At the demand this intersection really carries, all three controllers clear the same 56,721 vehicles, and adaptive timing has a longer mean delay than fixed timing (147 s against 96 s). With no queues, changing the phase order cannot clear more traffic; it only adds switching overhead. The gain shows up as demand nears capacity and grows from there. Adaptive control clears 0.9% more vehicles at 1.5 times demand, 5.2% more at twice and 10.6% more at three times, and at 1.5 times it cuts mean delay from 2,272 s to 805 s. On this evidence, a virtual traffic light is worth deploying at a congested junction but not at a quiet one.
The learned forecaster does not beat naive persistence at the control level. At every demand scale, the two controllers clear within 0.2% of each other, which is less than the run-to-run spread of about 200–300 vehicles. Whatever accuracy the forecaster adds never shows up in what the signals do.
That could mean the forecaster is no better than persistence, or that the controller does not act on the difference, and cleared counts cannot separate the two. So the decision itself was recorded. At every control step, both controllers were asked which non-conflicting group they would serve, from the same fairness state, so that the forecast was the only thing that could make them differ.
Table 12.
How often the learned forecast and naive persistence select the same non-conflicting phase group, over 5,760 control steps. In the “same state” column, both controllers are asked from one shared fairness state, so the forecast is the only thing that can make them differ.
Table 12.
How often the learned forecast and naive persistence select the same non-conflicting phase group, over 5,760 control steps. In the “same state” column, both controllers are asked from one shared fairness state, so the forecast is the only thing that can make them differ.
| Demand | Same choice (same state) | Same choice (own state) | Decided by fairness |
| 1.0× | 97.80% | 73.89% | 12.40% |
| 2.0× | 97.20% | 72.83% | 15.62% |
| 3.0× | 98.45% | 65.43% | 17.81% |
The two controllers choose the same phase group on 97 to 98 percent of control steps. A further 12 to 18 percent of steps are decided by the starvation bound, which serves whichever group has waited longest and ignores demand altogether. The forecast changes the decision on two or three steps in a hundred.
This explains the null result, and it generalizes beyond the particular forecaster used here. The allocator chooses among a handful of non-conflicting groups by summed demand, and that arg-max is robust: lag-1 autocorrelation in this feed is 0.970, so last-interval demand already ranks the groups almost exactly as a trained model does. The ceiling on what any forecaster can contribute is set by the granularity of the decision it feeds, not by its own accuracy. A more accurate model cannot help where the decision would not change.
The trajectory column shows the other side of it. Once an early disagreement perturbs the fairness state, the two controllers’ schedules drift apart substantially – they agree on only 65 to 74 percent of steps when each keeps its own state – and yet they still clear within 0.2% of each other. At this granularity, the outcome is insensitive even to a substantially different schedule.
Two limits apply to the queue model. It is a demand-replay queue-and-service model rather than a microsimulator, and it switches between groups instantly, whereas the live allocator described above holds an all-red clearance before every conflicting switch. Both controllers switch, so the comparison between them is like for like, but the absolute throughput figures are optimistic by the lost time a real clearance costs.
4.7. What the System Evaluation Settles
All four questions now have answers, and the fifth answer is the one a deployment needs most.
The system coordinated with no central infrastructure over three transports, with packet loss, and with four to twenty participants, and it had a single master at every sampled instant of all eighteen runs. Its decisions came in far under the latency budget. No run showed a conflicting green, even with lost messages, because a go is a grant that runs out and the master clears the junction before each conflicting switch. This was measured on local transports. On a real long-range radio, sending a plan takes longer than the clearance margin, so a deployment has to size the margin from its own link.
Everything in this safety record depends on there being a single master. With the single-master rules turned off, every plan still passed validation, but conflicting greens were shown on the road for two and a half minutes in total over eighteen runs. When a partition leaves no side with a majority, the system stops serving instead of risking a second master. I think this is the right behavior for a signal controller.
The prediction layer, which is what this work adds to the prior virtual traffic light, has the weakest case of the components tested. Adaptive control earns its place at a loaded intersection, but the learned forecaster does no better than persistence there, because the phase decision it feeds is too coarse for forecast accuracy to change it. The place to look for value from a better forecaster is a finer-grained allocator rather than a better model.
5. Discussion
The tables and figures above compare centralized and federated training on the same held-out month, at the same epoch budget. These are examined below with reference to the specific table or figure.
5.1. Table 2: Centralized Learning
-
Key Observations:
- All ten models beat the persistence baseline. The best of them, the LSTM, reaches MAE 12.594 against 17.475, an improvement of 27.9%.
- The leading models are close together. The top six are separated by 1.07 MAE, while the gap from the best model to the baseline is 4.88 MAE.
- The two linear models are the weakest at 16.082 and 16.174, but they still improve on persistence by around 7.5%.
- Accuracy and size are not related in the way one might expect. The most accurate model occupies 21 KB, and the third most accurate occupies 3.7 MB.
- The three most accurate models include two that can be federated. Only Random Forest, in third place, cannot.
-
Implications:
- The decision that matters is whether to use a learned model at all, not which of the leading models to use. Choosing between the top three moves the error by less than a tenth of what the baseline comparison does.
- MAE values need a baseline to mean anything. An MAE of 13 here could be a better result than an MAE of 10 at a quieter intersection, simply because the two sites carry different volumes.
- On this evidence alone, there is no conflict between accuracy and federation. That conclusion does not survive the next two tables, which is the main point of the study.
5.2. Table 3 and Table 4: Federated Learning
-
Key Observations:
- At two clients, federation is nearly free for every model tested. The losses against centralized training are 1.4% for the GRU, 1.9% for the LSTM, 2.4% for the Scikit-learn MLP, 3.0% for the Keras MLP, and 4.6% for the 1D convolutional network, while Ridge is unchanged, and the recurrent models are still the most accurate.
- Beyond two clients, the two families diverge. Across the full sweep from 2 to 25 clients, the Keras MLP loses 14.5%, the Scikit-learn MLP 18.6%, and the 1D convolutional network 11.7%, while the GRU loses 276% and the LSTM 289%.
- The divergence happens under random partitioning, where every client holds a shuffled share of the same distribution, and there is no heterogeneity to blame it on.
- The recurrent models cross the persistence baseline between four and five clients. The non-recurrent models never cross it at any client count tested.
- Which model is best therefore depends on the client count: the GRU at two and three, the Scikit-learn MLP at four and five, the Keras MLP from ten upwards.
- Under per-approach partitioning, only the Keras MLP and Ridge stay below persistence at every client count. The Keras MLP is ahead with two clients and Ridge with three and four.
- The Scikit-learn MLP behaves unusually under per-approach partitioning: it is worst with two clients at 21.308 and improves to 16.887 with four.
- Split by approach, every model is more accurate trained locally than federated, at every client count. With four clients, federated error is 4.9% above local error for Ridge, 27.1% and 29.5% for the two multi-layer perceptrons, 42.2% for the 1D convolutional network, and 48.7% and 75.9% for the GRU and the LSTM. A Random Forest trained by each client on its own approach, at 12.346, is the most accurate result in the study.
-
Implications:
- Two clients tell you little about twenty. Had I reported only the two-client case, the paper would have been misleading: there every model looks fine, while by five clients the ranking and the conclusions are different.
- Recurrent models are a poor fit for this application despite their centralized accuracy. Because the degradation appears under random partitioning as well, distribution skew cannot be the cause. What changes with client count is how much data each client fits and how many independently trained parameter vectors are averaged, and recurrent layers are more sensitive to both than dense ones. Trained locally, with no averaging at all, the GRU’s error rises from 12.692 to 16.935 as per-approach clients go from two to four while the Keras MLP’s barely moves; federated, the GRU’s rises further, to 25.179. McMahan et al. [27] note that for non-convex objectives, averaging models in parameter space can produce an arbitrarily bad model; my results suggest that the risk is far greater for recurrent parameterizations. Liu et al. [8] also saw a federated GRU lose accuracy as clients were added, beyond eight in their case, and attributed it to client failures. Every client here contributes to every round, so failures cannot explain the decline in my results.
- The additional degradation under per-approach partitioning is a traffic-domain instance of a separate and better-known effect. Zhao et al. [20] report accuracy losses of up to 55% for neural networks trained on highly skewed non-IID clients, and attribute them to weight divergence driven by the distance between each client’s distribution and the population; Karimireddy et al. [12] analyze the same behavior as client drift. Approach direction is the axis along which this feed is skewed, and the two effects compound: the recurrent models suffer both.
- The two-client per-approach case is the hardest one for the Scikit-learn MLP because each client holds two dissimilar approaches at once. With four clients, each holds a single approach, and averaging four consistent specialists does less damage than averaging two mixed ones.
- Federating costs accuracy here because the approaches differ. Each participant’s own model fits its own approach, while the average of four models serves none of them as well. This is the situation clustered and personalized federated learning are designed for [21,34,35], and it costs the coordinator nothing to use local models instead: the phase plan needs one forecast per approach, and each approach’s participant can supply its own.
5.3. Table 5 and Table 6: Where Federation Fits
-
Key Observations:
- At all ten intersections, a participant holding months of its own approach forecasts it better with its own model than with a federated one, for both models tested.
- With no history, a Ridge model federated across the nine other intersections is the best option a newcomer has, 5.2% better than persistence.
- Fine-tuned on one day of the newcomer’s data, the Keras MLP federated across the other intersections is the best option that day, at 16.290. From seven days on, the newcomer’s own Random Forest is better than any federated option.
- Federation within one intersection helps a newcomer least. Across the other three approaches, the federated Keras MLP is worse than persistence and Ridge is only 2.0% better.
-
Implications:
- Federation is a way to start rather than a way to run. Its value lies with the participant that has nothing of its own yet, and at this resolution it lasts less than a week; after that, a participant does better by learning from its own approach.
- The useful federation is across intersections rather than within one. The approaches at one junction carry different traffic, so averaging them discards what makes each one forecastable, while approaches at other junctions include some that resemble the newcomer’s. Grouping similar approaches before averaging, as clustered federated learning does [21,34], is the natural next step, and fine-tuning the result on each participant’s own data, as done here, is the simplest form of personalization [35].
- Privacy does not argue for federation in the steady state either. A participant that trains alone shares nothing but its forecasts, which is less than a federated participant shares.
5.4. Table 7: Where the Error Falls
-
Key Observations:
- The cost of federation is concentrated at high demand. Over the whole test month, it is 11.7% in the bottom half of the volume distribution and 15.8% in the next forty percent, but 92.0% in the top decile.
- In that top decile, the federated model’s error nearly doubles, from 27.671 to 53.139, on 1,195 of the 11,904 test bins.
- The aggregate loss of 30% for this model is an average over three very different regimes rather than a description of any of them.
-
Implications:
- In my results, one MAE value covers a sixfold spread, from 8.674 in the bottom half of demand to 53.139 in the top decile. The top decile is also where the green split has the most effect on waiting time. For signal control, the overall MAE therefore makes federation look cheaper than it is, and I would report peak error separately in any future work on federated traffic prediction.
- This also sets a limit on how far the favorable aggregate figures above should be read. The Keras MLP stays below persistence at every client count, but the margin at peak demand is much thinner than the overall number suggests.
5.5. Model Selection for a Virtual Traffic Light
Bringing the tables together, the right model depends on two things the centralized ranking cannot show: whether the participants federate, and how much history each of them holds.
- A participant with months of its own approach should train its own model. At all ten intersections that is more accurate than federation, and at the study site the most accurate model trained that way is a Random Forest, at 12.346, ahead of every centralized model. A forest occupies 3.7 MB, but a local model is never exchanged, so its size matters only for storage on the participant. The Keras MLP trained locally, at 13.241 and 8 KB, is 7.2% behind it.
- A participant without that history should start from a model federated across other intersections: Ridge as handed over, 5.2% better than persistence, or the Keras MLP fine-tuned on whatever it has, which is the best option on its first day. By the time it holds a week of its own data, its own model is the better choice.
- Where participants federate, the federated tables decide the model. The LSTM and the GRU are the most accurate models centrally and lose almost nothing at two clients, but by five clients they are worse than persistence, and by twenty-five nearly three times worse. The Keras MLP and Ridge are the two federated models that never fall behind persistence at the study site: the Keras MLP when clients hold mixed traffic, at 8 KB, and Ridge, at 1.1 KB, when each holds one approach. Across the nine other intersections, though, the federated Keras MLP falls behind persistence at six.
This is the central practical finding of the paper. A model chosen on centralized accuracy would be the LSTM, which fails past four federated clients. A model chosen on federated accuracy alone would be the Keras MLP or Ridge, and a participant with months of its own data does better than either by training alone. The choice has to be made on the deployment’s own terms: how many participants federate, and how much history each of them holds.
I state one qualification plainly. If a deployment is genuinely limited to two or three participants holding mixed traffic, the recurrent models are the better federated choice, and the advice on them above does not apply.
5.6. The Influence of Neighboring Intersections
Traffic arriving at one intersection is shaped by what its neighbors discharge, so forecasting a site from its own history alone is an assumption rather than a given. I tested it directly on the one pair of consecutive intersections in this feed with complete coverage, adding the neighbor’s lagged volumes as features and comparing the held-out error on identical rows. Congress Avenue and South 1st Street are parallel streets about 800 m apart that both cross Oltorf Street, so they are consecutive intersections on one corridor, and both report in all eight months.
-
Key Observations:
- Five of six models improved, with a median change of .
- The gain is concentrated in the linear models. Ridge improved by 7.5% and Linear SVR by 6.0%, while the nonlinear models improved by between 1.2% and 2.1% and Gradient Boosting was unchanged.
-
Implications:
- At this granularity, the upstream signal exists but is small. Models that can represent nonlinear temporal structure already get most of it from the site’s own recent history. The neighbor series mostly helps the models that cannot.
- Fifteen-minute bins are part of the explanation. Platoon dispersion, the mechanism by which an upstream signal shapes downstream arrivals, is modeled over a travel-time offset of seconds to a couple of minutes [36], and is averaged away at this resolution. A study at finer granularity may well reach a different conclusion.
5.7. Limitations
Five limits on what the results above support are worth stating directly.
The model comparison covers one intersection and one held-out month. The intersection was selected on coverage rather than on how representative it is, and a site with a different directional balance could well order the models differently. The comparison between federated and local training was repeated at nine more intersections, but the full zoo was run at one.
The client counts are a partition of one site’s history rather than data from that many vehicles. A per-approach client holds seven months of its approach, which matches a participant that stays at the intersection, such as one that owns a lane group, rather than a passing vehicle. A vehicle that sees an approach for the minute or two it is present is closer to the newcomer of Table 5, and the random partitioning is the optimistic bound for federation.
The federated tables also assume every client contributes to every round. The live system meets that closely while it holds a single master: all 54 rounds in Section 4 completed, and 53 had every participant contributing. It does not without one, when only half the rounds completed, so the tables describe the system as it runs with the single-master safeguards in place and are an upper bound otherwise.
The fifteen-minute bins are much coarser than the time scale a virtual traffic light works on. Forecasting at this resolution is a different task from predicting arrivals over the next few seconds, and the ranking of architectures may not carry over.
Finally, the recurrent degradation is reported as measured and not explained mechanistically. I establish that it is not caused by distribution skew, since it appears under random partitioning, and that it is not caused by an unequal training budget, since all models were trained with the same budget. The local runs show that part of it comes from the smaller share of the data each client holds, since the recurrent models lose accuracy as that share shrinks even when nothing is averaged. Which component of the recurrent parameterization makes weight averaging fail so much faster is left open.
6. Conclusion
In this paper, I evaluated the model zoo of a virtual traffic light system for predicting traffic flow by direction at an intersection, under centralized, federated, and local training, at a single shared training budget. One traffic dataset from the City of Austin’s Open Data Portal was used to train, validate, and test the models, and every result is reported against naive baselines on a held-out month that no model saw during training.
All ten models beat persistence, the best of them by 27.9%. That margin, rather than any particular model’s error, is the result worth carrying forward: the leading six models sit within 1.07 MAE of one another while the gap from the best of them to the baseline is more than four times as wide. Deciding to forecast at all matters more than deciding what to forecast with.
The federated results point to a model choice that the centralized results alone would not have suggested, and for a reason worth separating from the one usually given. It is not that the best model cannot be federated: the LSTM and the GRU are the two most accurate models in the study, and both hold weight vectors that average. At two clients, they lose 1.9% and 1.4% and remain the most accurate models available. The problem is what happens as more vehicles contribute. Across a sweep from 2 to 25 clients, the recurrent models lose 289% and 276% of their accuracy, crossing the naive baseline between four and five clients, while the two multi-layer perceptrons lose 18.6% and 14.5% and never cross it. Two federated models stay below persistence under both partitionings at every client count I tested. The Keras multi-layer perceptron is 4.9% behind the LSTM when trained centrally, holds up best of the neural models as clients are added, and at 8 KB is the smallest of them. Ridge is less accurate but almost untouched by federation, and with three or four per-approach clients it is the more accurate of the two. Which to federate depends on how the clients divide the data: the Keras multi-layer perceptron where they hold mixed traffic, and Ridge where each holds one approach.
Federation is not always the right way to train, though. When each participant holds months of its own approach, a model it trains alone is more accurate than any federated model: at the study intersection by 4.9% for Ridge and 29.5% for the Keras multi-layer perceptron, and at all nine other intersections tested, by a median of 25.2% for the perceptron. Federation earns its place with a participant that has just joined. For a participant with no history, a Ridge model federated across other intersections beats persistence by 5.2%, and a multi-layer perceptron federated across them and fine-tuned on a single day of the participant’s data is the best forecaster it can have that day. By the time it holds a week of its own data, its own model is better.
This also says something about how such comparisons should be run. A study that federated across only two or three clients would have recommended a recurrent model, and that advice would be wrong for any intersection where five or more vehicles contribute. The number of clients therefore has to be treated as part of the result.
How the data is split across clients matters as much as which model is chosen. Splitting at random costs the dense models little. Splitting by approach, which is what a virtual traffic light actually has, because a participant observes the approach it serves and not the others, is harder for every federated model, and it is the split under which training alone wins. A study that partitions its clients at random measures the easy case for federation.
The error is also uneven across the day, and the aggregate figures hide the part of the federation cost that matters most. Over the whole held-out month, federation costs the Keras multi-layer perceptron 11.7% in the bottom half of the demand distribution and 92.0% in the top decile, where its error nearly doubles. A forecast error at three in the morning has little effect on the phase allocator, while the same error at the evening peak has a large one, so one MAE value is a poor summary for this application.
The running system was tested as well. I ran it live eighteen times. The runs used UDP multicast, CoAP, or an emulated long-range radio, had between four and twenty participants, and in three of them a tenth of all incoming messages were dropped. No central server was used in any of them. The participants always agreed on one master when sampled, all federated rounds finished, and no cycle came close to the 200 ms budget. Across the 1,413 validated plans, the road never showed a conflicting green, even when messages were lost. Two parts of the design account for this: a go expires on its own if it is not renewed, and the master holds all lanes red for a clearance interval before switching between conflicting lanes.
This safety depends on there being only one master. The validator checks plans one at a time, so it cannot detect the case where two masters each issue a valid plan and the participants follow different ones. To test this, I turned the single-master safeguards off. The plans still all passed validation, yet over the same eighteen runs conflicting greens were on the road for 150.5 s in total, and a deliberate network split also produced them. With the safeguards on, a split in which neither side has a majority simply stops service and does not elect a second master. That is the safe way for it to fail. A virtual traffic light therefore has to guarantee a single coordinator, and it has to stop giving green when it cannot. Anyone deploying one should check this on their own system by measuring agreement over time and the conflicts that are actually displayed, not only by validating plans.
The prediction layer, which is what this work adds to the prior virtual traffic light, is the component with the weakest case. Replaying demand through a queue model, adaptive control clears 10.6% more vehicles than fixed timing at three times measured demand and 5.2% at twice, but nothing at all at the demand this intersection actually carries, where it is worse on delay than fixed timing. And the learned forecaster matches naive persistence to within 0.2% at every demand scale. Recording the decisions rather than the outcomes explains why: the two select the same non-conflicting phase group on 97 to 98 percent of control steps, and a further 12 to 18 percent are decided by the starvation bound with demand ignored. The ceiling on what a forecaster can contribute is set by the granularity of the decision it feeds, not by its own accuracy, so the place to look for value from a better model is a finer-grained allocator rather than a better model.
Traffic at one junction depends partly on what its neighbors send it, so I also checked whether an upstream intersection helps. Adding the upstream site’s lagged volumes improved five of the six models by 1.7% at the median, and most of the gain went to the linear models, not to the ones I would deploy. With fifteen-minute bins, most of the link between neighboring intersections is averaged out. For this task, a forecast from the single intersection is therefore good enough, though the question stays open at finer time scales.
These results have limits. The model comparison comes from one intersection over eight months. I chose it because it is the busiest site whose camera reported in every month of the window, and another site might rank the models differently, although the comparison between federated and local training held at all nine other intersections I could test. The federated experiments also simulate clients by splitting a recorded dataset; no vehicles were driving. They show the statistical effect of how data is spread across clients, but not the timing, movement, or dropouts that real vehicles bring. And while I establish that the recurrent degradation is caused neither by distribution skew, since it appears under random partitioning, nor by an unequal training budget, since every model was trained with the same budget, I do not identify which part of the recurrent parameterization makes weight averaging fail so much faster. The system evaluation, finally, ran every participant on one host: the long-range radio is emulated, and on air a plan would take longer to transmit than the clearance margin allows, so the timing of a radio deployment remains to be established on the radio itself.
For the virtual traffic light this work supports, the practical conclusion is that each participant should forecast its own approach with a model trained on its own history, and use federation to start: a small model, a linear model or an 8 KB multi-layer perceptron, federated across other intersections, serves a participant for its first days, until it holds enough history of its own. Every forecast should be checked against a naive baseline, the model that looks best in a centralized comparison is not the one to deploy, and the system is safe exactly as long as it holds one coordinator, which it must therefore be built to guarantee.
6.0.0.5. Acknowledgments.
I thank my family and friends for their support and encouragement while I carried out this work.
6.0.0.6. Conflicts of Interest.
The author declares no conflicts of interest.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data are available from the City of Austin Open Data Portal, dataset sh59-i6y9 [23]. This study uses the January to August 2022 window for the intersection US 183 HWY / BURLESON RD. The feed stopped being updated in July 2024, so the window is fixed and a repeat of this study draws the same records. The source code of the virtual traffic light implementation the study describes, including the model zoo, the federated aggregator, the coordination and safety logic, and the experiment runners, is available at https://gitlab.com/sammybigboy440/fvtcs. The models evaluated in this paper are the ones in that implementation, so the results describe the system as built.
Acknowledgments
I thank my family and friends for their support and encouragement while I carried out this work.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Elbir, A.M.; Soner, B.; Coleri, S.; Gunduz, D.; Bennis, M. Federated Learning in Vehicular Networks. In Proceedings of the Proceedings of the 2022 IEEE International Mediterranean Conference on Communications and Networking (MeditCom), 2022; pp. 72–77. [Google Scholar] [CrossRef]
- Shaygan, M.; Meese, C.; Li, W.; Zhao, X.; Nejad, M. Traffic Prediction Using Artificial Intelligence: Review of Recent Advances and Emerging Opportunities. Transp. Res. Part C Emerg. Technol. 2022, 145, 103921. [Google Scholar] [CrossRef]
- Taheri, A.; Moghadasi, R.; Rasaizadi, A. The Short-Term Prediction of Traffic Parameters: A Review of Parametric and Nonparametric Approaches. AUT J. Civ. Eng. 2022, 6, 369–386. [Google Scholar] [CrossRef]
- Manibardo, E.L.; Laña, I.; Del Ser, J. Deep Learning for Road Traffic Forecasting: Does it Make a Difference? IEEE Trans. Intell. Transp. Syst. 2022, 23, 6164–6188. [Google Scholar] [CrossRef]
- Li, J.; Boonaert, J.; Doniec, A.; Lozenguez, G. Multi-Models Machine Learning Methods for Traffic Flow Estimation from Floating Car Data. Transp. Res. Part C Emerg. Technol. 2021, 132, 103389. [Google Scholar] [CrossRef]
- Alam, I.; Farid, D.M.; Rossetti, R.J.F. The Prediction of Traffic Flow with Regression Analysis. In Emerging Technologies in Data Mining and Information Security;Advances in Intelligent Systems and Computing; Springer: Singapore, 2019; Vol. 813, pp. 661–671. [Google Scholar] [CrossRef]
- Navarro-Espinoza, A.; López-Bonilla, O.R.; García-Guerrero, E.E.; Tlelo-Cuautle, E.; López-Mancilla, D.; Hernández-Mejía, C.; Inzunza-González, E. Traffic Flow Prediction for Smart Traffic Lights Using Machine Learning Algorithms. Technologies 2022, 10, 5. [Google Scholar] [CrossRef]
- Liu, Y.; Yu, J.J.Q.; Kang, J.; Niyato, D.; Zhang, S. Privacy-Preserving Traffic Flow Prediction: A Federated Learning Approach. IEEE Internet Things J. 2020, 7, 7751–7763. [Google Scholar] [CrossRef]
- Xia, M.; Jin, D.; Chen, J. Short-Term Traffic Flow Prediction Based on Graph Convolutional Networks and Federated Learning. IEEE Trans. Intell. Transp. Syst. 2023, 24, 1191–1203. [Google Scholar] [CrossRef]
- Pizzolante, M.; Shumba, A.T.; Montanaro, T.; Semeraro, G.; Cantoro, D.; Rollo, D.; Cotardo, M.; Sergi, I.; Visconti, P.; Patrono, L. Online Federated Learning on Resource-Limited IoT Devices for Traffic Flow Prediction in Smart Mobility Ecosystems. In Proceedings of the Proceedings of the 2026 IEEE 50th Annual Computers, Software, and Applications Conference (COMPSAC), 2026; pp. 2142–2147. [Google Scholar] [CrossRef]
- Li, T.; Sahu, A.K.; Zaheer, M.; Sanjabi, M.; Talwalkar, A.; Smith, V. Federated Optimization in Heterogeneous Networks. Proceedings of Machine Learning and Systems, 2020; 2. [Google Scholar]
- Karimireddy, S.P.; Kale, S.; Mohri, M.; Reddi, S.J.; Stich, S.U.; Suresh, A.T. SCAFFOLD: Stochastic Controlled Averaging for Federated Learning. In Proceedings of the Proceedings of the 37th International Conference on Machine Learning (ICML); 2020; Vol. 119, Proceedings of Machine Learning Research. pp. 5132–5143. [Google Scholar]
- Ferreira, M.; Fernandes, R.; Conceição, H.; Viriyasitavat, W.; Tonguz, O.K. Self-Organized Traffic Control. In Proceedings of the Proceedings of the Seventh ACM International Workshop on VehiculAr InterNETworking (VANET ’10), 2010; pp. 85–90. [Google Scholar] [CrossRef]
- Zhang, R.; Schmutz, F.; Gerard, K.; Pomini, A.; Basseto, L.; Ben Hassen, S.; Ishikawa, A.; Ozgunes, I.; Tonguz, O. Virtual Traffic Lights: System Design and Implementation. In Proceedings of the Proceedings of the 2018 IEEE 88th Vehicular Technology Conference (VTC-Fall), 2018; pp. 1–5. [Google Scholar] [CrossRef]
- Jame, A.; Rapelli, M.; Casetti, C. Reducing Pollutant Emissions through Virtual Traffic Lights. Comput. Commun. 2022, 188, 167–177. [Google Scholar] [CrossRef]
- Kairouz, P.; McMahan, H.B.; et al. Advances and Open Problems in Federated Learning. Found. Trends Mach. Learn. 2021, 14, 1–210. [Google Scholar] [CrossRef]
- Ekmefjord, M.; Ait-Mlouk, A.; Alawadi, S.; Akesson, M.; Singh, P.; Spjuth, O.; Toor, S.; Hellander, A. Scalable Federated Machine Learning with FEDn. In Proceedings of the Proceedings of the 22nd IEEE/ACM International Symposium on Cluster, Cloud and Internet Computing (CCGrid 2022), 2022; pp. 555–564. [Google Scholar] [CrossRef]
- Lee, Y.; Yoon, Y. A Distributed Consensus Algorithm for Prioritizing Autonomous Vehicle Passing at Unsignalized Intersections Under Mixed Traffic. IEEE Trans. Veh. Technol. 2026, 75, 19576–19586. [Google Scholar] [CrossRef]
- Long, J.; Li, X.; Lei, W.; Wang, W. When Better Traffic Forecasts Fail to Improve Signal Control: A Layered Diagnostic Study of Forecast-to-Decision Value. arXiv 2026, arXiv:2610.06992. [Google Scholar] [CrossRef]
- Zhao, Y.; Li, M.; Lai, L.; Suda, N.; Civin, D.; Chandra, V. Federated Learning with Non-IID Data. arXiv 2018, arXiv:1806.00582. [Google Scholar] [CrossRef]
- Sattler, F.; Müller, K.R.; Samek, W. Clustered Federated Learning: Model-Agnostic Distributed Multitask Optimization Under Privacy Constraints. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 3710–3722. [Google Scholar] [CrossRef] [PubMed]
- Rodrigues, F. On the Importance of Stationarity, Strong Baselines and Benchmarks in Transport Prediction Problems. In Proceedings of the Proceedings of the 2023 IEEE 26th International Conference on Intelligent Transportation Systems (ITSC), 2023; pp. 4927–4932. [Google Scholar] [CrossRef]
- City of Austin. Camera Traffic Counts. City of Austin Open Data Portal, dataset sh59-i6y9. 2024. Available online: https://data.austintexas.gov/Transportation-and-Mobility/Camera-Traffic-Counts/sh59-i6y9/data.
- Bergmeir, C.; Hyndman, R.J.; Koo, B. A Note on the Validity of Cross-Validation for Evaluating Autoregressive Time Series Prediction. Comput. Stat. Data Anal. 2018, 120, 70–83. [Google Scholar] [CrossRef]
- Emmanuel, T.; Maupong, T.; Mpoeleng, D.; Semong, T.; Mphago, B.; Tabona, O. A Survey on Missing Data in Machine Learning. J. Big Data 2021, 8, 140. [Google Scholar] [CrossRef] [PubMed]
- Li, T.; Sahu, A.K.; Talwalkar, A.; Smith, V. Federated Learning: Challenges, Methods, and Future Directions. IEEE Signal Process. Mag. 2020, 37, 50–60. [Google Scholar] [CrossRef]
- McMahan, H.B.; Moore, E.; Ramage, D.; Hampson, S.; Agüera y Arcas, B. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS); 2017; Vol. 54, Proceedings of Machine Learning Research. pp. 1273–1282. [Google Scholar]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Cho, K.; van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation. In Proceedings of the Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014; pp. 1724–1734. [Google Scholar] [CrossRef]
- Hyndman, R.J.; Koehler, A.B. Another Look at Measures of Forecast Accuracy. Int. J. Forecast. 2006, 22, 679–688. [Google Scholar] [CrossRef]
- Ongaro, D.; Ousterhout, J. In Search of an Understandable Consensus Algorithm. In Proceedings of the Proceedings of the 2014 USENIX Annual Technical Conference (USENIX ATC ’14), 2014; pp. 305–319. [Google Scholar]
- Ghosh, A.; Chung, J.; Yin, D.; Ramchandran, K. An Efficient Framework for Clustered Federated Learning. IEEE Trans. Inf. Theory 2022, 68, 8076–8091. [Google Scholar] [CrossRef]
- Tan, A.Z.; Yu, H.; Cui, L.; Yang, Q. Towards Personalized Federated Learning. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 9587–9603. [Google Scholar] [CrossRef] [PubMed]
- Robertson, D.I. TRANSYT: A Traffic Network Study Tool; Technical Report LR 253; Road Research Laboratory: Crowthorne, UK, 1969. [Google Scholar]
Figure 1.
Flowchart of the virtual traffic light algorithm with federated machine learning.

Figure 2.
Flowchart of the centralized learning method. The two steps that differ most from a conventional set-up are the lagged construction, which makes this a forecast of the next interval rather than a regression on the current one, and the split by calendar month, which keeps every test prediction in the future of the data it was trained on.
Figure 2.
Flowchart of the centralized learning method. The two steps that differ most from a conventional set-up are the lagged construction, which makes this a forecast of the next interval rather than a regression on the current one, and the split by calendar month, which keeps every test prediction in the future of the data it was trained on.

Figure 3.
Sequence of one federated round. Each vehicle gets the current global weights, trains on the data from its own approach, and sends back its weight vector with the number of samples it used. The coordinator takes a weighted average of these vectors using the sample counts, so a vehicle on a busier approach counts for more. Only the weights and the counts are sent; the observations stay on the vehicle that recorded them.
Figure 3.
Sequence of one federated round. Each vehicle gets the current global weights, trains on the data from its own approach, and sends back its weight vector with the number of samples it used. The coordinator takes a weighted average of these vectors using the sample counts, so a vehicle on a busier approach counts for more. Only the weights and the counts are sent; the observations stay on the vehicle that recorded them.

Figure 4.
Test MAE for every model in the zoo, ordered by error, with the persistence baseline marked. Models shaded darker hold a weight vector that can be federated; the others can only be trained locally.
Figure 4.
Test MAE for every model in the zoo, ordered by error, with the persistence baseline marked. Models shaded darker hold a weight vector that can be federated; the others can only be trained locally.

Figure 5.
Test MAE against stored model size. Circles are models that can be federated, and triangles are models that cannot. The size axis is logarithmic, and the three most accurate models differ in size by two orders of magnitude.
Figure 5.
Test MAE against stored model size. Circles are models that can be federated, and triangles are models that cannot. The size axis is logarithmic, and the three most accurate models differ in size by two orders of magnitude.

Figure 6.
Test MAE against client count under both partitionings, for the six models that can be federated. Both axes are logarithmic: the client counts are spaced geometrically, and the two families finish an order of magnitude apart, which on a linear axis would flatten the dense models into an unreadable line. The dotted line is the persistence baseline. The per-approach panel stops at four clients because the partitioning saturates there.
Figure 6.
Test MAE against client count under both partitionings, for the six models that can be federated. Both axes are logarithmic: the client counts are spaced geometrically, and the two families finish an order of magnitude apart, which on a linear axis would flatten the dense models into an unreadable line. The dotted line is the persistence baseline. The per-approach panel stops at four clients because the partitioning saturates there.

Figure 7.
Test MAE after each round for the Scikit-learn MLP with four clients, under both partitionings. Ridge is left out because it has a closed-form solution. It reaches its answer in one aggregation, and further rounds do not change it.
Figure 7.
Test MAE after each round for the Scikit-learn MLP with four clients, under both partitionings. Ridge is left out because it has a closed-form solution. It reaches its answer in one aggregation, and further rounds do not change it.

Figure 8.
One held-out day of centralized predictions and actual volume, one panel per approach. Each panel is a whole approach, because preprocessing merges the movements into the approach volume; it is not a single direction-and-movement pair.
Figure 8.
One held-out day of centralized predictions and actual volume, one panel per approach. Each panel is a whole approach, because preprocessing merges the movements into the approach volume; it is not a single direction-and-movement pair.

Figure 9.
The Keras MLP under centralized and federated training (four clients, per-approach), on the same held-out day. Both models are trained at the same epoch budget, so the difference between the curves is the effect of federating and not of training one of them for longer.
Figure 9.
The Keras MLP under centralized and federated training (four clients, per-approach), on the same held-out day. Both models are trained at the same epoch budget, so the difference between the curves is the effect of federating and not of training one of them for longer.

Figure 10.
Training time of the two recurrent networks and the two multi-layer perceptrons as the number of clients grows, under random partitioning. All points come from one continuous sweep, and both axes are logarithmic.
Figure 10.
Training time of the two recurrent networks and the two multi-layer perceptrons as the number of clients grows, under random partitioning. All points come from one continuous sweep, and both axes are logarithmic.

Figure 11.
Test MAE with and without the upstream intersection’s lagged volumes, on identical rows. The percentage above each pair is the change. The benefit is concentrated in the two linear models.
Figure 11.
Test MAE with and without the upstream intersection’s lagged volumes, on identical rows. The percentage above each pair is the change. The benefit is concentrated in the two linear models.

Table 1.
Sample records from the feed for the study intersection. The first two rows share a timestamp, direction, and movement and differ only in the heavy-vehicle flag. Preprocessing sums them, together with every other movement on the same approach, into one observation for that approach and bin rather than treating them as independent samples.
Table 1.
Sample records from the feed for the study intersection. The first two rows share a timestamp, direction, and movement and differ only in the heavy-vehicle flag. Preprocessing sums them, together with every other movement on the same approach, into one observation for that approach and bin rather than treating them as independent samples.
| Read date | Direction | Movement | Heavy | Volume | Speed |
| 2022-03-01 00:00:00 | Eastbound | Right Turn | false | 1 | 12.0 |
| 2022-03-01 00:00:00 | Eastbound | Right Turn | true | 2 | 4.0 |
| 2022-03-01 00:00:00 | Southbound | Left Turn | true | 1 | 10.0 |
| 2022-03-01 00:00:00 | Southbound | Right Turn | true | 1 | 19.0 |
| 2022-03-01 00:00:00 | Westbound | Right Turn | false | 4 | 7.0 |
Table 2.
Centralized learning on the held-out month. Models are ordered by test MAE. The right-hand column marks whether the model holds a weight vector that can be federated. Training time is wall-clock on one laptop and indicates relative cost within this table; it is not comparable with times measured in another run.
Table 2.
Centralized learning on the held-out month. Models are ordered by test MAE. The right-hand column marks whether the model holds a weight vector that can be federated. Training time is wall-clock on one laptop and indicates relative cost within this table; it is not comparable with times measured in another run.
| Model | Time (s) | EV | MAE | RMSE | Federates | |
| LSTM | 76.15 | 0.9663 | 0.9661 | 12.594 | 18.443 | yes |
| GRU | 79.74 | 0.9664 | 0.9660 | 12.631 | 18.459 | yes |
| Random Forest | 0.56 | 0.9647 | 0.9647 | 12.914 | 18.810 | no |
| MLP (sklearn) | 21.97 | 0.9628 | 0.9628 | 13.192 | 19.308 | yes |
| MLP (Keras) | 36.74 | 0.9623 | 0.9622 | 13.214 | 19.463 | yes |
| Decision Tree | 0.30 | 0.9586 | 0.9586 | 13.665 | 20.367 | no |
| 1D-CNN | 74.14 | 0.9598 | 0.9597 | 13.682 | 20.095 | yes |
| Gradient Boosting | 8.78 | 0.9571 | 0.9571 | 14.236 | 20.747 | no |
| Linear SVR | 0.19 | 0.9440 | 0.9438 | 16.082 | 23.741 | no |
| Ridge | 0.02 | 0.9444 | 0.9444 | 16.174 | 23.603 | yes |
| Persistence (baseline) | – | – | – | 17.475 | 25.581 | – |
| Seasonal-naive (baseline) | – | – | – | 28.976 | 43.928 | – |
Table 3.
Test MAE under federated learning with random (IID) partitioning. Models marked (local) are not federated. They have no weight vector that can be averaged, so each client keeps its own model and the clients’ forecasts are averaged.
Table 3.
Test MAE under federated learning with random (IID) partitioning. Models marked (local) are not federated. They have no weight vector that can be averaged, so each client keeps its own model and the clients’ forecasts are averaged.
| Federated clients | ||||||||
| Model | 2 | 3 | 4 | 5 | 10 | 15 | 20 | 25 |
| GRU | 12.804 | 13.741 | 15.760 | 17.878 | 27.955 | 36.535 | 44.500 | 48.189 |
| LSTM | 12.838 | 13.855 | 15.912 | 17.951 | 28.763 | 38.722 | 45.670 | 49.871 |
| MLP (sklearn) | 13.512 | 14.014 | 14.307 | 14.521 | 15.091 | 15.516 | 15.721 | 16.029 |
| MLP (Keras) | 13.610 | 14.178 | 14.471 | 14.522 | 15.010 | 15.256 | 15.416 | 15.583 |
| 1D-CNN | 14.313 | 14.624 | 14.689 | 14.975 | 15.151 | 15.432 | 15.702 | 15.993 |
| Ridge | 16.173 | 16.173 | 16.173 | 16.173 | 16.174 | 16.173 | 16.173 | 16.173 |
| Linear SVR (local) | 16.083 | 16.082 | 16.086 | 16.087 | 16.102 | 16.123 | 16.154 | 16.193 |
| Decision Tree (local) | 13.506 | 13.324 | 13.336 | 13.501 | 13.459 | 13.448 | 13.571 | 13.704 |
| Random Forest (local) | 12.932 | 12.987 | 13.040 | 13.096 | 13.314 | 13.476 | 13.622 | 13.712 |
| Gradient Boosting (local) | 14.218 | 14.189 | 14.196 | 14.221 | 14.256 | 14.279 | 14.292 | 14.310 |
| Persistence (baseline) | 17.475 | |||||||
Table 4.
Test MAE with per-approach partitioning, where each client holds the history of its own approach. Federated: one model trained across the clients with Federated Averaging and applied to every approach. Local: each client trains a model on its own data alone, at the same epoch budget, and every approach is forecast by the model of the client that holds it. Tree ensembles and Linear SVR have no weight vector to average, so they are trained only locally.
Table 4.
Test MAE with per-approach partitioning, where each client holds the history of its own approach. Federated: one model trained across the clients with Federated Averaging and applied to every approach. Local: each client trains a model on its own data alone, at the same epoch budget, and every approach is forecast by the model of the client that holds it. Tree ensembles and Linear SVR have no weight vector to average, so they are trained only locally.
| Federated, clients | Local, clients | |||||
| Model | 2 | 3 | 4 | 2 | 3 | 4 |
| GRU | 16.136 | 17.043 | 25.179 | 12.692 | 14.870 | 16.935 |
| LSTM | 16.565 | 17.849 | 29.819 | 12.755 | 14.943 | 16.953 |
| MLP (sklearn) | 21.308 | 18.874 | 16.887 | 13.119 | 13.128 | 13.285 |
| MLP (Keras) | 16.154 | 16.563 | 17.148 | 13.136 | 13.192 | 13.241 |
| 1D-CNN | 15.864 | 17.099 | 19.615 | 13.242 | 13.537 | 13.792 |
| Ridge | 16.293 | 16.413 | 16.591 | 16.117 | 15.845 | 15.818 |
| Linear SVR | – | – | – | 16.014 | 15.767 | 15.755 |
| Decision Tree | – | – | – | 13.387 | 13.340 | 13.395 |
| Random Forest | – | – | – | 12.638 | 12.419 | 12.346 |
| Gradient Boosting | – | – | – | 13.728 | 13.364 | 13.140 |
| Persistence (baseline) | 17.475 | |||||
Table 5.
Test MAE for a participant by how much history of its own approach it holds, pooled over the four approaches of the study intersection, each held out in turn. Trained alone: the participant’s own model, trained only on that history. Federated: a model trained by Federated Averaging across the intersection’s other three approaches, or across the approaches of the nine panel intersections, used as handed over when the participant has no history and otherwise fine-tuned on its history for 16 epochs, one round’s local budget. Ridge is fitted in closed form, so it has no fine-tuned variant.
Table 5.
Test MAE for a participant by how much history of its own approach it holds, pooled over the four approaches of the study intersection, each held out in turn. Trained alone: the participant’s own model, trained only on that history. Federated: a model trained by Federated Averaging across the intersection’s other three approaches, or across the approaches of the nine panel intersections, used as handed over when the participant has no history and otherwise fine-tuned on its history for 16 epochs, one round’s local budget. Ridge is fitted in closed form, so it has no fine-tuned variant.
| Trained alone | Federated, this intersection | Federated, nine others | |||||
| History | MLP | Ridge | Forest | MLP | Ridge | MLP | Ridge |
| None | – | – | – | 23.719 | 17.130 | 18.914 | 16.567 |
| 1 day | 52.931 | 16.897 | 24.826 | 18.782 | – | 16.290 | – |
| 7 days | 20.180 | 16.073 | 14.146 | 15.649 | – | 15.306 | – |
| 30 days | 15.458 | 15.896 | 13.433 | 14.411 | – | 14.518 | – |
| 90 days | 13.810 | 15.873 | 12.516 | 13.742 | – | 13.932 | – |
| 7 months (all) | 13.207 | 15.817 | 12.346 | 13.424 | – | 13.555 | – |
| Persistence (baseline) | 17.475 | ||||||
Table 6.
Test MAE at the study intersection and at the nine other intersections in the feed with full four-approach coverage, under the same protocol: August 2022 held out, one client per approach, five rounds of Federated Averaging, and the same epoch budget for every condition. Local: each approach forecast by the model of the client that holds it.
Table 6.
Test MAE at the study intersection and at the nine other intersections in the feed with full four-approach coverage, under the same protocol: August 2022 held out, one client per approach, five rounds of Federated Averaging, and the same epoch budget for every condition. Local: each approach forecast by the model of the client that holds it.
| MLP (Keras) | Ridge | |||||
| Intersection | Persistence | Centralized | Federated | Local | Federated | Local |
| US 183 Hwy / Burleson Rd* | 17.475 | 13.214 | 17.148 | 13.241 | 16.591 | 15.818 |
| Riverside Dr / Burton Dr | 12.605 | 10.260 | 13.182 | 10.527 | 12.343 | 11.952 |
| Congress Ave / Oltorf St | 14.189 | 11.243 | 12.484 | 11.317 | 13.536 | 13.384 |
| Parmer Ln / Lamplight Village Ave | 16.950 | 14.134 | 19.851 | 14.486 | 17.489 | 16.582 |
| Capital of Texas Hwy / Westlake Dr | 14.703 | 12.247 | 21.656 | 12.846 | 15.264 | 13.818 |
| Anderson Ln / Shoal Creek Blvd | 11.710 | 9.525 | 13.133 | 9.650 | 11.494 | 11.436 |
| IH 35 Svrd / Holly St | 14.893 | 13.198 | 15.718 | 13.130 | 14.624 | 14.305 |
| Airport Blvd / 51st St | 12.135 | 9.328 | 11.239 | 9.405 | 11.364 | 11.083 |
| Enfield Rd / Exposition Blvd | 19.293 | 16.693 | 18.193 | 16.572 | 18.533 | 18.456 |
| Burnet Rd / Richcreek Rd | 11.043 | 9.354 | 12.793 | 9.275 | 12.146 | 10.933 |
| * Study site; its figures are those of Table 2 and Table 4. | ||||||
Table 7.
Test MAE for the Keras MLP by demand band, centralized against federated with four per-approach clients, over the whole held-out month. Bands are quantiles of actual volume.
Table 7.
Test MAE for the Keras MLP by demand band, centralized against federated with four per-approach clients, over the whole held-out month. Bands are quantiles of actual volume.
| Demand band | Volume | Bins | Centralized | Federated |
| Bottom 50% | 1–91 | 5,930 | 7.763 | 8.674 |
| 50–90% | 91–260 | 4,779 | 16.362 | 18.950 |
| Top 10% | 260–523 | 1,195 | 27.671 | 53.139 |
Table 8.
Live coordination with the single-master safeguards on. Each row combines 3 seeded 90-second runs of one configuration. Agreement is the share of instants (sampled every 250 ms) at which all nodes named the same master. “Divided” is the time during which two different masters were broadcasting at once, and “shown” is the time during which both lanes of a conflicting pair displayed GO together, reconstructed from what each node displayed. Every plan also passed the safety validator. None of the configurations uses a central server or a roadside controller.
Table 8.
Live coordination with the single-master safeguards on. Each row combines 3 seeded 90-second runs of one configuration. Agreement is the share of instants (sampled every 250 ms) at which all nodes named the same master. “Divided” is the time during which two different masters were broadcasting at once, and “shown” is the time during which both lanes of a conflicting pair displayed GO together, reconstructed from what each node displayed. Every plan also passed the safety validator. None of the configurations uses a central server or a roadside controller.
| Nodes | Transport | Agreement | Divided (s) | SPaT | Cycles | Shown (s) | Coord. p95 | FL rounds |
| 4 | UDP multicast | 100.0% | 0.0 | 1,896 | 237 | 0.00 | 4.20 | 9/9 |
| 8 | UDP multicast | 100.0% | 0.0 | 1,896 | 237 | 0.00 | 4.54 | 9/9 |
| 20 | UDP multicast | 100.0% | 0.0 | 1,896 | 237 | 0.00 | 4.73 | 9/9 |
| 4 | CoAP | 100.0% | 0.0 | 1,912 | 239 | 0.00 | 3.80 | 9/9 |
| 4 | LoRa (emulated) | 100.0% | 0.0 | 1,896 | 237 | 0.00 | 6.00 | 9/9 |
| 4 | UDP, 10% loss | 100.0% | 0.0 | 1,808 | 226 | 0.00 | 4.41 | 9/9 |
| All 18 runs | 100.0% | 0.0 | 11,304 | 1413 | 0.00 | 6.00 | 54/54 | |
Table 9.
What happens without the single-master guarantee: the same matrix of live runs with the safeguards on and off. With them off, each node acts on the result of its own election. There is no election term, no majority quorum, and no reconciliation between sessions; each node ends a session on its own timer; a follower that times out appoints a successor itself; and the collection window (750 ms) is shorter than the 1,000 ms re-announcement interval. Grant lapse and all-red clearance are on in both conditions.
Table 9.
What happens without the single-master guarantee: the same matrix of live runs with the safeguards on and off. With them off, each node acts on the result of its own election. There is no election term, no majority quorum, and no reconciliation between sessions; each node ends a session on its own timer; a follower that times out appoints a successor itself; and the collection window (750 ms) is shorter than the 1,000 ms re-announcement interval. Grant lapse and all-red clearance are on in both conditions.
| Safeguards on | Safeguards off | |
| Instants with one agreed master (mean) | 100.0% | 22.3% |
| Instants with one agreed master (worst run) | 100.0% | 0.0% |
| Runs with two masters broadcasting at once | 0 of 18 | 12 of 18 |
| Time with two masters broadcasting | 0.0 s of 1542 s | 1083.4 s of 1460 s |
| Nodes acting as master per run (mean) | 1.0 | 5.1 |
| Federated rounds completed | 54 of 54 (100%) | 79 of 156 (51%) |
| with every participant | 53 of 54 (98%) | 18 of 79 (23%) |
| Conflicting plans (safety validator) | 0 | 0 |
| Conflicting greens displayed | 0.00 s in 0 runs | 150.48 s in 11 runs |
Table 13.
Effect of adding an upstream intersection’s lagged volumes. Both conditions are trained and scored on the same rows, which are those where every neighbor lag is available.
Table 13.
Effect of adding an upstream intersection’s lagged volumes. Both conditions are trained and scored on the same rows, which are those where every neighbor lag is available.
| Model | Own history | With upstream | Change |
| Random Forest | 11.388 | 11.232 | -1.4% |
| MLP (sklearn) | 11.881 | 11.733 | -1.2% |
| Gradient Boosting | 12.033 | 12.040 | +0.1% |
| Decision Tree | 12.244 | 11.989 | -2.1% |
| Linear SVR | 13.653 | 12.840 | -6.0% |
| Ridge | 14.075 | 13.019 | -7.5% |
| Persistence (baseline) | 15.158 | 15.158 | – |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.