CN106251642B - A kind of public transport road chain speed calculation method based on real-time bus GPS data - Google Patents
A kind of public transport road chain speed calculation method based on real-time bus GPS data Download PDFInfo
- Publication number
- CN106251642B CN106251642B CN201610828864.1A CN201610828864A CN106251642B CN 106251642 B CN106251642 B CN 106251642B CN 201610828864 A CN201610828864 A CN 201610828864A CN 106251642 B CN106251642 B CN 106251642B
- Authority
- CN
- China
- Prior art keywords
- speed
- link
- sample
- time
- bus
- 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.)
- Active
Links
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/052—Detecting movement of traffic to be counted or controlled with provision for determining speed or overspeed
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明公开了一种基于实时公交车GPS数据的公交路链速度计算方法,属于智能交通技术,包括速度样本获取,路链速度合成两部分。其中速度样本获取这一部分经过维护GPS采样点队列,生成关键采样点序列,进而计算速度样本;路链速度合成这一部分经过维护路链的速度样本队列,确定用于计算的速度样本量,进而合成得到路链速度。本发明提供的公交路链速度计算方法,通过生成关键采样点序列再进而计算速度样本的方式,消除了站点范围内公交车停靠站对路链速度计算的影响,提高了公交路链速度的准确度。本发明根据速度样本队列的状态动态确定用于计算的样本量,并根据实时变化的交通情况进行动态计算,具有较好的实时性和准确性。
The invention discloses a bus link speed calculation method based on real-time bus GPS data, which belongs to the intelligent transportation technology, and includes two parts: speed sample acquisition and link speed synthesis. Among them, the speed sample acquisition part maintains the GPS sampling point queue to generate a key sampling point sequence, and then calculates the speed sample; the link speed synthesis part maintains the speed sample queue of the road link, determines the speed sample size for calculation, and then synthesizes Get the link speed. The bus link speed calculation method provided by the present invention eliminates the influence of bus stops on the link speed calculation within the station range by generating a sequence of key sampling points and then calculating the speed samples, and improves the accuracy of the bus link speed Spend. The invention dynamically determines the sample size used for calculation according to the state of the speed sample queue, and performs dynamic calculation according to the real-time changing traffic conditions, and has better real-time performance and accuracy.
Description
技术领域technical field
本发明属于智能交通技术领域,特别涉及一种基于实时公交车GPS数据的公交路链速度计算方法。The invention belongs to the technical field of intelligent transportation, and in particular relates to a bus link speed calculation method based on real-time bus GPS data.
背景技术Background technique
随着城市现代化程度不断加深,机动车保有量快速增长,市民出行需求呈现多样化、个性化的特征,城市交通压力日益增大。国内外大城市发展经验表明,要解决城市交通问题,尤其是特大型国际城市的交通问题,必须充分发挥公共交通的重要作用。事实证明,智能交通系统是缓解城市交通拥堵、解决大城市交通困境的有效手段。目前智能交通系统的研究热点如实时路况和实时公交到站时间预测等服务中,都需要公交路链速度的实时计算结果,以支撑上述功能服务。然而,交通情况存在复杂多变且不稳定的特点,如何实时准确地获取公交路网路链的行车速度成为了智能公交系统的一个关键点。目前国内外在道路计算方面开展了许多研究,主要有多元回归估计法、时间序列模型、卡尔曼滤波法和基于历史数据相似性模型等。With the continuous deepening of urban modernization, the number of motor vehicles is increasing rapidly, and the travel needs of citizens are diversified and personalized, and the pressure on urban traffic is increasing day by day. The development experience of large cities at home and abroad shows that to solve urban traffic problems, especially in super-large international cities, it is necessary to give full play to the important role of public transport. Facts have proved that the intelligent transportation system is an effective means to alleviate urban traffic congestion and solve the traffic dilemma in big cities. At present, the research hotspots of intelligent transportation systems, such as real-time traffic conditions and real-time bus arrival time prediction services, all require real-time calculation results of bus link speeds to support the above-mentioned functional services. However, the traffic situation is complex, changeable and unstable. How to obtain the driving speed of the bus network link in real time and accurately has become a key point of the intelligent bus system. At present, many studies have been carried out on road calculation at home and abroad, mainly including multiple regression estimation method, time series model, Kalman filter method and similarity model based on historical data.
多元回归估计法是通过分析事物之间的因果关系和影响程度进行预测的方法,如分析道路速度与线路结构、经过红绿灯路口数量、中间站点的个数、天气等因素的相关性,构建回归方程,根据这些自变量在预测时段的变化对因变量公交车运行时间进行预测。该方法要求这些影响因素是独立的,这严格限制了回归分析法的应用。The multiple regression estimation method is a method of predicting by analyzing the causal relationship and the degree of influence between things, such as analyzing the correlation between road speed and line structure, the number of traffic light intersections, the number of intermediate stations, weather and other factors, and constructing a regression equation , the dependent variable bus running time is predicted based on changes in these independent variables over the forecast period. This method requires these influencing factors to be independent, which strictly limits the application of regression analysis.
时间序列预测是通过发现研究对象过去的变化规律来推断其未来取值的方法,其预测的准确性取决于所预测的行程时间变化规律与历史规律的匹配度,具有一定的局限性。Time series forecasting is a method of inferring the future value of the research object by discovering the past change law of the research object. The accuracy of the prediction depends on the matching degree between the predicted travel time change law and the historical law, which has certain limitations.
卡尔曼滤波是一种高效率的递归滤波器,能够从一组包含噪声的对物体位置的观察序列中,对当前位置和将来位置进行估计。卡尔曼滤波是预测短时交通流量的一种方法,具有较好的鲁棒性,可对外部环境做出有效的反应。但是,它仅仅在预测未来一两个时间段内的运行时间是有效的,当预测路程或者时间整体很长的时候,预测精度较低。Kalman filter is a high-efficiency recursive filter that can estimate the current position and future position from a set of observation sequences of object positions that contain noise. Kalman filtering is a method of predicting short-term traffic flow, which has good robustness and can respond effectively to the external environment. However, it is only effective in predicting the running time in one or two time periods in the future. When the predicted distance or overall time is very long, the prediction accuracy is low.
基于历史数据相似性模型的预测方法是建立在交通运行具有循环变化的规律性的前提下,通过对历史数据进行分析,以历史相同时期相同路链的速度预测当前公交路网的路链速度。在此基础上,也有研究进一步提出基于路况相似性的道路速度预测机制,提出了路况信息多元组,以及路况信息多元组相似性计算方法,根据相似的历史路况进行预测。这种方法完全基于历史数据,没有考虑到实时变化的交通信息,实时性和准确性较差。The prediction method based on the similarity model of historical data is based on the premise that the traffic operation has the regularity of cyclical changes. Through the analysis of historical data, the current link speed of the current bus network is predicted by the speed of the same link in the same historical period. On this basis, some studies have further proposed a road speed prediction mechanism based on road condition similarity, proposed road condition information tuples, and a method for calculating the similarity of road condition information tuples, and made predictions based on similar historical road conditions. This method is entirely based on historical data, does not take into account real-time changing traffic information, poor real-time performance and accuracy.
发明内容Contents of the invention
本发明的技术解决问题:克服站点延误对速度计算的影响,解决不同速度样本数量下路链覆盖率不足的问题,提供一种基于实时公交车GPS数据的公交路链速度计算方法,解决公交路链速度计算的实时性需求,提升路链的覆盖率和准确率,为公交到站预报和公交路网实时路况表达提供数据支撑,具有鲁棒性和普适性。The technology of the present invention solves the problem: overcomes the impact of station delay on speed calculation, solves the problem of insufficient link coverage under different speed sample numbers, provides a bus link speed calculation method based on real-time bus GPS data, and solves the problem of bus link speed. The real-time requirement of link speed calculation improves the coverage and accuracy of the link, and provides data support for bus arrival forecast and real-time road condition expression of the bus network, which is robust and universal.
本发明对实时采集的并匹配到公交线路采样点的实时公交车GPS点数据进行预处理,然后按车辆分类并维护GPS采样点队列,提取关键点计算出消除站点影响的速度样本;采用动态窗口机制维护路链速度样本,最后将速度样本合成为路链速度并表达。The invention preprocesses the real-time bus GPS point data collected in real time and matched to the bus line sampling point, then classifies and maintains the GPS sampling point queue according to the vehicle, extracts key points and calculates the speed sample for eliminating the influence of the station; adopts a dynamic window The mechanism maintains link speed samples, and finally synthesizes the speed samples into link speed and expresses it.
本发明提供的基于实时公交车GPS数据的公交路链速度计算方法在速度样本获取阶段为每辆车建立一个GPS采样点队列,存储匹配后的GPS采样点,使用时间阈值控制队列的存储窗口大小,然后以站点为中心建立地理围栏,根据队列中排好序的采样点信息以及地理围栏的坐标范围确定用于计算速度样本的关键点,进而提取每辆公交车的关键点序列,计算出速度样本;在路链速度合成阶段为每个路链维护其速度队列,把上一阶段计算得到的速度样本加入该车所覆盖到的路链的速度队列中,根据队列样本数量动态合成路链速度,最后将位置相邻的多个短路链速度平均化后作为每个路链的最终速度。The bus link speed calculation method based on real-time bus GPS data provided by the present invention establishes a GPS sampling point queue for each vehicle in the speed sample acquisition stage, stores the matched GPS sampling points, and uses the time threshold to control the storage window size of the queue , and then establish a geofence with the station as the center, determine the key points used to calculate the speed sample according to the sorted sampling point information in the queue and the coordinate range of the geofence, and then extract the key point sequence of each bus to calculate the speed Sample; in the link speed synthesis stage, maintain its speed queue for each link, add the speed samples calculated in the previous stage to the speed queue of the link covered by the vehicle, and dynamically synthesize the link speed according to the number of queue samples , and finally average the velocity of multiple short-circuit links adjacent to each other as the final velocity of each link.
本发明具体包括速度样本获取和路链速度合成步骤;所述速度样本获取步骤包括维护GPS采样点队列,生成关键采样点序列,进而得到速度样本;所述路链速度合成步骤包括维护路链的速度样本队列,确定用于计算的速度样本量,进而合成得到路链速度。The present invention specifically includes the steps of speed sample acquisition and road link speed synthesis; the speed sample acquisition step includes maintaining the GPS sampling point queue, generating a sequence of key sampling points, and then obtaining speed samples; the road link speed synthesis step includes maintaining the road link The speed sample queue determines the number of speed samples used for calculation, and then synthesizes to obtain the link speed.
所述维护GPS采样点队列包括:The maintenance GPS sampling point queue includes:
为每辆公交车建立一个GPS采样点队列,每插入一个最新的GPS点,判断该GPS点的时间戳是否为最新,若不为最新,则不予操作,若为最新,则触发更新队列信息;然后判断队头和队尾的GPS点时间戳差值是否满足小于时间阈值的要求,循环判断直到满足条件;最后更新队头采样点信息。Create a queue of GPS sampling points for each bus, and each time a newest GPS point is inserted, it is judged whether the timestamp of the GPS point is the latest. ; Then judge whether the difference between the GPS point timestamps at the head of the queue and the tail of the queue meets the requirement of being less than the time threshold, and judge in a loop until the condition is met; finally update the sampling point information at the head of the queue.
所述生成关键采样点序列包括:Described generation key sampling point sequence comprises:
计算路链速度的线程每经过t0时间周期触发一次,首先以每个站点的GPS坐标为中心,划定地理围栏;遍历队列中的GPS采样点,选择在站点地理围栏范围外的第一个采样点,作为用于计算公交车行驶速度的关键采样点;最后判断队头和队尾的采样点,如果在站点的地理围栏范围外就认为采样点是关键采样点,进而将每个t0周期内一个车辆的关键采样点生成关键采样点序列。The thread for calculating the link speed is triggered every time period t 0. First, the GPS coordinates of each site are centered to delineate a geofence; the GPS sampling points in the queue are traversed, and the first one outside the range of the site geofence is selected. Sampling point, as the key sampling point used to calculate the speed of the bus; finally judge the sampling point of the head and tail of the queue, if it is outside the geographic fence range of the site, the sampling point is considered to be a key sampling point, and then each t 0 The critical sampling points of a vehicle within a period generate a sequence of critical sampling points.
所述速度样本包括:The velocity samples include:
遍历关键采样点序列,每两个采样点作为一对进行计算,由关键采样点的信息计算出采样点间的距离和时间差,进而应用速度公式得到每两个关键采样点间的速度,作为速度样本加入到该条路链的速度样本队列中。Traverse the sequence of key sampling points, calculate every two sampling points as a pair, calculate the distance and time difference between the sampling points from the information of the key sampling points, and then apply the speed formula to get the speed between every two key sampling points, as the speed The sample is added to the speed sample queue of this link.
所述维护路链的速度样本队列步骤包括:The speed sample queue step of maintaining the road link includes:
为每个路链维护一个速度样本队列,每插入一个新的速度样本即更新队列信息,循环判断队列中每个速度样本的时间戳信息,距当前时间超过所设时间阈值的样本数据将从队列中移除。Maintain a speed sample queue for each link, update the queue information every time a new speed sample is inserted, and cyclically judge the timestamp information of each speed sample in the queue, and the sample data that exceeds the set time threshold from the current time will be removed from the queue removed from the .
所述基于k近邻加权的速度样本融合包括:The speed sample fusion based on k-nearest neighbor weighting includes:
对于非高速路段,比较时间段[0,T1]、[T1,T2]、[T2,T*]的速度样本集合中的速度样本数量与所设阈值N1和N2的大小,其中T1和T2为划分速度样本集合的两个时间参数,且T1<T2,T*为所取速度样本集合距当前时刻的时间跨度(可参考图3);通过比较关系确定使用两种基于k近邻加权的速度样本融合方法中的一种,用于计算的速度样本集合表示为:For non-highway sections, compare the number of speed samples in the speed sample sets of time periods [0, T 1 ], [T 1 , T 2 ], [T 2 , T * ] with the size of the set thresholds N 1 and N 2 , where T 1 and T 2 are two time parameters for dividing the speed sample set, and T 1 <T 2 , T * is the time span between the taken speed sample set and the current moment (refer to Figure 3); determine by comparing the relationship Using one of the two velocity sample fusion methods based on k-nearest neighbor weighting, the set of velocity samples used for calculation is expressed as:
{V1,...,Vi,...,Vk}{V 1 ,...,V i ,...,V k }
第一种加权方案为距离实时时间越近的速度样本所具有的权值越大的方案,ti表示第i样本时间距离当前时间的差值绝对值,权值公式如下:The first weighting scheme is the scheme that the closer the speed sample is to the real time, the greater the weight. t i represents the absolute value of the difference between the i-th sample time and the current time. The weight formula is as follows:
速度样本融合公式如下:The speed sample fusion formula is as follows:
另外,不同的时间邻近程度分为两个不同的速度样本集合,集合内采用等权值的平均方法,集合间遵循时间越近权值越大的方案,即第二种加权方案,集合内的速度样本个数分别为k1、k2,权值公式如下:In addition, different time proximity is divided into two different speed sample sets. The average method of equal weight is used in the set. The closer the time is, the larger the weight is followed between the sets, that is, the second weighting scheme. The number of speed samples is k 1 and k 2 respectively, and the weight formula is as follows:
速度样本融合公式如下:The speed sample fusion formula is as follows:
对于高速路段,采用第一种加权方案。For the high-speed section, the first weighting scheme is adopted.
所述路链速度合成包括:The link speed synthesis includes:
对于同一性质的多条相连接路链,如果连接各路链的不是红绿灯路口、收费站、岔路口一类具有延缓车辆行驶作用的连接,并且路链方向的角度变化α满足|α|≤α0,α0>0,其中α0为角度阈值(角度阈值取30度),则把这些相连接的路链看作一条合成路链,如果这条合成路链由n个路链组成,且其中m个路链有路链速度结果,分别用{V1,...,Vi,...,Vm}表示,Vjunc表示合成路链的速度,则合成路链的路链速度为:For multiple connected road links of the same nature, if the connection between each road link is not a traffic light intersection, toll station, fork, etc., which have the effect of delaying vehicle travel, and the angle change α of the road link direction satisfies |α|≤α 0 , α 0 >0, where α 0 is the angle threshold (the angle threshold is 30 degrees), then these connected links are regarded as a synthetic link, if this synthetic link is composed of n links, and Among them, m links have link speed results, respectively represented by {V 1 ,...,V i ,...,V m }, and V junc represents the speed of the synthesized link, then the link speed of the synthesized link for:
本发明与现有技术相比的优点在于:本发明提供的公交路链速度计算方法,通过生成关键采样点序列再进而计算速度样本的方式,消除了站点范围内公交车停靠站对路链速度计算的影响,提高了公交路链速度的准确度。本发明根据速度样本队列的状态动态确定用于计算的样本量,并根据实时变化的交通情况进行动态计算,具有较好的实时性和准确性。Compared with the prior art, the present invention has the advantages that: the method for calculating the speed of the bus link provided by the present invention, by generating a sequence of key sampling points and then calculating the speed samples, eliminates the influence of the speed of the bus stop on the road link within the range of the station. The calculated impact improves the accuracy of bus link speeds. The invention dynamically determines the sample size used for calculation according to the state of the speed sample queue, and performs dynamic calculation according to the real-time changing traffic conditions, and has better real-time performance and accuracy.
附图说明Description of drawings
图1为本发明实施例提供的基于实时公交车GPS数据的公交运营路链速度计算方法流程图;Fig. 1 is the flow chart of the bus operation link speed calculation method based on real-time bus GPS data provided by the embodiment of the present invention;
图2为本发明实施例中生成关键采样点序列的原理示意图;Fig. 2 is a schematic diagram of the principle of generating a sequence of key sampling points in an embodiment of the present invention;
图3为本发明实施例中速度样本集合按时间梯度管理的原理示意图。FIG. 3 is a schematic diagram of the principle of managing velocity sample sets according to time gradients in 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 below in conjunction with the accompanying drawings.
本发明提供的基于实时公交车GPS数据的公交路链速度计算方法在速度样本获取阶段为每辆车建立一个GPS采样点队列,存储匹配后的GPS采样点,使用时间阈值控制队列的存储窗口大小,然后以站点为中心建立地理围栏,根据队列中排好序的采样点信息以及地理围栏的坐标范围确定用于计算速度样本的关键点,进而提取每辆公交车的关键点序列,计算出速度样本;在路链速度合成阶段为每个路链维护其速度队列,把上一阶段计算得到的速度样本加入该车所覆盖到的路链的速度队列中,根据队列样本数量动态确定用于计算的速度样本量,并根据速度样本在不同时间范围的数量分布情况确定合适的速度融合方案,进而得到该路链的合成速度,最后将位置相邻的多个短路链速度平均化合成表达后,赋给每个路链作为其最终速度。The bus link speed calculation method based on real-time bus GPS data provided by the present invention establishes a GPS sampling point queue for each vehicle in the speed sample acquisition stage, stores the matched GPS sampling points, and uses the time threshold to control the storage window size of the queue , and then establish a geofence with the station as the center, determine the key points used to calculate the speed sample according to the sorted sampling point information in the queue and the coordinate range of the geofence, and then extract the key point sequence of each bus to calculate the speed Sample; maintain its speed queue for each road link in the link speed synthesis stage, add the speed samples calculated in the previous stage to the speed queue of the road link covered by the vehicle, and dynamically determine the number of queue samples used for calculation The number of speed samples, and determine the appropriate speed fusion scheme according to the distribution of the number of speed samples in different time ranges, and then obtain the synthetic speed of the link, and finally average the speed of multiple short-circuit links adjacent to the synthetic expression, Assigned to each link as its final velocity.
图1为本发明实施例提供的基于实时公交车GPS数据的公交路链速度计算方法流程图,包括以下步骤:Fig. 1 is the flow chart of the bus link speed calculation method based on real-time bus GPS data provided by the embodiment of the present invention, comprising the following steps:
步骤101、速度样本获取。Step 101, speed sample acquisition.
步骤1011、维护GPS采样点队列。Step 1011, maintaining the queue of GPS sampling points.
为每辆公交车建立一个GPS采样点队列,存储T时间内该车匹配并筛选后的GPS采样点。每插入一个最新的GPS点,判断其时间戳是否为最新,若不为最新,则不予操作,若为最新,则触发更新队列信息,包括队列中采样点数量,队尾采样点信息,队列更新时间等;然后判断队头和队尾的GPS点时间戳差值是否满足小于时间阈值T的要求,若不满足(即时间差大于阈值T,依据发车间隔时间,并考虑公交车辆较少的路段,T取15分钟),则剔除队头的GPS采样点,循环判断直到满足条件,最后更新队列的队头采样点信息。Establish a GPS sampling point queue for each bus, and store the matched and filtered GPS sampling points of the bus within T time. Each time a newest GPS point is inserted, it is judged whether its timestamp is the latest. If it is not the latest, no operation will be performed. If it is the latest, it will trigger to update the queue information, including the number of sampling points in the queue, the information of the sampling points at the end of the queue, and the queue. Update time, etc.; then judge whether the GPS point timestamp difference between the head of the queue and the tail of the queue meets the requirement of being less than the time threshold T. , T takes 15 minutes), then the GPS sampling point at the head of the queue is eliminated, and the loop judgment is performed until the condition is met, and finally the information of the sampling point at the head of the queue is updated.
步骤1012、生成关键采样点序列。Step 1012, generating a sequence of key sampling points.
计算路链速度的线程每经过t0 时间触发一次。为消除停靠站对公交车整体行驶速度的影响,本发明对GPS采样点队列进行切分,进而提取关键点序列,用于计算两点间公交车辆的行驶速度。The thread for calculating the link speed is triggered every time t 0 passes. In order to eliminate the influence of stops on the overall driving speed of the bus, the present invention divides the queue of GPS sampling points, and then extracts the sequence of key points for calculating the driving speed of the bus between two points.
图2为提取关键采样点序列的示意图。首先以每个站点的GPS坐标为中心,划定半径为R的地理围栏。遍历队列中按时间顺序存储的GPS采样点,选择在站点地理围栏范围外的第一个采样点(认为是进站前和出站后的第一个采样点),作为用于计算公交车行驶速度的关键采样点;对队头和队尾的采样点进行判断,如果队头或队尾的采样点在站点的地理围栏范围内就不作为关键采样点,如果在站点的地理围栏范围外就认为其是关键采样点。Figure 2 is a schematic diagram of extracting key sampling point sequences. First, take the GPS coordinates of each site as the center, and delineate a geographic fence with a radius of R. Traverse the GPS sampling points stored in chronological order in the queue, and select the first sampling point outside the geographic fence range of the site (considered to be the first sampling point before entering the station and after exiting the station), as the first sampling point used to calculate the bus travel The key sampling point of the speed; judge the sampling points of the head and the tail of the team, if the sampling point of the head or the tail of the team is within the geographical fence range of the site, it will not be regarded as a key sampling point, if it is outside the geographic fence range of the site, it will be Consider it a key sampling point.
对于从T时间范围内的公交车B的采样点队列生成关键采样点序列的步骤,可以得到如下公式:For the step of generating the sequence of key sampling points from the sampling point queue of bus B within the T time range, the following formula can be obtained:
{Δs1,Δs2,...,Δsn|T,B}=sp(Δs|T,B);{Δs 1 ,Δs 2 ,...,Δs n |T,B}=sp(Δs|T,B);
{Δt1,Δt2,...,Δtn|T,B}=sp(Δt|T,B);{Δt 1 ,Δt 2 ,...,Δt n |T,B}=sp(Δt|T,B);
其中Δs与Δt为采样点所携带信息计算得到的距离和时间差值,sp函数的功能是用站点对采样点队列进行切割,进而得到一系列关键采样点之间的距离和时间差信息。生成的关键采样点序列用于计算每个车辆在该行驶范围内的速度样本,并应用到各相应路链。步骤1013、计算速度样本。用成对的关键点计算两点间公交车辆的行驶速度。Among them, Δs and Δt are the distance and time difference calculated from the information carried by the sampling points. The function of the sp function is to cut the queue of sampling points with the station, and then obtain the distance and time difference information between a series of key sampling points. The generated sequence of key sampling points is used to calculate the speed samples of each vehicle within the driving range and applied to each corresponding road link. Step 1013, calculating velocity samples. Use pairs of keypoints to calculate the speed of a transit vehicle between two points.
遍历关键采样点序列,每两个采样点作为一对进行计算。由关键采样点的GPS信息计算出采样点间的距离,由关键采样点的时间戳信息计算出采样点间的时间差,进而应用速度公式得到每两个关键采样点间的速度vi。Traverse the sequence of key sampling points, and calculate every two sampling points as a pair. The distance between sampling points is calculated from the GPS information of key sampling points, the time difference between sampling points is calculated from the time stamp information of key sampling points, and the speed v i between every two key sampling points is obtained by applying the speed formula.
将计算得到的关键采样点间的行车速度加入到两采样点间经过的所有路链的速度样本队列中。每个速度样本会被多个路链所应用,用于预测路链速度。The calculated driving speed between key sampling points is added to the speed sample queue of all links passing between two sampling points. Each velocity sample is used by multiple links to predict link velocity.
步骤102、路链速度合成。Step 102, link speed synthesis.
步骤1021、维护路链的速度样本队列。Step 1021, maintain the speed sample queue of the link.
为每个路链维护其速度样本队列,把上一阶段计算得到的速度样本加入该车所覆盖到的路链的速度队列中,每插入一个新的速度样本即更新队列信息,由于接收到各公交车辆的实时GPS有时间上的差异,所以不对队列中的速度样本排序。路链速度样本队列的时间窗口大小为T*,每个相隔t0的计算周期中,循环判断队列中每个速度样本的时间戳信息,距当前时间超过T*的样本数据将从队列中移除。Maintain its speed sample queue for each road link, add the speed samples calculated in the previous stage to the speed queue of the road link covered by the vehicle, and update the queue information every time a new speed sample is inserted. The real-time GPS of the bus vehicles has a time difference, so the speed samples in the queue are not sorted. The time window size of the link speed sample queue is T * . In each calculation cycle with an interval of t 0 , the time stamp information of each speed sample in the queue is cyclically judged. The sample data that is more than T * from the current time will be removed from the queue. remove.
步骤1022、确定用于计算的样本量。Step 1022, determine the sample size used for calculation.
对于不同性质的路段,获得用于计算的样本量的方案有所不同。对于非高速路段,按照以下规则选取样本量。For road sections of different nature, the schemes to obtain the sample size for calculation are different. For non-highway sections, the sample size is selected according to the following rules.
图3为速度样本集合按时间梯度管理的原理示意图。Fig. 3 is a schematic diagram of the principle of managing the speed sample set according to the time gradient.
速度样本队列中存储了T*时间内的速度样本,将速度样本队列按时间阈值划分为3个梯度,分别为距离当前时间[0,T1]、[T1,T2]、[T2,T*]的速度样本集合,其中T1和T2为划分速度样本集合的两个时间阈值,且T1<T2,T*为所取速度样本集合距当前时刻的时间跨度,其所包含的样本数量分别为n1、n2、n3,设定样本数量的两个阈值为N1和N2,其中N1<N2,需要确定用于计算的速度样本数k1和k2。Speed samples within T * time are stored in the speed sample queue, and the speed sample queue is divided into three gradients according to the time threshold, which are [0,T 1 ], [T 1 ,T 2 ], [T 2 , T * ] velocity sample set, where T 1 and T 2 are two time thresholds for dividing the velocity sample set, and T 1 < T 2 , T * is the time span between the selected velocity sample set and the current moment, and its The number of included samples is n 1 , n 2 , n 3 respectively, and the two thresholds for setting the number of samples are N 1 and N 2 , where N 1 < N 2 , it is necessary to determine the number of speed samples k 1 and k for calculation 2 .
首先判断[0,T1]内速度样本数量n1,若n1≥N1,说明该路段为车辆密集路段,选取0-T1内n1个速度样本用于计算,选取第二种加权方案,令k1=n1,继续步骤1023;First judge the number n 1 of speed samples in [0, T 1 ], if n 1 ≥ N 1 , it means that the road section is densely packed with vehicles, select n 1 speed samples in 0-T 1 for calculation, and select the second weighting Scheme, let k 1 =n 1 , continue to step 1023;
若n1<N1,说明短时间内速度样本较少,不具有代表性,考虑扩大速度样本集合;判断[0,T2]内速度样本数量n1+n2,若n1+n2>N2,则选取[0,T2]内n1+n2个速度样本用于计算,选取第二种加权方案,令k1=n1,k2=n2,继续步骤1023;If n 1 <N 1 , it means that there are few speed samples in a short period of time, which is not representative. Consider expanding the speed sample set; judge the number of speed samples in [0,T 2 ] n 1 +n 2 , if n 1 +n 2 >N 2 , select n 1 +n 2 speed samples in [0, T 2 ] for calculation, select the second weighting scheme, set k 1 =n 1 , k 2 =n 2 , and continue to step 1023;
若N1<n1+n2<N2,选取第一种加权方案,令k1=n1+n2,继续步骤1023;If N 1 <n 1 +n 2 <N 2 , select the first weighting scheme, set k 1 =n 1 +n 2 , and continue to step 1023;
若n1+n2<N1,且n1+n2+n3>N1,选取第一种加权方案,令k1=n1+n2+n3,继续步骤1023;If n 1 +n 2 <N 1 , and n 1 +n 2 +n 3 >N 1 , select the first weighting scheme, set k 1 =n 1 +n 2 +n 3 , and continue to step 1023;
若n1+n2+n3<N1,不对该路链进行计算。If n 1 +n 2 +n 3 <N 1 , the link is not calculated.
对于高速路段,其有停车站少,公交车辆不密集,公交车速度相对稳定等特性,所以本发明实施例选取T2时间内的n个速度样本用于计算,选取第一种加权方案,令k1=n,继续步骤1023。For the high - speed road section, it has the characteristics of few parking stops, less dense buses, and relatively stable bus speeds. Therefore, the embodiment of the present invention selects n speed samples within T2 for calculation, and selects the first weighting scheme, so that k 1 =n, go to step 1023 .
步骤1023、基于k近邻加权的速度样本融合。Step 1023, speed sample fusion based on k-nearest neighbor weighting.
由步骤1022得到的k个样本与预测路链的速度已经是空间上邻近的了,所以从时间邻近上考虑权值的分配,因选取的样本量不同而采取不同的k邻近加权方案,用于计算的速度样本集合表示为:The k samples obtained in step 1022 are already spatially adjacent to the speed of the predicted link, so the distribution of weights is considered in terms of temporal proximity, and different k-proximity weighting schemes are adopted due to the different sample sizes selected. The computed set of velocity samples is expressed as:
{V1,...,Vi,...,Vk}{V 1 ,...,V i ,...,V k }
第一种加权方案中距离实时时间越近的速度样本所具有的权值越大,权值与样本时间距当前的时间差值成反比,ti表示第i样本时间距离当前时间的差值绝对值,权值公式如下:In the first weighting scheme, the closer the speed sample is to the real time, the greater the weight, and the weight is inversely proportional to the time difference between the sample time and the current time. t i represents the absolute difference between the i-th sample time and the current time. value, the weight formula is as follows:
速度样本融合公式如下:The speed sample fusion formula is as follows:
第二种加权方案中将速度样本按不同的时间邻近程度分为不同的速度样本集合,集合内采用等权值的平均方法,集合间遵循时间越近权值越大的原则。用于计算的速度样本集合表示为:In the second weighting scheme, the speed samples are divided into different speed sample sets according to different time proximity, and the average method of equal weight is used in the set, and the principle that the closer the time is, the greater the weight is followed between the sets. The set of velocity samples used for calculation is expressed as:
{V1,...,Vi,...,Vk1}{V 1 ,...,V i ,...,V k1 }
{Vk1+1,...,Vj,...,Vk2}{V k1+1 ,...,V j ,...,V k2 }
该方案权值公式如下:The scheme weight formula is as follows:
速度样本融合公式如下:The speed sample fusion formula is as follows:
步骤1024、相邻路链的速度合成。Step 1024, combining speeds of adjacent links.
为了满足公交路链速度的实时计算需求和结果的完整性,本发明提出一种相邻路链的速度合成方法来解决该问题。对于同一性质的多条相连接路链,如果连接各路链的不是红绿灯路口、收费站以及岔路口一类具有延缓车辆行驶作用的连接,并且路链方向的角度变化α满足|α|≤α0(α0>0),其中α0为角度阈值,则把这些相连接的路链看做一条合成路链,如果该合成路链由n个路链组成,且其中m个路链有路链速度结果,分别用{V1,...,Vi,...,Vm}表示,Vjunc表示合成路链的速度,则合成路链的路链速度为:In order to meet the real-time calculation requirements of the bus link speed and the integrity of the results, the present invention proposes a method for synthesizing the speed of adjacent links to solve this problem. For multiple connected road links of the same nature, if the connection between each road link is not a traffic light intersection, a toll station, and a fork, which have the effect of delaying vehicle travel, and the angle change α of the road link direction satisfies |α|≤α 0 (α 0 >0), where α 0 is the angle threshold, then these connected links are regarded as a synthetic link, if the synthetic link is composed of n links, and m links have path The link speed results are respectively expressed by {V 1 ,...,V i ,...,V m }, and V junc represents the speed of the synthesized link, then the link speed of the synthesized link is:
总之,本发明提供的公交路链速度计算方法,通过生成关键采样点序列再进而计算速度样本的方式,消除了站点范围内公交车停靠站对路链速度计算的影响,提高了公交路链速度的准确度。本发明根据速度样本队列的状态动态确定用于计算的样本量,并根据实时变化的交通情况进行动态计算,具有较好的实时性和准确性。In a word, the bus link speed calculation method provided by the present invention eliminates the influence of bus stops on the link speed calculation within the station range by generating a sequence of key sampling points and then calculating the speed samples, and improves the bus link speed. the accuracy. The invention dynamically determines the sample size used for calculation according to the state of the speed sample queue, and performs dynamic calculation according to the real-time changing traffic conditions, and has better real-time performance and accuracy.
提供以上实施例仅仅是为了描述本发明的目的,而并非要限制本发明的范围。本发明的范围由所附权利要求限定。不脱离本发明的精神和原理而做出的各种等同替换和修改,均应涵盖在本发明的范围之内。The above embodiments are provided only for the purpose of describing the present invention, not to limit the scope of the present invention. The scope of the invention is defined by the appended claims. Various equivalent replacements and modifications made without departing from the spirit and principle of the present invention shall fall within the scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828864.1A CN106251642B (en) | 2016-09-18 | 2016-09-18 | A kind of public transport road chain speed calculation method based on real-time bus GPS data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828864.1A CN106251642B (en) | 2016-09-18 | 2016-09-18 | A kind of public transport road chain speed calculation method based on real-time bus GPS data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106251642A CN106251642A (en) | 2016-12-21 |
CN106251642B true CN106251642B (en) | 2018-10-26 |
Family
ID=57600104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610828864.1A Active CN106251642B (en) | 2016-09-18 | 2016-09-18 | A kind of public transport road chain speed calculation method based on real-time bus GPS data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106251642B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106846807B (en) * | 2017-03-09 | 2019-11-12 | 北京公共交通控股(集团)有限公司 | A kind of public transport road chain speed determines method and device |
WO2018232684A1 (en) | 2017-06-22 | 2018-12-27 | Beijing Didi Infinity Technology And Development Co., Ltd. | Methods and systems for estimating time of arrival |
US10733881B2 (en) | 2018-01-23 | 2020-08-04 | International Business Machines Corporation | Detection of vehicle queueing events on a road |
CN108391003A (en) * | 2018-02-06 | 2018-08-10 | 上海康斐信息技术有限公司 | A kind of method and system of movement locus speed color assignment and generation |
CN109523782A (en) * | 2018-10-16 | 2019-03-26 | 中山大学 | A kind of road trip time fining calculation method of identity-based detection data |
CN109215374A (en) * | 2018-10-26 | 2019-01-15 | 上海城市交通设计院有限公司 | A kind of bus arrival time prediction algorithm |
CN109920248B (en) * | 2019-03-05 | 2021-09-17 | 南通大学 | Bus arrival time prediction method based on GRU neural network |
CN110443737A (en) * | 2019-07-04 | 2019-11-12 | 安徽富煌科技股份有限公司 | A kind of public transport operation speed calculation method for intelligent public transportation system |
CN110610267B (en) * | 2019-09-10 | 2021-06-29 | 北京京东智能城市大数据研究院 | Talent information processing method and device, computer storage medium and electronic equipment |
CN111243279B (en) * | 2020-03-19 | 2021-11-30 | 中交信捷科技有限公司 | Method for predicting congestion of highway toll station |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710624A (en) * | 2005-06-02 | 2005-12-21 | 上海交通大学 | Method for Obtaining the Average Speed of Urban Road Network Traffic Flow Interval |
CN1975800A (en) * | 2006-12-25 | 2007-06-06 | 北京世纪高通科技有限公司 | Traffic information fusion processing method and system |
CN101650876A (en) * | 2009-08-26 | 2010-02-17 | 重庆大学 | Method for obtaining average speed of traffic flow of urban road sections |
CN101710449A (en) * | 2009-12-04 | 2010-05-19 | 吉林大学 | Traffic flow running rate recognizing method based on bus GPS data |
CN101739823A (en) * | 2009-12-21 | 2010-06-16 | 浙江工业大学 | Road-section average travel time measuring method suitable for low-frequency sampling |
CN102087788A (en) * | 2009-12-02 | 2011-06-08 | 上海济祥智能交通科技有限公司 | Method for estimating traffic state parameter based on confidence of speed of float car |
CN103093608A (en) * | 2011-10-31 | 2013-05-08 | 北京掌城科技有限公司 | Filtering method and system of high-frequency global position system (GPS) data |
CN103177561A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Method and system for generating bus real-time traffic status |
CN103295414A (en) * | 2013-05-31 | 2013-09-11 | 北京建筑工程学院 | Bus arrival time forecasting method based on mass historical GPS (global position system) trajectory data |
CN103310651A (en) * | 2013-05-24 | 2013-09-18 | 北京市交通信息中心 | Bus arrival prediction method based on real-time traffic status information |
CN103794061A (en) * | 2014-03-10 | 2014-05-14 | 上海云砥信息科技有限公司 | Method for calculating road fused travel speed based on various positioning data |
CN103871239A (en) * | 2014-03-17 | 2014-06-18 | 同济大学 | Taxi and bus GPS (global position system) data-based bus running state discriminating method and application system |
CN103942953A (en) * | 2014-03-13 | 2014-07-23 | 华南理工大学 | Urban road network dynamic traffic jam prediction method based on floating vehicle data |
CN105869402A (en) * | 2016-05-12 | 2016-08-17 | 中山大学 | Highway section speed correction method based on multiple types of floating car data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004258884A (en) * | 2003-02-25 | 2004-09-16 | Matsushita Electric Ind Co Ltd | Fcd information collecting method and probe car system |
US9129522B2 (en) * | 2013-07-01 | 2015-09-08 | Iteris, Inc. | Traffic speed estimation using temporal and spatial smoothing of GPS speed data |
-
2016
- 2016-09-18 CN CN201610828864.1A patent/CN106251642B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710624A (en) * | 2005-06-02 | 2005-12-21 | 上海交通大学 | Method for Obtaining the Average Speed of Urban Road Network Traffic Flow Interval |
CN1975800A (en) * | 2006-12-25 | 2007-06-06 | 北京世纪高通科技有限公司 | Traffic information fusion processing method and system |
CN101650876A (en) * | 2009-08-26 | 2010-02-17 | 重庆大学 | Method for obtaining average speed of traffic flow of urban road sections |
CN102087788A (en) * | 2009-12-02 | 2011-06-08 | 上海济祥智能交通科技有限公司 | Method for estimating traffic state parameter based on confidence of speed of float car |
CN101710449A (en) * | 2009-12-04 | 2010-05-19 | 吉林大学 | Traffic flow running rate recognizing method based on bus GPS data |
CN101739823A (en) * | 2009-12-21 | 2010-06-16 | 浙江工业大学 | Road-section average travel time measuring method suitable for low-frequency sampling |
CN103093608A (en) * | 2011-10-31 | 2013-05-08 | 北京掌城科技有限公司 | Filtering method and system of high-frequency global position system (GPS) data |
CN103177561A (en) * | 2011-12-26 | 2013-06-26 | 北京掌城科技有限公司 | Method and system for generating bus real-time traffic status |
CN103310651A (en) * | 2013-05-24 | 2013-09-18 | 北京市交通信息中心 | Bus arrival prediction method based on real-time traffic status information |
CN103295414A (en) * | 2013-05-31 | 2013-09-11 | 北京建筑工程学院 | Bus arrival time forecasting method based on mass historical GPS (global position system) trajectory data |
CN103794061A (en) * | 2014-03-10 | 2014-05-14 | 上海云砥信息科技有限公司 | Method for calculating road fused travel speed based on various positioning data |
CN103942953A (en) * | 2014-03-13 | 2014-07-23 | 华南理工大学 | Urban road network dynamic traffic jam prediction method based on floating vehicle data |
CN103871239A (en) * | 2014-03-17 | 2014-06-18 | 同济大学 | Taxi and bus GPS (global position system) data-based bus running state discriminating method and application system |
CN105869402A (en) * | 2016-05-12 | 2016-08-17 | 中山大学 | Highway section speed correction method based on multiple types of floating car data |
Non-Patent Citations (5)
Title |
---|
Heterogeneous Data Processing for Bus Arrival Time Prediction;Randong Xiao等;《2014 Sixth International Conference on Intelligent Human-Machine Systems and Cybernetics》;20141009;第326-330页 * |
Map-reduce for calibrating massive bus trajectory data;Dapeng Li等;《2013 13th International Conference on ITS Telecommunications (ITST)》;20130119;第44-49页 * |
基于GPS浮动车的城市路段平均速度估计技术研究;董均宇;《中国优秀博硕士学位论文全文数据库 (硕士)工程科技Ⅱ辑》;20070115(第1期);C034-82 * |
基于公交浮动车的道路运行速度预测模型;张温欣;《中国优秀硕士学位论文全文数据库基础科学辑》;20151015(第10期);A002-112 * |
基于浮动车GPS数据的行车速度预测模型研究;龚珊;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20100215(第2期);C034-365 * |
Also Published As
Publication number | Publication date |
---|---|
CN106251642A (en) | 2016-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106251642B (en) | A kind of public transport road chain speed calculation method based on real-time bus GPS data | |
Fang et al. | FTPG: A fine-grained traffic prediction method with graph attention network using big trace data | |
CN109410577B (en) | Self-adaptive traffic control subarea division method based on space data mining | |
CN111540201B (en) | Real-time estimation method and system of vehicle queue length based on roadside lidar | |
WO2022166239A1 (en) | Vehicle travel scheme planning method and apparatus, and storage medium | |
CN102737510B (en) | A method for collecting real-time traffic conditions based on mobile intelligent terminals | |
CN111325968B (en) | A traffic bottleneck prediction method, system and electronic device based on congestion diffusion | |
CN104778834B (en) | Urban road traffic jam judging method based on vehicle GPS data | |
CN104121918A (en) | Real-time path planning method and system | |
Liu et al. | Bus arrival time prediction based on the k-nearest neighbor method | |
JP7625140B2 (en) | Distributed Multi-Task Machine Learning for Traffic Forecasting | |
CN111915887A (en) | Integration and processing system and method based on multi-source heterogeneous traffic data | |
Yao et al. | Sampled trajectory data-driven method of cycle-based volume estimation for signalized intersections by hybridizing shockwave theory and probability distribution | |
Necula | Dynamic traffic flow prediction based on GPS data | |
Gang et al. | Continuous travel time prediction for transit signal priority based on a deep network | |
CN114038214B (en) | Urban traffic signal control system | |
Kumar et al. | Analytical approach to identify the optimum inputs for a bus travel time prediction method | |
CN105139328B (en) | Hourage real-time predicting method and device towards license plate identification data | |
Ji et al. | Virtual trajectories for i–24 motion: Data and tools | |
WO2025008653A1 (en) | Method, system, computer program product and computer readable medium for traffic prediction | |
Yu et al. | A review of the link traffic time estimation of urban traffic | |
Al Mahmud et al. | Impact of pedal powered vehicles on average traffic speed in dhaka city: A cross-sectional study based on road class and timestamp | |
Cheng et al. | An exploratory shockwave approach for signalized intersection performance measurements using probe trajectories | |
Habtie et al. | Cellular network based real-time urban road traffic state estimation framework using neural network model estimation | |
CN107205046B (en) | Towards the following operating condition Information Acquisition System of intelligent network connection vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |