CN115311860A - An Online Federated Learning Approach for Traffic Flow Prediction Models - Google Patents
An Online Federated Learning Approach for Traffic Flow Prediction Models Download PDFInfo
- Publication number
- CN115311860A CN115311860A CN202210950965.1A CN202210950965A CN115311860A CN 115311860 A CN115311860 A CN 115311860A CN 202210950965 A CN202210950965 A CN 202210950965A CN 115311860 A CN115311860 A CN 115311860A
- Authority
- CN
- China
- Prior art keywords
- traffic flow
- road side
- side unit
- round
- nth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0125—Traffic data processing
- G08G1/0129—Traffic data processing for creating historical data or processing based on historical data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0108—Measuring and analyzing of parameters relative to traffic conditions based on the source of data
- G08G1/0116—Measuring and analyzing of parameters relative to traffic conditions based on the source of data from roadside infrastructure, e.g. beacons
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0137—Measuring and analyzing of parameters relative to traffic conditions for specific applications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/065—Traffic control systems for road vehicles by counting the vehicles in a section of the road or in a parking area, i.e. comparing incoming count with outgoing count
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Analytical Chemistry (AREA)
- Economics (AREA)
- Chemical & Material Sciences (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Software Systems (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Development Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Operations Research (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及机器学习领域,具体来说,涉及机器学习领域中的联邦学习领域,更具体地说,涉及一种交通流量预测模型的在线联邦学习方法。The present invention relates to the field of machine learning, in particular to the field of federated learning in the field of machine learning, and more specifically to an online federated learning method for a traffic flow prediction model.
背景技术Background technique
随着社会经济的蓬勃发展,全国汽车数量的日益增加,居民用车出行面临着越来越多的交通问题,尤其是随着人民生活水平的提高,私家车的数量越来越多,如何为司机们提供路径规划,避免交通堵塞,以减少通勤时间成为了亟待解决的问题,路径规划离不开交通流量的精准预测,因此,做好对交通流量的预测有利于为司机提供合理的路径规划以及缓解道路交通堵塞的情况。With the vigorous development of the social economy and the increasing number of cars in the country, residents are facing more and more traffic problems when traveling by car. Especially with the improvement of people's living standards, the number of private cars is increasing. How to solve the problem? Drivers provide route planning to avoid traffic jams and reduce commuting time has become an urgent problem to be solved. Route planning is inseparable from accurate traffic flow forecasting. Therefore, good traffic flow forecasting is conducive to providing drivers with reasonable route planning. and ease road traffic congestion.
现有技术中预测交通流量的方法主要包括非参数化的方法和参数化的方法,其中,非参数化的方法主要是指KNN(K-Nearest Neighbour,K-最近邻)、SVM(Support VectorMechnism,支持向量机)、NN(Neural Network,神经网络)等机器学习方法,参数化的方法主要是指ARIMA(Autoregressive Integrated Moving Average model,整合移动平均自回归模型)方法及其相关变式,而这两种方法在具体处理的过程中都会将交通控制系统中所有路侧单元(RSU,Roadside Unit)采集的原始交通流量数据上传至云服务器。其中,在参数化的方法中,原始交通流量被假设为平稳分布的状态,但这样会导致该方法预测的交通流量不能够反应出非线性变化的实际的交通流量,因此,该方法在实际交通控制系统中的应用效果不好。客观来说,这两种方法虽然在一定程度上提高了对未来时刻交通流量预测的精度,但是在实际的交通控制系统中,因为所有路侧单元都需要将其海量的原始交通流量数据上传至云服务器进行处理,所以在将所述原始交通流量数据上传至服务器的过程中,会存在网络拥塞,传输延迟以及不能满足交通流量预测的实时性要求等问题,而且,由于路侧单元所采集的交通流量数据中可能包含车牌号、乘客肖像等隐私信息,所以当直接将交通流量数据上传至云服务器进行处理时,还存在泄露用户隐私信息的风险。The methods for predicting traffic flow in the prior art mainly include non-parametric methods and parametric methods, wherein the non-parametric methods mainly refer to KNN (K-Nearest Neighbor, K-Nearest Neighbor), SVM (Support Vector Mechnism, Support vector machine), NN (Neural Network, neural network) and other machine learning methods, the parameterization method mainly refers to the ARIMA (Autoregressive Integrated Moving Average model, integrated moving average autoregressive model) method and its related variants, and these two In the specific processing process of this method, the original traffic flow data collected by all roadside units (RSU, Roadside Unit) in the traffic control system will be uploaded to the cloud server. Among them, in the parametric method, the original traffic flow is assumed to be in a state of stationary distribution, but this will cause the traffic flow predicted by the method to be unable to reflect the actual traffic flow of nonlinear changes. The application in the control system does not work well. Objectively speaking, although these two methods have improved the accuracy of traffic flow prediction in the future to a certain extent, in the actual traffic control system, because all roadside units need to upload their massive original traffic flow data to cloud server for processing, so in the process of uploading the original traffic flow data to the server, there will be problems such as network congestion, transmission delay and the inability to meet the real-time requirements of traffic flow forecasting, and because the data collected by the roadside unit Traffic flow data may contain private information such as license plate numbers and passenger portraits, so when the traffic flow data is directly uploaded to the cloud server for processing, there is still a risk of leaking user privacy information.
最新的一种方法是基于联邦学习架构来预测未来时刻的交通流量,在联邦学习架构中,各路侧单元在服务器的协同下进行多轮联邦学习以训练一个整体的交通流量预测模型,在每轮联邦学习中,每个路侧单元分别将其原始交通流量数据保存在本地以训练每个路侧单元对应的交通流量预测模型,并以一定频次向服务器上传训练后的交通流量预测模型的参数,服务器将所有路侧单元的交通流量预测模型的参数进行融合,然后将融合后的交通流量预测模型分发给相应的路侧单元以作为下一轮联邦学习的初始训练模型。虽然这种方法利用仅向服务器传输交通流量预测模型的参数的方式,保护了用户隐私,降低了网络负载,但是这种方法采用的是离线方式训练交通流量预测模型,即当交通流量预测模型的测试集数据和训练集数据存在异构性时会导致已经训练好的交通流量预测模型不一定适用于测试数据,所以在这种情况下,离线训练的交通流量预测模型存在被重新训练的风险,被重新训练会极大浪费计算资源。The latest method is to predict the traffic flow in the future based on the federated learning architecture. In the federated learning architecture, each roadside unit performs multiple rounds of federated learning under the cooperation of the server to train an overall traffic flow prediction model. In one round of federated learning, each roadside unit saves its original traffic flow data locally to train the traffic flow prediction model corresponding to each roadside unit, and uploads the parameters of the trained traffic flow prediction model to the server at a certain frequency , the server fuses the parameters of the traffic flow prediction models of all roadside units, and then distributes the fused traffic flow prediction models to corresponding roadside units as the initial training model for the next round of federated learning. Although this method protects user privacy and reduces network load by only transmitting the parameters of the traffic flow prediction model to the server, this method uses an offline method to train the traffic flow prediction model, that is, when the traffic flow prediction model When there is heterogeneity between the test set data and the training set data, the trained traffic flow prediction model may not be suitable for the test data. Therefore, in this case, the offline trained traffic flow prediction model has the risk of being retrained. Being retrained would be a huge waste of computing resources.
发明内容Contents of the invention
因此,本发明的目的在于克服上述现有技术的缺陷,提供一种能够满足实时性要求的交通流量预测模型的在线联邦学习方法。Therefore, the object of the present invention is to overcome the defects of the above-mentioned prior art, and provide an online federated learning method of a traffic flow prediction model that can meet real-time requirements.
本发明的目的是通过以下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:
根据本发明的第一方面,提供一种用于交通控制系统的交通流量预测模型的在线联邦学习方法,所述交通控制系统包括服务器和多个路侧单元,其中,每个路侧单元中配置有一个编解码结构的交通流量预测模型,所述方法包括对所有路侧单元的交通流量预测模型进行多轮联邦学习直至满足最大轮数约束条件,其中,每轮联邦学习包括:D1、对每个路侧单元的交通流量预测模型进行预设次数的更新,其中,每次更新包括:D11、获取当前路侧单元所在道路中的待预测交通流量序列作为当前路侧单元的交通流量预测模型的编码输入以获得当前路侧单元的编码隐藏状态;D12、服务器根据步骤D11中获得的当前路侧单元的编码隐藏状态以及当前路侧单元与其他路侧单元之间的空间关系更新当前路侧单元的编码隐藏状态,并将更新后的编码隐藏状态作为当前路侧单元的交通流量预测模型的解码输入以获得所述待预测交通流量序列对应的预测交通流量;D13、根据所述待预测交通流量序列对应的实际交通流量和步骤D12中获得的预测交通流量之间的损失更新当前路侧单元的交通流量预测模型的参数;D2、服务器将所有路侧单元的交通流量预测模型的参数进行融合以获得融合后的模型;D3、将融合后的模型参数下发至每个路侧单元以更新每个路侧单元的模型参数。According to a first aspect of the present invention, there is provided an online federated learning method for a traffic flow prediction model of a traffic control system, the traffic control system includes a server and a plurality of roadside units, wherein each roadside unit is configured with There is a traffic flow prediction model with codec structure, the method includes performing multiple rounds of federated learning on the traffic flow prediction models of all roadside units until the maximum number of rounds is satisfied, wherein each round of federated learning includes: D1, for each The traffic flow prediction model of a roadside unit is updated for a preset number of times, wherein each update includes: D11. Acquiring the traffic flow sequence to be predicted in the road where the current roadside unit is located as the traffic flow prediction model of the current roadside unit Coding input to obtain the coding hidden state of the current roadside unit; D12, the server updates the current roadside unit according to the coding hidden state of the current roadside unit obtained in step D11 and the spatial relationship between the current roadside unit and other roadside units coding hidden state, and use the updated coding hidden state as the decoding input of the traffic flow prediction model of the current roadside unit to obtain the predicted traffic flow corresponding to the traffic flow sequence to be predicted; D13, according to the traffic flow to be predicted The loss between the actual traffic flow corresponding to the sequence and the predicted traffic flow obtained in step D12 updates the parameters of the traffic flow forecasting model of the current roadside unit; D2, the server fuses the parameters of the traffic flow forecasting model of all roadside units to Obtain the fused model; D3. Send the fused model parameters to each roadside unit to update the model parameters of each roadside unit.
在本发明的一些实施例中,在所述步骤D12中,通过如下方式确定当前路侧单元与其他路侧单元之间的空间关系:基于当前路侧单元与其他路侧单元之间的地理位置,判断当前路侧单元与其他路侧单元之间是否具有邻接性,其中,所有与当前路侧单元邻接的路侧单元组成当前路侧单元的邻接集合;基于当前路侧单元的编码隐藏状态,计算当前路侧单元的邻接集合中每个路侧单元与当前路侧单元之间的关联程度;基于邻接集合中每个路侧单元与当前路侧单元之间的关联程度,计算当前路侧单元与其邻接集合中每个路侧单元之间的权重关系。In some embodiments of the present invention, in the step D12, the spatial relationship between the current roadside unit and other roadside units is determined in the following manner: based on the geographic location between the current roadside unit and other roadside units , to determine whether there is adjacency between the current RSU and other RSUs, wherein all RSUs adjacent to the current RSU form the adjacency set of the current RSU; based on the coding hidden state of the current RSU, Calculate the degree of association between each roadside unit in the adjacency set of the current roadside unit and the current roadside unit; based on the degree of association between each roadside unit in the adjacency set and the current roadside unit, calculate the current roadside unit The weight relationship between each roadside unit in its adjacency set.
在本发明的一些实施例中,按照如下方式判断当前路侧单元与其他路侧单元之间是否具有邻接性:In some embodiments of the present invention, whether there is adjacency between the current roadside unit and other roadside units is judged as follows:
其中,sn、sx分别表示第n个路侧单元和第x个路侧单元,dist(sn,sx)表示sn和sx之间的距离,ε、τ2为两个控制关联程度的超参数,ex,n=1表示第n个路侧单元和第x个路侧单元存在邻接性,ex,n=0表示第n个路侧单元和第x个路侧单元不存在邻接性,otherwise表示否则,exp表示以自然常数e为底的指数函数。Among them, s n , s x represent the nth roadside unit and the xth roadside unit respectively, dist(s n , s x ) represents the distance between s n and s x , ε, τ 2 are two control The hyperparameter of the degree of association, ex , n = 1 means that there is adjacency between the nth roadside unit and the xth roadside unit, e x, n = 0 means that the nth roadside unit and the xth roadside unit There is no adjacency, otherwise means otherwise, and exp means an exponential function with the natural constant e as the base.
在本发明的一些实施例中,按照如下方式计算当前路侧单元与其邻接集合中每个路侧单元之间的权重关系:In some embodiments of the present invention, the weight relationship between the current roadside unit and each roadside unit in its adjacency set is calculated as follows:
其中,表示在第t轮联邦学习中第n个路侧单元与其邻接集合中第m个路侧单元之间的权重关系,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,表示和之间的权重,Nn表示第n个路侧单元的邻接集合,i表示Nn中第i个路侧单元,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第i个路侧单元之间的关联程度,表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第i个路侧单元之间的关联程度,exp表示以自然常数e为底的指数函数。in, Indicates the weight relationship between the nth roadside unit and the mth roadside unit in the adjacency set in the t-th round of federated learning, Indicates the degree of association between the n-th RSU and the m-th RSU in its adjacency set calculated by graph attention network in round t of federated learning, Indicates the degree of association between the nth roadside unit and the mth roadside unit in the adjacency set calculated by the information geometry method in the t-round federated learning, express and The weight between , N n represents the adjacency set of the nth roadside unit, i represents the i-th roadside unit in N n , Indicates the degree of association between the n-th RSU and the i-th RSU in its adjacency set calculated by the graph attention network in the t-round federated learning, Indicates the degree of correlation between the nth roadside unit and the ith roadside unit in the adjacency set calculated by the information geometry method in the t-round federated learning, and exp represents the exponential function with the natural constant e as the base.
在本发明的一些实施例中,在所述步骤D12中,服务器按照如下方式更新当前路侧单元的交通流量预测模型的编码隐藏状态:In some embodiments of the present invention, in the step D12, the server updates the encoding hidden state of the traffic flow prediction model of the current roadside unit as follows:
其中,h′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的编码隐藏状态,Nn表示第n个路侧单元的邻接集合,sm表示Nn中第m个路侧单元,ht,m表示在第t轮联邦学习中sm的交通流量预测模型的编码隐藏状态,表示在第t轮联邦学习中第n个路侧单元与其邻接集合中第m个路侧单元之间的权重关系,sigmoid(·)表示激活函数。Among them, h′ t, n represents the coded hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, N n represents the adjacency set of the nth roadside unit, and s m represents the N The m-th roadside unit in n , h t, m represents the encoding hidden state of the traffic flow prediction model of s m in the t-th round of federated learning, Indicates the weight relationship between the nth roadside unit and the mth roadside unit in the adjacency set in the t-th round of federated learning, and sigmoid(·) represents the activation function.
在本发明的一些实施例中,在所述步骤D13中,按照如下方式计算当前路侧单元的待预测交通流量序列对应的实际交通流量和当前路侧单元的待预测交通流量序列对应的预测交通流量之间的损失:In some embodiments of the present invention, in the step D13, the actual traffic flow corresponding to the traffic flow sequence to be predicted by the current roadside unit and the predicted traffic corresponding to the traffic flow sequence to be predicted by the current roadside unit are calculated as follows Loss between flows:
lt,n(wt,n)=lt,n(yt,n,y′t,n;wt,n)l t, n (w t, n ) = l t, n (y t, n , y′ t, n ; w t, n )
其中,lt,n(·)表示在第t轮联邦学习中第n个路侧单元的损失函数,wt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的参数,yt,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列对应的实际交通流量,y′t,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列对应的预测交通流量。Among them, l t, n (·) represents the loss function of the nth roadside unit in the t-round federated learning, w t, n represents the traffic flow prediction model of the nth roadside unit in the t-round federated learning , y t, n represents the actual traffic flow corresponding to the traffic flow sequence of the nth roadside unit to be predicted in the t-round federated learning, y′ t, n represents the n-th road in the t-round federated learning The predicted traffic flow corresponding to the to-be-predicted traffic flow sequence of the side unit.
在本发明的一些实施例中,在所述步骤D13中,按照如下方式更新当前路侧单元的交通流量预测模型的参数:In some embodiments of the present invention, in the step D13, the parameters of the traffic flow prediction model of the current roadside unit are updated as follows:
其中,w′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数,wt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新前的参数,lt,n表示在第t轮联邦学习中第n个路侧单元的损失函数,η表示学习率。Among them, w′ t, n represents the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-round federated learning, w t, n represents the parameter of the nth roadside unit in the t-round federated learning The parameters of the traffic flow forecasting model before updating, l t, n represents the loss function of the nth roadside unit in the t-round federated learning, and η represents the learning rate.
在本发明的一些实施例中,在所述步骤D2中,按照如下方式进行模型融合:In some embodiments of the present invention, in the step D2, model fusion is performed as follows:
当前轮数小于所述周期长度时,通过如下方式获得融合后的模型:When the number of current rounds is less than the cycle length, the fused model is obtained as follows:
其中,wt表示在第t轮联邦学习中融合后的模型参数,N表示所有路侧单元的数量,w′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数;或者Among them, w t represents the fused model parameters in the t-round federated learning, N represents the number of all roadside units, w′ t, n represents the traffic flow forecast of the nth roadside unit in the t-round federated learning the updated parameters of the model; or
当前轮数大于所述周期长度时,通过如下方式获得融合后的模型:When the number of current rounds is greater than the cycle length, the fused model is obtained as follows:
其中,wt表示在第t轮联邦学习中融合后的模型参数,T表示周期长度,w′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数,αt-T,n表示在第t-T轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数在融合后的模型中的权重。Among them, w t represents the fused model parameters in the t-th round of federated learning, T represents the cycle length, w′ t, n represents the updated traffic flow prediction model of the nth roadside unit in the t-th round of federated learning The parameter, α tT, n represents the weight of the updated parameters of the traffic flow prediction model of the nth roadside unit in the fused model in the tT round of federated learning.
根据本发明的第二方面,提供一种用于预测交通流量的系统,所述系统包括:多个路侧模块,其中,每个路侧模块包括:路侧单元,用于获取其所在道路中的待预测交通流量序列;根据本发明的第一方面所述方法训练的交通流量预测模型,用于基于其所在路侧单元获取的待预测交通流量序列预测对应的预测交通流量。According to a second aspect of the present invention, there is provided a system for predicting traffic flow, the system comprising: a plurality of roadside modules, wherein each roadside module comprises: a roadside unit for obtaining information on the road where it is located The traffic flow sequence to be predicted; the traffic flow prediction model trained according to the method described in the first aspect of the present invention is used to predict the corresponding predicted traffic flow based on the traffic flow sequence to be predicted acquired by the roadside unit where it is located.
根据本发明的第三方面,提供一种交通路径规划方法,所述方法包括:T1、获取用户起始地和目的地之间的所有道路;T2、采用如权利要求1-9任一所述方法训练的交通流量预测模型,预测起始地和目的地之间每条道路的交通流量;T3、基于预测的交通流量为用户规划出发地和目的地之间的最优路径,所述最优路径是指出发地和目的地之间拥堵程度最低的一条路径。According to a third aspect of the present invention, a traffic route planning method is provided, the method comprising: T1, obtaining all roads between the user's origin and destination; T2, adopting any one of claims 1-9 The traffic flow prediction model trained by the method predicts the traffic flow of each road between the starting point and the destination; T3, based on the predicted traffic flow, plans the optimal path between the starting point and the destination for the user, and the optimal A path is a path with the least congestion between the origin and the destination.
与现有技术相比,本发明的优点在于:Compared with the prior art, the present invention has the advantages of:
1、本发明针对现有技术中的联邦学习方法在预测交通流量时不能满足实时性要求问题,提出了一种在线联邦学习的方法来训练交通流量预测模型,其通过实时获取路侧单元的交通流量数据、实时更新路侧单元的交通流量预测模型的编码隐藏状态,实时更新路侧单元的交通流量预测模型的方式满足了实际交通环境中高实时性的要求。1. The present invention aims at the problem that the federated learning method in the prior art cannot meet the real-time requirements when predicting traffic flow, and proposes an online federated learning method to train the traffic flow prediction model, which obtains the traffic flow of roadside units in real time Flow data, real-time update of the encoding hidden state of the roadside unit's traffic flow prediction model, and the way of real-time update of the roadside unit's traffic flow prediction model meet the high real-time requirements in the actual traffic environment.
2、本发明针对现有技术中的联邦学习方法在聚合全局模型时收敛速度慢的问题,通过利用不同路侧单元之间的空间相关性以及同一路侧单元不同时刻交通流量信息的时间相关性,以自适应聚合全局模型,提高了收敛速度。2. The present invention aims at the slow convergence speed of the federated learning method in the prior art when aggregating the global model, by utilizing the spatial correlation between different roadside units and the temporal correlation of traffic flow information of the same roadside unit at different times , to adaptively aggregate the global model, improving the convergence speed.
附图说明Description of drawings
以下参照附图对本发明实施例作进一步说明,其中:Embodiments of the present invention will be further described below with reference to the accompanying drawings, wherein:
图1为根据本发明实施例的交通控制系统图;Fig. 1 is a traffic control system diagram according to an embodiment of the present invention;
图2为根据本发明实施例的每轮联邦学习中预测每个路侧单元的待预测交通流量数据的示例图;2 is an example diagram of predicting traffic flow data to be predicted for each roadside unit in each round of federated learning according to an embodiment of the present invention;
图3为根据本发明实施例的每轮联邦学习中更新每个路侧单元的交通流量预测模型的流程图。Fig. 3 is a flow chart of updating the traffic flow prediction model of each roadside unit in each round of federated learning according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的,技术方案及优点更加清楚明白,以下通过具体实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail through specific examples below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
如背景技术中提到的,现有技术的联邦学习方法在预测交通流量时存在不适用于实时交通环境,面临模型被重新训练的风险以及浪费计算资源等问题,为了解决现有技术中的这些问题,本发明提出了一种在线联邦学习的方案来训练交通流量预测模型,以使训练后的模型能够满足交通流量预测的实时性要求。As mentioned in the background technology, the federated learning method of the prior art is not suitable for the real-time traffic environment when predicting traffic flow, faces the risk of model retraining and wastes computing resources, etc., in order to solve these problems in the prior art Problem, the present invention proposes an online federated learning solution to train the traffic flow prediction model, so that the trained model can meet the real-time requirements of traffic flow prediction.
为了更好的理解本发明,首先介绍一下交通控制系统的基本结构。如图1所示,交通控制系统包括一个服务器和多个路侧单元,其中,S1、S2、S3表示路侧单元,Y表示服务器,所述路侧单元位于道路两侧,用于实时采集其所在道路的交通流量数据,且每个路侧单元S1、S2、S3中配置有一个编解码结构的交通流量预测模型。根据本发明的一个实施例,本发明的交通流量预测模型采用GRU(Gated Recurrent Unit,门控循环单元)模型,需要注意的是,本发明训练交通流量预测模型的方法不仅限于训练具有编解码结构的GRU模型,还可以训练同样具有编解码结构的其他模型,如LSTM(Long Short Term Memory,长短期记忆)模型、Transformer模型等。现有技术对路侧单元中的交通流量预测模型是采用离线联邦学习的方式进行训练,存在不能够满足实时性要求、面临模型被重新训练的风险以及浪费计算资源等问题,而本发明则是采用在线联邦学习的方式训练交通流量预测模型。In order to better understand the present invention, first introduce the basic structure of the traffic control system. As shown in Figure 1, the traffic control system includes a server and multiple roadside units, wherein S1, S2, and S3 represent roadside units, and Y represents a server. The traffic flow data of the road where it is located, and each roadside unit S1, S2, S3 is configured with a traffic flow prediction model with codec structure. According to an embodiment of the present invention, the traffic flow forecasting model of the present invention adopts GRU (Gated Recurrent Unit, gated recurrent unit) model, it should be noted that the method for training the traffic flow forecasting model of the present invention is not limited to training The GRU model can also train other models that also have a codec structure, such as LSTM (Long Short Term Memory, long short-term memory) model, Transformer model, etc. In the prior art, the traffic flow prediction model in the roadside unit is trained by offline federated learning, which has problems such as not being able to meet real-time requirements, facing the risk of model retraining, and wasting computing resources. However, the present invention is The traffic flow prediction model is trained by online federated learning.
下面结合附图及实施例详细说明本发明对交通流量预测模型的在线训练过程。The online training process of the traffic flow prediction model of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.
首先,概括介绍一下本发明的主要技术思路。鉴于现有技术下的联邦学习方法在交通流量预测中存在的问题,本发明采用在线联邦学习的方式对交通控制系统中所有路侧单元的交通流量预测模型进行多轮联邦学习直至满足最大轮数约束条件,在每轮联邦学习中,每个路侧单元对其自身的交通流量进行编码获得隐藏状态,然后每个路侧单元分别将其交通流量预测模型的编码隐藏状态传输至服务器,并由服务器基于路侧单元之间的空间关系更新每个路侧单元对应的编码隐藏状态,此后服务器将更新后的编码隐藏状态分发给相应的路侧单元进行解码计算以获得相应路侧单元的交通流量预测的结果,基于每个路侧单元对应的交通流量预测的结果与实际交通流量之间的损失更新对应的交通流量预测模型,在每个路侧单元完成交通流量预测模型更新后,将所有路侧单元更新后的交通流量预测模型的参数传输至服务器,由服务器执行动态加权聚合,并将聚合后的模型参数分发给每个路侧单元以更新每个路侧单元的交通流量预测模型。Firstly, the main technical idea of the present invention is briefly introduced. In view of the existing problems in the traffic flow prediction of the federated learning method in the prior art, the present invention uses online federated learning to perform multiple rounds of federated learning on the traffic flow prediction models of all roadside units in the traffic control system until the maximum number of rounds is met. Constraints, in each round of federated learning, each roadside unit encodes its own traffic flow to obtain the hidden state, and then each roadside unit transmits the encoded hidden state of its traffic flow prediction model to the server, and is determined by The server updates the coded hidden state corresponding to each roadside unit based on the spatial relationship between the roadside units, and then the server distributes the updated coded hidden state to the corresponding roadside unit for decoding calculation to obtain the traffic flow of the corresponding roadside unit Based on the predicted results of each roadside unit, the corresponding traffic flow forecasting model is updated based on the loss between the traffic flow forecasting result corresponding to each roadside unit and the actual traffic flow. After each roadside unit completes the traffic flow forecasting model update, all roadside units The parameters of the traffic flow prediction model updated by the side unit are transmitted to the server, and the server performs dynamic weighted aggregation, and distributes the aggregated model parameters to each roadside unit to update the traffic flow prediction model of each roadside unit.
为了更好的理解本发明,下面将通过一个示例来说明每轮联邦学习的原理。如图2所示,展示了交通控制系统中一个服务器和三个路侧单元(S1、S2、S3)的示例场景,其中,每个路侧单元配置有一个具有编码器-解码器结构的GRU模型。由于在每轮联邦学习中每个路侧单元执行相同的步骤,为了描述方便,以下仅以路侧单元S1来介绍相关流程,首先,路侧单元S1将其待预测的交通流量序列作为GRU模型的编码器输入以进行编码计算,由编码器输出GRU模型的编码隐藏状态,并将GRU模型的编码隐藏状态传输至服务器。接下来,服务器基于路侧单元S1与其他路侧单元之间的空间关系更新GRU模型的编码隐藏状态,并将更新后的编码隐藏状态发送给路侧单元S1的GRU模型的解码器进行解码计算以获得路侧单元S1的待预测的交通流量序列对应的预测交通流量。最后,基于路侧单元S1对应的交通流量预测的结果与实际交通流量之间的损失更新GRU模型。对于本领域普通技术人员来说,现有技术中编码器-解码器的工作原理通常是将编码器隐含层状态向量直接作为解码器的输入,而本发明则是将编码器的隐含层状态向量传输至服务器进行更新,并将服务器更新后的隐含层状态向量发送给解码器进行解码,达到联邦在线学习的目的。In order to better understand the present invention, an example will be used below to illustrate the principle of each round of federated learning. As shown in Figure 2, an example scenario of one server and three RSUs (S1, S2, S3) in a traffic control system is shown, where each RSU is configured with a GRU with an encoder-decoder structure Model. Since each roadside unit performs the same steps in each round of federated learning, for the convenience of description, only the roadside unit S1 is used to introduce the relevant process below. First, the roadside unit S1 uses its traffic flow sequence to be predicted as a GRU model The encoder input for encoding calculation, the encoder outputs the encoded hidden state of the GRU model, and transmits the encoded hidden state of the GRU model to the server. Next, the server updates the encoding hidden state of the GRU model based on the spatial relationship between RSU S1 and other RSUs, and sends the updated encoding hidden state to the decoder of the GRU model of RSU S1 for decoding calculation The predicted traffic flow corresponding to the traffic flow sequence to be predicted of the roadside unit S1 is obtained. Finally, the GRU model is updated based on the loss between the predicted traffic flow corresponding to the roadside unit S1 and the actual traffic flow. For those of ordinary skill in the art, the working principle of the encoder-decoder in the prior art is usually to directly use the hidden layer state vector of the encoder as the input of the decoder, while the present invention uses the hidden layer state vector of the encoder The state vector is transmitted to the server for updating, and the server's updated hidden layer state vector is sent to the decoder for decoding, so as to achieve the purpose of federated online learning.
根据本发明的一个实施例,如图3所示,每轮联邦学习中更新路侧单元的交通流量预测模型的步骤包括以下几个阶段:获取路侧单元的编码隐藏状态、服务器更新编码隐藏状态、计算交通流量预测结果、更新交通流量预测模型、服务器聚合所有交通流量预测模型。下面按照图3的流程分五个方面结合实施例分别介绍每轮联邦学习中各个阶段的实现过程。其中,以第t轮联邦学习、交通控制系统包括N个路侧单元为例进行展开说明,t、N表示大于零的自然数。According to one embodiment of the present invention, as shown in Figure 3, the step of updating the traffic flow prediction model of the roadside unit in each round of federated learning includes the following stages: obtaining the coding hidden state of the roadside unit, updating the coding hidden state of the server 1. Calculating traffic flow forecasting results, updating traffic flow forecasting models, and server aggregation of all traffic flow forecasting models. The implementation process of each stage in each round of federated learning will be introduced respectively in five aspects according to the process of FIG. 3 and combined with embodiments. Among them, the t-th round of federated learning and the traffic control system including N roadside units are taken as an example to expand the description, and t and N represent natural numbers greater than zero.
一、获取路侧单元的编码隐藏状态1. Obtain the coding hidden state of the roadside unit
交通控制系统中的N个路侧单元以S={s1,s2,...sn,...,sN}表示,其中,S表示所有路侧单元的集合,N表示大于零的自然数,Sn表示第n个路侧单元,n大于等于1小于等于N。针对每个路侧单元,本发明获取该路侧单元所在道路中的待预测交通流量序列,并将所述待预测交通流量序列作为该路侧单元的交通流量预测模型的编码器的输入进行编码以获得该路侧单元的交通流量预测模型的编码隐藏状态。优选的,本发明按照如下方式获得该路侧单元的交通流量预测模型的编码隐藏状态:N roadside units in the traffic control system are represented by S={s 1 , s 2 ,...s n ,...,s N }, where S represents the set of all roadside units, and N represents greater than zero A natural number of , Sn represents the nth roadside unit, and n is greater than or equal to 1 and less than or equal to N. For each roadside unit, the present invention obtains the traffic flow sequence to be predicted in the road where the roadside unit is located, and encodes the traffic flow sequence to be predicted as the input of the encoder of the traffic flow prediction model of the roadside unit To obtain the encoded hidden state of the roadside unit's traffic flow prediction model. Preferably, the present invention obtains the encoding hidden state of the traffic flow prediction model of the roadside unit as follows:
ht,n=ft,n,e(xt,n;wt,n,e)h t, n = f t, n, e (x t, n ; w t, n, e )
其中,ht,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态,xt,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列,ft,n,e(·)表示在第t轮联邦学习中第n个路侧单元的编码器模型函数,wt,n,e表示第t轮联邦学习中第n个路侧单元的编码器模型参数。Among them, h t, n represents the coding hidden state of the traffic flow prediction model of the nth roadside unit in the t-round federated learning, x t, n represents the waiting time of the nth roadside unit in the t-round federated learning Forecast traffic flow sequence, f t, n, e ( ) represents the encoder model function of the nth roadside unit in the t-round federated learning, w t, n, e represents the n-th roadside unit in the t-round federated learning Encoder model parameters of the RSU.
二、服务器更新编码隐藏状态2. The server updates the code hidden state
利用上述方法,本发明获取所有路侧单元的交通流量预测模型的编码隐藏状态,并将其传输至服务器,由服务器计算每个路侧单元与其他路侧单元之间的空间关系并基于所述空间关系更新每个路侧单元的交通流量预测模型的编码隐藏状态。需要指出的是,此处的空间关系在其一系列的计算过程中最后为一种权重关系,即每个路侧单元与其他路侧单元之间的权重关系。优选的,本发明按照如下方式计算每个路侧单元与其他路侧单元之间的权重关系:Using the above method, the present invention obtains the coding hidden states of the traffic flow prediction models of all roadside units, and transmits them to the server, and the server calculates the spatial relationship between each roadside unit and other roadside units and based on the Spatial relationships update the encoded hidden state of the traffic flow prediction model for each roadside unit. It should be pointed out that the spatial relationship here is finally a weight relationship in a series of calculation processes, that is, the weight relationship between each roadside unit and other roadside units. Preferably, the present invention calculates the weight relationship between each roadside unit and other roadside units as follows:
其中,表示在第t轮联邦学习中第n个路侧单元与其邻接集合中第m个路侧单元之间的权重关系,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,Nn表示第n个路侧单元的邻接集合,i表示Nn中第i个路侧单元,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第i个路侧单元之间的关联程度,表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第i个路侧单元之间的关联程度,exp表示以自然常数e为底的指数函数,表示和之间的权重,其值为0.5。需要说明的是,此处的值不仅限于0.5,可以根据实际交通流量预测的场景设置,本发明不做具体限定。in, Indicates the weight relationship between the nth roadside unit and the mth roadside unit in the adjacency set in the t-th round of federated learning, Indicates the degree of association between the n-th RSU and the m-th RSU in its adjacency set calculated by graph attention network in round t of federated learning, Indicates the degree of association between the nth roadside unit and the mth roadside unit in the adjacency set calculated by the information geometry method in the t-round federated learning, N n denotes the adjacency set of the nth roadside unit, i Indicates the i-th roadside unit in N n , Indicates the degree of association between the n-th RSU and the i-th RSU in its adjacency set calculated by the graph attention network in the t-round federated learning, Indicates the degree of association between the nth roadside unit and the i-th roadside unit in the adjacent set calculated by information geometry in the t-round federated learning, exp represents the exponential function with the natural constant e as the base, express and Between the weights, its value is 0.5. It should be noted that here The value of is not limited to 0.5, and can be set according to the scene of actual traffic flow prediction, which is not specifically limited in the present invention.
在上述的计算公式中,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,需要指出的是,此处的第n个路侧单元泛指任一路侧单元,根据本发明的一个实施例,本发明通过执行步骤A1-A3来计算下面详细说明的计算过程:in the above In the calculation formula, Indicates the degree of association between the nth roadside unit and the mth roadside unit in the adjacency set calculated by using the graph attention network in the t-th round of federated learning. It should be pointed out that the nth roadside unit here Generally refers to any roadside unit, according to an embodiment of the present invention, the present invention calculates by performing steps A1-A3 Details below The calculation process:
A1、基于当前路侧单元与其他路侧单元之间的地理位置,判断当前路侧单元与其他路侧单元之间是否具有邻接性,所有与当前路侧单元邻接的其他路侧单元组成当前路侧单元的邻接集合,具体来说,本发明按照如下方式判断当前路侧单元与其他路侧单元之间是否具有邻接性:A1. Based on the geographical location between the current roadside unit and other roadside units, judge whether there is adjacency between the current roadside unit and other roadside units, and all other roadside units adjacent to the current roadside unit form the current roadside unit. The adjacency set of side units, specifically, the present invention judges whether there is adjacency between the current roadside unit and other roadside units in the following manner:
其中,sn、sx分别表示第n个路侧单元和第x个路侧单元,dist(sn,sx)表示sn和sx之间的距离,ex,n=1表示第n个路侧单元和第x个路侧单元存在邻接性,ex,n=0表示第n个路侧单元和第x个路侧单元不存在邻接性,otherwise表示否则,exp表示以自然常数e为底的指数函数,ε、τ2为两个控制关联程度的超参数,其值分别为0.5和10。需要说明的是,此处ε、τ2的值不仅限于0.5、10,可以根据实际交通流量预测的场景设置,本发明不做具体限定;Among them, s n , s x represent the nth roadside unit and the xth roadside unit respectively, dist(s n , s x ) represents the distance between s n and s x , ex , n = 1 represents the There is adjacency between the nth roadside unit and the xth roadside unit, e x, n = 0 means that there is no adjacency between the nth roadside unit and the xth roadside unit, otherwise means otherwise, and exp means the natural constant The exponential function with base e, ε and τ2 are two hyperparameters controlling the degree of association, and their values are 0.5 and 10, respectively. It should be noted that the values of ε and τ2 here are not limited to 0.5 and 10 , and can be set according to the scene of actual traffic flow prediction, which is not specifically limited in the present invention;
A2、基于步骤A1中获得的当前路侧单元的邻接集合,按照如下方式计算当前路侧单元对应的编码隐藏状态与其邻接集合中其他路侧单元对应的编码隐藏状态之间的关联性:A2. Based on the adjacency set of the current RSU obtained in step A1, calculate the correlation between the coding hidden states corresponding to the current RSU and the coding hidden states corresponding to other RSUs in the adjacency set as follows:
其中,用于衡量ht,n和ht,m之间的关联性,ht,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态,ht,m表示在第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态,sm表示第n个路侧单元的邻接集合中第m个路侧单元,W表示增强隐藏状态特征的矩阵,Nn表示第n个路侧单元的邻接集合,[·||·]表示矩阵的拼接操作,a(·)表示映射函数,其用于将拼接后的矩阵映射为一个常数;in, Used to measure the correlation between h t,n and h t,m , h t,n represents the encoded hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, h t,m Indicates the coding hidden state of the traffic flow prediction model of the mth roadside unit in the adjacency set of the nth roadside unit in the t-round federated learning, s m represents the mth one in the adjacency set of the nth roadside unit Roadside unit, W represents the matrix of enhanced hidden state features, N n represents the adjacency set of the nth roadside unit, [·||·] represents the splicing operation of the matrix, a(·) represents the mapping function, which is used to The spliced matrix is mapped to a constant;
A3、基于步骤A2中获得的关联性本发明采用图注意网络计算当前路侧单元与其邻接集合中其他路侧单元之间的关联程度,具体来说,采用图注意网络计算所述关联程度的公式为:A3. Based on the relevance obtained in step A2 In the present invention, the graph attention network is used to calculate the degree of association between the current roadside unit and other roadside units in its adjacency set. Specifically, the formula for calculating the degree of association using the graph attention network is:
其中,表示在第t轮联邦学习中采用图注意网络计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,Nn表示第n个路侧单元的邻接集合,i表示Nn中第i个路侧单元,表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态与Nn中第m个路侧单元的交通流量预测模型的编码隐藏状态之间的关联性,表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态与Nn中第i个路侧单元的交通流量预测模型的编码隐藏状态之间的关联性,exp表示以自然常数e为底的指数函数,LeakyReLU(·)表示激活函数。in, Indicates the degree of association between the n-th roadside unit and the m-th roadside unit in the adjacency set calculated by the graph attention network in the t-round federated learning, N n denotes the adjacency set of the n-th roadside unit, i Indicates the i-th roadside unit in N n , Indicates the correlation between the encoding hidden state of the traffic flow prediction model of the nth roadside unit in the t-round federated learning and the encoding hidden state of the traffic flow prediction model of the mth roadside unit in N n , Indicates the correlation between the coding hidden state of the traffic flow prediction model of the nth roadside unit in the t-round federated learning and the coding hidden state of the traffic flow prediction model of the i-th roadside unit in Nn, exp represents the The natural constant e is an exponential function with the base, and LeakyReLU(·) represents the activation function.
在上述的计算公式中,表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度。需要指出的是,此处的第n个路侧单元泛指任一路侧单元。根据本发明的一个实施例,本发明通过执行步骤B1-B3来计算 in the above In the calculation formula, Indicates the degree of association between the nth roadside unit and the mth roadside unit in the adjacency set calculated by the information geometry method in the t-round federated learning. It should be pointed out that the nth roadside unit here generally refers to any roadside unit. According to an embodiment of the present invention, the present invention calculates by performing steps B1-B3
B1、假设当前路侧单元的交通流量预测模型的编码隐藏状态服从高斯分布,那么本发明会按照如下方式分别对当前路侧单元的交通流量预测模型的编码隐藏状态的均值和标准差做无偏估计:B1, assuming that the encoding hidden state of the traffic flow prediction model of the current roadside unit obeys Gaussian distribution, then the present invention will perform unbiased respectively on the mean value and standard deviation of the encoding hidden state of the traffic flow prediction model of the current roadside unit in the following manner estimate:
其中,μt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态的均值,σt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态的标准差,H表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态的维度,表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态在维度H中第j维对应的数值,j表示非零自然数,其最大值为维度H对应的数值;Among them, μ t, n represents the mean value of the encoding hidden state of the traffic flow prediction model of the nth roadside unit in the t-round federated learning, σt , n represents the nth roadside unit in the t-round federated learning The standard deviation of the coding hidden state of the traffic flow prediction model, H represents the dimension of the coding hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, Indicates the value corresponding to the coded hidden state of the traffic flow prediction model of the nth roadside unit in the dimension H in the t-round federated learning, j represents a non-zero natural number, and its maximum value is the value corresponding to the dimension H;
B2、基于步骤B1中获得的均值μt,n和标准差σt,n,按照如下方式计算当前路侧单元对应的编码隐藏状态与其邻接集合中其他路侧单元对应的编码隐藏状态之间的距离:B2. Based on the mean value μ t,n and standard deviation σ t,n obtained in step B1, calculate the distance between the coded hidden state corresponding to the current roadside unit and the coded hidden states corresponding to other roadside units in the adjacent set as follows distance:
其中,in,
σ1=σt,m-σt,n,σ 1 =σ t,m −σ t,n ,
σ2=σt,m+σt,n,σ 2 =σ t,m +σ t,n ,
μ1=μt,m-μt,n’μ 1 = μ t,m - μ t,n '
表示ht,n与ht,m之间的距离,ht,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态,ht,m表示在第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态,σt,n表示表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态的标准差,σt,m表示在第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态的标准差,μt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态的均值,μt,m表示在第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态的均值,G(·)表示数学函数,σ1表示σt,m与σt,n之间的差值,σ2表示σt,m与σt,n之间的和值,μ1表示μt,m与μt,n之间的差值; Indicates the distance between h t, n and h t, m , h t, n represents the coding hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, h t, m represents the The encoding hidden state of the traffic flow prediction model of the mth roadside unit in the adjacency set of the nth roadside unit in the t-round federated learning, σ t, n denotes the nth roadside unit in the t-round federated learning The standard deviation of the coding hidden state of the traffic flow prediction model, σ t, m represents the coding hidden state of the traffic flow prediction model of the m-th roadside unit in the adjacency set of the n-th roadside unit in the t-round federated learning The standard deviation of , μ t, n represents the mean value of the encoded hidden state of the traffic flow prediction model of the nth roadside unit in the t-round federated learning, μ t, m represents the n-th road in the t-round federated learning The mean value of the coded hidden state of the traffic flow prediction model of the mth roadside unit in the adjacency set of side units, G(·) represents a mathematical function, σ1 represents the difference between σ t ,m and σ t,n , σ 2 represents the sum value between σ t, m and σ t, n , and μ 1 represents the difference between μ t, m and μ t, n ;
B3、基于步骤B2中获得的ht,n与ht,m之间的距离采用信息几何方式计算当前路侧单元与其邻接集合中其他路侧单元之间的关联程度。优选的,采用信息几何方式计算所述关联程度的公式为:B3, based on the distance between h t, n and h t, m obtained in step B2 The information geometry method is used to calculate the correlation degree between the current roadside unit and other roadside units in its adjacency set. Preferably, the formula for calculating the degree of association by means of information geometry is:
其中,in,
表示在第t轮联邦学习中采用信息几何方式计算的第n个路侧单元与其邻接集合中第m个路侧单元之间的关联程度,表示ht,n与ht,m之间的最大距离,ht,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态,ht,m表示第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态,max(·)表示最大值函数,表示ht,n与ht,m之间的距离,Nn表示第n个路侧单元的邻接集合,i表示Nn中第i个路侧单元,表示ht,n与ht,i之间的距离,ht,i表示在第t轮联邦学习中第n个路侧单元的邻接集合中第i个路侧单元的交通流量预测模型的编码隐藏状态。 Indicates the degree of association between the nth roadside unit and the mth roadside unit in the adjacency set calculated by the information geometry method in the t-round federated learning, Indicates the maximum distance between h t, n and h t, m , h t, n represents the coded hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, h t, m represents the The encoding hidden state of the traffic flow prediction model of the m-th roadside unit in the adjacency set of the n-th roadside unit in the t-round federated learning, max( ) represents the maximum value function, Indicates the distance between h t, n and h t, m , N n represents the adjacency set of the nth roadside unit, i represents the i-th roadside unit in N n , Indicates the distance between h t,n and h t,i , h t,i represents the encoding of the traffic flow prediction model of the i-th roadside unit in the adjacency set of the n-th roadside unit in the t-round federated learning hidden state.
本发明在获得每个路侧单元与其他路侧单元之间的空间关系后,按照如下方式更新每个路侧单元的交通流量预测模型的编码隐藏状态:After the present invention obtains the spatial relationship between each roadside unit and other roadside units, the encoding hidden state of the traffic flow prediction model of each roadside unit is updated as follows:
其中,h′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的编码隐藏状态,Nn表示第n个路侧单元的邻接集合,sm表示第n个路侧单元的邻接集合中第m个路侧单元,表示在第t轮联邦学习中第n个路侧单元与其邻接集合中第m个路侧单元之间的权重关系,ht,m表示在第t轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型的编码隐藏状态,sigmoid(·)表示激活函数。Among them, h′ t, n represents the coded hidden state of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, N n represents the adjacency set of the nth roadside unit, and s m represents the The mth roadside unit in the adjacency set of n roadside units, Indicates the weight relationship between the nth roadside unit and the mth roadside unit in the adjacency set in the t-round federated learning, h t, m represents the adjacency of the n-th roadside unit in the t-round federated learning The encoded hidden state of the traffic flow prediction model for the mth roadside unit in the set, and sigmoid( ) represents the activation function.
三、计算交通流量预测结果3. Calculation of traffic flow forecast results
服务器将每个路侧单元的交通流量预测模型的编码隐藏状态更新后,将更新后的编码隐藏状态分发给相应的路侧单元进行解码计算以获得相应路侧单元对应的交通流量预测的结果,根据本发明的一个实施例,本发明按照如下方式计算每个路侧单元的待预测交通流量序列的交通流量预测的结果:After the server updates the coded hidden state of the traffic flow prediction model of each roadside unit, the updated coded hidden state is distributed to the corresponding roadside unit for decoding calculation to obtain the traffic flow prediction result corresponding to the corresponding roadside unit, According to one embodiment of the present invention, the present invention calculates the result of the traffic flow prediction of the traffic flow sequence to be predicted for each roadside unit as follows:
y′t,n=ft,n,d([ht,n,h′t,n];wt,n,d)y′ t, n = f t, n, d ([h t, n , h′ t, n ]; w t, n, d )
其中,y′t,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列对应的预测交通流量,ft,n,d(·)表示在第t轮联邦学习中第n个路侧单元的解码器模型函数,wt,n,d表示在第t轮联邦学习中第n个路侧单元的解码器模型参数,ht,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的编码隐藏状态,h′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的编码隐藏状态。Among them, y′ t, n represents the predicted traffic flow corresponding to the traffic flow sequence of the nth roadside unit to be predicted in the t-th round of federated learning, f t, n, d ( ) represents the predicted traffic flow in the t-th round of federated learning The decoder model function of the nth RSU, w t, n, d represent the decoder model parameters of the nth RSU in the t-round federated learning, h t, n represent the t-round federated learning The encoding hidden state of the traffic flow prediction model of the nth roadside unit, h′ t, n represents the updated encoding hidden state of the traffic flow prediction model of the nth roadside unit in the tth round of federated learning.
四、更新交通流量预测模型4. Update the traffic flow forecasting model
根据本发明的一个实施例,当每个路侧单元获得其各自的预测交通流量和实际交通流量后,基于每个路侧单元对应的交通流量预测的结果与实际交通流量之间的损失,本发明通过执行步骤C1-C2更新每个路侧单元对应的交通流量预测模型,下面详细说明步骤C1-C2的过程:According to an embodiment of the present invention, after each roadside unit obtains its respective predicted traffic flow and actual traffic flow, based on the loss between the traffic flow prediction result corresponding to each roadside unit and the actual traffic flow, this The invention updates the traffic flow prediction model corresponding to each roadside unit by performing steps C1-C2, and the process of steps C1-C2 is described in detail below:
C1、本发明按照如下方式计算每个路侧单元的待预测交通流量序列对应的实际交通流量与预测交通流量之间的损失:C1, the present invention calculates the loss between the actual traffic flow corresponding to the traffic flow sequence to be predicted of each roadside unit and the predicted traffic flow in the following manner:
lt,n(wt,n)=lt,n(yt,n,y′t,n;wt,n)l t, n (w t, n ) = l t, n (y t, n , y′ t, n ; w t, n )
其中,lt,n(·)表示在第t轮联邦学习中第n个路侧单元的损失函数,Yt,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列对应的实际交通流量,y′t,n表示在第t轮联邦学习中第n个路侧单元的待预测交通流量序列对应的预测交通流量,wt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型的参数。需要注意的是,此处的wt,n=wt-1,即在第t轮联邦学习中第n个路侧单元的交通流量预测模型的参数与在第t-1轮联邦学习中融合了所有的路侧单元的交通流量预测模型的参数而生成的融合后的模型参数相同。Among them, l t, n (·) represents the loss function of the nth roadside unit in the t-round federated learning, Y t, n represents the traffic flow to be predicted by the nth roadside unit in the t-round federated learning The actual traffic flow corresponding to the sequence, y′ t, n represents the predicted traffic flow corresponding to the traffic flow sequence of the nth roadside unit to be predicted in the t-th round of federated learning, w t, n represents the predicted traffic flow in the t-th round of federated learning Parameters of the traffic flow forecasting model for the nth roadside unit. It should be noted that here w t,n = w t-1 , that is, the parameters of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning are fused with the parameters of the t-1th round of federated learning The parameters of the traffic flow forecasting model of all roadside units are the same for the generated fused model.
C2、基于步骤C1中获得的每个路侧单元对应的实际交通流量与预测交通流量之间的损失,采用OGD(Online Gradient Descent,在线联邦学习)的方式按照如下方式更新每个路侧单元的交通流量预测模型的参数:C2. Based on the loss between the actual traffic flow and the predicted traffic flow corresponding to each roadside unit obtained in step C1, the OGD (Online Gradient Descent, online federated learning) method is used to update the traffic flow of each roadside unit as follows Parameters of the traffic flow forecasting model:
其中,w′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数,wt,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新前的参数,lt,n表示在第t轮联邦学习中第n个路侧单元的损失函数,η表示学习率,其值为0.01,需要说明的是,此处η的值不仅限于0.01,可以根据实际交通流量预测的场景设置,本发明不做具体限定。Among them, w′ t, n represents the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-round federated learning, w t, n represents the parameter of the nth roadside unit in the t-round federated learning The parameters of the traffic flow forecasting model before updating, l t, n represent the loss function of the nth roadside unit in the t-th round of federated learning, η represents the learning rate, its value is 0.01, it should be noted that here η The value is not limited to 0.01, and can be set according to the scene of actual traffic flow prediction, which is not specifically limited in the present invention.
根据本发明的一个实施例,将每个路侧单元各自的交通流量预测模型更新5次后,将所有路侧单元的交通流量预测模型的参数上传至服务器,由服务器执行聚合操作。需要注意的是,在具体实施的过程中,交通流量预测模型的更新次数可以不限于5次,以实际交通流量预测的场景来设定即可,本发明不做具体限定。According to an embodiment of the present invention, after updating the respective traffic flow prediction models of each roadside unit five times, the parameters of the traffic flow prediction models of all roadside units are uploaded to the server, and the server performs an aggregation operation. It should be noted that, in the process of specific implementation, the number of updates of the traffic flow prediction model may not be limited to 5, and it can be set according to the scene of actual traffic flow prediction, which is not specifically limited in the present invention.
五、服务器聚合所有交通流量预测模型5. The server aggregates all traffic flow forecasting models
在结束了对所有路侧单元的交通流量预测模型的参数的预定次数的更新后,本发明将所有路侧单元的交通流量预测模型的参数上传至服务器进行全局聚合与融合以获得融合后的模型,并将融合后的模型参数下发至每个路侧单元以更新每个路侧单元的交通流量预测模型的参数。根据本发明的一个实施例,由于交通流量具有周期性,本发明根据所有路侧单元所在道路中的交通流量的周期性获得对应的周期长度,假设其周期长度为T,同时判断当前联邦学习的轮数是否小于周期长度,并按照如下方式将所有路侧单元的交通流量预测模型的参数进行融合:After the predetermined times of updating the parameters of the traffic flow prediction models of all roadside units, the present invention uploads the parameters of the traffic flow prediction models of all roadside units to the server for global aggregation and fusion to obtain the fused model , and send the fused model parameters to each roadside unit to update the parameters of the traffic flow prediction model of each roadside unit. According to an embodiment of the present invention, since the traffic flow is periodic, the present invention obtains the corresponding cycle length according to the periodicity of the traffic flow in the road where all roadside units are located, assuming that the cycle length is T, and at the same time judges the current federated learning Whether the number of rounds is less than the cycle length, and the parameters of the traffic flow prediction model of all roadside units are fused as follows:
首先,当前联邦学习轮数小于周期长度时,即t≤T,本发明通过如下方式获得融合后的模型:First, when the current number of federated learning rounds is less than the cycle length, that is, t≤T, the present invention obtains the fused model in the following way:
其中,wt表示在第t轮联邦学习中融合后的模型参数,N表示所有路侧单元的数量,w′t,n表示在第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数。Among them, w t represents the fused model parameters in the t-round federated learning, N represents the number of all roadside units, w′ t, n represents the traffic flow forecast of the nth roadside unit in the t-round federated learning The updated parameters of the model.
同时,基于融合后的模型参数,本发明按照如下方式计算在第t轮联邦学习中融合后的模型参数与在第t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数之间的欧式距离:At the same time, based on the fused model parameters, the present invention calculates the fused model parameters in the t-th round of federated learning and the updated traffic flow prediction model of the nth roadside unit in the t-1 round of federated learning in the following manner: The Euclidean distance between the parameters of :
et-1,n=||w′t-1,n-wt||2 e t-1, n = ||w′ t-1, n -w t || 2
其中,et-1,n表示在第t轮联邦学习中融合后的模型参数与在第t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数之间的欧式距离,w′t-1,n表示在第t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数,wt表示在第t轮联邦学习中融合后的模型参数。Among them, e t-1, n represents the Euclidean relationship between the fused model parameters in the t-th round of federated learning and the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-1 round of federated learning Distance, w′ t-1, n represents the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-1 round of federated learning, w t represents the fused model parameters in the t-th round of federated learning .
然后,本发明对在第t轮联邦学习中融合后的模型参数与在第t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数之间的欧式距离进行归一化处理:Then, the present invention normalizes the Euclidean distance between the fused model parameters in the t-th round of federated learning and the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-1 round of federated learning Processing:
其中,αt-1,n表示在t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数在融合后的模型中的权重,N表示路侧单元的最大数量,et-1,n表示在第t轮联邦学习中融合后的模型参数与在第t-1轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数之间的欧式距离,et-1,m表示在第t轮联邦学习中融合后的模型参数与在第t-1轮联邦学习中第n个路侧单元的邻接集合中第m个路侧单元的交通流量预测模型更新后的参数之间的欧式距离。Among them, α t-1, n represents the weight of the updated parameters of the traffic flow prediction model of the nth roadside unit in the fused model in the t-1 round of federated learning, N represents the maximum number of roadside units, e t-1, n represents the Euclidean distance between the fused model parameters in the t-th round of federated learning and the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-1 round of federated learning, e t-1, m represents the model parameters fused in the t-th round of federated learning and the traffic flow prediction model of the m-th roadside unit in the adjacency set of the n-th roadside unit in the t-1 round of federated learning Euclidean distance between updated parameters.
当前联邦学习轮数大于周期长度时,即t>T,本发明通过如下方式获得融合后的模型:When the number of current federated learning rounds is greater than the cycle length, that is, t>T, the present invention obtains the fused model in the following way:
其中,wt表示第t轮联邦学习中融合后的模型参数,w′t,n表示第t轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数,αt-T,n表示在第t-T轮联邦学习中第n个路侧单元的交通流量预测模型更新后的参数在融合后的模型中的权重。Among them, w t represents the fused model parameters in the t-th round of federated learning, w′ t,n represents the updated parameters of the traffic flow prediction model of the nth roadside unit in the t-th round of federated learning, α tT,n represents The weight of the updated parameters of the traffic flow prediction model of the nth roadside unit in the fused model in the tT round of federated learning.
与现有技术相比,本发明的优点在于:Compared with the prior art, the present invention has the advantages of:
1、本发明针对现有技术中的联邦学习方法在预测交通流量时不能满足实时性要求问题,提出了一种在线联邦学习的方法来训练交通流量预测模型,其通过实时获取路侧单元的交通流量数据、实时更新路侧单元的交通流量预测模型的编码隐藏状态,实时更新路侧单元的交通流量预测模型的方式满足了实际交通环境中高实时性的要求。1. The present invention aims at the problem that the federated learning method in the prior art cannot meet the real-time requirements when predicting traffic flow, and proposes an online federated learning method to train the traffic flow prediction model, which obtains the traffic flow of roadside units in real time Flow data, real-time update of the encoding hidden state of the roadside unit's traffic flow prediction model, and the way of real-time update of the roadside unit's traffic flow prediction model meet the high real-time requirements in the actual traffic environment.
2、本发明针对现有技术中的联邦学习方法在聚合全局模型时收敛速度慢的问题,通过利用不同路侧单元之间的空间相关性以及同一路侧单元不同时刻交通流量信息的时间相关性,以自适应聚合全局模型,提高了收敛速度。2. The present invention aims at the slow convergence speed of the federated learning method in the prior art when aggregating the global model, by utilizing the spatial correlation between different roadside units and the temporal correlation of traffic flow information of the same roadside unit at different times , to adaptively aggregate the global model, improving the convergence speed.
需要说明的是,虽然上文按照特定顺序描述了各个步骤,但是并不意味着必须按照上述特定顺序来执行各个步骤,实际上,这些步骤中的一些可以并发执行,甚至改变顺序,只要能够实现所需要的功能即可。It should be noted that although the steps are described above in a specific order, it does not mean that the steps must be performed in the above specific order. In fact, some of these steps can be performed concurrently, or even change the order, as long as it can be realized The required functions are sufficient.
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The present invention can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present invention.
计算机可读存储介质可以是保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以包括但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。A computer readable storage medium may be a tangible device that holds and stores instructions for use by an instruction execution device. A computer readable storage medium may include, for example, but is not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Having described various embodiments of the present invention, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or technical improvement in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210950965.1A CN115311860B (en) | 2022-08-09 | 2022-08-09 | An online federated learning method for traffic flow prediction model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210950965.1A CN115311860B (en) | 2022-08-09 | 2022-08-09 | An online federated learning method for traffic flow prediction model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115311860A true CN115311860A (en) | 2022-11-08 |
CN115311860B CN115311860B (en) | 2024-06-14 |
Family
ID=83860652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210950965.1A Active CN115311860B (en) | 2022-08-09 | 2022-08-09 | An online federated learning method for traffic flow prediction model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115311860B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115909746A (en) * | 2023-01-04 | 2023-04-04 | 中南大学 | Traffic flow prediction method, system and medium based on federal learning |
CN116363878A (en) * | 2023-05-26 | 2023-06-30 | 云南大学 | Traffic flow prediction system and method based on continuous dynamic ordinary differential equation |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108257378A (en) * | 2016-12-29 | 2018-07-06 | 杭州海康威视数字技术股份有限公司 | traffic flow forecasting method and device |
CN113345229A (en) * | 2021-06-01 | 2021-09-03 | 平安科技(深圳)有限公司 | Road early warning method based on federal learning and related equipment thereof |
CN113643553A (en) * | 2021-07-09 | 2021-11-12 | 华东师范大学 | Multi-intersection intelligent traffic signal lamp control method and system based on federal reinforcement learning |
CN114266406A (en) * | 2021-12-24 | 2022-04-01 | 北京航空航天大学 | Method for predicting traffic flow state of large-scale road network based on federal learning |
CN114548608A (en) * | 2022-04-26 | 2022-05-27 | 腾讯科技(深圳)有限公司 | Model processing method and device, target traffic equipment and storage medium |
WO2022116424A1 (en) * | 2020-12-01 | 2022-06-09 | 平安科技(深圳)有限公司 | Method and apparatus for training traffic flow prediction model, electronic device, and storage medium |
CN114627648A (en) * | 2022-03-16 | 2022-06-14 | 中山大学·深圳 | Federal learning-based urban traffic flow induction method and system |
CN114757389A (en) * | 2022-03-10 | 2022-07-15 | 同济大学 | A spatiotemporal prediction method of urban traffic flow based on federated learning |
CN114863680A (en) * | 2022-04-27 | 2022-08-05 | 腾讯科技(深圳)有限公司 | Prediction processing method, prediction processing device, computer equipment and storage medium |
-
2022
- 2022-08-09 CN CN202210950965.1A patent/CN115311860B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108257378A (en) * | 2016-12-29 | 2018-07-06 | 杭州海康威视数字技术股份有限公司 | traffic flow forecasting method and device |
WO2022116424A1 (en) * | 2020-12-01 | 2022-06-09 | 平安科技(深圳)有限公司 | Method and apparatus for training traffic flow prediction model, electronic device, and storage medium |
CN113345229A (en) * | 2021-06-01 | 2021-09-03 | 平安科技(深圳)有限公司 | Road early warning method based on federal learning and related equipment thereof |
CN113643553A (en) * | 2021-07-09 | 2021-11-12 | 华东师范大学 | Multi-intersection intelligent traffic signal lamp control method and system based on federal reinforcement learning |
CN114266406A (en) * | 2021-12-24 | 2022-04-01 | 北京航空航天大学 | Method for predicting traffic flow state of large-scale road network based on federal learning |
CN114757389A (en) * | 2022-03-10 | 2022-07-15 | 同济大学 | A spatiotemporal prediction method of urban traffic flow based on federated learning |
CN114627648A (en) * | 2022-03-16 | 2022-06-14 | 中山大学·深圳 | Federal learning-based urban traffic flow induction method and system |
CN114548608A (en) * | 2022-04-26 | 2022-05-27 | 腾讯科技(深圳)有限公司 | Model processing method and device, target traffic equipment and storage medium |
CN114863680A (en) * | 2022-04-27 | 2022-08-05 | 腾讯科技(深圳)有限公司 | Prediction processing method, prediction processing device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
马壮林;张宏璐;张;王晋;: "高速公路路侧事故起数预测模型", 长安大学学报(自然科学版), no. 04, 15 July 2017 (2017-07-15), pages 123 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115909746A (en) * | 2023-01-04 | 2023-04-04 | 中南大学 | Traffic flow prediction method, system and medium based on federal learning |
CN116363878A (en) * | 2023-05-26 | 2023-06-30 | 云南大学 | Traffic flow prediction system and method based on continuous dynamic ordinary differential equation |
CN116363878B (en) * | 2023-05-26 | 2023-08-11 | 云南大学 | Traffic flow prediction system and method based on continuous dynamic ordinary differential equation |
Also Published As
Publication number | Publication date |
---|---|
CN115311860B (en) | 2024-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Shu et al. | A short-term traffic flow prediction model based on an improved gate recurrent unit neural network | |
EP3035314B1 (en) | A traffic data fusion system and the related method for providing a traffic state for a network of roads | |
JP2015125775A (en) | System and method for multi-task learning system for prediction of demand on system | |
Wang et al. | Car-following models for human-driven vehicles and autonomous vehicles: A systematic review | |
CN110709908A (en) | Computer system and method for state prediction of traffic system | |
Wang et al. | Deep Q learning-based traffic signal control algorithms: Model development and evaluation with field data | |
CN115311860A (en) | An Online Federated Learning Approach for Traffic Flow Prediction Models | |
Li et al. | Modeling merging acceleration and deceleration behavior based on gradient-boosting decision tree | |
Adetiloye et al. | Predicting short-term congested traffic flow on urban motorway networks | |
CN116476863A (en) | Automatic driving transverse and longitudinal integrated decision-making method based on deep reinforcement learning | |
Zhang et al. | Navigating electric vehicles along a signalized corridor via reinforcement learning: Toward adaptive eco-driving control | |
Seo et al. | LoRa based architecture for smart town traffic management system | |
Channamallu et al. | Parking occupancy prediction and analysis-a comprehensive study | |
Elliott et al. | Modelling the travel time of transit vehicles in real‐time through a GTFS‐based road network using GPS vehicle locations | |
CN116453343A (en) | Intelligent traffic signal control optimization algorithm, software and system based on flow prediction in intelligent networking environment | |
Feng et al. | EVHF-GCN: an emergency vehicle priority scheduling model based on heterogeneous feature fusion with graph convolutional networks | |
Treboux et al. | A predictive data-driven model for traffic-jams forecasting in smart santader city-scale testbed | |
Deepika et al. | A Comparison of ML Models for Predicting Congestion in Urban Cities | |
GB2606610A (en) | Infrastructure sensor processing | |
Rahman | Applications of deep learning models for traffic prediction problems | |
Wilbur et al. | Artificial intelligence for smart transportation | |
Roy et al. | Predicting Taxi Travel Time Using Machine Learning Techniques Considering Weekend and Holidays | |
He et al. | Feasibility of economic forecasting model based on intelligent algorithm of smart city | |
US20240242600A1 (en) | Infrastructure Sensor Processing | |
Azad | Smart travel time prediction model for urban traffic using long short-term memory network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |