CN110020475A - A kind of Markov particle filter method of forecasting traffic flow - Google Patents
A kind of Markov particle filter method of forecasting traffic flow Download PDFInfo
- Publication number
- CN110020475A CN110020475A CN201910264914.1A CN201910264914A CN110020475A CN 110020475 A CN110020475 A CN 110020475A CN 201910264914 A CN201910264914 A CN 201910264914A CN 110020475 A CN110020475 A CN 110020475A
- Authority
- CN
- China
- Prior art keywords
- state
- traffic flow
- moment
- particle
- markov
- 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
- 239000002245 particle Substances 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 12
- 230000007704 transition Effects 0.000 claims description 20
- 239000011159 matrix material Substances 0.000 claims description 14
- 238000005070 sampling Methods 0.000 claims description 9
- 238000012952 Resampling Methods 0.000 claims description 7
- 230000005484 gravity Effects 0.000 claims description 5
- 238000010606 normalization Methods 0.000 claims description 5
- 238000012935 Averaging Methods 0.000 claims description 2
- 238000012937 correction Methods 0.000 claims description 2
- 238000005315 distribution function Methods 0.000 claims description 2
- 238000012546 transfer Methods 0.000 claims 2
- 238000000576 coating method Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 claims 1
- 230000009897 systematic effect Effects 0.000 claims 1
- 238000004458 analytical method Methods 0.000 abstract description 8
- 238000001914 filtration Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 2
- 238000013277 forecasting method Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000000342 Monte Carlo simulation Methods 0.000 description 1
- 206010039203 Road traffic accident Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- 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"
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明涉及一种交通流预测的马尔科夫粒子滤波方法。本发明将马尔科夫链与粒子滤波算法组合,用马尔科夫代替状态空间预测模型并确定初始权值,再通过粒子滤波算法进行多次迭代更新,获得预测结果。弥补马尔科夫对非线性系统不适用、预测精度不足的缺点。并将预测结果进行误差分析,验证该方法的适用性。本发明确定交通流状态划分,可以实现短时交通流量预测。能够为交通控制与诱导提供良好的理论支持和决策依据。
The invention relates to a Markov particle filtering method for traffic flow prediction. The invention combines the Markov chain and the particle filter algorithm, uses the Markov to replace the state space prediction model and determines the initial weight, and then performs multiple iterative updates through the particle filter algorithm to obtain the prediction result. Make up for the shortcomings of Markov's inapplicability to nonlinear systems and insufficient prediction accuracy. The error analysis of the prediction results is carried out to verify the applicability of the method. The invention determines the traffic flow state division, and can realize short-term traffic flow prediction. It can provide good theoretical support and decision-making basis for traffic control and guidance.
Description
技术领域technical field
本发明设计一种预测模型,尤其是涉及一种马尔科夫粒子滤波的交通流预测模型。The invention designs a prediction model, in particular to a traffic flow prediction model of Markov particle filtering.
背景技术Background technique
智能交通系统中,短时交通流预测是实现先进的交通控制和交通诱导的关键技术之一。针对目前马尔科夫交通流量预测模型在精度方面的不足,以及交通流量随机性、波动性的特点,提出马尔科夫粒子滤波交通流预测模型。In intelligent transportation system, short-term traffic flow prediction is one of the key technologies to realize advanced traffic control and traffic guidance. Aiming at the shortcomings of the current Markov traffic flow forecasting model in terms of accuracy, as well as the randomness and volatility of traffic flow, a Markov particle filter traffic flow forecasting model is proposed.
随着经济高速发展,机动车数量不断增长,出现了一系列交通问题,如交通拥堵、交通污染、交通事故等影响着人们的日常生活。近年来,早晚高峰期堵车现象己成为生活中不可避免的问题,尤其是节假日期间,交通拥堵问题是影响交通通行能力的主要因素。为了合理进行交通管理与控制,需要采取有效的控制策略对当前时间段内的交通流量进行疏导,以改善道路交通拥堵状况,减少环境污染。短时交通流量预测成为了一项重要的研究内容。With the rapid economic development, the number of motor vehicles continues to increase, and a series of traffic problems have appeared, such as traffic congestion, traffic pollution, traffic accidents, etc., which affect people's daily life. In recent years, the phenomenon of traffic jams during morning and evening peak hours has become an inevitable problem in life, especially during holidays, traffic jams are the main factor affecting traffic capacity. In order to carry out traffic management and control reasonably, it is necessary to adopt effective control strategies to divert the traffic flow in the current time period, so as to improve road traffic congestion and reduce environmental pollution. Short-term traffic flow prediction has become an important research content.
单一的交通流量预测方法都有其特殊的信息变量和适用条件,只能从各自不同的角度进行流量预测,所以单一的预测方法对于随机波动性较强的交通流具有一定局限性,预测结果也有一定的片面性。A single traffic flow forecasting method has its own special information variables and applicable conditions, and can only predict traffic flow from different perspectives. Therefore, a single forecasting method has certain limitations for the traffic flow with strong random fluctuations, and the forecast results also have some limitations. A certain one-sidedness.
交通流量不确定性较强,不仅具有随机非线性特点,还会受天气等外界变化导致流量的不正常变化。马尔科夫模型是一个度量状态空间以及分析时间序列数据的强有力工具,但其只能获得粗略的预测结果,不适用于非线性系统。粒子滤波技术对于非线性系统和非高斯噪声环境具有高度的适应性。因此,将马尔科夫链与粒子滤波算法组合,用马尔科夫代替状态空间预测模型并确定初始权值,再通过粒子滤波算法进行多次迭代更新,获得预测结果。弥补马尔科夫对非线性系统不适用、预测精度不足的缺点。并将预测结果进行误差分析,验证该方法的适用性。The uncertainty of traffic flow is strong, not only has the characteristics of random nonlinearity, but also abnormal changes in flow caused by external changes such as weather. Markov model is a powerful tool for measuring state space and analyzing time series data, but it can only obtain rough prediction results and is not suitable for nonlinear systems. Particle filter technology is highly adaptable to nonlinear systems and non-Gaussian noise environments. Therefore, the Markov chain is combined with the particle filter algorithm, the state space prediction model is replaced by Markov and the initial weight is determined, and then the particle filter algorithm is used for multiple iterative updates to obtain the prediction result. Make up for the shortcomings of Markov's inapplicability to nonlinear systems and insufficient prediction accuracy. The error analysis of the prediction results is carried out to verify the applicability of the method.
发明内容SUMMARY OF THE INVENTION
鉴于此,本发明的目的在于提供一种马尔科夫粒子滤波的交通流预测预测模型,该模型确定交通流状态划分,可以实现短时交通流量预测。能够为交通控制与诱导提供良好的理论支持和决策依据。In view of this, the purpose of the present invention is to provide a traffic flow prediction model based on Markov particle filtering, which determines the state division of traffic flow and can realize short-term traffic flow prediction. It can provide good theoretical support and decision-making basis for traffic control and guidance.
为了实现本发明目的,所采用的技术方案为:In order to realize the purpose of the present invention, the technical scheme adopted is:
预测前,需对样本数据进行预处理,将由于检测器故障导致的空数据,采用相邻时段数据求平均的方法对其进行修复。Before prediction, the sample data needs to be preprocessed, and the empty data caused by the detector failure is repaired by averaging the data of adjacent periods.
修正公式如下:The correction formula is as follows:
xk-------------为k时刻交通流量。x k ------------- is the traffic flow at time k.
xk-1----------为k-1时刻交通流量。x k-1 ------------ is the traffic flow at time k-1.
xk+1----------为k+1时刻交通流量。x k+1 ------------ is the traffic flow at time k+1.
由于马尔科夫模型是对状态转移的预测,所以需要把交通流量归属于不同的状态。其过程如下:Since the Markov model is a prediction of state transitions, it is necessary to attribute the traffic flow to different states. The process is as follows:
用状态集S来表示交通流状态,历史样本数据构成交通流状态集S={s1,s2,...,sn}。The traffic flow state is represented by the state set S, and the historical sample data constitutes the traffic flow state set S={s 1 , s 2 ,...,s n }.
采用阈值法确定交通流量状态。引入参数μ1、μ2。The threshold method is used to determine the traffic flow state. Introduce parameters μ 1 , μ 2 .
μ1=xk-1(min):I:xk-1(max) (2)μ 1 =x k-1(min) : I:x k-1(max) (2)
μ2={θ1,θ2,...,θn} (3)μ 2 ={θ 1 , θ 2 , . . . , θ n } (3)
μ1----------表示以I为间隔将交通流划分为多个状态。一般取I=5。μ 1 ---------- means that the traffic flow is divided into multiple states at intervals of I. Generally take I=5.
μ2----------用来保存阈值。μ 2 ---------- used to save the threshold.
xk-1(min)-----表示k-1时刻交通流量最小值。x k-1(min) ----- Indicates the minimum traffic flow at time k-1.
xk-1(max)-----表示k-1时刻交通流量最大值。x k-1(max) ----- Indicates the maximum traffic flow at time k-1.
I----------表示交通流量划分间隔。I---------- indicates the traffic flow division interval.
θι----------为阈值,代表状态边界值,一个状态有两个边界值,i=1,2,...,n。θ ι ------------ is the threshold, representing the state boundary value, a state has two boundary values, i=1,2,...,n.
si----------表示区间为(θi-1,θi]的状态,i=1,2,...,n。s i ------------ represents a state in the interval (θ i-1 ,θ i ], i=1,2,...,n.
状态集确定。将交通量xk-1由大到小排序,计算状态个数其中,若h不为整数,则添加状态sh+1作为最后一个状态。即sh+1=xk-1(max);状态集为S={s1,s2,...,sh,sh+1}。Status set OK. Sort the traffic volume x k-1 from large to small, and calculate the number of states Among them, if h is not an integer, the state s h+1 is added as the last state. That is, sh +1 =x k-1(max) ; the state set is S={s 1 , s 2 , . . . , s h , s h+1 }.
h----------表示状态个数。h---------- indicates the number of states.
sh+1-----------表示第h+1个状态。s h+1 ------------- represents the h+1th state.
为构建马尔科夫交通流预测模型,首先确定样本交通流量所属交通状态,然后求出状态转移矩阵,根据状态转移矩阵对未来交通状态进行预测。具体过程如下:In order to build a Markov traffic flow prediction model, first determine the traffic state to which the sample traffic flow belongs, and then obtain the state transition matrix, and predict the future traffic state according to the state transition matrix. The specific process is as follows:
状态转移概率的确定。状态转移矩阵表明了马尔科夫的无后效性,即k时刻的状态只与k-1时刻的交通状态有关。交通流状态从当前k-1时刻的状态si(k-1)转移到下一时刻k时刻的状态sj(k)是不确定的,其可能性用概率表示为其状态转移概率:Determination of state transition probabilities. The state transition matrix shows that Markov has no aftereffect, that is, the state at time k is only related to the traffic state at time k-1. The transition of the traffic flow state from the state si (k-1) at the current time k-1 to the state s j (k) at the next time k is uncertain, and its possibility is expressed as its state transition probability by probability:
mi-----------表示状态si在不同时段出现的次数。m i ------------- represents the number of times the state si appears in different time periods.
mij----------表示由状态si转移到状态sj的次数。m ij ------------ represents the number of transitions from state si to state s j .
p(si(k-1)→sj(k))、p(sj|si)、pij(k)-----------表示由状态si转移到状态sj的概率。p(s i (k-1)→s j (k)), p(s j |s i ), p ij (k)-----------represents the transition from state si to state probability of s j .
状态转移矩阵的确定。根据确定状态转移概率pij(k),然后构成状态转移矩阵,如下所示:Determination of state transition matrix. According to the determination of the state transition probability p ij (k), the state transition matrix is then formed as follows:
P(k)-----------表示状态转移矩阵。P(k)------------represents the state transition matrix.
满足 Satisfy
pj(k)-----------表示k时刻处于j状态的概率。p j (k)------------represents the probability of being in state j at time k.
建立马尔科夫粒子滤波预测模型。方法如下:Build a Markov particle filter prediction model. Methods as below:
建立状态方程。Build an equation of state.
建立观测方程。Create an observation equation.
u2(k-1)-------k-1时刻的状态边界值。u 2 (k-1)-------state boundary value at time k-1.
------------k时刻的预测值,i=1,2,...,n。 ------------ Predicted value at time k, i=1,2,...,n.
------------k时刻的观测值,i=1,2,...,n。 ------------ Observations at time k, i=1,2,...,n.
------------观测噪声。 ------------Observation noise.
H-------------观测值系数,设其为单位矩阵E。H-------------observed value coefficient, let it be the identity matrix E.
粒子滤波算法原理。粒子滤波是基于序贯蒙特卡罗方法和递推贝叶斯估计的统计方法仿真方法的非线性滤波算法,它的核心思想是通过从后验概率中抽取的随机状态粒子来表示其概率分布,是一种顺序重要性采样法。对于实时动态系统,其动态空间模型如下:The principle of particle filter algorithm. Particle filtering is a nonlinear filtering algorithm based on the statistical method simulation method of sequential Monte Carlo method and recursive Bayesian estimation. Its core idea is to represent its probability distribution by random state particles extracted from the posterior probability. It is a sequential importance sampling method. For real-time dynamic systems, the dynamic space model is as follows:
确定状态方程和观测方程Determining the equation of state and observation equation
xk=f(xk-1)+uk-1 (9)x k =f(x k-1 )+u k-1 (9)
yk=h(xk)+vk (10)y k =h(x k )+v k (10)
xk--------------k时刻的预测值。x k -------------- Predicted value at time k.
yk--------------k时刻的观测值。y k -------------- Observations at time k.
uk-1------------过程噪声。u k-1 ------------ process noise.
vk-1------------观测噪声。v k-1 ------------Observation noise.
f(xk-1)-------------为k-1时刻的系统状态方程。f(x k-1 )------------- is the state equation of the system at time k-1.
h(xk)-------------为k时刻的系统观测方程。h(x k )------------- is the system observation equation at time k.
预测过程:Prediction process:
设zk={y1:i|i=1,2,...,k}为初始时刻到k时刻内的所有观测值集合。Let z k ={y 1:i |i=1,2,...,k} be the set of all observations from the initial time to the k time.
p(xk|zk-1)=∫p(xk|xk-1)p(xk-1|zk-1)dxk-1 (11)p(x k |z k-1 )=∫p(x k |x k-1 )p(x k-1 |z k-1 )dx k-1 (11)
p(xk|xk-1)-------------状态方程的状态转移概率密度,由状态方程(10)获得。p(x k |x k-1 )-------------state transition probability density of state equation, obtained from state equation (10).
p(yk|xk)--------------观测方程的观测概率密度。p(y k |x k )--------------observation probability density of the observation equation.
p(xk-1|zk-1)------------为后验概率分布,由样本数据获得。p(x k-1 |z k-1 )------------ is the posterior probability distribution, obtained from the sample data.
p(xk|zk-1)-------------为先验概率,根据状态转移概率密度p(xk|xk-1)所得。p(x k |z k-1 )------------- is the prior probability, which is obtained according to the state transition probability density p(x k |x k-1 ).
状态更新过程:Status update process:
p(yk|zk-1)=∫p(yk|xk)p(xk|zk-1)dxk (13)p(y k |z k-1 )=∫p(y k |x k )p(x k |z k-1 )dx k (13)
公式(12)和公式(13)只是理论解决方法,实际上很难计算出结果,其基本原理是生成一组随机样本粒子集,利用粒子集对后验概率分布函数p(xk|zk)作近似化处理,从而在观测值的基础上获得k时刻的预测值,粒子表示第i个可能的交通流量,可根据及状态方程获取;为第i个预测的交通流量所对应的权值,即重要性权重,需要在每次迭代中更新并作归一化处理。可表示为:Formulas (12) and (13) are only theoretical solutions, and it is difficult to calculate the results in practice. The basic principle is to generate a set of random sample particle sets, and use the particle sets to determine the posterior probability distribution function p(x k |z k ) for approximation, so as to obtain the predicted value at time k on the basis of the observed value, the particle represents the ith possible traffic flow, according to And the state equation is obtained; is the weight corresponding to the i-th predicted traffic flow, that is, the importance weight, It needs to be updated and normalized in each iteration. can be expressed as:
δ-函数即狄拉克δ函数,其含义是该函数在除了零以外的点取值都等于零,而其在整个定义域上的积分等于1。The delta-function is the Dirac delta function, which means that the function is equal to zero at points other than zero, and its integral over the entire domain is equal to 1.
x0:k-------------是0到k时刻的状态集。x 0:k ------------- is the state set at time 0 to k.
∝----------- --表示正比例函数。∝--------------represents a proportional function.
-------------为k时刻第i个粒子对应的归一化权值。 ------------- is the normalized weight corresponding to the i-th particle at time k.
-------------为k时刻第i个粒子对应的权值,且满足 ------------- is the weight corresponding to the i-th particle at time k, and it satisfies
重采样过程:Resampling process:
粒子滤波算法的基本内涵是迭代,使计算的重心放在权值较大的粒子上,来提高预测结果的精确度,因此采用重采样算法,其思想是复制权值较大的粒子,剔除权值较小的粒子,但其也存在粒子多样化匮乏的现象。提出随机重选样方法,具体如下:The basic connotation of the particle filter algorithm is iteration, so that the center of gravity of the calculation is placed on the particles with larger weights to improve the accuracy of the prediction results. Therefore, the resampling algorithm is used. The idea is to copy the particles with larger weights and remove the weights. Particles with small values, but they also have the phenomenon of lack of particle diversity. A random resampling method is proposed, as follows:
产生n个在[0,1]上均匀分布的随机数{dl,l=1,2,...,n},通过搜索算法找到满足以式子(17)的整数m。Generate n random numbers {d l , l=1, 2, .
记录样本并作为新的样本粒子。最后,将区间[0,1]按分成n个小区间,当随机数dl落在第n个区间(λn-1,λn]时,复制对应的样本 record sample and as a new sample particle. Finally, press the interval [0,1] by Divide into n small intervals, when the random number d l falls in the nth interval (λ n-1 ,λ n ], copy the corresponding sample
附图说明Description of drawings
图1两种预测方法与实际交通流量(全天)对比图Figure 1. Comparison between the two prediction methods and the actual traffic flow (all day)
图2两种预测方法与实际交通流量(早高峰)对比图Figure 2 Comparison of the two prediction methods and the actual traffic flow (morning peak)
图3两种方法(全天)绝对误差ER对比图Figure 3 Comparison of absolute error ER between two methods (all day)
图4两种方法(早高峰)绝对误差ER对比图Figure 4 Comparison of absolute error ER between two methods (morning peak)
图5两种方法(全天)相对误差RER对比图Figure 5 Comparison of the relative error RER of the two methods (all day)
图6两种方法(早高峰)相对误差RER对比图Figure 6 Comparison of the relative error RER of the two methods (morning peak)
具体实施方式Detailed ways
为了进一步的说明本发明的技术方案,在此结合附图和具体的实施了进行说明。1、确定各主要参数的参考标准值:In order to further illustrate the technical solutions of the present invention, descriptions are given here in conjunction with the accompanying drawings and specific implementations. 1. Determine the reference standard value of each main parameter:
Step1:以5min为时间间隔采取历史交通流量作为样本数据,根据样本数据进行交通流量状态的划分,确定交通流状态集S={s1,s2,...,sn}。Step 1: Take historical traffic flow as sample data at a time interval of 5 minutes, divide the traffic flow state according to the sample data, and determine the traffic flow state set S={s 1 , s 2 ,...,s n }.
Step2:确定所需参数,粒子数为n,h为状态集个数。Step2: Determine the required parameters, the number of particles is n, and h is the number of state sets.
Step3:根据马尔科夫预测模型进行交通流量预测,计算出n个粒子参数的和设初始粒子权值 Step3: Predict the traffic flow according to the Markov prediction model, and calculate the n particle parameters and set initial particle weights
-------------k时刻第i个粒子的预测值。 ------------- The predicted value of the ith particle at time k.
-------------k时刻第i个粒子的观测值。 -------------The observed value of the ith particle at time k.
Step4:更新粒子权值。根据公式计算每个粒子所对应的权值 Step4: Update the particle weights. According to the formula Calculate the weight corresponding to each particle
------------k时刻预测第i个粒子时,获得观测值yk的概率。 ------------ Predict the i-th particle at time k , the probability of obtaining the observed value y k .
通过公式(16)权值归一处理得到 Through the weight normalization process of formula (16), we can get
Step5:判断样本重选样过程。采用相似效率方法判断粒子样本是否进行重选样过程。计算有效抽样尺度Neff, Step5: Judge the sample reselection process. The similarity efficiency method is used to judge whether the particle sample is subjected to the resampling process. Calculate the effective sampling scale N eff ,
Nth-------------为门限,门限设定为Nth=2n/3,n为粒子的个数。N th ------------- is the threshold, the threshold is set as N th =2n/3, and n is the number of particles.
Neff-------------为有效抽样尺度。N eff ------------- is the effective sampling scale.
当有效抽样尺度小于设定的门限,即满足Neff≤Nth时,根据随机重选样方法进行重选样。采用新样本粒子重新对交通流进行预测。When the effective sampling scale is smaller than the set threshold, that is, when N eff ≤ N th is satisfied, resampling is performed according to the random resampling method. Traffic flow is re-predicted with new sample particles.
当有效抽样尺度大于设定的门限,即满足Neff>Nth时,进行下一步。When the effective sampling scale is greater than the set threshold, that is, when N eff >N th is satisfied, proceed to the next step.
Step6:预测估计值。公式如下:Step6: Predict the estimated value. The formula is as follows:
-------------k时刻第i个粒子的预测值。 ------------- The predicted value of the ith particle at time k.
-------------归一处理后的权值。 -------------The weights after normalization.
xk-------------k时刻的预测交通流量。x k ------------- Predicted traffic flow at time k.
2、交通流样本确定:2. Traffic flow sample determination:
(1)实验数据选用北京市昌平区某交叉口某进口方向检测器采集的交通流数据,其采集间隔为5min。(1) The experimental data selects the traffic flow data collected by an entrance direction detector at an intersection in Changping District, Beijing, and the collection interval is 5 minutes.
(2)数据集包括了2017年7月21天工作日(周一至周五)全天24小时6048组交通数据,选取其中20天(3~7、10~14、17~21、24~28日)5760组交通数据作为训练样本,确定交通状态集,对第21天(31日)全天流量进行预测。(2) The data set includes 6048 groups of traffic data for 24 hours a day on 21 days (Monday to Friday) in July 2017. Among them, 20 days (3-7, 10-14, 17-21, 24-28) were selected. Day) 5760 groups of traffic data are used as training samples to determine the traffic state set, and predict the flow throughout the day on the 21st day (31st).
(3)以第21天全天288组数据作为测试样本,对全天24小时和早高峰(7:00-8:55)时段数据进行处理,分别与预测结果进行误差分析。(3) 288 groups of data on the 21st day were used as test samples, and the 24-hour and morning peak (7:00-8:55) data were processed, and the error analysis was carried out with the prediction results respectively.
(4)实验过程中,确定间隔I=5的预测结果较优。(4) During the experiment, it is determined that the prediction result with the interval I=5 is better.
3、交通流预测结果分析:3. Analysis of traffic flow prediction results:
(1)将马尔科夫粒子滤波预测结果、传统马尔科夫预测结果与上述获取的第21天交通流测试样本进行对比,并以全天流量和早高峰流量进行分析。如图1、图2所示。(1) Compare the prediction results of Markov particle filtering and traditional Markov prediction with the traffic flow test samples obtained above on the 21st day, and analyze the traffic flow throughout the day and the morning peak flow. As shown in Figure 1 and Figure 2.
(2)由图1可以看出,马尔科夫粒子滤波预测方法可以很好地拟合实际情况,具有与实际交通流相同的变化趋势。传统马尔科夫预测模型较好的描述了该时间段的波动趋势,但预测结果较为粗略,该误差波动大于马尔科夫粒子滤波交通流量预测模型。(2) It can be seen from Figure 1 that the Markov particle filter prediction method can well fit the actual situation and has the same change trend as the actual traffic flow. The traditional Markov prediction model describes the fluctuation trend of this time period well, but the prediction result is rough, and the error fluctuation is larger than that of the Markov particle filter traffic flow prediction model.
4、交通流预测误差分析:4. Traffic flow prediction error analysis:
(1)为了进一步说明马尔科夫粒子滤波模型预测结果的准确性和稳定性,将其预测结果与传统马尔科夫预测模型的预测结果进行对比分析,采用绝对误差ER、相对误差RER、均方根误差RMSE、平均误差ε作为评价指标,其公式如下:(1) In order to further illustrate the accuracy and stability of the prediction results of the Markov particle filter model, the prediction results of the Markov particle filter model are compared with those of the traditional Markov prediction model, and the absolute error ER, relative error RER, mean square The root error RMSE and the average error ε are used as evaluation indicators, and the formulas are as follows:
x-------------交通流的原始值。xx------------The original value of the traffic flow.
-------------交通流量预测值。 ------------- Traffic flow forecast value.
-------------原始交通流量平均值。 ------------- Raw traffic flow average.
n-------------样本个数n-------------number of samples
对比及分析如下图3、图4、图5、图6。The comparison and analysis are as shown in Figure 3, Figure 4, Figure 5, and Figure 6.
由图3、图4中可得,以1h和5min为预测间隔,马尔科夫粒子滤波预测结果的绝对误差波动范围分别在0~60辆、2~10辆以内,而传统马尔科夫预测结果绝对的误差波动范围则在0~110辆、0~23辆以内。因此,马尔科夫粒子滤波预测模型在不同预测间隔的绝对误差都远小于传统马尔科夫预测模型的绝对误差。As can be seen from Figure 3 and Figure 4, with 1h and 5min as the prediction interval, the absolute error fluctuation ranges of the Markov particle filter prediction results are within 0 to 60 vehicles and 2 to 10 vehicles respectively, while the traditional Markov prediction results The absolute error fluctuation range is within 0 to 110 vehicles and 0 to 23 vehicles. Therefore, the absolute error of the Markov particle filter prediction model at different prediction intervals is much smaller than that of the traditional Markov prediction model.
由图5、图6可得,以1h和5min为预测间隔,马尔科夫粒子滤波预测结果的相对误差基本控制在0.28、0.15以下,而传统马尔科夫预测结果的绝对误差则在0.65、0.4以下,马尔科夫粒子滤波交通流预测模型相对误差小且波动性较为平缓。It can be seen from Figure 5 and Figure 6 that with 1h and 5min as the prediction interval, the relative error of the Markov particle filter prediction result is basically controlled below 0.28, 0.15, while the absolute error of the traditional Markov prediction result is 0.65, 0.4 Below, the Markov particle filter traffic flow prediction model has small relative error and smooth fluctuation.
两种算法的根均方差与误差分析如表1、表2所示。The root mean square error and error analysis of the two algorithms are shown in Table 1 and Table 2.
表1两种算法的根均方差Table 1 The root mean square error of the two algorithms
表2两种算法的误差分析Table 2 Error analysis of two algorithms
均方根误差对预测数据的特大或特小误差值非常敏感,能够很好地反映方法预测结果的精密度。由表1结果表明,马尔科夫粒子滤波预测模型的全天、早高峰均方根误差分别为32.94、5.24,都要小于传统马尔科夫预测方法的均方根误差。The root mean square error is very sensitive to the extremely large or extremely small error value of the predicted data, and can well reflect the precision of the method's prediction results. The results in Table 1 show that the root mean square errors of the Markov particle filter prediction model for the whole day and morning peak are 32.94 and 5.24, respectively, which are smaller than the root mean square errors of the traditional Markov prediction method.
由表2结果表明,以1h和5min为预测间隔,马尔科夫粒子滤波预测模型的平均误差分别为6.04%、6.41%,该平均误差小于传统马尔科夫预测方法且不同时间间隔的平均误差相差较小。The results in Table 2 show that with 1h and 5min as the prediction intervals, the average errors of the Markov particle filter prediction model are 6.04% and 6.41%, respectively, which are smaller than the traditional Markov prediction methods and the average errors of different time intervals are different. smaller.
将预测结果与传统马尔科夫模型进行预测精度和误差对比分析,结果表明,提出的基于马尔科夫粒子滤波交通流预测模型适用性较强,且预测精度高。The prediction results are compared with the traditional Markov model for prediction accuracy and error. The results show that the proposed traffic flow prediction model based on Markov particle filter has strong applicability and high prediction accuracy.
发明不局限于上述最佳实施方式,任何人在本发明的启示下都可得出其他各种形式的产品,但不论在其形状或结构上作任何变化,凡是具有与本申请相同或相近似的技术方案,均落在本发明的保护范围之内。The invention is not limited to the above-mentioned best embodiment, and anyone can draw other various forms of products under the inspiration of the present invention, but no matter if any changes are made in its shape or structure, all products with the same or similar characteristics as the present application can be obtained. The technical solutions of the invention all fall within the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910264914.1A CN110020475B (en) | 2019-04-03 | 2019-04-03 | Markov particle filtering method for traffic flow prediction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910264914.1A CN110020475B (en) | 2019-04-03 | 2019-04-03 | Markov particle filtering method for traffic flow prediction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110020475A true CN110020475A (en) | 2019-07-16 |
CN110020475B CN110020475B (en) | 2023-10-10 |
Family
ID=67190440
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910264914.1A Active CN110020475B (en) | 2019-04-03 | 2019-04-03 | Markov particle filtering method for traffic flow prediction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110020475B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110517485A (en) * | 2019-08-09 | 2019-11-29 | 大连理工大学 | A Short-term Traffic Flow Forecasting Method Based on Period Division |
CN111951553A (en) * | 2020-08-17 | 2020-11-17 | 上海电科智能系统股份有限公司 | Prediction method based on traffic big data platform and mesoscopic simulation model |
CN113408155A (en) * | 2021-08-03 | 2021-09-17 | 中国人民解放军海军航空大学青岛校区 | Wartime aviation material demand prediction method |
CN114664089A (en) * | 2022-04-06 | 2022-06-24 | 杭州电子科技大学 | PI control method for traffic flow of urban road traffic system |
CN115691137A (en) * | 2022-11-01 | 2023-02-03 | 北京航空航天大学 | A Multimodal Data Prediction Method Based on Causal Markov Model |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101819682A (en) * | 2010-04-09 | 2010-09-01 | 哈尔滨工程大学 | Target tracking method based on Markov chain Monte-Carlo particle filtering |
CN103413443A (en) * | 2013-07-03 | 2013-11-27 | 太原理工大学 | Short-term traffic flow forecasting method based on hidden Markov model |
WO2016095708A1 (en) * | 2014-12-16 | 2016-06-23 | 高德软件有限公司 | Traffic flow prediction method, and prediction model generation method and device |
CN109377752A (en) * | 2018-10-19 | 2019-02-22 | 桂林电子科技大学 | Short-term traffic flow change prediction method, device, computer equipment and storage medium |
-
2019
- 2019-04-03 CN CN201910264914.1A patent/CN110020475B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101819682A (en) * | 2010-04-09 | 2010-09-01 | 哈尔滨工程大学 | Target tracking method based on Markov chain Monte-Carlo particle filtering |
CN103413443A (en) * | 2013-07-03 | 2013-11-27 | 太原理工大学 | Short-term traffic flow forecasting method based on hidden Markov model |
WO2016095708A1 (en) * | 2014-12-16 | 2016-06-23 | 高德软件有限公司 | Traffic flow prediction method, and prediction model generation method and device |
CN109377752A (en) * | 2018-10-19 | 2019-02-22 | 桂林电子科技大学 | Short-term traffic flow change prediction method, device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
于泉 等: "交通流预测的马尔科夫粒子滤波方法研究" * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110517485A (en) * | 2019-08-09 | 2019-11-29 | 大连理工大学 | A Short-term Traffic Flow Forecasting Method Based on Period Division |
CN110517485B (en) * | 2019-08-09 | 2021-05-07 | 大连理工大学 | Short-term traffic flow prediction method based on time interval division |
CN111951553A (en) * | 2020-08-17 | 2020-11-17 | 上海电科智能系统股份有限公司 | Prediction method based on traffic big data platform and mesoscopic simulation model |
CN113408155A (en) * | 2021-08-03 | 2021-09-17 | 中国人民解放军海军航空大学青岛校区 | Wartime aviation material demand prediction method |
CN114664089A (en) * | 2022-04-06 | 2022-06-24 | 杭州电子科技大学 | PI control method for traffic flow of urban road traffic system |
CN115691137A (en) * | 2022-11-01 | 2023-02-03 | 北京航空航天大学 | A Multimodal Data Prediction Method Based on Causal Markov Model |
CN115691137B (en) * | 2022-11-01 | 2024-04-30 | 北京航空航天大学 | A multimodal data prediction method based on causal Markov model |
Also Published As
Publication number | Publication date |
---|---|
CN110020475B (en) | 2023-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110020475A (en) | A kind of Markov particle filter method of forecasting traffic flow | |
CN111144286A (en) | An urban PM2.5 concentration prediction method integrating EMD and LSTM | |
CN103871246B (en) | Based on the Short-time Traffic Flow Forecasting Methods of road network spatial relation constraint Lasso | |
CN109214581B (en) | A wind speed prediction method along railway line considering wind direction and confidence interval | |
CN108230049A (en) | The Forecasting Methodology and system of order | |
CN110210686A (en) | A kind of electricity charge risk model construction method of electric power big data | |
CN109146161A (en) | Merge PM2.5 concentration prediction method of the stack from coding and support vector regression | |
CN111860989B (en) | LSTM neural network short-time traffic flow prediction method based on ant colony optimization | |
CN113554466A (en) | Construction method, forecasting method and device for short-term electricity consumption forecasting model | |
CN107293118B (en) | A short-term prediction method for traffic speed dynamic interval | |
CN109637128A (en) | A kind of grey Verhulst Short-time Traffic Flow Forecasting Methods and system based on Markov | |
CN113159374A (en) | Data-driven urban traffic flow rate mode identification and real-time prediction early warning method | |
CN112232604A (en) | Prediction method of network traffic extraction based on Prophet model | |
CN111667694B (en) | A Short-term Traffic Flow Prediction Method Based on Improved DTW-KNN | |
CN110968952A (en) | Passenger traffic forecast method based on intelligent function combination optimization GM(1,1) model | |
CN105303835B (en) | A Short-term Prediction Method of Road Traffic Flow State | |
CN106372739A (en) | Demand response effect evaluation method based on demand response baseline | |
Hasan et al. | Forecasting deterioration of bridge components from visual inspection data | |
CN110807508B (en) | Bus Peak Load Forecasting Method Considering Complicated Meteorological Effects | |
CN114881347A (en) | Natural gas load prediction interval estimation method adopting weighted residual clustering | |
CN117519058B (en) | Technological parameter control method and system for blade protection film | |
CN118297408A (en) | Urban subway operation security risk assessment method and system | |
CN117851908A (en) | Improved on-line low-voltage transformer area electric energy meter misalignment monitoring method and device | |
CN115620525B (en) | Short-term traffic passenger demand prediction method based on time-varying dynamic Bayesian network | |
Turki et al. | A Markova-Chain Approach to Model Vehicles Traffic Behavior |
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 |