[go: up one dir, main page]

CN115331425A - Traffic early warning method, device and system - Google Patents

Traffic early warning method, device and system Download PDF

Info

Publication number
CN115331425A
CN115331425A CN202210770647.7A CN202210770647A CN115331425A CN 115331425 A CN115331425 A CN 115331425A CN 202210770647 A CN202210770647 A CN 202210770647A CN 115331425 A CN115331425 A CN 115331425A
Authority
CN
China
Prior art keywords
traffic
data
special area
congestion
early warning
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
Application number
CN202210770647.7A
Other languages
Chinese (zh)
Other versions
CN115331425B (en
Inventor
蒋立靓
丁楚吟
邓晓磊
孔桦桦
罗剑云
那慧
沈坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yinjiang Technology Co ltd
Original Assignee
Yinjiang Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yinjiang Technology Co ltd filed Critical Yinjiang Technology Co ltd
Priority to CN202210770647.7A priority Critical patent/CN115331425B/en
Publication of CN115331425A publication Critical patent/CN115331425A/en
Application granted granted Critical
Publication of CN115331425B publication Critical patent/CN115331425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明实施例公开了一种交通预警方法、装置和系统。该方法包括:标记特殊区域,建立对应特殊区域的路网拓扑图;关联城市路网模型,采集特殊区域的交通数据;构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警。本发明提供的方案能够在保证模型精度的前提下,减少输入样本量,降低训练压力,减小过拟合的技术效果。

Figure 202210770647

The embodiments of the present invention disclose a traffic early warning method, device and system. The method includes: marking a special area, establishing a road network topology map corresponding to the special area; correlating a city road network model, collecting traffic data in the special area; building a route library, analyzing the correlation of routes in the special area combined with the traffic data, and screening key traffic detections convert the data collected by the key traffic detectors into the spatial density of traffic flow, and set the pressure threshold of regional traffic warning according to the spatial density of traffic flow; obtain the congestion information of special areas according to the pressure threshold, and confirm and mark the congestion information, Generate labeled data; train a congestion prediction model based on the labeled data and traffic data, and use the congestion prediction model to warn of traffic conditions in special areas. The solution provided by the present invention can reduce the amount of input samples, reduce the training pressure, and reduce the technical effect of overfitting under the premise of ensuring the accuracy of the model.

Figure 202210770647

Description

一种交通预警方法、装置和系统A traffic warning method, device and system

技术领域technical field

本发明涉及交通路网技术应用领域,尤其涉及一种交通预警方法、装置和系统。The invention relates to the application field of traffic road network technology, in particular to a traffic early warning method, device and system.

背景技术Background technique

随着私人汽车保有量的增多,城市道路供需之间的矛盾日益加剧,道路上行车环境也更加复杂,交通拥堵的情况时常发生,普遍降低了出行者的行车速度,行程时间增大,因此需要交通拥堵预警技术及时发现拥堵点,并高效地对工作人员分配任务,快速处理堵塞,帮助出行者更有效地规划出行路线,节约出行时间。With the increase of private car ownership, the contradiction between the supply and demand of urban roads is increasing day by day, the driving environment on the roads is also more complicated, and traffic congestion often occurs, which generally reduces the driving speed of travelers and increases the travel time. Therefore, it is necessary to Traffic congestion early warning technology detects congestion points in a timely manner, and efficiently assigns tasks to staff to quickly deal with congestion, helping travelers plan travel routes more effectively and save travel time.

但是传统道路拥堵预警多针对于单节点,覆盖范围小,当监测的路口即将存在拥堵时就会发出警报,无法根据实际道路流通情况及时针对拥堵上下流进行监测和提前预警,在一些特定时间段特殊区域如医院学校等交通密度大的建筑周边拥堵现象严重时,传统的交通预警系统无法快速判断交通压力的种类和问题来源,进而导致无法有效快速处理疏通问题路段,难以快速高效缓解交通堵塞,难以保证交通的顺畅性。However, the traditional road congestion warning is mostly aimed at a single node, and the coverage is small. When the monitored intersection is about to be congested, an alarm will be issued, and it is impossible to monitor and advance early warning for the upstream and downstream of the congestion according to the actual road traffic conditions. In some specific time periods When the congestion around buildings with high traffic density in special areas such as hospitals and schools is serious, the traditional traffic early warning system cannot quickly determine the type of traffic pressure and the source of the problem, which leads to the inability to effectively and quickly deal with the dredging of problematic road sections, and it is difficult to quickly and efficiently relieve traffic congestion. It is difficult to guarantee the smoothness of traffic.

针对上述由于相关技术中无法快速判断交通压力的种类和问题来源,进而导致无法有效快速处理疏通问题路段,难以快速高效缓解交通堵塞,难以保证交通的顺畅性的问题,目前尚未提出有效的解决方案。In view of the above-mentioned problems that the type of traffic pressure and the source of the problem cannot be quickly judged in the related technology, which leads to the inability to effectively and quickly deal with the dredging of the problem road section, it is difficult to quickly and efficiently alleviate the traffic jam, and it is difficult to ensure the smoothness of the traffic. At present, no effective solution has been proposed. .

发明内容Contents of the invention

为解决上述技术问题,本发明期望提供一种交通预警方法、装置和系统,以至少解决由于相关技术中无法快速判断交通压力的种类和问题来源,进而导致无法有效快速处理疏通问题路段,难以快速高效缓解交通堵塞,难以保证交通的顺畅性的问题。In order to solve the above technical problems, the present invention expects to provide a traffic early warning method, device and system to at least solve the problem of the inability to quickly determine the type of traffic pressure and the source of the problem in the related art, which in turn leads to the inability to effectively and quickly deal with dredging problem road sections, and it is difficult to quickly Efficiently alleviate traffic jams, and it is difficult to ensure the smoothness of traffic.

本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:

第一方面,本发明提供一种交通预警方法,包括:标记特殊区域,建立对应特殊区域的路网拓扑图;关联城市路网模型,采集特殊区域的交通数据;构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警。In the first aspect, the present invention provides a traffic early warning method, including: marking a special area, establishing a road network topology map corresponding to the special area; associating the urban road network model, collecting traffic data in the special area; constructing a route library, and analyzing traffic data Path correlation in special areas, screening key traffic detectors; converting data collected by key traffic detectors into traffic flow spatial density, and setting pressure thresholds for regional traffic warnings based on traffic flow spatial density; obtaining congestion in special areas based on pressure thresholds information, and confirm and mark the congestion information to generate marked data; train the congestion prediction model based on the marked data and traffic data, and use the congestion prediction model to give early warning of traffic conditions in special areas.

可选的,标记特殊区域,建立对应特殊区域的路网拓扑图包括:标记特殊区域,其中,特殊区域为在特定时间段存在大于预设阈值的通行需求的建筑或设施及其周边预设相邻范围的道路设施所覆盖的区域;筛选特殊区域的中心节点,并将中心节点预设相邻范围的路口设置为节点,以节点为中心,将节点的所有关联路段作为与中心节点相近的路段,建立特殊区域的路网拓扑图。Optionally, marking a special area and establishing a road network topology map corresponding to the special area includes: marking a special area, wherein the special area is a building or facility with a traffic demand greater than a preset threshold in a specific time period and its surrounding preset related areas. The area covered by the road facilities in the adjacent range; filter the central node of the special area, and set the intersection of the central node’s preset adjacent range as the node, take the node as the center, and use all the associated road sections of the node as road sections close to the central node , to establish a road network topology map of a special area.

进一步地,可选的,通过关联城市路网模型,采集路网拓扑图中区域路网模型的交通数据包括:通过关联城市路网模型,根据各路段的交通检测器采集路网拓扑图中区域路网模型的交通数据,其中,交通数据包括:区域路网模型的数据和交通检测器数据。Further, optionally, collecting the traffic data of the regional road network model in the road network topology map by associating the urban road network model includes: collecting the traffic data of the regional road network model in the road network topology map by associating the urban road network model according to the traffic detectors of each road section The traffic data of the road network model, wherein the traffic data includes: data of the regional road network model and traffic detector data.

可选的,构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器包括:基于历史交通检测器数据,筛选中心节点周围通过的车辆,跟踪车辆轨迹,反推车辆在特殊区域内的行车路径,构建路径库;基于历史交通数据,统计路径在指定周期内的流量数据得到各路径的流量特征;基于实时交通数据,统计指定周期内流入中心节点的流量数据得到中心节点的流量特征;通过路径的流量特征和中心节点的流量特征的相关系数判断路径与中心节点的相关性,依据相关性筛选目标路径;对各相关性对应的目标路径,按对应目标路径的权重考虑路径流量对区域拥堵的影响,路径上依据流向,选取路段中安装在流向上的交通检测器,作为关键交通检测器。Optionally, build a path library, combine traffic data to analyze path correlation in special areas, and filter key traffic detectors including: based on historical traffic detector data, filter vehicles passing around the central node, track vehicle trajectories, and reverse vehicles in special areas Based on the traffic routes in the area, build a route library; based on the historical traffic data, count the traffic data of the route in the specified period to obtain the traffic characteristics of each route; Traffic characteristics; judge the correlation between the path and the central node through the correlation coefficient of the traffic characteristics of the path and the traffic characteristics of the central node, and filter the target path according to the correlation; for the target path corresponding to each correlation, consider the path according to the weight of the corresponding target path The impact of flow on regional congestion, according to the flow direction on the route, select the traffic detector installed in the flow direction in the road section as the key traffic detector.

进一步地,可选的,该方法还包括:对于路径中缺失卡口设备的路段,采用路径搜索算法搜索最短路径,补全路径。Further, optionally, the method further includes: for a road segment missing a bayonet device in the route, using a route search algorithm to search for the shortest route and complete the route.

可选的,将关键交通检测器采集的数据转换为交通流空间密度包括:使用流量或车头间距,按照标准小型汽车长度与车头间距之和计算当前排队长度的近似值,并将当前排队长度的近似值与路段长度进行比较,得到路段的第一交通流空间密度;使用车头时距或排队长度,将连续两辆车通过固定点中关键交通检测器采集的时间间隔和路段自由流速度相乘,得到距离间隔,将距离间隔与路段长度对比得到路段的第二交通流空间密度;将第一交通流空间密度和第二交通流空间密度进行归一化处理,对归一化处理后的数据进行加权平均,得出路段的目标交通流空间密度。Optionally, converting the data collected by key traffic detectors into traffic flow spatial density includes: using the flow rate or headway distance, calculating an approximate value of the current queue length according to the sum of the standard small car length and the headway distance, and calculating the approximate value of the current queue length Compared with the length of the road section, the first traffic flow space density of the road section is obtained; using the headway or queue length, the time interval collected by two consecutive vehicles passing through the key traffic detector in the fixed point is multiplied by the free flow speed of the road section to obtain Distance interval, compare the distance interval with the length of the road section to obtain the second traffic flow spatial density of the road section; normalize the first traffic flow spatial density and the second traffic flow spatial density, and weight the normalized data On average, the target traffic flow spatial density of the link is obtained.

进一步地,可选的,依据交通流空间密度设置区域交通预警的压力阈值包括:依据交通流空间密度对交通压力分类,设置区域交通预警的压力阈值;其中,交通压力分类包括流入压力和内部压力;压力阈值设置有多组。Further, optionally, setting the pressure threshold of the regional traffic warning according to the traffic flow spatial density includes: classifying the traffic pressure according to the traffic flow spatial density, and setting the pressure threshold of the regional traffic warning; wherein, the traffic pressure classification includes inflow pressure and internal pressure ; There are multiple groups of pressure threshold settings.

可选的,依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据包括:根据压力阈值的压力报警获取区域实时拥堵情况并报警,并通过人工确认实时拥堵情况,标记正确的感知结果,生成标记数据;其中,人工确认,通过监控、交通指标对比进行实时或离线确认。Optionally, obtain congestion information in a special area according to the pressure threshold, and confirm and mark the congestion information. Generating marked data includes: obtaining the real-time congestion situation in the area according to the pressure alarm of the pressure threshold and giving an alarm, and confirming the real-time congestion situation manually, Mark the correct perception results and generate marked data; among them, manual confirmation, real-time or offline confirmation through monitoring and traffic index comparison.

进一步地,可选的,依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警包括:对目标路径中的关键交通检测器数据按时间排序,进行数据处理得到目标路径的交通状态指标,并关联标记数据的拥堵标签;输入神经网络时序模型进行训练,得到时序拥堵预警模型;利用状态估计算法,对通过测试集得到的时间序列预测结果进行调整,训练得到特殊区域的拥堵预测模型;依据拥堵预测模型对特殊区的交通情况进行预警。Further, optionally, training the congestion prediction model based on the marked data and traffic data, and using the congestion prediction model to warn the traffic situation in a special area includes: sorting the key traffic detector data in the target path by time, performing data Process and obtain the traffic status indicators of the target path, and associate the congestion label of the marked data; input the neural network time series model for training, and obtain the time series congestion early warning model; use the state estimation algorithm to adjust the time series prediction results obtained through the test set, and train Obtain the congestion prediction model of the special area; according to the congestion prediction model, the traffic situation of the special area is given an early warning.

第二方面,本发明提供一种交通预警装置,包括:建立模块,用于标记特殊区域,建立对应特殊区域的路网拓扑图;采集模块,用于关联城市路网模型,采集路网拓扑图中区域路网模型的交通数据;筛选模块,用于构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;转换模块,用于将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;标记模块,用于依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;预警模块,用于依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警。In the second aspect, the present invention provides a traffic early warning device, including: an establishment module, used to mark a special area, and establish a road network topology map corresponding to the special area; a collection module, used for associating the urban road network model, and collecting the road network topology map The traffic data of the road network model in the middle area; the screening module is used to build the path library, and analyzes the correlation of paths in special areas combined with traffic data, and screens key traffic detectors; the conversion module is used to convert the data collected by key traffic detectors into The spatial density of traffic flow, and set the pressure threshold of regional traffic early warning according to the spatial density of traffic flow; the marking module is used to obtain the congestion information of special areas according to the pressure threshold, and confirm and mark the congestion information to generate marked data; the early warning module, It is used to train the congestion prediction model based on the marked data and traffic data, and to warn the traffic conditions in special areas through the congestion prediction model.

第三方面,本发明提供一种交通预警系统,包括:标记模块,用于对特殊区域进行划分标记;数据采集模块,用于对重点路段路网模型和交通数据进行采集;数据转化模块,用于对采集的数据进行转化计算;重点路径监控模块,用于监控区域中重点路径的实时整体交通状态及基于相关性权重展示热力图;实时拥堵感知模块,用于对特殊区域路网进行实时报警,并由人工进行警情确认;拥堵预警模块,将实时数据输入到离线模型库进行拥堵预测,发出预警信号;In the third aspect, the present invention provides a traffic early warning system, including: a marking module, used to divide and mark special areas; a data collection module, used to collect road network models and traffic data of key road sections; a data conversion module, used to It is used to convert and calculate the collected data; the key path monitoring module is used to monitor the real-time overall traffic status of key paths in the area and display the heat map based on the correlation weight; the real-time congestion perception module is used to give real-time alarms to the road network in special areas , and manually confirm the alarm situation; the congestion early warning module inputs real-time data into the offline model library for congestion prediction and sends out early warning signals;

其中,数据转化模块包括:长度数据转化模块,用于对标准小型汽车长度与车头间距之和计算当前排队长度的近似值,并将结果与路段长度进行比较,得到路段的第一交通流空间密度;速度数据转化模块,用于对连续两辆车通过固定点的时间间隔和路段自由流速度做对比,得到距离间隔,并将距离间隔与路段长度对比得到路段的第二交通流空间密度。Among them, the data conversion module includes: a length data conversion module, which is used to calculate the approximate value of the current queue length for the sum of the length of the standard small car and the distance between the fronts, and compare the result with the length of the road section to obtain the first traffic flow space density of the road section; The speed data conversion module is used to compare the time interval between two consecutive vehicles passing a fixed point with the free flow speed of the road section to obtain the distance interval, and compare the distance interval with the length of the road section to obtain the second traffic flow space density of the road section.

本发明提供了一种交通预警方法、装置和系统。通过标记特殊区域,建立对应特殊区域的路网拓扑图;关联城市路网模型,采集特殊区域的交通数据;构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警,从而能够在保证模型精度的前提下,减少输入样本量,降低训练压力,减小过拟合的技术效果。The invention provides a traffic warning method, device and system. By marking special areas, establish road network topology maps corresponding to special areas; associate urban road network models, collect traffic data in special areas; build path libraries, analyze path correlations in special areas combined with traffic data, and screen key traffic detectors; The data collected by key traffic detectors is converted into traffic flow spatial density, and the pressure threshold of regional traffic warning is set according to the traffic flow spatial density; the congestion information of special areas is obtained according to the pressure threshold, and the congestion information is confirmed and marked to generate marked data ;According to the marked data and traffic data, train the congestion prediction model, and use the congestion prediction model to warn the traffic situation in special areas, so that the input sample size can be reduced, the training pressure can be reduced, and the over-fitting can be reduced under the premise of ensuring the accuracy of the model. Combined technical effect.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1为本发明实施例一提供的一种交通预警方法的流程示意图;Fig. 1 is a schematic flow chart of a traffic early warning method provided by Embodiment 1 of the present invention;

图2为本发明实施例一提供的一种交通预警方法中路网拓扑图的示意图;2 is a schematic diagram of a road network topology diagram in a traffic early warning method provided by Embodiment 1 of the present invention;

图3为本发明实施例二提供的一种交通预警装置的示意图;FIG. 3 is a schematic diagram of a traffic warning device provided in Embodiment 2 of the present invention;

图4为本发明实施例三提供的一种交通预警系统的示意图。FIG. 4 is a schematic diagram of a traffic warning system provided by Embodiment 3 of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于限定特定顺序。It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present invention are used to distinguish different objects, rather than to limit a specific order.

还需要说明是,本发明下述各个实施例可以单独执行,各个实施例之间也可以相互结合执行,本发明实施例对此不作具体限制。It should also be noted that the following embodiments of the present invention may be implemented independently, or may be implemented in combination with each other, which is not specifically limited in the embodiments of the present invention.

实施例一Embodiment one

第一方面,本发明实施例提供一种交通预警方法,图1为本发明实施例一提供的一种交通预警方法的流程示意图;如图1所示,本申请实施例提供的交通预警方法包括:In the first aspect, the embodiment of the present invention provides a traffic early warning method, and Fig. 1 is a schematic flow chart of a traffic early warning method provided by Embodiment 1 of the present invention; as shown in Fig. 1 , the traffic early warning method provided by the embodiment of the present application includes :

步骤S101,标记特殊区域,建立对应特殊区域的路网拓扑图;Step S101, marking a special area, and establishing a road network topology map corresponding to the special area;

可选的,步骤S101中标记特殊区域,建立对应特殊区域的路网拓扑图包括:标记特殊区域,其中,特殊区域为在特定时间段存在大于预设阈值的通行需求的建筑或设施及其周边预设相邻范围的道路设施所覆盖的区域;筛选特殊区域的中心节点,并将中心节点预设相邻范围的路口设置为节点,以节点为中心,将节点的所有关联路段作为与中心节点相近的路段,建立特殊区域的路网拓扑图。Optionally, marking special areas in step S101, and establishing a road network topology map corresponding to special areas includes: marking special areas, wherein special areas are buildings or facilities and their surroundings that have a traffic demand greater than a preset threshold in a specific time period The area covered by the road facilities in the preset adjacent range; filter the central node of the special area, and set the intersection of the preset adjacent range of the central node as a node, take the node as the center, and use all the associated road sections of the node as the center node For similar road sections, build a road network topology map of a special area.

其中,本申请实施例中特殊区域包括但不限于:商场、学校、医院、景区,其中景区可能存在多个中心节点;Among them, the special areas in the embodiment of this application include but are not limited to: shopping malls, schools, hospitals, and scenic spots, where there may be multiple central nodes in the scenic spot;

需要说明的是,本申请实施例中建立对应特殊区域的路网拓扑图如图2所示,图2为本发明实施例一提供的一种交通预警方法中路网拓扑图的示意图。为满足后续计算需求,中心建筑的路口筛选的范围需包含三层路口。It should be noted that the road network topology map corresponding to the special area established in the embodiment of the present application is shown in FIG. 2 , which is a schematic diagram of the road network topology map in a traffic early warning method provided by Embodiment 1 of the present invention. In order to meet the subsequent calculation needs, the intersection screening range of the central building needs to include three-level intersections.

步骤S102,关联城市路网模型,采集特殊区域的交通数据;Step S102, associating with the urban road network model, and collecting traffic data in special areas;

具体的,步骤S102中关联城市路网模型,采集特殊区域的交通数据包括:通过关联城市路网模型,根据各路段的交通检测器采集路网拓扑图中区域路网模型的交通数据,其中,交通数据包括:区域路网模型的数据和交通检测器数据。Specifically, associating the urban road network model in step S102, collecting traffic data in a special area includes: collecting traffic data of the regional road network model in the road network topology map according to the traffic detectors of each road section through associating the urban road network model, wherein, The traffic data includes: the data of the regional road network model and the traffic detector data.

其中,区域路网模型的数据可以包括:道路、路段、路口、车道数据;交通检测器数据包括:流量、占有率、车头时距、排队长度数据;Among them, the data of the regional road network model can include: roads, road sections, intersections, and lane data; the traffic detector data include: traffic flow, occupancy rate, headway, queue length data;

在本申请实施例中,区域路网模型内的交通数据通过地磁、卡口等交通检测器采集,交通检测器以车辆为检测目标,检测车辆的信息以及通过状况,同时计算或统计各种交通参数,如流量、占有率、车头时距、排队长度等,其作用是为控制系统提供多维度的交通信息以便进行信号控制。In the embodiment of this application, the traffic data in the regional road network model is collected by traffic detectors such as geomagnetism and checkpoints. The traffic detector takes the vehicle as the detection target, detects the information of the vehicle and the passing status, and calculates or counts various traffic at the same time. Parameters, such as traffic flow, occupancy rate, headway, queue length, etc., are used to provide multi-dimensional traffic information for the control system for signal control.

其中,流量为单位时间内通过检测器的车辆数;Among them, the flow rate is the number of vehicles passing the detector per unit time;

占有率则包括时间占有率和空间占有率,时间占有率指在道路的任一路段上,车辆通过时间的累计值与观测总时间的比值称为时间占有率;计算公式为Occupancy rate includes time occupancy rate and space occupancy rate. Time occupancy rate refers to the ratio of the cumulative value of vehicle passing time to the total observation time on any section of the road, which is called time occupancy rate; the calculation formula is

Figure BDA0003723857620000061
Figure BDA0003723857620000061

空间占有率指在道路的一定路段上,车辆总长度与路段总长度之比称为空间占有率,通常以百分数表示,计算公式为:The space occupancy rate refers to the ratio of the total length of vehicles to the total length of the road section on a certain section of the road, which is called the space occupancy rate, usually expressed as a percentage, and the calculation formula is:

Figure BDA0003723857620000071
Figure BDA0003723857620000071

其中,R为占有率,L为道路段长度,T为车辆通过时间的累计值;Among them, R is the occupancy rate, L is the length of the road segment, and T is the accumulated value of the vehicle passing time;

车头时距为交通流中两个连续的车辆通过固定点的时间间隔;The headway is the time interval between two consecutive vehicles passing a fixed point in the traffic flow;

排队长度为交叉口等待通过的车流长度;The queue length is the length of the traffic flow waiting to pass through the intersection;

其中,在流量与占有率的关系中,流量小的情况下,对应的占有率存在偏小和偏大两种情况。流量小且占有率小,说明路段交通压力较小,通行车辆均能顺畅通过路段;流量小而占有率大,说明路段存在拥堵状况,通过车辆较少,也可能存在车辆长时间滞留在检测器的检测区域内的情况,方便提醒执勤工作人员及时处理。Among them, in the relationship between the flow rate and the occupancy rate, when the flow rate is small, the corresponding occupancy rate may be relatively small or relatively large. Small traffic flow and small occupancy rate indicate that the traffic pressure on the road section is small, and all passing vehicles can pass through the road section smoothly; small flow rate and large occupancy rate indicate that there is congestion in the road section, and there are few passing vehicles, and there may be vehicles staying in the detector for a long time The situation in the detection area is convenient to remind the staff on duty to deal with it in time.

步骤S103,构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;Step S103, building a route library, analyzing the correlation of routes in a special area in combination with traffic data, and screening key traffic detectors;

可选的,步骤S103中构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器包括:基于历史交通检测器数据,筛选所述中心节点周围通过的车辆,跟踪车辆轨迹,反推车辆在所述特殊区域内的行车路径,构建所述路径库;基于历史交通数据,统计所述路径在指定周期内的流量数据得到各路径的流量特征;并基于实时交通数据,统计指定周期内流入所述中心节点的流量数据得到所述中心节点的流量特征;通过所述路径的流量特征和所述中心节点的流量特征的相关系数判断所述路径与所述中心节点的相关性,依据所述相关性筛选目标路径;对各相关性对应的所述目标路径,按对应所述目标路径的权重考虑路径流量对区域拥堵的影响,所述路径上依据流向,选取路段中安装在所述流向上的交通检测器,作为所述关键交通检测器。Optionally, in step S103, a path library is constructed, and the path correlation in a special area is analyzed in combination with traffic data, and the screening of key traffic detectors includes: based on historical traffic detector data, screening vehicles passing around the central node, tracking vehicle trajectories, Reversing the driving path of the vehicle in the special area, constructing the path library; based on the historical traffic data, counting the traffic data of the path within a specified period to obtain the traffic characteristics of each path; and based on the real-time traffic data, counting the specified The traffic data flowing into the central node within a period obtains the traffic characteristics of the central node; the correlation coefficient between the traffic characteristics of the path and the traffic characteristics of the central node is used to judge the correlation between the path and the central node, Filter target paths according to the correlation; for the target paths corresponding to each correlation, consider the impact of path traffic on regional congestion according to the weight of the corresponding target path, and select road sections to be installed in the selected road section according to the flow direction on the path The traffic detector in the flow direction is used as the key traffic detector.

进一步地,可选的,本申请实施例提供的交通预警方法还包括:对于路径中缺失卡口设备的路段,采用路径搜索算法搜索最短路径,补全路径。Further, optionally, the traffic early warning method provided in the embodiment of the present application further includes: for a road segment missing a checkpoint device in the route, using a route search algorithm to search for the shortest route and complete the route.

可选的,本申请实施例提供的交通预警方法还包括:根据路径历史数据与中心建筑的实时数据的相似性,从历史数据中得到路径流量模型,识别目标路径。Optionally, the traffic early warning method provided in the embodiment of the present application further includes: according to the similarity between the historical data of the route and the real-time data of the central building, obtaining a route flow model from the historical data to identify the target route.

具体的,基于历史卡口检测器数据,筛选中心建筑周围通过的车辆,跟踪车辆轨迹,反推车辆在特殊区域内的行车路径。筛选中心建筑周围通过的车辆,需要在筛选车辆经过中心建筑最近的卡口,并且在一定时间段内没有经过下一个检测器的车辆。关联卡口检测器设备与路网,倒序排列每辆车的卡口数据,判断时间相邻的数据对应的卡口是否在空间上属于相连的路段。若属于相连路段,则将路段计入路径;否则,采用Dijkstra、Floyd等算法(即,本申请实施例中的路径搜索算法)搜索相邻时间的两个卡口之间的最短路径,进行路径补全。整合数据聚合得到的路径,生成特殊区域中的路径库。Specifically, based on the historical bayonet detector data, the vehicles passing around the central building are screened, the vehicle trajectory is tracked, and the driving path of the vehicle in the special area is reversed. To screen the vehicles passing around the central building, it is necessary to screen vehicles that pass the nearest bayonet of the central building and do not pass the next detector within a certain period of time. Associating the checkpoint detector device with the road network, sorting the checkpoint data of each vehicle in reverse order, and judging whether the checkpoint corresponding to the temporally adjacent data belongs to the connected road section in space. If it belongs to a connected road section, then the road section is included in the path; otherwise, algorithms such as Dijkstra and Floyd (that is, the path search algorithm in the embodiment of the application) are used to search for the shortest path between two checkpoints at adjacent times, and the path is determined. Completion. Integrate the paths obtained by data aggregation to generate a path library in a special area.

其中,以一定粒度按路径聚合历史数据,取需要进行拥堵识别的时刻前一定时间窗的数据作为当前时刻不同路径的历史流量特征。同时,根据相同聚合粒度与时间窗取中心建筑周围检测器相同时刻前的数据,聚合为中心建筑流量特征,其中,中心建筑周围检测器指直接向中心建筑流入交通压力的路段上的检测器,通常为包围建筑的一圈路段上的检测器。以路径流量特征与中心建筑流量的相关系数判断路径与中心建筑交通状况相关性,按相关性可以动态筛选目标路径。使用时间窗选取部分数据是考虑到使用离该时刻相近的数据能更好地表征该时刻的交通特征。Among them, the historical data is aggregated by path at a certain granularity, and the data of a certain time window before the time of congestion identification is taken as the historical traffic characteristics of different paths at the current moment. At the same time, according to the same aggregation granularity and time window, the data of the detectors around the central building before the same time are collected, and aggregated into the flow characteristics of the central building. Among them, the detectors around the central building refer to the detectors on the road section that directly flows into the central building. Typically a detector on a road segment surrounding a building. The correlation coefficient between the path flow characteristics and the central building flow is used to judge the correlation between the path and the central building traffic conditions, and the target path can be dynamically screened according to the correlation. The use of time windows to select part of the data is to consider that the use of data close to the moment can better characterize the traffic characteristics of the moment.

对于不同相关性的目标路径,以相关系数作为权重考虑不同路径流量对区域拥堵不同程度的影响。路径上依据流向,选取路段中安装在流向上的交通检测器,作为关键交通检测器,用于计算路径的交通指标。For target paths with different correlations, the correlation coefficient is used as the weight to consider the impact of different path traffic on regional congestion. According to the flow direction on the route, the traffic detector installed in the flow direction in the road section is selected as the key traffic detector to calculate the traffic index of the route.

在本申请实施例中,计算流量相关性如下:In the embodiment of this application, the traffic correlation is calculated as follows:

以10分钟粒度按路径聚合3个月历史数据,按时间序列排序得到每条路径一天内的历史流量特征。选取需要进行拥堵识别的时刻T,如15:10,取T时刻前1小时时间窗数据,即14:10~15:10之间的历史流量特征,作为该时间点的历史流量变化特征,记为X。同时,对实时数据同样按10分钟粒度聚合,取相同时间窗数据,作为中心建筑当前流量特征,记为Y。对X与Y计算相关性。Aggregate 3 months of historical data by path at a granularity of 10 minutes, and sort by time series to obtain the historical traffic characteristics of each path within a day. Select the time T that needs to be identified for congestion, such as 15:10, and take the time window data one hour before T, that is, the historical traffic characteristics between 14:10 and 15:10, as the historical traffic change characteristics at this time point, record for X. At the same time, the real-time data is also aggregated at a granularity of 10 minutes, and the data of the same time window is taken as the current flow characteristic of the central building, which is recorded as Y. Computes the correlation between X and Y.

本申请实施例中,考虑到数据的非线性、连续性,过滤去除异常离群值后,采用皮尔逊相关系数计算方法,In the embodiment of this application, considering the non-linearity and continuity of the data, after filtering and removing abnormal outliers, the Pearson correlation coefficient calculation method is used,

Figure BDA0003723857620000091
Figure BDA0003723857620000091

其中,cov(X,Y)为X与Y的协方差,σX为X的标准差,σY为Y的标准差。相关系数介于-1~1之间,本实施例中,将小于0的系数置为0,表示该路径流量特征不符合中心建筑流量特征,向中心建筑输送交通压力的可能性较小。Among them, cov(X, Y) is the covariance of X and Y, σ X is the standard deviation of X, and σ Y is the standard deviation of Y. The correlation coefficient is between -1 and 1. In this embodiment, setting the coefficient less than 0 to 0 means that the flow characteristics of the path do not conform to the flow characteristics of the central building, and the possibility of transporting traffic pressure to the central building is low.

在本申请实施例中,采用Dijkstra算法搜索最短路径的思路和过程如下:In the embodiment of this application, the idea and process of using the Dijkstra algorithm to search for the shortest path are as follows:

若给定一个有N个节点带权值的有向图,首先设定一个数组D来保存出发点到各个节点的最短距离,再定义一个集合T来保存所有已经找到出发点到该点最短路径的节点。初始条件下,出发点至出发点的距离为0,出发点和与之有连接的节点之间的距离为相应的权值,无直接连接的节点距离定义为∞(无穷大),接着选出与出发点距离值最小的节点,将该点加入集合T,并以距出发点距离最小的节点为出发点,依次更新距出发点的距离值,即若该点距离值和该点到其他点的距离值之和小于出发点直接到达的距离值,则用该值替换直接到达值,否则不做改变,重复上述过程,直到T中包含了图中所有的节点,算法结束;If a directed graph with N nodes and weights is given, first set an array D to save the shortest distance from the starting point to each node, and then define a set T to save all nodes that have found the shortest path from the starting point to this point . Under the initial conditions, the distance from the starting point to the starting point is 0, the distance between the starting point and the nodes connected to it is the corresponding weight, and the distance between nodes without direct connections is defined as ∞ (infinity), and then the distance value to the starting point is selected The smallest node, add this point to the set T, and take the node with the smallest distance from the starting point as the starting point, and update the distance value from the starting point in turn, that is, if the sum of the distance value of this point and the distance value from this point to other points is less than the starting point directly If the distance value reached, replace the direct arrival value with this value, otherwise, do not change, repeat the above process until T contains all the nodes in the graph, and the algorithm ends;

在本申请实施例中,采用Floyd算法搜索最短路径的思路和过程如下:In the embodiment of this application, the idea and process of using the Floyd algorithm to search for the shortest path are as follows:

假设存在一个有N个节点的有向图或无向图,Floyd算法需要定义两个N×N的矩阵,记为D和P,D矩阵中的元素a[i][j]表示从顶点i到顶点j的距离,而P矩阵中的元素b[i][j]则表示从顶点i到顶点j中间经过的顶点。在初始状态;下,矩阵D表示每个顶点到其他各个顶点的距离,在计算机中通常为权重,若两点之间没有直接连接,则距离值为∞,而P矩阵初始状态下为所有b[i][j]元素的j值。记更新次数为K(共需要更新N次),若(a[i][k-1]+a[k-1][j])<a[i][j],则用前者值替换后者的值,同时P矩阵中b[i][j]=b[i][k-1],依次更新下去,直到更新次数为N,则算法结束,结合D矩阵与P矩阵,就得到从任意节点到其他所有节点的最短路径;Assuming there is a directed or undirected graph with N nodes, the Floyd algorithm needs to define two N×N matrices, denoted as D and P, and the element a[i][j] in the D matrix represents the The distance to vertex j, and the element b[i][j] in the P matrix represents the vertex passing through from vertex i to vertex j. In the initial state; the matrix D represents the distance from each vertex to other vertices, which is usually a weight in a computer. If there is no direct connection between two points, the distance value is ∞, and the initial state of the P matrix is all b [i] The j value of the [j] element. Note that the number of updates is K (a total of N updates are required), if (a[i][k-1]+a[k-1][j])<a[i][j], replace it with the former value At the same time, b[i][j]=b[i][k-1] in the P matrix will be updated sequentially until the number of updates is N, then the algorithm ends, and the combination of the D matrix and the P matrix can be obtained from The shortest path from any node to all other nodes;

在本申请实施例中,通过统计行程终点为中心建筑的车辆行车路径,可以构建不同节点到中心建筑的通行路径库,筛选中心建筑周围流量与路径历史流量相关性较高的路径,得到特殊区域中的重要路径。In the embodiment of the present application, by counting the vehicle driving paths with the central building as the end point of the trip, a library of traffic paths from different nodes to the central building can be constructed, and the paths with high correlation between the flow around the central building and the historical flow of the path can be selected to obtain special areas important path in .

基于卡口检测器,建立节点与中心建筑的通行路径,对于缺失卡口的路段,采用Dijkstra、Floyd算法(即,本申请实施例中的路径搜索算法)搜索最短路径,建立通行路径库。在每个节点标记路径上的交通流向,得到路径上的关键车道。关联关键车道安装的车道级交通检测器,得到需要重点关注的关键检测器。Based on the bayonet detector, the passage path between the node and the central building is established. For the road section missing the bayonet, the Dijkstra and Floyd algorithm (that is, the path search algorithm in the embodiment of the present application) is used to search for the shortest path and establish a passage path library. The traffic flow on the path is marked at each node, and the key lanes on the path are obtained. Correlate the lane-level traffic detectors installed in the key lanes to get the key detectors that need to be focused on.

在本申请实施例中,筛选需要重点关注的检测器是为了排除无关车流对特殊区域拥堵感知的影响,相关性高的路段中包含了不同流向的交通流,根据重点关注的检测器可以得到最可能流入中心建筑的交通压力,实现精确压力分析。In the embodiment of this application, the purpose of screening the detectors that need to be focused on is to eliminate the impact of irrelevant traffic flow on the congestion perception of special areas. Highly correlated road sections include traffic flows in different directions. According to the detectors that need to be focused on, the most Traffic pressure that may flow into the central building, enabling accurate pressure analysis.

步骤S104,将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;Step S104, converting the data collected by key traffic detectors into traffic flow spatial density, and setting the pressure threshold of regional traffic early warning according to the traffic flow spatial density;

可选的,步骤S104中将关键交通检测器采集的数据转换为交通流空间密度包括:使用流量或车头间距,按照标准小型汽车长度与车头间距之和计算当前排队长度的近似值,并将当前排队长度的近似值与路段长度进行比较,得到路段的第一交通流空间密度;使用车头时距或排队长度,将连续两辆车通过固定点中关键交通检测器采集的时间间隔和路段自由流速度相乘,得到距离间隔,将距离间隔与路段长度对比得到路段的第二交通流空间密度;将第一交通流空间密度和第二交通流空间密度进行归一化处理,对归一化处理后的数据进行加权平均,得出路段的目标交通流空间密度。Optionally, converting the data collected by key traffic detectors into traffic flow spatial density in step S104 includes: using the flow rate or headway distance, calculating an approximate value of the current queue length according to the sum of the length of a standard small car and the headway distance, and calculating the current queue length The approximate value of the length is compared with the length of the road section to obtain the first traffic flow space density of the road section; using the headway or queue length, the time interval collected by two consecutive vehicles passing through the key traffic detector in the fixed point is compared with the free flow speed of the road section By multiplying the distance interval, the distance interval is compared with the length of the road section to obtain the second traffic flow spatial density of the road section; the first traffic flow spatial density and the second traffic flow spatial density are normalized, and the normalized The data are weighted and averaged to obtain the target traffic flow space density of the road section.

进一步地,可选的,依据交通流空间密度设置区域交通预警的压力阈值包括:依据交通流空间密度对交通压力分类,设置区域交通预警的压力阈值;其中,交通压力分类包括流入压力和内部压力;压力阈值设置有多组。Further, optionally, setting the pressure threshold of the regional traffic warning according to the traffic flow spatial density includes: classifying the traffic pressure according to the traffic flow spatial density, and setting the pressure threshold of the regional traffic warning; wherein, the traffic pressure classification includes inflow pressure and internal pressure ; There are multiple groups of pressure threshold settings.

具体的,节点上向区域传输交通流的路段存在交通流空间密度达到分位数阈值时,对区域内部的交通状况即将造成影响,为流入压力,与建筑相邻的路段的交通流空间密度达到阈值,说明建筑周围的交通压力较大,为内部压力。Specifically, when the traffic flow space density reaches the quantile threshold on the road section that transmits traffic flow to the area on the node, it will have an impact on the traffic situation inside the area. For the inflow pressure, the traffic flow space density of the road section adjacent to the building reaches Threshold, indicating that the traffic pressure around the building is greater, which is the internal pressure.

在本申请实施例中,压力阈值设置有多组等级,不同的报警等级对应于特殊区域中某一个节点或多个节点达到拥堵的状况,可根据实际情况分为畅通、缓行、拥堵、严重拥堵等多重等级。In the embodiment of the present application, the pressure threshold is set with multiple groups of levels, and different alarm levels correspond to a certain node or multiple nodes in a special area reaching the congested situation, which can be divided into unblocked, slow, congested, and severe congested according to the actual situation And so on multiple levels.

在本申请实施例中,对于压力报警的压力阈值是在车道级数据和路口设施模型的基础上,统计历史交通规律,得到不同路段的历史交通密度数据集,选择一组分位数来区分路段的拥堵与畅通状况,不同路段的交通状况不同,使用分位数作为压力阈值可以有针对性地基于路段本身历史交通规律得到预警的标准,同时分位数的调整可以根据调控人力与实际报警需求来调整,分位数数值设置较大时,问题区域数量少,但通常存在亟需解决的交通问题;降低分位数数值时,问题区域数量增多,有助于观察全域交通状况,可以根据实际情况灵活调节设计。In the embodiment of this application, the pressure threshold for the pressure alarm is based on the lane-level data and the intersection facility model, and the historical traffic rules are calculated to obtain the historical traffic density data sets of different road sections, and a group of quantiles is selected to distinguish the road sections The congestion and unimpeded conditions of different road sections are different. Using the quantile as the pressure threshold can be targeted to get the early warning standard based on the historical traffic law of the road section itself. At the same time, the adjustment of the quantile can be adjusted according to manpower and actual alarm needs When the quantile value is set larger, the number of problem areas is small, but there are usually traffic problems that need to be solved urgently; Situation flexible adjustment design.

需要说明的是,在本申请实施例中可以按照用户要求调整报警灵敏度,对灵敏度要求高的场景,则只要达到1个阈值即进行报警,对要求低的场景,则需要达到均满足流入压力和内部压力对应的压力的情况。具体的,上述示例仅以作为本申请实施例提供的交通预警方法的优选示例,以实现本申请实施例提供的交通预警方法为准,具体不做限定。步骤S105,依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;It should be noted that in the embodiment of this application, the alarm sensitivity can be adjusted according to user requirements. For scenes with high sensitivity requirements, an alarm will be issued as long as a threshold is reached; The internal pressure corresponds to the pressure situation. Specifically, the above example is only used as a preferred example of the traffic early warning method provided by the embodiment of the present application, and is subject to the implementation of the traffic early warning method provided by the embodiment of the present application, and is not specifically limited. Step S105, obtaining congestion information in a special area according to the pressure threshold, and confirming and marking the congestion information to generate marked data;

可选的,步骤S105中依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据包括:根据压力阈值的压力报警获取区域实时拥堵情况并报警,并通过人工确认实时拥堵情况,标记正确的感知结果,生成标记数据;其中,人工确认,通过监控、交通指标对比进行实时或离线确认。Optionally, in step S105, the congestion information of the special area is obtained according to the pressure threshold, and the congestion information is confirmed and marked, and the generation of marked data includes: obtaining the real-time congestion situation of the area according to the pressure alarm of the pressure threshold and giving an alarm, and manually confirming the real-time Congestion, mark the correct perception results, and generate marked data; among them, manual confirmation, real-time or offline confirmation through monitoring and traffic index comparison.

具体的,基于S103中的相关系数权重,按照拥堵报警业务需求定义介于0~1的权重阈值,满足权重要求的目标路径即认为在当前需要进行拥堵识别的时刻与中心建筑流量特征较为相似,该路径向中心建筑传输交通压力的可能性较大。当上述路径上的路段交通流空间密度达到预警阈值时,说明该路径向区域输入较多流量,对区域内部的交通状况即将造成影响,为流入压力,可以进行拥堵报警,对外围交通流及流出区域的交通流进行疏导,可以引导信号配时人员定位具体问题,并可配合实行加大下游放行力度等措施,快速缓解交通压力。同时,整体考虑目标路径,对于存在多条路径拥堵的区域进行优先预警。Specifically, based on the weight of the correlation coefficient in S103, a weight threshold between 0 and 1 is defined according to the congestion alarm business requirements, and the target path that meets the weight requirements is considered to be relatively similar to the traffic characteristics of the central building at the moment when congestion identification is required. This path is more likely to transmit traffic pressure to the central building. When the traffic flow space density of the road section on the above-mentioned path reaches the warning threshold, it means that the path has input more traffic into the area, which will soon affect the traffic conditions inside the area. In order to reduce the inflow pressure, a congestion alarm can be issued to control the peripheral traffic flow and outflow. The regional traffic flow can be guided to guide the signal timing personnel to locate specific problems, and can cooperate with the implementation of measures such as increasing downstream release efforts to quickly relieve traffic pressure. At the same time, the target path is considered as a whole, and priority warnings are given for areas with multiple path congestion.

在本申请实施例中,人工对感知结果进行确认与标记是通过实时监控区域交通参数,记录满足压力阈值的警情,得到实时拥堵报警,并通过人工观察路口监控等方法对数据报警加以确认,进而得到拥堵报警准确性标签。In the embodiment of the present application, the manual confirmation and marking of the sensing results is through real-time monitoring of regional traffic parameters, recording the alarm conditions that meet the pressure threshold, obtaining real-time congestion alarms, and confirming the data alarms through manual observation of intersection monitoring and other methods. Then get the congestion alarm accuracy label.

步骤S106,依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警。Step S106, according to the marked data and traffic data, train the congestion prediction model, and use the congestion prediction model to give an early warning of the traffic situation in the special area.

可选的,步骤S106中依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警包括:对目标路径中的关键交通检测器数据按时间排序,进行数据处理得到目标路径的交通状态指标,并关联标记数据的拥堵标签;输入神经网络时序模型进行训练,得到时序拥堵预警模型;利用状态估计算法,对通过测试集得到的时间序列预测结果进行调整,训练得到特殊区域的拥堵预测模型;依据拥堵预测模型对特殊区的交通情况进行预警。Optionally, in step S106, according to the marked data and traffic data, training the congestion prediction model, and using the congestion prediction model to warn the traffic situation in the special area includes: sorting the key traffic detector data in the target path by time, performing data Process and obtain the traffic status indicators of the target path, and associate the congestion label of the marked data; input the neural network time series model for training, and obtain the time series congestion early warning model; use the state estimation algorithm to adjust the time series prediction results obtained through the test set, and train Obtain the congestion prediction model of the special area; according to the congestion prediction model, the traffic situation of the special area is given an early warning.

具体的,不同路径上包含的路段数量不同,路径上不同路段的重点检测器数量不同,因此需要对检测器数据进行聚合计算,以路段为单位计算流量和、平均占有率、平均交通流空间密度等指标,再以路径为单位计算交通指标平均值作为路径的指标。将上述路径指标数据按时间排序依次输入,构建特殊区域拥堵模型,标记拥堵标签,使用LSTM、RNN、GRU等神经网络时序模型进行循环计算,得出在拥堵发生前交通监测器的各项数据的阈值,将阈值数据记录标签,即得到特殊区域的拥堵预测标签。利用卡尔曼时间更新方程、最小二乘法等状态估计方法,对通过测试集得到的时间序列预测结果进行调整,得到混合模型预测的结果。Specifically, the number of road sections included in different paths is different, and the number of key detectors in different road sections on the path is different. Therefore, it is necessary to aggregate and calculate the detector data, and calculate the flow sum, average occupancy rate, and average traffic flow space density in units of road sections and other indicators, and then calculate the average value of traffic indicators in units of routes as the route indicators. Input the above path index data in order of time, build a congestion model in a special area, mark the congestion label, and use LSTM, RNN, GRU and other neural network time series models to perform cyclic calculations to obtain the data of the traffic monitor before the congestion occurs. Threshold, the threshold data record label, that is, the congestion prediction label of the special area is obtained. Using state estimation methods such as Kalman time update equation and least squares method, the time series prediction results obtained through the test set are adjusted to obtain the prediction results of the mixed model.

在本申请实施例中,使用重点路径上的关键检测器数据进行学习训练,排除对区域交通状况影响较小的检测器,可以在保证模型精度的前提下,减少输入样本量,降低训练压力,减小过拟合。In the embodiment of this application, the key detector data on the key path is used for learning and training, and the detectors that have little influence on the regional traffic conditions are excluded. On the premise of ensuring the accuracy of the model, the input sample size can be reduced, and the training pressure can be reduced. Reduce overfitting.

在本申请实施例中,时序模型是在一系列时刻按照时间次序,通过读取交通检测器内监测的交通流数据在每个时刻的变量,并将所获取的离散数据整合,进而得到时间序列模型;In the embodiment of this application, the time-series model is based on a sequence of times at a series of moments, by reading the variables of the traffic flow data monitored in the traffic detector at each moment, and integrating the acquired discrete data to obtain a time-series Model;

在本申请实施例中,切分数据集属于AI训练学习系统中的现有技术,包括将获取的数据集拆分出测试集和训练集并对样本进行测试和训练,其中拆分出来的测试集和训练集互斥,即测试样本尽量不在训练集中出现,未在训练集中使用过,以保证时序拥堵预警模型预警的准确度;In the embodiment of this application, splitting the data set belongs to the existing technology in the AI training and learning system, including splitting the acquired data set into a test set and a training set and performing tests and training on the samples. The split test The set and the training set are mutually exclusive, that is, the test samples should not appear in the training set as much as possible, and have not been used in the training set to ensure the accuracy of the time series congestion early warning model;

在本申请实施例中,根据卡尔曼时间更新方程对混合模型进行预测中,设定X(k)为k时刻的系统状态,U(k)为k时刻对系统的控制量,A和B为系统参数,A为交通流空间密度变化参数,B为交通流控制量参数,对于混合模型来说他们为矩阵,Z(k)是k时刻的测量值,H为测量系统的参数,W(k)和V(k)分别表述过程和测量的噪声,协方差分别用Q和R表示,且设定Q和R不随系统状态变化而变化,引入一组线性随机微分方程:In the embodiment of this application, in predicting the hybrid model according to the Kalman time update equation, set X(k) as the system state at time k, U(k) as the control amount of the system at time k, and A and B as System parameters, A is the traffic flow spatial density change parameter, B is the traffic flow control parameter, for the mixed model, they are a matrix, Z(k) is the measured value at time k, H is the parameter of the measurement system, W(k ) and V(k) represent the noise of the process and measurement respectively, and the covariance is represented by Q and R respectively, and Q and R are set not to change with the system state, and a set of linear stochastic differential equations are introduced:

X(k)=AX(k-1)+BU(k)+W(k)X(k)=AX(k-1)+BU(k)+W(k)

系统测量值Z(k)=HX(k)+V(k);System measurement value Z(k)=HX(k)+V(k);

首先根据系统的过程模型,对下一状态进行预测;设定某一时刻系统状态为k,根据系统模型的上一状态可预测出某刻状态:First, predict the next state according to the process model of the system; set the system state at a certain moment as k, and predict the state at a certain moment according to the previous state of the system model:

X(k|k-1)=AX(k-1|k-1)+BU(k) (1)X(k|k-1)=AX(k-1|k-1)+BU(k) (1)

X(k|k-1)是利用上一状态预测的结果,X(k-1|k-1)是上一状态最优的结果,U(k)为某刻状态的控制量,如果没有控制量,它可以为0;X(k|k-1) is the result predicted by the previous state, X(k-1|k-1) is the optimal result of the previous state, U(k) is the control amount of the state at a certain moment, if there is no control amount, it can be 0;

到某刻为止,系统结果已经更新,可是,对应于X(k|k-1)的协方差还没更新,用P表示;Up to a certain moment, the system result has been updated, but the covariance corresponding to X(k|k-1) has not been updated, denoted by P;

P(k|k-1)=AP(k-1|k-1)+A'+Q (2)P(k|k-1)=AP(k-1|k-1)+A'+Q (2)

P(k|k-1)是X(k|k-1)对应的协方差,A’表示A的转置矩阵,Q是系统过程的协方差,综合计算式(1)和(2)可以根据X(k|k-1)得到混合模型预测的结果并与预先设置的阈值相比较,若计算结果超过阈值,则说明预测结果下一时段会出现拥堵,此时发出预测拥堵警报。P(k|k-1) is the covariance corresponding to X(k|k-1), A' represents the transposition matrix of A, and Q is the covariance of the system process. The comprehensive calculation formulas (1) and (2) can be According to X(k|k-1), the predicted result of the hybrid model is obtained and compared with the preset threshold. If the calculation result exceeds the threshold, it means that the predicted result will be congested in the next period, and a predicted congestion alarm will be issued at this time.

本申请实施例提供的交通预警方法可以实现以特殊区域为中心,实时监测周边路段的交通流空间密度数据,出现拥堵时可以快速确定交通压力的种类和问题路段,实现对交通流空间密度过大时的及时拥堵感知和快速对问题路段实现处理和疏导,保证特殊区域周边的交通保持顺畅。并且可以自主调节特殊区域周边的拥堵感知阈值,有助于观察和操控全域交通状况,并可以通过交通检测器的数据及时对交通拥堵计算和预警,提前引导信号配时和人员定位处理,并可配合实行加大下游放行力度等措施,在整体上快速缓解交通压力。通过实时数据输入,可以对特殊区域路网实现实时报警,而且根据实时数据和离线模型库的数据匹配和计算可以提前预测拥堵,方便指挥中心实时掌握特殊区域交通状况,且提前做出反应和指挥,对拥堵点做交通疏导,减小了拥堵的发生,保证了交通的顺畅。以及,在时间序列预测模型中,预测序列与真实的时间序列之间可能会存在一定的误差。通过对有误差的序列进行二次估计调优,重新对预测序列进行动态调整,可以提高预测精度。The traffic early warning method provided by the embodiment of the present application can realize the real-time monitoring of the traffic flow spatial density data of the surrounding road sections with a special area as the center, and can quickly determine the type of traffic pressure and the problematic road section when congestion occurs, and realize the detection of excessive traffic flow space density. Real-time and timely congestion awareness and fast processing and relief of problem road sections to ensure smooth traffic around special areas. And it can independently adjust the congestion perception threshold around the special area, which is helpful to observe and control the traffic situation in the whole area, and can calculate and warn the traffic congestion in time through the data of the traffic detector, guide the signal timing and personnel positioning processing in advance, and can Cooperate with the implementation of measures such as increasing the intensity of downstream release, and quickly ease the traffic pressure on the whole. Through real-time data input, real-time alarms can be realized for road networks in special areas, and congestion can be predicted in advance based on real-time data and data matching and calculation of the offline model library, which facilitates the command center to grasp the traffic conditions in special areas in real time, and to respond and command in advance , Do traffic diversion to the congestion point, reduce the occurrence of congestion, and ensure the smooth flow of traffic. And, in the time series forecasting model, there may be some errors between the forecasted series and the real time series. By re-estimating and optimizing the sequence with errors and re-adjusting the forecast sequence dynamically, the prediction accuracy can be improved.

本发明实施例提供了一种交通预警方法。通过标记特殊区域,建立对应特殊区域的路网拓扑图;关联城市路网模型,采集特殊区域的交通数据;构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警,从而能够在保证模型精度的前提下,减少输入样本量,降低训练压力,减小过拟合的技术效果。An embodiment of the present invention provides a traffic early warning method. By marking special areas, establish road network topology maps corresponding to special areas; associate urban road network models, collect traffic data in special areas; build path libraries, analyze path correlations in special areas combined with traffic data, and screen key traffic detectors; The data collected by key traffic detectors is converted into traffic flow spatial density, and the pressure threshold of regional traffic warning is set according to the traffic flow spatial density; the congestion information of special areas is obtained according to the pressure threshold, and the congestion information is confirmed and marked to generate marked data ;According to the marked data and traffic data, train the congestion prediction model, and use the congestion prediction model to warn the traffic situation in special areas, so that the input sample size can be reduced, the training pressure can be reduced, and the over-fitting can be reduced under the premise of ensuring the accuracy of the model. Combined technical effect.

实施例二Embodiment two

第二方面,本发明实施例提供一种交通预警装置,图3为本发明实施例二提供的一种交通预警装置的示意图;如图3所示,本申请实施例提供的交通预警装置包括:建立模块31,用于标记特殊区域,建立对应特殊区域的路网拓扑图;采集模块32,用于关联城市路网模型,采集特殊区域的交通数据;筛选模块33,用于通过构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;转换模块34,用于将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;标记模块35,用于依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;预警模块36,用于依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警。In a second aspect, an embodiment of the present invention provides a traffic warning device. FIG. 3 is a schematic diagram of a traffic warning device provided in Embodiment 2 of the present invention; as shown in FIG. 3 , the traffic warning device provided in the embodiment of the present application includes: Build module 31, be used for marking special area, establish the road network topological map corresponding to special area; Acquisition module 32, be used for associating urban road network model, collect the traffic data of special area; Screening module 33, be used for by constructing path library, Combining traffic data to analyze path correlation in a special area, and screening key traffic detectors; conversion module 34, used to convert data collected by key traffic detectors into traffic flow spatial density, and set the pressure of regional traffic early warning according to traffic flow spatial density Threshold; Marking module 35, is used for obtaining the congestion information of special area according to pressure threshold value, and confirms and marks the congestion information, generates label data; Early warning module 36, is used for training congestion prediction model according to label data and traffic data, and Early warning of traffic conditions in special areas through the congestion prediction model.

本发明实施例提供了一种交通预警装置。通过标记特殊区域,建立对应特殊区域的路网拓扑图;关联城市路网模型,采集特殊区域的交通数据;构建路径库,结合交通数据分析特殊区域内路径相关性,筛选关键交通检测器;将关键交通检测器采集的数据转换为交通流空间密度,并依据交通流空间密度设置区域交通预警的压力阈值;依据压力阈值获取特殊区域的拥堵信息,并对拥堵信息进行确认和标记,生成标记数据;依据标记数据和交通数据,训练拥堵预测模型,并通过拥堵预测模型对特殊区域的交通情况进行预警,从而能够在保证模型精度的前提下,减少输入样本量,降低训练压力,减小过拟合的技术效果。An embodiment of the invention provides a traffic warning device. By marking special areas, establish road network topology maps corresponding to special areas; associate urban road network models, collect traffic data in special areas; build path libraries, analyze path correlations in special areas combined with traffic data, and screen key traffic detectors; The data collected by key traffic detectors is converted into traffic flow spatial density, and the pressure threshold of regional traffic warning is set according to the traffic flow spatial density; the congestion information of special areas is obtained according to the pressure threshold, and the congestion information is confirmed and marked to generate marked data ;According to the marked data and traffic data, train the congestion prediction model, and use the congestion prediction model to warn the traffic situation in special areas, so that the input sample size can be reduced, the training pressure can be reduced, and the over-fitting can be reduced under the premise of ensuring the accuracy of the model. Combined technical effect.

实施例三Embodiment three

第三方面,本发明实施例提供一种交通预警系统,图4为本发明实施例三提供的一种交通预警系统的示意图;如图4所示,本申请实施例提供的交通预警系统包括:标记模块41,用于对特殊区域进行划分标记;数据采集模块42,用于对重点路段路网模型和交通数据进行采集;数据转化模块43,用于对采集的数据进行转化计算;重点路径监控模块44,用于监控区域中重点路径的实时整体交通状态及基于相关性权重展示热力图;实时拥堵感知模块45,用于对特殊区域路网进行实时报警,并由人工进行警情确认;拥堵预警模块46,将实时数据输入到离线模型库进行拥堵预测,发出预警信号。In a third aspect, an embodiment of the present invention provides a traffic early warning system. FIG. 4 is a schematic diagram of a traffic early warning system provided by Embodiment 3 of the present invention; as shown in FIG. 4 , the traffic early warning system provided by the embodiment of the present application includes: Marking module 41 is used to divide and mark special areas; data collection module 42 is used to collect road network models and traffic data of key road sections; data conversion module 43 is used to convert and calculate collected data; key path monitoring Module 44 is used to monitor the real-time overall traffic status of key routes in the area and display the heat map based on the correlation weight; the real-time congestion perception module 45 is used to issue real-time alarms to the road network in special areas and manually confirm the alarm situation; congestion The early warning module 46 inputs real-time data into the offline model library for congestion prediction and sends out early warning signals.

可选的,数据转化模块43包括:长度数据转化模块,用于对标准小型汽车长度与车头间距之和计算当前排队长度的近似值,并将结果与路段长度进行比较,得到路段的第一交通流空间密度;速度数据转化模块,用于对连续两辆车通过固定点的时间间隔和路段自由流速度做对比,得到距离间隔,并将距离间隔与路段长度对比得到路段的第二交通流空间密度。Optionally, the data conversion module 43 includes: a length data conversion module, which is used to calculate the approximate value of the current queuing length for the sum of the length of the standard small car and the distance between the fronts, and compare the result with the length of the road section to obtain the first traffic flow of the road section Spatial density; speed data conversion module, used to compare the time interval of two consecutive vehicles passing through a fixed point with the free flow speed of the road section to obtain the distance interval, and compare the distance interval with the length of the road section to obtain the second traffic flow spatial density of the road section .

具体的,如图4所示,标记模块41记作标记模块,数据采集模块42记作数据采集模块,数据转化模块43记作数据转化模块,重点路径监控模块44记作重点路径监控模块,实时拥堵感知模块45记作实时拥堵感知模块,拥堵预警模块46记作拥堵预警模块。Specifically, as shown in Figure 4, the marking module 41 is recorded as a marking module, the data acquisition module 42 is recorded as a data acquisition module, the data conversion module 43 is recorded as a data conversion module, and the key path monitoring module 44 is marked as a key path monitoring module. The congestion sensing module 45 is referred to as a real-time congestion sensing module, and the congestion warning module 46 is referred to as a congestion warning module.

本申请实施例提供的交通预警系统首先确认特殊区域,以特殊区域为中心,搜索最短路径并划分区域重点路段,然后进一步采集道路、路段、路口、车道、流量、占有率、车头时距、排队长度数据,然后对数据进行计算整合通过归一化处理并经过加权平均得出路段的整体交通流空间密度,然后将数据与交通检测器内部的交通参数做出匹配,其中,节点上向区域传输交通流的路段存在交通流空间密度达到预警阈值时,说明该上游路段向区域输入较多流量,对区域内部的交通状况即将造成影响,为流入压力,可以进行预警,提前对外围交通流进行疏导;The traffic early warning system provided by the embodiment of the present application first confirms the special area, searches for the shortest path and divides the key road sections of the area with the special area as the center, and then further collects roads, road sections, intersections, lanes, traffic, occupancy, headway, queuing Length data, and then calculate and integrate the data through normalization and weighted average to obtain the overall traffic flow space density of the road section, and then match the data with the traffic parameters inside the traffic detector, where the node is transmitted to the area When the traffic flow space density reaches the early warning threshold in the road section of traffic flow, it means that the upstream road section has input more traffic into the area, which will soon affect the traffic conditions inside the area. For the inflow pressure, early warning can be carried out to guide the peripheral traffic flow in advance ;

通过实时数据输入,可以对特殊区域路网实现实时报警,而且根据实时数据和离线模型库的数据匹配和计算可以提前预测拥堵,方便指挥中心提前做出反应和指挥,提前对拥堵点做交通疏导,大大减小了拥堵的发生,保证了交通的顺畅;Through real-time data input, real-time alarms can be realized for road networks in special areas, and congestion can be predicted in advance based on real-time data and data matching and calculation of the offline model library, which is convenient for the command center to respond and command in advance, and to conduct traffic relief for congestion points in advance , greatly reducing the occurrence of congestion and ensuring smooth traffic;

同时,对于与特殊区域相邻的路段交通流空间密度达到阈值时,说明特殊区域周围的交通压力较大,可以通过检测器对该交通问题进行预警,可以引导信号配时人员定位具体问题,并可配合实行加大下游放行力度等措施,快速缓解交通压力。At the same time, when the traffic flow space density of the road section adjacent to the special area reaches the threshold value, it means that the traffic pressure around the special area is high. The detector can be used to warn the traffic problem, and the signal timing personnel can be guided to locate the specific problem, and It can cooperate with the implementation of measures such as increasing the intensity of downstream release to quickly relieve traffic pressure.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (10)

1. A traffic early warning method is characterized by comprising the following steps:
marking a special area, and establishing a road network topological graph corresponding to the special area;
associating the urban road network model, and acquiring traffic data of the special area;
constructing a path library, analyzing the path correlation in the special area by combining the traffic data, and screening a key traffic detector;
converting data collected by the key traffic detector into traffic flow space density, and setting a pressure threshold value of regional traffic early warning according to the traffic flow space density;
acquiring congestion information of the special area according to the pressure threshold, confirming and marking the congestion information, and generating marking data;
and training a congestion prediction model according to the marking data and the traffic data, and early warning the traffic condition of the special area through the congestion prediction model.
2. The traffic early warning method according to claim 1, wherein the marking of the special area and the establishing of the road network topological graph corresponding to the special area comprise:
marking the special area, wherein the special area is an area covered by buildings or facilities with traffic demands larger than a preset threshold value in a specific time period and road facilities in a preset adjacent range around the buildings or facilities;
and screening the central nodes of the special area, setting intersections in a preset adjacent range of the central nodes as nodes, taking the nodes as centers, taking all associated road sections of the nodes as road sections close to the central nodes, and establishing the road network topological graph of the special area.
3. The traffic early warning method according to claim 2, wherein the constructing a route library, analyzing the relevance of the route in the special area in combination with the traffic data, and screening a key traffic detector comprises:
screening passing vehicles around the central node based on historical traffic detector data, tracking vehicle tracks, reversely deducing driving paths of the vehicles in the special area, and constructing a path library;
on the basis of historical traffic data, flow data of the paths in a specified period are counted to obtain flow characteristics of each path; counting flow data flowing into the central node in a specified period based on real-time traffic data to obtain the flow characteristics of the central node;
judging the correlation between the path and the central node according to the correlation coefficient of the flow characteristics of the path and the flow characteristics of the central node, and screening a target path according to the correlation;
and considering the influence of the path flow on the regional congestion for the target paths corresponding to the correlations according to the weights corresponding to the target paths, and selecting the traffic detector installed on the flow direction in the road section as the key traffic detector according to the flow direction on the paths.
4. The traffic warning method according to claim 3, further comprising:
and for the road section lacking the bayonet device in the path, searching the shortest path by adopting a path searching algorithm and completing the path.
5. The traffic-warning method of claim 3, wherein converting the data collected by the critical traffic detector into a spatial density of traffic flow comprises:
calculating an approximate value of the current queuing length according to the sum of the length of the standard minicar and the distance between the heads by using the flow or the distance between the heads, and comparing the approximate value of the current queuing length with the length of the road section to obtain the first traffic flow space density of the road section;
multiplying the time interval acquired by the key traffic detector in the fixed point by the road section free flow speed by using the headway distance or the queue length to obtain a distance interval, and comparing the distance interval with the road section length to obtain a second traffic flow space density of the road section;
and carrying out normalization processing on the first traffic flow space density and the second traffic flow space density, and carrying out weighted average on data after normalization processing to obtain the target traffic flow space density of the road section.
6. The traffic early warning method according to claim 5, wherein the setting of the pressure threshold of the regional traffic early warning according to the spatial density of the traffic flow comprises:
classifying traffic pressure according to the traffic flow space density, and setting a pressure threshold value of the regional traffic early warning;
wherein the traffic pressure classification includes an inflow pressure and an internal pressure; the pressure threshold values are provided in a plurality of groups.
7. The traffic early warning method according to claim 6, wherein the acquiring congestion information of the special area according to the pressure threshold, and confirming and marking the congestion information, and the generating marking data comprises:
according to the pressure alarm of the pressure threshold value, acquiring a real-time congestion situation of an area, giving an alarm, manually confirming the real-time congestion situation, marking a correct sensing result, and generating marking data;
and the manual confirmation is carried out in real time or off-line confirmation through monitoring and traffic index comparison.
8. The traffic early warning method according to claim 7, wherein the training of a congestion prediction model according to the labeled data and the traffic data and the early warning of the traffic condition in the special area through the congestion prediction model comprises:
sequencing the key traffic detector data in the target path according to time, performing data processing to obtain a traffic state index of the target path, and associating a congestion tag of the marked data;
inputting a neural network time sequence model for training to obtain a time sequence congestion early warning model;
adjusting the time series prediction result obtained through the test set by using a state estimation algorithm, and training to obtain a congestion prediction model of the special area;
and early warning the traffic condition of the special area according to the congestion prediction model.
9. A traffic early warning device, comprising:
the system comprises an establishing module, a judging module and a judging module, wherein the establishing module is used for marking a special area and establishing a road network topological graph corresponding to the special area;
the acquisition module is used for associating the urban road network model and acquiring traffic data of the regional road network model in the road network topological graph;
the screening module is used for constructing a path library, analyzing the path correlation in the special area by combining the traffic data and screening a key traffic detector;
the conversion module is used for converting the data acquired by the key traffic detector into traffic flow space density and setting a pressure threshold value of regional traffic early warning according to the traffic flow space density;
the marking module is used for acquiring the congestion information of the special area according to the pressure threshold, confirming and marking the congestion information and generating marking data;
and the early warning module is used for training a congestion prediction model according to the marking data and the traffic data, and early warning the traffic condition of the special area through the congestion prediction model.
10. A traffic warning system, comprising:
the marking module is used for marking the special area in a dividing way;
the data acquisition module is used for acquiring the road network model of the key road section and traffic data;
the data conversion module is used for carrying out conversion calculation on the acquired data;
the key path monitoring module is used for monitoring the real-time overall traffic state of the key paths in the area and displaying the thermodynamic diagram based on the relevance weight;
the real-time congestion sensing module is used for giving an alarm to a road network in a special area in real time and confirming the alarm condition manually;
the congestion early warning module is used for inputting the real-time data into an offline model library to predict congestion and sending out an early warning signal;
wherein, the data conversion module comprises:
the length data conversion module is used for calculating an approximate value of the current queuing length according to the sum of the length of the standard compact car and the distance between heads of the compact car, and comparing the result with the length of the road section to obtain the first traffic flow space density of the road section;
and the speed data conversion module is used for comparing the time interval of two continuous vehicles passing through the fixed point with the road section free flow speed to obtain a distance interval, and comparing the distance interval with the road section length to obtain a second traffic flow space density of the road section.
CN202210770647.7A 2022-06-30 2022-06-30 Traffic early warning method, device and system Active CN115331425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210770647.7A CN115331425B (en) 2022-06-30 2022-06-30 Traffic early warning method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210770647.7A CN115331425B (en) 2022-06-30 2022-06-30 Traffic early warning method, device and system

Publications (2)

Publication Number Publication Date
CN115331425A true CN115331425A (en) 2022-11-11
CN115331425B CN115331425B (en) 2023-12-19

Family

ID=83917088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210770647.7A Active CN115331425B (en) 2022-06-30 2022-06-30 Traffic early warning method, device and system

Country Status (1)

Country Link
CN (1) CN115331425B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809768A (en) * 2022-11-16 2023-03-17 上海卓冶机电科技有限公司 A smart city information resource display system and method
CN116386336A (en) * 2023-05-29 2023-07-04 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data
CN116453333A (en) * 2023-03-24 2023-07-18 阿波罗智联(北京)科技有限公司 Method for predicting main traffic flow path and model training method
CN117576908A (en) * 2023-11-21 2024-02-20 青岛格仑特新能源车辆制造有限公司 Intelligent police vehicle-mounted control system and method based on Internet of things
CN118430289A (en) * 2024-04-28 2024-08-02 山东浪潮智水数字科技有限公司 Dynamic adjustment method, equipment and medium for traffic signal lamp based on weight sensor
CN118758329A (en) * 2024-09-03 2024-10-11 兰州交通大学 A driving route planning system with traffic congestion prediction
CN119889025A (en) * 2024-11-25 2025-04-25 苏州交投数智科技有限公司 AI digital person potential safety hazard identification method and system

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217309A (en) * 2007-03-02 2008-09-18 Nec Corp Flexible network system, and information collection apparatus and method using the same
JP2011039574A (en) * 2009-08-06 2011-02-24 Shouwa Dengiken Kk System and method for distributing congestion state
US8566030B1 (en) * 2011-05-03 2013-10-22 University Of Southern California Efficient K-nearest neighbor search in time-dependent spatial networks
CN103531024A (en) * 2013-10-28 2014-01-22 武汉旭云科技有限公司 Dynamic traffic network urban road feature model and modeling method thereof
CN105825677A (en) * 2016-05-31 2016-08-03 武汉大学 City traffic jam prediction method based on improved BML model
CN106846805A (en) * 2017-03-06 2017-06-13 南京多伦科技股份有限公司 A kind of dynamic road grid traffic needing forecasting method and its system
CN107610469A (en) * 2017-10-13 2018-01-19 北京工业大学 A kind of day dimension regional traffic index forecasting method for considering multifactor impact
US20180091981A1 (en) * 2016-09-23 2018-03-29 Board Of Trustees Of The University Of Arkansas Smart vehicular hybrid network systems and applications of same
CN111553539A (en) * 2020-05-09 2020-08-18 上海大学 Driving path planning method based on probabilistic model inspection
CN111932036A (en) * 2020-09-23 2020-11-13 中国科学院地理科学与资源研究所 Fine spatio-temporal scale dynamic population prediction method and system based on position big data
CN112365708A (en) * 2020-09-29 2021-02-12 西北大学 Scenic spot traffic volume prediction model establishing and predicting method based on multi-graph convolution network
CN112950940A (en) * 2021-02-08 2021-06-11 中冶南方城市建设工程技术有限公司 Traffic diversion method in road construction period
CN113034913A (en) * 2021-03-22 2021-06-25 平安国际智慧城市科技股份有限公司 Traffic congestion prediction method, device, equipment and storage medium
DE102020202342A1 (en) * 2020-02-24 2021-08-26 Zf Friedrichshafen Ag Cloud platform for automated mobility and computer-implemented method for providing cloud-based data enrichment for automated mobility
CN114202917A (en) * 2021-12-02 2022-03-18 安徽庐峰交通科技有限公司 Construction area traffic control and induction method based on dynamic traffic flow short-time prediction
CN114495489A (en) * 2021-12-30 2022-05-13 中智行(上海)交通科技有限公司 Method for generating topological connection relation of road junction lanes

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217309A (en) * 2007-03-02 2008-09-18 Nec Corp Flexible network system, and information collection apparatus and method using the same
JP2011039574A (en) * 2009-08-06 2011-02-24 Shouwa Dengiken Kk System and method for distributing congestion state
US8566030B1 (en) * 2011-05-03 2013-10-22 University Of Southern California Efficient K-nearest neighbor search in time-dependent spatial networks
CN103531024A (en) * 2013-10-28 2014-01-22 武汉旭云科技有限公司 Dynamic traffic network urban road feature model and modeling method thereof
CN105825677A (en) * 2016-05-31 2016-08-03 武汉大学 City traffic jam prediction method based on improved BML model
US20180091981A1 (en) * 2016-09-23 2018-03-29 Board Of Trustees Of The University Of Arkansas Smart vehicular hybrid network systems and applications of same
CN106846805A (en) * 2017-03-06 2017-06-13 南京多伦科技股份有限公司 A kind of dynamic road grid traffic needing forecasting method and its system
CN107610469A (en) * 2017-10-13 2018-01-19 北京工业大学 A kind of day dimension regional traffic index forecasting method for considering multifactor impact
DE102020202342A1 (en) * 2020-02-24 2021-08-26 Zf Friedrichshafen Ag Cloud platform for automated mobility and computer-implemented method for providing cloud-based data enrichment for automated mobility
CN111553539A (en) * 2020-05-09 2020-08-18 上海大学 Driving path planning method based on probabilistic model inspection
CN111932036A (en) * 2020-09-23 2020-11-13 中国科学院地理科学与资源研究所 Fine spatio-temporal scale dynamic population prediction method and system based on position big data
CN112365708A (en) * 2020-09-29 2021-02-12 西北大学 Scenic spot traffic volume prediction model establishing and predicting method based on multi-graph convolution network
CN112950940A (en) * 2021-02-08 2021-06-11 中冶南方城市建设工程技术有限公司 Traffic diversion method in road construction period
CN113034913A (en) * 2021-03-22 2021-06-25 平安国际智慧城市科技股份有限公司 Traffic congestion prediction method, device, equipment and storage medium
CN114202917A (en) * 2021-12-02 2022-03-18 安徽庐峰交通科技有限公司 Construction area traffic control and induction method based on dynamic traffic flow short-time prediction
CN114495489A (en) * 2021-12-30 2022-05-13 中智行(上海)交通科技有限公司 Method for generating topological connection relation of road junction lanes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘宜成等: "基于DTW算法的时空图卷积路网交通流量预测研究", pages 1 - 17 *
谭健妹;刘清君;邹小梅;: "基于GIS的交通事故信息系统研究", 山西科技, no. 01 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703122B (en) * 2022-11-16 2024-01-19 上海张江智荟科技有限公司 Smart city information resource display system and method
CN115809768A (en) * 2022-11-16 2023-03-17 上海卓冶机电科技有限公司 A smart city information resource display system and method
CN116703122A (en) * 2022-11-16 2023-09-05 上海卓冶机电科技有限公司 Smart city information resource display system and method
CN115809768B (en) * 2022-11-16 2023-09-29 大同市规划设计研究总院有限责任公司 A smart city information resource display system and method
CN116453333B (en) * 2023-03-24 2024-04-16 阿波罗智联(北京)科技有限公司 Method for predicting main traffic flow path and model training method
CN116453333A (en) * 2023-03-24 2023-07-18 阿波罗智联(北京)科技有限公司 Method for predicting main traffic flow path and model training method
CN116386336B (en) * 2023-05-29 2023-08-08 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data
CN116386336A (en) * 2023-05-29 2023-07-04 四川国蓝中天环境科技集团有限公司 Road network traffic flow robust calculation method and system based on bayonet license plate data
CN117576908A (en) * 2023-11-21 2024-02-20 青岛格仑特新能源车辆制造有限公司 Intelligent police vehicle-mounted control system and method based on Internet of things
CN117576908B (en) * 2023-11-21 2024-04-26 青岛格仑特新能源车辆制造有限公司 Intelligent police vehicle-mounted control system and method based on Internet of things
CN118430289A (en) * 2024-04-28 2024-08-02 山东浪潮智水数字科技有限公司 Dynamic adjustment method, equipment and medium for traffic signal lamp based on weight sensor
CN118758329A (en) * 2024-09-03 2024-10-11 兰州交通大学 A driving route planning system with traffic congestion prediction
CN119889025A (en) * 2024-11-25 2025-04-25 苏州交投数智科技有限公司 AI digital person potential safety hazard identification method and system

Also Published As

Publication number Publication date
CN115331425B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN115331425A (en) Traffic early warning method, device and system
CN109544932B (en) Urban road network flow estimation method based on fusion of taxi GPS data and gate data
Chen et al. A short-term traffic prediction model in the vehicular cyber–physical systems
US12046135B2 (en) Method and system of predictive traffic flow and of traffic light control
Innamaa Short-term prediction of travel time using neural networks on an interurban highway
Chen Freeway performance measurement system (PeMS)
Bickel et al. Measuring traffic
KR101803891B1 (en) The apparatus and method for smart reporting of traffic information with traffic factor and object tracking
KR102646880B1 (en) Traffic light operation system according to the results of analysis of road surface conditions and traffic patterns at signal intersections to increase traffic volume
Kumar et al. Study on road traffic congestion: A review
KR20080029505A (en) Section Traffic Prediction System and Method Considering Road Lane Types
Kianfar et al. Placement of roadside equipment in connected vehicle environment for travel time estimation
Abbas et al. Real-time traffic jam detection and congestion reduction using streaming graph analytics
Vanajakshi Estimation and prediction of travel time from loop detector data for intelligent transportation systems applications
Abellana Short-term traffic flow forecasting using the autoregressive integrated moving average model in Metro Cebu (Philippines)
Liu et al. Developments and applications of simulation-based online travel time prediction system: traveling to Ocean City, Maryland
Wu Measuring reliability in dynamic and stochastic transportation networks
CN118966464A (en) Digital twin model generation method for emergency lighting
CN119181242A (en) Traffic data acquisition and real-time road condition analysis system, method, equipment and medium based on big data
CN117351763A (en) Route planning method based on flow monitoring
Khan Real-time traffic condition assessment with connected vehicles
CN113965618A (en) An abnormal trajectory detection method based on fuzzy theory
Khoury et al. Performance comparison of automatic vehicle identification and inductive loop traffic detectors for incident detection
Thajchayapong et al. Spatial inference of traffic transition using micro–macro traffic variables
CN101587644A (en) Automatic detection method for traffic accident on urban expressway based on non-continuous sliding sequence

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20221111

Assignee: ZHEJIANG YINJIANG ZHIHUI TRAFFIC GROUP Co.,Ltd.

Assignor: Yinjiang Technology Co.,Ltd.

Contract record no.: X2024980042643

Denomination of invention: A traffic warning method, device, and system

Granted publication date: 20231219

License type: Common License

Record date: 20250102