The invention relates generally to distribute machine learning for vehicular traffic systems, and more particularly to methods and apparatus of the federated learning in vehicular networks.
Modern vehicles are packed with various on-board sensors to accomplish higher automation levels. Different from conventional vehicles, the modern vehicles are much more intelligent. They are not only capable of collecting various vehicle data and traffic data but also capable of running advanced machine learning algorithms to guide their motion.
However, realizing intelligent traffic is an extremely difficult problem. Physical roads form a complex road network. Most importantly, traffic conditions such as congestion at one location can propagate to and impact on traffic conditions at other locations. Furthermore, the unexpected events such as traffic accident and driver behave can make the traffic condition even more dynamic and uncertain. All these factors can impact individual vehicle motion. Therefore, how to accurately predict vehicle parameters such as velocity and trajectory and apply the prediction to optimize vehicle operation is very challenging.
Data-driven machine learning techniques have become inevitable solutions to learn and analyze vehicular data. However, applying machine learning to vehicular applications still faces challenges due to unique characteristics of vehicular networks including high mobility, data privacy, communication cost, high safety requirement, etc.
Although a vehicle can independently train machine learning models by using its own data, data collected by an individual vehicle may contain imperfection, which may lead to non-robust models, whose prediction accuracy may not be robust for the high accuracy demanding vehicular applications or may even result in wrong decision making. Therefore, the non-robust machine learning model trained based on imperfected data may not be acceptable in vehicular applications. In addition, data collected by an individual vehicle may not be sufficient to train the large-scale machine learning models that can be used by the vehicle on the road. For example, a vehicle cannot train a machine learning model that can be applied at locations where the vehicle has not traveled. Therefore, training machine learning models independently by an individual vehicle is not a practical solution.
However, uploading data collected by vehicles to the central server for centralized machine learning model training is impractical either due to enormous communication bandwidth requirement and most importantly, the extensive threat of sharing private information. In addition, different vehicles are equipped with different sensors based on their making, model, size, weight, age and computation resources. Therefore, data collected by different vehicles can be highly heterogenous. As a result, the central server may not have capability to process such heterogenous data. For example, a high-end GPS receiver provides more accurate measurement than a low-end GPS receiver does. For same GPS receiver, its accuracy is higher in open area than in urban area.
The recent advances of privacy-preserving federated learning (FL) can provide a promising solution. The FL is a distributed machine learning technique that allows machine learning models to be trained locally based on the trainer's local data. Therefore, it ensures data privacy protection and also addresses communication cost issue due with zero raw data transfer. Most importantly, the FL incorporates data features from collaborative datasets, which allows robust machine learning model training by eliminating data imperfection contained in an individual dataset. The pre-trained robust models can be distributed to the distributed devices such as on-road vehicles for their prediction tasks.
The FL aims to address two key challenges that differentiate it from traditional machine learning: (1) the significant variability in terms of the characteristics on each vehicle in the network (device heterogeneity) and (2) the non-identically distributed data across the network (statistical heterogeneity).
The FL can be divided into the vanilla FedAvg algorithms and the enhanced FL algorithms such as FedProx and SCAFFOLD. FedAvg is an iterative learning method. At each iteration, FedAvg first locally performs E epochs of model training on K distributed devices. The devices then communicate their model updates to a central server, where the locally trained models are averaged. While FedAvg has demonstrated empirical success in homogeneous settings, it does not fully address the underlying challenges associated with heterogeneity. In the context of device heterogeneity, FedAvg does not allow participating devices to perform variable amounts of local iterations based on their underlying systems constraints; instead it is common to simply drop devices that fail to complete E epochs within a specified time window. From a statistical perspective, FedAvg has been shown to diverge empirically in settings where the data is non-identically distributed across devices. Therefore, the enhanced FL algorithms such as FedProx and SCAFFOLD have been proposed. FedProx is a federated optimization algorithm that addresses the challenges of heterogeneity. It adds an additional regularization term into local objective function to take heterogeneity into account. FedProx allows participating devices to perform different iterations of model training. FedProx demonstrates better convergence rate than vanilla FedAvg on non-identically distributed datasets. The SCAFFOLD is also proposed to improve convergence rate of federated learning. Instead of adding an additional term into objective function, SCAFFOLD uses control variates to correct for the client-drift in local updates. SCAFFOLD requires significantly fewer communication rounds and is not affected by data heterogeneity or client sampling. Furthermore, SCAFFOLD can take advantage of similarity in the client's data yielding even faster convergence.
While the FL can indeed bring manifold benefits, applying FL to vehicular networks still needs to address many issues. For example, how to aggregate locally trained machine learning models to achieve robust vehicle trajectory prediction? Although the existing FL algorithms such as FedProx and SCAFFOLD train machine learning models by considering device and data heterogeneity, the model aggregation in FedProx still applies vanilla FedAvg approach, i.e., simply averages the locally trained models to get global model, and the model aggregation in SCAFFOLD uses dada size based average. As a result, FedProx model aggregation does not consider data at all. Even SCAFFOLD model aggregation considers data size, the method does not fully explore the features of non-identically datasets. Take two datasets case as an example, assume dataset 1 contains more data samples collected at middle night and dataset 2 contains less data samples collected at morning rush hour. In this case, to train a morning rush hour traffic model, dataset 2 is clearly more important than dataset 1. However, the data size based model aggregation gives more weight to dataset 1 and therefore, does not make correct decision. The prediction accuracy is the key of machine learning model. Even FedProx and SCAFFOLD show the faster convergence rate, they do not guarantee prediction accuracy. Therefore, to obtain the robust FL models, new algorithms for both the learning server and learning agents, the distributed devices that are selected to train machine learning models, are required.
Accordingly, there is a need to provide a robust federated learning framework, in which both learning server and learning agents are provided with the required algorithms to train robust machine learning models for vehicular tasks such as trajectory prediction, and apply the trained models to the on-road vehicles for their operation optimization, especially with the rising demand on higher automation.
Some embodiments are based on the recognition that modern vehicles are equipped with various sensors to collect data to improve vehicle operation. On the one hand, due to facts such as communication bandwidth limitation, data privacy protection and security, it is impractical to transfer raw data from all vehicles to the central server for centralized data processing and analysis. On the other hand, the limited amount of data collected by an individual vehicle is not sufficient to train robust and large-scale machine learning models in a city or a state, e.g., a vehicle does not know the traffic conditions at the locations the vehicle has not yet travelled. In addition, the data collected by an individual vehicle may contain imperfection that may lead to non-robust model training. Therefore, it is necessary to provide a collaborative machine learning method by avoiding raw data transfer and ensuring data privacy.
To that end, some embodiments of the invention provide vehicular federated learning methods to train robust machine learning models for accurate motion prediction, wherein a centralized learning server such as a 5G base station (BS) coordinates the federated learning model training, and distributes the well-trained machine learning models to the on-road vehicles for their prediction tasks.
It is one object of some embodiments to provide robust vehicular federated learning methods for both learning server and learning agents by considering data heterogeneity, vehicle heterogeneity and communication resource heterogeneity. Additionally, it is another object of some embodiments to provide the accurate vehicle trajectory prediction to optimize vehicle operation.
Some embodiments are based on the recognition that unlike conventional vehicular traffic metrics that describes general traffic information such as traffic flow, traffic density and average traffic speed, the vehicle trajectory describes individual vehicle motion. To realize optimal vehicle operation, the prediction of vehicle trajectory is critical, especially for automated and autonomous driving.
Some embodiments are based on the recognition that federated learning is a multi-round machine learning model training process. However, due to the high mobility, the time a vehicle connects to a connection point, e.g., a 3GPP C-V2X gNodeB or an IEEE DSRC/WAVE roadside unit, can be short. In other words, it is possible that a vehicle may not have time to complete the whole model training process. In addition, due to data heterogeneity, some vehicles may train machine learning models for more iterations and others may train machine learning models for fewer iterations. Therefore, the learning server must consider local model heterogeneity in model aggregation.
Accordingly, some embodiments of the invention apply generalization error, defined as the difference between ground truth and federated learning prediction, as a metric to measure the federated learning algorithm accuracy.
To that end, some embodiments of the invention provide a variance-based model aggregation method for the learning server by applying an optimal weight simplex to aggregate local models. The weight simplex provides a weight for each local model. The weight is computed using local data variance instead of conventional data size. An optimal weight simplex solution is provided to minimize the generalization error, and therefore, maximize the model accuracy.
Some embodiments are based on the recognition that a federated learning process takes multiple model parameters such as number of local training iterations and local training time window. These model parameters can be classified into two categories: homogeneous parameters and heterogeneous parameters. The homogeneous parameters describe common features for all tasks. For example, road map is a common parameter for tasks such as trajectory prediction, velocity prediction and travel time prediction. However, heterogeneous parameters describe specific features for specific tasks. For example, vehicle route is specific parameter to tasks such as trajectory prediction, velocity prediction and travel time prediction.
To that end, some embodiments of the invention adopt a three-module structure into federated learning framework, in which federated learning framework consists of three interacting modules each with unique purposes. Firstly, a graph encoder module encodes map and vehicle information as a directed graph, then a policy header module learns a discrete policy, the sampled path is decoded into predicted trajectory by a trajectory decoder module.
Accordingly, some embodiments of the invention provide a structure-aware model update method for learning agents to maximize the advantages and minimize the disadvantages of heterogeneous updates. At the start of the learning, the model parameters are divided into homogeneous set and heterogeneous set. After each global learning round, each learning agent performs homogeneous update using FedAvg algorithm on homogeneous set and performs heterogeneous update using algorithm such as FedProx on heterogeneous set.
Some embodiments are based on the recognition that data collected by vehicles depend on location, time, weather, road condition, special event, etc. At same location, traffic condition varies based on different time, different weather, etc. Rush hour traffic condition is different from off hour traffic condition. Snow day traffic condition is different from sunny day traffic condition.
To that end, it is desirable that the selected vehicle agents divide their data into different clusters based on collection location, time, weather, etc. As a result, vehicle agents train different machine learning models by using different data clusters. Vehicle agents do not train models for which they do not have appropriate data. Therefore, vehicle agents only upload trained models to the learning server.
Accordingly, the learning server build global models by aggregating the locally trained models by considering information including location, time, weather, etc.
Some embodiments are based on the recognition that the data size, computation resources and the time vehicle agents receive global model are different. Therefore, the learning server does not require vehicle agents to perform model training with same requirements.
To that end, some embodiments of the invention allow the learning server to take partially trained local models such that some vehicle agents may train model with more iterations and other vehicle agents train models with less iterations.
Some embodiments are based on the recognition that there are uncertainties in vehicular environment. Therefore, federated learning models must be trained to handle unexpected events such as traffic accident captured by the on-road vehicles.
According to some embodiments of the present invention, a learning server is provided for training a global machine learning model using vehicle agents via roadside units (RSUs) in a network. The learning server includes at least one processor; and a memory having instructions of a vehicular federated learning method stored thereon that cause the at least one processor to perform: selecting the vehicle agents from on-road vehicles driving on roads associated with a road map with respect to the global machine learning model; distributing the global machine learning model to the selected vehicle agents via the RSUs, wherein the RSUs are associated respectively with the vehicle agents, wherein the vehicle agents include on-board computer units and on-board sensors configured to collect local data while the vehicle agents drive on current trajectories of the roads, wherein the selected vehicle agents locally train the global machine learning model using the on-board computer units and the collected local data via a structure-aware model training method, wherein the locally trained models are stored as trained local models; aggregating the trained local models from the selected vehicle agents via a variance-based model aggregation method; and updating the global machine learning model using the aggregated trained local models, wherein the at least one processor continues the selecting, the distributing, the aggregating and the updating until a global training round reaches a pre-determined number of multi-rounds or learning error stabilizes.
Further another embodiment provides a computer-implemented method for training a global machine learning model using a learning server and vehicle agents via roadside units (RSUs) in a network. The method includes steps of selecting vehicle agents from on-road vehicles driving on roads associated with a road map with respect to the global machine learning model; distributing the global machine learning model to the selected vehicle agents via the RSUs, wherein the vehicle agents include on-board computer units and on-board sensors configured to collect local data while the vehicle agents drive on current trajectories of the roads, wherein the selected vehicle agents locally train the global machine learning model using the on-board computer units and the collected local data via a structure-aware model training method, wherein the locally trained models are stored as trained local models; aggregating the trained local models from the selected vehicle agents via a variance-based model aggregation method; and updating the global machine learning model using the aggregated trained local models, wherein the at least one processor continues the selecting, the distributing, the aggregating and the updating until a global training round reaches a pre-determined number of multi-rounds or learning error stabilizes.
Accordingly, the learning server and vehicles can interact with each other for model enhancement.
The presently disclosed embodiments will be further explained with reference to the attached drawings. The drawings shown are not necessarily to scale, with emphasis instead generally being placed upon illustrating the principles of the presently disclosed embodiments.
The following description provides exemplary embodiments only, and is not intended to limit the scope, applicability, or configuration of the disclosure. Rather, the following description of the exemplary embodiments will provide those skilled in the art with an enabling description for implementing one or more exemplary embodiments. Contemplated are various changes that may be made in the function and arrangement of elements without departing from the spirit and scope of the subject matter disclosed as set forth in the appended claims.
Specific details are given in the following description to provide a thorough understanding of the embodiments. However, understood by one of ordinary skill in the art can be that the embodiments may be practiced without these specific details. For example, systems, processes, and other elements in the subject matter disclosed may be shown as components in block diagram form in order not to obscure the embodiments in unnecessary detail. In other instances, well-known processes, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments. Further, like reference numbers and designations in the various drawings indicated like elements.
Also, individual embodiments may be described as a process which is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process may be terminated when its operations are completed, but may have additional steps not discussed or included in a figure. Furthermore, not all operations in any particularly described process may occur in all embodiments. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, the function's termination can correspond to a return of the function to the calling function or the main function.
Furthermore, embodiments of the subject matter disclosed may be implemented, at least in part, either manually or automatically. Manual or automatic implementations may be executed, or at least assisted, through the use of machines, hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine readable medium. A processor(s) may perform the necessary tasks.
To facilitate the development of automated and autonomous vehicles, it is imperative to have an accurate motion prediction. This is due to the fact that, such knowledge can help drivers make effective travel decisions so as to mitigate the traffic congestion, increase the fuel efficiency, and alleviate the air pollution. These promising benefits enable the motion prediction to play major roles in the advanced driver-assistance system (ADAS), the advanced traffic management system, and the commercial vehicle operation that the intelligent transportation system (ITS) targets to achieve.
To reap all the aforementioned benefits, the motion prediction must process the real-time and historical vehicle data and observations collected by vehicles. For example, the on-board global position system enables the mobility data to be used for motion prediction. Such emerging big data can substantially augment the data availability in terms of the coverage and fidelity and significantly boost the data-driven motion prediction.
The prior art on the traffic prediction can be mainly grouped into two categories. The first category focus on using parametric approaches, such as autoregressive integrated moving average (ARIMA) model and Kalman filtering model. When dealing with the traffic only presenting regular variations, e.g., recurrent traffic congestion occurred in morning and evening rush hour, the parametric approaches can achieve promising prediction results. However, due to the stochastic and nonlinear nature of the road traffic, the traffic predictions of using the parametric approaches can deviate from the actual values especially in the abrupt traffic. Hence, instead of fitting the traffic data into a mathematical model as done by the parametric approach, an alternative way is to use the data-driven machine learning (ML) based method. For example, a stacked autoencoder model can be used to learn the generic traffic flow features for the predictions. The long short-term memory (LSTM) recurrent neural network (RNN) can be used to predict the traffic flow, speed and occupancy, based on the data collected by the data collectors. Along with the use of RNN, the convolution neural network (CNN) can also be utilized to capture the latent traffic evolution patterns within the underlying road network.
Although the prior arts focus on using advanced deep learning models for the traffic prediction, all of them study the traffic variations with an independent learning model that is not able to capture large scale observations. In reality, due to the varying weather, changing road conditions and special events, the traffic patterns on the road can vary significantly under different situations. Hence, using an independent model is not able to capture such diverse and complex traffic situations. Moreover, due to the limited on-board processor power and on-chip memory at vehicle, the local training data can be extremely insufficient, and a promising prediction performance cannot be achieved. Most important, the data collected by individual vehicle may contain imperfection, which may lead to non-robust model training. On the other hand, the collected data can contain the personal information. In this case, transferring the data to a centralized server can raise the privacy concerns. Meanwhile, the communication cost is another major concern. Therefore, it is necessary to provide a collaborative machine learning architecture by avoiding data transfer, considering communication capability, integrating on-board computation resource and local data heterogeneity.
Vehicle agents can complete model training based on different criteria including (1) time specified by learning server, (2) a pre-determined number of local training iteration, (3) local model training error reaching a pre-determined threshold and (4) stabilized local model training error.
A machine learning model can be expressed in different ways, e.g., using a set of model parameters x. For neural network based machine learning, the model parameters can be represented by a set of neural network weights as x=(x1, x2, . . . , xk)
Assume a network consists of one central server and n distributed clients. Denote the dataset possessed by the i-th client as Si, the local dataset often differs across clients, the global dataset S: =Ui=1n Si is defined as the sum of all datasets available to the centralized learning algorithm. The centralized learning aims to find a set of model parameters x that minimizes the loss function or objective function l(x,S) for all clients.
The centralized optimization problem (1) requires all local datasets to be uploaded to the central server, which has two key issues: 1) requiring enormous communication bandwidth to upload data and 2) risking data privacy. Therefore, it is not practical.
Accordingly, federated learning (FL) was introduced as a communication-efficient and privacy-preserving framework to solve optimization problem (1) in a distributed fashion. In the decentralized framework, each of the local clients optimizes loss function over their own local version of the variable, while the central server seeks to find consensus among all clients, the equivalent decentralized version of problem (1) can be written as
One round of FL is executed as follows. The global model parameters of previous round xglobal(t-1)=(x1(t-1), x2(t-1), . . . , xk(t-1)) is delivered from the server to all clients, and each client tries to find a local optimizer of the algorithm xi(t)=(xi,1(t), xi,2(t), . . . , xi,k(t))=argminx
The algorithm then proceeds to next round. It can be seen that the determination of pi becomes the key in FL model aggregation.
The learning server can apply different methods to select vehicle agents including (1) randomly selecting vehicle agents, (2) selecting vehicle agents being connected to the network longer than a predetermined time period, (3) selecting vehicles having better link quality to their associated RSUs, (4) selecting vehicles having better performance in previous training round, (5) selecting vehicles having larger datasets, (6) selecting vehicles based on commutation resources and (7) selecting vehicles based on distance to the collected RSUs.
The federated learning is executed by two major complements, learning server and learning agents. One of key functions performed by learning server is to aggregate the locally trained machine learning models by learning agents. However, the earlier FedAvg algorithm uses simple model average aggregation, i.e., simply averages the local model.
(i=1, 2, . . . , nt) 330 to obtain round t+1 global model 340. This aggregation method does not consider characteristics of dataset at all and therefore, does not take data heterogeity into account.
As a result, a data size based model aggregation method has been proposed in SCAFFOLD algorithm to take dataset size into account by setting aggregation weights as
(i=1, 2, . . . , nt). When the clients participating in the FL are homogeneous, i.e., the datasets Si follow the same distribution for all i, the data size based aggregation weights yield optimal results in terms of excess risk. However, when datasets Si (i=1, 2, . . . , nt) don't follow the same distribution, the data size based aggregation weights don't give optimal results either. Take two datasets as an example, assume dataset 1 contains more data samples collected at middle night and dataset 2 contains less data samples collected at morning rush hour. To train a morning rush hour traffic model, dataset 2 is clearly more important than dataset 1. However, the data size based model aggregation gives more weight to dataset 1, which does not give appropriate aggregation weights.
Accordingly, a new model aggregation method is needed for FL to find optimal aggregation weights over heterogeneous datasets.
Since FL algorithm, especially those using momentum-based solvers such as Adam, are difficult to analyze directly. The problem can be simplified by considering the problem of finding the mean of a Gaussian random vector using data from clients. Assume that the total number of clients is n, the local dataset for client i is denoted as Si with the number of data points in each local client denoted as |Si|. Denote the individual data as Zi,j∈Si˜(μ, σi2Id), where μ is the expectation of the distribution and can be assumed to be the same across all clients, while the parameter σi is the standard deviation and the variance of the distribution is σi2. The objective for the learning server is to run an FL algorithm to find the best estimation of u.
When the data distribution on clients are heterogeneous, finding the optimal aggregation weights is a challenge. Assume that for client i, the distribution Di of dataset |Si| satisfies the following condition
Assumption (4) assumes that the gradient evaluated at different clients i share the same expectation, yet the variance of the gradient varies across agents. This assumption is especially common in vehicular data, since the traffic dynamics on the road typically stays the same for all vehicles, yet the data captured by different vehicles tend to be different, therefore causing different variances in data.
The objective seeks to minimize the squared error l(x,S): =z∈S∥x−Z∥2, where the estimated mean is denoted by x. The global estimation is calculated by the p-average methods given by simplex p=(p1, . . . , pn). Denote x as the global estimation xglobal=Σi=1, . . . , npixi, hence the optimal solution of the problem is given by
In this case, the algorithmic stability can be calculated by bounding generalization error defined as the difference between ground truth and federated learning prediction.
Theorem 1 For a task that satisfy Assumption (4) where the estimated mean is calculated by (5), the generalization error gen(μ, xglobal|{Si}) is minimized when the weight simplex p=(p1, . . . , pn) takes the following value
The theorem states that in order to minimize generalization error, the optimal aggregation weight is proportional to the local dataset size and inversely proportional to the variance of the local dataset.
Using optimal aggregation weights given by equation (6), the variance-based model aggregation method 400 is illustrated in
The result also follows intuition, a dataset with less variance in its data distribution appears more stable, and can be relatively more trusted, in this case the dataset will have a heavier aggregation weight.
For the case of Gaussian variables with given variance, Theorem 1 ensures the best-case aggregation weight that ensures best possible algorithmic stability. In the sense of FL algorithms, the analysis becomes much more difficult. Motivated by the theoretical justification of Theorem 1, an estimation of the variance in dataset can be found.
Early FL works often uses gradient descent on local clients. Recently motivated by the success of momentum and adaptive optimizers in centralized machine learning, FL algorithms have also adapted similar methods in either server-side or client-side updates or even both sides. The present invention uses the Adam optimizer as an example to explain the variance estimation.
For the Adam optimizer, the variance of gradient can be calculated as follows. The k-th iteration of Adam is calculated as follows,
where a denotes the stepsize, β1, β2 denotes the exponential decay rates for moment estimates and e is a term in Adam used to increase the stability of the algorithm. Consider term mt as the first moment of gradient gt, the variance of gradient can be estimated as
Using (8) as the estimation of gradient variance. A variance-based FL model aggregation algorithm is provided in
Variance-based model aggregation allows the FL server to increase algorithmic stability of the training process. However, FL is a collaborative learning process by learning server and learning clients. To train robust machine learning model, it is desirable to provide client side model update scheme for heterogeneous clients.
In order to tackle the heterogeneity, namely device heterogeneity and statistical heterogeneity, and to increase the learning stability, FedProx and Scaffold model update methods have been proposed to serve as modification of the vanilla FedAvg update. However, these algorithms treat all model parameters as heterogeneous. The extensive empirical experiments show that for homogeneous parameter, these algorithms in fact exhibit worse performance when compared to vanilla FedAvg. In addition, FedProx uses simple model aggregation method and Scallfold applies the data size based model aggregation. In other words, these algorithms don't use optimal model agreegation weights.
Accordingly, it is desirable to provide a new model update method that treats model parameters differently, i.e., to classify the homogenous and heterogeneous model parameters in FL process. Considering the structure of ML model, different layers of a complex model often serve different purposes, take Convolutional Neural Networks (CNNs) in computer vision tasks for instance, it is commonly believed that the lower layers of a CNN serves as a common feature detector which can be kept invariant across different tasks, and the last layers are used to learn specific tasks. For the vehicular federated learning, the road network is same for all vehicles and traffic flow is also same for vehicles on same road. However, the vehicle trajectories, the sensors used to collected data, vehicle computation resource, travelling destinations and driver behaviors are different.
To perform the structure-aware model update (structure-aware model training method), a three-module structure is adopted in federated learning with three interacting modules each with unique purposes. Firstly, a graph encoder module encodes map and vehicles nearby the learning vehicle as a directed graph, then a policy header module learns a discrete policy for each vehicle in consideration, the sampled path is decoded into predicted trajectories of learning vehicle by a trajectory decoder module.
In order to maximize the advantages and minimize the disadvantages in heterogeneous FL, a client-side structure-aware FL model update method (structure-aware model training method) is provided as shown in
To classify model parameters, the parameters including road map and traffic flow are classified into set Hom. The roads are segmented into sections as shown in
To facilitate the deferated learning in the Internet of Vehicles, the training data of the learning clients can be partitioned into different clusters such that each cluster corresponds to a learning model, e.g., rush hour data are used to train the rush hour model. Data clustering is important for many reasons, e.g., off hour data is not desirable to train rush hour traffic model, local traffic data is not suitable to train freeway traffic model. There are different ways to cluster data.
Once the machine learning models are well-trained, the learning server distributes models 921 to all on-road vehicles, which use the trained models to make their multi-horizon predictions 922. The on-road vehicles then apply their predictions to their vehicle operations. In addition, the on-road vehicles can feedback their experiences to the learning server for model enhancement.
The federated learning process can be initiated in different ways 930, e.g., 1) Periodic model training 931: where the learning server initiates periodic model training every day or every week or every other time period, 2) Event based model training 932: where the learning server learns information from city management department about a big construction or a big sports event and 3) Feedback based model training 933: where on-road vehicles identify the difference between model prediction and ground truth observed.